see formcomponentpanel

-igor

On Wed, Sep 10, 2008 at 1:59 AM, ulrik <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I have a webpage with this structure:
>
> <html>
>  <body>
>    <form wicket:id="form>
>      <div wicket:id="addressPanel"/>
>      <input type="submit" wicket:id="submitButton"/>
>    </form>
>  </body>
> </html>
>
> The addressPanel is a panel containing a number of TextFields, like this:
> <wicket:panel>
>  <input type="text" wicket:id="street"/>
>  <input type="text" wicket:id="postBox"/>
>  <input type="text" wicket:id="number"/>
> </wicket:panel>
>
>  What I would like to do is attach some sort of validator on the
> addressPanel. When I submit the form I would like to make a conditional
> validation on the textfield. And by that I mean for example:
>
> If the user has entered something in the textfield with id "street" the
> input field with id "postBox" is not required. And if the user has entered
> something in the "postBox" field, the "street" field is should not be
> required.
>
> Is this by any change possible to do?
>
>
> --
> View this message in context: 
> http://www.nabble.com/Custom-Validator-on-Panel-tp19409373p19409373.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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