Ability to avoid view path repetition in pages.xml
--------------------------------------------------
Key: JBSEAM-1858
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1858
Project: JBoss Seam
Issue Type: Feature Request
Reporter: Matt Drees
Priority: Minor
It would be fantastic if instead of this:
<page
view-id="/admin/modules/additionalExpenses/registrantTypeSettings.xhtml">
<navigation
from-action="#{additionalExpensesAdminManager.newExpense}">
<redirect
view-id="/admin/modules/additionalExpenses/editExpense.xhtml"/>
</navigation>
<navigation
from-action="#{additionalExpensesAdminManager.newSectionHeader}">
<redirect
view-id="/admin/modules/additionalExpenses/editSectionHeader.xhtml"/>
</navigation>
</page>
I could do this:
<pages view-scope="/admin/modules/additionalExpenses/">
<page view-id="registrantTypeSettings.xhtml">
<navigation
from-action="#{additionalExpensesAdminManager.newExpense}">
<redirect view-id="editExpense.xhtml"/>
</navigation>
<navigation
from-action="#{additionalExpensesAdminManager.newSectionHeader}">
<redirect view-id="editSectionHeader.xhtml"/>
</navigation>
</page>
</pages>
It would be best if <pages> could be nested in other <pages>, but there are
probably some other ramifications of that, so maybe it'd be better to introduce
another element. Maybe <view-scope> or something.
--
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