Struts and JSF integration

J

JoseDimitri

I have problem with <s:form> tag (struts-faces). Action specified in
the tag attribiute doesn't work. I have a form: (an I use struts-
tiles)

<s:form action="/LoginSubmit"
focus="login"
onsubmit="return validateLoginFormBean(this);">

<h:panelGrid columns="2"
styleClass="form-background"
headerClass="form-header"
columnClasses="form-prompt,form-field"
footerClass="form-footer"

<f:facet name="header">
<s:message key="loginForm.header"/>
</f:facet>

<h:eek:utputLabel for="login">
<s:message key="loginForm.login"/>
</h:eek:utputLabel>

<h:inputText id="username"
size="16"
value=""/>

<h:eek:utputLabel for="password">
<s:message key="loginForm.pass"/>
</h:eek:utputLabel>

<h:inputSecret id="password" size="16" value=""/>

<h:commandButton id="submit"
type="SUBMIT"
styleClass="command-single"
value="Log On"/>

<h:commandButton id="reset"
type="RESET"
styleClass="command-single"
value="Reset"/>




<f:facet name="footer">
<s:message key="loginForm.pass"/>
</f:facet>

</h:panelGrid>
</s:form>

When I click on the button the url change to location of my tiles
layout (in my case WEB-INF/jsp/laypot/layout.faces) and action
specified in attribute didn't executed. I use latest snapshots of
myFaces jars and snapshot of struts. I also read that this problem is
resolved but I cant't find problem resolution on net.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top