Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Jonathan Locke


also see wicket-rad if appropriate


igor.vaynberg wrote:
 
 have a look see here for an example
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/
 
 -igor
 
 On Thu, Sep 11, 2008 at 6:29 PM, walnutmon [EMAIL PROTECTED]
 wrote:

 Very new to Wicket, I've been reading about it for a few days, I'm really
 excited now that I'm using it.

 The stuff I do requires that you be able to create dynamic form
 elements...
 as an example, how would I be able to create a form that has a radio
 button
 input, where the amount of radio buttons depends on a call to some other
 object?

 A quick example...

 form area

 /form area

 This will be an area that could have any number of radio button options
 based on a call to some psuedo function 'ListRadioButtonOption
 getRadioButtonSelectionOptions();'

 I am unable to just call 'add(optionIndex, listOfOptions.getNext());'
 because there is nothing mapped to it in HTML, however, I can't put it in
 HTML, because I don't know how many options there will be.

 Thanks!
 Justin
 --
 View this message in context:
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19447802.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19450053.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler


Jonathan Locke wrote:
 
 also see wicket-rad if appropriate
 
A  http://sites.google.com/site/wicketrad URL could be useful, so here it is
. :)

The org.wicketrad.propertyeditor package in the wicket-rad-core module has a
bunch of Panels you might want to look at for your problem.

The exact problem regarding Radio buttins you (Justin) are talking about can
be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput class
(it uses an implementation of IChoiceSource to retrieve the number of radio
buttons).
-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Does this person really need a RAD tool for what they're trying to do?
 All they need to do is display a list of an arbitrary number of radio
buttons.  Wouldn't ListView suffice in this situation?  That's all
they asked for.  The XP folks would say, Do the simplest thing that
works.

On Fri, Sep 12, 2008 at 3:56 AM, wfaler [EMAIL PROTECTED] wrote:


 Jonathan Locke wrote:

 also see wicket-rad if appropriate

 A  http://sites.google.com/site/wicketrad URL could be useful, so here it is
 . :)

 The org.wicketrad.propertyeditor package in the wicket-rad-core module has a
 bunch of Panels you might want to look at for your problem.

 The exact problem regarding Radio buttins you (Justin) are talking about can
 be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput class
 (it uses an implementation of IChoiceSource to retrieve the number of radio
 buttons).
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler

Nope, probably not, but he can take a look at the code for a sample on how to
achieve exactly what he wants.


jwcarman wrote:
 
 Does this person really need a RAD tool for what they're trying to do?
  All they need to do is display a list of an arbitrary number of radio
 buttons.  Wouldn't ListView suffice in this situation?  That's all
 they asked for.  The XP folks would say, Do the simplest thing that
 works.
 
 On Fri, Sep 12, 2008 at 3:56 AM, wfaler [EMAIL PROTECTED] wrote:


 Jonathan Locke wrote:

 also see wicket-rad if appropriate

 A  http://sites.google.com/site/wicketrad URL could be useful, so here it
 is
 . :)

 The org.wicketrad.propertyeditor package in the wicket-rad-core module
 has a
 bunch of Panels you might want to look at for your problem.

 The exact problem regarding Radio buttins you (Justin) are talking about
 can
 be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput
 class
 (it uses an implementation of IChoiceSource to retrieve the number of
 radio
 buttons).
 --
 View this message in context:
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19453574.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Igor Vaynberg
did you also explain about setreuseitems(true) to them after
suggesting a listview?

-igor

On Fri, Sep 12, 2008 at 3:35 AM, James Carman
[EMAIL PROTECTED] wrote:
 Does this person really need a RAD tool for what they're trying to do?
  All they need to do is display a list of an arbitrary number of radio
 buttons.  Wouldn't ListView suffice in this situation?  That's all
 they asked for.  The XP folks would say, Do the simplest thing that
 works.

 On Fri, Sep 12, 2008 at 3:56 AM, wfaler [EMAIL PROTECTED] wrote:


 Jonathan Locke wrote:

 also see wicket-rad if appropriate

 A  http://sites.google.com/site/wicketrad URL could be useful, so here it is
 . :)

 The org.wicketrad.propertyeditor package in the wicket-rad-core module has a
 bunch of Panels you might want to look at for your problem.

 The exact problem regarding Radio buttins you (Justin) are talking about can
 be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput class
 (it uses an implementation of IChoiceSource to retrieve the number of radio
 buttons).
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Where's the fun in that? ;)  Sorry, I should have mentioned that you
need to setup your ListView to reuse the items if you're doing things
as you say.

