i want to show some data to the user
the data maybe represented to user by different JSF tags based on a configuration
for example some times it may represented by text
and sometimes it may represented by graphical symbol or even chart
also i want that this representation be customizable.
how could i do this?
Make use of the
renderedattribute.Whenever the boolean expression in the
renderedattribute evaluates totrue, the component will be rendered (displayed), otherwise not (hidden). In the above example theBean#getDataType()should return aStringor anEnum.Here are another examples of how to use boolean expressions in EL: