[UEL-27] Method parameters only work on 'top-level' managed beans Created: 24/Jan/12  Updated: 24/Jan/12  Resolved: 24/Jan/12

Status: Resolved
Project: uel
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ed Burns Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive UEL-27-reproducer-ELParamsTest.zip    


When using JSF 2's 'method parameters' feature:



The evaluation fails when trying on a child object:



As a workaround you can use:

<ui:param name="_foo" value="#



But this seems like it should work without needing ui:param?

See attached test case.

Copied from <http://java.net/jira/browse/JAVASERVERFACES-2254>.

Comment by kchung [ 24/Jan/12 ]

Which version of glassfish ( and EL ) was the test ran? I built the war and deployed it in V312 and V3 trunk, and couldn't get it to render correctly in both cases. I didn't see any buttons and only get this from the response:



Try clicking each of the buttons below. The first will fail. The second will succeed.

Last Eval:

Looks like EL expressions were not evaluated.

Comment by kchung [ 24/Jan/12 ]

Ah, I realized that I need to use http://localhost:8080/elparam-1.0/index.jsf to run it!

On V312, and v3 trunk, both seems to run OK. That is, both buttons worked. I don't have the latest glassfish source, but EL should be current.

Comment by kennardconsulting [ 24/Jan/12 ]

Confirmed. This does indeed appear to have been fixed somewhere along the line. It is broken in Tomcat 7.0.21, but fixed in Tomcat 7.0.25.

Would it be worth figuring out how this happened? It's not JSF (I used 2.1.3 both times) or el-api.jar (both Tomcats use 2.2.FR), so I guess it must be in the EL implementation somewhere?

Could you help get some regression tests around this?

Generated at Sat Jul 30 06:46:35 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.