|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.webapp.UIComponentTagBase
javax.faces.webapp.UIComponentClassicTagBase
javax.faces.webapp.UIComponentTag
org.hdpagination.web.jsf.tag.AbstractBaseTag
org.hdpagination.web.jsf.tag.GoToPageTag
public class GoToPageTag
This JSF Tag is used to render a text box along with either a submit button, hyperlink, or image link. The button, hyperlink, or image link is used to submit the request and navigate to the page specified in the text box. The decision to render the button, hyperlink, or image link relies on the following rule:
If property 'imgSrc' is specified, then an image link (<img> tag with enclosing <a> tag) is rendered. Otherwise, if property 'linkLabel' is specified, the hyperlink (text with enclosing tag <a>) is rendered. If none of these are specified, the button is rendered by default.
| Field Summary |
|---|
| Fields inherited from class javax.faces.webapp.UIComponentClassicTagBase |
|---|
bodyContent, pageContext, UNIQUE_ID_PREFIX |
| Fields inherited from class javax.faces.webapp.UIComponentTagBase |
|---|
log |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Constructor Summary | |
|---|---|
GoToPageTag()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getComponentType()
|
java.lang.String |
getRendererType()
|
void |
setButtonLabel(java.lang.String buttonLabel)
Set label of submit button. |
void |
setExceedMaxPageAlert(java.lang.String exceedMaxPageAlert)
Set the alert message which is displayed when page number typed in the text box is greater than total pages. |
void |
setImgHeight(java.lang.String imgHeight)
Specifies the height (pixels %) of the image. |
void |
setImgSrc(java.lang.String imgSrc)
Absolute or relative URL of the image to be displayed for the image link. |
void |
setImgStyle(java.lang.String imgStyle)
Specifies an inline style for the image. |
void |
setImgStyleClass(java.lang.String imgStyleClass)
Specifies a classname for the image. |
void |
setImgWidth(java.lang.String imgWidth)
Specifies the width (pixels %) of the image. |
void |
setInvalidPageAlert(java.lang.String invalidPageAlert)
Set the alert message which is displayed when an invalid integer number is typed in the text box. |
void |
setLinkLabel(java.lang.String linkLabel)
Set the text label for the hyperlink if rendered. |
void |
setProperties(javax.faces.component.UIComponent component)
|
void |
setTextAccesskey(java.lang.String textAccesskey)
Access key that, when pressed, transfers focus to this element (text box). |
void |
setTextMaxlength(java.lang.String textMaxlength)
The maximum number of characters that may be entered in the text box. |
void |
setTextSize(java.lang.String textSize)
The number of characters used to determine the width of the text box. |
void |
setTextStyle(java.lang.String textStyle)
Specifies an inline style for the text box. |
void |
setTextStyleClass(java.lang.String textStyleClass)
Space-separated list of CSS style class(es) to be applied to the text box. |
void |
setTextTabindex(java.lang.String textTabindex)
Position of text box in the tabbing order for the current document. |
void |
setTextTitle(java.lang.String textTitle)
Advisory title information about markup elements generated for the text box. |
| Methods inherited from class org.hdpagination.web.jsf.tag.AbstractBaseTag |
|---|
setAccesskey, setPagiDefinitionId, setStyle, setStyleClass, setTabindex, setTitle |
| Methods inherited from class javax.faces.webapp.UIComponentTag |
|---|
createComponent, getParentUIComponentTag, hasBinding, isSuppressed, isValueReference, release, setBinding, setRendered |
| Methods inherited from class javax.faces.webapp.UIComponentClassicTagBase |
|---|
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doEndTag, doInitBody, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter |
| Methods inherited from class javax.faces.webapp.UIComponentTagBase |
|---|
getELContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
doEndTag, doStartTag, getParent, setPageContext, setParent |
| Constructor Detail |
|---|
public GoToPageTag()
| Method Detail |
|---|
public java.lang.String getRendererType()
getRendererType in class javax.faces.webapp.UIComponentTagBasepublic java.lang.String getComponentType()
getComponentType in class javax.faces.webapp.UIComponentTagBasepublic void setButtonLabel(java.lang.String buttonLabel)
buttonLabel - public void setInvalidPageAlert(java.lang.String invalidPageAlert)
invalidPageAlert - public void setExceedMaxPageAlert(java.lang.String exceedMaxPageAlert)
exceedMaxPageAlert - public void setImgSrc(java.lang.String imgSrc)
imgSrc - public void setImgWidth(java.lang.String imgWidth)
imgWidth - public void setImgHeight(java.lang.String imgHeight)
imgHeight - public void setImgStyleClass(java.lang.String imgStyleClass)
imgStyleClass - public void setImgStyle(java.lang.String imgStyle)
imgStyle - public void setTextStyleClass(java.lang.String textStyleClass)
textStyleClass - public void setTextStyle(java.lang.String textStyle)
textStyle - public void setTextTabindex(java.lang.String textTabindex)
textTabindex - public void setTextTitle(java.lang.String textTitle)
textTitle - public void setTextSize(java.lang.String textSize)
textSize - public void setTextMaxlength(java.lang.String textMaxlength)
textMaxlength - public void setTextAccesskey(java.lang.String textAccesskey)
textAccesskey - public void setLinkLabel(java.lang.String linkLabel)
linkLabel - public void setProperties(javax.faces.component.UIComponent component)
setProperties in class AbstractBaseTag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||