JSF required attribute based on condition for jsf or primeface component required="true" then
required="#{not empty bean.value1}" />
or
required="#{bean.value1 != ' '}" />
or
required="#{bean.value1 = = ' '}" />
or
if bean.vale is boolean
required="#{bean.value3?true:false}" />
conditinal expression you can use
required="#{not empty bean.value1}" />
or
required="#{bean.value1 != ' '}" />
or
required="#{bean.value1 = = ' '}" />
or
if bean.vale is boolean
required="#{bean.value3?true:false}" />
conditinal expression you can use
No comments:
Post a Comment