JSF Navigation & more: Urgent

Hi everyone,

I am new to jsf, as my new project will roll out on jsf, I am trying to learn it and put various elements of jsf into respective places. however I hv come across major doubts related to action listeners and more. As per the requirement of my application I wrote down the flow as follows

1) jsp through action listeners calls a listener method in managed beans

2) action listener method in the bean delegates the job to a action handler and passes it a reference of managed beans.

3) action handler uses managed beans to populate DAO objects. here I carry out some more stuff to convert this dAO into xml and sending it to a server (http post) which again sends an xml as response. I format this xml into DAO objects. So handler has access to dAO objects which I need to use in JSP page.

Now where do i say that after all this my control goes to this jsp. (some jsp) I dont figure out how faces-config.xml will help me here.

also in jsf what will be the proper way to make available my DAO objects in JSP.

replies awaited

Thanks in advance...

[1109 byte] By [tizia] at [2007-11-26 18:38:27]
# 1

1)U can use faces-config.xml when u want to display the another jsp page. For ex if u have button on one page and after click of that button u want to display values from DAO object to other jsp page, u can write this navigation in faces-config.xml. But if u dont want to display the values in other jsp(display records on the same jsp), then u dont require navigation in faces-config.xml.

2)To make available DAO object to jsp u can declare one DAO reference in the managed bean. And the flow will be like JSP->Listener method ->Action handler->DAO and then DAO->Action handler

->Managed Bean->JSP.

RavindraKshirsagara at 2007-7-9 6:12:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...