Could you write a wiki page on that?
Martijn
On 10/16/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
But you can provide the proper label for the formcomponents. Thats what sparked the entire implementation. You can call FormComponent.setLabel(IModel) and pass in a model that contains the label, or have a property key with the path of the form component, ie person.name=Name. Then just use ${label} is required instead of ${name} is required.-Igor
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Martijn Dashorst
Sent: Sunday, October 16, 2005 6:20 AM
To: [email protected]
Subject: Re: [Wicket-develop] Use case: Form validation without messagesOn 10/16/05, Ralf Ebert <[EMAIL PROTECTED]> wrote:Hi,
> Interesting approach. I don't think we'll support this out of the
> box, as it is very basic, and your approach is very easy to implement by other
> users.
hmm, I think the approach of having no messages by default could be
more suitable, because the default messages will (if I get it right)
show the internal id which could be not very helpful to the user
(because the label before the form component could be entirely
different).
I see what you mean. The 'label' should be i10n or i18n (I can't keep them apart) -ized
as well. No point in a Chinese application showing 'person.name' next to some chinese
traditional characters.
> If you don't mind, I've created a wiki page with your description
> for your usecase.
No problem at all with that; although I'm not sure if my code is
written well-enough for general usage (I was very solution focused
when writing this) - I'm especially unsure about adding the
AttributeModifier in the onBeginRequest method of the form...
When someone has a better idea (or you yourself) the wiki can be altered. That's why it is a wiki!
Martijn
