[jboss-svn-commits] JBL Code SVN: r10346 - in labs/jbosslabs/trunk/portal-extensions/forge-portlets/src: web/WEB-INF and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Mar 20 09:19:04 EDT 2007
Author: wrzep
Date: 2007-03-20 09:19:04 -0400 (Tue, 20 Mar 2007)
New Revision: 10346
Added:
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectAdminBean.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectPagesAdminBean.java
Modified:
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/web/WEB-INF/faces-config.xml
Log:
JBLAB-849 JBLAB-843
-Pawel
Added: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectAdminBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectAdminBean.java (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectAdminBean.java 2007-03-20 13:19:04 UTC (rev 10346)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.forge.projects.admin;
+
+import java.io.Serializable;
+
+
+public class ProjectAdminBean implements Serializable {
+
+ private static final long serialVersionUID = -9175216257231542L;
+
+ private ProjectInfoAdminBean info;
+ private ProjectPagesAdminBean pages;
+
+ public String save() {
+
+ return "";
+ }
+
+ public String apply() {
+
+ save();
+
+ return "";
+ }
+
+ public String cancel() {
+
+ // reset saved beans?
+
+ return "";
+ }
+
+ /* getters and setters */
+
+ public ProjectInfoAdminBean getInfo() {
+ return info;
+ }
+ public void setInfo(ProjectInfoAdminBean infoBean) {
+ this.info = infoBean;
+ }
+ public ProjectPagesAdminBean getPages() {
+ return pages;
+ }
+ public void setPages(ProjectPagesAdminBean pagesBean) {
+ this.pages = pagesBean;
+ }
+
+
+}
Added: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectPagesAdminBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectPagesAdminBean.java (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/admin/ProjectPagesAdminBean.java 2007-03-20 13:19:04 UTC (rev 10346)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.forge.projects.admin;
+
+import java.io.Serializable;
+
+
+public class ProjectPagesAdminBean implements Serializable {
+
+ private static final long serialVersionUID = 3512752162572321542L;
+
+}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/web/WEB-INF/faces-config.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/web/WEB-INF/faces-config.xml 2007-03-20 11:59:21 UTC (rev 10345)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/web/WEB-INF/faces-config.xml 2007-03-20 13:19:04 UTC (rev 10346)
@@ -44,6 +44,24 @@
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
+ <managed-bean-name>pages</managed-bean-name>
+ <managed-bean-class>org.jboss.forge.projects.admin.ProjectPagesAdminBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>admin</managed-bean-name>
+ <managed-bean-class>org.jboss.forge.projects.admin.ProjectAdminBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>info</property-name>
+ <value>#{pedit}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>pages</property-name>
+ <value>#{pages}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>types</managed-bean-name>
<managed-bean-class>org.jboss.forge.projects.admin.ProjectInfoTypesBean</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
More information about the jboss-svn-commits
mailing list