Re: tabs is struts
It is possible to have both types of functionality (with full page reload and with asynchronous request) in just one component. Check this out, does it look like something you need: http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp If you have modern browser that supports XMLHTTPRequest and has Javascript turned on, the tab panels will be reloaded using In-Place Update (Ajax). If you have Javascript turned off or you have, say Netscape 4, then the page will be refreshed. Notice that this would be a redirect, not a forward, so you can refresh it manually after that with no warnings. Also, with redirect you get the same user experience, because page locations are not piled in browser page history. The tabs in the demo were created using JSP Controls Tag Library: http://jspcontrols.sourceforge.net/ Michael J. From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
Oops, the live demo uses old tag classes and works in Ajax mode only now. Have to redeploy the app, should take an hour or so. On 12/26/05, Michael Jouravlev [EMAIL PROTECTED] wrote: It is possible to have both types of functionality (with full page reload and with asynchronous request) in just one component. Check this out, does it look like something you need: http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp If you have modern browser that supports XMLHTTPRequest and has Javascript turned on, the tab panels will be reloaded using In-Place Update (Ajax). If you have Javascript turned off or you have, say Netscape 4, then the page will be refreshed. Notice that this would be a redirect, not a forward, so you can refresh it manually after that with no warnings. Also, with redirect you get the same user experience, because page locations are not piled in browser page history. The tabs in the demo were created using JSP Controls Tag Library: http://jspcontrols.sourceforge.net/ Michael J. From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
This is an excelet solution, thank you! Do you know how can I modify the line c:out value=Bar is cooler! /, so that it servers up a JSP via STRUTS? tab:tabContainer id=foo-bar-container tab:tabPane id=foo tabTitle=Foo! Foo is cool! /tab:tabPane tab:tabPane id=bar tabTitle=Bar! c:out value=Bar is cooler! / /tab:tabPane /tab:tabContainer Jim From: su mo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Tue, 13 Dec 2005 09:41:51 +0530 Checkout this. Very good one ditchnet.org/taglibs/ On 12/13/05, Yujun Liang [EMAIL PROTECTED] wrote: Tiles is needed for option 1, but I am not sure if it is still needed if using Struts-Layout. On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote: Can this be done easily with Tiles? From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
You can use jsp:include page=local_URL flush=true/ page is file which contains the JSP logic flush sends the current page output before included file c:import to include local and remote rewrite tasks c:url for URL rewrite URL http://java.sun.com/developer/technicalArticles/javaserverpages/faster/index.html - Original Message - From: Jim Douglas [EMAIL PROTECTED] To: user@struts.apache.org Sent: Saturday, December 24, 2005 10:18 AM Subject: Re: tabs is struts This is an excelet solution, thank you! Do you know how can I modify the line c:out value=Bar is cooler! /, so that it servers up a JSP via STRUTS? tab:tabContainer id=foo-bar-container tab:tabPane id=foo tabTitle=Foo! Foo is cool! /tab:tabPane tab:tabPane id=bar tabTitle=Bar! c:out value=Bar is cooler! / /tab:tabPane /tab:tabContainer Jim From: su mo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Tue, 13 Dec 2005 09:41:51 +0530 Checkout this. Very good one ditchnet.org/taglibs/ On 12/13/05, Yujun Liang [EMAIL PROTECTED] wrote: Tiles is needed for option 1, but I am not sure if it is still needed if using Struts-Layout. On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote: Can this be done easily with Tiles? From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
On 12/24/05, Martin Gainty [EMAIL PROTECTED] wrote: You can use jsp:include page=local_URL flush=true/ page is file which contains the JSP logic flush sends the current page output before included file c:import to include local and remote rewrite tasks c:url for URL rewrite URL http://java.sun.com/developer/technicalArticles/javaserverpages/faster/index.html snip/ Indeed. One point I'd like to add is if you *aggregate* content in the tabs from separate static or dynamic sources, you will also need to mitigate potential naming conflicts if that can be an issue (things where this can bite is form submission, AJAX techniques etc.) -Rahul - Original Message - From: Jim Douglas [EMAIL PROTECTED] To: user@struts.apache.org Sent: Saturday, December 24, 2005 10:18 AM Subject: Re: tabs is struts This is an excelet solution, thank you! Do you know how can I modify the line c:out value=Bar is cooler! /, so that it servers up a JSP via STRUTS? tab:tabContainer id=foo-bar-container tab:tabPane id=foo tabTitle=Foo! Foo is cool! /tab:tabPane tab:tabPane id=bar tabTitle=Bar! c:out value=Bar is cooler! / /tab:tabPane /tab:tabContainer Jim From: su mo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Tue, 13 Dec 2005 09:41:51 +0530 Checkout this. Very good one ditchnet.org/taglibs/ snap/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts (O/T caution: Thread hike by S. Claus)
Good Afternoon Master Rahul- As they say in Harvard Square.. this is very helpful advice indeed! I Hope one and all have a good Chanukkah, Merry Christmas and a Happy Festivus! Martin Gainty http://www.laconiadatasystems.com - Original Message - From: Rahul Akolkar [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Saturday, December 24, 2005 11:41 AM Subject: Re: tabs is struts On 12/24/05, Martin Gainty [EMAIL PROTECTED] wrote: You can use jsp:include page=local_URL flush=true/ page is file which contains the JSP logic flush sends the current page output before included file c:import to include local and remote rewrite tasks c:url for URL rewrite URL http://java.sun.com/developer/technicalArticles/javaserverpages/faster/index.html snip/ Indeed. One point I'd like to add is if you *aggregate* content in the tabs from separate static or dynamic sources, you will also need to mitigate potential naming conflicts if that can be an issue (things where this can bite is form submission, AJAX techniques etc.) -Rahul - Original Message - From: Jim Douglas [EMAIL PROTECTED] To: user@struts.apache.org Sent: Saturday, December 24, 2005 10:18 AM Subject: Re: tabs is struts This is an excelet solution, thank you! Do you know how can I modify the line c:out value=Bar is cooler! /, so that it servers up a JSP via STRUTS? tab:tabContainer id=foo-bar-container tab:tabPane id=foo tabTitle=Foo! Foo is cool! /tab:tabPane tab:tabPane id=bar tabTitle=Bar! c:out value=Bar is cooler! / /tab:tabPane /tab:tabContainer Jim From: su mo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Tue, 13 Dec 2005 09:41:51 +0530 Checkout this. Very good one ditchnet.org/taglibs/ snap/
Re: tabs is struts
Can this be done easily with Tiles? From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
Tiles is needed for option 1, but I am not sure if it is still needed if using Struts-Layout. On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote: Can this be done easily with Tiles? From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED]
Re: tabs is struts
Checkout this. Very good one ditchnet.org/taglibs/ On 12/13/05, Yujun Liang [EMAIL PROTECTED] wrote: Tiles is needed for option 1, but I am not sure if it is still needed if using Struts-Layout. On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote: Can this be done easily with Tiles? From: Yujun Liang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: tabs is struts Date: Fri, 9 Dec 2005 09:02:42 +1100 On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED]
Re: tabs is struts
Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs is struts
On web page, there are two kinds of tabs, 1. Tab-looking pages with the different style for active tab, there is nothing special for this kind of tab, you can just treat them as the POHA (Plain Old HTML Application), well you need design the styles. Please check CSS-2 document. Page refresh will be observed for tab switch. 2. DHTML Tabs, this is dynamic and you won't see page refresh, it is really like the POWA(Plain Old Windows Application), to achieve this, you may need hidden frames for data transmission or you can use AJAX. If you client can afford to use JavaScript, the option 2 is definitely a preferred choice, it gives the user real time experience. If the application has to be W3C Accessibility complaint, you have no choice to use option 1. So the tab is just a different look and feel, not really different from other kind of page. From one example of Struts Recipe by George Franciscus, I can tell the Tabs generated by Struts Layout Tag are JavaScript driven so it is not W3C Accessibility complaint. Regards On 12/8/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: Try struts layout tags. They support tabbed inputs. On 12/8/05, Sony Thomas [EMAIL PROTECTED] wrote: Hi, Is there is any way to use tabs in struts. Is there is any html bean tag for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED]