Tree with different BookmarkablePageLink per Node

2013-07-05 Thread Piratenvisier
What is the best way to build a nested Tree with different BookmarkablePageLinks per node? The best would be when I build the Foo node to give the information to build the BookmarkablePageLink. Who should know the different PageClasses? ---

Re: fault in tree view

2013-07-05 Thread Piratenvisier
forget my comments. The fault was that I filled the foos list in the Page. Am 05.07.2013 17:10, schrieb Piratenvisier: Hello Sven, In my adaption there is still a fault. When click on the link and come back I have two root nodes Regards Heiner Am 05.07.2013 16:59, schrieb Piratenvisier: Hello S

How can i render json into markup?

2013-07-05 Thread Per Newgro
Hi, i would like to include highcharts. I know there is a wicket module but we want to use the script. So my requirement is it to render the div below with the json content in it. Do i have to use a label and render body only? Or is there another way. I couldn't find any example for this. Th

Button tag

2013-07-05 Thread Jered Myers
I am looking at switching my submit buttons over to buttons. Is this safe to do in Wicket (e.g. my forms will still submit correctly, submit components don't have a onComponent tag that requires an input element)? I am supporting IE7 along with modern browsers. -- Jered Myers

Re: fault in tree view

2013-07-05 Thread Piratenvisier
Hello Sven, In my adaption there is still a fault. When click on the link and come back I have two root nodes Regards Heiner Am 05.07.2013 16:59, schrieb Piratenvisier: Hello Sven, I tested your tre application and my adaption with google chrome and it is ok. So I think its a problem of debian i

Re: fault in tree view

2013-07-05 Thread Piratenvisier
Hello Sven, I tested your tre application and my adaption with google chrome and it is ok. So I think its a problem of debian iceweasel Best regards Am 04.07.2013 21:13, schrieb Sven Meier: That's really strange, the tree looks fine here. Can you retry with a vanilla Firefox? Please clear the b

Re: fault in tree view

2013-07-05 Thread Piratenvisier
I am using debian sid iceweasel with wicket 6.9.0 I updated the System but the result was not better. public Component newContentComponent(String id, final AbstractTree tree, IModel can not be overridden because this is not an abstract method So I tried the following solution public class MyNe

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Martin Grigorov
No, at the moment. But I'll create a bigger demo application and will profile it with Google Chrome's dev tools. On Fri, Jul 5, 2013 at 3:40 PM, Sven Meier wrote: > Do you have an actual performance comparison between multiple ajax event > handlers and EventDelegatingBehavior? > > Sven > > > On

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
Do you have an actual performance comparison between multiple ajax event handlers and EventDelegatingBehavior? Sven On 07/05/2013 02:31 PM, Martin Grigorov wrote: On Fri, Jul 5, 2013 at 3:28 PM, Sven Meier wrote: There are few (identified) problems though: 1) if a child component is bound t

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Martin Grigorov
On Fri, Jul 5, 2013 at 3:28 PM, Sven Meier wrote: > >There are few (identified) problems though: > >1) if a child component is bound to an element then it will fire > non-Ajax request > > (because there is no JS binding that would usually prevent the default > behavior). > > Preventing the defau

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
>There are few (identified) problems though: >1) if a child component is bound to an element then it will fire non-Ajax request > (because there is no JS binding that would usually prevent the default behavior). Preventing the default should still work: http://www.bennadel.com/blog/1611-Prev

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Martin Grigorov
On Fri, Jul 5, 2013 at 1:08 PM, Sven Meier wrote: > I don't like this solution: > Me too. Otherwise it won't be in a branch .. > > - special features (e.g. optimization) should not be squeezed into core > (i.e. the need to change AjaxEventBehavior) > The need to change AEB is to tell it to no

Re: conditional component / as singleton on page

2013-07-05 Thread Martin Grigorov
On Fri, Jul 5, 2013 at 1:41 PM, Patrick Davids wrote: > Hi Sebastien, Hi Martin, > the dialog was just an example. > > My question was more focused on a feature similar to the javascript or > css resource "wicket feature". > Putting a resource only once into the page header no matter how many > co

