Class HashChangeEvent

  • All Implemented Interfaces:
    Serializable

    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 Faces event.

    Since:
    3.2
    Author:
    Bauke Scholtz
    See Also:
    HashParam, Serialized Form
    • Constructor Detail

      • HashChangeEvent

        public HashChangeEvent​(FacesContext context,
                               String oldHashQueryString,
                               String newHashQueryString)
        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 Detail

      • getOldValue

        public String getOldValue()
        Returns the old hash query string value.
        Overrides:
        getOldValue in class ValueChangeEvent
        Returns:
        The old hash query string value.
      • getNewValue

        public String getNewValue()
        Returns the new hash query string value.
        Overrides:
        getNewValue in class ValueChangeEvent
        Returns:
        The new hash query string value.