Re: Where is the documentation for Struts tags ....

2010-05-04 Thread RogerV
So if it's looking for a string, let's make sure you're giving it one, and not the .toString of an empty map that it got from your prepare method: I must admit I don't understand what you expect this to submit, or how that should become a map -- there are only one set of values, not pairs.

Dojo textarea

2010-05-04 Thread am am
Hi, I am new in struts. It seems that the textarea of dojo can not be configured. E.g. in the following trivial jsp the editor part of textarea takes all of the browser and the textarea itself is not constrained to 3 by 3.(also there is no border). Why is this? Additionally looking in google i

Re: Where is the documentation for Struts tags ....

2010-05-04 Thread Dale Newfield
On 5/4/10 10:08 AM, RogerV wrote: The rendering is a bit odd, which makes me feel I'm still missing something. Due to the fact that there are three checkboxes with the right values and the right pre-selection, we know that the list attribute and the value attribute of the tag are w

Re: Where is the documentation for Struts tags ....

2010-05-04 Thread RogerV
DNewfield wrote: > > On 5/3/10 2:54 AM, RogerV wrote: >> >> > value="%{preselectedroles}"/> >> >> > > So what html does this generate for the client to render/submit? > The rendering is a bit odd, which makes me feel I'm still missing something. Adminstrator Diagnostics Unr

RE: input fields with dynamic names

2010-05-04 Thread Martin Gainty
just to be safe i would add the id attribute id="Person %{key}" to the example use of %{key} to uniquely identify each created textfield DOM element would work i did'nt mention there is a status counter for iterator to use as an indexer e.g. //assuming there is a 1:1 mapping between %{key} a

Re: input fields with dynamic names

2010-05-04 Thread Robert Graf-Waczenski
Have your Action method getAuthorizedOptions() return something like a Hashtable, where MyBean is your inner thingy with methods setWhateverProperty() and getWhateverProperty(). Then your iterator incantation as below: would deliver instances of Hashtable.Entry, which means that you would b

Re: s:select help

2010-05-04 Thread Alex Rodriguez Lopez
Maybe using OGNL along with #this or #attr . Haven't checked that out but it should work some of these ways: http://struts.apache.org/2.0.14/docs/ognl-basics.html http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html Em 04-05-2010 14:03, RogerV escreveu: Upasana Sharma wrote: li

Re: input fields with dynamic names

2010-05-04 Thread Dale Newfield
On 5/3/10 10:08 AM, Mitch Claborn wrote: Bump. Any other ideas? Yes. ParameterAware allows you to handle parameters without the setters and getters you think are necessary. Look there again. -Dale Mitch Claborn wrote: That works for setting parameter names, but not so well when the tag

Re: Where is the documentation for Struts tags ....

2010-05-04 Thread Dale Newfield
On 5/3/10 2:54 AM, RogerV wrote: So what html does this generate for the client to render/submit? If you set the form action to be GET it's even easier to see what it is submitting. Once you know it's submitting the right set of values, then you can focus on where those values go. Thi

Re: input fields with dynamic names

2010-05-04 Thread Mitch Claborn
I could probably restructure my data to make it fit that model, but that is not the ideal solution. My data is structured more like a hash, where the keys are essentially arbitrary and unpredictable. Is there something similar that would work with that kind of structure? Mitch Martin Gaint

Re: s:select help

2010-05-04 Thread RogerV
Upasana Sharma wrote: > > listValue="%{getText('myCategory.'+toString())}" > > this way i can change the select display value from .properties file > > in .properties i have to use > > myCategory.ELECTRIC= Electric > Neat. I'm trying to do the same thing with the tag. http://old.nabble.c

Re: Parts in the documentation are not displayed correctly

2010-05-04 Thread stlecho
The majority of the pages in the "Guides > Tutorials" pages have this problem: - http://struts.apache.org/2.1.8.1/docs/getting-started.html http://struts.apache.org/2.1.8.1/docs/getting-started.html - http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html http://struts.apache.org/2.

Re: s:select help

2010-05-04 Thread Upasana Sharma
listValue="%{getText('myCategory.'+toString())}" this way i can change the select display value from .properties file in .properties i have to use myCategory.ELECTRIC= Electric On Tue, May 4, 2010 at 12:24 PM, Upasana Sharma wrote: > I have also seen that there is some function called ordina