ModalWindow - full screen

2014-10-14 Thread Marieke Vandamme
Hi, I know you can set initial width and height for a modalwindow, but we now get the requirement to open it full screen. Is this something built in already, or has somebody done this before? Thanks ! Kind Regards, Marieke Vandamme -- DISCLAIMER

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Hi, Here is a demo app with Wicket 6.x: https://github.com/martin-g/component-rendering-default Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Oct 13, 2014 at 6:13 PM, Martin Grigorov mgrigo...@apache.org wrote: Here is a possible solution *now*:

Re: ModalWindow - full screen

2014-10-14 Thread Martin Grigorov
Hi, With #setCssClassName() ( https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java#L513) you can set your custom CSS class that should be applied on the main modal window div element. In your own .css

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Ernesto Reinaldo Barreiro
Thanks! Whose PortletLike on https://github.com/martin-g/component-rendering-default/blob/master/src/main/java/com/mycompany/HomePage.java? PanelA? On Tue, Oct 14, 2014 at 9:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Here is a demo app with Wicket 6.x:

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Hi Ernesto, I didn't get the question. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 14, 2014 at 1:10 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks! Whose PortletLike on

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Ernesto Reinaldo Barreiro
Martin, PortletLike b = new PortletLike(b, Model.of(panel b))... I can't see a PortletLike... on same package. Maybe a good way to use the behavior is: 1- Roll a PorletLikeBehavior. and an Interface IPorletLike { CharSequence getOnFailContents(); } to mark porlet like components. 2- Add a

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Oops. It seems PortletLike (a copy of PanelA with an exception in the rendering of its Label child) hasn't be added to Git ... I've refactored it even further. But as you can see the default rendering of a component should be suppressed (PortletLike#onRender() {}) so it is not enough just to have

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Ernesto Reinaldo Barreiro
It is already good for people wanting/needing to use it :-) Is there any other way to hook into onRender? Any way to avoid onRender being called via a global listener? If component is intanceof Bla don't call onRender? On Tue, Oct 14, 2014 at 10:47 AM, Martin Grigorov mgrigo...@apache.org wrote:

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Ernesto Reinaldo Barreiro
it seems no :-( On Tue, Oct 14, 2014 at 11:16 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: It is already good for people wanting/needing to use it :-) Is there any other way to hook into onRender? Any way to avoid onRender being called via a global listener? If component is

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Tobias Gierke
Hi, Oops. It seems PortletLike (a copy of PanelA with an exception in the rendering of its Label child) hasn't be added to Git ... I've refactored it even further. But as you can see the default rendering of a component should be suppressed (PortletLike#onRender() {}) so it is not enough just

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Tobias Gierke
Sorry for the noise, I should've read your e-mail more thorougly :( But as you can see the default rendering of a component should be suppressed (PortletLike#onRender() {}) so it is not enough just to have the behavior. I'll fix my implementation and try again. Cheers, Tobias

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
Hi, isVisible() is called at many places in Wicket. It is not easy to try/catch it. I've updated (locally) the demo app and with 6.x it breaks with: java.lang.RuntimeException: Problem in #isVisible at com.mycompany.HomePage$2.isVisible(HomePage.java:35) at

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Tobias Gierke
Hi, I've just come to the same conclusion. And I don't really like the fact that every component that needs to be rendered in a 'fail-safe' way also has to override onRender() with an empty implementation. To me this 'fail-safe rendering' looks more like a cross-cutting concern that

Re: Returning some default markup when rendering of a component (subtree) fails with a RuntimeException ?

2014-10-14 Thread Martin Grigorov
I'll play some more with this. At the moment I think it will be much easier if Behavior#onException() can return a result saying I can deal with the problem and Wicket just continue with the rendering of the other components pretending that nothing bad happened so far. But any API changes would

WICKET-5727: PageAccessSynchronizer$PageLock.waitForRelease problem with opening pdf files

2014-10-14 Thread Marieke Vandamme
Hi, On this jira issue we got some directions on how to solve our problems, but some things aren't clear yet. *then use a AjaxTimerBehavior to monitor progress, and redirect to a ResourceReference once the thread is done.* How is it possible to redirect to ResourceReference in onTimer function of

Re: WICKET-5727: PageAccessSynchronizer$PageLock.waitForRelease problem with opening pdf files

2014-10-14 Thread Martin Grigorov
Hi, On Tue, Oct 14, 2014 at 3:36 PM, Marieke Vandamme marieke.vanda...@tvh.com wrote: Hi, On this jira issue we got some directions on how to solve our problems, but some things aren't clear yet. *then use a AjaxTimerBehavior to monitor progress, and redirect to a ResourceReference once