Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<html xmlns:javaee="http://java.sun.com/xml/ns/javaee">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>jsFunction
         (VDL Documentation)
         
      </title>
      <meta name="keywords" content="$tagname">
      <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" title="Style">
   </head><script>
                function asd()
                {
                parent.document.title="jsFunction (VDL Documentation)";
                }
            </script><body bgcolor="white" onload="asd();"><a name="navbar_top"></a><table border="0" width="100%" cellpadding="1" cellspacing="0">
         <tr>
            <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><a NAME="navbar_top_firstrow"></a><table BORDER="0" CELLPADDING="0" CELLSPACING="3">
                  <tr ALIGN="center" VALIGN="top">
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<font CLASS="NavBarFont1Rev">&nbsp;Tag&nbsp;</font>&nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a>
                        &nbsp;
                        
                     </td>
                  </tr>
               </table>
            </td>
            <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em></em></td>
         </tr>
         <tr>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2"></font></td>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
                  &nbsp;
                  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a>
                  &nbsp;
                  &nbsp;
                  <a href="jsFunction.html" target="_top"><b>NO FRAMES</b></a>
                  &nbsp;
                  <script></script><noscript><a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a></noscript></font></td>
         </tr>
      </table>
      <hr>
      <h2><font size="-1">a4j</font><br>
         Tag
         jsFunction
      </h2>
      <hr><p> The &lt;a4j:jsFunction&gt; component performs Ajax requests directly from JavaScript code and retrieves server-side data.
      The server-side data is returned in JavaScript Object Notation (JSON) format prior to the execution of any JavaScript code
      defined using the "oncomplete" attribute. </p> @author asmirnov@exadel.com<br><p></p>
      <hr>
      <table border="1" cellpadding="3" cellspacing="0" width="100%">
         <tr bgcolor="#CCCCFF" class="TableHeadingColor">
            <td colspan="2"><font size="+2"><b>Tag Information</b></font></td>
         </tr>
         <tr>
            <td>Component type</td>
            <td>org.richfaces.Function</td>
         </tr>
         <tr>
            <td>Tag Name</td>
            <td>a4j:jsFunction</td>
         </tr>
         <tr>
            <td>Renderer Type</td>
            <td>org.richfaces.FunctionRenderer</td>
         </tr>
         <tr>
            <td>Handler Class</td>
            <td><i>None</i></td>
         </tr>
      </table><br><p></p>
      <table border="1" cellpadding="3" cellspacing="0" width="100%">
         <tr bgcolor="#CCCCFF" class="TableHeadingColor">
            <td colspan="5"><font size="+2"><b>Attributes</b></font></td>
         </tr>
         <tr>
            <td><b>Name</b></td>
            <td><b>Required</b></td>
            <td><b>Type</b></td>
            <td><b>Description</b></td>
         </tr>
         <tr valign="top">
            <td>action</td>
            <td>false</td>
            <td><code>javax.faces.el.MethodBinding</code></td>
            <td>MethodExpression representing the application action to invoke when this component is activated by the user. The expression
               must evaluate to a public method that takes no parameters, and returns an Object (the toString() of which is called to derive
               the logical outcome) which is passed to the NavigationHandler for this application.
            </td>
         </tr>
         <tr valign="top">
            <td>actionListener</td>
            <td>false</td>
            <td><code>javax.faces.el.MethodBinding</code></td>
            <td><p> MethodExpression representing an action listener method that will be notified when this component is activated by the
               user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void, <span
               class="changed_added_2_0">or to a public method that takes no arguments with a return type of void. In the latter case, the
               method has no way of easily knowing where the event came from, but this can be useful in cases where a notification is needed
               that "some action happened".</span> </p>
            </td>
         </tr>
         <tr valign="top">
            <td>binding</td>
            <td>false</td>
            <td><code>javax.faces.component.UIComponent</code></td>
            <td>The value binding expression used to wire up this component to a component property of a JavaBean class</td>
         </tr>
         <tr valign="top">
            <td>bypassUpdates</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for
               validating components input
            </td>
         </tr>
         <tr valign="top">
            <td>data</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>Serialized (on default with JSON) data passed to the client by a developer on an AJAX request. It's accessible via "event.data"
               syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data
            </td>
         </tr>
         <tr valign="top">
            <td>execute</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>Ids of components that will participate in the "execute" portion of the Request Processing Lifecycle. Can be a single id,
               a space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this",
               "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
            </td>
         </tr>
         <tr valign="top">
            <td>id</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The component identifier for this component. This value must be unique within the closest parent component that is a naming
               container.
            </td>
         </tr>
         <tr valign="top">
            <td>immediate</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners
               and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.
            </td>
         </tr>
         <tr valign="top">
            <td>limitRender</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>If "true", render only those ids specified in the "render" attribute, forgoing the render of the auto-rendered panels</td>
         </tr>
         <tr valign="top">
            <td>name</td>
            <td>true</td>
            <td><code>java.lang.String</code></td>
            <td>The name of the generated javascript function</td>
         </tr>
         <tr valign="top">
            <td>onbeforedomupdate</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called after the ajax response comes back, but before the DOM is updated</td>
         </tr>
         <tr valign="top">
            <td>onbegin</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called before an ajax request.</td>
         </tr>
         <tr valign="top">
            <td>oncomplete</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called after the DOM is updated</td>
         </tr>
         <tr valign="top">
            <td>render</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>Ids of components that will participate in the "render" portion of the Request Processing Lifecycle. Can be a single id, a
               space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this",
               "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
            </td>
         </tr>
         <tr valign="top">
            <td>rendered</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent
               form submit. The default value for this property is true.
            </td>
         </tr>
         <tr valign="top">
            <td>status</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Name of the request status component that will indicate the status of the Ajax request</td>
         </tr>
         <tr valign="top">
            <td>value</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>The current value of this component.</td>
         </tr>
      </table><br><p></p><a name="navbar_bottom"></a><table border="0" width="100%" cellpadding="1" cellspacing="0">
         <tr>
            <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><a NAME="navbar_bottom_firstrow"></a><table BORDER="0" CELLPADDING="0" CELLSPACING="3">
                  <tr ALIGN="center" VALIGN="top">
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<font CLASS="NavBarFont1Rev">&nbsp;Tag&nbsp;</font>&nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a>
                        &nbsp;
                        
                     </td>
                  </tr>
               </table>
            </td>
            <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em></em></td>
         </tr>
         <tr>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2"></font></td>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
                  &nbsp;
                  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a>
                  &nbsp;
                  &nbsp;
                  <a href="jsFunction.html" target="_top"><b>NO FRAMES</b></a>
                  &nbsp;
                  <script></script><noscript><a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a></noscript></font></td>
         </tr>
      </table>
      <hr><small><i>
            Output Generated by
            <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation
               Generator</a>.
            </i></small></body>
</html>
New to GrepCode? Check out our FAQ X