You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sylvain Vieujot <sv...@apache.org> on 2005/08/16 07:32:12 UTC

Client side panelTabbedPane

For information, I just enabled the panelTabbedPane to switch tab
without server request if possible.
If the client doesn't support it, it just falls back to the old mode
(submits a request).

It should be 100% compatible with the previous version.

Please let me know it you have problems with it.

Sylvain.

Re: Client side panelTabbedPane

Posted by Sylvain Vieujot <sv...@apache.org>.
The simplest way is to disable javascript in your browser.
You can also change the isDynamic() method in the renderer to return
false;

I didn't do a specific attribute though, as it shouldn't really be
useful (except for debugging that is), and as disabling JS has the same
effect.

On Tue, 2005-08-16 at 15:07 -0400, Mike Kienenberger wrote:

> Sylvain,
> 
> Is there a way to force server-side tabbing?
> Now that I've fixed the "lost input" issue for x:inputCalendar, I need
> to verify that there is still a problem for server-side tabbing.
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  Yes, your're right.
> >  I'll try to fix that. Should not be too hard.
> >  
> >  But still the problem you mentioned in user ML should still be fixed, as
> > the client-side just hides the bug.
> > 
> >  
> >  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
> >  Sylvain,
> > 
> > Thanks! This solves some of the issues I reported yesterday on the
> > myfaces-user list when using the server-side mode.
> > 
> > Here's one place the control behaves differently, though.
> > 
> > When a request is submitted to the server, the control reverts back to
> > the default pane rather than the pane that was open on the client. 
> > Is there a way to pass the selectedIndex tab state back to the server?
> > 
> > -Mike
> > 
> > 
> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > For information, I just enabled the panelTabbedPane to switch tab without
> > > server request if possible.
> > > If the client doesn't support it, it just falls back to the old mode
> > > (submits a request).
> > > 
> > > It should be 100% compatible with the previous version.
> > > 
> > > Please let me know it you have problems with it.
> > > 
> > > Sylvain.
> > 
> >

Re: Client side panelTabbedPane

Posted by Mike Kienenberger <mk...@gmail.com>.
Sylvain,

Is there a way to force server-side tabbing?
Now that I've fixed the "lost input" issue for x:inputCalendar, I need
to verify that there is still a problem for server-side tabbing.

On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  Yes, your're right.
>  I'll try to fix that. Should not be too hard.
>  
>  But still the problem you mentioned in user ML should still be fixed, as
> the client-side just hides the bug.
> 
>  
>  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
>  Sylvain,
> 
> Thanks! This solves some of the issues I reported yesterday on the
> myfaces-user list when using the server-side mode.
> 
> Here's one place the control behaves differently, though.
> 
> When a request is submitted to the server, the control reverts back to
> the default pane rather than the pane that was open on the client. 
> Is there a way to pass the selectedIndex tab state back to the server?
> 
> -Mike
> 
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > For information, I just enabled the panelTabbedPane to switch tab without
> > server request if possible.
> > If the client doesn't support it, it just falls back to the old mode
> > (submits a request).
> > 
> > It should be 100% compatible with the previous version.
> > 
> > Please let me know it you have problems with it.
> > 
> > Sylvain.
> 
>

Re: Client side panelTabbedPane

Posted by Mike Kienenberger <mk...@gmail.com>.
Yep. Seems fine.

