org.dspace.app.webui.jsptag
Class SelectGroupTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.dspace.app.webui.jsptag.SelectGroupTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class SelectGroupTag
- extends javax.servlet.jsp.tagext.TagSupport
Tag for producing an e-person select widget in a form. Somewhat
analogous to the HTML SELECT element. An input
field is produced with a button which pops up a window from which
e-people can be selected. Selected e-epeople are added to the field
in the form. If the selector is for multiple e-people, a 'remove
selected from list' button is also added.
On any form that has a selecteperson tag (only one allowed per page),
you need to include the following Javascript code on all of the submit
buttons, to ensure that the e-people IDs are posted and that the popup
window is closed:
onclick="javascript:finishEPerson();"
- Version:
- $Revision$
- Author:
- Robert Tansley
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectGroupTag
public SelectGroupTag()
setMultiple
public void setMultiple(String s)
- Setter for multiple attribute
- Parameters:
s - attribute from JSP
setSelected
public void setSelected(Object g)
- Setter for groups in list
- Parameters:
g - attribute from JSP
release
public void release()
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag- Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
Copyright © 2013 DuraSpace. All Rights Reserved.