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, processListener
getFacesContext, getPhaseId, queue, setPhaseId
getSource, toString
public 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 FacesEvent
public String getOldValue()
getOldValue
in class ValueChangeEvent
public String getNewValue()
getNewValue
in class ValueChangeEvent
Copyright © 2012–2020 OmniFaces. All rights reserved.