Skip to main content

[webtier] [JSF 2] Expression Language : specifying the method arguments

3 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Lincoln Baxter, III

You need to add the new el-impl jars to your servers lib directory.

This article shows where to get the jar.

http://ocpsoft.com/java/jsf2-java/jsf2-how-to-add-the-magic-of-el-el2-to...

Jboss 6 may not already include advanced El. I've never tried using
glassfish El on jboss before, though.

Lincoln Baxter's Droid
http://ocpsoft.com
http://scrumshark.com
Keep it simple.

On Jan 21, 2010 9:34 AM, wrote:

Hi,
I am using JBoss 6 and JSF 2.
I am trying to pass arguments in a method inside an EL expression, in a
facelet (XHTML).

Just like it is described here :
http://blogs.sun.com/kchung/entry/jsr_245_mr_part_i

It fails to parse it though :
javax.servlet.ServletException: /magasin/recherche.xhtml @46,116
action="#{rechercheJSFBean.rechercheArtParCatalogue('3')}" Error Parsing:
#{rechercheJSFBean.rechercheArtParCatalogue('3')}
javax.faces.webapp.FacesServlet.service(FacesServlet.java:323)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

I tried with and without the single quotes : (3) instead of ('3'), same
error.

Is this feature working yet ?
Thanks for helping.
[Message sent by forum member 'longbeach' (papouasied@yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=382146

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net
[att1.html]

Celinio Fernandes

Thanks for your suggestion.
I tried it.
I added http://download.java.net/maven/glassfish/org/glassfish/web/el-impl/2.1.2... to the folder jboss-6.0.0.M1\server\default\deploy\jbossweb.sar\jsf-libs.

I still get a parsing exception when i try to pass a parameter in a method inside an EL expression.

I asked the guys at JBoss if they have implemented that specification yet, I have not received any answer so far.

--- On Thu, 1/21/10, Lincoln Baxter, III
wrote:

From: Lincoln Baxter, III
Subject: Re: [webtier] [JSF 2] Expression Language : specifying the method arguments
To: webtier@glassfish.dev.java.net
Date: Thursday, January 21, 2010, 8:56 PM

You need to add the new el-impl jars to your servers lib directory.
This article shows where to get the jar.
http://ocpsoft.com/java/jsf2-java/jsf2-how-to-add-the-magic-of-el-el2-to...
Jboss 6 may not already include advanced El. I've never tried using glassfish El on jboss before, though.
Lincoln Baxter's Droid

http://ocpsoft.com

http://scrumshark.com

Keep it simple.
On Jan 21, 2010 9:34 AM, wrote:

Hi,

I am using JBoss 6 and JSF 2.

I am trying to pass arguments in a method inside an EL expression, in a facelet (XHTML).

Just like it is described here :

http://blogs.sun.com/kchung/entry/jsr_245_mr_part_i

It fails to parse it though :

javax.servlet.ServletException: /magasin/recherche.xhtml @46,116 action="#{rechercheJSFBean.rechercheArtParCatalogue('3')}" Error Parsing: #{rechercheJSFBean.rechercheArtParCatalogue('3')}

       javax.faces.webapp.FacesServlet.service(FacesServlet.java:323)

       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

I tried with and without the single quotes : (3) instead of ('3'), same error.

Is this feature working yet ?

Thanks for helping.

[Message sent by forum member 'longbeach' (papouasied@yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=382146

---------------------------------------------------------------------

To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net

For additional commands, e-mail: webtier-help@glassfish.dev.java.net

[att1.html]

Celinio Fernandes

Hi,
I am wondering if, in the tag, setting the prependId attribute to true has any influence on the behaviour of the tag.

I have tried both :
and (prependId is then set to default which is true).

In both cases, works, despite different IDs resulting in the produced HTML pages.
My example has only one form and one component, maybe that's why.
What about more complex cases, for instance when there are several forms in a page, or same Ids ?

Does anyone have any feedback on that ?
Thanks.

[att1.html]