I have a datatable which provides objects from a list. Within this data table I would like to use a tag like p:columns(primefaces) which provides strings from a list that represent the name of a field.
I will now need a subexpression to be able to use the dynamic field name like:
#{entry.#[column.fieldName}}
Is there any possibility to do this in JSF2?
If entry has get/set accessors for columns values, you could use this syntax :
In EL you can use two syntaxes to access to the value of the “lastname” property of an object :
You can take a look to JSPIntro at oracle.com