myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hendrik-neum...@web.de
Subject x:tree-Problems
Date Sun, 26 Dec 2004 00:24:04 GMT
Hi there,

I'm just trying to implement your tree-table component into my WebApp. 
Therefore I just copied the code from your web-app-example 1:1 into my 
navigation.jsp page (the x:panelLayout-component works well) and applied all 
needed resources like the tree-table-demo-classes and the the treeTable-entry 
in the faces context etc. etc.

Nevertheless it's not working. Can you guys help me, figuring out what I made 
wrong?

This is my JSF-Page:

<%@ page session="true" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="jsfcore" prefix="f" %>
<%@ taglib uri="jsfhtml" prefix="h" %>
<%@ taglib uri="myfacesextension" prefix="x" %>
<%@ taglib uri="mycomps" prefix="jhn" %>
<f:loadBundle 
basename="de.hendrik_neumann.projects.commercial.kandmsma.view.locales.jspnavigation" 
var="navigationPhrases" />

<h:panelGrid columns="2" styleClass="globalNavRubClone" 
columnClasses="globalNavRubCloneTableDataOne, globalNavRubCloneTableDataTwo" 
border="0">
 <h:panelGroup>
  <h:panelGrid columns="1" styleClass="jsmenutotal" 
columnClasses="jsmenutotalColl" border="0">
    <!-- todo: implement the jscook-menu!!! -->
  </h:panelGrid>
 </h:panelGroup>
 <h:outputText value="" />
 <h:graphicImage styleClass="stylePic" border="0" 
url="../files/icons/barleftbig.gif" />
 <h:panelGroup>
        <h:form>
        <x:tree id="tree" value="#{treeTable.treeModel}"
          var="treeItem"
          styleClass="tree"
             nodeClass="treenode"
             headerClass="treeHeader"
             footerClass="treeFooter"
             rowClasses="a, b"
             columnClasses="col1, col2"
             selectedNodeClass="treenodeSelected"
             expandRoot="true">
         <x:treeColumn>
          <f:facet name="header">
                 <h:outputText value="Header 2" />
                </f:facet>
          <h:outputText value="#{treeItem.name}" />
         </x:treeColumn>
      </x:tree>
  <f:verbatim><br></f:verbatim>

   </h:form>
   
  <jhn:userPanel user="#{currentUser}" styleClass="login" 
   headerClass="loginHeader" footerClass="loginFooter" 
   textFieldClass="normalInput" textClass="smallFont" 
   buttonClass="normalButton" headerPhrase="#{navigationPhrases['login']}" 
   usernamePhrase="#{navigationPhrases['username']}" 
passwordPhrase="#{navigationPhrases['password']}" 
   buttonPhrase="#{navigationPhrases['send']}" 
newaccountPhrase="#{navigationPhrases['newaccount']}" 
   loginbean="#{loginbean}" /> 
  
 </h:panelGroup>
 <h:outputText value="" />
 <h:panelGroup>
  <h:graphicImage border="0" style="padding-right:5px;" 
url="../files/icons/leftarrowoff.gif" />  
  <h:outputText style="color:#B2D8EB;" value="-----" />
  <h:graphicImage border="0" style="padding-left:5px;" 
url="../files/icons/rightarrowoff.gif" />  
 </h:panelGroup>
</h:panelGrid>

And this is the output from catlina:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: menu:_id17:tree_node_0
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_subview_1
(welcomeguest_jsp.java:352)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_facet_1
(welcomeguest_jsp.java:321)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_x_panelLayout_0
(welcomeguest_jsp.java:221)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_view_0
(welcomeguest_jsp.java:170)
 
org.apache.jsp.sites.user.welcomeguest_jsp._jspService(welcomeguest_jsp.java:96)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

root cause

java.lang.IllegalArgumentException: menu:_id17:tree_node_0
 javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:460)
 javax.faces.component.UIComponentBase.setId(UIComponentBase.java:271)
 org.apache.myfaces.custom.tree.HtmlTree.createRootNode(HtmlTree.java:548)
 org.apache.myfaces.custom.tree.HtmlTree.expandPath(HtmlTree.java:453)
 org.apache.myfaces.custom.tree.taglib.TreeTag.doStartTag(TreeTag.java:394)
 org.apache.jsp.sites.inc.navigation_jsp._jspx_meth_x_tree_0
(navigation_jsp.java:454)
 org.apache.jsp.sites.inc.navigation_jsp._jspx_meth_h_form_0
(navigation_jsp.java:418)
 org.apache.jsp.sites.inc.navigation_jsp._jspx_meth_h_panelGroup_1
(navigation_jsp.java:383)
 org.apache.jsp.sites.inc.navigation_jsp._jspx_meth_h_panelGrid_0
(navigation_jsp.java:175)
 org.apache.jsp.sites.inc.navigation_jsp._jspService(navigation_jsp.java:108)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_subview_1
(welcomeguest_jsp.java:352)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_facet_1
(welcomeguest_jsp.java:321)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_x_panelLayout_0
(welcomeguest_jsp.java:221)
 org.apache.jsp.sites.user.welcomeguest_jsp._jspx_meth_f_view_0
(welcomeguest_jsp.java:170)
 
org.apache.jsp.sites.user.welcomeguest_jsp._jspService(welcomeguest_jsp.java:96)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.0.27 logs.
Apache Tomcat/5.0.27

Any ideas?

Mime
View raw message