[jboss-user] [JBoss Seam] - Wildcard view-id descriptions for conversation switcher

jacob.orshalick do-not-reply at jboss.com
Thu Dec 27 10:27:46 EST 2007

I have recently run into a requirement where it would be nice to have descriptions applied to wildcard view-ids.  For example, if I have the following:

  | <page view-id="/section/*" conversation-required="true">
  |   <description>Section 1</description>
  |   ...
  | </page>
  | ...

Section 1 would be the description for all pages in /section/* unless specified otherwise in a higher precedence page definition.

Currently, the FacesManager asks the Page instance directly for a description rather than looking at the page stack (as the login-required, no-conversation-view-id, etc does).  This means that every view-id under /section/* must have a description (even if they all have the same page definition).  The behavior I require can be accomplished by accessing protected methods (which is certainly not desirable for backwards compatibility), but it is possible.

Would there be interest in having this supported directly by Seam?  If so, I would be happy to provide a JIRA issue with the patch.  Thanks.

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

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

More information about the jboss-user mailing list