You could overwrite onComponentTag on your component and change the
element type there based on enabled status. just make sure to call
super first. Note that this tick might not work for some components as
they require a certain html tag but i think button will be fine.
Maurice
On Sun, Mar 30, 20
Hi,
I am using behaviors for beforeRender and onRender to add html markups.
private void init() {
add(HeaderContributor.forCss(MyButton.class, "MyButton.css"));
add(new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override
wfaler wrote:
Hi,
Is it possible to change the default html-template file loaded for a class
programmatically (for instance, changing from a classpath file, to a file in
another file-directory)?
For instance, if I want to change the underlying html-template on the fly,
but keeping the same compon
?
Regards
Wille
--
View this message in context:
http://www.nabble.com/Changing-html-template-programmatically--tf4529206.html#a12923955
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail