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 2007/05/02 11:51:07 UTC
svn commit: r534369 - in /myfaces/tobago/trunk/example/test/src/main:
java/org/apache/myfaces/tobago/example/test/SessionController.java
webapp/renderedPartially.jsp webapp/span.jsp webapp/span2.jsp
Author: bommel
Date: Wed May 2 02:51:06 2007
New Revision: 534369
URL: http://svn.apache.org/viewvc?view=rev&rev=534369
Log:
added test jsps for renderedPartially and span
Added:
myfaces/tobago/trunk/example/test/src/main/webapp/renderedPartially.jsp
myfaces/tobago/trunk/example/test/src/main/webapp/span.jsp
myfaces/tobago/trunk/example/test/src/main/webapp/span2.jsp
Modified:
myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SessionController.java
Modified: myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SessionController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SessionController.java?view=diff&rev=534369&r1=534368&r2=534369
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SessionController.java (original)
+++ myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SessionController.java Wed May 2 02:51:06 2007
@@ -26,6 +26,8 @@
import org.apache.commons.logging.LogFactory;
import org.apache.myfaces.tobago.event.TabChangeListener;
+import javax.faces.model.SelectItem;
+
public class SessionController {
private static final Log LOG = LogFactory.getLog(SessionController.class);
@@ -38,8 +40,20 @@
private Integer selectedIndex2;
+ private String value;
+
public SessionController() {
}
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+
public TabChangeListener getTabChangeListener() {
LOG.info("getTabChangeListener " + tabChangeListener);
Added: myfaces/tobago/trunk/example/test/src/main/webapp/renderedPartially.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/renderedPartially.jsp?view=auto&rev=534369
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/renderedPartially.jsp (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/renderedPartially.jsp Wed May 2 02:51:06 2007
@@ -0,0 +1,43 @@
+<%--
+ * 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.
+--%>
+
+<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<f:view>
+ <tc:page >
+ <tc:panel id="panel">
+ <f:facet name="layout">
+ <tc:gridLayout margin="10px" rows="fixed;fixed;1*" columns="fixed;fixed;*"/>
+ </f:facet>
+ <tc:selectOneChoice value="#{bbg.value}" >
+ <f:selectItem itemValue="Audi" itemLabel="Audi"/>
+ <f:selectItem itemValue="Mercedes" itemLabel="Mercedes"/>
+ <f:facet name="click" >
+ <tc:command>
+ <tc:attribute name="renderedPartially" value="::panel"/>
+ </tc:command>
+ </f:facet>
+ </tc:selectOneChoice>
+ <tc:in value="#{bbg.value}" readonly="true" />
+ <tc:cell/>
+ <tc:messages/>
+ <tc:cell/>
+ </tc:panel>
+ </tc:page>
+</f:view>
\ No newline at end of file
Added: myfaces/tobago/trunk/example/test/src/main/webapp/span.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/span.jsp?view=auto&rev=534369
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/span.jsp (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/span.jsp Wed May 2 02:51:06 2007
@@ -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.
+--%>
+
+<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<f:view>
+ <tc:page >
+ <tc:panel>
+ <f:facet name="layout">
+ <tc:gridLayout margin="10px" rows="fixed;fixed;1*" columns="fixed;fixed"/>
+ </f:facet>
+
+ <tc:cell spanY="2">
+ <tx:textarea label="SearchCriteria"/>
+ </tc:cell>
+ <tx:in value="Test1" />
+ <tx:in value="Test2" />
+ <tc:cell/>
+ <tc:cell/>
+ </tc:panel>
+ </tc:page>
+</f:view>
\ No newline at end of file
Added: myfaces/tobago/trunk/example/test/src/main/webapp/span2.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/span2.jsp?view=auto&rev=534369
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/span2.jsp (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/span2.jsp Wed May 2 02:51:06 2007
@@ -0,0 +1,41 @@
+<%--
+ * 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.
+--%>
+
+<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<f:view>
+ <tc:page >
+ <tc:panel>
+ <f:facet name="layout">
+ <tc:gridLayout margin="10px" rows="fixed;fixed;1*" columns="fixed;fixed"/>
+ </f:facet>
+
+ <tc:cell spanY="2">
+ <tc:selectOneRadio value="Test1">
+ <f:selectItem itemValue="Test1" itemLabel="Test1"/>
+ <f:selectItem itemValue="Test2" itemLabel="Test2" />
+ </tc:selectOneRadio>
+ </tc:cell>
+ <tx:in value="Test1" />
+ <tx:in value="Test2" />
+ <tc:cell/>
+ <tc:cell/>
+ </tc:panel>
+ </tc:page>
+</f:view>
\ No newline at end of file