Page 1 of 1

events handling on tool bar

Posted: 17 Jul 2012, 01:29
by raccio
Hi all I have a tool bar that is included in the head of the html page and it contains 3 buttons on witch I would like to change the content of the same html page: each button show a data table in the content of the page.

the data tables are already prepared using managed beans and the html page(in a <ui:include /> tags)

how can I get that work?
thanks for help( I am using primefaces 3.3.1 and jsf 2.0)

Re: events handling on tool bar

Posted: 17 Jul 2012, 12:47
by sudheer
There is no URL attribute for commandbutton to work with toolbar so i went for menubar instead toolbar.If you use menubar instead toolbar then create <ui:insert...> for header,content and footer section in one template and define the content section in other page with URL attribute for each menu item.

Re: events handling on tool bar

Posted: 17 Jul 2012, 12:50
by kukeltje
@Sudheer: Might be me, but I have only a slight clue what you meen... can you elaborate.

Re: events handling on tool bar

Posted: 17 Jul 2012, 20:25
by sudheer
I mean we don't have url attribute for command button to work with toolbar so i used menubar with menuitems in template page content section.And we will see different content section with respect to each page.