On 10/19/07, Martin Ahrer <[EMAIL PROTECTED]> wrote:
>
> Trinidad is warning about duplicate id attributes even though I do NOT have
> used duplicate ids. So, I'm concerned if something can be done to avoid them
> or at least I'd like to know if any troubles can result from them?
Both of these cases are coming from not recognizing that tr:inputText
has built-in label and message support unless you set simple="true".
> In this special case I was able to produced these warning either this way
>
> <tr:panelLabelAndMessage for="typeInput" label="Type">
> <tr:inputText id="typeInput"
> value="#{queryByExampleController.example.type}"/>
> </tr:panelLabelAndMessage>
This should generally just be:
<tr:inputText id="typeInput" label="Type"
value="#{queryByExampleController.example.type}"/>
>
> -->>
> 19.10.2007 16:27:43
> org.apache.myfaces.trinidadinternal.io.DebugResponseWriter _logDuplicateId
> WARNUNG: The id "typeInput::icon" is used more than once.
> 19.10.2007 16:27:43
> org.apache.myfaces.trinidadinternal.io.DebugResponseWriter _logDuplicateId
> WARNUNG: The id "typeInput::msg" is used more than once.
>
> or even here
>
> <tr:inputText id="typeInput" value="xxx"/><tr:message for="typeInput"/>
... and here, the tr:message is unnecessary (unless you set
simple="true" on the inputText).
-- Adam
>
> -->>
>
> 19.10.2007 16:27:43
> org.apache.myfaces.trinidadinternal.io.DebugResponseWriter _logDuplicateId
> WARNUNG: The id "typexxx::msg" is used more than once.
>
> with the later case the warning disappears as the <tr:message> is removed!
> --
> View this message in context:
> http://www.nabble.com/-Trinidad--org.apache.myfaces.trinidadinternal.io.DebugResponseWriter-_logDuplicateId-tf4653676.html#a13295836
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>