1 Reply Latest reply on Apr 8, 2008 6:02 PM by jenkinsa

    error - tree + glassfish + netbeans

    jenkinsa

      Hi,

      I'm trying to get a very simple page working using a web project in netbeans. I'm using glassfish v2 with Netbeans 6.0 and have a very simple page testing a tree. The tree only ever expands one level deep (even though in my test code I have it 3 levels deep) and when I click to expand I get the following error in the logs:

      PWC4011: Unable to set request character encoding to UTF-8 from context /zTest, because request parameters have already been read, or ServletRequest.getReader() has already been called


      The only thing on the page is the tree:

       <h:form>
       <rich:tree id="httpLocTree" switchType="ajax">
       <rich:recursiveTreeNodesAdaptor roots="#{Tree.baseNodes}" var="item" nodes="#{item.children}"/>
       </rich:tree>
       </h:form>
      


      The managed bean Tree just has a hardcoded array list of TreeNodes (getBaseNodes) which has an id, name and child nodes (all hard coded). So we're talking really basic tree example here.

      It's using 1.2MR1 of Suns Reference implementation and has no other filters configured other than the richfaces one.

      Does anyone have any thoughts?