Re: how to change portletID

Serge <[email protected]> Tue, 08 Jan 2008 17:15:28 +0100
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <op.t4mcr2wk80um11@wildchild>
On Tue, 08 Jan 2008 14:55:15 +0100, Christian Raschka  
<[email protected]> wrote:

Thanks for your answer,

I would change the createPortletID to have in generated code a usefull ID  
for the div in the HTML code. So I can use CSS to arrange the portlets on  
site. Now I have some like this "/context.portletName!764587357|0". That I  
cannot use for CSS.
If I only have the name for portlet, t.e. "myPortlet", I change the  
pluto-default-theme to

<c:set var="portlet" value="myPortlet" scope="request"/>
<jsp:include page="portlet-skin.jsp"/>

to arrange them.

I need a site with arranged portlets. If you have another solution to make  
that, please teach me :-)

P.S. I really could not find any info how to make that.

Thanks,
Serge



> Hi Serge,
>
> it's not a good idea to change the getPortletId method. I would  
> recommend to
> use getPortletName instead.
> Nevertheless you have to "mvn install" before a "mvn pluto:install" for
> every build.
>
> Christian
>
> 2008/1/8, Serge <[email protected]>:
>>
>> Hello,
>>
>> i have to build a portal based on pluto. But I have a problem with the
>> portletID.
>> The portletID usually contains context path, portlet name and meta info.
>> (Created in java class PortletWindowConfig in package
>> org.apache.pluto.driver.services.portal in pluto-portal-driver). I only
>> need the portlet name in my portlets. So I changed the java code from
>> "return contextPath + "." + portletName + "!" + metaInfo;" to "return
>> portletName;". Then installed pluto on apache tomcat with command "mvn
>> pluto:install -DinstallDir="path to tomcat"". But I still have the old
>> portletID in my html source code. Have somebody any solution for my
>> problem?
>>
>> Thanks,
>> Serge
>>



-- 
Mit freundlichen GrÌßen
Serge Rittscher