RE: [Wicket-user] Validating Subforms

2005-10-19 Thread Igor Vaynberg



I believe the keys were constructed 
using:

[form-id].[form-component-id].[validator-class-name] so the 
name fo the panel should not be part of the key.

check this out for an alternate 
approach:

http://www.wicket-wiki.org.uk/wiki/index.php/Validation_Messages

-Igor



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Nick 
  HeudeckerSent: Wednesday, October 19, 2005 8:30 PMTo: 
  wicket-user@lists.sourceforge.netSubject: [Wicket-user] Validating 
  Subforms
  Hi,I have a Form that I add a handful of Panels to. 
  Each Panel has a few form elements which I'd like to validate. I can add 
  elements like the RequiredTextField to the Panel, but what does the key in the 
  properties file look like? Something 
  like?myForm.myPanelName.someRequiredTextField.RequiredValidator=Foo is 
  required.But I don't know the name of the panel since it varies. 
  Any ideas? Thanks.


Re: [Wicket-user] Validating Subforms

2005-10-19 Thread Nick Heudecker
Thanks. I'll try it.On 10/19/05, Igor Vaynberg [EMAIL PROTECTED] wrote:





I believe the keys were constructed 
using:

[form-id].[form-component-id].[validator-class-name] so the 
name fo the panel should not be part of the key.

check this out for an alternate 
approach:


http://www.wicket-wiki.org.uk/wiki/index.php/Validation_Messages

-Igor



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Nick 
  HeudeckerSent: Wednesday, October 19, 2005 8:30 PMTo: 
  wicket-user@lists.sourceforge.netSubject: [Wicket-user] Validating 
  Subforms
  Hi,I have a Form that I add a handful of Panels to. 
  Each Panel has a few form elements which I'd like to validate. I can add 
  elements like the RequiredTextField to the Panel, but what does the key in the 
  properties file look like? Something 
  like?myForm.myPanelName.someRequiredTextField.RequiredValidator=Foo is 
  required.But I don't know the name of the panel since it varies. 
  Any ideas? Thanks.