Conform http://www.w3schools.com/tags/tag_div.asp data-theme is not an HTML
attribute for the DIV element and I'm sure Wicket won't remove it for you.

I'm new to jQuery but I think this is something you should report to them
because it sounds as if once the element is hidden and then shown again it
might lose your data-theme attribute.

Anyhow, glad I could help you figure it out :)

~ Thank you,
  Paul Bors

-----Original Message-----
From: shimin_q [mailto:smq...@hotmail.com] 
Sent: Monday, December 10, 2012 3:14 PM
To: users@wicket.apache.org
Subject: RE: Styling lost when a component is set visible during AJAX call

The two divs are similar in the HTML:

<div data-role="fieldcontain" data-theme="b" wicket:id="profileTypeRow">

<div data-role="fieldcontain" data-theme="b" wicket:id="oxeNodeRow">

the data-theme attribute determines the style.

The wicket java code for the two divs are similar too, except the second div
was hidden, made visible later in an ajax onUpdate().



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-
set-visible-during-AJAX-call-tp4654656p4654668.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



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

Reply via email to