Martin,
I did this by creating a properties file MyPanel.properties and then setting
creditCardForm.ccNumber.Required=Please enter your credit card number.
Did you try setting form.componentId.Required? Or even 
panel.form.componentId.Required
Russ
> Date: Sun, 2 Aug 2009 12:19:40 +0300
> Subject: Problem with Required component message
> From: martin.maku...@koodaripalvelut.com
> To: users@wicket.apache.org
> 
> Hi!
> 
> I have a page with some required fields among which there is one
> specific field I want to return a specific required validation error
> message, if value not given.
> 
> I have tried to put "componentId.Required=Unique error message" into
> Application.properties but it does not work. Instead Wicket always
> returns the standard Required error.
> 
> Debugging deeper into the problem shows that Wicket constructs a
> dot-notation component path of the requied component:
> page.panel.form.nested_panel.listview.index.componentId.Required and
> tries to look for a property with such name. If not found, it next
> tries to look for Required alone and if it is found, it returns that
> (if Required was not found, it would continue dropping one prefix at a
> time until it would reach the assumed componentId.Required).
> 
> This code is in:
> ComponentStringResourceLoader.loadStringResource(final Component
> component, final String key)
> 
> Is there a flaw in the logic or am I doing something wrong here?
> 
> **
> Martin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Reply via email to