myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (TRINIDAD-1018) 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.
Date Thu, 20 Mar 2008 16:05:24 GMT

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

Andrew Robinson resolved TRINIDAD-1018.
---------------------------------------

       Resolution: Fixed
    Fix Version/s:  1.2.8-core
         Assignee: Andrew Robinson

Updated the documentation to make sure that it is clear that this component only supports
one editable value holder child for the label and message specified by the "for" attribute.

> 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
>            Assignee: Andrew Robinson
>            Priority: Minor
>             Fix For:  1.0.8-core,  1.2.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.


Mime
View raw message