Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab
I found the problem. Its working for me now. The s:a tag did not have theme=ajax. After adding ajax theme, the result page was loaded in correct tab. Thanks for the help everyone. -- View this message in context: http://www.nabble.com/Strtus-2.0.11-AJAX-TabbedPanel-with-Remote-tabs%3A-How-to-load-the-result-page-in-another-tab-tp16115694p16142680.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab
Hi, I just started working on Struts 2 + Ajax. I am stuck on one problem. Can somebody help me? I have main page which has tabbedPanel with 3 remote tabs. When i click submit in remote page in tab1, i want to load result page in tab2. I gave tab2 div id as target for the submit but the page does not load inside tabbedPanel. Struts.xml snippet: action name=continue class=com.foo.action.ContinueAction result name=success/load_content.jsp/result /action Sample code: index.jsp: s:url id=incUrl4 value=/corpinfo_content.jsp/ s:url id=incUrl2 value=/AjaxTest.action / s:url id=incUrl1 value=/main_content.jsp / s:tabbedPanel id=incorpContainer s:div theme=ajax id=dInc1 label=Company href=%{incUrl1} executeScripts=true/s:div s:div theme=ajax id=dInc2 label=Employee href=%{incUrl2} executeScripts=true/s:div s:div theme=ajax id=dInc4 label=Corporate Info href=%{incUrl4} executeScripts=true/ /s:tabbedPanel main_content.jsp: s:url id=continueAct value=Continue.action/s:url s:a href=%{continueAct} targets=dInc2 images/Continue.jpg /s:a Any help or suggestion is appreciated. Thanks Manisha -- View this message in context: http://www.nabble.com/Strtus-2.0.11-AJAX-TabbedPanel-with-Remote-tabs%3A-How-to-load-the-result-page-in-another-tab-tp16115694p16115694.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab
Hi Jeromy, That did not work. It still posting as a new page. One more thing is the tabbedPanel is already inside another tabbedpanel (2nd level nested). Will that cause this problem? thx Jeromy Evans - Blue Sky Minds wrote: Put a div inside tab2 and make that inner div the target. If you target the tab you're trying overwrite the markup for the tab widget. By targeting a div inside the tab you can replace just the content of tab. You may also prefer to make the inner div a remote div and the tab non-ajax because you get better control. ie. in the jsp below, the target is a div inside the second tab s:tabbedPanel id=incorpContainer s:div theme=ajax id=dInc1 label=Company href=%{incUrl1} executeScripts=true/s:div s:div id=dInc2 label=Employee s:div theme=ajax id=theTarget href=%{incUrl2} executeScripts=true/div /s:div -- View this message in context: http://www.nabble.com/Strtus-2.0.11-AJAX-TabbedPanel-with-Remote-tabs%3A-How-to-load-the-result-page-in-another-tab-tp16115694p16127001.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]