Re: way to traverse / get all form validators

2008-05-06 Thread michalb_cz

Sure I can - it's reported as 
http://issues.apache.org/jira/browse/WICKET-1592 WICKET-1592 

Michal 


Eelco Hillenius wrote:
> 
> Good point. Looks to me like it is something we overlooked. We should
> probably add a method to get the form validators of a form.
> 
> Could you open an RFE for that please?
> 
> Eelco
> 
> On Mon, May 5, 2008 at 2:31 AM, michalb_cz <[EMAIL PROTECTED]> wrote:
>>
>>  thank you for response, but I need it for Form object - to get all
>>  IFormValidator objects associated with the Form object - through
>>  form.add(IFormValidator)
>>  --
>>  View this message in context:
>> http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17080296.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]



Re: way to traverse / get all form validators

2008-05-05 Thread Eelco Hillenius
Good point. Looks to me like it is something we overlooked. We should
probably add a method to get the form validators of a form.

Could you open an RFE for that please?

Eelco

On Mon, May 5, 2008 at 2:31 AM, michalb_cz <[EMAIL PROTECTED]> wrote:
>
>  thank you for response, but I need it for Form object - to get all
>  IFormValidator objects associated with the Form object - through
>  form.add(IFormValidator)
>  --
>  View this message in context: 
> http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.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]



Re: way to traverse / get all form validators

2008-05-05 Thread michalb_cz

thank you for response, but I need it for Form object - to get all
IFormValidator objects associated with the Form object - through
form.add(IFormValidator)
-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.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]



Re: way to traverse / get all form validators

2008-05-04 Thread Eelco Hillenius
On Fri, May 2, 2008 at 11:56 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> there is
>  final List getValidators() {...} on FormComponent

which you can use like this:

Use a visitor, like:

visitChildren(FormComponent.class, new IVisitor() {
  public Object component(final Component c) {
FormComponent fc = (FormComponent)c;
List validators = c.getValidators();
...
  }
}


Eelco

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



Re: way to traverse / get all form validators

2008-05-02 Thread Gerolf Seitz
there is
final List getValidators() {...} on FormComponent

  Gerolf

On Fri, May 2, 2008 at 4:17 PM, michalb_cz <[EMAIL PROTECTED]> wrote:

>
> Is there some way how to traverse all validators which are associated
> (added
> through the add(IValidator) method) with the form? I look for something
> like
> get(IValidator) [like List.get(Object obj) method] or List
> getValidators() methods on Form component
> --
> View this message in context:
> http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.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]
>
>


way to traverse / get all form validators

2008-05-02 Thread michalb_cz

Is there some way how to traverse all validators which are associated (added
through the add(IValidator) method) with the form? I look for something like
get(IValidator) [like List.get(Object obj) method] or List
getValidators() methods on Form component 
-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.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]