Tomahawk datascroller problem

Hi ,
I am facing a problem with tomahawk datascroller. i am enabling datascroller if i get more than 5 records. ok it is working fine . I got 8 records and displayed in two pages.i have gone to second page and removed three records.isteda of showing first page it remains in the second page(empty).please any body suggest.
Thanks&Regards
K.Ramu

kodandaramu wrote:
please its very urgentThat's your own problem. Moving pressure to us, who have completely nothing to do with your jobs and are not paid to do your job, is only dumb and rude. Have patience man. Just ask questions the smart way.

Similar Messages

  • DataScroller problem while delete the recoreds using checkbox

    Hi all
    I am new for jsf. I am using datascroller working with Tomahawk.My requirement like .
    I need to display 15 records in a page.And every row having checkbox which is used for delete the record.
    These are all working fine.Problem is if i delete all records in last page .The page is not going to previous page.
    The following is my xhtml code
    <h:panelGrid columns="2" style="width: 100% ">
              <h:outputText value="" style="width: 100%"/>
                   <t:dataScroller id="scroll_1"
              for="detailData"
                   styleClass="scroller"
                   style="align=right"
                   paginator="true"
                   paginatorActiveColumnStyle="font-weight:bold;"
                   displayedRowsCountVar="displayedRowsCount"
                   fastStep="10"
                   pageCountVar="pageCount"
                   pageIndexVar="pageIndex"
                   immediate="true"
                   paginatorMaxPages="9">
         </t:dataScroller>     
    </h:panelGrid>

    For Tomahawk specific questions, I would recommend posting to the myfaces user mailing list.
    Edited by: rlubke on Aug 7, 2008 1:19 PM

  • Tomahawk inputCalendar problem

    Hi i am using the calender tag. The code is given below
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <t:inputCalendar
    id="calendar" value=""
    renderAsPopup="true"
    popupDateFormat="MM/dd/yyyy"
    renderPopupButtonAsImage="true"
    />
    The first problem i m having is that popupButtonImageUrl attribute is not availble even though i set renderPopupButtonAsImage="true" .
    Secondly i am also getting some javascript error that "object expected".
    Please help me out.
    Thankyou

    Exception is:
    SEVERE: Exception starting filter MyFacesExtensionsFilter
    java.lang.ClassNotFoundException: org.apache.myfaces.webapp.filter.ExtensionsFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193)
         at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1089)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1305)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
         at java.lang.Thread.run(Thread.java:595)

  • Tomahawk DataScroller - NullPointerException with navigation panel

    Hi all,
    I'm trying to implement navigation on a dataTable with DataScroller. Except from the dataTable content the jsp is a copy / paste from the tomahawk cars example.
    My jsp structure has 3 main elements
    - datatable
    - scroller one for datatable navigation (next, previous, ...)
    - scroller two for datatable statistics (pages counts)
    When page is loaded there is a fatal error (NullPointerException)
    If I delete the scroller one definition in my jsp there is no error, data table is correctly populated with 10 first rows and scroller two information is correct.
    I tried with a simple ArrayList or with a DataModel in my backing bean. In both cases the NullPointerException happens.
    I checked web.xml, faces-config, ... can't find a reason.
    Any idea someone please? See stacktrace here under and sample of my jsp
    Thank you very much for any help.
    sunjavero
    // here is my jsp extract:
    <code>
    <f:view>
    <h:panelGroup id="body">
         <t:dataTAble id="data" ... >
         </t:dataTable>
         <h:panelGrid columns="1" ... >
              <t:dataScroller id="scroll_1" for="data" ... >
                   <f:facet name="first" >
                        <t:graphicImage url="images/arrow-first.gif" border="1" />
                   </f:facet>
                   // (other facets same principle...)
              </t:dataScroller>
              <t:dataScroller id="scroll_2" for="data" ... >
         <h:outputFormat ... >
                        <f:param value="#{rowsCount}" />
                        <f:param value="#{displayedRowsCountVar}" />
                        <f:param value="#{firstRowIndex}" />
                        <f:param value="#{lastRowIndex}" />
                        <f:param value="#{pageIndex}" />
                        <f:param value="#{pageCount}" />
                   </h:outputFormat>
              </t:dataScroller>
         </h:panelGrid>
    </h:panelGroup>
    </f:view>
    </code>
    exception:
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    caused by (root error?):
    java.lang.NullPointerException
         com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)
         com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(CommandLinkRenderer.java:318)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
         org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderFacet(HtmlDataScrollerRenderer.java:294)
         org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderScroller(HtmlDataScrollerRenderer.java:236)
         org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeEnd(HtmlDataScrollerRenderer.java:207)

    Hi all,
    I found out a solution (after many hours of cursing!): Better to enclose DataScroller inside a form.
    I don't understand why tomahawk example works fine without it (!!!)
    If someone has an explanation he is welcome
    And if someone explains me how to get more than 24 lines of stacktrace on windows 98 he is welcome too! (Unable to start tomcat from IDE because of wrong memory size), so have to start it from dos...
    Sincerely yours... tired sunjavero

  • Tomahawk , panelTabbedPane problem...

    Hi,
    i am working with tabbedpane control of tomahawk, when i am including a plain jsp page like ....
    <t:panelTabbedPane serverSideTabSwitch="false">
         <t:panelTab id="tab1" label="TabbedPanel1">
             <f:verbatim><jsp:include page="profile.jsp"/> </f:verbatim>
    </t:panelTab>it is working fine. but when i try to include a jsf page , which has taglib directives to include core and html components of jsf, it is giving error on server console as well on browser also...
    stack trace ...
    2007-07-27 16:15:50,421 ERROR [org.apache.myfaces.taglib.core.ViewTag] Error writing endDocument
    java.io.IOException: Illegal to flush within a custom tag
         at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:79)
         at javax.faces.webapp._PageContextOutWriter.flush(_PageContextOutWriter.java:45)Help me to solve this issue....
    Thanks in advance...

    Hi...Thanks for reply...
    i tried flush attribute...but no use...
    i tried removing verbatim , it is not even showing the plain jsp page also.... i think may be there is a problem with @taglib....
    i had to include those files in the main file as well in profile file as i am using some members of those taglibraries in both the files....
    any other suggestion....

  • IBM RSA 6.0.1.1 - interim fix 022 / Apache Tomahawk saveState problem

    Is Tomahawk <t:saveState /> component working with IBM RSA and IBM JSF implementation. I can't get it worked. Did anyone?

    Not sure about RAD7.. I do know that the internal WAS test envionment is WAS 6.x or something .. and that the JSF jars are supposed to be part of the APP server (as opposed to deploying with your app)
    If I had to bet it probably not going to be 1.2 but thats just a guess. IBM has these JWL?? widgets I think they are throwing in RAD / RSA 7 so my guess is they won't be up to date no the lastest version of 1.2 since they probably coded these widgets a while ago not to mention they have to support a billion other integrated products .. portal..etc.etc.. so my guess is they have a hard time keeping up with the later versions (at lease from a "supported") standpoint.
    Their company line for WSAD 5.1 (about why they were stuck on 1.0 was
    something like "IBM does not have imminent plans to move to JSF 1.1 because the original implementation (shipped in WebSphere Studio 5.1.2) includes corrections to defects that are addressed in JSF 1.1. Adoption of JSF 1.1 is redundant to the code IBM has already delivered. Remember that IBM was a major code contributor to the JSF project and the corrections shipped by IBM in WebSphere Studio 5.1.2 were factored into JSF 1.1. Over the longer term as the JSF standard continues to evolve, IBM will adopt newer versions"

  • Tomahawk render problem

    Hello,
    I am using Tomahawak panelTabs in my project. The Tabs will visible according to the input present in the database..
    Now the Problem is when the First tab is invisible..... Other tabs are not in the enlarge state.... how to make them in a enlarge state even when the first tabs render = false..

    kodandaramu wrote:
    please its very urgentThat's your own problem. Moving pressure to us, who have completely nothing to do with your jobs and are not paid to do your job, is only dumb and rude. Have patience man. Just ask questions the smart way.

  • Tomahawk tree problem

    I am using the tomahawk tree. and I am using tiles. When I click the node,
    the page gets displayed, but When I see the url, I always see the last page url.
    How do I fix this ?
    thanks

    But I don't want the tree to be collapsed. its a usability issue. The reason why I care of about the url is, In one of the page I put the refresh to every 30 sec.
    So what is happening is when the user clicks the node, it will show that page, and since it has the refresh in that page, and the url shown is the last visited page, it jumps to that previous page. Which is what I am trying to solve..
    thanks

  • F:dataScroller problem

    I have an application that uses MyFaces.
    On this particular page I have a t:dataTable with a t:dataScroller in the "footer" facet of the dataTable.
    When the page is loaded I click on the first row of the table. This works as expected. Now, i click the back button in the browser, and then select another item from the list I get the following error:
    (Notice the extra set of numbers 1 through 9)
    Along with the following exception:
    java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method.     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindHttpServletResponse.sendRedirect(EvermindHttpServletResponse.java:1336)     at no.norgesgruppen.b2b.pocket.servlet.NGFacesServlet.redirectToErrorPage(NGFacesServlet.java:149)     at no.norgesgruppen.b2b.pocket.servlet.NGFacesServlet.service(NGFacesServlet.java:81)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at no.norgesgruppen.b2b.pocket.filter.PocketTimeoutSjekkFilter.doFilter(PocketTimeoutSjekkFilter.java:60)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at no.norgesgruppen.b2b.pocket.filter.PocketTimeoutSjekkFilter.doFilter(PocketTimeoutSjekkFilter.java:60)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    Message was edited by:
    joachimhb
    Message was edited by:
    joachimhb

    Isolate the dataScroller to its own form. Alternatively use the onclick attribute of the dataScroller to set the target of the form to "_self". You may need more javascript to set the target to the appropriate value on the commandLink as well.

  • Tomahawk facet problem: DetailStamp

    I use an inputTextarea inside a detailStamp in each row of a dataTable.
    When I edit the value of an inputTextarea and I show the detailStamp of another row I get the same value of the edited one.
    This happends for every rows.
    Any help is welcome!
    Follow the sample code of my dataTable:
    <t:dataTable styleClass="dataTable" style="margin: 10px;"
    value="#{TaskManagerBean.tasks}" var="task"
    id="data"
    rows="20"
    rowClasses="odd, even"
    preserveDataModel="false"
    preserveSort="true"
    varDetailToggler="detailToggler"
    renderedIfEmpty="false">
    <h:column>
    <f:facet name="header">
    <h:outputText value="DETAILS" />
    </f:facet>
    <h:commandLink rendered="#{detailToggler.currentDetailExpanded}" action="#{detailToggler.toggleDetail}">
    <h:outputText value="Hide" />
    </h:commandLink>
    <h:commandLink rendered="#{!detailToggler.currentDetailExpanded}" action="#{detailToggler.toggleDetail}">
    <h:outputText value="Show" />
    </h:commandLink>
    </h:column>
    <f:facet name="detailStamp">
    <t:panelGroup layout="block">
    <t:panelGroup>
    <t:outputText style="text-align:left;" value="info Wet"/>
    <t:htmlTag value="br"></t:htmlTag>
    <t:inputTextarea id="textarea" style="width:400px;height:200px;" value="#{task.infoWet}"/>
    <t:htmlTag value="br"></t:htmlTag>
    <t:commandButton value="Save" action="#{TaskManagerBean.saveInfoWet}">
    <t:updateActionListener property="#{TaskManagerBean.selectedTask}" value="#{task}" />
    </t:commandButton>
    </t:panelGroup>
    </t:panelGroup>
    </f:facet>
    </t:dataTable>

    The f:facet name="header" accepts only one child component. If you want to add multiple childs to it, group it in a h:panelGroup.

  • Tomahawk t:dataScroller in JDeveloper

    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.
    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" onclick="submitForm('reportForm',1,{source:'reportForm:invTable:scroll_1next','reportForm:invTable:scroll_1':'next'});return false;" 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?
    I will appreciate any help.
    Irina

    It is a runtime problem
    And it also exists in TP4
    Tomahawk 1.1.6 does work with JSF 1.2
    I removed
    <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-
    kit-id>line from the Faces-config.xml.
    Table scrolling works, but
    other component do not render, for example <dvt:graph>
    Also when ADF is added to the page
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>faces-config.xml is auto changed to
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>and <dvt:graph> will disappear at runtime.
    Thank you,
    Irina.
    PS. both TR3 and TR4

  • DataScroller Giving problem in tomahowk JSF

    Hi All
    I am generating dynamic datatable content by giving following code
    <t:dataTable
    value="#{ListHolderBean.resultList}"
    sortable="true"
    var="result"
    id="employeeTable"
    rowClasses="TableLeftMaint"
    footerClass="TableLeftSub"
    headerClass="TableLeftSub"
    width="100%"
    preserveDataModel="true"
    rows="5" binding="#{populateDataBean.dynamicDataTable}">
    </t:dataTable>
    Data content is beign generate by binding attribute ...
    I had attached below data scroller
    <t:dataScroller id="dataScroller"
         for="employeeTable"
    paginator="true"
    fastStep="5"
    pageCountVar="pageCount"
         pageIndexVar="pageIndex"
         rowsCountVar="rowsCount"
         firstRowIndexVar="firstRowIndex"
         paginatorMaxPages="10"
    paginatorTableClass="paginator"
    paginatorActiveColumnStyle="font-weight:bold;FONT- FAMILY : Verdana,Arial,Helvetica,sans-serif;"
    >
    <f:facet name="first">
    <t:graphicImage url="/graphics/arrow-first.gif" border="0"/>
    </f:facet>
    <f:facet name="last">
    <t:graphicImage url="/graphics/arrow-last.gif" border="0"/>
    </f:facet>
    <f:facet name="previous">
    <t:graphicImage url="/graphics/arrow-previous.gif" border="0"/>
    </f:facet>
    <f:facet name="next">
    <t:graphicImage url="/graphics/arrow-next.gif" border="0" />
    </f:facet>
    <f:facet name="fastforward">
    <t:graphicImage url="/graphics/arrow-ff.gif" border="0"/>
    </f:facet>
    <f:facet name="fastrewind">
    <t:graphicImage url="/graphics/arrow-fr.gif" border="0"/>
    </f:facet>
    <f:param value="#{rowsCount}/" />
              <f:param value="#{displayedRowsCount}" />
              <f:param value="#{firstRowIndex}" />
              <f:param value="#{lastRowIndex}" />
              <f:param value="#{pageIndex}" />
              <f:param value="#{pageCount}" />
    </t:dataScroller>
    Problem Is
    Data is coming with all page index like 1,2,3,4 but once I click on any of them it will give all data vanish ...means data lost ...once I click on any of them .
    With Thanks

    I got the solution I change preserveDataModel="false".
    Now it's working fine .
    Sorry for inconvenient
    Thanks

  • Help on creating ref_table

    hi can any one please suggest how to desing best Ref tables.
    1) Existing table Stg_mbr_detail which has columns (mbr_name,ssn,dob)
    2) Existing table mbr_detail which has columns
    (mbr_id , mbr_name, f_name, l_name,middle_name,prefix,suffix,mbr_type,Dob,ssn)
    now when transfering data from stg_mbr_detail to mbr_detail i need to calculate
    f_name, l_name,middle_name,prefix,suffix,mbr_type all these details based on stg_mbr_details.Name
    My Question Here is How do i create a ref Table for my Business Purpose:
      we identified 35 possibe prefixes , 30 Suffixes , more than 100 organization types.
      IF the name has any organization type attached to it then mbr_type = Organizaion
      IF the name has Keyword AND in it then mbr_type = Multiple
      ELSE mbr_type = Individual       
      DO i need to create tables AS
       1) REF_PREFIX, REF_SUFFIX, REF_ORGANIZAION.
       OR
       2) Ref_names (title , title_type) and Ref_Organization (Org_type)
      OR
       3) create one table called REF_names and store
           prefixes , suffixes , Organization_types in it?
       how efficiently can i build my cursor (select * from stg_mbr_detail) to get prefix, suffix, mbr_type out of name.
    name                            mbr_type:
    MR.STEVEN SMITH                    Individual
    MR & MRS STEVEN SMITH              Individual
    JOHN AND RITA SMITH                  Multiple
    JOHN SMITH AND DAVID BROOK     Multiple
    JOHN HOPKINS HOSPITAL             Organization
    JOHN HOPKINS LLT                     Organization
      Initial Data Fix will be on 30 million records
      After Initial Data Fix Every day job will be for 50k to 60 k records Thanks
    Edited by: new learner on Nov 6, 2010 7:23 PM

    You could use tomahawk dataScroller. Look at this example:
    http://www.irian.at/myfaces/dataScroller.jsf

  • Problems with combination of ADF Faces, Tomahawk, Facelets and MyFaces

    Hello,
    I am trying to combine all things named in the Subject and run into several problems:
    1. ADF Render Kit forces the Tomahawk Components to be rendered in a wrong way or stop there functionality.
    Example 1: The clickable parts of the t:dataScroller Tag can not be accessed because an empty a Tag will be rendered after the outputText.
    Example 2: The t:commandSortHeader Tag can be clicked but the table content will not be sorted anymore.
    The given examples works if i remove the default-render-kit-id element from the faces-config.xml
    2. The ad:table Tag runs into an ClassCastException, only when I put a simple example code snipped into my xhtml file.
    Code snipped:
    <af:table>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Firstname"/>
    </f:facet>
    </af:column>
    <af:column>
    <f:facet name="header">
    <h:outputText value="Lastname"/>
    </f:facet>
    </af:column>
    </af:table>
    The stack trace look like this:
    java.lang.ClassCastException at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer._renderRegularColumns(DesktopTableRenderer.java:1029)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:229)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:79)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:438)
         at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:232)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:255)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:521)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I followed all steps for the ADF installation and the suggested steps for using ADF with Facelets.
    Used versions:
    - Oracle ADF Faces 10.1.3 Early Access
    - myFaces 1.1.1
    - Facelets 1.1.1
    - oc4j 10.1.2.0.2
    Has somebody try to use these things together, too?
    Thanks,
    Carsten

    Hi,
    Inside our fusion applications(ADF/Webcenter) using combination of JSTL and ADF Faces is good practice or pitfal?
    To suggest a a rule of thumb: Try ADF Faces on-board functionality first before reaching out to JSTL. The difference between JSF in general and JSTL is that the JSTL expressions are evaluated at page compile time wheras JSF expressions are evaluated deferred. This difference may have an impact to PPR refreshes and the data rendering (which in many cases I assume you can fix by setting the ADF Faces component content delivery to immediate instead of deferred). On a training slight I flagged JSTL with a "heads up" alert because of this
    Frank

  • Tomahawk t:inputDate problem in IE

    I am using t:inputDate with popupCalendar attribute set to "true". It works perfectly in Firefox but the calendar can't popup in IE. Would anyone please help me? Thanks very much!
    Note: I have already added extension filters and I'm using tomahawk version 1.1.5
    Here is my JSP source code:
    <html>
         <head>
              <title>Stock Management System</title>
         </head>
         <body>
              <f:view>
                   <h:form>
                        <t:outputText value="Welcome "/>
                        <t:outputText value="#{account.engName}!"/>
                        <p>
                        <t:panelGrid columns="3">
                             <t:commandLink tabindex="100" value="Save" action="#{transactionHandler.insert}"/>
                             <t:commandLink tabindex="101" value="Cancel" action="main" immediate="true"/>
                             <h:outputLink tabindex="102" value="#{facesContext.externalContext.request.contextPath}/pages/logout.jsp">
                                  <t:outputText value="Logout"/>
                             </h:outputLink>
                        </t:panelGrid>
                        <p>
                        <t:panelGrid id="main" columns="3">
                             <t:outputText value="Buy / Sell"/>
                             <t:selectOneMenu tabindex="1" id="action" value="#{transaction.action}" required="true">
                                  <f:selectItem itemValue="B" itemLabel="Buy"/>
                                  <f:selectItem itemValue="S" itemLabel="Sell"/>
                             </t:selectOneMenu>
                             <t:message for="action"/>
                             <t:outputText value="Date"/>
                             <t:inputDate id="date" type="date" popupCalendar="true" value="#{transaction.date}"/>
                             <t:message for="date"/>
                             <t:outputText value="Stock Code"/>
                             <t:inputText tabindex="5" id="stockCd" value="#{transaction.stockCd}" size="4" dir="RTL" required="true">
                                  <f:validateLongRange maximum="9999" minimum="1"/>
                             </t:inputText>
                             <t:message for="stockCd"/>
                             <t:outputText value="Quantity" />
                             <t:inputText tabindex="6" id="qty" value="#{transaction.qty}" size="8" dir="RTL" required="true">
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="qty"/>
                             <t:outputText value="Unit Price" />
                             <t:inputText tabindex="7" id="unitPrice" value="#{transaction.unitPrice}" size="8" dir="RTL" required="true">
                                  <f:convertNumber pattern="$#,##0.000"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="unitPrice"/>
                             <t:outputText value="Brokerage" />
                             <t:inputText tabindex="8" id="brokerage" value="#{transaction.brokerage}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="brokerage"/>
                             <t:outputText value="Levy Fee" />
                             <t:inputText tabindex="9" id="levy" value="#{transaction.levy}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="levy"/>
                             <t:outputText value="Stamp Duty" />
                             <t:inputText tabindex="10" id="stampDuty" value="#{transaction.stampDuty}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="stampDuty"/>
                             <t:outputText value="Trading Fee" />
                             <t:inputText tabindex="11" id="tradingFee" value="#{transaction.tradingFee}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="tradingFee"/>
                             <t:outputText value="Investment Compensation Levy" />
                             <t:inputText tabindex="12" id="invCompLevy" value="#{transaction.invCompLevy}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="invCompLevy"/>
                             <t:outputText value="Handling Charge" />
                             <t:inputText tabindex="13" id="handlingChrg" value="#{transaction.handlingCharge}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="handlingChrg"/>
                             <t:outputText value="Deposit Charge" />
                             <t:inputText tabindex="14" id="depositChrg" value="#{transaction.depositCharge}" size="8" dir="RTL">
                                  <f:convertNumber pattern="$#,##0.00"/>
                                  <f:validateDoubleRange minimum="0"/>
                             </t:inputText>
                             <t:message for="depositChrg"/>
                        </t:panelGrid>
                   </h:form>
              </f:view>
         </body>     
    </html>
    Here is the generated HTML results:
    <html>
         <head>
    <link rel="stylesheet" href="/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/calendar.HtmlCalendarRenderer/WH/theme.css" type="text/css" />
    <link rel="stylesheet" href="/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/calendar.HtmlCalendarRenderer/DB/theme.css" type="text/css" />
    <script type="text/javascript" src="/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/prototype.PrototypeResourceLoader/prototype.js"><!--
    //--></script>
    <script type="text/javascript" src="/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/calendar.HtmlCalendarRenderer/date.js"><!--
    //--></script>
    <script type="text/javascript" src="/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/calendar.HtmlCalendarRenderer/popcalendar.js"><!--
    //--></script>
              <title>Stock Management System</title>
         </head>
         <body>
                   <form id="_idJsp0" name="_idJsp0" method="post" action="/Stock/pages/add_transaction.jsf" enctype="application/x-www-form-urlencoded">
                        Welcome
                        Tsang Shiu Ching!
                        <p>
                        <table><tbody><tr><td><script type="text/javascript"><!--
         function oamSetHiddenInput(formname, name, value)
              var form = document.forms[formname];
              if(typeof form.elements[name]=='undefined')
                   var newInput = document.createElement('input');
                   newInput.setAttribute('type','hidden');
                   newInput.setAttribute('name',name);
                   newInput.setAttribute('value',value);
                   form.appendChild(newInput);
              else
                   form.elements[name].value=value;
         function oamClearHiddenInput(formname, name, value)
              var form = document.forms[formname];
              if(typeof form.elements[name]!='undefined')
                   form.elements[name].value=null;
         function oamSubmitForm(formName, linkId, target, params)
              var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g, '\$:').replace(/:/g,'_');
              if(typeof eval('window.'+clearFn)!='undefined')
                   eval('window.'+clearFn+'(formName)');
              if(typeof window.getScrolling!='undefined')
                   oamSetHiddenInput(formName,'autoScroll',getScrolling());
              var oldTarget = '';
              if((typeof target!='undefined') && target != null)
                   oldTarget=document.forms[formName].target;
                   document.forms[formName].target=target;
              if((typeof params!='undefined') && params != null)
                   for(var i=0; i<params.length; i++)
                        oamSetHiddenInput(formName,params[0], params[i][1]);
              oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);
              if(document.forms[formName].onsubmit)
                   var result=document.forms[formName].onsubmit();
                   if((typeof result=='undefined')||result)
                        document.forms[formName].submit();
              else
                   document.forms[formName].submit();
              if(oldTarget==null) oldTarget='';
              document.forms[formName].target=oldTarget;
              if((typeof params!='undefined') && params != null)
                   for(var i=0; i<params.length; i++)
                        oamClearHiddenInput(formName,params[i][0], params[i][1]);
              oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return false;
    //--></script>Save
    <input type="hidden" name="autoScroll" />
    </td><td>Cancel</td><td><a id="_idJsp0:_idJsp6" name="_idJsp0:_idJsp6" href="/Stock/pages/logout.jsp" tabindex="102">Logout</a></td></tr>
    </tbody></table>
                        <p>
                        <table id="_idJsp0:main"><tbody><tr><td>Buy / Sell</td><td><select id="_idJsp0:action" name="_idJsp0:action" size="1" tabindex="1">     <option value="B">Buy</option>     <option value="S">Sell</option></select></td><td></td></tr>
    <tr><td>Date</td><td>
    <span id="_idJsp0:date"><input id="_idJsp0:date.day" name="_idJsp0:date.day" size="2" maxlength="2" /><select id="_idJsp0:date.month" name="_idJsp0:date.month" size="1"><option value="-1" selected="selected"></option>          <option value="1">&#19968;&#26376;</option>          <option value="2">&#20108;&#26376;</option>          <option value="3">&#19977;&#26376;</option>          <option value="4">&#22235;&#26376;</option>          <option value="5">&#20116;&#26376;</option>          <option value="6">&#20845;&#26376;</option>          <option value="7">&#19971;&#26376;</option>          <option value="8">&#20843;&#26376;</option>          <option value="9">&#20061;&#26376;</option>          <option value="10">&#21313;&#26376;</option>          <option value="11">&#21313;&#19968;&#26376;</option>          <option value="12">&#21313;&#20108;&#26376;</option></select><input id="_idJsp0:date.year" name="_idJsp0:date.year" size="4" maxlength="4" /><span id="_idJsp0:dateSpan"></span><script type="text/javascript"><!--
    var _5FidJsp0_3AdateCalendarVar=new org_apache_myfaces_PopupCalendar();
    _5FidJsp0_3AdateCalendarVar.initData.imgDir = "/Stock/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11796022/calendar.HtmlCalendarRenderer/DB/";
    _5FidJsp0_3AdateCalendarVar.initData.monthName = new Array("\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708");
    _5FidJsp0_3AdateCalendarVar.initData.dayName = new Array("\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D");
    _5FidJsp0_3AdateCalendarVar.initData.startAt = 0;
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.weekdays = new Array("\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D");
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.shortWeekdays = new Array("\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D");
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.shortMonths = new Array("1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708");
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.months = new Array("\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708");
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.eras = new Array("\u897F\u5143\u524D","\u897F\u5143");
    _5FidJsp0_3AdateCalendarVar.dateFormatSymbols.ampms = new Array("\u4E0A\u5348","\u4E0B\u5348");
    _5FidJsp0_3AdateCalendarVar.init(document.getElementById('_idJsp0:dateSpan'));
    //--></script><input type="button" onclick="_5FidJsp0_3AdateCalendarVar._popUpCalendarForInputDate('_idJsp0:date','yy'&#24180;'M'&#26376;'d'&#26085;'');" value="..." /></span></td><td></td></tr>
    <tr><td>Stock Code</td><td><input id="_idJsp0:stockCd" name="_idJsp0:stockCd" type="text" value="0" size="4" dir="RTL" tabindex="5" /></td><td></td></tr>
    <tr><td>Quantity</td><td><input id="_idJsp0:qty" name="_idJsp0:qty" type="text" value="0.0" size="8" dir="RTL" tabindex="6" /></td><td></td></tr>
    <tr><td>Unit Price</td><td><input id="_idJsp0:unitPrice" name="_idJsp0:unitPrice" type="text" value="$0.000" size="8" dir="RTL" tabindex="7" /></td><td></td></tr>
    <tr><td>Brokerage</td><td><input id="_idJsp0:brokerage" name="_idJsp0:brokerage" type="text" value="$0.00" size="8" dir="RTL" tabindex="8" /></td><td></td></tr>
    <tr><td>Levy Fee</td><td><input id="_idJsp0:levy" name="_idJsp0:levy" type="text" value="$0.00" size="8" dir="RTL" tabindex="9" /></td><td></td></tr>
    <tr><td>Stamp Duty</td><td><input id="_idJsp0:stampDuty" name="_idJsp0:stampDuty" type="text" value="$0.00" size="8" dir="RTL" tabindex="10" /></td><td></td></tr>
    <tr><td>Trading Fee</td><td><input id="_idJsp0:tradingFee" name="_idJsp0:tradingFee" type="text" value="$0.00" size="8" dir="RTL" tabindex="11" /></td><td></td></tr>
    <tr><td>Investment Compensation Levy</td><td><input id="_idJsp0:invCompLevy" name="_idJsp0:invCompLevy" type="text" value="$0.00" size="8" dir="RTL" tabindex="12" /></td><td></td></tr>
    <tr><td>Handling Charge</td><td><input id="_idJsp0:handlingChrg" name="_idJsp0:handlingChrg" type="text" value="$0.00" size="8" dir="RTL" tabindex="13" /></td><td></td></tr>
    <tr><td>Deposit Charge</td><td><input id="_idJsp0:depositChrg" name="_idJsp0:depositChrg" type="text" value="$0.00" size="8" dir="RTL" tabindex="14" /></td><td></td></tr>
    </tbody></table>
                   <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="_idJsp0:_link_hidden_" /><input type="hidden" name="_idJsp0:_idcl" /><script type="text/javascript"><!--
         function clear__5FidJsp0()
              clearFormHiddenParams__idJsp0('_idJsp0');
         function clearFormHiddenParams__idJsp0(currFormName)
              var f = document.forms['_idJsp0'];
              f.elements['_idJsp0:_link_hidden_'].value='';
              f.elements['_idJsp0:_idcl'].value='';
              f.target='';
         clearFormHiddenParams__idJsp0();
    //--></script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAIxM3B0ABovcGFnZXMvYWRkX3RyYW5zYWN0aW9uLmpzcA==" /></form>
         <!-- MYFACES JAVASCRIPT -->
    <script type="text/javascript"><!--
         function getScrolling()
              var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
                   x = self.pageXOffset;
                   y = self.pageYOffset;
              else if ((document.documentElement && document.documentElement.scrollLeft)||(document.documentElement && document.documentElement.scrollTop))
                   x = document.documentElement.scrollLeft;
                   y = document.documentElement.scrollTop;
              else if (document.body)
                   x = document.body.scrollLeft;
                   y = document.body.scrollTop;
              return x + "," + y;
    //--></script>
    </body>     
    </html>

    i am having the same problem
    I have a page with three use of input date tomahawk
    2 of them sometimes work as expected (i.e. the calendar appear beside the icon), 1 of them never work (the calendar shows up like 1/2 screen below the icon)

