Package org.wicketstuff.jeeweb.el
Class ELFunctions
java.lang.Object
org.wicketstuff.jeeweb.el.ELFunctions
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¶m2=value2')}
- Author:
- Tobias Soloschenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the plan callback URL to process a request to the current rendered pagestatic StringajaxCallbackUrlWithQuery(String query) Gets the plan callback URL to process a request to the current rendered page with pre rendered query argumentsstatic StringajaxFormSubmit(String method) Creates a ajax callback function to send a form via AJAX to the current rendered page.static StringajaxGet()Creates a ajax callback function that processes a request to the current rendered pagestatic StringajaxGetWithQuery(String query) Creates a ajax callback function that processes a request to the current rendered page.static StringCreates a URL based on the given pagestatic StringurlWithQuery(String page, String query) Creates a URL based on the given page and the given query
-
Constructor Details
-
ELFunctions
public ELFunctions()
-
-
Method Details
-
urlWithQuery
Creates a URL based on the given page and the given query- Parameters:
page- the page to be used within the linkquery- the query with all parameters- Returns:
- the url
-
url
Creates a URL based on the given page- Parameters:
page- the page to be used within the link- Returns:
- the URL
-
ajaxCallbackUrlWithQuery
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
Gets the plan callback URL to process a request to the current rendered page- Returns:
- the plane callback URL
-
ajaxGet
Creates a ajax callback function that processes a request to the current rendered page- Returns:
- the callback function
-
ajaxGetWithQuery
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
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
-