hello,

I am trying to use the VelocityPortlet to import a full turbine application ( with Actions and Screens) into jetspeed...

I modified the VelocityPortlet so that it can also invoke a screen...

I would like to know if there are people interesting into testing that with me, or giving me their thought on the modification I made...

thanks a lot,

Stan.

Stanislas Pinte
Computer Consultant

Sales Director
Alto Software

20 Pl St Jacques
B-4000 Liège
Tel+Fax: +32 -(0)4 221 35 08
GSM: +32 -(0)478 57 61 80
web: http://www.altosw.be
email: [EMAIL PROTECTED]

Index: VelocityPortlet.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/VelocityPortlet.java,v
retrieving revision 1.6
diff -r1.6 VelocityPortlet.java
61a62
> import org.apache.turbine.modules.ScreenLoader;
95a97,100
> 
>       //to remove...
>       System.out.println("honey!!!!!!!!!!!!!!!!!!");
> 
115a121
>       //invoke the required action
134a141
>       //If the context is not defined, I can try to invoke a turbine screen.
138c145,169
<         }
---
>         } else
>           {
>               //NOTE: it is possible that no screen got defined for that template
>               //so we should be careful.
>               
>               //the screen name is the template name minus the ".vm"...
>               String screenName = null;
>               if (-1 == template.indexOf(".vm"))
>                   {
>                       screenName = template.substring(0, template.length()-3);
>                   } else
>                       {
>                           screenName = template;
>                       }
>               
>               try
>                   {
>                       ScreenLoader.getInstance().exec( rundata, screenName );
>                   }
>               catch( Exception e)
>                   {
>                       Log.error( e.toString() );
>                   }
> 
>           }

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

Reply via email to