Getting validation error as alert instead of inline
---------------------------------------------------

                 Key: TRINIDAD-689
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-689
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 1.0.2-core
            Reporter: saurabh


I am getting validation errors as alert instead of inline messages.
here are the code snippets.
trinidad-config.xml - default
web.xml
        <context-param>
                <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                <param-value>server</param-value>
        </context-param>

abc.xhtml
<tr:form id="abc">
<tr:inputText id="id1" value="hello output">
                                        <tr:validateLength minimum="2" 
maximum="10" messageDetailNotInRange="error 1-{0}-{1}-{2}-{3}" />
</tr:inputText>
<tr:inputText required="true" value="input input input" id="id2" 
requiredMessageDetail="afraid of  putting address??" simple="true">
                                        <tr:validateLength minimum="2" 
maximum="10" messageDetailNotInRange="error 2 - {0}-{1}-{2}-{3}" />
</tr:inputText>
<tr:commandButton text="Submit" />
</tr:form>

When i put invalid  input for both the elements, i get the validation error as 
inline txt for id1, but as alert for id2. The element with id2 has got simple 
attribute set to true. This is making the difference.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to