[Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Hi, I have a Panel and I want to change it's markup according to values specified at the tag using the panel: div wicket:id=myPanel myValues=showLeft showRight The class MyPanel should read the attribute myValues and use the values as model inside the panel, for instance show/hide some

Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread Eelco Hillenius
Override onComponentTag in your component and get the values with tag.getAttributes(). In Wicket 2.0, you can even do getMarkupAttributes right in your component's constructor. Eelco On 7/24/06, jan_bar [EMAIL PROTECTED] wrote: Hi, I have a Panel and I want to change it's markup according

Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Thanks Eelco for you quick support. Jan Eelco Hillenius [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Override onComponentTag in your component and get the values with tag.getAttributes(). In Wicket 2.0, you can even do getMarkupAttributes right in your component's constructor.