dynamic components

View: New views
7 Messages — Rating Filter:   Alert me  

dynamic components

by Gw-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi people,

Does anyone know how to dynamically add components to a form?
The types and numbers of the components are arbitrary, and will be
determined programmatically.
In one page, the form may contain 1 textbox, 2 buttons. In another page, it
may contain 2 textareas, 1 checkbox, and so on...

Perhaps there's a framework over Wicket for this?
Lots of thanks in advance for ur assist.

Regards,
Mike

Re: dynamic components

by James Carman-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What determines which components will be on the form?

On Sat, Nov 7, 2009 at 8:38 AM, Gw <not4spamming@...> wrote:

> Hi people,
>
> Does anyone know how to dynamically add components to a form?
> The types and numbers of the components are arbitrary, and will be
> determined programmatically.
> In one page, the form may contain 1 textbox, 2 buttons. In another page, it
> may contain 2 textareas, 1 checkbox, and so on...
>
> Perhaps there's a framework over Wicket for this?
> Lots of thanks in advance for ur assist.
>
> Regards,
> Mike
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: dynamic components

by Gw-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Let's say... an XML file containing screen configuration file will determine
the form's content.


On Sat, Nov 7, 2009 at 9:30 PM, James Carman
<jcarman@...>wrote:

> What determines which components will be on the form?
>
> On Sat, Nov 7, 2009 at 8:38 AM, Gw <not4spamming@...> wrote:
> > Hi people,
> >
> > Does anyone know how to dynamically add components to a form?
> > The types and numbers of the components are arbitrary, and will be
> > determined programmatically.
> > In one page, the form may contain 1 textbox, 2 buttons. In another page,
> it
> > may contain 2 textareas, 1 checkbox, and so on...
> >
> > Perhaps there's a framework over Wicket for this?
> > Lots of thanks in advance for ur assist.
> >
> > Regards,
> > Mike
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: dynamic components

by Pedro H. O. dos Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can build using repeaters, or an form with all possible form components
added on it, with they isVisible implementation returning true due
parameters you read in an xml

On Sat, Nov 7, 2009 at 11:38 AM, Gw <not4spamming@...> wrote:

> Hi people,
>
> Does anyone know how to dynamically add components to a form?
> The types and numbers of the components are arbitrary, and will be
> determined programmatically.
> In one page, the form may contain 1 textbox, 2 buttons. In another page, it
> may contain 2 textareas, 1 checkbox, and so on...
>
> Perhaps there's a framework over Wicket for this?
> Lots of thanks in advance for ur assist.
>
> Regards,
> Mike
>



--
Pedro Henrique Oliveira dos Santos

Re: dynamic components

by igor.vaynberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

this should give you a very decent starting point

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

-igor

On Sat, Nov 7, 2009 at 5:38 AM, Gw <not4spamming@...> wrote:

> Hi people,
>
> Does anyone know how to dynamically add components to a form?
> The types and numbers of the components are arbitrary, and will be
> determined programmatically.
> In one page, the form may contain 1 textbox, 2 buttons. In another page, it
> may contain 2 textareas, 1 checkbox, and so on...
>
> Perhaps there's a framework over Wicket for this?
> Lots of thanks in advance for ur assist.
>
> Regards,
> Mike
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: dynamic components

by Frank Silbermann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Create a panel with dummy components (e.g. Label components where the
label is an empty string).  Later you can "replace" one or more of the
components.

One complication is that some wicket components (e.g. Image) need to be
attached to specialized HTML.  However, the basic principle still
stands.

-----Original Message-----
From: Gw [mailto:not4spamming@...]
Sent: Saturday, November 07, 2009 7:38 AM
To: users@...
Subject: dynamic components

Hi people,

Does anyone know how to dynamically add components to a form?
The types and numbers of the components are arbitrary, and will be
determined programmatically.
In one page, the form may contain 1 textbox, 2 buttons. In another page,
it
may contain 2 textareas, 1 checkbox, and so on...

Perhaps there's a framework over Wicket for this?
Lots of thanks in advance for ur assist.

Regards,
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: dynamic components

by Gw-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, thanks for ur help, folks...
I'm currently looking at the WicketWebBeans project.
Seems promising on this issue.


On Sun, Nov 8, 2009 at 4:35 AM, Igor Vaynberg <igor.vaynberg@...>wrote:

> this should give you a very decent starting point
>
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-crud/
>
> -igor
>
> On Sat, Nov 7, 2009 at 5:38 AM, Gw <not4spamming@...> wrote:
> > Hi people,
> >
> > Does anyone know how to dynamically add components to a form?
> > The types and numbers of the components are arbitrary, and will be
> > determined programmatically.
> > In one page, the form may contain 1 textbox, 2 buttons. In another page,
> it
> > may contain 2 textareas, 1 checkbox, and so on...
> >
> > Perhaps there's a framework over Wicket for this?
> > Lots of thanks in advance for ur assist.
> >
> > Regards,
> > Mike
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>