In case anybody is interested in what I ended up with:
I defined an inner class within the Page which declares the page state
properties (and defines their default values) for the enclosing page. An
instance of the state Object is stored in the session using memento pattern
(no longer within the
Thanks, please ignore my latest message (I wrote it before seeing yours)
Of course, I want to use Wicket's state management, that's why I asked this
question in the first place :)
Just for explanation:
The page I am working on currently is a page that displays a list of
products, which displays
Thanks Martijn,
of course, you are right.
I came to put it in there after consulting the example at
http://www.wicket-library.com/wicket-examples/forminput/
where this call is inserted to ensure the responding page is still
bookmarkable, also I planned to hand over the PageParameters object in th
On Wed, Jul 23, 2008 at 12:25 PM, pixologe <[EMAIL PROTECTED]> wrote:
> there are methods:
> setResponsePage(java.lang.Class cls)
> setResponsePage(java.lang.Class cls, PageParameters parameters)
> setResponsePage(Page page)
> but not:
> setResponsePage(Page page, PageParameters parameters)
correc
Thanks a lot, Michael, that was very helpful :) I have spent quite some time
puzzling...
unfortunately, this raises another question right away:
there are methods:
setResponsePage(java.lang.Class cls)
setResponsePage(java.lang.Class cls, PageParameters parameters)
setResponsePage(Page page)
b
yes, right, of course, i forgot :-)
Martijn Dashorst wrote:
>
> this call is not necessary. Wicket defaults to rendering the current
> page when no responsepage was set.
>
> Martijn
>
>
> On Wed, Jul 23, 2008 at 11:47 AM, Michael Sparer <[EMAIL PROTECTED]>
> wrote:
>>
>> try using setRespons
this call is not necessary. Wicket defaults to rendering the current
page when no responsepage was set.
Martijn
On Wed, Jul 23, 2008 at 11:47 AM, Michael Sparer <[EMAIL PROTECTED]> wrote:
>
> try using setResponsePage(TestPage.this);
>
> the way you did is results in a redirect to a new instance
setResponsePage(getPage().getClass()) is what you do wrong. This tells
wicket to render a bookmarkable response to your page -> creates the
page again.
remove that call and it should work.
Martijn
On Wed, Jul 23, 2008 at 11:16 AM, pixologe <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> This ma
try using setResponsePage(TestPage.this);
the way you did is results in a redirect to a new instance of TestPage
regards,
Michael
pixologe wrote:
>
> Hi everybody,
>
> This may be an idiot question, but no matter how many articles and
> examples I read about this, I seem not to be able to
Hi everybody,
This may be an idiot question, but no matter how many articles and examples
I read about this, I seem not to be able to grasp how to use DropDownChoice
with PropertyModel.
I would very very highly appreciate if someone could point out to me why the
code below is not working as I ex
10 matches
Mail list logo