]
Pete Muir closed JBSEAM-1203.
-----------------------------
Resolution: Out of Date
Redirect doesn't allow viewId as EL
-----------------------------------
Key: JBSEAM-1203
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1203
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Affects Versions: 1.2.1.GA
Reporter: Alan Fehr
Using an EL expression in the viewId in a redirect in *.page.xml doesn't work, as it
is not interpreted.
Changing
public void redirect(String viewId, Map<String, Object> parameters,
boolean includeConversationId)
in
org.jboss.seam.core.Manager
to incorporate this at the beginning did the trick for me:
if (viewId.contains("#{"))
{viewId = (String)Expressions.instance().createValueBinding(viewId).getValue();}
Of course, actually parsing the string to find out if it really is an EL expression would
be much better, I didn't have the time to find out how. Also the value binding may be
the wrong way to go, but hey, it worked for me.
It would be nice if redirecting to an EL viewId would be possible in the next release.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: