Hi Marek, Why are you not using #setVisible(boolean)? BTW. Instead of creating new AttributeModifier you can use its static methods.
Best regards, MichaĆ > -----Original Message----- > From: Marek Miglinski [mailto:[email protected]] > Sent: Monday, December 17, 2012 15:06 > To: [email protected] > Subject: problem hiding td element > > I have two elements in table: > > 1. <th id="statusHeader" style="display:block;">Status</th> > > 2. <td id="statusContainer" style="display:block;"><span > wicket:id="status"> enabled</span></td> > > > And I want to hide them by default, so what I do is: > > new WebMarkupContainer("statusContainer").add(new > AttributeModifier("style", true, new Model<String>("display:none;"))); > > new WebMarkupContainer("statusHeader").add(new > AttributeModifier("style", true, new Model<String>("display:none;"))); > > > But I still see those elements, what am I doing wrong? > > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
