With the same error?
musachy
walidito wrote:
sorry i posted the wrong code,
but i tried both target and targets.
both doesnt work
Musachy Barroso-2 wrote:
The anchor and the submit tags have a "targets" attribute that does
that. In "targets" you can specify a comma-delimited list of ids, whose
content will be updated with html returned from from your action:
<s:div id="div1" ...>
<s:submit theme="ajax" targets="div1" .../>
</s:div>
Showcase has several examples of this. More info here:
http://cwiki.apache.org/confluence/display/WW/Ajax+Tags
regards
musachy
walidito wrote:
Hi everybody,
My new dilema is :
I have created my "own" ajax widgets by putting <s:div theme="ajax" in a
struts 2 tabbedPanel. This allows to refresh its content and works fine.
I want to put links inside this widget (a button for exemple or a " ...)
that are linked to an Action class, but that targets the same widgets.
If its not clear, let me illustrate. I display a list of objects in my
widget, I display a link to delete/modify one row of my list. When
clicking
on it, it calls an action that performs the change (modify the row) . And
now I don't know what to do in order to refresh the display of the list
ONLY
IN MY AJAX WIDGET, without refreshing all the page.
thanks a lot
---------------------------------------------------------------------
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]