Maybe you are looking for

  • How to get permission of a sharepoint list for a user using REST api

    Hi there, I have a requirement where i need to check the access permission of a user against a List or Library only using REST api from my remote salesforce app. [I already have access token and I am able to view list, add item etc..] Say for example

  • Error while running wsimport.

    Hi, I am trying to generate the Java artifacts frm a wsdl file. I am using jaxws-ri_2.1.3 . When I run wsimport the process dies with the following message "Schema descriptor {http://www.w3.org/2001/XMLSchema}XmlDataDocument in message part "return"

  • Windows Services blocking application of patchset for 11.1.0.7

    I'm trying to apply the patchset to bring Oracle database from 11.1.0.6 to 11.1.0.7. Things are running smoothly as-is, but I want to be current. When I try to apply the patchset, it complains that 37(!) windows services are holding files that oracle

  • Get an off-screen thumbnail from a webpage

    Hello everyone! This is my first post on this forums. I'm developing an application to get a thumbnail from a webpage, and save that thumbnail to a file. It has to be a "non-visual", off-screen appllication, because it will run on a machine with no s

  • Approval/Authorization Issue

    Hii I have an Outgoing Payment document which has an Approval process, when a user add OP(Outgoing Payment) thee document is moving to the Approver properly but the problem is when an approver trying to view that document by clicking on arrow the sys