7 Replies Latest reply on Jun 4, 2009 7:22 AM by Nick Belaevski

    Can not Validate

    benziman kirism Newbie

      Hi all.

      i have the index page look like as the following page:

      <html>
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>JSP Page</title>
       </head>
       <body>
       <form
       <f:view>
      
       <h:form>
       <table border="0" cellpadding="0" cellspacing="0" style="left: 102px; width: 820px;
       position: absolute; top: 0px">
       <tr>
       <td colspan="3" style="width: 820px; height: 128px" valign="top">
       <jsp:include page="/pages/header.html" flush="true"/>
       </td>
       </tr>
       <tr>
       <td colspan="3" style="border-top: #ffffff 1px outset; width: 820px;background-color: #ffddcc;" valign="top">
       <jsp:include page="/pages/Menu.jsp" flush="true"/>
       </td>
       </tr>
       <tr>
       <td style="width: 180px; height: 19px ;background-color: #ffffcc;" align="center" valign="top">
      
       <jsp:include page="/pages/MenuLeft.jsp" flush="true"/>
       </td>
       <td colspan="2" style="width: 640px; height: 600px" valign="top">
       <a4j:outputPanel>
       <a4j:include viewId="/CreateAccount/wstep1.jsp"/>
       </a4j:outputPanel>
       </td>
       </tr>
       <tr>
       <td colspan="3" style="height: 25px" valign="top">
       <jsp:include page="/pages/footer.jsp" flush="true"/>
       </td>
       </tr>
       </table>
       </h:form>
       </f:view>
      
      
       </body>
      </html>


      i inserts into the index page view on the outputPanel in which the page is wstep1.jsp.

      In this case , i can not validate form of clicking on the next Button . to look like all action on this wstep1.jsp page is not available .

      if i run the wstep1.jsp is individual , i can validate the form when click on the next button.

      this is wstep1.jsp

      <
      html>
      
      <head>
       <link href="../css/style.css" rel="stylesheet" type="text/css"/>
      </head>
      <body>
      
      
      
       <h:panelGrid style="width:600px;" columns="2" border="0">
       <rich:panel header="Provide persional Information for Primary Account Holder:" style="background-color: #ebf3fd;">
       <h:form >
       <div style="position:relative;height:225px" align="center">
      
       <h:panelGrid rowClasses="s1row" width="550px" columns="4" >
       <h:outputText value="First Name:" />
       <h:inputText id="fn" value="#{Profile.firstName}" label="First Name" required="true" />
       <h:outputText value="Last Name:" />
       <h:inputText id="ln" value="#{Profile.lastName}" label="Last Name" required="true" />
       <h:outputText value=" "/>
       <rich:message for="fn" />
      
       <h:outputText value=" "/>
       <rich:message for="ln" />
      
       <h:outputText value="Email:" />
       <h:inputText id="email" value="#{Profile.email}" label="Email" required="true" />
       <h:outputText value="Verify Email:" styleClass="outputtext"/>
       <h:inputText id="verify" value="#{Profile.confirmEmail}" label="Verify Email" required="true"/>
       <h:outputText value=" "/>
       <rich:message for="email"/>
       <h:outputText value=" "/>
       <rich:message for="verify"/>
       <h:outputText value=" "/>
       <h:selectOneRadio value="#{Profile.typeaccount}" styleClass="outputtext">
       <f:selectItems value="#{Profile.typeAccountItems}"/>
       </h:selectOneRadio>
      
       </h:panelGrid>
      
       <a4j:commandButton style="float:right" action="next" value="next" styleClass="submitButton"/>
      
      
       </div>
      
       </h:form>
       </rich:panel>
       </h:panelGrid>
      
      
      
      
      </body>
      </html>


      please give me advice.

      thank regards
      skaka09