1 Reply Latest reply on May 28, 2008 7:02 PM by monkeyden

    pages.xml & wildcard in action?

    gjeudy

      I'm using Seam 2.0.1GA, would there be any community interest for Seam to support wildcards in actions in pages.xml?


      The bean and method names have to match but any arguments including null or no arguments would match.
      For example if you could do something like:


      <page view-id="/showPackageItems.xhtml">
      
                <navigation
      
                     from-action="#{domInstanceAdminAction.manageDomainInstances(*)}">
      
                     <!-- snip -->
      
                </navigation>
      
           </page>



      The lack of support forces me to duplicate sometimes long rule lists inside separate navigation elements.


      Alternatively, would there be interest in adding some kind of XML import feature so that you can statically import snippets of pages config like so:


      
      <page view-id="/showPackageItems.xhtml">
      
                <navigation from-action="#{domInstanceAdminAction.manageDomainInstances(foo)}">
      
                     <!-- reusable import file containing rule elements -->
      
                </navigation>
      
                      <navigation
      
                     from-action="#{domInstanceAdminAction.manageDomainInstances(bar)}">
      
                     <!-- reusable import file containing rule elements -->
      
                </navigation>
      
      
           </page>
      
      <page view-id="/anotherview.xhtml">
      
                <navigation
      
                     from-action="#{anotheraction}">
      
                     <!-- reusable import file containing rule elements -->
      
                </navigation>
      
           </page>
      
      
      



      Regards,
      -Guillaume