You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2013/05/28 21:10:45 UTC

svn commit: r1487049 - in /myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets: TabChangeListenerHandler.html TabChangeSourceRule.html TagMethodExpression.html TobagoComponentHandler.html TobagoValidateHandler.html

Author: bommel
Date: Tue May 28 19:10:44 2013
New Revision: 1487049

URL: http://svn.apache.org/r1487049
Log:
tobago 1.5.10

Added:
    myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html   (with props)
    myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html   (with props)
    myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html   (with props)
    myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html   (with props)
    myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html   (with props)

Added: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html?rev=1487049&view=auto
==============================================================================
--- myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html (added)
+++ myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html Tue May 28 19:10:44 2013
@@ -0,0 +1,110 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de_DE" lang="de_DE">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TabChangeListenerHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a name="3" href="#3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a name="4" href="#4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a name="5" href="#5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a name="6" href="#6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a name="7" href="#7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a name="8" href="#8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a name="9" href="#9">9</a>   <em class="jxr_comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="11" href="#11">11</a>  <em class="jxr_comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a name="13" href="#13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a name="14" href="#14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a name="15" href="#15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a name="16" href="#16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a name="17" href="#17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a name="18" href="#18">18</a>  <em class="jxr_comment"> */</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.myfaces.tobago.facelets;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.TabChangeListener;
+<a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.TabChangeSource;
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.ValueExpressionTabChangeListener;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> javax.el.ELException;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.el.ValueExpression;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> javax.faces.FacesException;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> javax.faces.component.UIComponent;
+<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.FaceletContext;
+<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagAttribute;
+<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagAttributeException;
+<a name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagConfig;
+<a name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagException;
+<a name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagHandler;
+<a name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html">TabChangeListenerHandler</a> <strong class="jxr_keyword">extends</strong> TagHandler {
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>    <strong class="jxr_keyword">private</strong> Class listenerType;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> TagAttribute type;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> TagAttribute binding;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html">TabChangeListenerHandler</a>(TagConfig config) {
+<a name="48" href="#48">48</a>      <strong class="jxr_keyword">super</strong>(config);
+<a name="49" href="#49">49</a>      binding = getAttribute(<span class="jxr_string">"binding"</span>);
+<a name="50" href="#50">50</a>      type = getAttribute(<span class="jxr_string">"type"</span>);
+<a name="51" href="#51">51</a>      <strong class="jxr_keyword">if</strong> (type != <strong class="jxr_keyword">null</strong>) {
+<a name="52" href="#52">52</a>        <strong class="jxr_keyword">if</strong> (!type.isLiteral()) {
+<a name="53" href="#53">53</a>          <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> TagAttributeException(tag, type, <span class="jxr_string">"Must be literal"</span>);
+<a name="54" href="#54">54</a>        }
+<a name="55" href="#55">55</a>        <strong class="jxr_keyword">try</strong> {
+<a name="56" href="#56">56</a>          <strong class="jxr_keyword">this</strong>.listenerType = Class.forName(type.getValue());
+<a name="57" href="#57">57</a>        } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="58" href="#58">58</a>          <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> TagAttributeException(tag, type, e);
+<a name="59" href="#59">59</a>        }
+<a name="60" href="#60">60</a>      }
+<a name="61" href="#61">61</a>    }
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> apply(FaceletContext faceletContext, UIComponent parent)
+<a name="64" href="#64">64</a>        <strong class="jxr_keyword">throws</strong> IOException, FacesException, ELException {
+<a name="65" href="#65">65</a>      <strong class="jxr_keyword">if</strong> (parent instanceof TabChangeSource) {
+<a name="66" href="#66">66</a>        <em class="jxr_comment">// only process if parent was just created</em>
+<a name="67" href="#67">67</a>        <strong class="jxr_keyword">if</strong> (parent.getParent() == <strong class="jxr_keyword">null</strong>) {
+<a name="68" href="#68">68</a>          <a href="../../../../../org/apache/myfaces/tobago/event/TabChangeSource.html">TabChangeSource</a> changeSource = (TabChangeSource) parent;
+<a name="69" href="#69">69</a>          <a href="../../../../../org/apache/myfaces/tobago/event/TabChangeListener.html">TabChangeListener</a> listener = <strong class="jxr_keyword">null</strong>;
+<a name="70" href="#70">70</a>          ValueExpression valueExpression = <strong class="jxr_keyword">null</strong>;
+<a name="71" href="#71">71</a>          <strong class="jxr_keyword">if</strong> (binding != <strong class="jxr_keyword">null</strong>) {
+<a name="72" href="#72">72</a>            valueExpression = binding.getValueExpression(faceletContext, TabChangeListener.<strong class="jxr_keyword">class</strong>);
+<a name="73" href="#73">73</a>            listener = (TabChangeListener) valueExpression.getValue(faceletContext);
+<a name="74" href="#74">74</a>          }
+<a name="75" href="#75">75</a>          <strong class="jxr_keyword">if</strong> (listener == <strong class="jxr_keyword">null</strong>) {
+<a name="76" href="#76">76</a>            <strong class="jxr_keyword">try</strong> {
+<a name="77" href="#77">77</a>              listener = (TabChangeListener) listenerType.newInstance();
+<a name="78" href="#78">78</a>            } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="79" href="#79">79</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> TagAttributeException(tag, type, e.getCause());
+<a name="80" href="#80">80</a>            }
+<a name="81" href="#81">81</a>            <strong class="jxr_keyword">if</strong> (valueExpression != <strong class="jxr_keyword">null</strong>) {
+<a name="82" href="#82">82</a>              valueExpression.setValue(faceletContext, listener);
+<a name="83" href="#83">83</a>            }
+<a name="84" href="#84">84</a>          }
+<a name="85" href="#85">85</a>          <strong class="jxr_keyword">if</strong> (valueExpression != <strong class="jxr_keyword">null</strong>) {
+<a name="86" href="#86">86</a>            changeSource.addTabChangeListener(
+<a name="87" href="#87">87</a>                <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/myfaces/tobago/event/ValueExpressionTabChangeListener.html">ValueExpressionTabChangeListener</a>(type.getValue(), valueExpression));
+<a name="88" href="#88">88</a>          } <strong class="jxr_keyword">else</strong> {
+<a name="89" href="#89">89</a>            changeSource.addTabChangeListener(listener);
+<a name="90" href="#90">90</a>          }
+<a name="91" href="#91">91</a>        }
+<a name="92" href="#92">92</a>      } <strong class="jxr_keyword">else</strong> {
+<a name="93" href="#93">93</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> TagException(tag, <span class="jxr_string">"Parent is not of type TabChangeSource, type is: "</span> + parent);
+<a name="94" href="#94">94</a>      }
+<a name="95" href="#95">95</a>    }
+<a name="96" href="#96">96</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html?rev=1487049&view=auto
==============================================================================
--- myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html (added)
+++ myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html Tue May 28 19:10:44 2013
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de_DE" lang="de_DE">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TabChangeSourceRule xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a name="3" href="#3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a name="4" href="#4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a name="5" href="#5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a name="6" href="#6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a name="7" href="#7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a name="8" href="#8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a name="9" href="#9">9</a>   <em class="jxr_comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="11" href="#11">11</a>  <em class="jxr_comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a name="13" href="#13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a name="14" href="#14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a name="15" href="#15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a name="16" href="#16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a name="17" href="#17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a name="18" href="#18">18</a>  <em class="jxr_comment"> */</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.myfaces.tobago.facelets;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.MethodExpressionToMethodBinding;
+<a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.TabChangeEvent;
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.TabChangeSource;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.FaceletContext;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.MetaRule;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.Metadata;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.MetadataTarget;
+<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagAttribute;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeSourceRule</a> <strong class="jxr_keyword">extends</strong> MetaRule {
+<a name="33" href="#33">33</a>    <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Class[] ACTION_LISTENER = <strong class="jxr_keyword">new</strong> Class[]{TabChangeEvent.<strong class="jxr_keyword">class</strong>};
+<a name="34" href="#34">34</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeSourceRule</a> INSTANCE = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeSourceRule</a>();
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>    <strong class="jxr_keyword">public</strong> Metadata applyRule(String name, TagAttribute attribute,
+<a name="37" href="#37">37</a>        MetadataTarget metadataTarget) {
+<a name="38" href="#38">38</a>      <strong class="jxr_keyword">if</strong> (metadataTarget.isTargetInstanceOf(TabChangeSource.<strong class="jxr_keyword">class</strong>)) {
+<a name="39" href="#39">39</a>        <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"tabChangeListener"</span>.equals(name)) {
+<a name="40" href="#40">40</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeListenerMapper</a>(attribute);
+<a name="41" href="#41">41</a>        }
+<a name="42" href="#42">42</a>      }
+<a name="43" href="#43">43</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="44" href="#44">44</a>    }
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>    <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeListenerMapper</a> <strong class="jxr_keyword">extends</strong> Metadata {
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> TagAttribute attribute;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html">TabChangeListenerMapper</a>(TagAttribute attribute) {
+<a name="51" href="#51">51</a>        <strong class="jxr_keyword">this</strong>.attribute = attribute;
+<a name="52" href="#52">52</a>      }
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> applyMetadata(FaceletContext ctx, Object instance) {
+<a name="55" href="#55">55</a>        ((<a href="../../../../../org/apache/myfaces/tobago/event/TabChangeSource.html">TabChangeSource</a>) instance).setTabChangeListener(
+<a name="56" href="#56">56</a>            <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/myfaces/tobago/component/MethodExpressionToMethodBinding.html">MethodExpressionToMethodBinding</a>(
+<a name="57" href="#57">57</a>                attribute.getMethodExpression(ctx, <strong class="jxr_keyword">null</strong>, TabChangeSourceRule.ACTION_LISTENER)));
+<a name="58" href="#58">58</a>      }
+<a name="59" href="#59">59</a>    }
+<a name="60" href="#60">60</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TabChangeSourceRule.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html?rev=1487049&view=auto
==============================================================================
--- myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html (added)
+++ myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html Tue May 28 19:10:44 2013
@@ -0,0 +1,130 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de_DE" lang="de_DE">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TagMethodExpression xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/myfaces/tobago/facelets/TagMethodExpression.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a name="3" href="#3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a name="4" href="#4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a name="5" href="#5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a name="6" href="#6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a name="7" href="#7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a name="8" href="#8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a name="9" href="#9">9</a>   <em class="jxr_comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="11" href="#11">11</a>  <em class="jxr_comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a name="13" href="#13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a name="14" href="#14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a name="15" href="#15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a name="16" href="#16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a name="17" href="#17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a name="18" href="#18">18</a>  <em class="jxr_comment"> */</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.myfaces.tobago.facelets;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> javax.el.ELContext;
+<a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> javax.el.ELException;
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> javax.el.MethodExpression;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> javax.el.MethodInfo;
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> javax.el.MethodNotFoundException;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.el.PropertyNotFoundException;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> javax.faces.FacesWrapper;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.TagAttribute;
+<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.io.Externalizable;
+<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectInput;
+<a name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectOutput;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  <em class="jxr_comment">/*</em>
+<a name="36" href="#36">36</a>  <em class="jxr_comment"> * Was copied from MyFaces-Impl.</em>
+<a name="37" href="#37">37</a>  <em class="jxr_comment"> */</em>
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="40" href="#40">40</a>  <em class="jxr_javadoccomment"> * Jacob Hookom</em>
+<a name="41" href="#41">41</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="42" href="#42">42</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TagMethodExpression.html">TagMethodExpression</a> <strong class="jxr_keyword">extends</strong> MethodExpression
+<a name="43" href="#43">43</a>      implements Externalizable, FacesWrapper&lt;MethodExpression&gt; {
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> serialVersionUID = 1L;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>    <strong class="jxr_keyword">private</strong> String attr;
+<a name="48" href="#48">48</a>    <strong class="jxr_keyword">private</strong> MethodExpression orig;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TagMethodExpression.html">TagMethodExpression</a>() {
+<a name="51" href="#51">51</a>      <strong class="jxr_keyword">super</strong>();
+<a name="52" href="#52">52</a>    }
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TagMethodExpression.html">TagMethodExpression</a>(TagAttribute attr, MethodExpression orig) {
+<a name="55" href="#55">55</a>      <strong class="jxr_keyword">this</strong>.attr = attr.toString();
+<a name="56" href="#56">56</a>      <strong class="jxr_keyword">this</strong>.orig = orig;
+<a name="57" href="#57">57</a>    }
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>    <strong class="jxr_keyword">public</strong> MethodInfo getMethodInfo(ELContext context) {
+<a name="60" href="#60">60</a>      <strong class="jxr_keyword">try</strong> {
+<a name="61" href="#61">61</a>        <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.getMethodInfo(context);
+<a name="62" href="#62">62</a>      } <strong class="jxr_keyword">catch</strong> (PropertyNotFoundException pnfe) {
+<a name="63" href="#63">63</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> PropertyNotFoundException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + pnfe.getMessage(), pnfe.getCause());
+<a name="64" href="#64">64</a>      } <strong class="jxr_keyword">catch</strong> (MethodNotFoundException mnfe) {
+<a name="65" href="#65">65</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MethodNotFoundException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + mnfe.getMessage(), mnfe.getCause());
+<a name="66" href="#66">66</a>      } <strong class="jxr_keyword">catch</strong> (ELException e) {
+<a name="67" href="#67">67</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ELException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + e.getMessage(), e.getCause());
+<a name="68" href="#68">68</a>      }
+<a name="69" href="#69">69</a>    }
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>    <strong class="jxr_keyword">public</strong> Object invoke(ELContext context, Object[] params) {
+<a name="72" href="#72">72</a>      <strong class="jxr_keyword">try</strong> {
+<a name="73" href="#73">73</a>        <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.invoke(context, params);
+<a name="74" href="#74">74</a>      } <strong class="jxr_keyword">catch</strong> (PropertyNotFoundException pnfe) {
+<a name="75" href="#75">75</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> PropertyNotFoundException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + pnfe.getMessage(), pnfe.getCause());
+<a name="76" href="#76">76</a>      } <strong class="jxr_keyword">catch</strong> (MethodNotFoundException mnfe) {
+<a name="77" href="#77">77</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MethodNotFoundException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + mnfe.getMessage(), mnfe.getCause());
+<a name="78" href="#78">78</a>      } <strong class="jxr_keyword">catch</strong> (ELException e) {
+<a name="79" href="#79">79</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ELException(<strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + e.getMessage(), e.getCause());
+<a name="80" href="#80">80</a>      }
+<a name="81" href="#81">81</a>    }
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>    <strong class="jxr_keyword">public</strong> String getExpressionString() {
+<a name="84" href="#84">84</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.getExpressionString();
+<a name="85" href="#85">85</a>    }
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object obj) {
+<a name="88" href="#88">88</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.equals(obj);
+<a name="89" href="#89">89</a>    }
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode() {
+<a name="92" href="#92">92</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.hashCode();
+<a name="93" href="#93">93</a>    }
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isLiteralText() {
+<a name="96" href="#96">96</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig.isLiteralText();
+<a name="97" href="#97">97</a>    }
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeExternal(ObjectOutput out) <strong class="jxr_keyword">throws</strong> IOException {
+<a name="100" href="#100">100</a>     out.writeObject(<strong class="jxr_keyword">this</strong>.orig);
+<a name="101" href="#101">101</a>     out.writeUTF(<strong class="jxr_keyword">this</strong>.attr);
+<a name="102" href="#102">102</a>   }
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> readExternal(ObjectInput in) <strong class="jxr_keyword">throws</strong> IOException, ClassNotFoundException {
+<a name="105" href="#105">105</a>     <strong class="jxr_keyword">this</strong>.orig = (MethodExpression) in.readObject();
+<a name="106" href="#106">106</a>     <strong class="jxr_keyword">this</strong>.attr = in.readUTF();
+<a name="107" href="#107">107</a>   }
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a>   <strong class="jxr_keyword">public</strong> String toString() {
+<a name="110" href="#110">110</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.attr + <span class="jxr_string">": "</span> + <strong class="jxr_keyword">this</strong>.orig;
+<a name="111" href="#111">111</a>   }
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</a>   <strong class="jxr_keyword">public</strong> MethodExpression getWrapped() {
+<a name="114" href="#114">114</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.orig;
+<a name="115" href="#115">115</a>   }
+<a name="116" href="#116">116</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TagMethodExpression.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html?rev=1487049&view=auto
==============================================================================
--- myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html (added)
+++ myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html Tue May 28 19:10:44 2013
@@ -0,0 +1,160 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de_DE" lang="de_DE">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TobagoComponentHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a name="3" href="#3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a name="4" href="#4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a name="5" href="#5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a name="6" href="#6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a name="7" href="#7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a name="8" href="#8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a name="9" href="#9">9</a>   <em class="jxr_comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="11" href="#11">11</a>  <em class="jxr_comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a name="13" href="#13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a name="14" href="#14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a name="15" href="#15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a name="16" href="#16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a name="17" href="#17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a name="18" href="#18">18</a>  <em class="jxr_comment"> */</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.myfaces.tobago.facelets;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.DeprecatedDimension;
+<a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.InputSuggest;
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.OnComponentCreated;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.OnComponentPopulated;
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.SupportsMarkup;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.component.SupportsRenderedPartially;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.config.TobagoConfig;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.SheetStateChangeSource;
+<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.SortActionSource;
+<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.event.TabChangeSource;
+<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.internal.component.AbstractUIFlowLayout;
+<a name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.internal.component.AbstractUIGridLayout;
+<a name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.internal.component.AbstractUIPopup;
+<a name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.internal.config.TobagoConfigImpl;
+<a name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.slf4j.Logger;
+<a name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.slf4j.LoggerFactory;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> javax.faces.component.EditableValueHolder;
+<a name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> javax.faces.component.UIComponent;
+<a name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> javax.faces.context.FacesContext;
+<a name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> javax.faces.validator.Validator;
+<a name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.ComponentConfig;
+<a name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.ComponentHandler;
+<a name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.FaceletContext;
+<a name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.MetaRuleset;
+<a name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> java.util.HashSet;
+<a name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<a name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> java.util.Set;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html">TobagoComponentHandler</a> <strong class="jxr_keyword">extends</strong> ComponentHandler {
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOG = LoggerFactory.getLogger(TobagoComponentHandler.<strong class="jxr_keyword">class</strong>);
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>    <strong class="jxr_keyword">static</strong> {
+<a name="57" href="#57">57</a>      LOG.error(<span class="jxr_string">"init"</span>);
+<a name="58" href="#58">58</a>    }
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html">TobagoComponentHandler</a>(ComponentConfig componentConfig) {
+<a name="61" href="#61">61</a>      <strong class="jxr_keyword">super</strong>(componentConfig);
+<a name="62" href="#62">62</a>    }
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>    <strong class="jxr_keyword">protected</strong> MetaRuleset createMetaRuleset(Class aClass) {
+<a name="65" href="#65">65</a>      MetaRuleset metaRuleset = <strong class="jxr_keyword">super</strong>.createMetaRuleset(aClass);
+<a name="66" href="#66">66</a>      <strong class="jxr_keyword">if</strong> (SortActionSource.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="67" href="#67">67</a>        metaRuleset.addRule(SortActionSourceRule.INSTANCE);
+<a name="68" href="#68">68</a>      }
+<a name="69" href="#69">69</a>      <strong class="jxr_keyword">if</strong> (DeprecatedDimension.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="70" href="#70">70</a>        metaRuleset.addRule(DeprecatedDimensionRule.INSTANCE);
+<a name="71" href="#71">71</a>      }
+<a name="72" href="#72">72</a>      <strong class="jxr_keyword">if</strong> (AbstractUIPopup.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="73" href="#73">73</a>        metaRuleset.addRule(PositionRule.INSTANCE);
+<a name="74" href="#74">74</a>      }
+<a name="75" href="#75">75</a>      <strong class="jxr_keyword">if</strong> (AbstractUIGridLayout.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="76" href="#76">76</a>        metaRuleset.addRule(GridLayoutRule.INSTANCE);
+<a name="77" href="#77">77</a>      }
+<a name="78" href="#78">78</a>      <strong class="jxr_keyword">if</strong> (AbstractUIFlowLayout.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="79" href="#79">79</a>        metaRuleset.addRule(FlowLayoutRule.INSTANCE);
+<a name="80" href="#80">80</a>      }
+<a name="81" href="#81">81</a>      <strong class="jxr_keyword">if</strong> (TabChangeSource.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="82" href="#82">82</a>        metaRuleset.addRule(TabChangeSourceRule.INSTANCE);
+<a name="83" href="#83">83</a>      }
+<a name="84" href="#84">84</a>      <strong class="jxr_keyword">if</strong> (SheetStateChangeSource.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="85" href="#85">85</a>        metaRuleset.addRule(SheetStateChangeSourceRule.INSTANCE);
+<a name="86" href="#86">86</a>      }
+<a name="87" href="#87">87</a>      <strong class="jxr_keyword">if</strong> (SupportsMarkup.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="88" href="#88">88</a>        metaRuleset.addRule(SupportsMarkupRule.INSTANCE);
+<a name="89" href="#89">89</a>      }
+<a name="90" href="#90">90</a>      <strong class="jxr_keyword">if</strong> (InputSuggest.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="91" href="#91">91</a>        metaRuleset.addRule(SuggestMethodRule.INSTANCE);
+<a name="92" href="#92">92</a>      }
+<a name="93" href="#93">93</a>      <strong class="jxr_keyword">if</strong> (SupportsRenderedPartially.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="94" href="#94">94</a>        metaRuleset.addRule(SupportsRenderedPartiallyRule.INSTANCE);
+<a name="95" href="#95">95</a>      }
+<a name="96" href="#96">96</a>      <strong class="jxr_keyword">return</strong> metaRuleset;
+<a name="97" href="#97">97</a>    }
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
+<a name="100" href="#100">100</a>     <strong class="jxr_keyword">if</strong> (component instanceof OnComponentCreated
+<a name="101" href="#101">101</a>         &amp;&amp; component.getAttributes().get(OnComponentCreated.MARKER) == <strong class="jxr_keyword">null</strong>) {
+<a name="102" href="#102">102</a>       component.getAttributes().put(OnComponentCreated.MARKER, Boolean.TRUE);
+<a name="103" href="#103">103</a>       ((<a href="../../../../../org/apache/myfaces/tobago/component/OnComponentCreated.html">OnComponentCreated</a>) component).onComponentCreated(context.getFacesContext(), parent);
+<a name="104" href="#104">104</a>     }
+<a name="105" href="#105">105</a>   }
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> onComponentPopulated(FaceletContext context, UIComponent component, UIComponent parent) {
+<a name="108" href="#108">108</a>     <strong class="jxr_keyword">if</strong> (component instanceof OnComponentPopulated
+<a name="109" href="#109">109</a>         &amp;&amp; component.getAttributes().get(OnComponentPopulated.MARKER) == <strong class="jxr_keyword">null</strong>) {
+<a name="110" href="#110">110</a>       component.getAttributes().put(OnComponentPopulated.MARKER, Boolean.TRUE);
+<a name="111" href="#111">111</a>       ((<a href="../../../../../org/apache/myfaces/tobago/component/OnComponentPopulated.html">OnComponentPopulated</a>) component).onComponentPopulated(context.getFacesContext(), parent);
+<a name="112" href="#112">112</a>     }
+<a name="113" href="#113">113</a>     <em class="jxr_comment">// TODO call only if component was created</em>
+<a name="114" href="#114">114</a>     <strong class="jxr_keyword">if</strong> (component instanceof EditableValueHolder) {
+<a name="115" href="#115">115</a>       addDefaultValidators(context.getFacesContext(), (EditableValueHolder) component);
+<a name="116" href="#116">116</a>     }
+<a name="117" href="#117">117</a>   }
+<a name="118" href="#118">118</a> 
+<a name="119" href="#119">119</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> addDefaultValidators(FacesContext context, EditableValueHolder component) {
+<a name="120" href="#120">120</a>     <a href="../../../../../org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.html">TobagoConfigImpl</a> tobagoConfig = (TobagoConfigImpl) TobagoConfig.getInstance(context);
+<a name="121" href="#121">121</a>     Map validatorInfoMap = tobagoConfig.getDefaultValidatorInfo();
+<a name="122" href="#122">122</a>     <strong class="jxr_keyword">if</strong> (validatorInfoMap.isEmpty()) {
+<a name="123" href="#123">123</a>       <strong class="jxr_keyword">return</strong>;
+<a name="124" href="#124">124</a>     }
+<a name="125" href="#125">125</a>     Validator[] validators = component.getValidators();
+<a name="126" href="#126">126</a>     <strong class="jxr_keyword">if</strong> (validators.length &gt; 0) {
+<a name="127" href="#127">127</a>       Set classNames = <strong class="jxr_keyword">new</strong> HashSet();
+<a name="128" href="#128">128</a>       <em class="jxr_comment">// collect classNames of validators</em>
+<a name="129" href="#129">129</a>       <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; validators.length; i++) {
+<a name="130" href="#130">130</a>         classNames.add(validators[i].getClass().getName());
+<a name="131" href="#131">131</a>       }
+<a name="132" href="#132">132</a>       Iterator it = validatorInfoMap.entrySet().iterator();
+<a name="133" href="#133">133</a>       <strong class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="134" href="#134">134</a>         Map.Entry entry = (Map.Entry) it.next();
+<a name="135" href="#135">135</a>         <strong class="jxr_keyword">if</strong> (!classNames.contains(entry.getValue())) {
+<a name="136" href="#136">136</a>           component.addValidator(context.getApplication().createValidator((String) entry.getKey()));
+<a name="137" href="#137">137</a>         }
+<a name="138" href="#138">138</a>       }
+<a name="139" href="#139">139</a>     } <strong class="jxr_keyword">else</strong> {
+<a name="140" href="#140">140</a>       Iterator it = validatorInfoMap.keySet().iterator();
+<a name="141" href="#141">141</a>       <strong class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="142" href="#142">142</a>         component.addValidator(context.getApplication().createValidator((String) it.next()));
+<a name="143" href="#143">143</a>       }
+<a name="144" href="#144">144</a>     }
+<a name="145" href="#145">145</a>   }
+<a name="146" href="#146">146</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html?rev=1487049&view=auto
==============================================================================
--- myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html (added)
+++ myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html Tue May 28 19:10:44 2013
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de_DE" lang="de_DE">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TobagoValidateHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a name="3" href="#3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a name="4" href="#4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a name="5" href="#5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a name="6" href="#6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a name="7" href="#7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a name="8" href="#8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a name="9" href="#9">9</a>   <em class="jxr_comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="11" href="#11">11</a>  <em class="jxr_comment"> *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a name="13" href="#13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a name="14" href="#14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a name="15" href="#15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a name="16" href="#16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a name="17" href="#17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a name="18" href="#18">18</a>  <em class="jxr_comment"> */</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.myfaces.tobago.facelets;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.myfaces.tobago.validator.FileItemValidator;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.MetaRuleset;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.ValidatorConfig;
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> javax.faces.view.facelets.ValidatorHandler;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html">TobagoValidateHandler</a> <strong class="jxr_keyword">extends</strong> ValidatorHandler {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html">TobagoValidateHandler</a>(ValidatorConfig config) {
+<a name="31" href="#31">31</a>      <strong class="jxr_keyword">super</strong>(config);
+<a name="32" href="#32">32</a>    }
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>    <strong class="jxr_keyword">protected</strong> MetaRuleset createMetaRuleset(Class aClass) {
+<a name="35" href="#35">35</a>      MetaRuleset metaRuleset = <strong class="jxr_keyword">super</strong>.createMetaRuleset(aClass);
+<a name="36" href="#36">36</a>      <strong class="jxr_keyword">if</strong> (FileItemValidator.<strong class="jxr_keyword">class</strong>.isAssignableFrom(aClass)) {
+<a name="37" href="#37">37</a>        metaRuleset.addRule(ContentTypeRule.INSTANCE);
+<a name="38" href="#38">38</a>      }
+<a name="39" href="#39">39</a>      <strong class="jxr_keyword">return</strong> metaRuleset;
+<a name="40" href="#40">40</a>    }
+<a name="41" href="#41">41</a>  }
+<a name="42" href="#42">42</a>  
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/site/publish/tobago/tobago-core/xref/org/apache/myfaces/tobago/facelets/TobagoValidateHandler.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL