see FormComponent.MessageSource for resource resolution.

FormComponent.error(ivalidationerror) already has a todo in there to
make the error show tried keys, just havent gotten to it yet. perhaps
if you file a jira issue the priority of that todo will move up..

-igor



On Thu, Mar 6, 2008 at 11:10 AM, AshleyAbraham <[EMAIL PROTECTED]> wrote:
>
>  Hi everyone,
>      I am having problems with finding resource keys for formComponents in a
>  form which has two panels of the same kind. My formcomponents are inside
>  couple levels of panels from the form and I am having hard time to figure
>  out the resource key for those formComponents. Is there an easy way to
>  figure out the resource key for those formComponents?
>
>  I am using Wicket wizard and in one of the steps I have a WebMarkupContainer
>  (AddressGroupbox) which has two Panels (physicalAddress and mailingAddress)
>  which are of  the same class AddressPanel. The AddressPanel has
>  formComoponents like addressLine1, 2, 3, city, state, and zipCode in it, and
>  most of them are set as required. So, when I submit the empty form, all I am
>  getting is the general required error in the feedback.
>
>  I've tried setting the custom required error messages in that particular
>  WiardStep's properties file using
>  addressGroupbox.physicalAddress.addressLine1.Required=Physical Address Line
>  1 is required, and so on. But wicket is not finding the custom error
>  messages and it uses the default ones. But when I just put
>  addressLine1.Required=Address Line 1 is required in the WizardStep's
>  properties file, then both of the addressLine1 formcomponent from
>  physicalAddress and mailingAddress Panel uses the same error message for
>  addressLine1.
>
>  Can someone help me identify what I am doing wrong or what I should do or
>  how to find the resource key wicket is using to search for those two address
>  panels.
>
>  Thanks
>  Ashley
>  --
>  View this message in context: 
> http://www.nabble.com/Having-problems-with-resource-keys-in-a-form-which-has-two-panels-of-the-same-kind-tp15881597p15881597.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