Announcement Announcement Module
Collapse
No announcement yet.
newbi: custom error message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • newbi: custom error message

    hi all...

    I'm using SWF 2.0.8 and JSF.

    I have a form and I want to customize my error messages. For example, an when a user tries to create an organization and doesn't enter the name, I want to display:

    Organization Name is required.

    Right now it's displaying:

    createOrganizationForm:name: Validation Error: Value is required.

    Here's my form:

    Code:
    <h:form id="createOrganizationForm">
    
    		<ui:fragment id="createOrganization">
    
                    <td>Organization Name:
                    </td>
    		<td>
    			<h:inputText id="name" value="#{editOrganization.name}" required="true">
    	                </h:inputText>
    		</td>
    I tried adding the property createOrganizationForm.name to my messages.properties, but no luck.

    thanks
Working...
X