-1

1)How to include the many xhtml pages in one xhtml page
2) how to get the references to them in managed bean class

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
cjack
  • 67
  • 1
  • 1
  • 4

1 Answers1

1

You need to try this

 <ui:include src="/page.xhtml">
        <ui:param value="value" name="name" />
 </ui:include>

Here, ui:param is used to pass the parameter.

Yusuf Kapasi
  • 577
  • 2
  • 9
  • but how to access the refernces and contents of page.xhtml in managedbean class – cjack Nov 20 '14 at 14:12
  • It should be the other way round, you should access the properties and use the functions of managedbean in your xhtml files. – Yusuf Kapasi Nov 20 '14 at 15:02