Change the style of an already rendered wicket ModalWindow

2014-08-29 Thread Rim
I want to make modal window transprent (opacity:0.5) after a click event in
one of its buttons. 
So, i try by using :

window.add(AttributeAppender.append(style,color:red; font-weight:bold)); 
or 
window.setCssClassName(custom-modal);

But none of these solutions allows to apply the desired style.

Any help will be grateful!

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Change-the-style-of-an-already-rendered-wicket-ModalWindow-tp4667236.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Change the style of an already rendered wicket ModalWindow

2014-08-29 Thread Martin Grigorov
Hi,

You will need to repaint the ModalWindow to apply any UI changes.
Use target.add(window); for that.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Fri, Aug 29, 2014 at 11:00 AM, Rim lanouar@gmail.com wrote:

 I want to make modal window transprent (opacity:0.5) after a click event in
 one of its buttons.
 So, i try by using :

 window.add(AttributeAppender.append(style,color:red;
 font-weight:bold));
 or
 window.setCssClassName(custom-modal);

 But none of these solutions allows to apply the desired style.

 Any help will be grateful!

 Thanks

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Change-the-style-of-an-already-rendered-wicket-ModalWindow-tp4667236.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org