Where the constructor change is in.
You could say this:
<span wicket:id="x" param1="y">Sample Text</span>
i guess you can then ask in the constructor the markup properties and ask for the attributes and you have youre value....
johan
On 4/8/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
We have contemplated on this (if you search the archives you will find the discussions) and IIRC found that this was an 'unholy' concept. As you will always have Java code matching 1-1 with your markup you can do this inside your Java program. Also, putting the parameter in the markup makes the value rather static. You can only change the value by editing the markup file, but not update it from a database or configuration file/JNDI.
We did try this and have removed it AFAIK.
In my opinion this is a sliding path towards markup scripting. You'll start 'configuring' your component in the markup, next thing is that you want to access the properties of the component from within your markup. From there on it is a small step to conditional markup and loop constructs in the markup. And that sounds a lot like JSP, doesn't it?
If that is what you want to do, then Wicket isn't your webapplication framework. You'll be better off with JSP or JSF.
Martijn
On 4/8/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote:Hi,
I'm new to wicket and have a simple question:
Is is possible to pass parameters to wicket components?
So something like:
<span wicket:id="helloWorld" myParamter="paramValue">Message goes
here</span>
I want to use the value of "myParameter" in my component to construct some
markup with it.
So how can I access it there?
Thanks
Bernhard
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user--
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org
