Hi Devs,
In most WSO2 products, following code snippet is used to show paginated
results.
<carbon:resourcePaginator pageNumber="<%=pageNumber%>"
numberOfPages="<%=numberOfPages%>"
resourceBundle="org.wso2.carbon.------.------.ui.i18n.Resources"
nextKey="next" prevKey="prev"
paginationFunction="submitForm({0})" />
According to above example, when a user clicks on a particular page number
"submitForm()" JavaScript method will be invoked.
Lets say if i have a JSP String variable called "order" and wants to pass
it when a user clicks on the page number, then I need to change pagination
function as follows.
paginationFunction="submitForm({0},'<%=order%>')"
But this method passes the value to the JavaScript function as a raw string.
So the retrieved value will be a string which equals to "<%=order%>" .
So how to pass a JSP variable inside this pagination function?
Any help on this matter is highly appreciated
Thanks,
Rajith
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev