You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Bui Quoc Thai <st...@ait.ac.th> on 2002/10/23 20:52:05 UTC
Add Media-type for portlet entry by coding
Hi,
I create portlet entry by progamming, I use BasePortletEntry to create a new
entry, after that I use their methods to add other information for the
portlet, such as: setName(), setTitle(),...
However, I cann't set MediaType properly. In particularly, I use setMediaTypes
() then it create the element:
<media-type>html</media-type>
instead of:
<media-type ref="html"/>
This leads to an error in the portlet list for adding portlet (the portlet
table has no portlet).
Has someone done this problem? Please, give me some commnend!
Thank you so much
Thai
--------------------------
Email: st027235@ait.ac.th
bqthai@ctu.edu.vn
Room: C34
Tel: 524-7099
----------------------------------------------------------
This mail sent through AIT WebMail : http://www.ait.ac.th/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>