You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/03/23 07:37:50 UTC
svn commit: r1736276 - in
/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main:
java/org/apache/myfaces/tobago/example/demo/
webapp/content/20-component/010-input/10-in/
webapp/content/20-component/010-input/30-textarea/ we...
Author: lofwyr
Date: Wed Mar 23 06:37:50 2016
New Revision: 1736276
URL: http://svn.apache.org/viewvc?rev=1736276&view=rev
Log:
TOBAGO-1544: Revise Demo Application for Tobago 3.0
[developed by hnoeth]
Modified:
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SelectManyShuttleController.java
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/30-textarea/textarea.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/40-date/date.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/20-label/label.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/40-image/image.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/60-object/object.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/10-selectBooleanCheckbox/selectBooleanCheckbox.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/60-selectManyListbox/selectManyListbox.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/70-selectManyShuttle/selectManyShuttle.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/10-button+link/button+link.xhtml
myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SelectManyShuttleController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SelectManyShuttleController.java?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SelectManyShuttleController.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SelectManyShuttleController.java Wed Mar 23 06:37:50 2016
@@ -62,8 +62,8 @@ public class SelectManyShuttleController
String retValue = "";
for (String selectedPlanet : selectedPlanets) {
for (Planet planet : planets) {
- if (planet.getName().equals(selectedPlanet)) {
- retValue = retValue.concat(planet.getName() + " (" + planet.getAu() + "); ");
+ if (planet.getId().equals(selectedPlanet)) {
+ retValue = retValue.concat(planet.getName() + " (" + planet.getAu() + " AU); ");
}
}
}
@@ -87,19 +87,25 @@ public class SelectManyShuttleController
}
public class Planet {
+ private String id;
private String name;
private double au;
public Planet(String name, double au) {
+ id = name + au;
this.name = name;
this.au = au;
}
+ public String getId() {
+ return id;
+ }
+
public String getName() {
return name;
}
- public double getAu() {
+ private double getAu() {
return au;
}
}
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/10-in/in.xhtml Wed Mar 23 06:37:50 2016
@@ -23,8 +23,7 @@
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.in} <tc:in>"/>
<p>The <code class="language-markup"><tc:in/></code> tag create a classic inputfield.</p>
- <p>A documentation of all possible attributes can be found here (https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/in.html). TODO: link to tobago3</p>
-
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/in.html"/>
<tc:section label="Basics">
<p>In the most cases, a label should be placed in front of every inputfield. For this use the attribute
<code>label</code>.</p>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/30-textarea/textarea.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/30-textarea/textarea.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/30-textarea/textarea.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/30-textarea/textarea.xhtml Wed Mar 23 06:37:50 2016
@@ -23,7 +23,7 @@
<ui:param name="title" value="#{overviewBundle.textarea} <tc:textarea>"/>
<p>The <code class="language-markup"><tc:textarea/></code> tag, creates a textfield with one or more rows.
The textarea becomes scrollable, if the containing text could not displayed in the current size.</p>
- <p>A documentation of all possible attributes can be found here (https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/textarea.html). TODO: link to tobago3</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/textarea.html"/>
<tc:section label="Basics">
<p>The textarea should always have a label attached. For this, use the <code>label</code> attribute.</p>
<p>Unlike the inputfield TODO:linkToIn there is no placeholder attribute to describe the meaning of a textarea, when no label is set.</p>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/40-date/date.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/40-date/date.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/40-date/date.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/010-input/40-date/date.xhtml Wed Mar 23 06:37:50 2016
@@ -22,9 +22,10 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.date} <tc:date>"/>
- <p>The <code class="language-markup"><tc:date/></code> tag create an inputfield with a button to open a calendar to edit the date.
+ <p>The <code class="language-markup"><tc:date/></code>
+ tag create an inputfield with a button to open a calendar to edit the date.
The date can also be edited in the textfield.</p>
- <p>A documentation of all possible attributes can be found here (https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/date.html). TODO: link to tobago3</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/date.html"/>
<tc:section label="Basics">
<p>In general, a date should always have a label. To get a label use the <code>label</code> attribute.</p>
<p>It is recommended to use a pattern. For that, use <code><f:convertDateTime></code>.</p>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml Wed Mar 23 06:37:50 2016
@@ -23,6 +23,7 @@
<ui:param name="title" value="#{overviewBundle.out} <tc:out>"/>
<p>The <code class="language-markup"><tc:out></code> display an outputtext combined with a label.</p>
<p>TODO: attribute-link</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/out.html"/>
<tc:section label="Basics">
<p>To put a label in front of a outputtext, use the <code>label</code> attribute.</p>
<pre><code class="language-markup"><tc:out label="Output" value="Some Text"/></code></pre>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/20-label/label.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/20-label/label.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/20-label/label.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/20-label/label.xhtml Wed Mar 23 06:37:50 2016
@@ -24,8 +24,7 @@
<p>With <code class="language-markup"><tc:label></code>, a single label can be created.
Some components already have a <code>label</code> attribute to combine it with a label,
which should be used in general.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/label.html"/>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/label.html"/>
<tc:section label="Basics">
<pre><code class="language-markup"><tc:label value="Single Label"/></code></pre>
<tc:label id="l1" value="Single Label"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/40-image/image.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/40-image/image.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/40-image/image.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/40-image/image.xhtml Wed Mar 23 06:37:50 2016
@@ -21,9 +21,8 @@
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:param name="title" value="#{overviewBundle.image} <tc:image>"/>
- <p>Create an image with <code class="language-markup"><tc:image/></code></p>
- <p>link to attribute-doku</p>
- <tc:link label="Generated Documentation" link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/link.html"/>
+ <p>Create an image with <code class="language-markup"><tc:image/></code>.</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/image.html"/>
<tc:section label="Basics">
<pre><code class="language-markup"><tc:image value="image/tobago_head.png"/></code></pre>
<tc:image id="i1" value="image/tobago_head.png"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/60-object/object.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/60-object/object.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/60-object/object.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/60-object/object.xhtml Wed Mar 23 06:37:50 2016
@@ -27,7 +27,7 @@
<p>The <code><tc:object></code> tag create an iframe.
External objects can be included, when Content Security Policy is activated.
You may add a frame-src policy to the 'tobago-config.xml'.</p>
- <tc:link label="Generated Documentation" link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/object.html"/>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png" link="#{overviewBundle.tagDocUrl}/object.html"/>
<tc:section label="Basics">
<pre><code class="language-markup"><tc:object src="https://www.google.com/maps/..."/></code></pre>
<tc:object id="o1"
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/10-selectBooleanCheckbox/selectBooleanCheckbox.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/10-selectBooleanCheckbox/selectBooleanCheckbox.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/10-selectBooleanCheckbox/selectBooleanCheckbox.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/10-selectBooleanCheckbox/selectBooleanCheckbox.xhtml Wed Mar 23 06:37:50 2016
@@ -24,8 +24,8 @@
xmlns:h="http://java.sun.com/jsf/html">
<ui:param name="title" value="#{overviewBundle.selectBooleanCheckbox} <tc:selectBooleanCheckbox>"/>
<p>The tag <tc:selectBooleanCheckbox/> generate a classic boolean checkbox.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/selectBooleanCheckbox.html"/>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectBooleanCheckbox.html"/>
<tc:section label="Basics">
<pre><code class="language-markup"><tc:selectBooleanCheckbox label="Checkbox" value="true"/></code></pre>
<tc:selectBooleanCheckbox id="s1" label="Checkbox" value="true"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/20-selectOneChoice/selectOneChoice.xhtml Wed Mar 23 06:37:50 2016
@@ -27,8 +27,8 @@
<code class="language-markup"><tc:selectItem/></code> for static entries or<br/>
<code class="language-markup"><tc:selectItems value="\#{controller.list}"/></code> for entries from
a controller.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/selectOneChoice.html"/>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectOneChoice.html"/>
<tc:section label="Basics">
<p>Dropdown Box with hardcoded items. The second item is disabled.
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/30-selectOneRadio/selectOneRadio.xhtml Wed Mar 23 06:37:50 2016
@@ -26,8 +26,8 @@
Static entries are added with <code class="language-markup"><tc:selectItem/></code> tag.
A list from a controller is added with
<code class="language-markup"><tc:selectItems value="\#{controller.list}"/></code>.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/selectOneRadio.html"/>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectOneRadio.html"/>
<tc:section label="Basics">
<p>Radiobutton group with a label. The last item is disabled.
@@ -54,12 +54,11 @@
<tc:section label="Simple Usage">
<p>Add number1 to number2 or subtract number2 from number1.</p>
- <pre><code class="language-markup"><tc:selectOneRadio label="Number 1" labelLayout="top"
- value="\#{selectOneRadioController.numberOne}">
- <tc:selectItem itemLabel="1" itemValue="1"/>
- <tc:selectItem itemLabel="2" itemValue="2"/>
- <tc:selectItem itemLabel="4" itemValue="4"/>
-</tc:selectOneRadio></code></pre>
+ <p>The radiobuttons are hardcoded with
+ <code class="language-markup"><tc:selectItem itemLabel="1" itemValue="1"/></code>.
+ The buttons trigger an action in the controller:
+ <code class="language-markup"><tc:button label="Addition" action="\#{selectOneRadioController.add}"/></code>
+ </p>
<tc:segmentLayout large="6;6">
<tc:selectOneRadio id="s4" label="Number 1" labelLayout="top" value="#{selectOneRadioController.numberOne}">
<tc:selectItem itemLabel="1" itemValue="1"/>
@@ -81,14 +80,12 @@
<tc:section label="Ajax">
<p>Select a planet on the left. One the right side, you can select one of the moons.</p>
- <pre><code class="language-markup"><tc:selectOneRadio label="Planet" labelLayout="top"
- value="\#{selectOneRadioController.planet}">
- <f:selectItems value="\#{selectOneRadioController.planets}"/>
- <f:ajax render="moonradio"/>
-</tc:selectOneRadio>
-<tc:selectOneRadio id="moonradio" label="Moon" labelLayout="top">
- <f:selectItems value="\#{selectOneRadioController.moons}"/>
-</tc:selectOneRadio></code></pre>
+ <p>The planets are added with
+ <code class="language-markup"><f:selectItems value="\#{selectOneRadioController.planets}"/></code>.
+ The radiogroup of the planets also contain a
+ <code class="language-markup"><f:ajax render="moonradio"></code> element,
+ which allows to rerender the radiogroup with the ID 'moonradio' every time, the value changed in the
+ planet-radiogroup.</p>
<tc:segmentLayout large="6;6">
<tc:selectOneRadio id="s6" label="Planet" labelLayout="top" value="#{selectOneRadioController.planet}">
<f:selectItems value="#{selectOneRadioController.planets}"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/40-selectOneListbox/selectOneListbox.xhtml Wed Mar 23 06:37:50 2016
@@ -23,45 +23,64 @@
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.selectOneListbox} <tc:selectOneListbox>"/>
<p>The <code class="language-markup"><tc:selectOneListbox/></code> create a list of entries, where only one
- entry can be selected.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/selectOneListbox.html"/>
+ entry can be selected.</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectOneListbox.html"/>
<tc:section label="Basics">
+ <p>If the number of rows is not set, die height of the list depends on the number of entries.
+ The number of rows can be set by the <code>size</code> attribute. A list has always two rows, therefor values
+ less than two have no effect.</p>
+ <pre><code class="language-markup"><tc:selectOneListbox label="List" size="2">
+ <tc:selectItem itemLabel="Alpha"/>
+ ...
+</tc:selectOneListbox></code></pre>
<tc:selectOneListbox id="s1" label="List" size="2">
<tc:selectItem itemLabel="Alpha"/>
<tc:selectItem itemLabel="Beta"/>
+ <tc:selectItem itemLabel="Gamma"/>
+ <tc:selectItem itemLabel="Delta"/>
</tc:selectOneListbox>
<tc:selectOneListbox id="s2" label="Read Only" readonly="true" size="2">
<tc:selectItem itemLabel="Alpha"/>
<tc:selectItem itemLabel="Beta"/>
+ <tc:selectItem itemLabel="Gamma"/>
+ <tc:selectItem itemLabel="Delta"/>
</tc:selectOneListbox>
<tc:selectOneListbox id="s3" label="Disabled" disabled="true" size="2">
<tc:selectItem itemLabel="Alpha"/>
<tc:selectItem itemLabel="Beta"/>
+ <tc:selectItem itemLabel="Gamma"/>
+ <tc:selectItem itemLabel="Delta"/>
</tc:selectOneListbox>
</tc:section>
<tc:section label="Simple Usage">
+ <p>Select a river in the list. After pressing the submit-button, the length of the river is shown in the
+ outputfield.</p>
+ <p>Items are added with
+ <code class="language-markup"><tc:selectItem itemLabel="Nile" itemValue="6853 km"/></code>.</p>
<tc:selectOneListbox id="s4" label="River" value="#{selectOneListboxController.river}">
- <tc:selectItem itemLabel="Nile" itemValue="Nile (6853 km)"/>
- <tc:selectItem itemLabel="Amazon" itemValue="Amazon (6437 km)"/>
- <tc:selectItem itemLabel="Yangtze" itemValue="Yangtze (6300 km)"/>
- <tc:selectItem itemLabel="Yellow River" itemValue="Yellow River (5464 km)"/>
- <tc:selectItem itemLabel="Paraná River" itemValue="Paraná River (4880 km)"/>
+ <tc:selectItem itemLabel="Nile" itemValue="6853 km"/>
+ <tc:selectItem itemLabel="Amazon" itemValue="6437 km"/>
+ <tc:selectItem itemLabel="Yangtze" itemValue="6300 km"/>
+ <tc:selectItem itemLabel="Yellow River" itemValue="5464 km"/>
+ <tc:selectItem itemLabel="Paraná River" itemValue="4880 km"/>
</tc:selectOneListbox>
- <tc:out id="o1" label="River" value="#{selectOneListboxController.river}"/>
+ <tc:out id="o1" label="Length" value="#{selectOneListboxController.river}"/>
<tc:button id="b1" label="Submit"/>
</tc:section>
<tc:section label="Ajax">
- <tc:selectOneListbox id="s5" label="Mountains" value="#{selectOneListboxController.mountain}" >
+ <p>Select a mountain in the list. The height will be displayed by
+ <code class="language-markup"><tc:out id="selectedMountain" .../></code>. The
+ <code class="language-markup"><tc:selectOneListbox/></code> contain a
+ <code class="language-markup"><f:ajax render="selectedMountain"/></code>, which rerender the outputfield.</p>
+ <tc:selectOneListbox id="s5" label="Mountains" value="#{selectOneListboxController.mountain}">
<tc:selectItems value="#{selectOneListboxController.mountains}" var="mountain"
- itemLabel="#{mountain.label}" itemValue="#{mountain.value}" />
+ itemLabel="#{mountain.label}" itemValue="#{mountain.value}"/>
<f:ajax render="selectedMountain"/>
</tc:selectOneListbox>
<tc:out id="selectedMountain" label="Height" value="#{selectOneListboxController.mountain}"/>
-
</tc:section>
-
</ui:composition>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/50-selectManyCheckbox/selectManyCheckbox.xhtml Wed Mar 23 06:37:50 2016
@@ -26,23 +26,34 @@
The items are added via <code class="language-markup"><tc:selectItem/></code> for static entries or
<code class="language-markup"><tc:selectItems value="\#{controller.list}"/></code> for entries from a
controller.</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectManyCheckbox.html"/>
<tc:section label="Basics">
<p>Checkbox Group with two items. The second one is disabled.</p>
+ <pre><code class="language-markup"><tc:selectManyCheckbox label="Checkbox Group"></code></pre>
<tc:selectManyCheckbox label="Checkbox Group">
<tc:selectItem itemLabel="Item One" itemValue="one"/>
- <tc:selectItem itemLabel="Item Two" itemValue="two" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item Two (disabled)" itemValue="two" itemDisabled="true"/>
</tc:selectManyCheckbox>
<tc:selectManyCheckbox label="Read Only" readonly="true">
<tc:selectItem itemLabel="Item One" itemValue="one"/>
- <tc:selectItem itemLabel="Item Two" itemValue="two" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item Two (disabled)" itemValue="two" itemDisabled="true"/>
</tc:selectManyCheckbox>
<tc:selectManyCheckbox label="Disabled" disabled="true">
<tc:selectItem itemLabel="Item One" itemValue="one"/>
- <tc:selectItem itemLabel="Item Two" itemValue="two" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item Two (disabled)" itemValue="two" itemDisabled="true"/>
</tc:selectManyCheckbox>
</tc:section>
<tc:section label="Simple Usage">
+ <p>Select an animal. The selection is shown in the outputfield, after pressing 'Submit'.</p>
+ <p><code
+ class="language-markup"><tc:selectManyCheckbox label="Checkbox Group" value="\#{selectManyCheckboxController.animals}"></code>
+ save the selected value in the controller.
+ The available items are added with <code class="language-markup"><tc:selectItem .../></code>.
+ The
+ <code class="language-markup"><tc:out ... value="\#{selectManyCheckboxController.animal}"/></code>
+ get the value from the controller.</p>
<tc:selectManyCheckbox label="Checkbox Group" value="#{selectManyCheckboxController.animals}">
<tc:selectItem itemLabel="Cat" itemValue="Cat"/>
<tc:selectItem itemLabel="Dog" itemValue="Dog"/>
@@ -54,6 +65,11 @@
</tc:section>
<tc:section label="Ajax">
+ <p>Select a number. Those numbers are added and displayed in the
+ <code class="language-markup"><tc:out id="resultOutput" .../></code>.
+ <code class="language-markup"><tc:selectManyCheckbox .../></code> contain a
+ <code class="language-markup"><f:ajax render="resultOutput"/></code>, which rerenders the outputfield after
+ check/uncheck a checkbox.</p>
<tc:selectManyCheckbox label="Checkbox Group" value="#{selectManyCheckboxController.numbers}">
<tc:selectItem itemLabel="One" itemValue="1"/>
<tc:selectItem itemLabel="Two" itemValue="2"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/60-selectManyListbox/selectManyListbox.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/60-selectManyListbox/selectManyListbox.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/60-selectManyListbox/selectManyListbox.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/60-selectManyListbox/selectManyListbox.xhtml Wed Mar 23 06:37:50 2016
@@ -22,37 +22,56 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.selectManyListbox} <tc:selectManyListbox>"/>
-
+<p>The <code class="language-markup"><tc:selectManyListbox/></code> create a list,
+ where more than one entry could be selected. Entries are added with
+ <code class="language-markup"><tc:selectItem/></code> (static) or
+ <code class="language-markup"><tc:selectItems value="\#{controller.list}"/></code> (from controller).</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectManyListbox.html"/>
<tc:section label="Basics">
- <p>A list with three items. The second one is disabled.</p>
+ <p>In this example, there is a list with three items. The second one is disabled with the
+ <code>itemDisabled</code> attribute of the <code class="language-markup"><tc:selectItem/></code> tag.</p>
<tc:selectManyListbox id="s1" label="List">
<tc:selectItem itemLabel="Item1" itemValue="item1"/>
- <tc:selectItem itemLabel="Item2" itemValue="item2" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item2 (disabled)" itemValue="item2" itemDisabled="true"/>
<tc:selectItem itemLabel="Item3" itemValue="item3"/>
</tc:selectManyListbox>
<tc:selectManyListbox id="s2" label="Read Only" readonly="true">
<tc:selectItem itemLabel="Item1" itemValue="item1"/>
- <tc:selectItem itemLabel="Item2" itemValue="item2" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item2 (disabled)" itemValue="item2" itemDisabled="true"/>
<tc:selectItem itemLabel="Item3" itemValue="item3"/>
</tc:selectManyListbox>
<tc:selectManyListbox id="s3" label="Disabled" disabled="true">
<tc:selectItem itemLabel="Item1" itemValue="item1"/>
- <tc:selectItem itemLabel="Item2" itemValue="item2" itemDisabled="true"/>
+ <tc:selectItem itemLabel="Item2 (disabled)" itemValue="item2" itemDisabled="true"/>
<tc:selectItem itemLabel="Item3" itemValue="item3"/>
</tc:selectManyListbox>
</tc:section>
<tc:section label="Simple Usage">
+ <p>Select an entry and press the submit-button. The text in the outputfield depends on the selection.</p>
+ <pre><code class="language-markup"><tc:selectManyListbox label="List" value="\#{selectManyListboxController.celestials}">
+ <tc:selectItem itemLabel="Sun" itemValue="The sun, "/>
+ ...
+</tc:selectManyListbox>
+<tc:out label="Selection" value="\#{selectManyListboxController.celestial}"/></code></pre>
<tc:selectManyListbox id="s4" label="List" value="#{selectManyListboxController.celestials}">
<tc:selectItem itemLabel="Sun" itemValue="The sun, "/>
<tc:selectItem itemLabel="Moon" itemValue="the moon, "/>
<tc:selectItem itemLabel="Stars" itemValue="the stars..."/>
</tc:selectManyListbox>
- <tc:out id="o1" label="" value="#{selectManyListboxController.celestial}"/>
+ <tc:out id="o1" label="Selection" value="#{selectManyListboxController.celestial}"/>
<tc:button id="b1" label="Submit"/>
</tc:section>
- <tc:section label="AJAX" id="ajax">
+ <tc:section label="Ajax" id="ajax">
+ <p>The selected deserts from the list, are shown in the
+ <code class="language-markup"><tc:out id="desertOutput" .../></code>.
+ The value in the outputfield will be rerendered, after the selection in the list changed. For that,
+ <code class="language-markup"><tc:selectManyListbox label="Deserts" size="4" ...></code> contain a
+ <code class="language-markup"><f:ajax render="desertOutput"/></code> tag.</p>
+ <p>The number of rows is set to four by the <code>size</code> attribute. Is no size set, the height of the list
+ depends of the number of rows. The list shows at least two rows. Values lower than two have no effect.</p>
<tc:selectManyListbox id="s5" label="Deserts" size="4" value="#{selectManyListboxController.selectedDeserts}">
<f:selectItems value="#{selectManyListboxController.deserts}"/>
<f:ajax render="desertOutput"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/70-selectManyShuttle/selectManyShuttle.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/70-selectManyShuttle/selectManyShuttle.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/70-selectManyShuttle/selectManyShuttle.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/030-select/70-selectManyShuttle/selectManyShuttle.xhtml Wed Mar 23 06:37:50 2016
@@ -22,16 +22,16 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.selectManyShuttle} <tc:selectManyShuttle>"/>
- <p>The shuttlelist component can be created with <code class="language-markup"><tc:selectManyShuttle/></code>.</p>
- <tc:link label="Generated Documentation"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/selectManyShuttle.html"/>
-
+ <p>The shuttlelist component can be created with <code class="language-markup"><tc:selectManyShuttle/></code>.
+ In general, the height of the list depends on the number of items and is set to an amount, where no
+ scrollbar is needed. You can set the number of rows with the <code>size</code> attribute. The shuttle list
+ has at least seven rows, values less than seven have no effect.
+ Items are added via <code class="language-markup"><tc:selectItem></code> (static) or
+ <code class="language-markup"><tc:selectItems></code> (dynamic).</p>
+ <tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/selectManyShuttle.html"/>
<tc:section label="Basics">
- <p>In general, the height of the list depends on the number of items and is set to an amount, where no
- scrollbar is needed. You can set the number of rows with the <code>size</code> attribute. The shuttle list
- has at least seven rows, values less than seven have no effect.
- Items are added via <code class="language-markup"><tc:selectItem></code> (static) or
- <code class="language-markup"><tc:selectItems></code> (dynamic).</p>
+ <pre><code class="language-markup"><tc:selectManyShuttle label="Shuttle List" size="7"></code></pre>
<tc:selectManyShuttle id="s1" label="Shuttle List" size="7">
<tc:selectItem itemLabel="Item1"/>
<tc:selectItem itemLabel="Item2"/>
@@ -77,23 +77,34 @@
</tc:section>
<tc:section label="Simple Usage">
- <pre><code class="language-markup"><tc:selectManyShuttle label="Planets" labelLayout="top"
- unselectedLabel="Left List" selectedLabel="Right List"
- value="\#{selectManyShuttleController.selectedPlanets}">
- <tc:selectItems value="\#{selectManyShuttleController.planets}"
- var="planet" itemLabel="\#{planet.name}" itemValue="\#{planet.name}"/>
+ <p>After a submit, the entries in the right list are shown in the outputfield with name and distance from the
+ sun.</p>
+ <p>A label is added to the left list via the <code>unselectedLabel</code> attribute and to the right list
+ via <code>selectedLabel</code>. The label for the whole component is set on top by
+ <code>labelLayout="top"</code>.</p>
+ <p>In this example, the entries are added by
+ <code class="language-markup"><tc:selectItems ... var="planet" itemLabel="\#{planet.name}" itemValue="\#{planet.id}"/></code>.
+ The name of a variable is defined by<code>var</code>. In this case, the <code>itemLabel</code> get the name of
+ the planet, while the <code>itemValue</code> is the id.</p>
+ <pre><code class="language-markup"><tc:selectManyShuttle label="Planets" ...>
+ <tc:selectItems value="\#{selectManyShuttleController.planets}" .../>
</tc:selectManyShuttle></code></pre>
<tc:selectManyShuttle id="s4" label="Planets" labelLayout="top"
unselectedLabel="Left List" selectedLabel="Right List"
value="#{selectManyShuttleController.selectedPlanets}">
<tc:selectItems value="#{selectManyShuttleController.planets}"
- var="planet" itemLabel="#{planet.name}" itemValue="#{planet.name}"/>
+ var="planet" itemLabel="#{planet.name}" itemValue="#{planet.id}"/>
</tc:selectManyShuttle>
<tc:out id="o1" label="Selected Planets" value="#{selectManyShuttleController.selectedPlanetsAsString}"/>
<tc:button label="Submit"/>
</tc:section>
<tc:section label="Ajax">
+ <p>The entries in the right list are shown in
+ <code class="language-markup"><tc:out id="outputStars" .../></code>.
+ <code class="language-markup"><tc:selectManyShuttle .../></code> contain
+ <code class="language-markup"><f:ajax render="outputStars"/></code>. Every time, the value in the shuttle list
+ change, the outputfield is rerendered.</p>
<tc:selectManyShuttle id="s5" label="Stars" labelLayout="top" value="#{selectManyShuttleController.selectedStars}">
<tc:selectItems value="#{selectManyShuttleController.stars}"/>
<f:ajax render="outputStars"/>
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/10-button+link/button+link.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/10-button%2Blink/button%2Blink.xhtml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/10-button+link/button+link.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/10-button+link/button+link.xhtml Wed Mar 23 06:37:50 2016
@@ -20,33 +20,53 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.button_link} <tc:button> <tc:link>"/>
- <p>The classic link can be set with the <code><tc:link/></code> tag. You can also set a link via a button.</p>
- <tc:link label="Generated Documentation for <tc:link/>"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/link.html"/>
+ <p>The classic link can be set with the <code class="language-markup"><tc:link/></code> tag.
+ You can also set a link by <code class="language-markup"><tc:button/></code>.</p>
+ <tc:link label="Tag Library Documentation for <tc:link/>" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/link.html"/>
|
- <tc:link label="Generated Documentation for <tc:button/>"
- link="https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc/button.html"/>
+ <tc:link label="Tag Library Documentation for <tc:button/>" image="image/feather-leaf.png"
+ link="#{overviewBundle.tagDocUrl}/button.html"/>
- <tc:section label="Basics <tc:link>">
- <pre><code class="language-markup"><tc:link label="apache.org" link="https://www.apache.org/"/></code></pre>
- <tc:link id="l1" label="apache.org" link="https://www.apache.org/"/>
- |
- <tc:link id="l2" label="Disabled" disabled="true" link="https://www.apache.org/"/>
- |
- <tc:link id="l3" label="Resource" resource="content/20-component/component.xhtml"/>
- |
- <tc:link id="l4" label="Action" action="#{buttonLinkController.linkToComponentsRoot}"/>
- |
- <tc:link id="l5" label="Link with an image" image="image/feather-leaf.png" link="https://www.apache.org/"/>
+ <tc:section label="Basics">
+ <tc:section label="<tc:link>">
+ <pre><code class="language-markup"><tc:link label="apache.org" link="https://www.apache.org/"/></code></pre>
+ <tc:link id="l1" label="apache.org" link="https://www.apache.org/"/>
+ |
+ <tc:link id="l2" label="Disabled" disabled="true" link="https://www.apache.org/"/>
+ |
+ <tc:link id="l3" label="Resource" resource="content/20-component/component.xhtml"/>
+ |
+ <tc:link id="l4" label="Action" action="#{buttonLinkController.linkToComponentsRoot}"/>
+ |
+ <tc:link id="l5" label="Link with an image" image="image/feather-leaf.png" link="https://www.apache.org/"/>
+ </tc:section>
+
+ <tc:section label="<tc:button>">
+ <pre><code class="language-markup"><tc:button label="apache.org" link="https://www.apache.org/"/></code></pre>
+ <tc:button id="b1" label="apache.org" link="https://www.apache.org/"/>
+ <tc:button id="b2" label="Disabled" disabled="true" link="https://www.apache.org/"/>
+ <tc:button id="b3" label="Resource" resource="content/20-component/component.xhtml"/>
+ <tc:button id="b4" label="Action" action="#{buttonLinkController.linkToComponentsRoot}"/>
+ <tc:button id="b5" image="image/feather-leaf.png" link="https://www.apache.org/"/>
+ </tc:section>
</tc:section>
- <tc:section label="Basics <tc:button>">
- <pre><code class="language-markup"><tc:button label="apache.org" link="https://www.apache.org/"/></code></pre>
- <tc:button id="b1" label="apache.org" link="https://www.apache.org/"/>
- <tc:button id="b2" label="Disabled" disabled="true" link="https://www.apache.org/"/>
- <tc:button id="b3" label="Resource" resource="content/20-component/component.xhtml"/>
- <tc:button id="b4" label="Action" action="#{buttonLinkController.linkToComponentsRoot}"/>
- <tc:button id="b5" image="image/feather-leaf.png" link="https://www.apache.org/"/>
+ <tc:section label="Localization">
+ <p>When configured, a link leads to a localized resource. Languages can be configured in the faces-config.xml.</p>
+ <pre><code class="language-markup"><application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>de</supported-locale>
+ ...</code></pre>
+ <p>In addition, a localized file must be available.</p>
+ <p>In this example, <tc:link label="this link"
+ resource="content/20-component/040-command/10-button+link/sample.html"/>
+ leads to a 'sample.html'. When the language is german, it leads to 'sample_de.html'.</p>
+ <tc:selectOneChoice label="#{overviewBundle.locale}" value="#{clientConfigController2.locale}">
+ <f:selectItems value="#{clientConfigController2.localeItems}"/>
+ </tc:selectOneChoice>
+ <tc:button action="#{clientConfigController2.submit}" label="#{overviewBundle.locale_submit}"/>
</tc:section>
<tc:section label="Confirmation">
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml?rev=1736276&r1=1736275&r2=1736276&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml Wed Mar 23 06:37:50 2016
@@ -108,6 +108,9 @@
<entry key="footer_next">Next</entry>
<entry key="footer_viewSource">View Source</entry>
+ <!-- Tag Library Documentation URL -->
+ <entry key="tagDocUrl">https://myfaces.apache.org/tobago/doc/2.0.9/tld/tc</entry>
+
<!-- intro -->
<entry key="intro_text"><p>Tobago is a user interface framework for developing webapplications.