public class HashChangeEvent extends ValueChangeEvent
This event is fired by <o:hashParam> when hash parameters have been changed in the client side.
This is particularly useful in case you intend to (re)run some action based on the new hash parameters, before
rendering takes place.
Noted should be that the <o:hashParam> fires this as a CDI event, not as a JSF event.
HashParam,
Serialized Formsource| Constructor and Description |
|---|
HashChangeEvent(FacesContext context,
String oldHashQueryString,
String newHashQueryString)
Constructs a new hash change event.
|
| Modifier and Type | Method and Description |
|---|---|
UIViewRoot |
getComponent()
Returns the current view root.
|
String |
getNewValue()
Returns the new hash query string value.
|
String |
getOldValue()
Returns the old hash query string value.
|
isAppropriateListener, processListenergetFacesContext, getPhaseId, queue, setPhaseIdgetSource, toStringpublic HashChangeEvent(FacesContext context, String oldHashQueryString, String newHashQueryString)
context - The involved faces context.oldHashQueryString - The old hash query string.newHashQueryString - The new hash query string.public UIViewRoot getComponent()
getComponent in class FacesEventpublic String getOldValue()
getOldValue in class ValueChangeEventpublic String getNewValue()
getNewValue in class ValueChangeEventCopyright © 2012–2022 OmniFaces. All rights reserved.