Re: [Wicket-user] complex forms w/ dynamic name/id attributes

2006-02-14 Thread Johan Compagner
why are the names not unique?Which names?It should work fine building those forms. Just use setOptimizedRemoval(true) on the listviewso that it doesn't regenerate youre form everytime.johan
On 2/13/06, VGJ [EMAIL PROTECTED] wrote:
I understand simple wicket forms at least a little now...but I'mreally starting to struggle w/ things beyond the trivial when it comesto forms.I'm also having some trouble locating some real solidexamples or documentation...the API reference stops being helpful
really quick.The wicket-examples aren't bad but aren't that greateither...am I missing some documentation somewhere that might behelping me better?The wiki doesn't appear to be complete just yet.I'm loving wicket but having a hard time taking it too far since the
documentation seems to be so sparse!Anhow...let's say I've got a List of data...I map it to a table rowin wicket using tr wicket:id= ... and the list is displayed on thepage.Now I need to add a radio button list, textbox, and submit
button for each item in the listwhich would submit the form thatthe entire table is wrapped in...how can this be done w/o generatingan error?Obviously, the names aren't unique so an exception isthrown.
Here's an example...a table w/ a dynamic row-set...w/ nested radiobutton list(s)table border=1 width=100% cellpadding=3 cellspacing=0tr wicket:id=mydatalist
span valign=top wicket:id=rclist id=statusrctdinput type=radio //tdtdinput type=radio /
/tdtdinput type=radio //td/span...I'm stumped, can't find a good example of a RadioChoice beyond here's
the control packed w/ a simple array as an example type of stuff.How do I programmatically set one of the controls checked if acertain condition is true?A lot of the stuff I'm doing these days
pertains to dynamically building forms like this.Thanks in advance!-v---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] complex forms w/ dynamic name/id attributes

2006-02-13 Thread VGJ
I understand simple wicket forms at least a little now...but I'm
really starting to struggle w/ things beyond the trivial when it comes
to forms.  I'm also having some trouble locating some real solid
examples or documentation...the API reference stops being helpful
really quick.  The wicket-examples aren't bad but aren't that great
either...am I missing some documentation somewhere that might be
helping me better?  The wiki doesn't appear to be complete just yet. 
I'm loving wicket but having a hard time taking it too far since the
documentation seems to be so sparse!

Anhow...let's say I've got a List of data...I map it to a table row
in wicket using tr wicket:id= ... and the list is displayed on the
page.  Now I need to add a radio button list, textbox, and submit
button for each item in the listwhich would submit the form that
the entire table is wrapped in...how can this be done w/o generating
an error?  Obviously, the names aren't unique so an exception is
thrown.

Here's an example...a table w/ a dynamic row-set...w/ nested radio
button list(s)

table border=1 width=100% cellpadding=3 cellspacing=0
  tr wicket:id=mydatalist
span valign=top wicket:id=rclist id=statusrc
td
  input type=radio /
/td
td
  input type=radio /
/td
td
  input type=radio /
/td
/span
...

I'm stumped, can't find a good example of a RadioChoice beyond here's
the control packed w/ a simple array as an example type of stuff. 
How do I programmatically set one of the controls checked if a
certain condition is true?  A lot of the stuff I'm doing these days
pertains to dynamically building forms like this.

Thanks in advance!

-v


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user