private void renderButton ( boolean render , int page , int index , String openDelim , String url , String text , boolean active ) throws JspException { log . fine ( "private void renderButton(boolean render, int page, int index, String openDelim, String url, String text, boolean active): called" ) ; log . fine ( "render = " + render ) ; log . fine ( "page = " + page ) ; log . fine ( "index = " + index ) ; log . fine ( "openDelim = " + openDelim ) ; log . fine ( "url = " + url ) ; log . fine ( "text = " + text ) ; log . fine ( "active = " + active ) ; TagUtils tagUtils = TagUtils . getInstance ( ) ; if ( render ) { tagUtils . write ( pageContext , openDelim ) ; // Only render the button as active if the active flag is set. if ( active ) { tagUtils . write ( pageContext , "<a href=\"" + url + "?varName=" + name + "&number=" + page + "&index=" + index + "\">" + text + "</a>" ) ; } // Render an inactive button. else { tagUtils . write ( pageContext , text ) ; } tagUtils . write ( pageContext , closeDelim ) ; } }
Renders a button control as a hyperlink for the page control .