Skip to content

Monthly Archives: janvier 2014

Posted by admin - 28 janvier 2014 - no comments

To get the portlet id (or rather portlet instance id) from the Managed Bean, use the following code: LiferayFacesContext context = LiferayFacesContext.getInstance(); String portletId = context.getThemeDisplay().getPortletDisplay().getId();

Posted by admin - 23 janvier 2014 - no comments

There is no way of putting inputs inside a PrimeFaces (orderList is not a UIData component). Therefore, the solution to do it is through… dataTable ! Here is a meaningful…

Posted by admin - 22 janvier 2014 - no comments

In order to send some object data from a Managed Bean to a client-side javascript function, the following approach should be followed. Implement a listener/action method which return the data…

Posted by admin - 22 janvier 2014 - no comments

In order to send to a Managed Bean a JSON javascript variable (or any String variable), a remoteCommand method should be called using the following syntax, in XHTML: <!– javascript…

Posted by admin - 22 janvier 2014 - no comments

If you want to assign a big file containing XML tags to a javascript variable, the following works easily : var jsVariable= #{myBean.jsonString}; Note that the jsonString must be a…

Posted by admin - 20 janvier 2014 - no comments

In order to call a managed bean function with parameters sent from Javascript, here is a 3 steps short tutorial for PrimeFaces. 1. Call a javascript function (jsFunction1) with the…

Posted by admin - 7 janvier 2014 - no comments

No software could clean my PDF file, but this online tool did : http://www.freemypdf.com/