Re: conditional component / as singleton on page

2013-07-05 Thread Patrick Davids
Hi Sebastien, Hi Martin, the dialog was just an example. My question was more focused on a feature similar to the javascript or css resource "wicket feature". Putting a resource only once into the page header no matter how many components "requested" to do that. But on component level. (I am i

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
I don't like this solution: - special features (e.g. optimization) should not be squeezed into core (i.e. the need to change AjaxEventBehavior) - it leaks when replacing/removing components - it doesn't work for all cases of event.target, e.g. AjaxEventBehavior is attached to a table row, but

Re: conditional component / as singleton on page

2013-07-05 Thread Sebastien
Hi Patrick, I am using the same approach as Martin. Just a little additional note: if you want to have only one dialog placeholder for different dialogs/purposes and as I am thinking you are using jQuery UI's dialog, I would suggest you to have a look at this issue for the dialog to open correctl

Re: conditional component / as singleton on page

2013-07-05 Thread Martin Grigorov
Hi, We use something similar for showing dialog/flyout. The component is always in the page, but it renders itself only when it has contents. You can put your component anywhere in the page hierarchy and use Wicket events to update it. On Fri, Jul 5, 2013 at 12:15 PM, Patrick Davids wrote: > Hi

Re: Problem with WiQuery Tab component after page reload

2013-07-05 Thread Stefan Renz
Hi, has no-one observed this yet? Shall I file an issue? Bye Stefan Stefan Renz wrote: > Hi, > > I've observed the following behavior with WiQuery's Tabs-component: > after reloading a page with a tabs component on it (or by navigating the > browser history), one can't switch the active tab

conditional component / as singleton on page

2013-07-05 Thread Patrick Davids
Hi all, does anyone have a best practice putting a component on a page (as singleton) independendly how many other components on that page "needs" it? e.g. a global dialog, which can be used from different components. Not to have 20 invisible dialogs aleady rendered and opened on request. In out

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Martin Grigorov
Hi, On Fri, May 3, 2013 at 11:42 AM, Martijn Dashorst < martijn.dasho...@gmail.com> wrote: > Would it be something for 7.x to make this more straightforward? Not sure > how to accomplish that from the top of my head, but it would be quite nice > to have this out-of-the-box. > I'm experimenting w

Re: AjaxFormComponentUpdatingBehavior( "change" ) on a DropDownChoice

2013-07-05 Thread lucast
Thank you, Martin. That seems to have done the trick. I would really like to found out why ajax functionality broke. The irritating bit is the fact I cannot even reproduce the bug on a stand-alone form. Everything else inside the AjaxFormComponentUpdatingBehavior.onUpdate() works. just target.add

Re: ConfirmAjaxFallbackLink with LoadableDetachableModel

2013-07-05 Thread Sven Meier
Hi, since the message is written into the HTML's javascript, you'll have to update the component to reflect a change: @Override public void onClick(AjaxRequestTarget target) { target.add(this); // re-render this link to have updated messag

Re: [ANNOUNCE] WicketStuff 6.*9*.0 is released

2013-07-05 Thread Sven Meier
Thanks Martin! Sven On 07/04/2013 10:13 PM, Martin Grigorov wrote: Hi, WicketStuff core 6.9.0 based on Apache Wicket 6.9.0 is released and shortly will be available in Maven Central. The changelog for this release is: svenmeier (8): new method #path() to get method invocation path wit

Re: AjaxFormComponentUpdatingBehavior( "change" ) on a DropDownChoice

2013-07-05 Thread Martin Grigorov
Hi, I'm not sure what is the reason for this problem but you can use AjaxLink instead if you don't need to submit the form and to processing it. On Fri, Jul 5, 2013 at 9:51 AM, lucast wrote: > Dear Forum, > > I have a drop down choice for populating form fields with default values. > > To ach