Hi,

The release-1.1.1 version of NavigationMenuItem does *not* have this
method:
http://svn.apache.org/repos/asf/myfaces/tomahawk/tags/1_1_0/src/java/org/apache/myfaces/custom/navmenu/NavigationMenuItem.java

The latest version (which will be in the 1.1.2 release) *does* have this
method:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/navmenu/NavigationMenuItem.java

The javadoc at the myfaces site is for the latest code (see the "last
published" date at the bottom of the site). The site probably should be
linking to the javadoc for the *most recent release* rather than for the
current head (or providing both) but that's not the way it works at the
moment.

In order to use the setActive feature, you'll need to compile your own
version from the latest source or use a nightly build.

This question really *does* belong on the user list by the way.

Regards,

Simon

On Mon, 2006-01-23 at 09:35 +0100, [EMAIL PROTECTED] wrote:
> Hi Manfred,
> 
> thank you for your fast reply. In the attachment I send the to different 
> sourcefiles. One I checked out from the svn-repository and the other one I 
> decompiled from NavigationMenuItem.class in the tomahawk.jar version 1.1.1 
> (see filenames). My problem is, that in the decompiled version there is no 
> method setActive(boolean active) whereas in the sourcefile checked out from 
> the repository and in the javadoc this method is available.
> 
> Could you please tell me if there is a newer jar-archive available which 
> corresponds to the sources in the svn-repository and the javadoc on the 
> myfaces-homepage?
> 
> thank you,
> Rudi
> 
> 
> "MyFaces Development" <[email protected]> schrieb am 22.01.06 18:06:34:
> > 
> > Sean, don't be too rigorous. ;-)
> > Rudi's question is actually regarding the codebase.
> > 
> > Rudi, without having the time myself at the moment to look at the
> > sources, there is one thing I catched in your mail: setAvtive(boolean
> > avtive)
> > Is this a typo in your mail or is this actually the name of the method
> > in the source? If yes, the answer to your question is easy...  :-)
> > If not, please tell us the exact version number(s) you are using.
> > 
> > Manfred
> > 
> > 
> > 
> > 
> > 2006/1/22, Sean Schofield <[EMAIL PROTECTED]>:
> > > Please post these types of questions to the user list.  The dev list
> > > is reserved for discussion of the codebase and infrastructure.
> > >
> > > Regards,
> > > Sean
> > >
> > > On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > I'm developing an application with MyFaces and I'm using for my 
> > > > navigation.
> > > >
> > > > In my ManagedBean I create the List of NavigationMenuItem dynamicaly. 
> > > > Everything is fine so far.
> > > >
> > > > My problem is, that I have to set the active NavigationMenuItem in the 
> > > > list within my ManagedBean because I have to make a redirect over the 
> > > > browser sometimes for securityreasons (authenticationfilter) and then 
> > > > the active NavigationMenuItem is lost.
> > > >
> > > > So I tried to use item.setActive(true) on a NavigationMenuItem item 
> > > > which I want activate after a redirect. The problem is, that Eclipse 
> > > > told me, that the method setActive(boolean active) is not available for 
> > > > NavigationMenuItem. But in the Java-doc this method is available for 
> > > > this class.
> > > >
> > > > So I decompiled the corresponding .class file from the tomahawk.jar and 
> > > > found out, that the method is not available.
> > > >
> > > > Next I checked out the sources for this class from the svn-repository. 
> > > > In this sources the method setAvtive(boolean avtive) is available for 
> > > > the class NavigationMenuItem.
> > > >
> > > > This seems very strange, because in the sources of the example webapps 
> > > > in the class org.apache.myfaces.examples.misc.NavigationMenu the method 
> > > > .setActive(boolean active) is called too in line 72 but in the 
> > > > decompiled source for the class NavigationMenuItem in the tomahawk.jar 
> > > > under WEB-INF/lib the method is not available.
> > > >
> > > > Could anybody please help me. Why is the actual tomahawk.jar from the 
> > > > downloadpage not implementing the javadoc on the myfaces-homepage? Have 
> > > > I to build the tomahawk.jar from the sources to get the release 
> > > > corresponding to the javadoc?
> > > >
> > > > Thank you in advance,
> > > > Rudi
> > > >
> > > > ______________________________________________________________
> > > > Verschicken Sie romantische, coole und witzige Bilder per SMS!
> > > > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> > > >
> > > >
> > >
> 
> 
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> 

Reply via email to