[jboss-user] [JBoss Seam] - Parameter in EL in a POJO env
esoares
do-not-reply at jboss.com
Sun Dec 10 04:38:13 EST 2006
I have faced a problem when passing parameters to a method using EL in a POJO environment (non-EJB and non-hibernate). I have setup the SeamFaceletViewHandler in faces-config.xml, as well.
Here is the xhtml sample :
<h:dataTable value="#{fruitList}" var="fr">
<h:column>
<f:facet name="header">
<f:verbatim>Description</f:verbatim>
</f:facet>
(1) <s:link value="#{fr.name}" action="#{fruitBasket.select(fr.id)}"/>
(2) <s:link value="#{fr.name}" action="#{fruitBasket.select(fr)}"/>
</h:column>
</h:dataTable>
In case (1) the fr.id is not interpreted by EL and stays as "fr.is" in the rendered HTML!
In case (2) I do not receive any error, but the object Fruit related to variable fr, is not passed.
Looking at Hibernate sample I got the alternative using @DataModelSelectionIndex, but I would like to understand why the code above does not work since this simple approach may not be suitable in complex interations when I need to pass more than the "index".
I am evaluating Seam to be used in a project.
Eddy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992506#3992506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992506
More information about the jboss-user
mailing list