java.lang.Object
java.util.EventObject
jakarta.faces.event.FacesEvent
jakarta.faces.event.ValueChangeEvent
org.omnifaces.event.HashChangeEvent
- All Implemented Interfaces:
Serializable
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 Faces event.
- Since:
- 3.2
- Author:
- Bauke Scholtz
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionHashChangeEvent(FacesContext context, String oldHashQueryString, String newHashQueryString) Constructs a new hash change event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current view root.Returns the new hash query string value.Returns the old hash query string value.Methods inherited from class jakarta.faces.event.ValueChangeEvent
isAppropriateListener, processListenerMethods inherited from class jakarta.faces.event.FacesEvent
getFacesContext, getPhaseId, queue, setPhaseIdMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HashChangeEvent
Constructs a new hash change event.- Parameters:
context- The involved faces context.oldHashQueryString- The old hash query string.newHashQueryString- The new hash query string.
-
-
Method Details
-
getComponent
Returns the current view root.- Overrides:
getComponentin classFacesEvent- Returns:
- The current view root.
-
getOldValue
Returns the old hash query string value.- Overrides:
getOldValuein classValueChangeEvent- Returns:
- The old hash query string value.
-
getNewValue
Returns the new hash query string value.- Overrides:
getNewValuein classValueChangeEvent- Returns:
- The new hash query string value.
-