thanks for the explanation. Works perfect now.

much appreciated.

On Wed, Jan 27, 2010 at 8:23 PM, Igor Vaynberg <[email protected]> wrote:
> the former
>
> -igor
>
> On Wed, Jan 27, 2010 at 10:45 AM, Riyad Kalla <[email protected]> wrote:
>> Igor, will FeedbackPanel correctly consume the messages from the session
>> scope and remove them -- or do you have to manually remove them once they've
>> been rendered?
>>
>> On Wed, Jan 27, 2010 at 11:42 AM, Igor Vaynberg 
>> <[email protected]>wrote:
>>
>>> the problem is that there is a redirect between your calling info()
>>> and the feedback panel rendering. this is because thats the only way
>>> to do it in ajax  - issue a window.location=...
>>>
>>> if you are doing feedback messages across requests then use
>>> getsession().info(...)
>>>
>>> -igor
>>>
>>> On Wed, Jan 27, 2010 at 10:15 AM, Wayne Pope
>>> <[email protected]> wrote:
>>> > Hello all,
>>> >
>>> > Ok I cannot figure this one out.
>>> > I have a  Page that contains a Form with a AjaxSubmitLink:
>>> >
>>> > AjaxSubmitLink submitLink= new AjaxSubmitLink("submitLink") {
>>> >                       �...@override
>>> >                        protected void onSubmit(AjaxRequestTarget target,
>>> Form<?> form) {
>>> >
>>> >
>>>  info(getString("admin.paymentSuccesfull"));
>>> >
>>>  setResponsePage(Application.get().getHomePage());
>>> >                        }
>>> >
>>> >                       �...@override
>>> >                        protected void onError(AjaxRequestTarget target,
>>> Form<?> form) {
>>> >                                target.addComponent(feedback);
>>> >                        }
>>> >                };
>>> >
>>> >
>>> > On the home page I have a Panel that contains a FeedbackPanel - this
>>> > feedback panel works fine when using elements on that page.
>>> >
>>> > However when submitting the form and displaying the home page I get
>>> > the message in the logs:
>>> >
>>> > Component-targetted feedback message was left unrendered. This could
>>> > be because you are missing a FeedbackPanel on the page.  Message:
>>> > [FeedbackMessage message = " ...
>>> >
>>> > And the message is not displayed.
>>> >
>>> > Any ideas why wicket cannot find the feedback panel in the page? (its
>>> > definitely there in a Panel)
>>> >
>>> > feedback panel is added as such:
>>> > FeedbackPanel feedback = new FeedbackPanel("feedbackPanel");
>>> > add(feedback);
>>> >
>>> >
>>> > many thanks
>>> > Wayne
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [email protected]
>>> > For additional commands, e-mail: [email protected]
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to