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,
WicketApplication:
public static final String FOOTER_FILTER_NAME = "footerBucket";
@Override
protected void init() {
super.init();
...
setHeaderResponseDecorator(new IHeaderResponseDecorator() {
@Override
public IHeaderResponse decorate(IHeaderResponse response) {
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 con
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
---
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:
http://apache-wicket.1842946.n4.nabble.com/cleanup-form-values-and-feedback-messages-t
no, this is why page references were created
-igor
On Fri, Feb 11, 2011 at 10:01 AM, Alexander Morozov
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 advocated that passing p
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 a
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.
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 wrote:
> On Fri, 11 Feb 2011 11:51:12 +0100
> Carl-Eric Menzel wrote:
>
>> On Fri, 11 Feb 2011 11:06:0
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 wrote:
>
> I am using AjaxTabbedPanel , this tabbedpanel has 5 tabs , when user clicks
> on the 3rd tab I wa
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 wrote:
>
> Hello,
>
> I have simple program that
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:
http://apache-wicket.1842946.n4.nabble.com/add-java-script-on-load-of-ajax-tab-tp3301473p3301473
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 ...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://wicket.apache.org";>
On Fri, Feb 11, 2011 at 3:21 PM, Carl-Eric Menzel wrote:
> On Fri, 11 Feb 2011 11:51:12 +0100
> Carl-Eric Menzel wrote:
>
> > On Fri, 11 Feb 2011 11:06:09 +0100
> > Martijn Dashorst wrote:
> >
> > > The anon-inner class still keeps a reference to the previous page.
> >
> > Yes, I know, that's ho
It looks like WebMarkupContainer does not require ID at all. It
somehow unusuall
2011/2/11 Robert Dahlström :
> As far as I can tell yes. But maybe someone with better knowledge can
> enlighten us?
>
> /Robert
--
Best regards
Alex
-
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öm:
In the addToolbar() method you have:
WebMarkupContainer it
So, the "toolbar" id just droppped out? It is used only as a marker?
2011/2/11 Robert Dahlström :
> In the addToolbar() method you have:
> WebMarkupContainer item = new ToolbarContainer(container.newChildId());
>
> That's where the magic happens :)
>
> Regards
> Robert
--
Best regards
Alex
-
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 DataTab
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 wrote:
> Hi, u use this id to create an AbstractToolbar to be add to DataTable using
> one of its method like:
> DataTable#addTopToolba
On Fri, 11 Feb 2011 11:51:12 +0100
Carl-Eric Menzel wrote:
> On Fri, 11 Feb 2011 11:06:09 +0100
> Martijn Dashorst 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
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 wrote:
> Hello
>
> Recently I found public static final String TOOLBAR_COMPONENT_ID =
> "toolbar";
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: users
On Fri, 11 Feb 2011 11:06:09 +0100
Martijn Dashorst 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
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. y
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
wrote:
> On Fri, 11 Feb 2011 09:53:21 +0100
> Wilhelmsen Tor Iver wrote:
>
>> So the best is to create a proper class that is nested but not a
>> member class:
>>
>> pri
On Fri, 11 Feb 2011 09:53:21 +0100
Wilhelmsen Tor Iver 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. pageRef = pag
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 exten
> setResponsePage(new SomePage() {
> @Override protected void onPreviousButtonClicked() {
>setResponsePage(OriginalPage.this);
> }
>});
final PageReference pageRef = this.getPageReference();
setResponsePage(new SomePage() {
@Override protected void onPreviousButtonClicked() {
setRespon
On Thu, 10 Feb 2011 23:10:42 -0800
Igor Vaynberg 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
> instance of one page to
29 matches
Mail list logo