myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1761592 [12/15] - in /myfaces/site/publish/tobago/tobago-theme: ./ tobago-theme-charlotteville/ tobago-theme-example/ tobago-theme-example/xref/ tobago-theme-example/xref/org/apache/myfaces/tobago/renderkit/html/example/standard/tag/ tobag...
Date Tue, 20 Sep 2016 15:14:25 GMT
Modified: myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectManyCheckboxRenderer.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectManyCheckboxRenderer.html?rev=1761592&r1=1761591&r2=1761592&view=diff
==============================================================================
--- myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectManyCheckboxRenderer.html
(original)
+++ myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectManyCheckboxRenderer.html
Tue Sep 20 15:14:23 2016
@@ -73,57 +73,56 @@
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>        <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> itemDisabled = item.isDisabled()
|| disabled;
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>        <strong class="jxr_keyword">final</strong>
String itemId = id + ComponentUtils.SUB_SEPARATOR + i++;
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>        writer.startElement(HtmlElements.LI);
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>        <strong class="jxr_keyword">if</strong>
(itemDisabled) {
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>          writer.writeClassAttribute(BootstrapClass.CHECKBOX,
BootstrapClass.DISABLED);
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>        } <strong class="jxr_keyword">else</strong>
{
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>          writer.writeClassAttribute(BootstrapClass.CHECKBOX);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>        }
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>        writer.startElement(HtmlElements.LABEL);
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>        writer.startElement(HtmlElements.INPUT);
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>        writer.writeAttribute(HtmlAttributes.TYPE,
HtmlInputTypes.CHECKBOX);
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>        <strong class="jxr_keyword">final</strong>
String formattedValue = ComponentUtils.getFormattedValue(facesContext, select, item.getValue());
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>        <strong class="jxr_keyword">boolean</strong>
checked;
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>        <strong class="jxr_keyword">if</strong>
(submittedValues == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>          checked = RenderUtils.contains(values,
item.getValue());
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>        } <strong class="jxr_keyword">else</strong>
{
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>          checked = RenderUtils.contains(submittedValues,
formattedValue);
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>        }
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>        writer.writeAttribute(HtmlAttributes.CHECKED,
checked);
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>        writer.writeNameAttribute(id);
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>        writer.writeIdAttribute(itemId);
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>        writer.writeAttribute(HtmlAttributes.VALUE,
formattedValue, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>        writer.writeAttribute(HtmlAttributes.DISABLED,
itemDisabled);
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>        writer.writeAttribute(HtmlAttributes.READONLY,
readonly);
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>        writer.writeAttribute(HtmlAttributes.REQUIRED,
required);
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>        <strong class="jxr_keyword">if</strong>
(first) {
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>          HtmlRendererUtils.renderFocus(id,
select.isFocus(), ComponentUtils.isError(select), facesContext, writer);
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>          first = false;
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>        }
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>        writer.writeAttribute(HtmlAttributes.TABINDEX,
select.getTabIndex());
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>        <strong class="jxr_keyword">final</strong>
String commands = RenderUtils.getBehaviorCommands(facesContext, select);
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>        <strong class="jxr_keyword">if</strong>
(commands != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>          writer.writeAttribute(DataAttributes.COMMANDS,
commands, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>        } <strong class="jxr_keyword">else</strong>
{ <em class="jxr_comment">// old</em>
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>          HtmlRendererUtils.renderCommandFacet(select,
itemId, facesContext, writer);
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>       }
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>       writer.endElement(HtmlElements.INPUT);
-<a class="jxr_linenumber" name="L102" href="#L102">102</a> 
-<a class="jxr_linenumber" name="L103" href="#L103">103</a>       <strong class="jxr_keyword">final</strong>
String label = item.getLabel();
-<a class="jxr_linenumber" name="L104" href="#L104">104</a>       <strong class="jxr_keyword">if</strong>
(label != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L105" href="#L105">105</a>         writer.writeText(label);
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>       }
-<a class="jxr_linenumber" name="L107" href="#L107">107</a> 
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>       writer.endElement(HtmlElements.LABEL);
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>       writer.endElement(HtmlElements.LI);
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>     }
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>   }
-<a class="jxr_linenumber" name="L112" href="#L112">112</a> 
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>   @Override
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>   <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> encodeEndField(<strong class="jxr_keyword">final</strong>
FacesContext facesContext, <strong class="jxr_keyword">final</strong> UIComponent
component) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="L115" href="#L115">115</a>     <strong class="jxr_keyword">final</strong>
TobagoResponseWriter writer = getResponseWriter(facesContext);
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>     writer.endElement(HtmlElements.OL);
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>   }
-<a class="jxr_linenumber" name="L118" href="#L118">118</a> }
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>        writer.writeClassAttribute(
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>            BootstrapClass.FORM_CHECK,
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>            itemDisabled
? BootstrapClass.DISABLED: <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>        writer.startElement(HtmlElements.LABEL);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>        writer.writeClassAttribute(BootstrapClass.FORM_CHECK_LABEL);
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>        writer.startElement(HtmlElements.INPUT);
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>        writer.writeAttribute(HtmlAttributes.TYPE,
HtmlInputTypes.CHECKBOX);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>        <strong class="jxr_keyword">final</strong>
String formattedValue = ComponentUtils.getFormattedValue(facesContext, select, item.getValue());
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>        <strong class="jxr_keyword">boolean</strong>
checked;
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>        <strong class="jxr_keyword">if</strong>
(submittedValues == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          checked = RenderUtils.contains(values,
item.getValue());
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>        } <strong class="jxr_keyword">else</strong>
{
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          checked = RenderUtils.contains(submittedValues,
formattedValue);
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>        }
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>        writer.writeAttribute(HtmlAttributes.CHECKED,
checked);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>        writer.writeNameAttribute(id);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>        writer.writeIdAttribute(itemId);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>        writer.writeAttribute(HtmlAttributes.VALUE,
formattedValue, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>        writer.writeAttribute(HtmlAttributes.DISABLED,
itemDisabled);
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>        writer.writeAttribute(HtmlAttributes.READONLY,
readonly);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>        writer.writeAttribute(HtmlAttributes.REQUIRED,
required);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>        <strong class="jxr_keyword">if</strong>
(first) {
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          HtmlRendererUtils.renderFocus(id,
select.isFocus(), ComponentUtils.isError(select), facesContext, writer);
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          first = false;
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>        }
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>        writer.writeAttribute(HtmlAttributes.TABINDEX,
select.getTabIndex());
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>        <strong class="jxr_keyword">final</strong>
String commands = RenderUtils.getBehaviorCommands(facesContext, select);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>        <strong class="jxr_keyword">if</strong>
(commands != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          writer.writeAttribute(DataAttributes.COMMANDS,
commands, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>        } <strong class="jxr_keyword">else</strong>
{ <em class="jxr_comment">// old</em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          HtmlRendererUtils.renderCommandFacet(select,
itemId, facesContext, writer);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>        }
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>       writer.endElement(HtmlElements.INPUT);
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> 
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>       <strong class="jxr_keyword">final</strong>
String label = item.getLabel();
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>       <strong class="jxr_keyword">if</strong>
(label != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         writer.writeText(label);
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>       }
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> 
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>       writer.endElement(HtmlElements.LABEL);
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>       writer.endElement(HtmlElements.LI);
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>     }
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>   }
+<a class="jxr_linenumber" name="L111" href="#L111">111</a> 
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>   @Override
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>   <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> encodeEndField(<strong class="jxr_keyword">final</strong>
FacesContext facesContext, <strong class="jxr_keyword">final</strong> UIComponent
component) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>     <strong class="jxr_keyword">final</strong>
TobagoResponseWriter writer = getResponseWriter(facesContext);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>     writer.endElement(HtmlElements.OL);
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>   }
+<a class="jxr_linenumber" name="L117" href="#L117">117</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2016 <a href="http://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>

