t:tree component is not rendering tree structure for my page

Dear dudes,
I want to create a simple tree structure in my jsf page backed by a backing bean.
But my jsf page is getting executed but my tree is not getting displayed.
my jsf page:<ui:composition xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:s="http://jboss.com/products/seam/taglib"
     xmlns:rich="http://richfaces.ajax4jsf.org/rich"
     xmlns:t="http://myfaces.apache.org/tomahawk"
     xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
<f:view>
     <html>
          <body>
               <h:form>
                    <t:tree id="tree" value="#{mytreeBean.myTree}" styleClass="tree"
                         nodeClass="treenode" selectedNodeClass="treenodeSelected"
                         >
                    </t:tree>
               </h:form>
          </body>
     </html>
</f:view>
</ui:composition>Mybacking bean:
package org.test.tree;
import java.util.Iterator;
import java.util.List;
import org.apache.myfaces.custom.tree.DefaultMutableTreeNode;
import org.apache.myfaces.custom.tree.model.DefaultTreeModel;
import com.srit.framework.web.BasePage;
import com.srit.healthcare.common.lookupentity.repository.ILookupRepository;
import com.srit.healthcare.common.tree.domain.RcareTree;
public class MyTreebean {
     private DefaultTreeModel myTree;
     public DefaultTreeModel getMyTree() {
          return myTree=getTreeModel();
     public void setMyTree(DefaultTreeModel myTree) {
          this.myTree = myTree;
     /*public MyTreebean() {
          DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
          DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
          root.insert(a);
          DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
          root.insert(b);
          DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
          root.insert(c);
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
          a.insert(node);
          node = new DefaultMutableTreeNode("a2 ");
          a.insert(node);
          node = new DefaultMutableTreeNode("b ");
          b.insert(node);
          a = node;
          node = new DefaultMutableTreeNode("x1");
          a.insert(node);
          node = new DefaultMutableTreeNode("x2");
          a.insert(node);
          myTree = new DefaultTreeModel(root);
     public DefaultTreeModel getTreeModel() {
          DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
          DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
          root.insert(a);
          DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
          root.insert(b);
          DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
          root.insert(c);
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
          a.insert(node);
          node = new DefaultMutableTreeNode("a2 ");
          a.insert(node);
          node = new DefaultMutableTreeNode("b ");
          b.insert(node);
          a = node;
          node = new DefaultMutableTreeNode("x1");
          a.insert(node);
          node = new DefaultMutableTreeNode("x2");
          a.insert(node);
          return myTree = new DefaultTreeModel(root);
}Also i've configured my tomahawk-taglib file in my web.xml .
My backing bean is configured in my faces-config.xml
But i'm not able to get my tree structure in my page .
Any help would be appreciated.
Regards

Dear akash,
yes i'm seeing the jsf tags <t:tree>
But when i modify my jsf page , in my configuration files i'm getting the following errors:
In web.xml
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
     version="2.4">
</web-app>
error message:  cannot find the declaration of element web-apps
error message: failed to read schema document http://java.sun.com/xml/ns/j2ee             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd  because 1) couldnot find the document 2) the document could not be read 3) the root element of the document is not <xsd:schema>In another configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:aop="http://www.springframework.org/schema/aop"
     xmlns:tx="http://www.springframework.org/schema/tx"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
            http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
            http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
Error: cannot find the declaration of element 'beans'I'm a novice to JSF technology and plz guide me properly.

Similar Messages

  • Example of Dynamic Structure for uix Pages

    Hi for all,
    I am trying to use the example of the UIX Developer's Guide topical 12 (Dynamic Structure for uix Pages) an example of class 'SampleClass'. In the line:
    'Person[ ] people = _ getPeople(...);'
    Somebody could explain me what it returns _getPeople. A String? Or explain me how populate it for a test?
    Debtor,
    Fernando.

    It returns an array of Person classes (defined above).
    public class Person
    public String id;
    public String firstName;
    public String phoneNumber;
    It's not important how _getPeople is implemented. Here's a quick, hacky,
    approach:
    private Person[] _getPeople()
    Person[] people = new Person[2];
    people[0] = new Person();
    people[0].id = "1001";
    people[0].firstName = "Albert";
    people[0].phoneNumber = "212.555.4567";
    people[1].id = "1002";
    people[1].firstName = "Mary";
    people[1].phoneNumber = "717.555.8421";
    return people;
    }

  • MyFaces schedule component is not rendering properly.

    Hello everybody.
    I am trying to use the Tomahawk schedule component with Jdeveloper 10.1.3.2. It is not rendering properly.
    The schedule entries and the header line are mising for weeks.
    I removed the default-render-kit-id element from the faces-config.xml. Nothing changed.
    Used versions:
    - Jdeveloper 10.1.3.2
    - myFaces 1.5.1
    - tomahawk 1.5.1
    Any suggestions?
    Thanks.

    Hi,
    did you post this question on the MyFaces open source list?
    Frank

  • Firefox will not 'save as pdf' for whole page, when the page is a large one. How can this be fixed?

    My Mac Desktop PPC (2002) is running 10.4.11.
    Firefox has no more updates beyond 3.6.24, which is what I'm running here.
    I want to save a NY Daily News live update page (large and with photos..) ..which is not 'infinitely large': this one is page 3..
    But the resulting pdf is two pages, with a NY Daily New beginning.. and an 'end' on page 2. Nothing in between.
    can you help
    'Troubleshooting information' is non-applicable here, since Firefox does not even acknowledge this as a category..!

    See:
    *http://kb.mozillazine.org/Problems_printing_web_pages
    *https://support.mozilla.org/kb/Printing+a+web+page
    Try to adjust the print scale: File > Page Setup > "Format & Options": Scale (unselect: "Shrink to fit page width")

  • I do not see the cookie for a page in the cookies.sqlite db

    I have the SQLite Manager and I am looking at the cookies in the DB for the file cookies.sqlite
    I am unable to see the cookies for some pages that I am browsing.
    I have logged into a page and then " Tools > Page Info > Security > View Cookie"
    I see a cookie called "JSESSIONID" all see all its details here. But I do not see it in the cookies.sqlite
    Is there someother place where this gets stored? or it doesnt because its a JESESSIONID ?

    Only cookies that you keep across a browsing session are stored in cookies.sqlite.<br />
    Session cookies that expire when you close Firefox are never stored.
    You can see the expiration in the cookies manager (Firefox > Preferences > Privacy > Cookies: "Show Cookies")

  • h:dataTable with component binding not rendering

    Hello,
    I am developing an application with several ad-hoc queries that need to be displayed in data table elements. The number and label values of the columns are not known until runtime. I am attempting to use a component binding mechanism to intercept the UIData and add columns to it at runtime, depending on the data currently held in a backing bean instance (such as an ad-hoc query result).
    I'm not sure where I can actually intercept the table and add the columns. I've got the following code example to compile and run without error, but nothing gets rendered properly - I get an opening <table> tag in the HTML source and nothing else follows.
    I have compared the structure of the table created with the following binding method to a table created with simple <h:dataTable> tags, and I see only one difference. The datatable created with tags has a single attribute in its attribute map called "javax.faces.webapp.COMPONENT_IDS" that maps to an ArrayList of the component IDs of the h:column elements I specify on the JSF page. The datatable I attempt to create in the binding method does not have this attribute in its map, and I can't seem to manually add it in without creating further havoc. (the child count, types of children, etc all seem to be equivalent).
    From the JSF perspective this is how I've defined the h:dataTable tag instance...
    <h:dataTable id="categoryTable" rendered="true"
            binding="#{backingBeanInstance.table}"
                value="#{backingBeanInstance.rows}"
                    var="row"  border="2" />This is basically the code in the backingBeanInstance....
        private UIData table;
        public void setTable(UIData table){
            this.table = table;
           //initTable();   //tried this but seems not to work either?
        public UIData getTable(){
            if(table!=null){
                initTable(); //build the columns and add to the table
            return table
        private void initTable(int categoryIndex){
                //This block is just a way to calculate the number of columns
                int colCount = <depends on data held in bean>
                //Resolve the var string for the data table
                String item = table.getVar();
                System.out.println("item: " + item);  //this is always null the 1st time through?? why?
                UIColumn col;
                UIOutput out;
                FacesContext context = FacesContext.getCurrentInstance();
                Application app = context.getApplication();
                //For each column in the data, create a UIColumn as child of the
                //data table.  Create a UIOutput as child of the UIColumn and bind
                //the value of the UIOutput to the data with an EL expression
                for (int j = 0; j < colCount; j++) {
                    //create an instance of UIOutput to display the value for this cell
                    out = new UIOutput();
                    out.setRendererType("Text");
                    //create an instance of UIColumn
                    col = new UIColumn();
                    //construct the value binding string as an EL expression
                    String valueBindingString = "#{" + item + "[" + j + "]}";
                    //create the value binding
                    ValueBinding vb = app.createValueBinding(valueBindingString);
                    //set the value binding on the UIOutput object
                    out.setValueBinding("value", vb);
                    //add the UIOutput component to the UIColumn as a child
                    col.getChildren().add(out);
                    //add the UIColumn to the data table as a child
                    table.getChildren().add(col);
        }

    <bump>

  • Component labels not rendering correctly after applying fusion skin

    Hi
    I have been using ADF 11g with blaf-plus-rich skin. Recently I upgraded to 11g R1 Patch Set 1 . I applied the new fusion skin and after that labels on the components are not appearing in the right color. They are appearing in white color as the back ground color of panel box in which they are in.
    Any help is greatly appreciated
    Thanks
    AC

    Hi Frank,
    Please see the code below :
    1. Code snippet from page template used by our app :
    <f:facet name="second">
    <af:panelStretchLayout id="pt_psl1">
    <f:facet name="center">
    <af:decorativeBox id="contentBody" theme="contentBody">
    <f:facet name="center">
    <af:facetRef facetName="content"/>
    </f:facet>
    </af:decorativeBox>
    </f:facet>
    <f:facet name="bottom">
    <af:facetRef facetName="contentBottom"/>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    2. Code snippet from trinidad-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>mystyle</skin-family>
    </trinidad-config>
    3. Code Snippet from trinidad-skins
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
    <skin>
    <id>mystyle.desktop</id>
    <family>mystyle</family>
    <extends>fusion.desktop</extends>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <style-sheet-name>common/css/mystyle</style-sheet-name>
    <bundle-name>myBundle</bundle-name>
    </skin>
    </skins>
    4.Code snippet from a jspx page
    <af:panelGroupLayout layout="scroll" id="pgl1">
    <af:panelHeader text="test"
    inlineStyle="padding:2px;" id="ph1"/>
    <af:panelBox text="search"
    id="id" inlineStyle="padding:2px;"
    styleClass="AFStretchWidth">
    <af:panelGroupLayout layout="vertical" id="pgl6" valign="top">
    <af:panelGroupLayout layout="horizontal" id="pgl2" valign="top">
    <af:panelFormLayout id="pfl1" labelWidth="75"
    inlineStyle="margin-right:30px;">
    <af:group id="grp1">
    <af:panelLabelAndMessage label="Test Label"
    id="plam1" for="supplierId">
    <af:inputListOfValues popupTitle="Lov Title"
    simple="true" id="supplierId"
    model=""
    value=""
    autoSubmit="true"
    valueChangeListener=""
    columns=""
    converter="javax.faces.Long"
    maximumLength="10"
    searchDesc=""
    binding=""
    disabled="">
    <f:validator binding=""/>
    </af:inputListOfValues>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:panelBox>
    </af:panelHeader>
    </<af:panelGroupLayout>
    The label for the LOV is rendering in white color. If I change my template theme to "medium" or "light", the labels
    are rendred correctly , but text values in disabled input text appear as white.

  • Font used in masked component is not rendered

    Hi,
    I developed a formular using components (Button and List),
    that formular is masked and all the fonts used used by my
    components are not displayed.
    When removing the mask, the component's titles are
    displayiing properly.
    How can I render the font of my components when masked?
    Is there a trick?
    Thanks

    I found the solution :
    the form is contained in a clip called "clip", I merely had
    to set the cacheAsBitmap value to true :
    clip.cacheAsBitmap=true;

  • ITunes will not preserve directly structure for transferred photos

    I have a large number of photographs that I have transferred to my IPod 5G. On my computer hard drive, the photos are organized into a folder for each year (i.e. 2004, 2005) and then those folders contain subfolders for each month in that year. When I synced the photos with my IPod, the subdirectories for each of the months did not copy over, so all the photos are in one giant folder for each year. This makes finding photos in the IPod very difficult, as I have to scroll through all the photos taken in 2005 (hundreds) before I can find the ones from this Christmas (the individual files are sorted by date). Any suggestions as to how I could make sure the whole directory structure is transferred to the IPod?

    The photo support in the iPod is based stongly on iPhoto. By default, years are natural folders in iPhoto. Although in iPhoto 6, you can also look by month, it doesn't create a virtual photo representing that. However if you create a folder in iPhoto, say Christmas 2005, that does get transferred properly to the iPod & thus gives the functionality you are looking for.
    It sounds like you're using the sync folder method, rather than using a host app, like Adobe Elements or Album. In that method here's what the docs say:
    You can sync all of the photos in a selected folder, or only photos in specific folders inside the selected folder. Folders inside the selected folder will be displayed as photo albums on the iPod , but subfolders beneath them will not be.
    More details here

  • Azure Web Application Proxy not rendering all assets for RD gateway

    Hi All,
    I have an on prem RD gateway, internal as http://desktop and internal with https://desktop.mydomain.local and https://desktop.mydomain.com via a forward lookup zone. internally it is working ok.
    I installed the azure web application proxy and configured each one of those URL's in an attempt to get this working ok.
    The problem is that it renders the header and nothing else in FireFox and Chrome, IE tells me its in protected mode. But when i check the web requests I am getting A status of "aborted" on the assets, be they jpg, css etc. This is very strange.
    I have the firewall open as per the sparse documentation on technet. Any demos I have seen were on a simple single asp.net mvc dummy site.
    I am using passthrough at the moment and the rd gateway is in forms based auth mode. I got this working last month with regular on prem WAP on another build. Has anyone actually attempted to use this to publish anything significant ?
    Rob
    Rob

    Hi Rob, 
    It is possible that we do not support Remote Desktop Gateway being published via the Azure Active Directory Web Application Proxy and that is why your running into issues. I shall have to check this out as I have not attempted to do this yet. 
    I shall investigate and come back to you in regards to this, I shall also reach out to the team whom own this feature and they may choose to reply directly via this thread. 
    Regards, 
    James.

  • Pagelets not rendering in Fusion ADF application pages deployed on standalone weblogic server

    HI All,
    I am creating a Pagelet Producer connection, and dragging a pagelet on the page as iframe, with height auto. When I run the application in the integrated weblogic server, I am able to see the pagelet. However when I deploy the application on the standalone weblogic server, then the pagelet isn't rendered.
    I am using fusion ADF application 11.1.1.7  and standalone weblogic server v 10.3.6.
    Thanks in advance for yours assistance. Please I need a solution for this uregently. DO let me know, if you need any additonal information.
    Regards,
    Nikhil Mahto

    Sorry for the wrong infromation. The correct scenario is:
    I have an ADF application, in which I have a Pagelet producer connection, pages and taskflows. This ADF application is inlcuded in a Webcenter Portal Framework application, as a shared library. When the WCF application is deployed on the Weblogic server, the pagelets don't appear on the pages.
    I tried the FRAMEBUSTING context parameter to never but it didn't help.
    Regards,
    Nikhil Mahto

  • Component should not be made available for backflush during final Backflush

    Hi,
    In REM Scenario, during final backflush system explodes and proposes all components in the header material for GI backflush. Is there any way we can restrict certain materials not to appear for GI backflush and that can be posted at later time.
    your thought and suggestion is well appreciated.
    regards,
    ppcon

    Hi,
    Suppose componenet stock is less at the time of backflush. Now you can do backflush, after that you can clear the error (goods mvt) in COGI.
    OR
    You can do GI later for all components after doing backflush. The setting is available in REM profile. But for certain material not possible.
    Regards,
    Dharma

  • "Upload" Button not rendering in firefox for multiple file upload

    This is driving me nuts. The "Upload" Flash button is not appearing in one of my apps in firefox only. The even weirder thing is I have another app which it does work. I've tried copying the includes folder for the app that works over to the one that doesn't. Deleting the includes and doing a basic test dynamic form and then adding the multiple upload beahviour.
    When i test it, the "upload" button simple isn't there. any one else run into this?

    OK, sorry, i guess it was a firefox cache issue. I right clicked on the window for the upload and hit "reload". The "upload" flash button now appears.
    man, that was driving me nuts.

  • Tree Component

    Hi ye,
    The code on my Flash tree component has:
    var treeL:Object = new Object();
    treeL.change = function() {
    var item = theTree.selectedItem;
    var earl = item.attributes.url;
    if(earl) {
    getURL(earl ,target=myIframe);
    the xml file it reads from has eg.
    <tree>
    <folder label="Test">
    <link label="TSample" url="one.html" />
    </tree>
    The myIframe target above is on the same html page as the
    tree component, but instead of loading the file "one.html" into
    the target myIframe, it gets loaded as a separate one.html
    page.
    The question is, how do I target an Iframe named myIframe
    with its layout controlled by a content id, from a Flash tree
    component on same html page, and get my one.html file to load into
    it??
    The one.html file currently loads as a separate hml page.
    thanks
    Colm

    Although tree component is not currently part of the reference implementation, example under EA3 release, contains a simple Tree implementation(included under example/components)that you can use as a starting point.
    -Jayashri

  • Select tree node in tree component

    hi,
    i am developing a web site which has a site map as a tree component, the sitemap is a inserted in a page fragment, users could click tree nodes to go to corresponding pages. also on other pages, i have next and previous buttons which allow users to navigate through pages. the question is how can i update the tree component when users navigate using the next and previous buttons so that the correct tree node is highlighted?
    i tried to use the selected property for the tree component, but it does not do anything.
    thanks,
    lee

    Hi,
    Duplicate thread of
    http://swforum.sun.com/jive/thread.jspa?threadID=64518
    MJ

Maybe you are looking for

  • How long to partition a 500mb drive

    I just bought a Seagate FreeAgent 500mb drive that needed to be partitioned because it came formatted NTFS for PCs. How long should this take? The progress bar has not hardly moved. Thanks.

  • Any easy way to tell if Optional VI connection is connected?

    If a connection to a VI is Optional, is than any easy way to tell if an connection is made by the calling function or if it is disconnected? Thanks.

  • Code Version Being Executed is Different

    Dear All, I have a user exit in VA01 program MV45AFZZ. I have made changes and activated. When I am running the code in debug, its running fine with its desired results. However when I am running it normally, without debug, its not executing the addt

  • Can't delete photos from phone

    When I sync and download photos to iPhoto I ask it to delete the photos from the phone but it never does... Help!

  • Folio Producer 1.1 has screwed my InDesign

    Has made InDesign unusable. I've tried and failed to re-install the earlier version. InDesign will crash whenever I try to preview on content viewer or upload a new article to a folio. What can I do and why isn't it working?