Hi,
I have the problem, that I can't show the messages generated by the
build in validation mechanism of myFaces because in all languages the
name of an inputfield shown in the message is the id of the
inputfield, and this id is not dynamic. So I can't change it for
different languages.
The
what about customize the bundle of messages?
2007/5/30, Rudi Steiner [EMAIL PROTECTED]:
Hi,
I have the problem, that I can't show the messages generated by the
build in validation mechanism of myFaces because in all languages the
name of an inputfield shown in the message is the id of the
Hi Sammy,
by modifying the bundle, I can't change the parameter passed to the
message. If I for example have a inputfield like this:
h:inputText id=DescrD required=true
value=#{PriorityEditBean.priority.prioDescriptionD}/
So the generated message is something like
Validationerror DescrD:
I mean
1) cut DescrD from bundle so that message will be value required
only in appropriate language (the message is near the field so that
the field name is not really necessary to me)
2)extend message loader in order to translate upon a key/language
dictionary a proper name for the fields
Hi Sammy,
I can't show the message near the inputfield, so I have to use
h:messaes/ which shows a list of all messages for the page. Thats
why the name of the field within the message is important.
I don't understand what you mean by your second proposal. Which class
should I extend and where
see
http://www.laliluna.de/javaserver-faces-message-resource-bundle-tutorial.html
for some info about that..
any way it seems to me that your problem is only with the
requered=true validation.
why not set required=false and add this type of validation in your
custom - interationalized
Hi Sammy,
I found a solution here:
http://forum.java.sun.com/thread.jspa?threadID=5115563messageID=9419018
The solution is
t:messages showDetail=true replaceIdWithLabel=true/
Thanks,
Rudi
On 5/30/07, ::SammyRulez:: [EMAIL PROTECTED] wrote:
see
cool... bookmarked!
2007/5/30, Rudi Steiner [EMAIL PROTECTED]:
Hi Sammy,
I found a solution here:
http://forum.java.sun.com/thread.jspa?threadID=5115563messageID=9419018
The solution is
t:messages showDetail=true replaceIdWithLabel=true/
Thanks,
Rudi
On 5/30/07, ::SammyRulez:: [EMAIL
8 matches
Mail list logo