| java.lang.Object javax.servlet.jsp.tagext.TagSupport com.sun.portal.wireless.taglibs.base.BaseTagSupport com.sun.portal.wireless.taglibs.base.BeanTag
All known Subclasses: com.sun.portal.wireless.taglibs.cal.socs.CalIdTag, com.sun.portal.wireless.taglibs.cal.TaskTag, com.sun.portal.wireless.taglibs.mail.FolderTag, com.sun.portal.wireless.taglibs.mail.AttachmentTag, com.sun.portal.wireless.taglibs.base.ContextTag, com.sun.portal.wireless.taglibs.cal.DateTimeTag, com.sun.portal.wireless.taglibs.mail.MessageTag, com.sun.portal.wireless.taglibs.util.DateTag, com.sun.portal.wireless.taglibs.ab.ABEntryTag, com.sun.portal.wireless.taglibs.commprefs.PresetMsgTag, com.sun.portal.wireless.taglibs.util.BeanTag, com.sun.portal.wireless.taglibs.mail.ConfigTag, com.sun.portal.wireless.taglibs.mail.VoiceViewTag, com.sun.portal.wireless.taglibs.cal.EventTag, com.sun.portal.wireless.taglibs.cal.socs.ReminderTag, com.sun.portal.wireless.taglibs.mail.LineTag, com.sun.portal.wireless.taglibs.commprefs.PopConfigTag, com.sun.portal.wireless.taglibs.commprefs.ViewTag, com.sun.portal.wireless.taglibs.mail.ViewTag, com.sun.portal.wireless.taglibs.mail.PresetMsgTag, com.sun.portal.wireless.taglibs.cal.RecurrenceTag, com.sun.portal.wireless.taglibs.mail.IndentParagraphTag, com.sun.portal.wireless.taglibs.commprefs.RuleTag,
BeanTag | abstract public class BeanTag extends BaseTagSupport implements BeanHolder(Code) | | BeanTag - tag that represents a bean
This tag encapsulates a bean or object for
use with other tags such as get and set.
Attributes:
id
name to store the new bean in the page context
name
name to use to find the bean in the page context
Either "id" or "name" attribute must be used.
Implementations of these attributes is inheirited
from the TagSupport class.
Subclasses must implement the newBean() method
which will be called to create a new bean.
Cooperative classes use the getBean() method to
get a handle on the bean when this tag is used
as a parent.
author: Robert O'Brien version: 1.0 See Also: BeanGetTag See Also: BeanSetTag |
Method Summary | |
public int | doEndTag() | public int | doStartTag() Make the bean available. | public Object | findBean() Find the bean
If the "name" attribute is specified the get
the bean from then page context.
Otherwise search for the bean elsewhere.
If there is a parent CollectionTag then use
it to get the current item. | public Object | getBean() | abstract public Object | newBean() Create a new bean
Subclasses must implement this method to
return the bean object that this tag represents. | public void | release() | public void | setBean(Object bean) |
bean | protected Object bean(Code) | | The bean object this tag represents
|
findBean | public Object findBean() throws Exception(Code) | | Find the bean
If the "name" attribute is specified the get
the bean from then page context.
Otherwise search for the bean elsewhere.
If there is a parent CollectionTag then use
it to get the current item. Otherwise call
newBean() to create a new object.
If the "id" attribute is specified then store
the bean into the page context using "id".
the found bean |
getBean | public Object getBean()(Code) | | Get the bean object
the bean object |
newBean | abstract public Object newBean() throws Exception(Code) | | Create a new bean
Subclasses must implement this method to
return the bean object that this tag represents.
the newly created bean |
release | public void release()(Code) | | Cleanup
|
setBean | public void setBean(Object bean)(Code) | | Set the bean object
Parameters: bean - the bean object |
Fields inherited from com.sun.portal.wireless.taglibs.base.BaseTagSupport | protected String name(Code)(Java Doc)
|
|
|