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 DropDownPaletteT extends FormComponentPanel { private static final String UNSELECTED_ID = unselected; private static final String SELECT_ACTION_ID = select; private static final String SELECTED_ID = selected;

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

Re: Session size vs detached models

2014-02-14 Thread Martin Grigorov
Hi, On Fri, Feb 14, 2014 at 3:55 PM, Daniel Stoch daniel.st...@gmail.comwrote: 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

Re: Session size vs detached models

2014-02-14 Thread Daniel Stoch
On Fri, Feb 14, 2014 at 4:12 PM, Martin Grigorov mgrigo...@apache.orgwrote: should be detached, so this last page reference should not hold transient LDM values. Is it true? LDM null-yfies its transien field explicitly:

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

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 ?

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) http://wicket.apache.org/guide/guide/forms2.html#forms2_8 . Before I submit the form, I would like to have the option of adding the content from

Re: techniques using of Form

2014-02-14 Thread lucast
Hi Farrukh, From existing literature (Wicket in Action, Apache wicket Cookbook, wicket guide http://wicket.apache.org/guide/guide/index.html ), 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 and

Re: techniques using of Form

2014-02-14 Thread Farrukh SATTOROV
thanks!, Lucas On Fri, Feb 14, 2014 at 9:23 PM, lucast lucastol...@hotmail.com wrote: Hi Farrukh, From existing literature (Wicket in Action, Apache wicket Cookbook, wicket guide http://wicket.apache.org/guide/guide/index.html ), there are a number of ways you can go about it. You can

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 span wicket:id=mainNavigation/. How HelloWorld.html works without extend/extend while id mainNavigation located in superclass (WicketExamplePage). Explain to me mechanism of looking for

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.

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

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 lucastol...@hotmail.com: Dear forum, I have implemented a FormComponentPanel as suggested

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: 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 wicket:extend

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,

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

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 pdief...@csc.com 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