myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ziegler, Irina" <IZieg...@RGIS.com>
Subject RE: Tomahawk < t:dataScroller> in JDeveloper
Date Mon, 05 May 2008 17:40:01 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,standar
dTable_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:scrol
l_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

It is look like some conflict, but I cannot figure it out yet. 
I am using Tomahawk-1.1.6, but don't have Myfaces jars only Trinidad
jars. 
 
I removed
<default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-
kit-id> line from the Faces-config.xml. Now table scrolling works, but
other component do not rendered for example <t:jscookMenu> appears on
the home page, but disappears after first menu option is selected.   

Adding Myfaces jars in WEB-INF/lib didn't help either.

Irina.<HTML><BODY><BR><HR>NOTE: The information in this email may
be confidential and legally privileged. If you are not the intended recipient, you must not
read, use or disseminate the information; please advise the sender immediately by reply email
and delete this message and any attachments without retaining a copy. Although this email
and any attachments are believed to be free of any virus or other defect that may affect any
computer system into which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by RGIS, LLC for any loss
or damage arising in any way from its use.</BODY></HTML>

Mime
View raw message