Modified: myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectOneRadioRenderer.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectOneRadioRenderer.html?rev=1761592&r1=1761591&r2=1761592&view=diff
==============================================================================
--- myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectOneRadioRenderer.html
(original)
+++ myfaces/site/publish/tobago/tobago-theme/tobago-theme-standard/xref/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SelectOneRadioRenderer.html
Tue Sep 20 15:14:23 2016
@@ -76,70 +76,69 @@
 <a class="jxr_linenumber" name="L68" href="#L68">68</a>        <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> itemDisabled = item.isDisabled()
|| disabled;
 <a class="jxr_linenumber" name="L69" href="#L69">69</a>        <strong class="jxr_keyword">final</strong>
String itemId = id + ComponentUtils.SUB_SEPARATOR + i++;
 <a class="jxr_linenumber" name="L70" href="#L70">70</a>        writer.startElement(HtmlElements.LI);
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>        <strong class="jxr_keyword">if</strong>
(itemDisabled) {
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          writer.writeClassAttribute(BootstrapClass.RADIO,
BootstrapClass.DISABLED);
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>        } <strong class="jxr_keyword">else</strong>
{
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          writer.writeClassAttribute(BootstrapClass.RADIO);
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>        }
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>        writer.startElement(HtmlElements.LABEL);
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>        writer.startElement(HtmlElements.INPUT);
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>        writer.writeAttribute(HtmlAttributes.TYPE,
HtmlInputTypes.RADIO);
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>        <strong class="jxr_keyword">final</strong>
String formattedValue = ComponentUtils.getFormattedValue(facesContext, select, item.getValue());
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>        <strong class="jxr_keyword">boolean</strong>
checked;
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>        <strong class="jxr_keyword">if</strong>
(submittedValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          checked = ObjectUtils.equals(item.getValue(),
value);
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>        } <strong class="jxr_keyword">else</strong>
{
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>          checked = ObjectUtils.equals(formattedValue,
submittedValue);
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>        }
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>        writer.writeAttribute(HtmlAttributes.CHECKED,
checked);
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>        writer.writeNameAttribute(id);
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>        writer.writeIdAttribute(itemId);
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>        writer.writeAttribute(HtmlAttributes.VALUE,
formattedValue, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>        writer.writeAttribute(HtmlAttributes.DISABLED,
itemDisabled);
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>        writer.writeAttribute(HtmlAttributes.READONLY,
readonly);
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>        writer.writeAttribute(HtmlAttributes.REQUIRED,
required);
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>        <strong class="jxr_keyword">if</strong>
(first) {
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>          HtmlRendererUtils.renderFocus(id,
select.isFocus(), ComponentUtils.isError(select), facesContext, writer);
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>          first = false;
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>        }
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>        writer.writeAttribute(HtmlAttributes.TABINDEX,
select.getTabIndex());
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>        <strong class="jxr_keyword">final</strong>
String commands = RenderUtils.getBehaviorCommands(facesContext, select);
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>        <strong class="jxr_keyword">if</strong>
(commands != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>         writer.writeAttribute(DataAttributes.COMMANDS,
commands, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>       } <strong
class="jxr_keyword">else</strong> { <em class="jxr_comment">// old</em>
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>         HtmlRendererUtils.renderCommandFacet(select,
itemId, facesContext, writer);
-<a class="jxr_linenumber" name="L103" href="#L103">103</a>       }
-<a class="jxr_linenumber" name="L104" href="#L104">104</a>       writer.endElement(HtmlElements.INPUT);
-<a class="jxr_linenumber" name="L105" href="#L105">105</a> 
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>       <strong class="jxr_keyword">if</strong>
(item instanceof org.apache.myfaces.tobago.model.SelectItem) {
-<a class="jxr_linenumber" name="L107" href="#L107">107</a>         org.apache.myfaces.tobago.model.SelectItem
tobagoItem = (org.apache.myfaces.tobago.model.SelectItem) item;
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>         <strong
class="jxr_keyword">final</strong> String image = tobagoItem.getImage();
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>         <strong
class="jxr_keyword">if</strong> (image != <strong class="jxr_keyword">null</strong>)
{
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>           <strong
class="jxr_keyword">final</strong> String imageToRender
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>               = ResourceManagerUtils.getImageOrDisabledImageWithPath(facesContext,
image, item.isDisabled());
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>           writer.startElement(HtmlElements.IMG);
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>           writer.writeAttribute(HtmlAttributes.SRC,
imageToRender, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>           writer.writeAttribute(HtmlAttributes.ALT,
<span class="jxr_string">""</span>, false);
-<a class="jxr_linenumber" name="L115" href="#L115">115</a>           writer.endElement(HtmlElements.IMG);
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>         }
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>       }
-<a class="jxr_linenumber" name="L118" href="#L118">118</a> 
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>       <strong class="jxr_keyword">final</strong>
String label = item.getLabel();
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>       <strong class="jxr_keyword">if</strong>
(label != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>         writer.writeText(label);
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>       }
-<a class="jxr_linenumber" name="L123" href="#L123">123</a> 
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>       writer.endElement(HtmlElements.LABEL);
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>       writer.endElement(HtmlElements.LI);
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>     }
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>   }
-<a class="jxr_linenumber" name="L128" href="#L128">128</a> 
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>   @Override
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>   <strong class="jxr_keyword">protected</strong>
<strong class="jxr_keyword">void</strong> encodeEndField(FacesContext facesContext,
UIComponent component) <strong class="jxr_keyword">throws</strong> IOException
{
-<a class="jxr_linenumber" name="L131" href="#L131">131</a>     <strong class="jxr_keyword">final</strong>
TobagoResponseWriter writer = getResponseWriter(facesContext);
-<a class="jxr_linenumber" name="L132" href="#L132">132</a>     writer.endElement(HtmlElements.OL);
-<a class="jxr_linenumber" name="L133" href="#L133">133</a>   }
-<a class="jxr_linenumber" name="L134" href="#L134">134</a> }
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>        writer.writeClassAttribute(
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>            BootstrapClass.FORM_CHECK,
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>            itemDisabled
? BootstrapClass.DISABLED : <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>        writer.startElement(HtmlElements.LABEL);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>        writer.writeClassAttribute(BootstrapClass.FORM_CHECK_LABEL);
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>        writer.startElement(HtmlElements.INPUT);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>        writer.writeAttribute(HtmlAttributes.TYPE,
HtmlInputTypes.RADIO);
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>        <strong class="jxr_keyword">final</strong>
String formattedValue = ComponentUtils.getFormattedValue(facesContext, select, item.getValue());
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>        <strong class="jxr_keyword">boolean</strong>
checked;
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>        <strong class="jxr_keyword">if</strong>
(submittedValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          checked = ObjectUtils.equals(item.getValue(),
value);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>        } <strong class="jxr_keyword">else</strong>
{
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          checked = ObjectUtils.equals(formattedValue,
submittedValue);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>        }
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>        writer.writeAttribute(HtmlAttributes.CHECKED,
checked);
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>        writer.writeNameAttribute(id);
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>        writer.writeIdAttribute(itemId);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>        writer.writeAttribute(HtmlAttributes.VALUE,
formattedValue, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>        writer.writeAttribute(HtmlAttributes.DISABLED,
itemDisabled);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>        writer.writeAttribute(HtmlAttributes.READONLY,
readonly);
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>        writer.writeAttribute(HtmlAttributes.REQUIRED,
required);
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>        <strong class="jxr_keyword">if</strong>
(first) {
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          HtmlRendererUtils.renderFocus(id,
select.isFocus(), ComponentUtils.isError(select), facesContext, writer);
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          first = false;
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>        }
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>        writer.writeAttribute(HtmlAttributes.TABINDEX,
select.getTabIndex());
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>        <strong class="jxr_keyword">final</strong>
String commands = RenderUtils.getBehaviorCommands(facesContext, select);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>        <strong class="jxr_keyword">if</strong>
(commands != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          writer.writeAttribute(DataAttributes.COMMANDS,
commands, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>       } <strong
class="jxr_keyword">else</strong> { <em class="jxr_comment">// old</em>
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         HtmlRendererUtils.renderCommandFacet(select,
itemId, facesContext, writer);
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>       }
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>       writer.endElement(HtmlElements.INPUT);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a> 
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>       <strong class="jxr_keyword">if</strong>
(item instanceof org.apache.myfaces.tobago.model.SelectItem) {
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         org.apache.myfaces.tobago.model.SelectItem
tobagoItem = (org.apache.myfaces.tobago.model.SelectItem) item;
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         <strong
class="jxr_keyword">final</strong> String image = tobagoItem.getImage();
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         <strong
class="jxr_keyword">if</strong> (image != <strong class="jxr_keyword">null</strong>)
{
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>           <strong
class="jxr_keyword">final</strong> String imageToRender
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>               = ResourceManagerUtils.getImageOrDisabledImageWithPath(facesContext,
image, item.isDisabled());
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>           writer.startElement(HtmlElements.IMG);
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>           writer.writeAttribute(HtmlAttributes.SRC,
imageToRender, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>           writer.writeAttribute(HtmlAttributes.ALT,
<span class="jxr_string">""</span>, false);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>           writer.endElement(HtmlElements.IMG);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>         }
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>       }
+<a class="jxr_linenumber" name="L117" href="#L117">117</a> 
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>       <strong class="jxr_keyword">final</strong>
String label = item.getLabel();
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>       <strong class="jxr_keyword">if</strong>
(label != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         writer.writeText(label);
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>       }
+<a class="jxr_linenumber" name="L122" href="#L122">122</a> 
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>       writer.endElement(HtmlElements.LABEL);
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>       writer.endElement(HtmlElements.LI);
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     }
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>   }
+<a class="jxr_linenumber" name="L127" href="#L127">127</a> 
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>   @Override
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>   <strong class="jxr_keyword">protected</strong>
<strong class="jxr_keyword">void</strong> encodeEndField(FacesContext facesContext,
UIComponent component) <strong class="jxr_keyword">throws</strong> IOException
{
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>     <strong class="jxr_keyword">final</strong>
TobagoResponseWriter writer = getResponseWriter(facesContext);
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>     writer.endElement(HtmlElements.OL);
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>   }
+<a class="jxr_linenumber" name="L133" href="#L133">133</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2016 <a href="http://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>



Mime
View raw message