Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Thu, 10 Feb 2011 23:10:42 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: the problem is indeed that you are sharing state between pages which is not allowed. you are doing it via one page passing in an anonymous SelectionCallback to another page, which is the same as passing in an

RE: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Wilhelmsen Tor Iver
setResponsePage(new SomePage() { @Override protected void onPreviousButtonClicked() { setResponsePage(OriginalPage.this); } }); final PageReference pageRef = this.getPageReference(); setResponsePage(new SomePage() { @Override protected void onPreviousButtonClicked() {

The disabling of sessions during a datastore down-time period

2011-02-11 Thread Ian Marshall
Hello All, I am developing an application which runs on Google App Engine (GAE). I have my persistent datastore such that every so often there are scheduled down-times, during which nothing can be persisted to the datastore without an error being thrown. Currently, my web application class

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 09:53:21 +0100 Wilhelmsen Tor Iver toriv...@arrive.no wrote: So the best is to create a proper class that is nested but not a member class: private static class BackSomePage { private PageReference pageRef; public BackSomePage(PageReference pageRef) { this.

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Martijn Dashorst
The anon-inner class still keeps a reference to the previous page. Martijn On Fri, Feb 11, 2011 at 10:59 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 09:53:21 +0100 Wilhelmsen Tor Iver toriv...@arrive.no wrote: So the best is to create a proper class that is nested

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Daniel Soneira
To return the data via JavaScript / JSON only was on my TODO list anyway. I guess now is the time to put it into practice. Thanks for confirming that. Cheers, Daniel On 11.02.2011 08:10, Igor Vaynberg wrote: the problem is indeed that you are sharing state between pages which is not allowed.

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 11:06:09 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: The anon-inner class still keeps a reference to the previous page. Yes, I know, that's how anonymous classes work. I don't understand why that is now a problem though. It has worked well so far. Carl-Eric

DataTable and toolbar

2011-02-11 Thread Alex Shubert
Hello Recently I found public static final String TOOLBAR_COMPONENT_ID = toolbar; in DataTable sources but can't find such ID in markups. How exactly does it works? Thanks -- Best regards Alex - To unsubscribe, e-mail:

Re: DataTable and toolbar

2011-02-11 Thread Pedro Santos
Hi, u use this id to create an AbstractToolbar to be add to DataTable using one of its method like: DataTable#addTopToolbar DataTable#addBottomToolbar On Fri, Feb 11, 2011 at 11:08 AM, Alex Shubert alex.shub...@gmail.comwrote: Hello Recently I found public static final String

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Carl-Eric Menzel
On Fri, 11 Feb 2011 11:51:12 +0100 Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 11:06:09 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: The anon-inner class still keeps a reference to the previous page. Yes, I know, that's how anonymous classes work. I

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
Sure thing, but how exactly does it works if there are no such ID in html markup for DataTable? =) This was the question. On 11 February 2011 16:18, Pedro Santos pedros...@gmail.com wrote: Hi, u use this id to create an AbstractToolbar to be add to DataTable using one of its method like:

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert On 02/11/2011 02:26 PM, Alex Shubert wrote: Sure thing, but how exactly does it works if there are no such ID in html markup for

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
So, the toolbar id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlström robert.dahlst...@bwin.org: In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert --

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert On 02/11/2011 02:38 PM, Alex Shubert wrote: So, the toolbar id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlströmrobert.dahlst...@bwin.org: In the addToolbar() method you

Re: DataTable and toolbar

2011-02-11 Thread Alex Shubert
It looks like WebMarkupContainer does not require ID at all. It somehow unusuall 2011/2/11 Robert Dahlström robert.dahlst...@bwin.org: As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert -- Best regards Alex

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Martin Grigorov
On Fri, Feb 11, 2011 at 3:21 PM, Carl-Eric Menzel cmen...@wicketbuch.dewrote: On Fri, 11 Feb 2011 11:51:12 +0100 Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 11:06:09 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: The anon-inner class still keeps a

Refreshing listview using AJAX

2011-02-11 Thread chechaquo
Hello, I have simple program that should search in db by user's name and show the result in table, but it doesn't work ... ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

add java script on load of ajax tab

2011-02-11 Thread fachhoch
I am using AjaxTabbedPanel , this tabbedpanel has 5 tabs , when user clicks on the 3rd tab I wanted to render some java script , please tell me how can I do this . -- View this message in context:

Re: Refreshing listview using AJAX

2011-02-11 Thread Pedro Santos
You are trying to add an not visible component in AJAX request target, make sure it has its markup id at browser to be recreated, you can call tableContainer.setOutputMarkupPlaceholderTag to ensure that. On Fri, Feb 11, 2011 at 1:16 PM, chechaquo buchi...@gmail.com wrote: Hello, I have

Re: add java script on load of ajax tab

2011-02-11 Thread Pedro Santos
You can override AjaxTabbedPanel#onAjaxUpdate, test the selectedTab property, if it is the index you want, append the javascript to target object On Fri, Feb 11, 2011 at 1:37 PM, fachhoch fachh...@gmail.com wrote: I am using AjaxTabbedPanel , this tabbedpanel has 5 tabs , when user clicks on

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Igor Vaynberg
starting with 1.4 we have advocated that passing page instances to other pages is a bad idea, whether directly or via anonymous classes. -igor On Fri, Feb 11, 2011 at 5:21 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 11:51:12 +0100 Carl-Eric Menzel

Re: Refreshing listview using AJAX

2011-02-11 Thread chechaquo
Thanks Pedro, worked like a charm! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-listview-using-AJAX-tp3301427p3301602.html Sent from the Users forum mailing list archive at Nabble.com.

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Alexander Morozov
What about passing page _references_ to other pages ? Are there any reefs here ? Thanks Igor Vaynberg-2 wrote: starting with 1.4 we have advocated that passing page instances to other pages is a bad idea, whether directly or via anonymous classes. -igor On Fri, Feb 11, 2011 at 5:21

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Igor Vaynberg
no, this is why page references were created -igor On Fri, Feb 11, 2011 at 10:01 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: What about passing page _references_ to other pages ? Are there any reefs here ? Thanks Igor Vaynberg-2 wrote: starting with 1.4 we have

Re: cleanup form values and feedback messages

2011-02-11 Thread Gabriel Landon
Maybe you should refresh your form with ajax : target.addComponent(form) The fonction clearInput() is for a FormComponent. Also you'd better use a model to handle your input. -- View this message in context:

usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-11 Thread Zilvinas Vilutis
Could anyone please explain how to use the JavascriptFilteredIntoFooterHeaderResponse, as the Javadoc says smth about what I actually need... Thank you! Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com

Generic Search Form Results Display

2011-02-11 Thread Joe Eckard
Hi, I am new to wicket and I'm having trouble determining the correct way to implement a generic search page. I created a page that contains a custom form panel for the search parameter input, and a DataTable for displaying the results. The DataTable uses a custom DataProvider which takes a

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-11 Thread Alexander Morozov
WicketApplication: public static final String FOOTER_FILTER_NAME = footerBucket; @Override protected void init() { super.init(); ... setHeaderResponseDecorator(new IHeaderResponseDecorator() { @Override public IHeaderResponse decorate(IHeaderResponse response) {

Re: Generic Search Form Results Display

2011-02-11 Thread Igor Vaynberg
class searchpage extends webpage { private string keywords; private class provider implements idataprovider { iterator(...) { return service.search(keywords).iterator(); } } public searchpage() { form f=new form(...); f.add(new textfield(keywords, new propertymodel(this,