Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
23. Jun 2008, 15:06 CET | Link

Hello All, 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.

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

Thanks in advance, Srinivas

7 Replies:
23. Jun 2008, 15:34 CET | Link

Post your code. Does it work in other browsers?

I test on Safari and haven't seen many differences from Firefox (the only one I can think of offhand is that checkboxes have no onchange event).

Cheers,

Damian.

23. Jun 2008, 15:52 CET | Link

Hello Damian,Thanks for the Quick reply.My Project having a requirement to support IE and Firefox in Windows and Safari on Mac.The above problem works fine for IE and Firefox in Windows.

The code snippet of HTML Page form definition is as below.

regform.seam -------------- <h:form onsubmit="javascript:return doSubmit();"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="5" class="general_font_01"> <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 class="error_msg" > <table cellpadding="0" cellspacing="0" border="0" width="100%" > <tr> <td width="7%"><img src="../common/images/webpro/error_info.gif" /></td> <td class="normal_font" 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 class="error_footer_bg" 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">&#160;</td> <td width="59%" colspan="2" style="padding-left:10px">&#160;</td> </tr> <tr> <td width="41%" align="right" nowrap="nowrap" valign="top">E-mail Address:</td> <td colspan="2" style="padding-left:10px"><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" style="padding-left:10px"><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" style="padding-left:10px"> <h:inputSecret id="Re-confirmPassword" value="#{register.verify}" styleClass="input_font" required="true" size="30" /></td> </tr> <tr> <td align="right">&#160;</td> <td colspan="2" style="padding-left:10px"> <h:commandButton id="registerUser" value="Login" action="#{register.register}"/></td> </tr> </s:validateAll> </table> </h:form> The under leying EJB code as below. @Stateful @Scope(EVENT) @Name("register") public class RegisterAction implements Register { @In @Out private User user; @EJB private Login loginAction; @Logger private Log log; @In private FacesMessages facesMessages; public String register() { System.out.println("Entering RegisterAction::register().."); .... .... } } Thanks, Srinivas

23. Jun 2008, 15:55 CET | Link

Sorry for the ugly code snippet.I am new to this forum.I just added regform.xhtml file and underlying EJB.

Thanks, Srinivas

23. Jun 2008, 16:38 CET | Link

Sorry but that's only readable by machines and savants.

In the reply editor, just highlight the code and select Code Block from the Format Selected Text... drop down. Click on the Preview on until it appear how you want.

Cheers,

Damian.

24. Jun 2008, 07:14 CET | Link

Hello damian,

I am trying to paste the code in this box and selecting Code Block from drop down.It is giving the following error message... Text parsing error at '...e... Html <f:view>...' (unexpected token: <)

Can u please suggest me if i am any thing wrong.

Thanks, Srinivas

24. Jun 2008, 08:10 CET | Link

escape your < with a backslash. (.e.g. \<)

 
Dan Hinojosa Seam :: Groovy :: Swing Developer/Consultant/Instructor Albuquerque, NM
24. Jun 2008, 08:12 CET | Link

Or better yet just use code-formatting, use ` (back tics)...click on help button for more info.


<html>
 
Dan Hinojosa Seam :: Groovy :: Swing Developer/Consultant/Instructor Albuquerque, NM