|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.HQLOptionListTag
public class HQLOptionListTag
This tag creates an option list that is filled directly from an HQL query rather than from a Datasource or code table.
The HQL query must return are least two columns, and the first column must be the code value. Where the code value is usually the PK. The second column is used for the display value.
If the HQL returns three columns, then the third one is used for the title attribute.
Like the other option list tags, this one will attempt to automatically selected the correct option based upon this tag's context.
![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
HQLOptionListTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Resets the tags internal state. |
int |
doStartTag()
Creates and the option list tags and sends them to the page. |
java.lang.String |
getCacheRegion()
|
java.lang.String |
getFilter()
Gets the filter expression string. |
java.lang.String |
getHql()
|
java.lang.String |
getSelected()
Gets the selected item. |
java.lang.String |
getSelectedFK()
Gets the selectedFK attribute. |
java.lang.String |
getSelectedStyleclass()
Gets the CSS style class to be used to selected items in the option list. |
java.lang.String |
getStyleclass()
Gets the CSS style class to be used to items in the option list. |
boolean |
isCachable()
|
void |
setCachable(boolean cachable)
|
void |
setCacheRegion(java.lang.String cacheRegion)
|
void |
setCondition(java.lang.String expression)
Sets the condition filter to be applied to source data source. |
void |
setEmptyItem(boolean emptyItem)
Set to true to add an empty item to the option list. |
void |
setHql(java.lang.String hql)
|
void |
setSelected(java.lang.String selected)
Sets the selected attribute. |
void |
setSelectedFK(java.lang.String selectedFK)
Sets the selectedFK attribute. |
void |
setSelectedStyleclass(java.lang.String selectedStyleclass)
Sets the CSS style class to be used to selected items in the option list. |
void |
setStyleclass(java.lang.String styleclass)
Sets the CSS style class to be used to items in the option list. |
void |
setTitleProperty(java.lang.String titleProperty)
|
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setScope, setValue, setVar |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HQLOptionListTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public java.lang.String getHql()
public void setHql(java.lang.String hql)
hql - the hql to setpublic java.lang.String getCacheRegion()
public void setCacheRegion(java.lang.String cacheRegion)
cacheRegion - the cacheRegion to setpublic boolean isCachable()
public void setCachable(boolean cachable)
cachable - the cachable to setpublic java.lang.String getFilter()
public java.lang.String getSelected()
public java.lang.String getSelectedFK()
public java.lang.String getSelectedStyleclass()
public java.lang.String getStyleclass()
public void setEmptyItem(boolean emptyItem)
emptyItem - The new codeField valuepublic void setCondition(java.lang.String expression)
expression - The filter expressionpublic void setSelected(java.lang.String selected)
selected - The new selected valuepublic void setSelectedFK(java.lang.String selectedFK)
selectedFK - The selectedFK valuepublic void setSelectedStyleclass(java.lang.String selectedStyleclass)
selectedStyleclass - the CSS style class to be used to selected items in the option
list.public void setStyleclass(java.lang.String styleclass)
styleclass - the CSS style class to be used to items in the option listpublic void setTitleProperty(java.lang.String titleProperty)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||