[JBoss Seam] - Re: Page action not called
by Sammy8306
"wise_guybg" wrote : Well this would be:
| \AuthWebApp.war\noauth\login.page.xml
| \AuthWebApp.war\noauth\login.xhtml
|
Right, so your view pages are not in the root of the war (as they are in some of the Seam example apps), I'm speculating that might be part of the problem.
anonymous wrote :
| I think you should place the page.xml files next to the xhtml.
|
Yup, that's what I initially had:
\WebApp.war\Foo.xhtml
\WebApp.war\Foo.page.xml
No succes.
anonymous wrote :
| You should determine what's wrong in your configuration.
| You can debug the Pages.java to see what is wrong. See Pages.createPage()
Yeah, that's what I described in the previous posts. The debugging showed that Pages.java tries to load Foo.page.xml, but Resources.java fails loading it (it has several strategies to load external resources which all fail). It does work when I patch Pages.java to search for the files in /WEB-INF explicitly (as it does to lookup pages.xml). But, that's not really a solution since I'd have to run a patched version of Seam. I'm just stumped that the page.xml files cannot be loaded when they are in the root of the webapp, alongside the xhtml files.
Thanks for your help though!
Oh, one more thought: may be my servlet container precludes access to these files? Though facelets can freely load the xhtml files in the same location, so I doubt it...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068679#4068679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068679
18Â years, 8Â months
[JBoss Seam] - Best Seam Development Environment? (Switch from MC to EJB3)
by -Arthur-
Hi,
i am developing with seam for almost 3 months now.
I've switched my project from Spring/Hibernate to Seam/Hibernate and really like it.
I am currently using Seam 1.2.1GA with Microcontainer and hot deployment to Jetty (with Maven and Eclipse).
Now i would likte to migrate my project to EJB3 and Jboss AS for learning reasons. (I am student and really interested in Enterprise Web Development - im going to write my diploma about that topic)
Does anybody have some advices how i can switch my development environment for rapid web development? (I really don't want to restart the container every time i change a *xhtml file)
Some migration hints for switching my environment from plain Hibernate/MC to JPA EJB3 JBOSS AS would be very useful to me.
(Currently im developing alone)
How do you developing your applications with Seam and Eclipse (and maybe Maven)?
Thank you very much for answers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068678#4068678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068678
18Â years, 8Â months
[JBoss Seam] - How to handle concurrent requests from multiple users
by sverker
When several users are working on the same data set, how to best handle the concurrency with Seam?
In the specific case I have an application where approx 100 users concurrently work with registering and administrate contacts (i.e. add, edit, remove). The app is built with a stateful session bean as seam component which holds a list of contacts.
What is the best practice to trigger an update of the contacts list between users? I was looking at component events, but although it's not spelled out clearly it seams to me that those events are only propagated within one users context.
Another way could be to to send update events by jms, but a MDB doesn't have reference to my stateful session bean instance. Maybe make the SF bean a message listener itself?
This is of course an issue in a normal ejb application but it gets more noticeable with Seam as more state is held by Seam than normally is done when using stateless session bean as facades.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068677#4068677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068677
18Â years, 8Â months
[JBoss Seam] - Inserting into secondry table
by kaviarasu
hi
i want to insert values in primary and secondry table using JSF
im using one to many annotation to combine primary and secondry table
the secondry table is mapped as set
can any one tell how to inseert values in secondry table from jsf
i have pasted the coding below, the REVIEW_ENTRY_ID is primary key.
i have written trigger to insert review enteryId in secondry table when it is entered in primary, i want to insert reviewHeading in secondry table,
primary table
@Name("write")
| @Id
| @Column(name="REVIEW_ENTRY_ID")
| private BigDecimal reviewEntryId;
| @OneToMany(mappedBy="reviewEntryId")
| private Set<TblUserReviews> tblUserReviewsCollection;
secondry table
@Column(name="REVIEW_HEADING")
| private String reviewHeading;
| @ManyToOne
| @JoinColumn(name="REVIEW_ENTRY_ID")
| private TblReviews reviewEntryId;
JSF
<table border="0" style=" width : 771px;">
| <tr>
| <td>Rate the product</td>
| <td><rich:inputNumberSlider value="#{write.reviewEntryId}"/>
| </td>
| <td>
| </td>
| </tr>
| <tr style=" height : 6px;">
| <td>Review Title</td>
| <td><h:inputTextarea value="#{write.reviewHeading}" style=" width : 445px; height : 34px;"></h:inputTextarea>
| </td>
| </tr>
| </table>
Thank you
regards
Kaviarasu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068670#4068670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068670
18Â years, 8Â months