1 16 package org.apache.myfaces.custom.panelstack; 17 18 import org.apache.myfaces.taglib.UIComponentTagBase; 19 20 import javax.faces.component.UIComponent; 21 import javax.faces.context.FacesContext; 22 import javax.servlet.jsp.JspException ; 23 24 25 62 public class PanelStackTag 63 extends UIComponentTagBase 64 { 65 66 private String selectedPanel; 67 68 public void release() { 69 super.release(); 70 selectedPanel=null; 71 } 72 73 public String getComponentType() 74 { 75 return "org.apache.myfaces.HtmlPanelStack"; 76 } 77 78 79 public String getRendererType() 80 { 81 return "org.apache.myfaces.PanelStack"; 82 } 83 84 85 public String getSelectedPanel() 86 { 87 return selectedPanel; 88 } 89 90 91 public void setSelectedPanel(String selectedPanel) 92 { 93 this.selectedPanel = selectedPanel; 94 } 95 96 97 public int doStartTag() throws JspException 98 { 99 return super.doStartTag(); 100 } 101 102 103 106 protected void setProperties(UIComponent component) 107 { 108 super.setProperties(component); 109 FacesContext context = FacesContext.getCurrentInstance(); 110 111 setStringProperty(component, "selectedPanel", selectedPanel); 112 } 113 } 114 | Popular Tags |