Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Alvaro Sanchez-Mariscal
If the URL changes, then a normal http post is being fired, instead of an ajax request. What's your struts.ui.theme in struts.properties? If it is not "ajax", try using theme="ajax" in the s:form and in the s:submit tags. Did you included the s:head tag (http://struts.apache.org/2.x/docs/head.htm

Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Eugen Stoianovici
Alvaro Sanchez-Mariscal wrote: Try prepending an slash, ie, "/addProduct". Without it, it also didn't worked to me. Also, what happens exactly? Javascript errors? Have you tried inspecting it with firebug? Alvaro. On 8/19/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: I've tried it with /

Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Alvaro Sanchez-Mariscal
Try prepending an slash, ie, "/addProduct". Without it, it also didn't worked to me. Also, what happens exactly? Javascript errors? Have you tried inspecting it with firebug? Alvaro. On 8/19/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > Alvaro Sanchez-Mariscal wrote: > > Hi, > > > > I've do

Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Eugen Stoianovici
Alvaro Sanchez-Mariscal wrote: Hi, I've done the same using topics: 1) Publish on a topic after the request is executed (eg, notifyTopics="/submit" in the s:submit). 2) Register to the same topic in the s:div corresponding to the tab (eg, listenTopics="/submit" in the s:div). Alvaro. Can

Re: [S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Alvaro Sanchez-Mariscal
Hi, I've done the same using topics: 1) Publish on a topic after the request is executed (eg, notifyTopics="/submit" in the s:submit). 2) Register to the same topic in the s:div corresponding to the tab (eg, listenTopics="/submit" in the s:div). Alvaro. On 8/17/07, Clement, Steve <[EMAIL PROTE

RE: [S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Clement, Steve
You should be able to set the listenTopic attribute on the div for that panel, and then notify the topic (I think this is on the s:submit tag, but I could be mistaken). See http://struts.apache.org/2.0.9/docs/tag-reference.html for more details. This works if your theme "ajax". One thing I have