It is a session scope bean. 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Gerald Müllan
Gesendet: Montag, 19. November 2007 15:17
An: MyFaces Discussion
Betreff: Re: [Tomahawk] after enter key first tab becomes visible

Hi,

which kind of scope do you have defined for the bean?

It should be more than request scope, because otherwise the index will be reset.

cheers,

Gerald

On Nov 19, 2007 12:06 PM, Rottstock, Sven <[EMAIL PROTECTED]> wrote:
> Hi Gerald,
>
> i'm using the attribute "selectedIndex". Furthermore a TabChangeListener is 
> invoked if you switch to a new tab. In the debugger i can see that everthing 
> is well. The selectedIndex is set correctly in the bean. But if i press the 
> enter key, the TabChangeListener is invoked again with the new index for the 
> first tab :-( Should i remove the TabChangeListener? If so how can i  set the 
> selected index into my bean? This is necessary because i have sometimes 
> switch the tab from the server side. And the setter method is not invoked by 
> the t:panelTabbedPane.
>
> Regards
>
> Sven
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von 
> Gerald Müllan
> Gesendet: Montag, 19. November 2007 11:31
> An: MyFaces Discussion
> Betreff: Re: [Tomahawk] after enter key first tab becomes visible
>
>
> Hi,
>
> if you provide the attribute "selectedIndex" and bind it to a page scoped 
> bean, the problem should be gone.
>
> cheers,
>
> Gerald
>
> On Nov 19, 2007 9:52 AM, Rottstock, Sven <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > i have a little problem with the tabbedPane component. In details i 
> > have
> > 4 tabs in my page. If i select any tab (except the first one) and 
> > press the enter key, the tabbedPane is switched back to the first tab.
> > This behaviour is only visible with the Internet Explorer and you 
> > can see this on the tabbedPane example that is provided in the 
> > MyFaces download area.
> >
> > Has anybody the same problem and have a workaround or a hint how i 
> > can fix it (maybe with JavaScript?)
> >
> > Best Regards
> >
> > Sven
> >
>
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>



--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to