Ok, that makes sense.

This is a little hard to explain, but here goes...
What I have done in the past is NOT use the href attribute on the tab itself. Instead include another ANOTHER div inside the tab and make this div the ajax target.

ie.
<s:tabbedPanel id="upload_options">
 <s:url id="mu" action="showManual"/>
<s:div id="manual_upload_tab" key="ContentUploadMain.Option.1" theme="simple">
   <s:div id="manual_upload_tab_conainer" theme="ajax" href="%{mu}">...

Now, the inner div rather than your tab needs to be the target of your form. This way your tab still works but the content of the tab is refreshed by your ajax form. If you don't do that, the tab's special markup is overwritten by the result and no longer works.

Does that help?

regards,
Jeromy Evans

Paranoid_Fabio wrote:
Yes. What I want to is to have the results of the action I call from inside
the div shown inside the div again.


Jeromy Evans - Blue Sky Minds wrote:
I don't quite understand what you're asking for, but I suspect:
- you're doing the right thing using a remote tab/remote div to load html fragments into your tabs asynchronously, but; - you also want to use the notifyTopics and listenTopics features of these tags to trigger refreshing/reloads

See the topics section of :http://struts.apache.org/2.0.11/docs/ajax-tags.html

Paranoid_Fabio wrote:
Hello. I try to explain the problem as cleary as possible:
I want to manage a jsp with two views: mainPage.jsp is a jsp with a
tabbed
panel. In the tabbed panel I've two tabs. In each tab calls an action and
shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed
panel:

<s:tabbedPanel id="upload_options">
                                <s:url id="mu" action="showManual"/>
                                <s:div id="manual_upload_tab" 
key="ContentUploadMain.Option.1"
theme="ajax"             href="%{mu}">
                                        
                                </s:div>
                                <s:div id="auto_upload_tab" 
key="ContentUploadMain.Option.2"
theme="ajax">
                                <s:text name="manual" />
                        </s:div>
                        </s:tabbedPanel>

where the second tab is not implemented. The first tab shows the jsp
resulting from the call to the action "showManual", the jsp is
"ManualContentUpload.jsp"
When I post the form in this page, I get the ManualContentUpload action
invoked:

 <action name="ManualContentUpload"
class="actions.contents.upload.ManualUpload">
        <result name="success">/pages/UploadSuccess.jsp</result>
        <result name="error">/pages/ManualContentUpload.jsp</result>
        <result name="input">/pages/ManualContentUpload.jsp</result>
        <result name="upload_denied"
type="redirect">/pages/UploadDenied.jsp</result> </action>

What I want is that all the resulting jsp's still be shown in the tab of
the
panel. How I can do this?
Thank you for help!





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to