Re: OptionTransferSelect problem

2011-01-03 Thread Dale Newfield
On 1/3/11 10:01 AM, RogerV wrote: component will "Will auto-select all its elements upon its containing form submision." but it's not doing that - I have to manually select the items in the right hand list to get the values returned when the containing form is submitted. The magic is all in:

Re: JSON Property

2011-01-03 Thread Maurizio Cucchiara
Pardon me if I'm probably wrong, but why can't you use JSON action? I mean, something like this: [...] jQuery("#list2").jqGrid({ url:'YOUR_JSON_ACTION_URL', [...] 2011/1/3 Jim Talbut : > Yes, I thought about that, but it's even more work than creating a custom > "get" method and equally unreusab

Re: JSON Property

2011-01-03 Thread Steven Yang
well for me I do have an custom tag the tag converts any entity into JSON, so for example i have List myEntities; in my JSP i can do or output as Javascript array without action knowing what the output will be formated. and in the tag i have my own formatting rule for JSON. of course i am sure

Re: problem mapping values from the jsp to the action

2011-01-03 Thread developer researcher
Hello, thanks for all your answers, finally I can find a solution. - there is nothing rare or special in the generated HTML, it is identical to jsp - when I change the method to get I can see that not all parameters are sent - finally the problem es solved when include an dijit.form.Form elem

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Thanks, Maurizio. Brian On Mon, Jan 3, 2011 at 12:14 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Individual Contributor License Agreement [1] > [1] http://www.apache.org/licenses/icla.txt > > 2011/1/3 Brian Thompson : > > Pardon my ignorance, but what is a CLA? I haven't h

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Maurizio Cucchiara
Individual Contributor License Agreement [1] [1] http://www.apache.org/licenses/icla.txt 2011/1/3 Brian Thompson : > Pardon my ignorance, but what is a CLA?  I haven't heard of it before this. > > Brian > > Sent via my Droid, Eka. > On Jan 3, 2011 10:42 AM, "Dave Newton" wrote: >> I kind of thoug

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Pardon my ignorance, but what is a CLA? I haven't heard of it before this. Brian Sent via my Droid, Eka. On Jan 3, 2011 10:42 AM, "Dave Newton" wrote: > I kind of thought the ability to submit to specific action methods was > well-known, but perhaps you're correct, as this thread indicates (to

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
Well, I have no CLA but I will contribute what I may. Beez r 5347 -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Monday, January 03, 2011 11:42 AM To: Struts Users Mailing List Subject: Re: Multiple Submit Buttons problem in Struts2 I kind of thought the ab

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Dave Newton
I kind of thought the ability to submit to specific action methods was well-known, but perhaps you're correct, as this thread indicates (to my chagrin). There are a number of things in the wiki that need updating; I'll probably start compiling a list from previous threads and open JIRA issues. The

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
Should this be included in documentation as a more complex example of Struts2? Maybe an example action as well? Just a thought. -Beez -Original Message- From: stanl...@gmail.com [mailto:stanl...@gmail.com] Sent: Sunday, January 02, 2011 5:20 PM To: Struts Users Mailing List Subject: R

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread aum strut
Scott, that was a good way to go.. On Mon, Jan 3, 2011 at 3:59 AM, Dave Newton wrote: > Hmm, that looks like it might work ;) > > Your technique also avoids having to code the behavior into the action > itself, decoupling things even more cleanly. > > (Another foot down the rabbit hole: "custom

RE: JSON Property

2011-01-03 Thread Jim Talbut
Yes, I thought about that, but it's even more work than creating a custom "get" method and equally unreusable. I've done this often enough that I think a custom tag is justified. The reason I keep wanting to do it is to set up jqGrid data so that I can have a parent record with children (the chi

Re: JSON Property

2011-01-03 Thread Aaron Brown
Have you considered using an include? You can call a json-result-type action with it or switch to some other fragment result if needed. Perhaps it's quick and dirty compared with creating a custom tag but it seems to me it would be a lot easier to implement. - Aaron On Jan 3, 2011 6:50 AM, "Jim T

JSON Property

2011-01-03 Thread Jim Talbut
Hi, I keep needing to put the JSON equivalent of an expression into a JSP page to be used by client side javascript. This is done during the evaluation of the JSP, it's not AJAX. At the moment I'm doing it by creating a special "get" method on the action, but that's not nice - the action should