Re: Remove 'wicket' in URL

2015-04-21 Thread Martin Grigorov
Hi, It is possible only if you provide your own implementations of BookmarkableMapper and PageInstanceMapper. These mappers are installed by Wicket and used only if there are no more specific mappers installed by the application. It will be much easier for you to just change 'wicket' to something

Re: How to close a ModalWindow without AjaxRequestTarget

2015-04-21 Thread Ernesto Reinaldo Barreiro
AjaxButton should be fine... by overriding protected void onSubmit(AjaxRequestTarget target, Form form) { } /** * Listener method invoked on form submit with errors * * @param target * @param form */ protected void onError(AjaxRequestTarget target, Form form) { } On Tue, Apr 21, 2015 at 8:0

Re: How to close a ModalWindow without AjaxRequestTarget

2015-04-21 Thread Ulrich
For the sample I have two buttons to show the coding and to see the results of either of them. I have no problem closing the window with using AjaxSubmitLink - I don't know how to display the message. Maybe it's easier to see with the complete program: -- View this message in context: http://a

Re: How to close a ModalWindow without AjaxRequestTarget

2015-04-21 Thread Martin Grigorov
Hi, Please read http://wicket.apache.org/guide/guide/ajax.html#ajax_3 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 10:33 AM, Ulrich wrote: > For the sample I have two buttons to show the coding and to see the results > of either of them.

Re: How to close a ModalWindow without AjaxRequestTarget

2015-04-21 Thread Ulrich
Thanks a lot; that solved it. JAVA now (to supply the resuolution for others): -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-close-a-ModalWindow-without-AjaxRequestTarget-tp4670429p4670439.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Remove 'wicket' in URL

2015-04-21 Thread Chris
Thanks! > Am 21.04.2015 um 09:02 schrieb Martin Grigorov : > > Hi, > > It is possible only if you provide your own implementations of > BookmarkableMapper and PageInstanceMapper. > These mappers are installed by Wicket and used only if there are no more > specific mappers installed by the appli

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
Andrew, thanks a lot! How could I in addition check if Javascript is enabled so that I can add a default Panel in case if it is not enabled? The following 2 lines do not work as it returns false although JS is enabled. WebClientInfo clientInfo = WebSession.get().getClientInfo(); if (clientInfo

Re: AjaxLazyLoadPanel

2015-04-21 Thread Martin Grigorov
Java != JavaScript If BrowserInfoPage has set the ClientInfo properties then JavaScript is enabled Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 2:09 PM, Chris wrote: > Andrew, thanks a lot! > > How could I in addition check if Javascript

Re: Remove 'wicket' in URL

2015-04-21 Thread Martin Grigorov
Or just mount all your pages. This way you won't see /wicket/bookmarkable/... or /wicket/page?3 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 2:06 PM, Chris wrote: > Thanks! > > > > Am 21.04.2015 um 09:02 schrieb Martin Grigorov : > > > >

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
Hi, could you give a small example how to reference the BrowserInfoPage? thanks > Am 21.04.2015 um 13:39 schrieb Martin Grigorov : > > Java != JavaScript > > If BrowserInfoPage has set the ClientInfo properties then JavaScript is > enabled > > Martin Grigorov > Wicket Training and Consulting >

Re: AjaxLazyLoadPanel

2015-04-21 Thread Martin Grigorov
http://www.wicket-library.com/wicket-examples-6.0.x/hellobrowser/ shows it https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/hellobrowser Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 21, 2015 at 3:21

Re: AjaxLazyLoadPanel

2015-04-21 Thread Chris
Hi Martin, thanks for your help. I would have a follow-up question: I have disabled Javascript in Firefox and inserted following code below but nevertheless, the page does not display "If you see this, it means that both javascript and meta-refresh are not support by your browser configuration.

Access the row index in an AbstractColumn?

2015-04-21 Thread Stefan Renz
Hi, my client asked me to implement a simple row numbering in a data table. What I have is a Panel with a DataTable, with a varying number of IColumns. I thought that I could add such a row number column implementation in virtually no time, but it turns out that the index returned by populateItem'

Re: Access the row index in an AbstractColumn?

2015-04-21 Thread Andrew Geery
See http://apache-wicket.1842946.n4.nabble.com/DataTable-how-to-make-a-column-showing-the-row-number-td1855450.html : public void populateItem(Item cell, String compId, IModel rowModel) { item.getindex() is cell, ((item)item.getparent()).getindex() is row On Tue, Apr 21, 2015 at 2:35 PM, Stefan R

Re: Access the row index in an AbstractColumn?

2015-04-21 Thread Stefan Renz
Hi Andrew, many thanks for the pointer. It's actually ((Item)cellItem.getParent().getParent()).getIndex() as mentioned in the nabble thread. I never would have guessed ;-) Thanks again very much. Bye, Stefan Andrew Geery wrote: > See > http://apache-wicket.1842946.n4.nabble.com/DataTable

Submitlink + PageParameters

2015-04-21 Thread Chris
Hi all, would it be possible when having a submit link and a form+post, to nevertheless transfer the page parameters in the url? Something like action=„…?parameter=value" Thanks, Chris - To unsubscribe, e-mail: users-unsubsc

Storing data in wicket session

2015-04-21 Thread Chris
Hi all, I need so share a list of strings between some objects during a session; Within the session, the list of strings will be deleted based on specific requests. Currently, I store them in the page but the disadvantage of this approach is that I have to delegate the list to each sub(sub)comp

Browser back - reload page/panel

2015-04-21 Thread Chris
Hi all, how is it possible to refresh a page or panel on browser back? If the user deletes an item and clicks on browser back to go to the last page, it is still displayed which should not be the case. Thanks a lot, Chris - To

Re: Browser back - reload page/panel

2015-04-21 Thread Martin Grigorov
Hi, Wicket disables caching for the pages [1] so going back will make a request for re-render. You should use dynamic models [2] to re-render the latest state. 1. https://github.com/apache/wicket/blob/822a1693c2d017478613321ae6fce40d519b24fa/wicket-core/src/main/java/org/apache/wicket/markup/htm

Re: Storing data in wicket session

2015-04-21 Thread Martin Grigorov
Hi, On Wed, Apr 22, 2015 at 4:48 AM, Chris wrote: > Hi all, > > I need so share a list of strings between some objects during a session; > Within the session, the list of strings will be deleted based on specific > requests. > > Currently, I store them in the page but the disadvantage of this ap