diff --git a/src/main/webapp/layout/navigationAndAJAX.xhtml b/src/main/webapp/layout/navigationAndAJAX.xhtml index 71f713ca..b9a9d7ac 100644 --- a/src/main/webapp/layout/navigationAndAJAX.xhtml +++ b/src/main/webapp/layout/navigationAndAJAX.xhtml @@ -16,7 +16,7 @@ - + - + @@ -57,7 +57,7 @@ - +

Resource loading

BootsFaces tries to keep the memory footprint as low as possible. Among other things, this means that it only loads the CSS and JavaScript code required by the current JSF page. If you use AJAX to replace parts of your page, @@ -71,13 +71,13 @@ ]]> - +

Templates

Most JSF developers are used to use templates to embed their payload pages into a common application framework. For example, this showcase uses a template page to provide the main menu and the footer of each page.

- As is turns out, it's better to think the other way round to make the most of AJAX. Funny thing is that's the + As is turns out, it's better to think the other way round to make the most of AJAX. Funny thing is that's the traditional way of thinking. Instead of embedding your page into a common template, you take the common template and include the individual page in it. That's best accomplished by using <ui:include /> with an EL expression pointing to the current payload page. The demo below shows the idea. @@ -128,17 +128,17 @@ @SessionScoped public class NavigationBean implements Serializable { private static final long serialVersionUID = 1L; - + private String page="start.xhtml"; - + public String getPage() { return page; } - + public void setPage(String currentPage) { this.page=currentPage; } - } + } ]]>