Hi The following is my html:-

<html>

  <head>

    <title>Guess the Word</title>

  </head>

  <body [EMAIL PROTECTED]>

      <h2>Guess the Word</h2>
      

      <form action="" jwcid="@Form" listener="listener:onWordSubmit"  >
        <table>
          <tr>
           <td><label jwcid="@FieldLabel" field="component:userName">User
Name</label>
              </td>
          <td><input jwcid="[EMAIL PROTECTED]" value="ognl:userName"
validators="validators:required" 
                                     displayName="Login Name" size="30"/>
          </td>
          </tr>
          
          <tr>
         <td><label jwcid="@FieldLabel" field="component:userPassword">User
Name</label></td>
                           <td><input jwcid="[EMAIL PROTECTED]"
value="ognl:userPassword" hidden="literal:true"
validators="validators:required" 
                                        displayName="Login Password"
size="30"/>
            </td>
        </tr>
          
         </table>          

          <input type="submit" value="Submit">

      </form>

  </body>

</html>



In page specification I have written nothing.the following is my page
specification.

<page-specification class="com.kensium.tapestry.first.Secret">
</page-specification>



In java class the following is the code:-

public abstract  class Secret extends FPSBasePage{
        
                
               @InitialValue("literal:Murali")
             public abstract String getUserName();
            
            public abstract String getUserPassword();
         
        public IPage onWordSubmit(IRequestCycle cycle) {
                
                One nextPage = (One) cycle.getPage("One");
                nextPage.setUserName(this.getUserName());
                return nextPage;
                }

Please kindly look into this issue. I have given required validator as shown
in the user guide (you can see that in my html file). In the user guide they
have not shown any other configuration but the "required" is not working. I
am able to move to the next page without any values in the password field
and username field 

Warm regards,
Muralidhar Y
[EMAIL PROTECTED]
 
US Main: 877 KENSIUM (536.7486)
India Main:  +91 9949495511
India Fax:   +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
 
 
Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
 
________________________________

 
-----Original Message-----
From: Jonathan Barker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2008 10:28 PM
To: 'Tapestry users'
Subject: RE: problem with validators


Please include the portion of the HTML that includes the Form.

Please include your page class code... at least any form-related methods,
but preferably the whole file.


Jonathan



> -----Original Message-----
> From: Muralidhar Y [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 03:32
> To: users@tapestry.apache.org
> Subject: problem with validators
> 
> Hi friends, I am working on tapestry4.1. I have problem with validators.
> In the html file I have done the following
> 
> 
> 
> <tr>
> 
>    <td><label jwcid="@FieldLabel" field="component:userName">User
> Name</label></td>
> 
>    <td><input jwcid="[EMAIL PROTECTED]" value="ognl:userName"
> validators="validators:required" displayName="Login Name" size="30"/>
> 
> </td>
> 
> </tr>
> 
> 
> 
> After I kept the validator required also I am able to move to the nextpage
> with empty username. The username field is empty still when I click on
> submit I am able to move to the next page which is not expected. Do I have
> to do any additional things in the html file? Thanking you so much.
> 
> 
> 
> 
> 
> 
> 
> Warm regards,
> 
> Muralidhar Y
> 
> [EMAIL PROTECTED]
> 
> 
> 
> US Main: 877 KENSIUM (536.7486)
> India Main:  +91 9949495511
> 
> India Fax:   +91 9949495522
> 
> Kensium
> 
> 200 S Wacker Dr, Suite 3100
> 
> Chicago, IL 60606
> 
> 
> 
> 
> 
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
> 
> 
> 
>   _____
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to