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

[jira] Resolved: (WICKET-1234) feedback message problem after redirecting

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

Igor Vaynberg resolved WICKET-1234.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

if you want feedback messages to last across page instances you have to save them in session

eg

 getSession().info("ajax link: onClick");

instead of 

 ExamplePage.this.info("ajax link: onClick");

> 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
>
> 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.