public class PartialViewContextOnChangeImpl
extends javax.faces.context.PartialViewContextWrapper
This class is a wrapper around the PartialViewContext. Its purpose is to provide a way to provide a way
for components to handle validation for required fields with "onchange" behavior rather than "onblur" behavior. For
example, the ICEfaces ace:textEntry
component only suppors the "onblur" event when used with ace:ajax. In the case of required="true", the
JSF PROCESS_VALIDATIONS phase will add a EditableValueHolder#REQUIRED_MESSAGE_ID FacesMessage when
the user tabs-out of the field. By specifying the following in the WEB-INF/faces-config.xml descriptor, the
FacesMessages will be removed which approximates the behavior of the "onchange" event:
<partial-view-context-factory>com.liferay.faces.util.context.PartialViewContextFactoryOnChangeImpl</partial-view-context-factory>
| Constructor and Description |
|---|
PartialViewContextOnChangeImpl(javax.faces.context.PartialViewContext partialViewContext,
javax.faces.context.FacesContext facesContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.context.PartialViewContext |
getWrapped() |
void |
processPartial(javax.faces.event.PhaseId phaseId) |
void |
setPartialRequest(boolean isPartialRequest)
This method is missing from the
PartialViewContextWrapper class so it must be implemented here. |
public PartialViewContextOnChangeImpl(javax.faces.context.PartialViewContext partialViewContext,
javax.faces.context.FacesContext facesContext)
public javax.faces.context.PartialViewContext getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.PartialViewContext>getWrapped in class javax.faces.context.PartialViewContextWrapperpublic void processPartial(javax.faces.event.PhaseId phaseId)
processPartial in class javax.faces.context.PartialViewContextWrapperpublic void setPartialRequest(boolean isPartialRequest)
PartialViewContextWrapper class so it must be implemented here.setPartialRequest in class javax.faces.context.PartialViewContextWrapperCopyright © 2016 Liferay, Inc.. All rights reserved.