1 Reply Latest reply on Aug 1, 2008 6:03 AM by arneanka

    rich:tree: el-expressions ignored completely -- tree not ren

    arneanka

      i try to get the simple example from livedemo up and flying, but the tree is absolutely and completely ignored (i tried <h:form> and whatsoever, only to force an error -- nothing. below is the shortest code)!
      only thing i see is "Selected Node:".
      what's particular weird: the el-expressions are not read! i can put into them whatever i want, nothing happens -- no error, nothing.

      everyone of the three el-expression below should start with stbean. -- but as you can see, that's not the case. and yet, the server does not complain, it's silently ignored!

      do i need to add a library? configure something? no clue whatsoever

      <!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:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       template="layout/template.xhtml">
      
       <ui:define name="body">
      
       <h:messages globalOnly="true" styleClass="message" />
      
       <rich:panel rendered="true">
       <rich:tree style="width:300px" nodeSelectListener="#{stbean.processSelection}" reRender="selectedNode" ajaxSubmitSelection="true" switchType="client"
      value="#{simpleTrcvcxvxcvxceeBean.treeNode}"
       var="item">
       </rich:tree>
      
       <h:outputText escape="false" value="Selected Node: #{stb3ean.nodeTitle}" id="selectedNode" />
      
       </rich:panel>
       </ui:define>
      </ui:composition>
      


        • 1. Re: rich:tree: el-expressions ignored completely -- tree not
          arneanka

          seems to works somehow now.
          first thing was to put
          @Name("stbean")
          into SimpleTreeBean.java -- the example commes completely w/o annotations of this kind, can't understand how it is supposed to work.
          next thing was to really write "stbean" everywhere in the el -expressions.

          yet, there's no error if the bean's name is wrong, it's simply ignored.
          all other bean names cause errors if spelled wrong, stbean simply does not ...
          mysterious.