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 2011/08/23 10:19:05 UTC
svn commit: r1160580 - in
/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main:
java/org/apache/myfaces/tobago/example/test/InBean.java
webapp/WEB-INF/faces-config.xml webapp/tc/in/in.xhtml
Author: lofwyr
Date: Tue Aug 23 08:19:05 2011
New Revision: 1160580
URL: http://svn.apache.org/viewvc?rev=1160580&view=rev
Log:
create a bean for the sample
Added:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InBean.java
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/faces-config.xml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/in/in.xhtml
Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InBean.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InBean.java?rev=1160580&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InBean.java (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/InBean.java Tue Aug 23 08:19:05 2011
@@ -0,0 +1,41 @@
+package org.apache.myfaces.tobago.example.test;
+
+/*
+ * 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.
+ */
+
+public class InBean {
+
+ private String first;
+
+ private String second;
+
+ public String getFirst() {
+ return first;
+ }
+
+ public void setFirst(String first) {
+ this.first = first;
+ }
+
+ public String getSecond() {
+ return second;
+ }
+
+ public void setSecond(String second) {
+ this.second = second;
+ }
+}
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/faces-config.xml?rev=1160580&r1=1160579&r2=1160580&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/faces-config.xml Tue Aug 23 08:19:05 2011
@@ -42,6 +42,12 @@
</managed-bean>
<managed-bean>
+ <managed-bean-name>in</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.test.InBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
<managed-bean-name>inputSuggest</managed-bean-name>
<managed-bean-class>org.apache.myfaces.tobago.example.test.InputSuggestController</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/in/in.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/in/in.xhtml?rev=1160580&r1=1160579&r2=1160580&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/in/in.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/in/in.xhtml Tue Aug 23 08:19:05 2011
@@ -28,8 +28,8 @@
</f:facet>
<tc:gridLayoutConstraint width="600px" height="300px"/>
- <tc:in value="Some Value"/>
- <tc:in value="Some Required Value" required="true"/>
+ <tx:in label="First Value" labelWidth="250px" value="#{in.first}"/>
+ <tx:in label="Second Value (Required)" labelWidth="250px" value="#{in.second}" required="true"/>
<tc:button label="submit"/>