Re: Live search with Dojo (Ajax) and Struts 2

2010-04-08 Thread sandeep kotha
step1. google.com step2 search with autocomplete + dojo On 7 April 2010 01:15, Celinio Fernandes wrote: > Hi, > I am using Struts 2.1.8 and the Dojo plugin. > What i am trying to realize is the following : > the user has to fill a field that corresponds to a REFERENCEID. I want to > help that us

Live search with Dojo (Ajax) and Struts 2

2010-04-06 Thread Celinio Fernandes
Hi, I am using Struts 2.1.8 and the Dojo plugin. What i am trying to realize is the following : the user has to fill a field that corresponds to a REFERENCEID. I want to help that user to type in the REFERENCEID by suggesting 20 REFERENCEID as soon as he types in a digit. For instance, if he types

Re: ajax and struts 2

2007-04-13 Thread Lance
. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript

RE: ajax and struts 2

2007-04-13 Thread David Harland
Thanks Dave, I think that is exactly what I was looking for. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:54 To: Struts Users Mailing List Subject: RE: ajax and struts 2 --- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The p

RE: ajax and struts 2

2007-04-13 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The problem is that the java class > that the javascript talks to does not have access to > the session. http://getahead.org/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html But there are better ways to handle this in S2. d. ___

RE: ajax and struts 2

2007-04-13 Thread David Harland
Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get

Re: ajax and struts 2

2007-04-13 Thread Lance
ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u c

Re: ajax and struts 2

2007-04-13 Thread Mahesh Parab
Hi David, u can able to read the session variable in javascript, e.g var intId intId='<%=session.getValue("id")%>' ; try this , Thanks, mahesh. On 4/12/07, David Harland <[EMAIL PROTECTED]> wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a use

Re: ajax and struts 2

2007-04-12 Thread Martin Gainty
without making a copy. Thank you. - Original Message - From: "David Harland" <[EMAIL PROTECTED]> To: "struts" <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2007 2:14 AM Subject: ajax and struts 2 I am new to ajax and have just written my first ajax functi

Re: ajax and struts 2

2007-04-12 Thread Felipe Rodrigues
y > connected to friends.http://mobile.yahoo.com/mail > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www

ajax and struts 2

2007-04-11 Thread David Harland
I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer t

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.