portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlachogiannis Evangelos <evl...@aegean.gr>
Subject RE: Change Portlet tile from VM customizer
Date Wed, 04 Jun 2003 19:16:26 GMT
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:Sweaver@rippe.com] 
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   *
* weaver@apache.org                 *
*===================================*
  


> -----Original Message-----
> From: Vlachogiannis Evangelos [mailto:evlach@aegean.gr]
> 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:mark_orciuch@ngsltd.com]
> 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 - morciuch@apache.org
> Jakarta Jetspeed - Enterprise Portal in Java 
> http://jakarta.apache.org/jetspeed/
> 
> > -----Original Message-----
> > From: Vlachogiannis Evangelos [mailto:evlach@aegean.gr]
> > Sent: Wednesday, June 04, 2003 8:21 AM
> > To: 'jetspeed-dev@jakarta.apache.org'
> > 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: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message