This content has been marked as final.
Show 10 replies
-
1. Re: Seam and XML configuration files doubt
gavin.king Feb 13, 2007 1:42 PM (in response to fernando_jmt)If you want *exactly* that layout, the only way is with an XML external entity declaration.
However, not that stuff like:
my/package/name/components.xml
is supported. -
2. Re: Seam and XML configuration files doubt
fernando_jmt Feb 13, 2007 2:21 PM (in response to fernando_jmt)It seems ok for components.xml (my/package/name/components.xml ).
But, what about pages.xml? -
3. Re: Seam and XML configuration files doubt
gavin.king Feb 13, 2007 2:37 PM (in response to fernando_jmt)path/to/my/viewId.page.xml
-
4. Re: Seam and XML configuration files doubt
fernando_jmt Feb 14, 2007 7:53 AM (in response to fernando_jmt)"gavin.king@jboss.com" wrote:
path/to/my/viewId.page.xml
Suppose I have an application with thousands of .xhtml pages (which is true for an existing app. we have in struts and we are thinking to upgrade to Seam), it seems if I wanna configure them in Seam I should have thousands of viewId.page.xml. I think this is not a good way in this case (maybe others). What I want to do is to group the pages according the respective module (which it makes sense).
So, it seems in Seam there is no a way to do that kind of configuration.
I think you should include some way (alternative to fine grained configuration) which we can use to configure the configuration files we want to load.
maybe adding something like (web.xml):<context-param> <!-- Seam pages Context Configuration --> <param-name>seam.pages.CONFIG_FILES</param-name> <param-value>/WEB-INF/pages-sales.xml</param-value> </context-param>
what do you think?
or is there another way to do this? (please tell me).
Thanks in advance. -
5. Re: Seam and XML configuration files doubt
pmuir Feb 14, 2007 7:56 AM (in response to fernando_jmt)I think that /path/to/my/pages.xml is a good idea (similar to /my/package/components.xml). If you like this, please add a feature request to JIRA (Gavin may say no, but we can see ;) )
-
6. Re: Seam and XML configuration files doubt
fernando_jmt Feb 14, 2007 8:24 AM (in response to fernando_jmt)"petemuir" wrote:
I think that /path/to/my/pages.xml is a good idea (similar to /my/package/components.xml). If you like this, please add a feature request to JIRA (Gavin may say no, but we can see ;) )
Maybe I am not understanding so well how this works.
I have no problem with /my/package/components.xml, I got it.
But with pages.xml I don't understand very well.
do You mean this structure of web contents will works?:webapp/ sales/ pages.xml Sale.xhtml AnotherViewId.xhtml... products/ pages.xml Product.xhtml ProductSold.xhtml... subfolder/ anotherpage.xhtml customer/ pages.xml Customer.html WEB-INF/ pages.xml components.xml...
Thanks. -
7. Re: Seam and XML configuration files doubt
gavin.king Feb 14, 2007 8:42 AM (in response to fernando_jmt)Right. Add the feature request to JIRA and I will implement it.
-
8. Re: Seam and XML configuration files doubt
fernando_jmt Feb 14, 2007 12:41 PM (in response to fernando_jmt)"gavin.king@jboss.com" wrote:
Right. Add the feature request to JIRA and I will implement it.
Before adding the request to JIRA I wanna know if what I wrote in my last post is possible.
Do you mean this structure of web contents should work?:webapp/ sales/ pages.xml Sale.xhtml AnotherViewId.xhtml... products/ pages.xml Product.xhtml ProductSold.xhtml... subfolder/ anotherpage.xhtml customer/ pages.xml Customer.html WEB-INF/ pages.xml components.xml...
If above code will work. I think we don't need what I request before. But if doesn't work I will add a JIRA request.
Please tell me. -
9. Re: Seam and XML configuration files doubt
gavin.king Feb 14, 2007 2:39 PM (in response to fernando_jmt)Request the thing in your last post.
-
10. Re: Seam and XML configuration files doubt
fernando_jmt Feb 14, 2007 5:01 PM (in response to fernando_jmt)JIRA request added.
http://jira.jboss.org/jira/browse/JBSEAM-849