Package org.apache.wicket.protocol.http.portlet

Examples of org.apache.wicket.protocol.http.portlet.PortletRequestContext


            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here


            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

       */
      @Override
      protected void onSubmit()
      {
        ExampleApplication selected = (ExampleApplication)ddc.getModelObject();
        PortletRequestContext prc = (PortletRequestContext)RequestContext.get();
        PortletPreferences prefs = prc.getPortletRequest().getPreferences();
        prc.getPortletRequest().getPortletSession().setAttribute(
            WicketExamplesMenuPortlet.EXAMPLE_APPLICATION_ATTR, selected);
        try
        {
          ((ActionResponse)prc.getPortletResponse()).setPortletMode(PortletMode.VIEW);
          prefs.setValue(WicketExamplesMenuPortlet.EXAMPLE_APPLICATION_PREF, selected
              .getFilterPath());
          prefs.store();
        }
        catch (Exception pe)
        {
          throw new RuntimeException(pe);
        }
      }
    };
    List examples = WicketExamplesMenuApplication.getExamples();
    ddc = new DropDownChoice("examples", examples, exampleChoiceRenderer);
    ddc.setNullValid(false);
    PortletRequestContext prc = (PortletRequestContext)RequestContext.get();
    String eaFilterPath = prc.getPortletRequest().getPreferences().getValue(
        WicketExamplesMenuPortlet.EXAMPLE_APPLICATION_PREF, null);
    Model selected = new Model((ExampleApplication)examples.get(0));
    if (eaFilterPath != null)
    {
      for (int i = 0, size = examples.size(); i < size; i++)
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.portlet.PortletRequestContext

Copyright © 2018 www.massapicom. 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.