[JBoss Seam] - Re: Seam component not getting called when in default conver
by bludginozzie
My problem is that nextPage() is not getting called when I put the action in default conversation scope. The scope of the pageNo (or use as a hidden field) shouldn't make a difference to this but I tried it just to make sure. Do you have any ideas as to why nextPage() is not getting called? It does if I put the action is session scope.
anonymous wrote : Why not? You just mean you don't want to type all that? But want to type lots of Java instead?
My pages allow the user to filter the list by several ManyToOne entities. Things like State, Country, City all of which are entities and not strings. The filter dropdowns on the page allow a null value which indicates that they want "All", (eg: "All States", "All Countries" etc.). To do this using entity-query in components.xml I would need lots of quiries (i.e: usersByState, usersByStateAndCountry, usersByStateAndCountryAndCity, usersByCountryAndCity usersByStateAndCity etc...) and then I somehow have to bind these queries to the page.
The solution was to use a single action (like the search page in the booking example) with a query builder class. With the exception of the problem above it works great and only has a small amount of Java code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121979#4121979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121979
18 years, 6 months
[JBoss Seam] - Ear with multiple web modules - problem with components.xml
by reind
I'm in the process of migrating from seam 1.2 to 2.0.1CR1 and I've run into a problem. My application is packaged as an ear, with multiple web modules (each with their own components.xml, pages.xml, etc). The java classes used by all web modules are packaged in a single jar.
| my-application.ear/
| jboss-seam.jar
| lib/
| META-INF/
| a.war/
| WEB-INF/
| classes/
| seam.properties
| components.xml
| ...
| b.war/
| WEB-INF/
| classes/
| seam.properties
| components.xml
| ...
| web.jar/
| META-INF/
| seam.properties
| ...
|
It looks like the components.xml file is not working as it should. I've noticed this with my login:
The following doesn't work in components.xml
<security:identity authenticate-method="#{authenticator.authenticate}" />
The #authenticate method is never called.
This problem goes away if I list only 1 web module in app.ear/META-INF/application.xml.
I believe this same setup worked with seam 1.2, but is no longer working in seam 2.0.1CR1.
I've also tried creating an empty jar file a.jar, b.jar with seam.properties in the root. That hasn't helped either.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121976#4121976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121976
18 years, 6 months