com.ocpsoft.pretty.faces.component
Class LocationBehavior

java.lang.Object
  extended by javax.faces.component.behavior.BehaviorBase
      extended by javax.faces.component.behavior.ClientBehaviorBase
          extended by com.ocpsoft.pretty.faces.component.LocationBehavior
All Implemented Interfaces:
javax.faces.component.behavior.Behavior, javax.faces.component.behavior.ClientBehavior, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder

public class LocationBehavior
extends javax.faces.component.behavior.ClientBehaviorBase

Simple JSF2 client behavior that changes the current URL by setting window.location.href.

Author:
Christian Kaltepoth

Constructor Summary
LocationBehavior()
           
 
Method Summary
 String getMappingId()
           
 String getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext)
           
 String getUrl()
           
 void setMappingId(String mappingId)
           
 void setUrl(String url)
           
 
Methods inherited from class javax.faces.component.behavior.ClientBehaviorBase
decode, getHints, getRenderer, getRendererType
 
Methods inherited from class javax.faces.component.behavior.BehaviorBase
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, restoreState, saveState, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.Behavior
broadcast
 

Constructor Detail

LocationBehavior

public LocationBehavior()
Method Detail

getScript

public String getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext)
Specified by:
getScript in interface javax.faces.component.behavior.ClientBehavior
Overrides:
getScript in class javax.faces.component.behavior.ClientBehaviorBase

getMappingId

public String getMappingId()

setMappingId

public void setMappingId(String mappingId)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)


Copyright © 2011. All Rights Reserved.