You don't even need to do that when you have a resource with the name
formid.firstName
of just
firstName
Erik.
craigdd schreef:
Sorry, should have read a few more posts...here is the solution to the
different message.
new RequiredTextField(firstName).setLabel(new
So you are saying as long as you have the following in the .properties of the
page formid.firstName=My Label, I don't even need to set the label in the
form code?
Very Nice.
Erik van Oosten wrote:
You don't even need to do that when you have a resource with the name
formid.firstName
of
Correct.
Well, unless you also use FormComponentLabel.
Erik.
craigdd schreef:
So you are saying as long as you have the following in the .properties of the
page formid.firstName=My Label, I don't even need to set the label in the
form code?
Very Nice.
--
Erik van Oosten
I noticed that when using a RequiredTextField that the validation message
that comes up if no value was added to the textfield is the name of the
component. In other words I have a page backed my a model object that has a
property called firstName. The message that comes up is firstName is
Or maybe another option would be to show the message The Following Fields
are Required and then show something like a red astrick by the fields that
are required.
\
craigdd wrote:
I noticed that when using a RequiredTextField that the validation message
that comes up if no value was added
Sorry, should have read a few more posts...here is the solution to the
different message.
new RequiredTextField(firstName).setLabel(new
ResourceModel(resource.key));
craigdd wrote:
I noticed that when using a RequiredTextField that the validation message
that comes up if no value was