Re: Leaving page after closing modal results in browser pop up

2014-02-14 Thread Ernesto Reinaldo Barreiro
Hi, Did you try ModalWindow#showUnloadConfirmation? On Fri, Feb 14, 2014 at 11:03 PM, PDiefent wrote: > Hi, > with the current Wicket 6.13.0 I got a new problem. When leaving a page > after openin a modal window results in a browser pop up where I have to > confirm leaving the page. If I leave

Jetty, Wicket and getting live JavaScript changes?

2014-02-14 Thread tertioptus
I use Jetty, maven and Eclipse. *What's the best way for me to have Jetty pick up my changes from a JavaScript file not in the war project?* Currently, I have clean install both projects and then restart jetty to see changes. I am assuming this is common among Wicket users with the advent of com

Leaving page after closing modal results in browser pop up

2014-02-14 Thread PDiefent
Hi, with the current Wicket 6.13.0 I got a new problem. When leaving a page after openin a modal window results in a browser pop up where I have to confirm leaving the page. If I leave the page without opening the modal window the browser doesn't request a confirmation. Any suggestions? Thanks, P

Re: understanding looking for wicket:id

2014-02-14 Thread Richter, Marvin
That is definitely not a good way to do inheritance. This way you force everyone who extends from MyBasePage to know that he has to have a tag in his markup file with a wicket:id he might not know. The right way would be to have a markup file for MyBasePage.java and include the tag. MyBasePag

Re: understanding looking for wicket:id

2014-02-14 Thread Farrukh SATTOROV
my code work, if by definition each WebPage and Panel must have own markup ? MyBasePage.java: public class MyBasePage extends WebPage { public MyBasePage() { add(new MyPanel("panel")); } } no MyBasePage.html, i remove it. SubPage.java: public class SubPage extends MyBasePage { public SubPage()

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread Richter, Marvin
Why wouldn’t you just use the defaultFormProcessing an add the converted value of the FormComponentPanel to the list inside your onSubmit method? Best, Marvin Am 14.02.2014 um 18:14 schrieb lucast : > Dear forum, > > I have implemented a FormComponentPanel as suggested both in the Apache > Wi

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread Sven Meier
FormComponentPanel.getConvertedInput(), which in turns calls FormComponentPanel.convertInput(). Not true. See FormComponentPanel#onEvent() on how to properly process a single FormComponent. Regards Sven On 02/14/2014 06:14 PM, lucast wrote: Dear forum, I have implemented a FormComponent

Re: understanding looking for wicket:id

2014-02-14 Thread Sven Meier
With a wicket:id declared in Html markup, a corresponding component with the same id has to present as child. It doesn't matter when the child component is added: in the constructor or one of its super constructors (or even later). This does not have anything to do with markup inheritance. Ho

understanding looking for wicket:id

2014-02-14 Thread Farrukh SATTOROV
Hi everyone. I confused when i look to standard wicket heloworld example and try understanding snippet of . How HelloWorld.html works without while id mainNavigation located in superclass (WicketExamplePage). Explain to me mechanism of looking for wicket:id in this case.

Re: techniques using of Form

2014-02-14 Thread Farrukh SATTOROV
thanks!, Lucas On Fri, Feb 14, 2014 at 9:23 PM, lucast wrote: > Hi Farrukh, > From existing literature (Wicket in Action, Apache wicket Cookbook, wicket > guide ), there are a > number of ways you can go about it. > > You can put your form in

Re: techniques using of Form

2014-02-14 Thread lucast
Hi Farrukh, >From existing literature (Wicket in Action, Apache wicket Cookbook, wicket guide ), there are a number of ways you can go about it. You can put your form in a panel, have a submit once form (to prevent multiple submits) as template a

getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread lucast
Dear forum, I have implemented a FormComponentPanel as suggested both in the Apache Wicket Cookbook (chapter 2) and wicket guide (chapter 12.8) . Before I submit the form, I would like to have the option of adding the content from Form

techniques using of Form

2014-02-14 Thread Farrukh SATTOROV
What is best practices to flexible use of Form: to do external subclass MyForm, to do as instance MyForm inside Panel constructor or inner class of MyForm inside Panel class ?

factory method to create the DataGridView in DataTable

2014-02-14 Thread Dirk Germonpré
Hello, I'm using the latest Wicket version (6). I would like to see a factory method to create the DataGridView (org.apache.wicket.extensions.markup.html.repeater.data.grid) in DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table). I need this to be able to override some metho

Re: Session size vs detached models

2014-02-14 Thread Daniel Stoch
On Fri, Feb 14, 2014 at 4:12 PM, Martin Grigorov wrote: > > > should be detached, so this last page reference should not hold transient > > LDM values. Is it true? > > > > LDM null-yfies its transien field explicitly: > > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/a

Re: Session size vs detached models

2014-02-14 Thread Martin Grigorov
Hi, On Fri, Feb 14, 2014 at 3:55 PM, Daniel Stoch wrote: > Hi, > > In Wicket 1.4 the last page reference is hold in a session (is it in 6.x > also?). So after a request has been processed all components and models > Yes. A live instance of the last used page is kept in the http session. Actually

Session size vs detached models

2014-02-14 Thread Daniel Stoch
Hi, In Wicket 1.4 the last page reference is hold in a session (is it in 6.x also?). So after a request has been processed all components and models should be detached, so this last page reference should not hold transient LDM values. Is it true? When we are using DebugBar with SessionSizeDebugPa

Re: Hybrid palette with DropDownChoice and ListView

2014-02-14 Thread ChambreNoire
OK so this is what I have so far. Seems to work OK. public class DropDownPalette extends FormComponentPanel { private static final String UNSELECTED_ID = "unselected"; private static final String SELECT_ACTION_ID = "select"; private static final String SELECTED_ID = "selected"; pr