[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878269#action_12878269
 ] 

Damien GOUYETTE edited comment on TOMAHAWK-1511 at 6/12/10 10:33 AM:
---------------------------------------------------------------------

what do you mean when you said its child outputtext doesn't have id.

I tried to add a h:outputText inside datascroller like this : 

  <t:dataScroller id="scroll_1" for="carTable">
                <f:facet name="first"> <t:outputText id="firstId" 
value="first"/>
                </f:facet>
                <f:facet name="last"> <h:commandLink id="last" value="last"/>
                </f:facet>
                <f:facet name="previous"><t:outputText value="Previous"/>
                </f:facet>
                <f:facet name="next"> <t:outputText value="Next"/>
                </f:facet>
            </t:dataScroller>


and the generated html code was : 


<a id="form:scroll_1first" onclick="return 
oamSubmitForm('form','form:scroll_1first',null,[['form:scroll_1','first']]);" 
href="#"><span id="form:firstId">first</span></a>


I got an id on span : form:firstId

I can't reproduce the problem


      was (Author: dgouyette):
    what do you mean when you said its child outputtext doesn't have id.

I tried to add a h:outputText inside datascroller like this : 


<pre>
<code>
  <t:dataScroller id="scroll_1" for="carTable">
                <f:facet name="first"> <t:outputText id="firstId" 
value="first"/>
                </f:facet>
                <f:facet name="last"> <h:commandLink id="last" value="last"/>
                </f:facet>
                <f:facet name="previous"><t:outputText value="Previous"/>
                </f:facet>
                <f:facet name="next"> <t:outputText value="Next"/>
                </f:facet>
            </t:dataScroller>
</code>
</pre>

and the generated html code was : 

<pre>
<code>
<a id="form:scroll_1first" onclick="return 
oamSubmitForm('form','form:scroll_1first',null,[['form:scroll_1','first']]);" 
href="#"><span id="form:firstId">first</span></a>
</code>
</pre>

I got an id on span 

  
> Null id
> -------
>
>                 Key: TOMAHAWK-1511
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1511
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Data Scroller
>    Affects Versions: 1.1.7
>         Environment: MF 1.1.5, MFTomahawk 1.1.7, Tomcat 5.5
>            Reporter: Georg Black
>            Priority: Minor
>         Attachments: nullid.zip
>
>
> Renderer creates hmtlcommandlink and its child outputtext doesn't have id.
> This can be minimal unexpected, probably specification doesn't like it too.
> Regards GB.

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