[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3412) .page.xml are only loaded for pages with .xhtml extesnion.
Jakub Janczak (JIRA)
jira-events at lists.jboss.org
Thu Apr 23 05:54:42 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12464034#action_12464034 ]
Jakub Janczak commented on JBSEAM-3412:
---------------------------------------
i've got an idea, why not making page.xml files look like:
browse.xhtml.page.xml
browse.jspx.page.xml
it would solve that problem forever
> .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