> Can someone point me out how can I start customizing
> certain screens in Jetspeed or CHEF, like the login
> screen, since I'm new to jetspeed or CHEF I don't
> quite understand certain things from the login.vm
> file, how can I understand this and change the
> constants that the file references.
> Please help me.

I believe that this question should be targeted to the user-list, not
to the developer-list. However, I'll try to point you to the right
direction.

1) Jetspeed uses Velocity as the default template engine. Velocity
   is clean, understandable and easy-to-use templating mechanism used
   quite widely nowadays. You can alternatively use JSP's, but I
   recommend that you would use Velocity. Go to this place to get
   an overview of Velocity:

   http://jakarta.apache.org/velocity/index.html

2) Like JSP's, Velocity templates (those that have prefix ".vm") allow
   you to create templates where the most of the content is static, and
   some of the content is dynamic. You can write a Velocity template
   that is plain HTML, and then just replace some parts of it with
   dynamic data. For that purpose you need to use Velocity directives
   (check "VTL Reference Guide" from the Velocity project page). For
   example, directive "#foreach" lets you loop through a Collection
   (or an array) of objects.

3) Velocity is simple, because it has just 7 directives. From Velocity
   template, you can access any Java object that has been passed to the
   template in the so-called Velocity Context object, which is basicly
   a Hashtable. The object and it's properties or methods you want to
   access must be public in order to make Velocity find them.

I strongly recommend you to read the documentation for Velocity (and
for Jetspeed) before you customize the Jetspeed Portal. And I hope that
you point later questions regarding this issue to the user-list, since
this list is mainly targeted for Jetspeed developers, and I believe
they are usually too busy to answer to the newbie questions. That's
what the documentation is for anyway.

Regards,

Sami

-- 

Sami Leino
Software Developer, Netorek Oy, Turku, Finland
Email: [EMAIL PROTECTED]
Phone: +358 44 0140499



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

Reply via email to