velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Romianowski" <megap...@gmx.de>
Subject RE: newbie questions on html + WAP Support
Date Mon, 16 Dec 2002 02:37:25 GMT
  The best practice for velocity (and other template languages)
would be to define one controller but multiple view-components (
i.e. vtl-files). You controller is then in charge of selecting
the correct view-component for each device (by using a parameter
for instance).

  As for velocity, filling the context with all nescessary
objects would be the same for all devices, but you'll have
different vtl-files rendering the context in a different way.

  That's the way I do it all the time when the view-components
differ a lot (and they do between HTML and PDA/Phone AFAIK).

Peter


> -----Original Message-----
> From: Hanasaki JiJi [mailto:hanasaki@hanaden.com] 
> Sent: Monday, December 16, 2002 3:06 AM
> To: LIST - Jakarata Velocity
> Subject: newbie questions on html + WAP Support
> 
> 
> Pardon my newbi questions.
> 
> I am currently reviewing jetspeed/strutsWithJSP/strutsWithVelocity
> 
> and welcome any input on best practices to support multiple output 
> devices.  Specifically HTML browsers and PDA/Phones.
> 
> Thank you
> 
> -- 
> =================================================================
> = Management is doing things right; leadership is doing the     =
> =       right things.    - Peter Drucker                        =
> =_______________________________________________________________=
> =     http://www.sun.com/service/sunps/jdc/javacenter.pdf       =
> =  www.sun.com | www.javasoft.com | 
> http://wwws.sun.com/sunone  = 
> =================================================================
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:velocity-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:velocity-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message