[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-675) Improve Pages API; Add generic Page properties / meta-data
Ryan Dewell (JIRA)
jira-events at jboss.com
Fri Jan 19 13:51:52 EST 2007
Improve Pages API; Add generic Page properties / meta-data
------------------------------------------------------------
Key: JBSEAM-675
URL: http://jira.jboss.com/jira/browse/JBSEAM-675
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Reporter: Ryan Dewell
Priority: Minor
Ideas for getting the Page and Pages to be more useful to other parts of the application.
Two ways to get there:
-----
1. Add a getAllPages() or getPages() to Pages.java. Just returns all of the Page definitions / objects that are defined for the current web-app.
2. Generic Page-level properties or attributes:
<page....>
<property name="Type" value="UsedFor"/>
</page>
Then accessing that from a Page object obtained from Pages:
String value = page.getProperty(String name)
-----------
With these two additions, elsewhere in my application I could now 1) iterate over all of the defined Page's using getPages(), 2) figure out which Page has a property of a given value 3) now know the view-id to construct a URL for. Basically using it to look up a view id in an application controlled way.
This is one use case, but maybe there are more that would benefit from these 2 additions.
--
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 seam-issues
mailing list