org.dspace.app.webui.jsptag
Class SelectEPersonTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.dspace.app.webui.jsptag.SelectEPersonTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class SelectEPersonTag
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

Field Summary
 
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
 
Constructor Summary
SelectEPersonTag()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setMultiple(String s)
          Setter for multiple attribute
 void setSelected(Object e)
          Setter for e-people in list
 
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
 

Constructor Detail

SelectEPersonTag

public SelectEPersonTag()
Method Detail

setMultiple

public void setMultiple(String s)
Setter for multiple attribute

Parameters:
s - attribute from JSP

setSelected

public void setSelected(Object e)
Setter for e-people in list

Parameters:
e - 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.