JSF scroller component Frustration why isn't component rendering in jspx.

Based originally on Sun Microsystem's OWN "Components Demo" this tag library is for the custom
components used in the Virtual Sports Trainer Example Demo. Found inside the book "The Complete Reference JavaServer Faces". Which coincidentally was written by Sun's own Chris Schalk and Ed Burns. I"m having problems getting this component to work (render inside a jspx document). Any insight as to why or how to fix this would be greatly appreciated. And I just want to gain any insight or feedback as to why it's not displaying the t:scroller component. Thats all. I'm displaying the jspx document below a SINGLE jspx document. As I know anything more than 200 lines scares everybody. The cusomtom scroll component/pagination is at the bottom t:scroll. I can only display snippets of the jspx for brevity and the character limit.
<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:t="http://virtualsportstrainer.com/trainercomponents"
     xmlns:ui="http://java.sun.com/jsf/facelets">
     <jsp:directive.page contentType="text/html;charset=UTF-8"
          pageEncoding="UTF-8" />
     <jsp:text>
          <![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
     </jsp:text>
     <jsp:text>
          <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
     </jsp:text>
                         <!-- Custom Scroller Component -->
                         <t:scroller navFacetOrientation="NORTH" for="eventsTable"
                              actionListener="#{Main_Backing.processScrollEvent}">                    
                         <f:facet name="next">
                         <h:panelGroup>
<h:outputText value="Next"/>
<h:graphicImage url="/images/arrow-right.gif" />
</h:panelGroup>
</f:facet>
                         <f:facet name="previous">
                              <h:panelGroup>
                                   <h:graphicImage url="/images/arrow-left.gif" />
                                   <h:outputText value="Previous" />
                              </h:panelGroup>
                         </f:facet>
                         </t:scroller>
                    </h:form>
               </body>
          </html>
     </f:view>
</jsp:root>

It's being added like this:
PopUpManager.addPopUp(this.whyYouShouldJoinPopup,this,true);
PopUpManager.centerPopUp(this.whyYouShouldJoinPopup);
It's being called inside a Component, not inside the main MXML file. So this is not a reference to the application class, but a component.  Is that a problem?

Similar Messages

  • Why isn't Firefox rendering RSS or Atom feeds?

    Firefox used to style RSS/Atom feeds when they were accessed directly by URL, and if not, would at least display the raw XML source. But for many versions now, maybe since the RSS icon was removed, visiting any feed will only show a subscribe now button with a pulldown list of helper apps, but zero content, as if the feed was empty. However, viewing source for the page shows the XML. And this isn't an issue of a bad feed, since I ran several of them through the W3C validator and they passed. I also experience this issue with a clean profile and no addons. Is there any way of showing feed content again, preferably styled?

    ''There is still an RSS feed icon available, but it is in the Customize palette and you need to drag it on a toolbar yourself.''
    The icon is not an issue. It is the feed content that doesn't work for me.
    ''Are there any errors in the Web Console (Firefox/Tools > Web Developer)?''
    YES! This is what it shows when run on every feed I try in safe mode:
    TypeError: this._feedWriter is null subscribe.js:21
    Use of Mutation Events is deprecated. Use MutationObserver instead. menulist.xml:240
    uncaught exception: out of memory
    TypeError: this._feedWriter is null subscribe.js:17
    ''What does the page inspector show if you right-click the space where the feed content should be?''
    An empty element. This is the entire content from the inspector: http://pastebin.com/f0hkn9VD
    ''Is there a feedBody DIV and a feedContent DIV?''
    Yes, see paste above.
    ''What is the setting for Web Feed in Firefox > Preferences > Applications''
    The default "preview in firefox".

  • JSF custom component

    Hi
    I have created a JSF cutom component , which has some javascript files. If i use the component within the same project my path for accessing the JS files is :- js/task.js (Its in public/html folder) .
    My problem is that when I use this custom component in some other project i am not able to access the js file ( Js file are deployed with other source file in ADF Library Jar) . As I have to hard code the path of JS files in the render can any one please tell me what will be the path for accessing the JS files.
    i heard ADFLibraryFilter is used for the purpose. Anyone please shed more light on it.

    Thanx Frank for your help .
    I am generating html from the rendererm, in the encodeBegin method i have now written <script type="text/javascript" src="adflibResources/js/task.js"></script>
    But still the script isn't loading on the page
    I added the following code in web.xml but Jdeveloper (Studio Edition Version 11.1.1.1.0) is complaining that "refernce oracle.adf.library.webapp.LibraryFilter and oracle.adf.library.webapp.ResourceServlet not found. I am using Fusion Web Application (ADF) as the application template.
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    <init-param>
    <param-name>provider-lazy-inited</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>

  • JSF table component with paging

    Are you aware of any existing JSF table component with both navigation and paging ?
    I want to display the content of a database table with a large number of rows. The table component should be able to navigate through the entire table content, but building only a small ResultSet and dinamically populate it with data as we perform navigation.
    Thanks,
    Cosmin

    Thanks for the answer.
    But data scroller just takes a ResultSet and display it with navigation. It doesn't know about the total number of rows in the table. It only display the number of records in the ResultSet.
    What I am looking for is a data scroller which based on some input parameters knows how to split the table in several ResultSets, dinamically change the ResultSet and display the total number of rows in the table and not in the current ResultSet.

  • JSF Declarative Component

    hi every body
    i am using Oracle Jdeveloper 11g release 2
    i wanted to create a Calendar Component
    for this i used JSF Declarative Component
    i added a RichInputText to page and a Button for opening calendar Dialog
    when for first time i open Calendar Dialog and select a day ,
    value of this day return to RichInputText truly but
    when i wanna to open it for second time that has an error
    error is:
    Error:dateValue is Read only
    i have to tell you dateValue is name of Attribute on JSF Declarative Component
    can anybody help me?

    i found a solution for this problem
    thanks

  • JSF Menu Component

    Hello Suners,
    I'm developing a JEE application and using mojarra jsf implementation. I need to find a JSF Menu component that i can use in my app.
    Regards,

    abulseed wrote:
    I need to find a JSF Menu component that i can use in my app.You would be better off creating your menus using Cascading Style Sheets (CSS). JSF menuing often involves JavaScript of some sort which won't work if the user has JavaScript turned off. CSS menuing guarantees that your menu always work (even with Javascript turned off) and it's better by design, not to mention less annoying to users.
    Googled for 'CSS menu' - there are heaps of examples out there that you can use.
    Edited by: user2412 on Apr 5, 2011 12:30 AM

  • JSF Tab component and Dynamic Faces AjaxZone

    Has anyone tried to use a JSF Tab Component in a Dynamic Faces Ajax Zone. I would like to try to have a page that has a list of the alphabet, each tab being one letter and then adding terms an definitions to each tab. Do you have any comments or suggestions regarding doing this. I am at a loss as to how to make the tab component respond when clicking on it in the ajaxZone. any help would be appreciated. thnx

    The Scales and Tomahawk libraries provides a tabbed panel.
    But basically tabs are nothing less or more than a bunch of block elements layered over each other with the same amount of buttons or links at the top. If a tab click doesn't require a trip to the server, then you can just load all tab blocks at once and use Javascript+DOM to switch between tab blocks, e.g. one block should be displayed using element.style.display='block' and all other blocks should be hidden using element.style.display='none'. If a tab click require a trip to the server (to preinitialize stuff or so), then you can use the 'rendered' property of the tab block element (which can be <h:panelGroup style="display:block;" rendered="#{myBean.showTab == 1}" /> or so).
    For styling of the tab blocks and tab buttons/links just use CSS.

  • JSF Calendar Component JS error

    Hi everyone,
    I have problem with JSF Calendar component. JSP version is 1.2 so we are using com.sun.rave.web.ui.component.Calendar class.
    When HTML code is generated some id missing. For example:
    JavaScript tries to find subForm:startCalendar:_datePicker:row5, but there is only subForm:startCalendar:_datePicker:row4.
    This cause JS error at line 249 in calendar.js:
    this.lastRow = document.getElementById(rowId);
    this.lastRow.style.display = "none"; //error is here this.lastRow is nullAfter few reloads and manual date change calendar seem to work fine for a while, but it can stop at anytime. There are no errors in Tomcat logs (we are using Tomcat 5.5, but we have same error with Glassfish 2).
    Here is JSP code:
    <ui:calendar binding="#{Index.startCalendar}" dateFormatPattern="dd.MM.yyyy" id="startCalendar" style="position: absolute; left: 120px; top: 96px"/>

    I had observed that the code for UI:Calendar Component looks up defaulttheme.jar file which will be avaialble with Sun studio creator or with UI tag jars ...... for its JS files, Images and style sheets etc .
    I tried seeing the contents in the JS files and there is a JS file specifically for Calendar Component ie calendar.js ... editing the same i came to see this
    // This does not work for August (08) and September (09) but it works
    // for all the other months????
    function ui_Calendar_setCurrentValue() {
        var curDate = this.field.value;
        var matches = true;
    but cant see Feb month there...
    It the problem with the code in teh JS file that they are using to generate the component...
    sooo the only solution would be to get the latest jars fixing that issue (defaulttheme.jar)
    I tried googling out for teh latest jars for the same i coudnt find any such...
    This is my investigation on this issue.Hope only code fix kills the flaw
    If any one gets a solution or workaround pls post ASAP to help us.+
    Edited by: Shivaji. on Feb 3, 2009 4:44 AM

  • Scroller Component not working with TabbedViewNavigator Component (Flex Mobile)

    SETUP:
    -The Application itself is a MobileApplication, not TabbedMobileApplication.
    -One of my pages/views (we'll call it "TabbedPage") incorporates the TabbedViewNavigator component, which calls on two other pages/views in my "views" folder; we'll call them "TabbedPageOne" and "TabbedPageTwo"; the other pages within the application are just regular View pages with components on stage, including a page that also incorporates the Scroller component, which functions properly without a hitch.
    -TabbedPageOne incorporates a Scroller component (followed by a VGroup component as required) that is constrained to the whole screen (left, right, top, & bottom all equal "0").
    -At runtime (on my desktop and device), when I navigate to the TabbedPage page -- consisting of TabbedPageOne & TabbedPageTwo -- the Scroller component will not scroll.
         ---Sidenote: I filled the page with components like buttons and labels to fill the page to the point of activating the scroll function, and although the buttons were still functioning (meaning they still respond to touch events), the Scroller still did not function.
    Is there something I'm missing or doing wrong, or is this a glitch within the Flex Framework?
    You help would be greatly appreciated!

    Sure!
    --------------------------------------------------- MAIN.mxml ------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"backgroundColor="
    #FFFFFF" firstView="views.TabbedPage"frameRate="
    60"splashScreenImage="
    @Embed('splashScreen.jpg')">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
    </s:MobileApplication>
    -------------------------------------------------------------- TABBEDPAGE.mxml ---------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:View  xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"actionBarVisible="
    false" tabBarVisible="false" title="TabbedPage">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:TabbedViewNavigator left="0" right="0" top="0" bottom="0">
     <s:ViewNavigator label="One" firstView="views.TabbedPageOne"/>
     <s:ViewNavigator label="Two" firstView="views.TabbedPageTwo"/>
     </s:TabbedViewNavigator>
     </s:View> </s:MobileApplication>  
    ---------------------------------------------------------------- TABBEDPAGEONE.mxml ------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:View  xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"actionBarVisible="
    false" tabBarVisible="true" title="TabbedPageOne">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:Label x="0" y="0" width="420" height="76" color="#000000" text="One"/>
     <s:Scroller left="0" right="0" top="40" bottom="0">
     <s:VGroup x="0" y="0" width="100%" height="100%">
    <!-- I just created these buttons so that the page scrolls--><s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
     </s:VGroup>
     </s:Scroller></s:View>

  • Jsf datatable component + java.sql.SQLException

    I get the following error when implementing a JSF DataTable component using
    JDeveloper 10.1.3.1.
    javax.faces.FacesException: java.sql.SQLException: Io exception: Socket closed
    I am able to follow the article in this link:
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html
    I can get the table generated, but it occurred to me that the example in this article does not include logic to close the statement, resultset, and connection. Sure enough, I jumped out to the database and there were numerous inactive connections hanging around from my application.
    I added the following code before the return null statement from the article:
    finally {
    try {
    rs.close();
    stmt.close();
    c.close();
    catch (Exception e) {
    System.out.println("after close");
    So I need to know the proper procedure to closing the resultset, statement, and connection using a jsf datatable component.

    You need to make sure you're using the Oracle9i JDBC driver, or using the Oracle 8.1.7.2 JDBC driver as I mentioned above.
    If you are using JDeveloper9i release 9.0.2 or 9.0.3, the driver you need is in <jdevhome>\jdbc\lib
    Otherwise, you can also download the drivers from OTN.

  • Can't instantiate JSF Custom Component

    I'm hoping some of you expert (or at least seasoned) JSF custom component developers might be able to lend some insight into the "Can't instantiate class" problem. I have a custom component which extends another component (which happens to be Oracle ADF's panelGroup), and I've verified that everything is in place:
    1. Component class uses correct component type referenced by faces-config.xml and tag class
    2. Renderer type referenced in faces-config.xml matches that of the renderer type in component class
    3. There is a default constructor (no args) for the component class, which also sets the renderer type
    4. TLD with tag is correct
    All classes are definitely in the classpath, as I have another custom component in the same packages which loads and is used just fine.
    Any ideas would be appreciated.
    Thanks,
    Shawn Bertrand
    Tyco Electronics

    So, is no one else having any problems when using the new JSF components from Java Studio Creator 2 in their existing projects? I can make simple projects in Creator and run them on PointBase and Tomcat and can deploy and run from Eclipse using MyEclipse but I cannot get my existing project working and I am wondering if their is some sort of conflict between the new JSF components and legacy Struts stuff in that project or if perhaps Spring is someone interferering. Kind of at a loss right now...

  • Smooth s:Scroller Component in Flex4

    Hi at all,
    can i create a smooth <s:Scroller> component in Flex4?
    I would like moving the thumb movement was smooth.
    <s:Scroller width="80%" height="80%"
                    horizontalCenter="0" verticalCenter="0">       
            <local:Dummy id="dummy"
                     clipAndEnableScrolling="true" />
        </s:Scroller>
    Dummy components contains an Image 2000x2000px
    Thanks

    When you say "smooth" do you mean you want to animate the scrollbars?
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Declarations>
            <s:Animate id="myAnimate" target="{scroller.viewport}">
                <s:SimpleMotionPath property="verticalScrollPosition" valueBy="100" />
                <s:SimpleMotionPath property="horizontalScrollPosition" valueBy="100" />
            </s:Animate>
        </fx:Declarations>
        <s:controlBarContent>
            <s:Button label="scroll" click="myAnimate.play()" />
        </s:controlBarContent>
        <s:Scroller id="scroller" width="300" height="300">
            <s:Group>
                <s:Button label="large button" width="1200" height="1200" />    
            </s:Group>
        </s:Scroller>
    </s:Application>

  • Tooltip on the header of JSF table Component

    How to add an Tooltip to the header of the JSF table copmponent?
    Please reply....

    You normally use the HTML 'title' attribute for this. Almost every JSF HTML component also supports it.

  • How can I change the default wording of scrolling component for datatable

    Hi,
    Is it possible to change the default wording (i.e. "previous n" and "next n") shown on scrolling component for datatable? how ?
    I created a datatable based on a custom vector bean class. By default the count shown on scrolling component indicates number of rows (i.e. first 2 rows, next 2 rows). What I want is to show (if it is a 2X2 table) first 4 (items) and next 4 (items).
    Any suggestion?

    Not only can you set global values for each of the three columns, but you can also set unique column widths on a per community basis like this:
    .ptCommunity-1234 .columnOne { width: 635px; border-right:1px solid #CCCCCC; padding-top: 10px; padding-right: 20px; }
    .ptCommunity-1234 .columnTwo { width: 240px; padding-top: 10px; padding-left: 8px;}
    You can see here my community #1234 has a wide first column and a more narrow column two and even puts a little solid line between them.
    It's all in the stylesheets on your imageserver at the path I mentioned earlier. Again, look at the experience definition object in your admin portal and look at the stylesheet name in the dropbox. The stylesheet name you see is mapped to the .css file using the community-themes.txt file in the same ...yadayada/common/public/css folder on the imageserver.
    If you have, lets say, a mainstyle1-en.css that only has about a dozen lines dictating only the few items you mentioned before - then it has been stripped at one time because the default that comes w/ an original install is huge and a great starting point. It even has style tips and snippets in comment blocks to tutor you through its gargantuan variety of options.

  • Why isn't my wired Mighty Mouse scrolling down?

    Some days like right now my wired Mighty Mouse that came with my late 2007 20" aluminum iMac doesn't want to scroll downwards. The scroll ball scrolls upwards and sideways perfectly but doesn't want to scroll down. Why is it doing this? I tried cleaning the area of the scroll ball but still nothing. Please don't say that I need a new mouse.

    I have the same problems with my less than six weeks old 24" iMac & two yr old macbook: i always wipe my hands before using them. I have tried most suggestions on this forum and others to no avail.
    I could probably get a replacement thru apple care for my iMac, but since the problem is so prevalent, another mouse is not a viable solution.
    At this time, I actually prefer using an old cheap wired mouse that was in storage .
    To those considering another brand, I had random waking & waking only with restarting issues with a wireless logitech mouse on my macbook.

Maybe you are looking for