events handling on tool bar

UI Components for JSF
Post Reply
raccio
Posts: 39
Joined: 16 Jul 2012, 15:57

17 Jul 2012, 01:29

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)

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

17 Jul 2012, 12:47

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.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Jul 2012, 12:50

@Sudheer: Might be me, but I have only a slight clue what you meen... can you elaborate.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

17 Jul 2012, 20:25

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.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests