[ 
https://issues.apache.org/jira/browse/TRINIDAD-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nate Perkins reopened TRINIDAD-1018:
------------------------------------


If this is the case then the documentation for the component is incorrect.

Quoting from the tag documentation:
"...Typically, the only child of this component will be an input element of 
some sort, but as many children as necessary can be added. When using 
panelLabelAndMessage with Trinidad input components, you should always  set 
simple="true" on the input components...."

It is not clear from this description that a message will only be delivered to 
the first child.  Can this bug be modified to be against the documentation or 
should the component act as its documentation suggests?

> Given a panelLabelAndMessage that has multiple inputTexts set to 
> simple="true" as its children, the panelLabelAndMessage component is only 
> displaying a message for the first child inputText. 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1018
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1018
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.5-core
>         Environment: Using 1.0.5, occurs in both Firefox 2 and IE 6.
>            Reporter: Nate Perkins
>            Priority: Minor
>             Fix For:  1.0.8-core
>
>
> I have a panelLabelAndMessage set up in the following way to display inputs 
> for deg/min/sec coordinates:
> <tr:panelLabelAndMessage id="lat" label="Latitude">
> <tr:inputText id="degLat" value="#{mb.deg}" simple="true" 
> validator="{DegValidator}"/>
> <tr:outputText value="ยบ"/>
> <tr:inputText id="minLat" value="#{mb.min}" simple="true" 
> validator="{MinValidator}"/>
> <tr:outputText value="'"/>
> <tr:inputText id="secLat" value="#{mb.sec}" simple="true" 
> validator="{SecValidator}"/>
> <tr:outputText value="''"/>
> </tr:panelLabelAndMessage>
> The problem is that if a validation error occurs on either the min or the sec 
> input, no message is displayed at the input.
> I tried removing simple="true" from all the inputText components and that 
> corrected the problem for min and sec inputs, but a validation error on the 
> deg component would create two validation error messages for the component.
> I currently have it working by having the deg inputText with simple="true" 
> and the min and sec inputTexts without, but this seems inconsistent and 
> certainly doesn't agree with the documentation for the panelLabelAndMessage 
> component.

-- 
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