[
http://jira.jboss.com/jira/browse/JBSEAM-2287?page=comments#action_12389131 ]
koen handekyn commented on JBSEAM-2287:
---------------------------------------
norman,
let me refine that it currently does not work to my findings: it throws a 'field not
found' exception as it tries to find a property called 'address.street' on the
bean, and the logic for 'solving' the '.' does not seem to be triggered
for params inside the '[ ]' operator.
i'm running this inside seam so i guess i'm using already JBoss EL. i'm a bit
puzzled that i trace downto a com.sun.facelets.el class but i guess that JBoss EL delages
some functions to the standard implementation?
in short : i don't have a clue on where i can start to make this enhancement, if you
could give a hint i want to take a loook.
kind regards
koen
EL extension to resolve #{bean[field]}" where field is a
composite like "property.subProperty"
----------------------------------------------------------------------------------------------
Key: JBSEAM-2287
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2287
Project: JBoss Seam
Issue Type: Feature Request
Components: EL
Reporter: koen handekyn
EL extension to resolve #{bean[field]}" where field is a composite like
"property.subProperty"
today bean[field] is a means to resolve properties dynamically.
it does however not work for nested properties.
it's more powerfull and more intuitive imho if one could pass an expression like
"address.street" to resolve these dynamically .
an example use case is dynamically building list pages like below where the column fields
are configurable (and ideally would support projection of a street.address)
<c:forEach
items="${managedAccounts.searchFields}"
var="field"
varStatus="status"
>
<rich:column
breakBefore="#{count==1 ? true : false}"
>
<h:inputText
value="#{managedAccounts.example[field]}"
class="headerSearchField"
/>
</rich:column>
</c:forEach>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira