1 Reply Latest reply on Jul 8, 2009 8:48 AM by sourav.catch_me_sourav.yahoo.com

    Toolbar

    sourav.catch_me_sourav.yahoo.com
      Hi,
      I am new in Seam. I want to create a user define toolbar(Edit, Save, Delete, Search) for my project, which is work for my all  pages, but i cant understand how to call the appropriate bean for the page, because it's call the the dynamically.

      here is my toolbar code... 

      <rich:toolBar> 
      <rich:toolBarGroup itemSeparator="line">
      <h:commandButton action="#{actionBean[action]}" value="Add" title="New" image="/img/add.gif"/>

      <h:commandButton action="#{actionBean[action]}" value="Edit" title="Edit" image="/img/edit.gif"/>

      <h:commandButton action="#{actionBean[action]}" value="Delete" title="Delete" image="/img/false.png"/>

      <h:commandButton action="#{actionBean[action]}" value="Save" title="Save" image="/img/save.png"/>

      <h:commandButton action="#{actionBean[action]}" value="Search" title="Search" image="/img/search.gif"/>      
                                             
      </rich:toolBarGroup>
      </rich:toolBar>

      please help me.
        • 1. Re: Toolbar
          sourav.catch_me_sourav.yahoo.com
          <blockquote>
          _Sourav Biswas wrote on Jul 08, 2009 08:46:_<br/>

          Hi,
          I am new in Seam. I want to create a user define toolbar(Edit, Save, Delete, Search) for my project, which is work for my all  pages, but i cant understand how to call the appropriate bean for the page, because it's call  dynamically.

          here is my toolbar code... 

          <rich:toolBar> 
          <rich:toolBarGroup itemSeparator="line">
          <h:commandButton action="#{actionBean[action]}" value="Add" title="New" image="/img/add.gif"/>

          <h:commandButton action="#{actionBean[action]}" value="Edit" title="Edit" image="/img/edit.gif"/>

          <h:commandButton action="#{actionBean[action]}" value="Delete" title="Delete" image="/img/false.png"/>

          <h:commandButton action="#{actionBean[action]}" value="Save" title="Save" image="/img/save.png"/>

          <h:commandButton action="#{actionBean[action]}" value="Search" title="Search" image="/img/search.gif"/>      
                                                 
          </rich:toolBarGroup>
          </rich:toolBar>

          please help me.
          </blockquote>

          Click HELP for text formatting instructions. Then edit this text and check the preview.