You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Peter L. Berghold" <Pe...@berghold.net> on 2006/11/28 21:03:10 UTC

radio buttons within a nested form based on a db table.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK... I've outsmarted myself and I'm looking for a way out of the corner
I painted myself into..

Here's the deal:  I have a radio button (group?) that I want to build
dynamically based on the contents of a database table. This radio button
set will then set a parameter within a nested form.

The solution I came up with at first was to create a Hibernate "service"
that builds the requisite HTML from a query putting in values and labels
as appropriate.  Fine...  this was OK as long as I didn't have to make a
second trip through the form.

But I do...

When the second trip happens the radio button "forgets" what the user
set it to and they have to set it again.  Nobody has to explain it to
me.. I fully understand what booby trap I stepped on.

Moving on... what methodology would folks suggest for dynamically
building the radio button group in this instance?


- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold                                     Peter@Berghold.Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg        Yahoo IM: blue_cowdawg              ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFFbJX+UM9/01RIhaARApMwAKDBHkhhOUcZFLUBh/+2Az5S9PHG8ACgkuoo
tm9oTwCkpi++fUIxZodSYjg=
=O1lN
-----END PGP SIGNATURE-----