org.apache.myfaces.custom.autoscroll
Class AutoscrollPageTagHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by org.apache.myfaces.custom.autoscroll.AutoscrollPageTagHandler
All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler

@JSFFaceletTag(name="t:autoScrollPage")
public class AutoscrollPageTagHandler
extends javax.faces.view.facelets.TagHandler

Adds to UICommand components that implements ClientBehaviorHolder interface an AutoscrollBehavior.

Use it in this way to ensure proper operation:

<f:metadata> <t:autoScrollPage/> </f:metadata>

Or in this way:

<h:body> <t:autoScrollPage/>

It is possible to use it at start of the page too, but note this tag attach a listener to PostAddToViewEvent, so previous components added to the view before apply this TagHandler will not be taken into account.

Since:
1.1.10
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Nested Class Summary
static class AutoscrollPageTagHandler.RegisterAutoscrollBehaviorOnCommandListener
           
static class AutoscrollPageTagHandler.RegisterAutoscrollListener
           
 
Field Summary
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
AutoscrollPageTagHandler(javax.faces.view.facelets.TagConfig config)
           
 
Method Summary
 void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent)
           
 
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoscrollPageTagHandler

public AutoscrollPageTagHandler(javax.faces.view.facelets.TagConfig config)
Method Detail

apply

public void apply(javax.faces.view.facelets.FaceletContext ctx,
                  javax.faces.component.UIComponent parent)
           throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.