Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
} >>>>>>>>> >>>>>>>>> public int getCount() { >>>>>>>>> return ++counter; >>>>>>>>> } >>>>>>>>> >>>>>>>>> public String getData() { >>>>>>>>> return data; >>>

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
What is happening is that there is an error on the request, probably the action mapping is wrong, and it is returning a page with the error, but that page has the same menu as showcase, that's why your are seeing it twice. Put the full url for the action on the address bar, after you get that t

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
gt;>>>>>> request.setAttribute("decorator", "none"); >>>>>>> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 >>>>>>> response.setHeader("Pragma","no-cache");

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
Are you sure you are not adding anything else to it and you are looking at the right one? I just check it out on showcase and it only loads once. Can you see if you have the same problem on showcase? regards musachy walidito wrote: Sorry but it didn't... It loads it many times Musachy B

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
xpires", 0); //prevents caching at the >>>>> proxy server >>>>> %> >>>>> >>>>> Result: @ >>>>> >>>>> >>>>> >>>>> musachy >>>>> >>>>> w

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
That needs to be fixed in struts, this is the jira ticket: https://issues.apache.org/struts/browse/WW-1551 from showcase: Initial Content That should load the div only once. musachy walidito wrote: Hi, Actually, I get this error both in my eclipse "console" and in my web page (debug ena

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
>> 18: loadingText="loading..."> >>>> 19: Initial Content >>>> >>>> >>>> In other word, a basic ajax component that allows a refreshment of only >>>> a >>>> part of my page. >>>> >&g

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
ingText="loading..."> >>>> 19: Initial Content >>>> >>>> >>>> In other word, a basic ajax component that allows a refreshment of only >>>> a >>>> part of my page. >>>> >>>> But I didn'

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
You are seeing that error in your server logs right? There's a couple of things that we still need to fix for this integration between Struts and Dojo, but the application should work anyway. musachy walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting

Re: Still Ajax and Struts 2

2006-12-08 Thread Ian Roughley
What release of Struts2 are you using and which browsers? /Ian walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting expr 'dojo.transport' with value '[Ljava.lang.String;@179567c' ognl.OgnlException: target is null for setProperty(null, "transport", [Ljav

Re: Still Ajax and Struts 2

2006-12-07 Thread walidito
on and action mapping. >> For the moment I've tried to put a "success" return in my action ( is it >> enough ?), but I don't see what to put in my action mapping (i mean >> inside >> the tag. If I put nothing, of course it's >> wrong. >> I

Re: Still Ajax and Struts 2

2006-12-07 Thread Musachy Barroso
I think you should take a look at the Struts2/Webwork tutorials http://www.opensymphony.com/webwork/wikidocs/Tutorial.html and http://struts.apache.org/2.x/docs/tutorials.html If you look at the showcase code you will see this for the AjaxTest action: in struts-ajax.xml: class="org.apache.str

Still Ajax and Struts 2

2006-12-07 Thread walidito
result, It creates an infinite loop (always displays "loading"). Can sobdy help please? -- View this message in context: http://www.nabble.com/Still-Ajax-and-Struts-2-tf2776835.html#a7746954 Sent from the Struts - User mailing list archive at Nabble.com.