Top Description Fields Constructors Methods
com.sun.faces.taglib.html_basic

public Class CommandTagParserImpl

extends Object
implements TagParser
Class Inheritance
All Implemented Interfaces
com.sun.faces.taglib.TagParser
Imports
com.sun.faces.RIConstants, com.sun.faces.taglib.TagParser, .ValidatorInfo, org.xml.sax.Attributes, java.text.MessageFormat, java.util.ResourceBundle

Parses the command tag attributes and verifies that the required attributes are present

Field Summary

Modifier and TypeField and Description
private boolean
private StringBuffer
private ValidatorInfo

Constructor Summary

AccessConstructor and Description
public
CommandTagParserImpl()

CommandTagParserImpl constructor

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

String Failure message
getMessage
()

Implements com.sun.faces.taglib.TagParser.getMessage.

Get the failure message

private void
handleCommandButton()

set failed flag to true unless tag has a value attribute.

public boolean

Returns:

boolean false if validation conditions have not been met
hasFailed
()

Implements com.sun.faces.taglib.TagParser.hasFailed.

Return false if validator conditions have not been met

public void
public void
public void
setValidatorInfo(ValidatorInfo
object with current tag info
validatorInfo
)

Implements com.sun.faces.taglib.TagParser.setValidatorInfo.

Set the validator info object that has the current tag information

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

failedback to summary
private boolean failed
failureMessagesback to summary
private StringBuffer failureMessages
validatorInfoback to summary
private ValidatorInfo validatorInfo

Constructor Detail

CommandTagParserImplback to summary
public CommandTagParserImpl()

CommandTagParserImpl constructor

Method Detail

getMessageback to summary
public String getMessage()

Implements com.sun.faces.taglib.TagParser.getMessage.

Get the failure message

Returns:String

String Failure message

Annotations
@Override
handleCommandButtonback to summary
private void handleCommandButton()

set failed flag to true unless tag has a value attribute

.

PRECONDITION: qn is a commandButton

hasFailedback to summary
public boolean hasFailed()

Implements com.sun.faces.taglib.TagParser.hasFailed.

Return false if validator conditions have not been met

Returns:boolean

boolean false if validation conditions have not been met

Annotations
@Override
parseEndElementback to summary
public void parseEndElement()

Implements com.sun.faces.taglib.TagParser.parseEndElement.

Parse the end element

Annotations
@Override
parseStartElementback to summary
public void parseStartElement()

Implements com.sun.faces.taglib.TagParser.parseStartElement.

Parse the starting element. Parcel out to appropriate handler method.

Annotations
@Override
setValidatorInfoback to summary
public void setValidatorInfo(ValidatorInfo validatorInfo)

Implements com.sun.faces.taglib.TagParser.setValidatorInfo.

Set the validator info object that has the current tag information

Parameters
validatorInfo:ValidatorInfo

object with current tag info

Annotations
@Override