Here are a few UI TagLibs defined by liferay which can be used in your jsps. For a few of the tags i have also displayed the code of how to retrieve it in the your Portlet.
Displaying the Users Pictures and Name , with link into the MyAccount Page
Displaying Option for Selecting Languages with Flags
Date Picker
The date picker object Is very simple to implement. Here is the implementation code.
For the date picker , it is necessary to provide the Model and the bean attributes to the input tag.
In the src/META-INF folder , we have a n xml file where we can set restrictions on the datatypes
portlet-model-hints.xml
We can also restrict the length of certain fields using
For more info on model-hints , take a look at the liferay source code ,
portal-impl/src/META-INF/portal-modelt-hints.xml file.
Model-Hints
NOTE : While using the date field , the name attribute of the input tage should match with the name attribute of the field tag in portlet-model-hint.
Liferay UI Taglib Features-II
Cheers..!!
Gaurav Rastogi
No comments:
Post a Comment