Re: Dynamic Components

2013-02-12 Thread Decebal Suiu
Hi Can I see the code. The pastebin show me a Unknown Paste ID! message on link [1]. [1] http://pastebin.com/p4cSNsUw Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Components-tp4654308p4656289.html Sent from the Users forum mailing

Re: Dynamic Components

2013-02-12 Thread Bas Gooren
the code. The pastebin show me a Unknown Paste ID! message on link [1]. [1] http://pastebin.com/p4cSNsUw Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Components-tp4654308p4656289.html Sent from the Users forum mailing list archive

Re: Dynamic Components

2012-11-29 Thread Martin Grigorov
org.apache.wicket.Application#getComponentInitializationListeners to do the same. For example check that the component is a Page/Panel and has package name that is in your namespace. This mechanism results in the dynamic components being added within the onInitialize method and so the dynamic components' own

Re: Dynamic Components

2012-11-29 Thread Nick Pratt
The rendered component is in the current page, not in a dummy page, so everything works as expected. The only thing that doesn't work is a full re-render, since that requires a hook in the page markup, which does not exist (hence dynamic components). To circumvent that, the dynamic components

RE: Dynamic Components

2012-11-29 Thread Chris Colman
that the component is a Page/Panel and has package name that is in your namespace. Thanks Martin, I wasn't aware of that particular listener mechanism. This mechanism results in the dynamic components being added within the onInitialize method and so the dynamic components' own onInitialize

Dynamic Components

2012-11-28 Thread Nick Pratt
class citizens, would it be possible to create dynamic components in a Page, and store them in a non-markup related area of the Page, such that they would go through normal lifecycle events etc, and AJAX callbacks would work to the Page, but they wouldnt be associated with the normal markup/component

Re: Dynamic Components

2012-11-28 Thread Bas Gooren
re-render, since that requires a hook in the page markup, which does not exist (hence dynamic components). To circumvent that, the dynamic components are automatically removed on a full page re-render. Have a look at the code, maybe it helps you. It's rather simple when you think about

RE: Dynamic Components

2012-11-28 Thread Chris Colman
@wicket.apache.org Subject: Dynamic Components Martin The approach of adding the Sub/Details Panel to a DummyPage works fine for basic Panels, but there are a few problems I've hit: 1. onInitialize() isnt called - Im assuming this is because the Panel doesnt go through a normal lifecycle before being rendered

RE: Dynamic Components

2012-11-28 Thread Chris Colman
and Panel classes - but that's no problem and most Wicket apps probably already do this as it's an easy way to add styling, behaviour etc., across the entire app easily. This mechanism results in the dynamic components being added within the onInitialize method and so the dynamic components' own

RE: dynamic components

2009-11-08 Thread Frank Silbermann
. -Original Message- From: Gw [mailto:not4spamm...@gmail.com] Sent: Saturday, November 07, 2009 7:38 AM To: users@wicket.apache.org 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

dynamic components

2009-11-07 Thread Gw
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...

Re: dynamic components

2009-11-07 Thread James Carman
What determines which components will be on the form? On Sat, Nov 7, 2009 at 8:38 AM, Gw not4spamm...@gmail.com 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

Re: dynamic components

2009-11-07 Thread Gw
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 jcar...@carmanconsulting.comwrote: What determines which components will be on the form? On Sat, Nov 7, 2009 at 8:38 AM, Gw not4spamm...@gmail.com

Re: dynamic components

2009-11-07 Thread Pedro Santos
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 not4spamm...@gmail.com wrote: Hi people, Does anyone know how to dynamically add

Re: dynamic components

2009-11-07 Thread Igor Vaynberg
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 not4spamm...@gmail.com wrote: Hi people, Does anyone know how to dynamically add components to a form? The types

Insights on templating and dynamic components

2008-11-29 Thread Jan Kriesten
Hi, I just wrote up a bit on my quest to support dynamic wicket components from template generated markup code. You'll find it here, including (Scala) code: http://www.footprint.de/fcc/2008/11/some-wicket-scala/ It should be usable from Java as well, though! Have fun! Best regards, --- Jan.