Re: Loading wicket components from javascript

2011-07-24 Thread Martin Grigorov
On Sun, Jul 24, 2011 at 6:18 PM, Michael Petritsch wrote: > I am using this behaviour because I found an example for this. I don't > know if there is anything better. :) > > Ok, the problem is I have some javascript diagrams (from > http://highcharts.com/, don't want to advertise, but since you've

Re: Loading wicket components from javascript

2011-07-24 Thread Michael Petritsch
I am using this behaviour because I found an example for this. I don't know if there is anything better. :) Ok, the problem is I have some javascript diagrams (from http://highcharts.com/, don't want to advertise, but since you've asked ;)) that I use in our wicket app. and when I click on a part

Re: Loading wicket components from javascript

2011-07-24 Thread Martin Grigorov
On Sun, Jul 24, 2011 at 5:40 PM, Michael Petritsch wrote: > Yes, I removed the visibility related code and anything else for > simplicity and to focus on the actual problem. > > What I actually want to achieve is something like: > > public class MyPanel extends Panel { >  Panel myAjaxLoadedPanel;

Re: Loading wicket components from javascript

2011-07-24 Thread Michael Petritsch
Yes, I removed the visibility related code and anything else for simplicity and to focus on the actual problem. What I actually want to achieve is something like: public class MyPanel extends Panel { Panel myAjaxLoadedPanel; public MyPanel() { add(new AbstractDefaultAjaxBehavior() {

Re: Loading wicket components from javascript

2011-07-24 Thread Martin Grigorov
On Sun, Jul 24, 2011 at 5:10 PM, Michael Petritsch wrote: > I am using wicket 1.4.16, the markupplaceholder is there (checked with > firebug). > > I have also tried it with a simple visible label: > > public class MyPanel extends Panel { >  Label myUpdatedLabel; >  public MyPanel() { >    add(new

Re: Loading wicket components from javascript

2011-07-24 Thread Michael Petritsch
I am using wicket 1.4.16, the markupplaceholder is there (checked with firebug). I have also tried it with a simple visible label: public class MyPanel extends Panel { Label myUpdatedLabel; public MyPanel() { add(new AbstractDefaultAjaxBehavior() { @Override protec

Re: Loading wicket components from javascript

2011-07-17 Thread msj121
I am not sure if it is still true, but if you have the label added, just the visibility is false from the beginning, then in older versions of wicket it would not actually put the component, even the placeholder. I dealt with this before, but I think in newer versions presumably this was changed...

Re: Loading wicket components from javascript

2011-07-17 Thread Michael Petritsch
Thanks, gonna try this. I hope this also works for adding Components with subcomponents (e.g. Tables, Panels etc.) and I don't have to manually Wicket...appendChild() all the subcomponents in js. On Sun, Jul 17, 2011 at 5:38 PM, Bertrand Guay-Paquet wrote: > Hi, > > Have you seen > http://wicket

Re: Loading wicket components from javascript

2011-07-17 Thread Bertrand Guay-Paquet
Hi, Have you seen http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ ? I used this method to add form inputs via ajax. If I understand correctly what you want to do, you should be able to use this for adding labels. Bertrand On 17/07/2011 9:23 AM, Mich