Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF/JSP

 
bruce truong
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am a newbie and need your expertise. I googled and found nothing. I am struggling to understand the JSF/JSP mixing rendering sequence. We have a pre-built JSP template and I would like to incorporate JSF little know how into it. It seems to load fine but the output shows that the JSF form is outside the template. Can someone give me a quick overview the rendering sequence? How can I get "Login" form inside the template? Below is what I have tried...

Thanks

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18169
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Bruce!

Well, I feel obligated to point out that any webapp that has its own login logic is a security nightmare, but that's not actually the point here.

JSF builds up a tree based on compiling the JSF View. It looks like your "template" tags are a custom tag library and don't know how to interact with JSF.

Incidentally, JSF offers a very nice templating system of its own: facelets. Standard in JSF 2, and easy to implement in JSF 1.x apps.
 
bruce truong
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Tim. I didn't use your suggestion but I got a workaround.

bruce
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic