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/11/27 13:26:26 UTC
svn commit: r1771587 - in
/myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main: java/
java/org/ java/org/apache/ java/org/apache/myfaces/
java/org/apache/myfaces/tobago/ java/org/apache/myfaces/tobago/example/
java/org/apache/myfaces/toba...
Author: lofwyr
Date: Sun Nov 27 13:26:26 2016
New Revision: 1771587
URL: http://svn.apache.org/viewvc?rev=1771587&view=rev
Log:
TOBAGO-1544 Revise Demo Application for Tobago 3.0
* simple bean
Added:
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/Hello.java
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/helloWorld.xhtml
Added: myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/Hello.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/Hello.java?rev=1771587&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/Hello.java (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/java/org/apache/myfaces/tobago/example/blank/Hello.java Sun Nov 27 13:26:26 2016
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.myfaces.tobago.example.blank;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+
+@ManagedBean
+@RequestScoped
+public class Hello {
+
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/helloWorld.xhtml?rev=1771587&r1=1771586&r2=1771587&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/helloWorld.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/helloWorld.xhtml Sun Nov 27 13:26:26 2016
@@ -19,7 +19,12 @@
<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:tc="http://myfaces.apache.org/tobago/component">
+
<tc:page>
- <tc:out value="Hello World!"/>
+
+ <tc:in label="Name" value="#{hello.name}"/>
+
+ <tc:out value="Hello #{hello.name}!" rendered="#{not empty hello.name}"/>
+
</tc:page>
</f:view>