dcsimg
Struts action in Faces
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Wayne_Meyer
Posted On:   Friday, December 10, 2004 12:06 AM

I've migrated my Struts 1.1 application to Struts-Faces.
I have a problem with automatically triggering a Struts Action (refresh cycle). Without a user action (e.g. submit button).
Under Struts 1.1 I only needed to do:

document.forms[0].submit();


With Struts-Faces simply submitting the form does not trigger a Struts Action.
Can somebody please point me in the right direction?

Re: Struts action in Faces

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, December 11, 2004 09:34 AM

I am just starting to read about JSF, but I think if you are using the struts-faces integration, you have to configure things first, right? and requests go to JSF first when they are submitted, and then if configured right, it will hand them through the RequestProcessor to invoke your Struts Action, right? so I think your same "document.forms[0].submit" should work, if you have configured everything correctly?
About | Sitemap | Contact