![]() |
Ugly for Illustrative Purpose |
DecoratedPage.xhtml
1 2 3 4 5 6 7 8 9 10 11 12 | <? xml version = '1.0' encoding = 'UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < h:head > < title >Decorated Table</ title > </ h:head > < h:body > < ui:include src = "decoratedTable.xhtml" /> </ h:body > </ html > |
decoratedTable.xhtml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <? xml version = '1.0' encoding = 'UTF-8' ?> < caption > This is a decorated table. </ caption > < tr > < td > < ui:decorate template = "unorderedListTemplate.xhtml" > < ui:define name = "content" > < ui:include src = "listElements.xhtml" /> </ ui:define > </ ui:decorate > </ td > </ tr > </ table > |
unorderedListTemplate.xhtml
1 2 3 4 5 6 | < ul > < ui:insert name = "content" >Content</ ui:insert > </ ul > </ ui:fragment > |
listElements.xhtml
1 2 3 4 5 6 7 8 9 | <? xml version = '1.0' encoding = 'UTF-8' ?> < li >A</ li > < li >B</ li > < li >C</ li > < li >D</ li > </ ui:fragment > |
0 comments :
Post a Comment