[jboss-user] [JBoss Seam] - Re: Wildcard for pages action

mmichalek do-not-reply at jboss.com
Wed Jan 9 14:11:29 EST 2008


I'm asking if there's any community interest in supporting wildcards in the from-action in pages.xml.

For example:
pages.xml:

  | <navigation from-action="#{logoEditor.editLogo(*)}">
  |      <redirect view-id="/edit.xhtml"/>
  | </navigation>
  | 
logoPage.xhtml:

  | <h:commandLink value="LinkOne" action="#{logoEditor.editLogo(goodLogo)}"/>
  | 
  | <h:commandLink value="LinkTwo" action="#{logoEditor.editLogo(badLogo)}"/>
  | 

For this example, both LinkOne and LinkTwo would navigate to /edit.xhtml because both of the actions match the #{logoEditor.editLogo(*)} pattern.  

In other words, the specific variable names on an action don't matter when the navigation is evaluated because pages.xml specifies a wildcard (*) for the parameters.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118415#4118415

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118415



More information about the jboss-user mailing list