Vinc Coop

Greenhorn
+ Follow
since Jul 14, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vinc Coop

which server do you use?

I can say that with my glassfish as the example works and no exception is thrown. please post additionally the exception text.

I hope i could help you
14 years ago
JSF
Hi

I think you don't have to acess the database but at least you have to access a kind of persistence layer such as hibernate. because the two sessions of A and B are stored in different threats so it could be difficult to communicate between 2 threats. so you would create a table in a database named message(ID,fromUserID,toUserID,Title,Content). the next you have to map the table into a java class and the work is done. now a hibernate session works parallel to the database and if you won't flush the session there would be no database accesses. now users can create messages that will be stored as javabeans in the hibernate sessions(take the method save() of the MessageDAO) if you want to access the messages you just have to implement a method in every user bean that will peform the findByToUserID() method and return a list of all the messages. remember if you dont call session.flush() the table message always stays empty.

I hope i could help you

Vinc
14 years ago
JSF
hey

I m working at a simple example in jsf. excuse me if this problem is already solved anywhere else.

I have got 2 sites. on the one site there is a button navigating to the other site, where is another button whicht should navigate to the first site. The problem is that the first navigationrule works and the other doesnt work. it just reloads the page ShowUser.jsp without redirecting to EingabeUserID.jsp as in faces-config configured.

thank you for help

Corristo

for those who need some information about my project:

index.jsp:




first site EingabeUserID.jsp:



second site ShowUser.jsp:



faces-config.xml:



web.xml:


14 years ago
JSF