You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Loose (JIRA)" <ji...@apache.org> on 2007/12/18 00:27:43 UTC

[jira] Issue Comment Edited: (WICKET-1234) feedback message problem after redirecting

    [ https://issues.apache.org/jira/browse/WICKET-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552570 ] 

hell edited comment on WICKET-1234 at 12/17/07 3:27 PM:
-------------------------------------------------------------

using of setResponsePage() in an example is not necessary but in real applications there can be e.g. a list page (user list) and if I add a new user I need display info message....

I used this construction in your old depricated branch - wicket 2.0-SNAPSHOT - and there was everything ok.

      was (Author: hell):
    using of setResponsePage() in example is not necessary but in real application there can be e.g. list page (user list) and if i add new user a need display info message....

I used this construction in your old depricated branch - wicket 2.0-SNAPSHOT - and there was everything ok.
  
> feedback message problem after redirecting
> ------------------------------------------
>
>                 Key: WICKET-1234
>                 URL: https://issues.apache.org/jira/browse/WICKET-1234
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc2
>         Environment: Kubuntu, Eclipse, Tomcat
>            Reporter: Jan Loose
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.0-rc3
>
>
> I think i have found one bug: there is no message in the feedback panel after ajax redirect (normal redirect after normal request is ok).
> Source:
> public class ExamplePage extends WebPage {
>     private FeedbackPanel feedback;
>     public ExamplePage() {
>         add(feedback = new FeedbackPanel("feedback"));
>         feedback.setOutputMarkupPlaceholderTag(true);
>         add(new Link("link") {
>             @Override
>             public void onClick() {
>                 ExamplePage.this.info("link: onClick");
>                 setResponsePage(ExamplePage.this); // info is displayed in feedback panel
>             }
>         });
>         add(new AjaxLink("ajaxlink") {
>             @Override
>             public void onClick(AjaxRequestTarget target) {
>                 ExamplePage.this.info("ajax link: onClick");
>                 target.addComponent(feedback);
>                 setResponsePage(ExamplePage.this); // TODO info is NOT displayed in feedback panel, why?
>             }
>         });
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.