Hello,
I'm trying to load css files with ajax, but the problem is that the
rendering of the components are executed before the loading of the css
files.
This problem means that if I have to use styles in the component
updated, these styles are not executed, because when the component is
This doesn't really make sense. You can't create panel in the onClick
handler without placing it anywhere in page. You can either create the
panel in advance (and hide it) or create another component and replace
it by the new panel panel.
-Matej
Alberto Bueno wrote:
Hello,
I'm trying to
or have a listview. And switch contents of the collection, to make the correct
panel...
-Nino
Fra: [EMAIL PROTECTED] på vegne af Matej Knopp
Sendt: to 18-01-2007 15:43
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Problem adding css
The most important is not the example, the important is the concept. The
file is loaded after the rendering of the component.
Another example:
TogglePanePage.class
public class TogglePanePage extends WebPage
{
private static final long serialVersionUID = 1L;
private MyPanel panel =
We process the stylesheet reference before replacing elements. But what
we do is that we create a link element and add it to header (so the
browser is responsible for loading the stylesheet). The stylesheet
loading is asynchronous so it is possible that it gets loaded after the
component is