-
1. Re: common submit button for rich:tabs in <rich:tabPanel/>
tsurdilovic Feb 8, 2009 10:02 AM (in response to ramki9977)Explain the usecase as to me doing this makes not sense :)
-
2. Re: common submit button for rich:tabs in <rich:tabPanel/>
ramki9977 Feb 8, 2009 11:18 PM (in response to ramki9977)hi,
actually i have two tabs say(student edu details and personal details) user can enter edu details in one tab and other details in second tab. there should be on button for both tabs. when i click on that button data should be saved.i know we can place that button out side <rich:tabPanel>. i want that button inside that <rich:tabPanel/>
thanks,
ramki. -
3. Re: common submit button for rich:tabs in <rich:tabPanel/>
fmarwede Feb 9, 2009 2:39 AM (in response to ramki9977)Have you tried it this way:
<rich:tabPanel width="98%" > <rich:tab label="tab1"> ... <h:commandButton value="common submit button"/> </rich:tab> <rich:tab label="tab2"> ... <h:commandButton value="common submit button"/> </rich:tab> </rich:tabPanel.>
The way you suggest is in my opinion not possible, because tabPanel is only a container for tabs, you can't place other content there. -
4. Re: common submit button for rich:tabs in <rich:tabPanel/>
ramki9977 Feb 9, 2009 3:14 AM (in response to ramki9977)in that option we are trying to keep same button in two tabs right?. if it is a technical limitation, i will go with that option.
-
5. Re: common submit button for rich:tabs in <rich:tabPanel/>
fmarwede Feb 9, 2009 3:41 AM (in response to ramki9977)Precisely spoken you have technically two buttons, but you reach your aim that it is only one in the user's view.
-
6. Re: common submit button for rich:tabs in <rich:tabPanel/>
fmarwede Feb 9, 2009 3:43 AM (in response to ramki9977)...of course only if you place the buttons on the same place in each tab and give them both the same look.
-
7. Re: common submit button for rich:tabs in <rich:tabPanel/>
ramki9977 Feb 9, 2009 6:40 AM (in response to ramki9977)ok thank you. and i have one more doubt here. its not related this post. i already created new post. i have one form and one ajax commandbutton. i click on that button it will submit the form. here i want to know inside java script when that request is completed.
thanks,
ramki. -
8. Re: common submit button for rich:tabs in <rich:tabPanel/>
fmarwede Feb 9, 2009 7:11 AM (in response to ramki9977)Why don't you use "oncomplete" there? Or did I misunderstood the problem?
-
9. Re: common submit button for rich:tabs in <rich:tabPanel/>
ramki9977 Feb 9, 2009 11:41 PM (in response to ramki9977)actually i am even firing click event on that button using java script. after completing that request i need to fire one more click event on other button.
thanks,
ramki.