Re: handling non serializable objects

2015-05-03 Thread Chris
Hi Martin, In another panel of the same page, I have injected a service class via @Springbean and this service class implements „BeanFactoryAware“. As soon as a specific button in this panel is clicked, a method of this service class is called which creates A via beanFactory.getBean(„a", A.class

Resource link open in new window

2015-05-03 Thread Chris
Hi all, How is it possible to add a tag target=_blank to a resource link serving a pdf so that a click on this resource link opens a new browser window? Following code does not work:l ink.add(new AttributeAppender("onclick", new Model("alert('This is my JS script');"), ";")); Thanks Chris -

Re: Checking obscure serialization bugs during development

2015-05-03 Thread mscoon
Hi, it turns out that removing the session attribute as in Session().get(). removeAttribute("wicket:persistentPageManagerData - " + Application.get().getName()) does not work because the result is that no pages are ever retrieved. Instead you need to get the attribute, which is a PageStoreManager

Re: Checking obscure serialization bugs during development

2015-05-03 Thread mscoon
Heh, and a wrong carriage-return in the end makes me look like I'm trying to assume Martin's identity :) So anyway, thanks for the help Martin, as always you give very good guidance! Marios On Sun, May 3, 2015 at 7:01 PM, mscoon wrote: > Hi, > > it turns out that removing the session attribute

Re: Checking obscure serialization bugs during development

2015-05-03 Thread Martin Grigorov
Welcome, Marios! :-) On May 3, 2015 7:04 PM, "mscoon" wrote: > Heh, and a wrong carriage-return in the end makes me look like I'm trying > to assume Martin's identity :) > > So anyway, thanks for the help Martin, as always you give very good > guidance! > > Marios > > On Sun, May 3, 2015 at 7:01

JQuery progressbar

2015-05-03 Thread Chris
Hi all, how can the timer of the progress bar initialized, so that it does not start automatically and only after a Wicket event is received (e.g. button click in another component?) http://www.7thweb.net/wicket-jquery-ui/progressbar/DefaultProgressBarPage?5

Re: JQuery progressbar

2015-05-03 Thread Sebastien
Hi Chris, Actually progressbar does not hold a timer, its a separate AbstractAjaxTimerBehavior. You can extend the AbstractAjaxTimerBehavior to control the progressbar - like in the demo - and add this custom behavior only when you need it (button click for instance) Hope this helps, Sebastien

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi Sebastian, thanks - I will have a look at it. Currently, I would like to run the example, however, only the feedback panel is shown, but not the table. I have included the jquery-ui.css - what else might I be missing? Chris > Am 03.05.2015 um 20:44 schrieb Sebastien : > > Hi Chris, > >

Re: Resource link open in new window

2015-05-03 Thread Martin Grigorov
Hi, Add target="_blank" in the HTML. In Java make sure you use ContentDisposition=INLINE. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, May 3, 2015 at 2:42 PM, Chris wrote: > Hi all, > > How is it possible to add a tag target=_blank to a resource link se

Re: handling non serializable objects

2015-05-03 Thread Martin Grigorov
You can wrap it in a proxy yourself: A a = LazyInitProxyFactory.createProxy(A.class, new IProxyTargetLocator() { @Override public Object locateProxyTarget() {return beanFactory.getBean("a", A.class)} }); Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, May

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi, the theme.css was missing. I have put the progress bar in a panel and add the behavior to the form based on a wicket event (click button). How can I run the run the progress bar in parallel to some background process so that the panel gets updated and not waits until the page renders itself

Re: Resource link open in new window

2015-05-03 Thread Chris
Hi Martin, thanks - if the click is on a DIV element instead of a link, how can I add to the response a JS that the response should be opened in a new window? Chris > Am 03.05.2015 um 21:15 schrieb Martin Grigorov : > > Hi, > > Add target="_blank" in the HTML. > In Java make sure you use Con

Re: Resource link open in new window

2015-05-03 Thread Martin Grigorov
You should use window.open() instead. See org.apache.wicket.markup.html.link.Link#setPopupSettings Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, May 3, 2015 at 10:44 PM, Chris wrote: > Hi Martin, > > thanks - if the click is on a DIV element instead of a

User guide now under Git repository

2015-05-03 Thread Andrea Del Bene
Hi folks, in the last days we ported the user guide into the official Wicket Git repository. We have added a new sub project named wicket-user-guide containing the source documents of the guide. Now the entire documentation can be generated running the command 'mvn clean package -P guide' on

Re: Resource link open in new window

2015-05-03 Thread Chris
Hi Martin, do you mean using the popupsettings or directly some window.open js underneath? With following code a completely new page would open, I would prefer open a new tab. PopupSettings popupSettings = new PopupSettings(); popupSettings.setTarget("_blank"); resourceLink.setPopupSettings(popu

Re: User guide now under Git repository

2015-05-03 Thread Tobias Soloschenko
Hi, I just wanted to add that if changes are made of contributors it is required to think about the target branch. So if a feature is new to Wicket 7.x then change the corresponding 7.x branch (currently master) if the change belongs to 6.x and 7.x then change the gdoc in both branches. The d

Re: JQuery progressbar

2015-05-03 Thread Sebastien
Hi Chris, the background process should be asynchronous... On Sun, May 3, 2015 at 9:30 PM, Chris wrote: > Hi, > > the theme.css was missing. > > I have put the progress bar in a panel and add the behavior to the form > based on a wicket event (click button). > How can I run the run the progress

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi Sebastian, I will explain what I would like to achieve in more detail. Based on a component’s button click, panel A receives this event and adds a subpanel B with further information (an empty panel is replaced by subpanel B). However, it takes about 30 sec to load the model which is used b

Re: handling non serializable objects

2015-05-03 Thread Chris
Hi Martin, thanks for your answer. I am initializing 2 A’s and put them in a List. In the code below, I query for the index of an A in the current List ( aList.indexOf(a)). I am getting an error as the index cannot be retrieved (-1) based on the proxies. How can I retrieve the correct index (0

Re: JQuery progressbar

2015-05-03 Thread Sebastien
Hi Chris, One solution: If it is acceptable for you to replace the progress-bar by a spinner, then on-click you can add a AjaxLazyLoadPanel instance, which underneath loads subpanel b (#getLazyLoadComponent())... Hope this helps, Sebastien On Sun, May 3, 2015 at 11:37 PM, Chris wrote: > Hi Se

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi Sebastian, Thanks for your support! I am glad that you help me. I had a look at the spinner but this does not have the feature as the progress bar to automatically show some progress? The problem is that not only subpanel B uses the model (which takes lots of time) but also panel A (I am u

Re: JQuery progressbar

2015-05-03 Thread Sebastien
Hi Chris, I am not sure to see the end result of what you are trying to achieve... For me there is a difference between a background process that can take some/long time (and that can be controlled in several ways, like ajax timer or websockets) and the ajax load of a component/model which should

Re: JQuery progressbar

2015-05-03 Thread Chris
Hi Sebastian, I am using a heuristic for an optimization problem and this takes about 5-10 seconds. So it might be a good idea to use a future task to run this service, which receives the data (list of object) in the end. In the beginning, I would like to initialize the model with an empty list