Class ELFunctions

java.lang.Object
org.wicketstuff.jeeweb.el.ELFunctions

public class ELFunctions extends Object
This class is used for JSPs and JSFs to render a URLs with EL expressions:
 ${wicket:url('mypackage.MyPage')}
 and
 ${wicket:urlWithQuery('mypackage.MyPage','param1=value1&param2=value2')}
 
Author:
Tobias Soloschenko
  • Constructor Details

    • ELFunctions

      public ELFunctions()
  • Method Details

    • urlWithQuery

      public static String urlWithQuery(String page, String query)
      Creates a URL based on the given page and the given query
      Parameters:
      page - the page to be used within the link
      query - the query with all parameters
      Returns:
      the url
    • url

      public static String url(String page)
      Creates a URL based on the given page
      Parameters:
      page - the page to be used within the link
      Returns:
      the URL
    • ajaxCallbackUrlWithQuery

      public static String ajaxCallbackUrlWithQuery(String query)
      Gets the plan callback URL to process a request to the current rendered page with pre rendered query arguments
      Parameters:
      query - the query
      Returns:
      the plane callback URL
    • ajaxCallbackUrl

      public static String ajaxCallbackUrl()
      Gets the plan callback URL to process a request to the current rendered page
      Returns:
      the plane callback URL
    • ajaxGet

      public static String ajaxGet()
      Creates a ajax callback function that processes a request to the current rendered page
      Returns:
      the callback function
    • ajaxGetWithQuery

      public static String ajaxGetWithQuery(String query)
      Creates a ajax callback function that processes a request to the current rendered page. It takes in input a query string.
      Parameters:
      query - the query to be send to the function
      Returns:
      the callback function
    • ajaxFormSubmit

      public static String ajaxFormSubmit(String method)
      Creates a ajax callback function to send a form via AJAX to the current rendered page.
      Parameters:
      method - the request method that must be used (GET or POST).
      Returns:
      the callback function