version:2.1.X 
Ajax Validation has bug with <sx:tabbedpanel> tag when Form is "simple"
theme

when below jsp is submited,a alert box will be show with text:Could not
validate: XXXX

<s:form action="login" theme="simple" >

        <table >
        <caption><h3>User Login</h3></caption>
        
        <tr>
        <td><s:text name="input.account"/></td>
        <s:fielderror/>
        <td><s:textfield  name="account"  /></td>
        </tr>
        
        <tr>
        <td><s:text name="input.password"/></td>
        <s:fielderror/>
        <td><s:textfield name="password" /></td>
        </tr>
                
         <tr>
          <td>
          </td>
        <td >           
           <s:submit key="login.register" name="action:registerinput" />        
   
           <sx:submit key="input.submit" validate="true"
showLoadingText="false" />
                
        </td>
          
          </tr>
        </table>
        </sx:div>
        </sx:tabbedpanel>
        
        
        
</s:form>


But if i remove <sx:tabbedpanel> tag like following:

<s:form action="login" theme="simple" >
        
        <sx:tabbedpanel id="tab">
        <sx:div label="User Login" >
        <table >
        <caption><h3>User Login</h3></caption>
        
        <tr>
        <td><s:text name="input.account"/></td>
        <s:fielderror/>
        <td><s:textfield  name="account"  /></td>
        </tr>
        
        <tr>
        <td><s:text name="input.password"/></td>
        <s:fielderror/>
        <td><s:textfield name="password" /></td>
        </tr>
                
         <tr>
          <td>
          </td>
        <td >           
           <s:submit key="login.register" name="action:registerinput" />        
   
           <sx:submit key="input.submit" validate="true"
showLoadingText="false" />
                
        </td>
          
          </tr>
        </table>

        
        
        
</s:form>


The Ajax validation worked successful!


If I change the form theme to xhtml and still left <sx:tabbedpanel>

the validation worked succesful!

if I set form theme "simple" and remove <sx:tabbedpanel> but left<sx:div>

when jsp is submited,a alert box will be show with text:Could not validate:
XXXX


anybody can confirm this is a struts bug? or my setting issue?



-- 
View this message in context: 
http://www.nabble.com/Ajax-Validation-has-bug-with-%3Csx%3Atabbedpanel%3E-tag-when-Form-is-%22simple%22-theme-tp24477591p24477591.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to