Examples of CoreCommandButton


Examples of org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton

   *  event source.
   */
  @SuppressWarnings("unchecked")
  public void removeFacets(ActionEvent event)
  {
    CoreCommandButton eventSource = (CoreCommandButton) event.getComponent();
    //pu: Anything until ":" in the button text represents the facet name/s
    String facetNameFromButtonText = (eventSource.getText().split(":"))[0];
    //pu: In case of the button that removes multiple facets, this is again
    //  delimited by "_"
    String removableFacetNames[] = facetNameFromButtonText.split("_");
   
    //pu: Get the CorePanelPage components that has all the removable facets
    UIComponent uic = eventSource.findComponent("pp1");
    Map<String, UIComponent> facets = uic.getFacets();
    if (facets.keySet().size() == 0)
      return;

    for (int i=0; i<removableFacetNames.length; i++)
View Full Code Here

Examples of org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton

   *  event source.
   */
  @SuppressWarnings("unchecked")
  public void removeFacets(ActionEvent event)
  {
    CoreCommandButton eventSource = (CoreCommandButton) event.getComponent();
    //pu: Anything until ":" in the button text represents the facet name/s
    String facetNameFromButtonText = (eventSource.getText().split(":"))[0];
    //pu: In case of the button that removes multiple facets, this is again
    //  delimited by "_"
    String removableFacetNames[] = facetNameFromButtonText.split("_");
   
    //pu: Get the CorePanelPage components that has all the removable facets
    UIComponent uic = eventSource.findComponent("pp1");
    Map<String, UIComponent> facets = uic.getFacets();
    if (facets.keySet().size() == 0)
      return;

    for (int i=0; i<removableFacetNames.length; i++)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.