|
||||||||||
| 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.BooleanOptionListTag
public class BooleanOptionListTag
This tag creates an option list for the specified dsn.field.
The option list defaults to Yes/No and the fields current value is set as the selected value. You can optionally specify your own values for the display and stored values.example: <select name="<tc:dataFieldUID dsn='Account' field='Status' />"> <tc:booleanOptionList dsn="Account" field="Status" /> </select>
example: <tc:booleanOptionList dsn="Account" field="Status" displayValues="Open,Closed"/>
example: <tc:booleanOptionList dsn="Account" field="Status" displayValues="New,Old"/>
example: <tc:booleanOptionList dsn="Account" field="Status" displayValues="Pending,Closed,Open" codeValues=",false,true" states="null,false,true" />

| 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 | |
|---|---|
BooleanOptionListTag()
Create a new tag instance. |
|
| Method Summary | |
|---|---|
int |
doEndTag()
Resets the tags internal state. |
int |
doStartTag()
Create the option list tags. |
java.lang.String |
getDsn()
Gets the data source name. |
java.lang.String |
getField()
Gets the field name . |
void |
setCodeValues(java.lang.String codes)
Sets the possible code ( stored ) values in the option list. |
void |
setDisplayValues(java.lang.String values)
Sets the possible choices in the option list. |
void |
setDsn(java.lang.String dsn)
Set the name of the data source this field to test as a boolean ( optional ). |
void |
setField(java.lang.String field)
Sets the field name attribute ( optional ). |
void |
setStates(java.lang.String states)
Sets the possible "states" in the option list. |
| 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 BooleanOptionListTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public java.lang.String getDsn()
public java.lang.String getField()
public void setCodeValues(java.lang.String codes)
codes - the supported code valuespublic void setDisplayValues(java.lang.String values)
values - the supported choice valuespublic void setDsn(java.lang.String dsn)
dsn - the new dsn fieldValuepublic void setField(java.lang.String field)
field - the new field fieldValuepublic void setStates(java.lang.String states)
states - the supported states
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||