2 Replies Latest reply on Jul 10, 2009 6:28 AM by Nick Belaevski

    newbie stucks on rich tree

    E Ric Newbie

      Hello guys,

      i need your help.

      I am still stuck making a tree with RichFaces on my Seam Project.

      As usual, on my eclipse i make a new project: New -> Project -> Seam -> Seam Web Project.

      I once tried to do example from http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=model&cid=1445593
      But it didn't work.
      So i tried to make a more simple Richfaces Tree.

      My Source code is this :

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       template="layout/template.xhtml"
       xmlns:a4j="http://richfaces.org/a4j">
      
       <ui:define name="body">
      
       <h1>Welcome to Seam!</h1>
       <rich:panel header="RepeateR">
       <h:panelGrid columns="2">
       <h:graphicImage value="/img/seamlogo.png" alt="Seam logo"/>
      
       <rich:tree>
       <rich:treeNode submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
       <h:outputText value="RichFaces Home Page"/>
       </rich:treeNode>
       <rich:treeNode>
       <h:outputText value="RichFaces Home Page 1"/>
       </rich:treeNode>
       </rich:tree>
      
      
       </h:panelGrid>
       </rich:panel>
       </ui:define>
      </ui:composition>



      And this is the preview :
      [url=http://img34.imageshack.us/i/69878263.jpg/][img=http://img34.imageshack.us/img34/6962/69878263.th.jpg][/url]

      But when i deployed it, i got this in my browser as a result:
      [url=http://img12.imageshack.us/i/99683064.jpg/][img=http://img12.imageshack.us/img12/9721/99683064.th.jpg][/url]


      What does it mean?
      Could anyone please help me?

      I am stucked and dont know what to do..
      i am a newbi here..


      Thank you