I'am trying to use the Tree with tapestry 4 also, i'am not done yet but the error you get is because of one parameter being null in :
if (state == null || contentProvider == null || keyProvider == null) {
           throw new IllegalArgumentException();
       }

So you should maybe first make sure that they are all not null.



Tim Sawyer <[EMAIL PROTECTED]> wrote :
I'm trying to use the Tacos Tree component but it seems to not work with
Tapestry 4.  Has anyone done the work to produce a 4 version or am I going to
have to do it myself?

Am trying to do it myself, but the lack of documentation/error messages is 
making it rather difficult.

I get

java.lang.IllegalArgumentException
Stack Trace:

   * net.sf.tacos.tree.TreeManager.<init>(Unknown Source)
   * net.sf.tacos.tree.Tree.getManager(Unknown Source)
   * net.sf.tacos.tree.Tree.isExpanded(Unknown Source)
   * net.sf.tacos.tree.Tree$TreeIter.getChildren(Unknown Source)
   * net.sf.tacos.tree.TreeIterator.next(Unknown Source)
   * org.apache.tapestry.components.Foreach.renderComponent(Foreach.java:94)
   * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
   * 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:429)
   * org.apache.tapestry.components.Any.renderComponent(Any.java:48)
   * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
   * org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)


on the page that uses the tree component.  Does anyone know what this error 
means?

Tim.






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to