Examples of FeedbackPanel


Examples of org.apache.wicket.markup.html.panel.FeedbackPanel

            {
                @Override
                public void onSubmit()
                {
                    PortletPreferences prefs = ((ApplicationsListApplication)this.getApplication()).getPortletRequest().getPreferences();
                    FeedbackPanel feedback = (FeedbackPanel)this.getParent().get("feedback");
                    try
                    {
                        prefs.setValue("appRows", Integer.toString(EditModeForm.this.getAppRows()));
                        prefs.setValue("portletRows", Integer.toString(EditModeForm.this.getPortletRows()));
                        prefs.store();
                        ActionResponse ar = (ActionResponse)((ApplicationsListApplication)this.getApplication()).getPortletResponse();
                        ar.setPortletMode(PortletMode.VIEW);                       
                    }
                    catch (ReadOnlyException e)
                    {
                        feedback.error(getString("pam.details.message.errorReadonly"));
                    }
                    catch (Exception oe)
                    {
                        feedback.error(getString("pam.details.message.errorPrefs") + oe.getMessage());
                    }                   
                }
            });       
            FeedbackPanel feedback = new FeedbackPanel("feedback");
            add(feedback);
        }
View Full Code Here

Examples of wicket.markup.html.panel.FeedbackPanel

    this.createComponents(isNew);
  }

  private void createComponents(final Boolean isNew)
  {
    final FeedbackPanel feedback = new FeedbackPanel("feedback");
    this.add(feedback);

    if (isNew)
    {
      this.add(new ClubForm("clubForm", this.clubs, null, this.club));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.