Re: Is serverSideTabSwitch="true" required when using validation with

2006-07-14 Thread ldr
It would be a nice enhancement, I have also had problems using the tabbedpane. I would like to use the serverSideTabSwitch="false", but when I submit on a tab my app returns to the the first tab in the tabpane. It worked when I put the tabbedpane inside a form - but that gives me other troubles...

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-14 Thread Mike Kienenberger
On 7/14/06, Conway. Fintan (IT Solutions) <[EMAIL PROTECTED]> wrote: I am not sure if this could work, it is just an idea. Could you put some javascript into the button's onClick() method to set the selectedIndex of the tabbedPane before it submits? This may give the behaviour you are looking f

RE: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-14 Thread Conway. Fintan \(IT Solutions\)
Paul Spencer [mailto:[EMAIL PROTECTED] Sent: 13 July 2006 21:21 To: MyFaces Discussion Subject: Re: Is serverSideTabSwitch="true" required when using validation with ? Mike, Their is a selectedIndex attribute on . I would contend that the selectIndex is not getting set/restored when serv

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Mike Kienenberger
On 7/13/06, Paul Spencer <[EMAIL PROTECTED]> wrote: Their is a selectedIndex attribute on . I would contend that the selectIndex is not getting set/restored when serverSiteTabSwitch="false". This show up when the validation phase fails. Or said another way: MyFaces does not know which tab

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Paul Spencer
Mike, Their is a selectedIndex attribute on . I would contend that the selectIndex is not getting set/restored when serverSiteTabSwitch="false". This show up when the validation phase fails. Or said another way: MyFaces does not know which tab the clicked button was on and it always displa

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Mike Kienenberger
On 7/13/06, Paul Spencer <[EMAIL PROTECTED]> wrote: 1) Why is the behavior different between client and sever side switching? Because the server-side tab switching renders only the existing tab in the generated html. Client-side tab switching renders all of the tabs but only makes one visible i

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Paul Spencer
Mike, 1) Why is the behavior different between client and sever side switching? 2) The "application" is just the included below surrounded by the minimal set of html, jsp, and jsf tags. Their are no backing beans involved. In short this is a mock-up. 3) How would I set the "panel tab ind

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Mike Kienenberger
Paul, one thing to remember is that in JSF, forms are really just organizational units rather than separate "pages" in traditional http. About the only thing they're good for is determining the default submit button when you hit the return key or doing partial page validation since each form con

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Paul Spencer
Gerald, 1) Each tab has it's own form. 2) Client side and server side switching behave differently. The code below will demonstrate the problem. Click on "Server Tab 2" then "Submit Query". "Server Tab 2" is still the current table. Now do the same with "Client Tab 2". You will notice that

Re: Is serverSideTabSwitch="true" required when using validation with ?

2006-07-13 Thread Gerald Müllan
Hi Paul, If i get your question, the problem is the "normal" post via the save button for all the tabs, which has nothing to do with tabbedPane component. All the tabs are rendered to the web page, on one of them the validation error may occur. If you do the save action for all tab-pages, how sh

Is serverSideTabSwitch="true" required when using validation with ? (Repost)

2006-07-12 Thread Paul Spencer
I have a form on a tabbed pane that validates input. When their is a validation error and the attribute serverSideTabSwitch on is undefined or set to false, the first tab is displayed, not the one with the error. Is this the expected behavior or a bug? Paul Spencer

Is serverSideTabSwitch="true" required when using validation with ?

2006-07-10 Thread Paul Spencer
I have a form on a tabbed pane that validates input. When their is a validation error and the attribute serverSideTabSwitch on is undefined or set to false, the first tab is displayed, not the one with the error. Is this the expected behavior or a bug? Paul Spencer