There is a new Tomahawk coming out shortly. *After* this release all future releases will also have an examples release which includes the full source. Since everything is available in subversion it hasn't been a big priority up until now.
Sean On 6/5/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
Well, this class is pretty simple. It is a pojo, not more. So tree (aka tree1) doesn't need it. It is up to you. You can also use treeItem inside of your code. It's up to you. Tree2 has a *different* concept, so an interface like TreeNode is there. But it's also up to you to use one of the default impls or create your own. -Matthias On 6/5/06, Todd Patrick <[EMAIL PROTECTED]> wrote: > Matthias: > > I really don't want to sound like I'm whining, but how are we suppose to > use this? > > It caught me off guard that the example contains objects that aren't > defined in the MyFaces Tomahawk Core. > > IMO: This isn't developer friendly by any means. > > When I downloaded the MyFaces Tomahawk Core 1.1.2, I would had thought > that the examples would be in line with the Core. > > Thanks, > > --Todd > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Matthias Wessendorf > Sent: Monday, June 05, 2006 10:04 AM > To: MyFaces Discussion > Subject: Re: Where is the TreeItem Javadoc? > > Hey, > > since TreeItem,java is not part of MyFaces Tomahawk Core It was > introduced *into* the EXAMPLE application > > here the SRC goes > > http://tinyurl.com/zpygz > > BTW. Tree2 has some thing like that TreeNode (an interface...) with two > impls of that Interface > > HTH, > Matthias > > On 6/5/06, Todd Patrick <[EMAIL PROTECTED]> wrote: > > > > > > Great. > > > > There isn't a TreeItem, so this example for TreeTable is absolutely > > worthless. When I added: > > > > TreeItem item = new TreeItem(); > > > > TreeItem wasn't found in MyFaces Tomahawk 1.1.2. > > > > "This is frustrating..." > > > > --Todd > > > > ________________________________ > > From: Todd Patrick [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 05, 2006 9:26 AM > > To: MyFaces Discussion > > Subject: Where is the TreeItem Javadoc? > > > > > > > > In the example: > > > > /org/apache/myfaces/examples/listexample/TreeTable.java > > > > There is the following: > > > > DefaultMutableTreeNode root = new DefaultMutableTreeNode(new > > TreeItem(1, "XY", "9001", "XY 9001")); > > DefaultMutableTreeNode a = new DefaultMutableTreeNode(new > > TreeItem(2, "A", "9001", "A 9001")); > > root.insert(a); > > DefaultMutableTreeNode b = new DefaultMutableTreeNode(new > > TreeItem(3, "B", "9001", "B 9001")); > > root.insert(b); > > DefaultMutableTreeNode c = new DefaultMutableTreeNode(new > > TreeItem(4, "C", "9001", "C 9001")); > > root.insert(c); > > > > Where is the TreeItem Javadoc on > > http://myfaces.apache.org/tomahawk/apidocs/index.html? > > > > I've looked without success. > > > > Thanks, > > > > --Todd > > > > > -- > Matthias Wessendorf > Aechterhoek 18 > 48282 Emsdetten > blog: http://jroller.com/page/mwessendorf > mail: mwessendorf-at-gmail-dot-com > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com

