Oh sorry, on the forum I used the "raw" tag and it looks good. What should I
actually use ?
I added spaces, hope it works.
Hello everybody,
I am starting a wicket project for the first time, and I created a button
made of 3 images with html css. Here is my html :
< button class="buttonLeft">
< span class="buttonRight">
< span class="buttonMid">
my text
< /span>
< /span>
< /button>
I want this button to be disableable. In Java, I only declare 1 AjaxButton,
which is linked to the button tag. When I use setEnabled(false), it only
adds the disabled tag to the button tag. I would need to add the disabled
tag to the 2 other spans.
While searching for an answer, I realized I could either create a custom
component or add a behavior to automatically add the markup necessary to
create this button. Thus, in my html I would only write :
< button wicket:id="myId">
< wicket:message key="button.text">< /wicket:message>
< /button>
And all the class and span stuff would be added by wicket.
However I have no idea how to do that. beforeRender and afterRender add
markup before and after if I understood correctly, and onComponentTag adds
attributes.
It would be great if you could provide links or hints on how to do that.
Thanks in advance.
Florian
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Button-with-3-images-and-issues-tp4082830p4090888.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]