Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
Hi Sebastian, thanks for your help. Has that the method signature recently changed? The method #setPreventDefault is not available on the object #attributes. Link link = new AjaxFallbackLinkString(link) { @Override public void onClick(AjaxRequestTarget target) {

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Sebastien
Hi Chris, Yes, generally speaking, you have to cancel bubbling events to parent elements. For a [Ajax]Link (or any event-behavior related) you have to set the preventDefault property to true; protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Martin Grigorov
Hi, On Fri, Feb 6, 2015 at 10:13 PM, Chris chris...@gmx.at wrote: Hi Sebastian, thanks for your help. Has that the method signature recently changed? The method #setPreventDefault is not available on the object #attributes. Link link = new AjaxFallbackLinkString(link) {

Re: JSR356 Websocket with Wicket 6.18

2015-02-06 Thread Martin Grigorov
Done. https://github.com/wicketstuff/core/commit/bf312d35d6a3972b1bc625fca117e569daadcc65 It will be part of 6.19.0 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 28, 2015 at 6:16 PM, Martin Grigorov mgrigo...@apache.org wrote: Sorry but this won't be

Re: Removing table coloumn headers in wicket pageablelistview when list is empty

2015-02-06 Thread lucast
Hi K, If you want to hide the headers when the table is empty, you could use wicket:enclosure as suggested on the wicket guide https://wicket.apache.org/guide/guide/single.html#keepControl_9 . I have used the PagingPage from Wicket Examples (you can download it from Apache Wicket page) to

Re: Removing table coloumn headers in wicket pageablelistview when list is empty

2015-02-06 Thread K
Hi lucast Thanks for the response. i have tried the exact same thing and had success with it. Cheers On Fri, Feb 6, 2015 at 3:13 PM, lucast [via Apache Wicket] ml-node+s1842946n4669328...@n4.nabble.com wrote: Hi K, If you want to hide the headers when the table is empty, you could use

Can i render content (css) of ContextRelativeResource to markup?

2015-02-06 Thread Per Newgro
Hi, I like to render a PDF by my wicket page using flying-saucer. There i reference my css file by url (link). So far everything works. But if i switch to SSL flying-saucer breaks. Hmm. My solution to this issue would be to include content of my css file directly in the wicket-page used to

Re: Sortable - ConcurrentModificationException

2015-02-06 Thread Chris
I have fixed it - it was because of calling the method within the for loop. br, Chris Am 06.02.2015 um 17:56 schrieb Chris chris...@gmx.at: Hi Sebastian, I am using the method #ListUtils.move to sort a list of domain objects as soon as the method #onUpdate is called within a sortable

Re: Sortable - ConcurrentModificationException

2015-02-06 Thread Sebastien
Hi Chris, Right, you probably you can use an iterator instead of the foreach statement... Thanks for letting know you solved it! :) Best regards, Sebastien. On Fri, Feb 6, 2015 at 6:05 PM, Chris chris...@gmx.at wrote: I have fixed it - it was because of calling the method within the for loop.

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
Hi Sebastian, I would have a follow-up question regarding the #Sortable: Is it possible to add an AjaxLink to the item with its own behavior so that if the user clicks on this link, then its on-click behavior should be called instead of the #onselect method from the sortable. At the moment,

Wicket CDI and Asynchronous (and Websockets)

2015-02-06 Thread Sebastien
Dear all, In a usecase I've explained in a recent discussion [1], I would like to enhance it a little to finally obtain: 1/ An ajax button that launch 2/ 2/ A CDI injected EJB that executes an *asynchronous* time consuming operation 3/ Getting back to the wicket side to complete the ajax

Sortable - ConcurrentModificationException

2015-02-06 Thread Chris
Hi Sebastian, I am using the method #ListUtils.move to sort a list of domain objects as soon as the method #onUpdate is called within a sortable object: In the first request, everything is fine, but in the second request I am receiving following error: Root cause: