What I have done... But still not working.. Nothing changed... Any help
pls??

Create:

public class ResourcesMethods
{
  private VelocityPortlet portlet=null;
  private RunData data=null;

  public ResourcesMethods(VelocityPortlet p, RunData data)
  {
    this.portlet = p;
    this.data = data;
  }
  public void changePortletTitle(String title) throws
PortalPersistenceException
  {
    PortletInstance instance = PersistenceManager.getInstance(this.portlet,
this.data);
    instance.getEntry().getMetaInfo().setTitle(title);
    PersistenceManager.store(instance);
  }
}

In Class ResourcesAction:

          ResourcesMethods resourcesMethods = new
ResourcesMethods(portlet,rundata);
        context.put("ResourcesMethods",resourcesMethods);

In Browser-customizer.vm

$!ResourcesMethods.changePortletTitle("sdsdf")


-----Original Message-----
From: Weaver, Scott [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 9:05 PM
To: 'Jetspeed Developers List'
Subject: RE: Change Portlet tile from VM customizer


You could do this...

PortletInstance instance = PersistenceManager.getInstance(portlet, rundata);
instance.getEnty().getMetaInfo.setTitle("new title");
PersistenceManager.store(instance);

*===================================*
* Scott T Weaver??????????????????? *
* Jakarta Jetspeed Portal Project?? *
* [EMAIL PROTECTED] *
*===================================*
? 


> -----Original Message-----
> From: Vlachogiannis Evangelos [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 1:03 PM
> To: 'Jetspeed Developers List'
> Subject: RE: Change Portlet tile from VM customizer
> 
> Thnx for the reply. Is there a way doing that by using the velocity 
> $data
> ->
> not change source code ?
> 
> -----Original Message-----
> From: Mark Orciuch [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 5:30 PM
> To: Jetspeed Developers List
> Subject: RE: Change Portlet tile from VM customizer
> 
> 
> Take a look at how it's done in the default customizer 
> (CustomizeAction).
> 
> Best regards,
> 
> Mark Orciuch - [EMAIL PROTECTED]
> Jakarta Jetspeed - Enterprise Portal in Java 
> http://jakarta.apache.org/jetspeed/
> 
> > -----Original Message-----
> > From: Vlachogiannis Evangelos [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 04, 2003 8:21 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Change Portlet tile from VM customizer
> >
> >
> > Hi all,
> >
> > I am using the DatabaseBrowser portlet which I have extended. What I 
> > am trying to do is to be able to change the portlet psml title from 
> > its customizer. Any ideas pls??
> >
> > Thnxss,
> > Vangelis
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to