[jboss-jira] [JBoss JIRA] Commented: (JBSEAM-341) Support for Regex-es in pages.xml

Stan Silvert (JIRA) jira-events at jboss.com
Wed Aug 30 13:51:43 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-341?page=comments#action_12342369 ] 
            
Stan Silvert commented on JBSEAM-341:
-------------------------------------

I like the regex proposal.  

The thing that needs to be determined is what happens when more than one expression matches the current view-id.  Currently, the actions are called in order of lest-specific to most-specific.  However, with regular expressions that is hard to define.

We could change this so that the actions are called in order of their declaration in pages.xml.  The only problem with that is what happens if/when pages are declared outside pages.xml (of if we allow multiple pages.xml files?)

One solution would be to add a priority attribute.

BTW, if everyone likes this proposal, I'll volunteer to implement it.

> Support for Regex-es in pages.xml
> ---------------------------------
>
>                 Key: JBSEAM-341
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-341
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>            Reporter: Raja
>
> Currently the pages.xml supports wildcards but that too very limited(ending with *). If we have support for Regex-es in pages.xml , that would help the developers write page actions that can match a particular viewid.
> For e.g. I was trying to create a filter that will make my application go to the login page for any request but the login.seam page. Having a regex support for pages.xml will make this easier. 
> An alternative solution would be to have an except attribute that indicates that the page actions should be performed for all the view-ids that match it but except the ones in the "except" attribute.

-- 
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 jboss-jira mailing list