Ah, I am such a dingbat... the beans in my list contained a property
with the same name as I used for the Collection property in the backing
bean. So when the tag was checking if the option was there or not it was
looking at some boolean property of that bean instead into the Collection.
Not befor
I think I found an OK solution but one thing does not work and I don't
understand why.
So what I am doing is creating single checkboxes in an iterator,
disabling the automatically generated label through a modified "simple"
theme and creating my custom labels:
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> Thanks again Dave for your input. It's greatly
> aprpeciated.
Ha ha, don't thank me until something actually works.
d.
Be
a better Heartthrob. Get bette
Dave Newton-4 wrote:
Yep... in its simplest form, it's really pretty
straight-forward. There's all sorts of cool ways to
mess it up later ;)
THAT'S the one part of this that I don't need any help with. I can mess
things up with the best of them.
Thanks again Dave for your input. It's greatl
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> Would you make that a separate data structure, or
> part of the object already being passed?
For me, that would depend on what the underlying data
model was, I suppose.
> Let's say it's separate, just add the Map/List to
the
> action, create sette
I have been struggling with the very same problem. So you say
pre-populate the map/list. Would you make that a separate data
structure, or part of the object already being passed? Let's say it's
separate, just add the Map/List to the action, create setter and
getters, and make sure and recr
Well, why not try both ways... it will be a good exercise no matter what.
I'll get back when I have some interesting experiences to share with.
Thanks again!
Torsten
Dave Newton schrieb:
> --- Torsten Römer <[EMAIL PROTECTED]> wrote:
>> I see there is no point in what I am trying to do.
>
> Oh
--- Torsten Römer <[EMAIL PROTECTED]> wrote:
> I see there is no point in what I am trying to do.
Oh, I don't know about that.
You could use a map (or list) for the checkbox values
and gather up the result values that way, couldn't
you?
You just need to pre-populate the map (or list) in the
act
It sure does and I already looked at it, but I was trying to create
single checkboxes in an in order to be able to put them in
a custom layout.
I kind of have the same problem with radiobuttons so I guess I should
reconsider my "design" so I can use the default markup and thus the tags
as they ar
--- Torsten Römer <[EMAIL PROTECTED]> wrote:
> I have a varying number of checkboxes on a form and
> would like to somehow get a list of the selected
> checkboxes or a map and of course it would be nice
if
> the checkboxes would "remember" their state...
http://struts.apache.org/2.x/docs/checkbox
10 matches
Mail list logo