myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <simon.kitch...@chello.at>
Subject Re: Tomahawk < t:dataScroller> in JDeveloper
Date Fri, 02 May 2008 21:20:06 GMT

On Fri, 2008-05-02 at 10:46 -0400, Ziegler, Irina wrote:
> I am trying to use Tomahawk dataScroller in JDeveloper, but it looks
> like I have rendering problem. (Tomahawk 1.1.6, JDeveloper TP3)
> 
> In the next and previous buttons image tag is not inside of the link
> tag (it makes buttons not clickable).
> 
> Buttons are rendered as following:
> 
> <!--Start: javax.faces.Panel["scroll_1"]--> 
> <td> 
> <!--Start: javax.faces.Graphic["j_id__ctru31pc7"]--> < img
> id="reportForm:invTable:j_id__ctru31pc7" src="images/arrow-next.gif"
> border="1">
> 
> <!--Start: javax.faces.Command["scroll_1next"]--> 
> <a id="reportForm:invTable:scroll_1next"
> name="reportForm:invTable:scroll_1next"  class="OraLink"
> href="#"></a> 
> </td> 
> 
> 
> Here is a jsp code 
>      <t:dataTable id="data" 
>                   styleClass="scrollerTable" 
>                   headerClass="standardTable_Header" 
>                   footerClass="standardTable_Header" 
>                   rowClasses="standardTable_Row1,standardTable_Row2" 
> 
> columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"

>                   var="car" 
>                   value="#{pagedSort.cars}" 
>                   preserveDataModel="true" 
>                   rows="10" 
>                   rowId="#{car.type}" 
>                   rowOnClick="alert('rowId: ' + this.id)" 
>                   sortColumn="#{pagedSort.sort}" 
>                   sortAscending="#{pagedSort.ascending}" 
>                   preserveSort="true"> 
>         <t:column> 
>             <f:facet name="header"></f:facet> 
>             <h:outputText value="#{car.id}" /> 
>         </t:column> 
>         <t:column> 
>             <f:facet name="header"> 
>                 <t:commandSortHeader columnName="type" arrow="true"
> immediate="false"> 
>                     <h:outputText value="Type}" /> 
>                 </t:commandSortHeader> 
>             </f:facet> 
>             <h:outputText value="#{car.type}" /> 
>         </t:column> 
>         <t:column> 
>             <f:facet name="header"> 
>                 <t:commandSortHeader columnName="color" arrow="true"
> immediate="false"> 
>                     <h:outputText value="Color" /> 
>                 </t:commandSortHeader> 
>             </f:facet> 
>             <h:inputText value="#{car.color}" > 
>                 <f:validateLength maximum="10"/> 
>             </h:inputText> 
>         </t:column> 
>     </t:dataTable> 
>   
>     <h:panelGrid columns="1" styleClass="scrollerTable2"
> columnClasses="standardTable_ColumnCentered" > 
>         <t:dataScroller id="scroll_1" 
>                         for="data" 
>                         fastStep="10" 
>                         pageCountVar="pageCount" 
>                         pageIndexVar="pageIndex" 
>                         styleClass="scroller" 
>                         paginator="true" 
>                         paginatorMaxPages="9" 
>                         paginatorTableClass="paginator" 
> 
> paginatorActiveColumnStyle="font-weight:bold;"> 
>             <f:actionListener
> type="datasupport.DataScrollerActionListener"/> 
>             <f:facet name="previous"> 
>                 <t:graphicImage url="images/arrow-previous.gif"
> border="1" /> 
>             </f:facet> 
>             <f:facet name="next"> 
>                 <t:graphicImage url="images/arrow-next.gif"
> border="1" /> 
>             </f:facet> 
>         </t:dataScroller> 
> 
> 
> Faces-config.xml has: 
> 
> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>

> 
> Am I missing something?

The code you provide above appears to be almost identical to the
datascroller example in the standard tomahawk "simple" examples project.

And in that project it works fine. Clicking on the arrows works, and the
actual html output has the img correctly nested:

<a href="#" onclick="return
oamSubmitForm('_idJsp0','_idJsp0:scroll_1previous',null,[['_idJsp0:scroll_1','previous']]);"
id="_idJsp0:scroll_1previous"><img src="images/arrow-previous.gif" border="1"></a>

I tested with Tomahawk-1.1.7-SNAPSHOT on Myfaces-1.1.6-SNAPSHOT.
I also tested Tomahawk-1.1.7-SNAPSHOT on Myfaces-1.2.2 (although I had
to fix a minor bug in the example to get it to work, but that shouldn't
affect you).

If you are not using the tomahawk latest release (1.1.6) then I suggest
you try it. Otherwise it *might* be some interaction with trinidad - but
I think it pretty unlikely.

Regards,
Simon


Mime
View raw message