• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is correct that a View use more that one ViewHelper ??

 
Jose Jim´┐Żnez
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My doubs is if a view (.jsp) can use more than one ViewHelper. Example:

resultSearch.jsp use BookingHelper for retrive the priced car and use SearchHelper to retrive the alternatives options (minor prices than choosed)

Note: The resultSearch.jsp show the priced items that was in car and too show the alternatives items (minor prices that choosed)
 
sankha subhra das
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jose,
if u look at the service to worker pattern a view can have 1::* relation with helper classes via dispatcher/controller.

u can implement ur helpers either as commands(I would prefer this) or as delegates....and then u can implement two beans and/or tags in the same jsp...nothing in the jsp specs stops u from doing so.

Hope that helps

Thanks
Sankha Das
 
James Turner
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can implement ur helpers either as commands(I would prefer this) or as delegates


Sorry, silly question maybe, but how would you implement a helper as a command or a delegate? What are the differences between these implementations?

I always use classes with static methods as helpers in my applications. Is this an example of a delegate?

Thanx for any help, much appreciated.

James.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic