org.omnifaces.component.output.cache.el
Class CacheValue

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by org.omnifaces.component.output.cache.el.CacheValue
All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler

public class CacheValue
extends javax.faces.view.facelets.TagHandler

This handler wraps a value expression that's actually a method expression by another value expression that returns a method expression that gets the value of first value expression, which as "side-effect" executes the original method expression.

This somewhat over-the-top chain of wrapping is done so a method expression can be passed into a Facelet tag as parameter.

Author:
Arjan Tijms

Field Summary
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
CacheValue(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

CacheValue

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

apply

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