0

till now i used in JSF 1.2 commandLinks and the setPropertyActionListener to pass for e.g. the selectedItem of a DataTable.

<h:commandLink action="#{Result.show}" value="#{foo.name}"> <f:setPropertyActionListener value="#{foo}" target="#{Result.selectedFoo}"/> </h:commandLink> 

In an example JSF 2.0 and JPA i have seen a solution, where the selected Item is passed as parameter to a function. But if i try to execute this function on a Glassfish 2.1 Server i'am getting an Exception.

<h:commandLink action="#{Result.showFoo(foo)}" value="#{foo.name}"> </h:commandLink> 

javax.faces.view.facelets.TagAttributeException: javax.el.ELException: Error Parsing: javax.servlet.ServletException:

I'm only using simple ManagedBeans, no EJB.

Thanks.

1 Answer 1

2

The Unified Expression Language (all that #{}/${} stuff) is maintained as part of the JSP spec. You probably need a newer version of the JSP API. I see that Glassfish v3 includes EL 2.2. I believe that spec includes the functionality you want.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.