As the show-case shows, the action name maps to the jsf page name, for instance, if action name is "list", the according jsf name is "list.jsp" under the package /jsf/employee.
<package name="jsf.employee" extends="jsf" namespace="/jsf/employee"> <action name="list" class="org.apache.struts2.showcase.jsf.JsfEmployeeAction" method="list"> <result name="success" type="jsf" /> </action> <action name="edit" class="org.apache.struts2.showcase.jsf.JsfEmployeeAction"> <result name="success" type="jsf" /> </action> <action name="delete" class="org.apache.struts2.showcase.action.EmployeeAction" method="delete"> <result name="error" type="redirect">list.action</result> <result type="redirect">list.action</result> </action> </package> But I am not sure if my understanding is correct: my integration with jsf plugin failed. I do not know if I need to add a myfaces listener in web.xml. A+ lupus Aram Mkhitaryan wrote: > > Maybe I should create a new thread, but my question is related to this > one > and > maybe if we clarify my problem, the current thread's problem will be > solved > as well. > > The main problem for me is configuration! > > I'm quite new to JSF, especially Facelets, and there is something that is > not clear to me, > which is > > in faces-config.xml we should define navigation rules that is the source > document (referrer, <from-view-id>/listBooks.jsp</from-view-id>) and the > possible results (view id (action), > <from-outcome>listBooks</from-outcome>, > and the result page (jsp or facelet's xhtml), > <to-view-id>/listBooks.jsp</to-view-id>), > but in struts2 i can define restful action names like > "document/*/*/list/*/**" and the question is : > What will be the navigation configuration for this action? > > the answer is not clear since when defining jsf results for actions we > just > specify the resultType and name like this > <result name="success" type="jsf" />, > What about the <from-view-id>/listBooks.jsp</from-view-id>, > <from-outcome>listBooks</from-outcome>, > <to-view-id>/listBooks.jsp</to-view-id> and the > <managed-bean>...</managed-bean>??? > > please, send the configuration for the action mentioned above > > It's too urgent, please help, > Thank you in advance, > Aram > ________________________________ > Aram Mkhitaryan > > 52, 25 Lvovyan, Yerevan 375000, Armenia > > Mobile: +374 91 518456 > E-mail: [EMAIL PROTECTED] > > -- View this message in context: http://www.nabble.com/How-to-use-struts-2-JSF-plugin--Help-pls%21%21%21-tf4178602.html#a11925611 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]