Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF and tiles  RSS feed

 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new and learning JSF, my question is on tiles and JSF

( to whom who doesn't know tiles --> it's just act like include )

I have Home.jsp ( this is a JSF )

inside this JSP i have couple of tiles statements
and can i have JSF be included inside HOME.jsp using tiles ?

i am asking this question, because to my knowledge there should be only
one f:view tag for the whole JSF, if you include one more JSF inside a JSF
you will have a f:view tag inside a f:view tag. IS that OK ?

excuse me, if it is really a dumb question
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
f:subView
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you like tiles, try Facelets. It's tiles plus better JSF error messages!

There's a pretty good intro to Facelets at IBM's DeveloperWorks.
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thanks for the replies. My original problem was something else
I have posted it in this JSF forum only as subject " commandButton method binding is not working"

my JSF is not able to invoke java bean method
can anybody give me suggestions on debugging this problem
i have log statements bean method which are not printing
( my logic actually is to email and store in database when that method will be called )

thanks
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one more question

i am not that good in tiles too, learning along with JSF

what is the difference between the following 2 statements

<%@ include file="whatever.jsf" %>

and

<tiles:insert definition="page.feedback" flush="false"/>
( where page.feedback is defined in tiles-def.xml configuration file )


what i looking or what i wonder is

is tiles a static or dynamic one, that i specified, and can we do both with tiles, if so how. This would be really great help to me
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg, it worked, thanks

i need to do lot of reading and examples
 
Amit Nair
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Naveen

I have tried using jsf-tiles. But there were some issues which i was not able to resolve. I faced trouble in calling the java bean method from command link. I was also using tomahawk components. Infact they were also not running smoothly. After I removed the tiles from my pages, all components started running fine. I came the know that when tiles are used the java script are not injected properyly. Just follow the link i added. If you get the tiles & myfaces running correctly then plzz let me know your procedure....
"http://www.nabble.com/-jira--Created:-(TOMAHAWK-434)-Tree2-Client-Rendered-when-using-MyFaces-tiles-support-will-not-inject-javascript-tags-correctly.-t1609934.html"

Cheers
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know much about tiles, to my understanding tiles is very much like includes. So it should not be giving much problem

commandButton not working ? I had same issue and solved it. read below thread

http://www.coderanch.com/t/211928/JSF/java/JSF-debugging
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!