Cascade LOVs For Required Fields

Sometimes we need to create a “cascade list of values”. This is the situation when the value of one LOV is a view criteria attribute for the next LOV. This works fine when we add autoSubmit=”true” to the first LOV and partialTrigger to the second but… This Does Not Work .. when the fields are […]

by Teodor Ognianov

August 18, 2015

1 min read

selection 066 - Cascade LOVs For Required Fields

Sometimes we need to create a “cascade list of values”. This is the situation when the value of one LOV is a view criteria attribute for the next LOV. This works fine when we add autoSubmit=”true” to the first LOV and partialTrigger to the second but…

This Does Not Work

.. when the fields are required in the JSFF because the screen validation runs before the business component’s rules.

How We Can Solve This?

My way is to add autoSubmits and partialTriggers but(!!!) the required attribute to be “true” only for the master field. Here is the example:

 

pic 12

pic 22

pic 33

All others must be an EL Expression from the type
required=”#{bindings.MasterField.inputValue != null and bindings.MasterField.inputValue != ”}”

Inspired by:

 

What would be your approach? Share your experience and questions in the comments below.

Qualified IT professional focused on software development having rich background with Oracle technologies. Deep knowledge in Business Intelligence, It project management. Familiar with broad set of Java EE frameworks, including Oracle ADF, database servers as Oracle Database (9i, 10g, 11g), Database Replications, Heterogeneous Service. Teodor is a team player with good coaching skills, providing assistance with patience and deep understanding of knowledge sharing. Responsible and highly motivated.