Re: Struts2 JQuery select box

2010-03-05 Thread Johannes Geppert
some days after jquery UI 1.8 is final. Best Regards Johannes Geppert nani2ratna wrote: > > Thanks you very much Johannes. > Can you tell me when the next version might be released. > - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context

Re: Struts2 JQuery select box

2010-03-05 Thread nani2ratna
Thanks you very much Johannes. Can you tell me when the next version might be released. Thanks and Regards RS Johannes Geppert wrote: > > > nani2ratna wrote: >> >> But sj:select is not working like s:select. >> If i use normal struts 2 select, values are loading normally. >> But sj:select

Re: Struts2 JQuery select box

2010-03-05 Thread Johannes Geppert
nani2ratna wrote: > > But sj:select is not working like s:select. > If i use normal struts 2 select, values are loading normally. > But sj:select loading after all the elements in the jsp page rendered > completely. > The Content is loaded via AJAX, and this was executed when the DOM is ready.

Re: Struts2 JQuery select box

2010-03-05 Thread Yoshi
Hi, to exclude a property from be serialized just use the annotation on get method of the property. @JSON(serialize=false) 2010/3/4 nani2ratna > > Hi Johannes, > I saw that one earlier. > I found the bug. > I have another property in my action class which is service class. > > So i exclude

Re: Struts2 JQuery select box

2010-03-05 Thread nani2ratna
Hi, I just came to work and saw your email. Once again Thanks for replies. But sj:select is not working like s:select. If i use normal struts 2 select, its loading normally. But sj:select loading after all the elements in the jsp page rendered completely. Another one, while loading the elements

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
i think comma seperated, but i'am not sure. so your select box runs now?? Best Regards Johannes Geppert nani2ratna wrote: > > Hi Johannes, > I saw that one earlier. > I found the bug. > I have another property in my action class which is service class. > > So i excluded that service class fr

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
Hi Johannes, I saw that one earlier. I found the bug. I have another property in my action class which is service class. So i excluded that service class from json. Now its working fine. I did this one, @Actions( { @Action(value = "/JsonAction", results = { @Result(name

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
did you work with hibernate? I found this post that maybe helps you out. http://www.codeweblog.com/solution-struts2-hibernate-integration-with-jsonpulugin-an-exception-when/ Best Regards Johannes Geppert. nani2ratna wrote: > > HI, > > I am trying to get this object > List prodcatList = n

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
HI, I am trying to get this object List prodcatList = new ArrayList(); ProdmProdcat is a java bean which got two properties. they are String prodcat_code; and String prodcat_desc; Is this object fine. Thanks and Regards RS nani2ratna wrote: > > HI, > > Thank you. > I executed the action. >

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
looks like the json plugin has a problem while accessing a member. you can try to exclude it, when you know which it is. Best Regards Johannes Geppert nani2ratna wrote: > > HI, > > Thank you. > I executed the action. > It gave me the following exception > > java.lang.IllegalAccessException:

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
HI, Thank you. I executed the action. It gave me the following exception java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public" sun.reflect.Re

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
you can just execute your action like a normal action. http://localhost:8080/app/json.action The result should be a normal textfile which you can open with notepad or whatever you want. Also you can use Firebug "Network/XHR" to see your action response Best Regards Johannes Geppert nani2r

Re: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
Hi Johanes, Thanks for reply. Actually I am very new to JSON. Action is working fine. I went through your code and redid the same type stuff in my app. I don't know about JSON reponse. Since in your action class there no result(jsp) mapped. So I too did the same. I am just executing the action m

Re: Struts2 JQuery select box

2010-03-04 Thread Johannes Geppert
Hello, did your JSON Actions works fine? Check if you really get an JSON response and the variables inside the result have the same name. Can you please POST your result with sample data? Best Regards Johannes Geppert nani2ratna wrote: > > Hi, > > I am trying to use http://code.google.c

RE: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
hu, 4 Mar 2010 05:18:09 -0800 >> From: nani2ra...@gmail.com >> To: user@struts.apache.org >> Subject: RE: Struts2 JQuery select box >> >> >> I was using normal select only. >> But now i need to do ajax stuff when user change the select box. >> So jqu

RE: Struts2 JQuery select box

2010-03-04 Thread adam pinder
> To: user@struts.apache.org > Subject: RE: Struts2 JQuery select box > > > I was using normal select only. > But now i need to do ajax stuff when user change the select box. > So jquery is doing this stuff.First i tried with two select boxes. > Then i tried to do atleast on select

RE: Struts2 JQuery select box

2010-03-04 Thread nani2ratna
I was using normal select only. But now i need to do ajax stuff when user change the select box. So jquery is doing this stuff.First i tried with two select boxes. Then i tried to do atleast on select box. Even one select box also not working. Now I have to use this jquery select box to complete t

RE: Struts2 JQuery select box

2010-03-04 Thread adam pinder
why did you choose to use jquery rather than just normal struts select and let the action class create an array of objects (i use an object that has a key/value pair) i haven't used jquery but not sure what extra it adds. adam > Date: Thu, 4 Mar 2