[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2008-01-23 Thread ristretto
I want thank the posters of this thread so much for this topic. I am learning JSF, Seam and Facelets all at the same time. (I have been coding Java since version 1.0.2, but slipped a bit behind the curve as of late.) I didn't see the messages.properties connection in the Seam documentation I

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-30 Thread ruettimac
I just discovered, that the validation messages from hibernate validator are displayed as in the hibernate validator message bundle except for instance the @NotNull - this is coming from the JSF framework because I have to switch on the attribute required=true. I have now modified

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-30 Thread [EMAIL PROTECTED]
required=true/@NotNull is the only point at which you have to break DRY. This is currently unavoidable, sorry. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116111#4116111 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
I am fighting with the same problem. I have the following setup: | ?xml version=1.0 encoding=UTF-8? | faces-config version=1.2 | xmlns=http://java.sun.com/xml/ns/javaee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
The outcome for a german browser is: anonymous wrote : Vorname: | | register:firstNameDecorate:firstName: Validierungs-Fehler: Wert wird benötigt. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116014#4116014 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread IGx89
Did you see my previous post? There are (at least) three solutions available for that problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116036#4116036 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116036

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
Please can you explain solution 2 3 a litte bit further? I do not know what you mean. The input component has no such attribute for instance. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116038#4116038 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
My Facelets-Editor just did not showed me those two attributes - but they are listed in the JSF-Javadoc: - label -- The error output is still very noise, but not so cryptical as before - requiredMessage -- I do a lot of work (translations) I not want to do again Maybe I should dive a bit into

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-07 Thread IGx89
Thanks for the help guys. Here are the different possible fixes I've found, for reference: 1. In WEB_INF/classes/messages_XX.properties, put: javax.faces.component.UIInput.REQUIRED=Value is required The default value is {0}: Validation Error: Value is required. 2. Use the label attribute on the

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread [EMAIL PROTECTED]
Set the correct message in messages.properties javax.faces.component.UIInput.REQUIRED=value is required View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111017#4111017 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111017

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread IGx89
But if I do that, maybe changing it to required value, wouldn't that just change the resulting error to formId:panelId:controlId: Validation Error: required value? That doesn't help at all :/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111020#4111020 Reply

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread whafrog
The default messages are parameterized, I think the form control is {2}. You can include these parameters or not when you override. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111047#4111047 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread gsegura
I experienced this too, I started from jpa example. At first the message displayed correct (with no Id). Although it doesn't seems related (and I didn't have time find out exactly the reason) I think it was about messing around with the default language and not including the proper