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
setResponsePage(new SomePage() {
@Override protected void onPreviousButtonClicked() {
setResponsePage(OriginalPage.this);
}
});
final PageReference pageRef = this.getPageReference();
setResponsePage(new SomePage() {
@Override protected void onPreviousButtonClicked() {
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
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.
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
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.
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
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:
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
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
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:
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
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
--
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
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
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
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
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:
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
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
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
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.
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
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
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:
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
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
WicketApplication:
public static final String FOOTER_FILTER_NAME = footerBucket;
@Override
protected void init() {
super.init();
...
setHeaderResponseDecorator(new IHeaderResponseDecorator() {
@Override
public IHeaderResponse decorate(IHeaderResponse response) {
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,
29 matches
Mail list logo