5 Replies Latest reply on Jul 10, 2009 6:35 AM by Ilya Shaikovsky

    My Richfaces on Seam Project

    E Ric Newbie

      Hello People..

      I have a question and i hope you can help me.

      So this is what you see from my eclipse.
      On "yuk.xhtml" data, you could see the preview of the tree that supposed to be shown.
      [url=http://img188.imageshack.us/i/13632428.jpg/][img=http://img188.imageshack.us/img188/9493/13632428.th.jpg][/url]


      And this is its code.

      <!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:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
       <style>
       .col, .col2 {
       width:50%;
       vertical-align:top;
       }
       </style>
       <h:form>
       <h:panelGrid columns="2" width="100%" columnClasses="col1,col2" style=" height : 82px;">
       <rich:tree id="Tree">
       <rich:treeNode style="width:300px" nodeSelectListener="#{simpleTreeBean.processSelection}"
       reRender="selectedNode" ajaxSubmitSelection="true" switchType="client"
       value="Test" var="item" ajaxKeys="#{null}">
       <h:outputText value="Parent Node"/>
       </rich:treeNode>
       <rich:treeNode style="width:300px"
       reRender="selectedNode" ajaxSubmitSelection="true" switchType="client"
       value="Test" var="item" ajaxKeys="#{null}">
       <h:outputText value="Children Node 1"/>
       </rich:treeNode>
       </rich:tree>
       </h:panelGrid>
       </h:form>
      </ui:composition>
      


      But when i clicked "Run On Server" with JBoss Server Runtime 4.2,
      And type this on my browser :
      http://localhost:8080/Seam1/yuk.seam

      I couldn't see the result what i saw on the source with my Eclipse.

      All i saw on the browser was :
      NullPointerException.


      What should i do?



      Please help me