On Fri, Sep 12, 2008 at 10:10 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 did you also explain about setreuseitems(true) to them after
 suggesting a listview?

 -igor

 On Fri, Sep 12, 2008 at 3:35 AM, James Carman
 [EMAIL PROTECTED] wrote:
 Does this person really need a RAD tool for what they're trying to do?
  All they need to do is display a list of an arbitrary number of radio
 buttons.  Wouldn't ListView suffice in this situation?  That's all
 they asked for.  The XP folks would say, Do the simplest thing that
 works.

 On Fri, Sep 12, 2008 at 3:56 AM, wfaler [EMAIL PROTECTED] wrote:


 Jonathan Locke wrote:

 also see wicket-rad if appropriate

 A  http://sites.google.com/site/wicketrad URL could be useful, so here it is
 . :)

 The org.wicketrad.propertyeditor package in the wicket-rad-core module has a
 bunch of Panels you might want to look at for your problem.

 The exact problem regarding Radio buttins you (Justin) are talking about can
 be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput class
 (it uses an implementation of IChoiceSource to retrieve the number of radio
 buttons).
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread walnutmon

Haha, first off, thanks for all the responses, I'm glad the community is
active :)

I took a look at the Wicket Rad, it looks pretty cool, I think he referenced
it so that I can actually see how some of that stuff works, and get a handle
on what Wicket is capable of, it was a bit over my head.

I then took a look at ListView, and I saw the setReuseItems() function, used
to be setOptimizeSomething()... but they deprecated it, apparently they did
so just to make the name more meaningful, because it appears the two do the
same thing.

Thanks again!


jwcarman wrote:
 
 Where's the fun in that? ;)  Sorry, I should have mentioned that you
 need to setup your ListView to reuse the items if you're doing things
 as you say.
 
 On Fri, Sep 12, 2008 at 10:10 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
 did you also explain about setreuseitems(true) to them after
 suggesting a listview?

 -igor

 On Fri, Sep 12, 2008 at 3:35 AM, James Carman
 [EMAIL PROTECTED] wrote:
 Does this person really need a RAD tool for what they're trying to do?
  All they need to do is display a list of an arbitrary number of radio
 buttons.  Wouldn't ListView suffice in this situation?  That's all
 they asked for.  The XP folks would say, Do the simplest thing that
 works.

 On Fri, Sep 12, 2008 at 3:56 AM, wfaler [EMAIL PROTECTED] wrote:


 Jonathan Locke wrote:

 also see wicket-rad if appropriate

 A  http://sites.google.com/site/wicketrad URL could be useful, so here
 it is
 . :)

 The org.wicketrad.propertyeditor package in the wicket-rad-core module
 has a
 bunch of Panels you might want to look at for your problem.

 The exact problem regarding Radio buttins you (Justin) are talking
 about can
 be solved with the org.wicketrad.propertyeditor.input.RadioGroupInput
 class
 (it uses an implementation of IChoiceSource to retrieve the number of
 radio
 buttons).
 --
 View this message in context:
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19451340.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19461052.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread walnutmon

Very new to Wicket, I've been reading about it for a few days, I'm really
excited now that I'm using it.  

The stuff I do requires that you be able to create dynamic form elements...
as an example, how would I be able to create a form that has a radio button
input, where the amount of radio buttons depends on a call to some other
object?

A quick example...

form area

/form area

This will be an area that could have any number of radio button options
based on a call to some psuedo function 'ListRadioButtonOption
getRadioButtonSelectionOptions();'

I am unable to just call 'add(optionIndex, listOfOptions.getNext());'
because there is nothing mapped to it in HTML, however, I can't put it in
HTML, because I don't know how many options there will be.

Thanks!
Justin
-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19447802.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread James Carman
Take a look at ListView.

On Thu, Sep 11, 2008 at 9:29 PM, walnutmon [EMAIL PROTECTED] wrote:

 Very new to Wicket, I've been reading about it for a few days, I'm really
 excited now that I'm using it.

 The stuff I do requires that you be able to create dynamic form elements...
 as an example, how would I be able to create a form that has a radio button
 input, where the amount of radio buttons depends on a call to some other
 object?

 A quick example...

 form area

 /form area

 This will be an area that could have any number of radio button options
 based on a call to some psuedo function 'ListRadioButtonOption
 getRadioButtonSelectionOptions();'

 I am unable to just call 'add(optionIndex, listOfOptions.getNext());'
 because there is nothing mapped to it in HTML, however, I can't put it in
 HTML, because I don't know how many options there will be.

 Thanks!
 Justin
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19447802.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread Igor Vaynberg
have a look see here for an example

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/

-igor

On Thu, Sep 11, 2008 at 6:29 PM, walnutmon [EMAIL PROTECTED] wrote:

 Very new to Wicket, I've been reading about it for a few days, I'm really
 excited now that I'm using it.

 The stuff I do requires that you be able to create dynamic form elements...
 as an example, how would I be able to create a form that has a radio button
 input, where the amount of radio buttons depends on a call to some other
 object?

 A quick example...

 form area

 /form area

 This will be an area that could have any number of radio button options
 based on a call to some psuedo function 'ListRadioButtonOption
 getRadioButtonSelectionOptions();'

 I am unable to just call 'add(optionIndex, listOfOptions.getNext());'
 because there is nothing mapped to it in HTML, however, I can't put it in
 HTML, because I don't know how many options there will be.

 Thanks!
 Justin
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question%3A--Dynamically-Building-Form-Elements-tp19447802p19447802.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]