Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Eelco Hillenius
now we're going to build s.th. like a shop and i'm looking for A Thai site? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No

Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Martin Grotzke
On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote: now we're going to build s.th. like a shop and i'm looking for A Thai site? hm? a thai site? what do you mean? cheers, martin Eelco - This SF.net email is

Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Eelco Hillenius
On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote: now we're going to build s.th. like a shop and i'm looking for A Thai site? hm? a thai site? what do you mean? Was a joke. You said 's.th' and .th is Thailand's extension. Eelco

Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Johan Compagner
and eelco only dreams thai now so.. On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote: now we're going to build s.th. like a shop and i'm looking for A Thai site? hm? a thai site? what do you mean? Was a joke. You said

Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Martin Grotzke
On Tue, 2007-05-01 at 15:36 +0200, Johan Compagner wrote: and eelco only dreams thai now so.. ok, then sweet dreams, eelco :) On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote: now we're going to build s.th.

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, thanx a lot for this clarification! cheers, martin On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote: in reality this isnt how its supposed to work. usually you would have something like this: searchpage { private criteria crit; searchpage() { add(new

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, i'm trying to implement your advice, but don't really know how to do this. what would the SearchForm then look like? does the form itself use the model and how is the input field added to the form? and how can the ResultsView access the value of the PropertyModel? the model has a

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
i suggest you read here: http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models the idea is pretty simple: the form submits its data into a bean, and the view renders according to that bean. this is accomplished by having the form and the view's models connected to the same

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, i hope i got the idea now. i post my beans here, it would be nice if could tell me if anything's not following the right path :) // the start page, simply with the search form public Index(final PageParameters parameters) { LOG.debug( Creating new Index page with params +

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to include SearchResultsView: public SearchResultsView(String id, PropertyModel model ) { super( id, model ); final String query =

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to include SearchResultsView: public SearchResultsView(String id, PropertyModel model ) {

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote: On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. the model i showed is better because if you reuse the searchresultsview outside of this lifecycle you are creating it will still work properly, but if you have no plans on reusing it

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. ok. do I have to take anything in acount if i use wicket in this atypical way? however, until now it feels very good to work

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. ok. do I have to take anything in acount if i use wicket in this

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:42 -0700, Igor Vaynberg wrote: On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket

[Wicket-user] nice url with submitted form

2007-04-29 Thread Martin Grotzke
hi all, i'm just starting with wicket and have a simple search form, that leads to a SearchResultsPage. the SearchResultsPage is mounted as a bookmarkable page (via mountBookmarkablePage(/search, SearchResultsPage.class);), although the url that is shown then contains s.th. like

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg
no, once the form is submitted the page is no longer bookmarkable and so it will lose any bookmarkable/mounted url. if you want to keep it you can call setresponsepage(page.class, params) in onsubmit(), but in your case that is silly since searchresultspage probably contains the submitted form

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Martin Grotzke
On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote: no, once the form is submitted the page is no longer bookmarkable and so it will lose any bookmarkable/mounted url. if you want to keep it you can call setresponsepage(page.class, params) in onsubmit(), but in your case that is silly

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg
in reality this isnt how its supposed to work. usually you would have something like this: searchpage { private criteria crit; searchpage() { add(new searchform(form, new PropertyModel(this, crit)); add(new resultsview(view, new PropertyModel(this, crit)); } } that way the form