Author: scabanovich
Date: 2009-07-29 06:51:16 -0400 (Wed, 29 Jul 2009)
New Revision: 16858
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/MyBean.java
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/User.java
Removed:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting1.xhtml
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp
Log:
https://jira.jboss.org/jira/browse/JBIDE-2016
Test created.
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/MyBean.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/MyBean.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/MyBean.java 2009-07-29
10:51:16 UTC (rev 16858)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+import java.util.List;
+
+/**
+ * Created by JBoss Developer Studio
+ *
+ */
+public class MyBean {
+ private List<User> users;
+
+ public MyBean() {
+ }
+
+ public List<User> getUsers() {
+ return users;
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/MyBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java 2009-07-29
10:50:00 UTC (rev 16857)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java 2009-07-29
10:51:16 UTC (rev 16858)
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package demo;
-
-/**
- * Created by JBoss Developer Studio
-*
- */
-public class Person {
- private String name;
-
- public Person() {
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-}
\ No newline at end of file
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/User.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/User.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/User.java 2009-07-29
10:51:16 UTC (rev 16858)
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+public class User {
+ private MyBean name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/User.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml 2009-07-29
10:50:00 UTC (rev 16857)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml 2009-07-29
10:51:16 UTC (rev 16858)
@@ -3,13 +3,9 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
- <managed-bean-name>person</managed-bean-name>
- <managed-bean-class>demo.Person</managed-bean-class>
+ <managed-bean-name>myBean</managed-bean-name>
+ <managed-bean-class>demo.MyBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>name</property-name>
- <value/>
- </managed-property>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/greeting.jsp</from-view-id>
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp 2009-07-29
10:50:00 UTC (rev 16857)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp 2009-07-29
10:51:16 UTC (rev 16858)
@@ -7,14 +7,12 @@
</head>
<body>
<f:view>
- <f:loadBundle basename="resources" var="msg" />
-
- <strong>
- <h:outputText value="#{msg.greeting}" />
-
- <h:outputText value="#{person.name}" />
- <h:outputText value="!" />
- </strong>
+ <h:dataTable value="#{myBean.users}" var="user">
+ <h:column>
+ <h:outputText value="#{user.}" />
+ </h:column>
+ </h:dataTable>
+
</f:view>
</body>
</html>
\ No newline at end of file
Deleted:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting1.xhtml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting1.xhtml 2009-07-29
10:50:00 UTC (rev 16857)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting1.xhtml 2009-07-29
10:51:16 UTC (rev 16858)
@@ -1,16 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core">
-
- <f:loadBundle basename="resources" var="msg" />
- <ui:composition template="/templates/common.xhtml">
- <ui:define name="pageTitle">Greeting to User</ui:define>
- <ui:define name="pageHeader">Facelets Greeting Page</ui:define>
- <ui:define name="body">
- <h:outputText value="#{msg.greeting}" />
- #{msg.greeting} #{person.name}!
- </ui:define>
- </ui:composition>
-</html>
\ No newline at end of file