JBoss Seam - JSF Problem with Safari browser for Seam enabled Form Posting.

I am having a problem with safari browser when the seam enabled form being submitted, the request is naither hitting the intended EJB which is running in the server nor validation is happening.Instead the page just getting refreshed and coming back.I am using s:validateAll seam tag in my web page.The code snippet is shown bellow.

<f:view>
<h:form onsubmit="javascript:return doSubmit();">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="5" >

<s:validateAll>


<tr>
<td colspan="3" align="right" nowrap="nowrap">
<h:panelGrid columns="1" cellpadding="2" cellspacing="0" width="100%" rendered="#{! empty facesContext.maximumSeverity}" ><table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td >
<table cellpadding="0" cellspacing="0" border="0" width="100%" >
<tr>

<td width="7%"><img src="../common/images/webpro/error_info.gif" /></td>
<td valign="top">
<table cellpadding="0" cellspacing="0">
<tr>
<td><h:messages layout="table" globalOnly="true" showDetail="false" showSummary="true" styleClass="normal_font"/></td>
<td><h:message for="E-mailAddress" styleClass="normal_font" /></td>
<td><h:message for="Password" styleClass="normal_font" /> </td>
<td><h:message for="Re-confirmPassword" styleClass="normal_font" /> </td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>

<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%" >
<tr>

<td><img src="../common/images/webpro/error_01.gif" /></td>
<td width="100%"></td>
<td><img src="../common/images/webpro/error_02.gif" /></td>
</tr>
</table> </td>
</tr>

<tr>
<td height="5"></td>
</tr>
</table>
</h:panelGrid> </td>
</tr>
<tr>
<td align="right" nowrap="nowrap"> </td>
<td width="59%" colspan="2" > </td>
</tr>
<tr>
<td width="41%" align="right" nowrap="nowrap" valign="top">E-mail Address:</td>
<td colspan="2" ><s:decorate>

<h:inputText id="E-mailAddress" value="#{user.username}" styleClass="input_font " required="true" size="30"> </h:inputText><br/>
<a:outputPanel id="usernameErrors" styleClass="error_font"><s:message/></a:outputPanel>

</s:decorate></td>
</tr>
<tr>
<td align="right">Password:</td>
<td colspan="2" ><s:decorate>
<h:inputSecret id="Password" value="#{user.password}" styleClass="input_font" required="true" size="30"> </h:inputSecret>
<h:inputHidden id="TargetView" value="#{user.targetView}" > </h:inputHidden>
<br/>
<a:outputPanel id="passwordErrors" styleClass="error_font"><s:message/></a:outputPanel>
</s:decorate> </td>
</tr>
<tr>
<td align="right">Re- Confirm Password: </td>
<td colspan="2" > <h:inputSecret id="Re-confirmPassword" value="#{register.verify}" styleClass="input_font" required="true" size="30" /></td>
</tr>
<tr>
<td align="right"> </td>
<td colspan="2" > <h:commandButton id="registerUser" value="Login" action="#{register.register}"/></td>
</tr>
</s:validateAll>
</table>
</h:form>

I am struggleing from past one week .Any Suggitions will be really appriciated.

1 comment
Comment actions Permalink

The OS i am running safari is on Mac.

Thanks in advance,
Srinivas

0

Please sign in to leave a comment.