If I write this in this way,
when error occured, it shows: txtCustomerID Value is required.
But I want to change txtCustomerID to support mulit language, it
should fetch value from resource bundle at first.
Can I do that? Is that means I have to rewrite all validator in My
Faces implementatio
One quick way to do it is to use t:message and the attribute summaryFormat.
You can take a look at the api at
http://myfaces.apache.org/tomahawk/tlddoc/index.html
From: "Anthony Hong" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion"
To: "MyFaces Discus
> Can I do that? Is that means I have to rewrite all validator in My
> Faces implementation?
Why rewrite? Reuse! Take a look at Shale's Commons Validator [1]
support. The messages are controlled by a properties file you can
customize, and you can even specify a unique message for a particular
Hi Anthony,I think you want to have the exact keys for the messages used by Myfaces by default.If you're using myfaces-all.jar, open it with Winrar or Winzip or whatever zipping tool, and go to javax/faces. You will find several properties files. If you open the
Messages.properties, you will find
Yes, I can redfine it in my properties.
What I mean is I want to use current my faces message in detail mode
but I don't want it output for id"
eg:
javax.faces.component.UIInput.REQUIRED_detail = "{0}": Value is required.
I want it to be
javax.faces.component.UIInput.REQUIRED_detail = Value is re
Anthony Hong wrote:
Yes, I can redfine it in my properties.
What I mean is I want to use current my faces message in detail mode
but I don't want it output for id"
eg:
javax.faces.component.UIInput.REQUIRED_detail = "{0}": Value is required.
I want it to be
javax.faces.component.UIInput.REQUIRE
6 matches
Mail list logo