Conditional display of controls in task


I am using Fabric 7.

I want to display certain text boxes depending on the value of a certain variable.

There are Logic-If , Else controls which allow us to display the display the children if the value of a certain variable is “True” or “false”. How can i check for any other value, for example i want to display certain part of the UI only if the value of a variable is “No”.

Please help


To achieve this you still use If-Else controls or Rendered property of any other standalone control, if latter is set to false then given control is not rendered to HTML page

You need to express boolean using binding expression. For example:

#{YourPageBean.yourTask.taskData.yourObject.yourProperty != “testValue”}

There are plenty resources on the Web about syntax for JSF binding expressions, for example:

Thanks a lot.