This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

Managing the State and Validation in Liferay Objects

  • Liferay
  • December 24, 2024

Share On :

Introduction

Liferay Objects are versatile tools for actions like adding, updating, and deleting entries, all while handling Liferay’s low-code/no-code framework. These features make it easy to address a wide range of user needs. In this blog, we’ll dive into two aspects of the Liferay objects: state management and validation. By using these functionalities, we’ll show how they can be implemented effectively to deliver a seamless and efficient experience.

Prerequisites 
  • Liferay DXP/Portal 7.X
  • Basic knowledge of Liferay
Environmental Requirements
  • Liferay Portal or DXP
Way to managing state and validation

01) Create the Objects

  • Please create the object where you want to manage the state and validation.
  • If you are unfamiliar with objects and how to create them, please refer to the link below.

Object in Liferay 7.4

02) Prepare the steps for State Management

  • State management is handled using picklists. To implement it, you need to plan the sequence of steps and think about which step should follow the current one.
  • I have created the object for employee details to reference this blog where I managed the state for the employee experience.
field_creation
  • Navigate to the control panel > objects > your object > Fields > new field
picklist_statemanage
  • Now select the picklist in the Type and enable Mark as State. After marking it enabled, it will create one task in the state manager.
  • Now you want to save this action and navigate to the state manager where you show one action with the above label name, like Experience.
state_manager_fields
  • As you can see in the above image, you can easily define the next status. When an employee is the joining point of the company, then at that time all the list of experience is visible, but after that, the next status is only visible.
  • Now we can implement the validation and then go for the final output.

03) Apply Validation to the object

  • Now navigate to the validation and create a new validation, as you can see in the above image.
  • Give an appropriate name and select the type of validation.
Validations-Employee-Liferay
  • As you can see in the below expression, I have implemented some validation with the help of Liferay’s expression builder and set an error message as well.
  • Validation with expression builder
				
					((experience == "1YrExperience" OR experience == "2YrExperience" OR experience == "3YrExperience") AND employeeDesignation == "JrSoftwareDeveloper") OR 
((experience == "4YrExperience" OR experience == "5YrExperience" OR experience == "6YrExperience") AND employeeDesignation == "SrSoftwareDeveloper") OR
experience == "6PlusYrExperience" AND employeeDesignation == "TeamLeader" OR 
experience == "8PlusYrExperience" AND employeeDesignation == "ProjectManager"

//Error message
Wrong experience selected
				
			
expression_builder
  • If any of the conditions match, then only you can submit the employee form; otherwise, it will display the error message which we set while validation.
  • Now navigate to the Basic Info and activate the object validation.

04) Object form with the site manager and validation

  • Now we can navigate to the object form and test the flow of the site manager and validation.
  • We can add the new employee and show you the output, managing states, and validations of the designations.
add_employee
  • As you can see, there is no entry of the object or employee details on the page, so we can create our first employee entry by clicking on the plus icon.
  • As you can see in the above image, we are adding an employee for the first time, so in the experience, we can see the list of all experiences, but when we update the employee entry, then we will show only the next year of experience in the list. This is the perfect use of the state manager using Liferay.
  • Now, after selecting the experience, we must select the employee designation as per validation, which we cover in step 3.
  • If we select the wrong designation as per the experience, it will give an error message.
error_message
  • As you can see in the above image, the experience of the employee is 2 years, so we must select Jr. Software Developer, but we are selecting the wrong employee designation, so the form is not submitted and gave us an error.
employee_entry
  • Now, as you can see in the image, we have one employee entry with the perfect validation.
  • We are updating that entry and checking the flow of the state manager. As per the employee experience, only “3 yr experience” will be visible.
review form | Managing the State and Validation in Liferay Objects
  • While updating the employee entry, we have only one option, as we defined in the state manager.
Conclusion
  • In conclusion, managing state and validation in Liferay objects is a powerful way to build dynamic and user-friendly applications. Using state management, we can control data displayed or allowed based on specific conditions, like showing only the next year of experience during updates. Similarly, validation ensures that the data entered meets the required rules, like enforcing the right designation for a specific experience level. These techniques make your applications fast and easy, reduce errors, and improve the user experience. Whether you’re a fresher or an experienced developer, these features in Liferay can help you build more efficient and reliable solutions.

Explore Our Services

Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.

Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

Loading
Loading...

Related Blogs

December 29, 2022
Liferay Objects with Liferay forms Cover Image
Liferay Objects with Liferay forms
December 1, 2023
Liferay object With Message Bus
Liferay Objects with Message bus
August 5, 2024
Liferay Object with Form Fragment
Liferay Object with Form Fragment
Loading...

Featured Projects Portfolios

June 19, 2024
Music License Management Portal _ Onboarding & Data Integrity
Music License Management Portal : Onboarding & Data Integrity
November 25, 2024
Liferay DXP Based Intranet Portal Migration from 7.0 to 7.4
Liferay DXP Based Intranet Portal Migration from 7.0 to 7.4
November 29, 2024
Employee Intranet Portal for Government Entity
Employee Intranet Portal for Government Entity

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@ignek.com
  • info@ignek.com
SALES
  • sales@ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2025 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram