RE: Getting a reference to my backing bean in TabChangeListener

2006-10-24 Thread monkeyden
es.apache.org > Subject: Re: Getting a reference to my backing bean in TabChangeListener > > > > > I wouldn't say it's "very accessible" unless: > > [1] There is a link to it on the download page (right next to the link to > the binaries, I might add

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-24 Thread monkeyden
I'm somewhat new to JSF/MyFaces so I'm not familiar with the past projects, but it's good to know that this is an aberration. Jeff Bischoff wrote: > > Depends what version you need it for. The standard practice for this > project is to release the source along with the binaries. They are > gen

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-24 Thread Jeff Bischoff
Depends what version you need it for. The standard practice for this project is to release the source along with the binaries. They are generally right there next to each other on the main download page. The exception to this is a couple of releases this summer which did not include a source re

RE: Getting a reference to my backing bean in TabChangeListener

2006-10-24 Thread Alex Brown
FYI, there is a link to it (src) on the download page next to the binary. It is a zip file. From: monkeyden [mailto:[EMAIL PROTECTED] Sent: Mon 10/23/2006 6:55 PM To: users@myfaces.apache.org Subject: Re: Getting a reference to my backing bean in

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-23 Thread monkeyden
I wouldn't say it's "very accessible" unless: [1] There is a link to it on the download page (right next to the link to the binaries, I might add) [2] I can download it as a zip file, to allow me to step through it in my debugger. and I don't have to: [3] View Java code from my browser (icky!) [

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-23 Thread Jeff Bischoff
Oh please don't waste your time decompiling! The source is very accessible. :) [1] Is the project website [2] Is the download page, with source code for *some* of the releases [3] Is the SVN repository (online access) for getting the source code directly Now you can see what's at line 82! :D

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-23 Thread monkeyden
I decompiled the class file for this tag (tomahawk v1.1.3) and found that there are only two places where casting is done (don't know the line numbers as it's decompiled code). 1. TabChangeListener listener = (TabChangeListener)ClassUtils.newInstance(className); 2. ((HtmlPanelTabbedPane)compo

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-23 Thread monkeyden
Thanks for the reply Jeff. I am currently trying this but getting a ClassCastException when the tabChangeListener tag is encountered. Does anyone know where I can find the source for tomahawk, so I can step through int he debugger? Only bin is available here: http://www.wmwweb.com/apache/myf

Re: Getting a reference to my backing bean in TabChangeListener

2006-10-23 Thread Jeff Bischoff
Monkeyden, See [1]. This is from the front page of the wiki. Alternatively, all managed beans can be accessed directly from the appropriate scope (i.e. request, session). I found the following utility method (based on the wiki page) useful in my application: /** * Look up a managed bean by