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
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
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
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
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
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-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
@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
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
.
-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
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...
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
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
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
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
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.
16 matches
Mail list logo