You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marco Aurélio Silva <ma...@gmail.com> on 2007/11/13 19:58:45 UTC
Add fields Dynamically
Hi
I need to add fields to a page dynamically. I neet do build something like a
survey where the questions and answers are stored on the database, so they
can be changed by the administrator.... because this I can't create the
HTML file with the fields.... Is there a way to do this?
Thank you
Marco
Re: Add fields Dynamically
Posted by Al Maw <wi...@almaw.com>.
Marco Aurélio Silva wrote:
> So, I can create a panel to each type of answer (input, dropDown, radio...)
> but how to add dynamic number of panels?
Look at the Repeater examples at http://wicketstuff.org/wicket13 .
Regards,
Al
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Add fields Dynamically
Posted by Marco Aurélio Silva <ma...@gmail.com>.
Hi Nick
I think that use of panel will help, but not at all. Because I have topics,
and each topic will be showed in one page with their questions, and when
click on next goes to the next topic:
*General Information:*
Address :
Phone Number :
-----------------------------------
*Job Infromation
*Company Name
City
Wage*
*
So, I can create a panel to each type of answer (input, dropDown, radio...)
but how to add dynamic number of panels?
Thank you
Marco
On Nov 13, 2007 4:00 PM, Nick Heudecker <nh...@gmail.com> wrote:
> Hi Marco,
>
> This question has been asked a few times on the list. The solution is to
> create a panel for each question type. This is exactly what I did for the
> surveys on Eventful.
>
> On Nov 13, 2007 12:58 PM, Marco Aurélio Silva <ma...@gmail.com> wrote:
>
> > Hi
> >
> > I need to add fields to a page dynamically. I neet do build something
> like
> > a
> > survey where the questions and answers are stored on the database, so
> they
> > can be changed by the administrator.... because this I can't create the
> > HTML file with the fields.... Is there a way to do this?
> >
> > Thank you
> > Marco
> >
>
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>
Re: Add fields Dynamically
Posted by Marco Aurélio Silva <ma...@gmail.com>.
Thank you Nick, I will look for this mail!
On Nov 13, 2007 4:00 PM, Nick Heudecker <nh...@gmail.com> wrote:
> Hi Marco,
>
> This question has been asked a few times on the list. The solution is to
> create a panel for each question type. This is exactly what I did for the
> surveys on Eventful.
>
> On Nov 13, 2007 12:58 PM, Marco Aurélio Silva <ma...@gmail.com> wrote:
>
> > Hi
> >
> > I need to add fields to a page dynamically. I neet do build something
> like
> > a
> > survey where the questions and answers are stored on the database, so
> they
> > can be changed by the administrator.... because this I can't create the
> > HTML file with the fields.... Is there a way to do this?
> >
> > Thank you
> > Marco
> >
>
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>
Re: Add fields Dynamically
Posted by Nick Heudecker <nh...@gmail.com>.
Hi Marco,
This question has been asked a few times on the list. The solution is to
create a panel for each question type. This is exactly what I did for the
surveys on Eventful.
On Nov 13, 2007 12:58 PM, Marco Aurélio Silva <ma...@gmail.com> wrote:
> Hi
>
> I need to add fields to a page dynamically. I neet do build something like
> a
> survey where the questions and answers are stored on the database, so they
> can be changed by the administrator.... because this I can't create the
> HTML file with the fields.... Is there a way to do this?
>
> Thank you
> Marco
>
--
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com
Eventful - Intelligent Event Management
http://www.eventfulhq.com
Re: Add fields Dynamically
Posted by Marco Aurélio Silva <ma...@gmail.com>.
Ok, thanks, I will try!
On Nov 13, 2007 4:53 PM, Nick Heudecker <nh...@gmail.com> wrote:
> Yeah, either way, this is readily solvable with panels and some form of
> repeater.
>
> On Nov 13, 2007 1:51 PM, Scott Swank <sc...@gmail.com> wrote:
>
> > You could create a panel with a question and its answers. Then add
> > such a panel repeatedly, perhaps with a ListView.
> >
> > - Scott
> >
> >
> > On Nov 13, 2007 10:58 AM, Marco Aurélio Silva <ma...@gmail.com> wrote:
> > > Hi
> > >
> > > I need to add fields to a page dynamically. I neet do build something
> > like a
> > > survey where the questions and answers are stored on the database, so
> > they
> > > can be changed by the administrator.... because this I can't create
> the
> > > HTML file with the fields.... Is there a way to do this?
> > >
> > > Thank you
> > > Marco
> > >
> >
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>
Re: Add fields Dynamically
Posted by Marco Aurélio Silva <ma...@gmail.com>.
Thank you all! It works!
On Nov 13, 2007 4:53 PM, Nick Heudecker <nh...@gmail.com> wrote:
> Yeah, either way, this is readily solvable with panels and some form of
> repeater.
>
> On Nov 13, 2007 1:51 PM, Scott Swank <sc...@gmail.com> wrote:
>
> > You could create a panel with a question and its answers. Then add
> > such a panel repeatedly, perhaps with a ListView.
> >
> > - Scott
> >
> >
> > On Nov 13, 2007 10:58 AM, Marco Aurélio Silva <ma...@gmail.com> wrote:
> > > Hi
> > >
> > > I need to add fields to a page dynamically. I neet do build something
> > like a
> > > survey where the questions and answers are stored on the database, so
> > they
> > > can be changed by the administrator.... because this I can't create
> the
> > > HTML file with the fields.... Is there a way to do this?
> > >
> > > Thank you
> > > Marco
> > >
> >
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>
Re: Add fields Dynamically
Posted by Nick Heudecker <nh...@gmail.com>.
Yeah, either way, this is readily solvable with panels and some form of
repeater.
On Nov 13, 2007 1:51 PM, Scott Swank <sc...@gmail.com> wrote:
> You could create a panel with a question and its answers. Then add
> such a panel repeatedly, perhaps with a ListView.
>
> - Scott
>
>
> On Nov 13, 2007 10:58 AM, Marco Aurélio Silva <ma...@gmail.com> wrote:
> > Hi
> >
> > I need to add fields to a page dynamically. I neet do build something
> like a
> > survey where the questions and answers are stored on the database, so
> they
> > can be changed by the administrator.... because this I can't create the
> > HTML file with the fields.... Is there a way to do this?
> >
> > Thank you
> > Marco
> >
>
>
>
> --
> Scott Swank
> reformed mathematician
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com
Eventful - Intelligent Event Management
http://www.eventfulhq.com
Re: Add fields Dynamically
Posted by Scott Swank <sc...@gmail.com>.
You could create a panel with a question and its answers. Then add
such a panel repeatedly, perhaps with a ListView.
- Scott
On Nov 13, 2007 10:58 AM, Marco Aurélio Silva <ma...@gmail.com> wrote:
> Hi
>
> I need to add fields to a page dynamically. I neet do build something like a
> survey where the questions and answers are stored on the database, so they
> can be changed by the administrator.... because this I can't create the
> HTML file with the fields.... Is there a way to do this?
>
> Thank you
> Marco
>
--
Scott Swank
reformed mathematician
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org