Re: Dynamic Components

2013-02-12 Thread Bas Gooren
Sure. After my original post we simplified the code a bit. This is the latest version we use in production. http://pastebin.com/WnxNVj2n This time I've set the paste to "never expire". Met vriendelijke groet, Kind regards, Bas Gooren Op 12-2-2013 20:57, schreef Decebal Suiu: Hi Can I see t

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 mailin

RE: Dynamic Components

2012-11-29 Thread Chris Colman
>> >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 back to

Re: Dynamic Components

2012-11-29 Thread Nick Pratt
This works great! Many thanks. I made a small addition to allow the markupId to be passed in via a new constructor - this is for the case where a JS component/lib creates new elements and inserts them into a specific place in the DOM - I pass the new ID back via an Ajax call, and then let the help

Re: Dynamic Components

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 7:00 AM, Chris Colman wrote: > >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

RE: Dynamic Components

2012-11-28 Thread Chris Colman
>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 back to the ART? >2. None of

RE: Dynamic Components

2012-11-28 Thread Chris Colman
I found a problem with the previous algorithm and fixed it. The problem involved Panel markup that contained some markup with wicket:id tags *outside* the element. These were resulting in components being added also but they shouldn't. I now add an extra check with a 'processing' semaphore tha

Re: Dynamic Components

2012-11-28 Thread Bas Gooren
Hi, We've written the following class to dynamically add components to a page and then render them in an ajax request: http://pastebin.com/p4cSNsUw 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: dynamic components

2009-11-08 Thread Gw
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 wrote: > this should give you a very decent starting point > > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/

RE: dynamic components

2009-11-08 Thread Frank Silbermann
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.

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 wrote: > Hi people, > > Does anyone know how to dynamically add components to a form? > The types and numbers of the c

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 wrote: > Hi people, > > Does anyone know how to dynamically add components to a form? > The

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 wrote: > What determines which components will be on the form? > > On Sat, Nov 7, 2009 at 8:38 AM, Gw wrote: > > Hi people, > > > > Does anyone know how

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 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 for