1 23 24 package org.infoglue.deliver.taglib.structure; 25 26 import java.util.List ; 27 28 import javax.servlet.jsp.JspException ; 29 30 import org.infoglue.cms.entities.structure.SiteNodeVO; 31 import org.infoglue.deliver.taglib.component.ComponentLogicTag; 32 33 38 39 public class SiteNodeLanguagesTag extends ComponentLogicTag 40 { 41 private static final long serialVersionUID = 3258135773294113587L; 42 43 private Integer siteNodeId; 44 45 public SiteNodeLanguagesTag() 46 { 47 super(); 48 } 49 50 public int doEndTag() throws JspException 51 { 52 produceResult(getPageLanguages()); 53 return EVAL_PAGE; 54 } 55 56 private List getPageLanguages() throws JspException 57 { 58 if(this.siteNodeId != null) 59 return this.getController().getPageLanguages(this.siteNodeId); 60 else 61 return this.getController().getPageLanguages(); 62 } 63 64 public void setSiteNodeId(String siteNodeId) throws JspException 65 { 66 this.siteNodeId = evaluateInteger("SiteNodeLanguagesTag", "siteNodeId", siteNodeId); 67 } 68 69 } | Popular Tags |