On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  Yes, sorry, this was my second commit (doesn't queue event).
>  Should be ok now.
> 
>  
>  On Tue, 2005-08-16 at 14:24 -0400, Mike Kienenberger wrote: 
>  It now preserves the tab, but the CommandLink I have on the tab
> doesn't execute its action the first time I click on it. This worked
> before the selectedIndex update patch.
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > Ok Mike, it should be fixed (for the client-side part of the problem).
> > Could you check it please ?
> > 
> > Thanks,
> > 
> > Sylvain.
> > 
> > 
> > On Tue, 2005-08-16 at 13:31 -0400, Sylvain Vieujot wrote:
> > 
> > Yes, your're right.
> > I'll try to fix that. Should not be too hard.
> > 
> > But still the problem you mentioned in user ML should still be fixed, as
> > the client-side just hides the bug.
> > 
> > On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
> > Sylvain,
> > 
> > Thanks! This solves some of the issues I reported yesterday on the
> > myfaces-user list when using the server-side mode.
> > 
> > Here's one place the control behaves differently, though.
> > 
> > When a request is submitted to the server, the control reverts back to
> > the default pane rather than the pane that was open on the client. 
> > Is there a way to pass the selectedIndex tab state back to the server?
> > 
> > -Mike
> > 
> > 
> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > For information, I just enabled the panelTabbedPane to switch tab
> without
> > > server request if possible.
> > > If the client doesn't support it, it just falls back to the old mode
> > > (submits a request).
> > > 
> > > It should be 100% compatible with the previous version.
> > > 
> > > Please let me know it you have problems with it.
> > > 
> > > Sylvain.
> > 
> >
> 
>

Re: Client side panelTabbedPane

Posted by Emmanuel Jay <em...@gmail.com>.
I have the same problem that Jon, although this happens for a commandLink 
within a datatable within a tab (did you manage to fix it Jon?).

I have tried to use saveState on the tabbedPane selectedIndex but that 
didn't seem to work...

On 9/6/05, Werner Punz <we...@gmx.at> wrote:
> 
> Sean Schofield wrote:
> > Sylvain,
> >
> > Did you take a look at Werner's experimental component? I seemed to
> > recall he played around with client-side tabbing. He might have some
> > worthwhile stuff you can steal :-)
> >
> > sean
> Actually I did not solve the keep the client in place roundtripping
> problem, although it should be fairly straightforward to implement, all
> you need is an extra hidden field which stores the active tabbing
> position, that way you can survive roundtripping...
> 
>

Re: Client side panelTabbedPane

Posted by Werner Punz <we...@gmx.at>.
Sean Schofield wrote:
> Sylvain,
> 
> Did you take a look at Werner's experimental component?  I seemed to
> recall he played around with client-side tabbing.  He might have some
> worthwhile stuff you can steal :-)
> 
> sean
Actually I did not solve the keep the client in place roundtripping 
problem, although it should be fairly straightforward to implement, all 
you need is an extra hidden field which stores the active tabbing 
position, that way you can survive roundtripping...


Re: Client side panelTabbedPane

Posted by Sean Schofield <se...@gmail.com>.
Sylvain,

Did you take a look at Werner's experimental component?  I seemed to
recall he played around with client-side tabbing.  He might have some
worthwhile stuff you can steal :-)

sean

