org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class AutoSubmitUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.AutoSubmitUtils

public class AutoSubmitUtils
extends java.lang.Object

Public utility methods useful for working with AutoSubmits

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/xhtml/AutoSubmitUtils.java#0 $) $Date: 10-nov-2005.19:01:20 $
Author:
The Oracle ADF Faces Team

Constructor Summary
AutoSubmitUtils()
           
 
Method Summary
static java.lang.String getFullPageSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String source, boolean immediate, java.lang.String event, java.lang.String extraParams, boolean returnTrue)
           
static java.lang.String getParameters(javax.faces.component.UIComponent comp)
          Find all UIParameter children of a component, and return it as a JS string of "name1:value1,name2:value2".
static java.lang.String getPartialGetScript(java.lang.String destination)
          Returns a String value which can be used as the onclick handler for an element which fires partial change events.
static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String source, boolean immediate)
           
static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String source, boolean immediate, boolean isRadio)
           
static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String source, boolean immediate, boolean isRadio, java.lang.String event, java.lang.String extraParams, boolean returnTrue)
          TODO: remove "isRadio", which shouldn't be necessary
static void writeDependencies(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSubmitUtils

public AutoSubmitUtils()
Method Detail

writeDependencies

public static void writeDependencies(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc)
                              throws java.io.IOException
Throws:
java.io.IOException

getParameters

public static java.lang.String getParameters(javax.faces.component.UIComponent comp)
Find all UIParameter children of a component, and return it as a JS string of "name1:value1,name2:value2".


getFullPageSubmitScript

public static java.lang.String getFullPageSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                                       java.lang.String source,
                                                       boolean immediate,
                                                       java.lang.String event,
                                                       java.lang.String extraParams,
                                                       boolean returnTrue)

getPartialGetScript

public static java.lang.String getPartialGetScript(java.lang.String destination)
Returns a String value which can be used as the onclick handler for an element which fires partial change events.

Parameters:
destination - The destination URL, which contains any event information, including the partialTargets parameter.

getSubmitScript

public static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                               java.lang.String source,
                                               boolean immediate)

getSubmitScript

public static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                               java.lang.String source,
                                               boolean immediate,
                                               boolean isRadio)

getSubmitScript

public static java.lang.String getSubmitScript(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                               java.lang.String source,
                                               boolean immediate,
                                               boolean isRadio,
                                               java.lang.String event,
                                               java.lang.String extraParams,
                                               boolean returnTrue)
TODO: remove "isRadio", which shouldn't be necessary



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.