myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien GOUYETTE (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (TOMAHAWK-1511) Null id
Date Sat, 12 Jun 2010 14:33:14 GMT

    [ 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:31 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 : 


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

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

I got an id on span 


      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 : 


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

and the generated html code was : 

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

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.


Mime
View raw message