On 8/23/05, Jon Travis <jt...@p00p.org> wrote:
> FWIW, this does not work for me.
> 
> If I select a tab (client side), and then click a button within
> that tab (in it's own form), the page will re-render with the
> first tab selected.
> 
> -- Jon
> 
> 
> On Aug 16, 2005, at 11:33 AM, Sylvain Vieujot wrote:
> 
> > Yes, sorry, this was my second commit (doesn't queue event).
> > Should be ok now.
> >
> > On Tue, 2005-08-16 at 14:24 -0400, Mike Kienenberger wrote:
> >> It now preserves the tab, but the CommandLink I have on the tab
> >> doesn't execute its action the first time I click on it. This
> >> worked before the selectedIndex update patch.  On 8/16/05, Sylvain
> >> Vieujot <sv...@apache.org> wrote: > Ok Mike, it should be fixed
> >> (for the client-side part of the problem). > Could you check it
> >> please ? > > Thanks, > >  Sylvain. > > > On Tue, 2005-08-16 at
> >> 13:31 -0400, Sylvain Vieujot wrote: > > Yes, your're right. > I'll
> >> try to fix that. Should not be too hard. > > But still the problem
> >> you mentioned in user ML should still be fixed, as > the client-
> >> side just hides the bug. > > On Tue, 2005-08-16 at 13:17 -0400,
> >> Mike Kienenberger wrote: > Sylvain, > > Thanks! This solves some
> >> of the issues I reported yesterday on the > myfaces-user list when
> >> using the server-side mode. > > Here's one place the control
> >> behaves differently, though. > > When a request is submitted to
> >> the server, the control reverts back to > the default pane rather
> >> than the pane that was open on the client. > Is there a way to
> >> pass the selectedIndex tab state back to the server? > > -Mike > >
> >> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote: > > For
> >> information, I just enabled the panelTabbedPane to switch tab
> >> without > > server request if possible. > > If the client doesn't
> >> support it, it just falls back to the old mode > > (submits a
> >> request). > > > > It should be 100% compatible with the previous
> >> version. > > > > Please let me know it you have problems with it.
> >> > > > > Sylvain. > >
> 
> 
>

Re: Client side panelTabbedPane

Posted by Jon Travis <jt...@p00p.org>.
FWIW, this does not work for me.

If I select a tab (client side), and then click a button within
that tab (in it's own form), the page will re-render with the
first tab selected.

-- Jon


On Aug 16, 2005, at 11:33 AM, Sylvain Vieujot wrote:

> Yes, sorry, this was my second commit (doesn't queue event).
> Should be ok now.
>
> On Tue, 2005-08-16 at 14:24 -0400, Mike Kienenberger wrote:
>> It now preserves the tab, but the CommandLink I have on the tab  
>> doesn't execute its action the first time I click on it. This  
>> worked before the selectedIndex update patch.  On 8/16/05, Sylvain  
>> Vieujot <sv...@apache.org> wrote: > Ok Mike, it should be fixed  
>> (for the client-side part of the problem). > Could you check it  
>> please ? > > Thanks, > >  Sylvain. > > > On Tue, 2005-08-16 at  
>> 13:31 -0400, Sylvain Vieujot wrote: > > Yes, your're right. > I'll  
>> try to fix that. Should not be too hard. > > But still the problem  
>> you mentioned in user ML should still be fixed, as > the client- 
>> side just hides the bug. > > On Tue, 2005-08-16 at 13:17 -0400,  
>> Mike Kienenberger wrote: > Sylvain, > > Thanks! This solves some  
>> of the issues I reported yesterday on the > myfaces-user list when  
>> using the server-side mode. > > Here's one place the control  
>> behaves differently, though. > > When a request is submitted to  
>> the server, the control reverts back to > the default pane rather  
>> than the pane that was open on the client. > Is there a way to  
>> pass the selectedIndex tab state back to the server? > > -Mike > >  
>> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote: > > For  
>> information, I just enabled the panelTabbedPane to switch tab  
>> without > > server request if possible. > > If the client doesn't  
>> support it, it just falls back to the old mode > > (submits a  
>> request). > > > > It should be 100% compatible with the previous  
>> version. > > > > Please let me know it you have problems with it.  
>> > > > > Sylvain. > >



Re: Client side panelTabbedPane

Posted by Sylvain Vieujot <sv...@apache.org>.
Yes, sorry, this was my second commit (doesn't queue event).
Should be ok now.

On Tue, 2005-08-16 at 14:24 -0400, Mike Kienenberger wrote:

> It now preserves the tab, but the CommandLink I have on the tab
> doesn't execute its action the first time I click on it.  This worked
> before the selectedIndex update patch.
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  Ok Mike, it should be fixed (for the client-side part of the problem).
> >  Could you check it please ?
> >  
> >  Thanks,
> >  
> >  Sylvain.
> > 
> >  
> >  On Tue, 2005-08-16 at 13:31 -0400, Sylvain Vieujot wrote:
> >  
> >  Yes, your're right.
> >  I'll try to fix that. Should not be too hard.
> >  
> >  But still the problem you mentioned in user ML should still be fixed, as
> > the client-side just hides the bug.
> >  
> >  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
> >  Sylvain,
> > 
> > Thanks! This solves some of the issues I reported yesterday on the
> > myfaces-user list when using the server-side mode.
> > 
> > Here's one place the control behaves differently, though.
> > 
> > When a request is submitted to the server, the control reverts back to
> > the default pane rather than the pane that was open on the client. 
> > Is there a way to pass the selectedIndex tab state back to the server?
> > 
> > -Mike
> > 
> > 
> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > For information, I just enabled the panelTabbedPane to switch tab without
> > > server request if possible.
> > > If the client doesn't support it, it just falls back to the old mode
> > > (submits a request).
> > > 
> > > It should be 100% compatible with the previous version.
> > > 
> > > Please let me know it you have problems with it.
> > > 
> > > Sylvain.
> > 
> >

Re: Client side panelTabbedPane

Posted by Mike Kienenberger <mk...@gmail.com>.
It now preserves the tab, but the CommandLink I have on the tab
doesn't execute its action the first time I click on it.  This worked
before the selectedIndex update patch.

On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  Ok Mike, it should be fixed (for the client-side part of the problem).
>  Could you check it please ?
>  
>  Thanks,
>  
>  Sylvain.
> 
>  
>  On Tue, 2005-08-16 at 13:31 -0400, Sylvain Vieujot wrote:
>  
>  Yes, your're right.
>  I'll try to fix that. Should not be too hard.
>  
>  But still the problem you mentioned in user ML should still be fixed, as
> the client-side just hides the bug.
>  
>  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
>  Sylvain,
> 
> Thanks! This solves some of the issues I reported yesterday on the
> myfaces-user list when using the server-side mode.
> 
> Here's one place the control behaves differently, though.
> 
> When a request is submitted to the server, the control reverts back to
> the default pane rather than the pane that was open on the client. 
> Is there a way to pass the selectedIndex tab state back to the server?
> 
> -Mike
> 
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > For information, I just enabled the panelTabbedPane to switch tab without
> > server request if possible.
> > If the client doesn't support it, it just falls back to the old mode
> > (submits a request).
> > 
> > It should be 100% compatible with the previous version.
> > 
> > Please let me know it you have problems with it.
> > 
> > Sylvain.
> 
>

Re: Client side panelTabbedPane

Posted by Sylvain Vieujot <sv...@apache.org>.
Ok Mike, it should be fixed (for the client-side part of the problem).
Could you check it please ?

Thanks,

Sylvain.

On Tue, 2005-08-16 at 13:31 -0400, Sylvain Vieujot wrote:

> Yes, your're right.
> I'll try to fix that. Should not be too hard.
> 
> But still the problem you mentioned in user ML should still be fixed,
> as the client-side just hides the bug.
> 
> On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
> 
> > Sylvain,
> > 
> > Thanks!   This solves some of the issues I reported yesterday on the
> > myfaces-user list when using the server-side mode.
> > 
> > Here's one place the control behaves differently, though.
> > 
> > When a request is submitted to the server, the control reverts back to
> > the default pane rather than the pane that was open on the client.  
> > Is there a way to pass the selectedIndex tab state back to the server?
> > 
> > -Mike
> > 
> > 
> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > >  For information, I just enabled the panelTabbedPane to switch tab without
> > > server request if possible.
> > >  If the client doesn't support it, it just falls back to the old mode
> > > (submits a request).
> > >  
> > >  It should be 100% compatible with the previous version.
> > >  
> > >  Please let me know it you have problems with it.
> > >  
> > >  Sylvain.

Re: Client side panelTabbedPane

Posted by Mike Kienenberger <mk...@gmail.com>.
Martin,

I was waiting to hear if I was the only one experiencing this behavior
or if it was working ok for others first.

There were already two old closed similar issues (resolved Feb and March).

But I'll go ahead and open a new one.

On 8/16/05, Martin Marinschek <ma...@gmail.com> wrote:
> Mike,
> 
> can you open a jira request on that so that we don't loose track of it?
> 
> regards,
> 
> Martin
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  Yes, your're right.
> >  I'll try to fix that. Should not be too hard.
> >
> >  But still the problem you mentioned in user ML should still be fixed, as
> > the client-side just hides the bug.
> >
> >
> >  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote:
> >  Sylvain,
> >
> > Thanks! This solves some of the issues I reported yesterday on the
> > myfaces-user list when using the server-side mode.
> >
> > Here's one place the control behaves differently, though.
> >
> > When a request is submitted to the server, the control reverts back to
> > the default pane rather than the pane that was open on the client.
> > Is there a way to pass the selectedIndex tab state back to the server?
> >
> > -Mike
> >
> >
> > On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > For information, I just enabled the panelTabbedPane to switch tab without
> > > server request if possible.
> > > If the client doesn't support it, it just falls back to the old mode
> > > (submits a request).
> > >
> > > It should be 100% compatible with the previous version.
> > >
> > > Please let me know it you have problems with it.
> > >
> > > Sylvain.
> >
> >
> 
> 
> --
> 
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>

Re: Client side panelTabbedPane

Posted by Martin Marinschek <ma...@gmail.com>.
Mike,

can you open a jira request on that so that we don't loose track of it?

regards,

Martin

On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  Yes, your're right.
>  I'll try to fix that. Should not be too hard.
>  
>  But still the problem you mentioned in user ML should still be fixed, as
> the client-side just hides the bug.
> 
>  
>  On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote: 
>  Sylvain,
> 
> Thanks! This solves some of the issues I reported yesterday on the
> myfaces-user list when using the server-side mode.
> 
> Here's one place the control behaves differently, though.
> 
> When a request is submitted to the server, the control reverts back to
> the default pane rather than the pane that was open on the client. 
> Is there a way to pass the selectedIndex tab state back to the server?
> 
> -Mike
> 
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > For information, I just enabled the panelTabbedPane to switch tab without
> > server request if possible.
> > If the client doesn't support it, it just falls back to the old mode
> > (submits a request).
> > 
> > It should be 100% compatible with the previous version.
> > 
> > Please let me know it you have problems with it.
> > 
> > Sylvain.
> 
>  


-- 

http://www.irian.at
Your JSF powerhouse - 
JSF Trainings in English and German

Re: Client side panelTabbedPane

Posted by Sylvain Vieujot <sv...@apache.org>.
Yes, your're right.
I'll try to fix that. Should not be too hard.

But still the problem you mentioned in user ML should still be fixed, as
the client-side just hides the bug.

On Tue, 2005-08-16 at 13:17 -0400, Mike Kienenberger wrote:

> Sylvain,
> 
> Thanks!   This solves some of the issues I reported yesterday on the
> myfaces-user list when using the server-side mode.
> 
> Here's one place the control behaves differently, though.
> 
> When a request is submitted to the server, the control reverts back to
> the default pane rather than the pane that was open on the client.  
> Is there a way to pass the selectedIndex tab state back to the server?
> 
> -Mike
> 
> 
> On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  For information, I just enabled the panelTabbedPane to switch tab without
> > server request if possible.
> >  If the client doesn't support it, it just falls back to the old mode
> > (submits a request).
> >  
> >  It should be 100% compatible with the previous version.
> >  
> >  Please let me know it you have problems with it.
> >  
> >  Sylvain.

Re: Client side panelTabbedPane

Posted by Mike Kienenberger <mk...@gmail.com>.
Sylvain,

Thanks!   This solves some of the issues I reported yesterday on the
myfaces-user list when using the server-side mode.

Here's one place the control behaves differently, though.

When a request is submitted to the server, the control reverts back to
the default pane rather than the pane that was open on the client.  
Is there a way to pass the selectedIndex tab state back to the server?

-Mike


On 8/16/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  For information, I just enabled the panelTabbedPane to switch tab without
> server request if possible.
>  If the client doesn't support it, it just falls back to the old mode
> (submits a request).
>  
>  It should be 100% compatible with the previous version.
>  
>  Please let me know it you have problems with it.
>  
>  Sylvain.