[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3412) .page.xml are only loaded for pages with .xhtml extesnion.

Norman Richards (JIRA) jira-events at lists.jboss.org
Wed Apr 29 15:04:47 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12465079#action_12465079 ] 

Norman Richards commented on JBSEAM-3412:
-----------------------------------------

That doesn't seem like a bad idea.

> .page.xml are only loaded for pages with .xhtml extesnion.
> ----------------------------------------------------------
>
>                 Key: JBSEAM-3412
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3412
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.0.BETA1
>         Environment: JBoss
>            Reporter: Prashant Kadam
>            Priority: Minor
>             Fix For: The future
>
>
> I have a facelete pages with '.jspx'  extension. It seems that pages with  only .xhtml extensions are mapped for page orchestration. Here's the code from org.jboss.seam.navigation.Pages.java file :
> private void parsePages(Set<String> ...fileNames)
>    {
>       Set<String> mergedFileNames = new HashSet<String>();
>       for (Set<String> f : fileNames)
>       {
>          mergedFileNames.addAll(f);
>       }
>       for (String fileName: mergedFileNames)  
>       {
>          String viewId = "/" + fileName.substring(0,fileName.length()-".page.xml".length()) + ".xhtml"; // needs more here
>          
>          InputStream stream = ResourceLoader.instance().getResourceAsStream(fileName);      
>          if (stream==null) 
>          {
>             log.info("no pages.xml file found: " + fileName);
>          }
>          else 
>          {
>             log.debug("reading pages.xml file: " + fileName);
>             parse(stream,viewId);
>          } 
>      }
>    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list