[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1203) Redirect doesn't allow viewId as EL

Alan Fehr (JIRA) jira-events at lists.jboss.org
Wed Apr 18 05:12:30 EDT 2007


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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list