« Return to Thread: TextField with Separate Label

Re: TextField with Separate Label

by Yves G :: Rate this Message:

Reply to Author | View in Thread

Hi

I have the same request as Chaminda.  
If my textfield is rather deep in the component tree, it can leads to things like this on validation error :
"form1:layoutPanel3:propertySheet1:secPresentation:property11:txtNumero: Validation Error: Value is required" which is not really user friendly. I've tried to override it in a message bundle with  without success :
javax.faces.component.UIInput.REQUIRED="{0}": Required field

Thanks

Chaminda wrote:
Hi Folks,

Im using VWP with NB6.0., When I use a separate label for a text field (by setting "for" property of label)the error message of the message group  shows the text field's name (that means like "pagename:formname:textfieldname") other than the Label.text of the associated label.

Here is a message that shows "form1:mainPanel:projectNameTextField: Validation Error: Value is required" but I want "Project Name: Validation Error: Value is required".

If I set the label field of the text field that effect to the alignments. BCos I uses GridPanel.

Do you guys know any solution to overcome this..

Thanks

 

 « Return to Thread: TextField with Separate Label