Fórumok

Portlet config parameter of user define type

Jan Tošovský, módosítva 13 év-val korábban

Portlet config parameter of user define type

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
Hello Everyone,

my goal is to store some data in every instance of my MVCPortlet. I initially upload it in the form of XML file (via portlet config). My idea was to read its content without saving this file somewhere on the disk.

Now I am considering which way to use:
1) process this XML data into user defined variable which would be available for view.jsp. In this case I am stuck a bit as I don't know how to store such kind of variable as PrefsParamUtil or ParamUtil returns only basic variable types.

2) store XML as string.

3) Save this file and store just filePath as string vatiable.

The file size will be max. 20 kB and number of separate portlet instances cca 50.

What approach would you recommend?

Jan
Jan Tošovský, módosítva 12 év-val korábban

RE: Portlet config parameter of user define type (Válasz)

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
Finally I've chosen the second option. My XML code is stored as String and later parsed and processed via DOM libraries.