Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSF and tiles

 
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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
f:subView
 
Saloon Keeper
Posts: 22495
151
Android Eclipse IDE Tomcat Server Redhat Java 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
 
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

https://coderanch.com/t/211928/JSF/java/JSF-debugging
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic