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 16:51:55 UTC
svn commit: r1160722 - in /myfaces/tobago/trunk:
tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java
tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml
Author: lofwyr
Date: Tue Aug 23 14:51:55 2011
New Revision: 1160722
URL: http://svn.apache.org/viewvc?rev=1160722&view=rev
Log:
using CDI
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java
myfaces/tobago/trunk/tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java?rev=1160722&r1=1160721&r2=1160722&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/overview/OverviewController.java Tue Aug 23 14:51:55 2011
@@ -18,6 +18,7 @@ package org.apache.myfaces.tobago.exampl
*/
import org.apache.commons.lang.StringUtils;
+import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.WindowScoped;
import org.apache.myfaces.tobago.component.UISheet;
import org.apache.myfaces.tobago.component.UIToolBar;
import org.apache.myfaces.tobago.context.ResourceManagerUtils;
@@ -36,13 +37,17 @@ import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.validator.ValidatorException;
+import javax.inject.Named;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
-public class OverviewController {
+@WindowScoped
+@Named(value = "overviewController")
+public class OverviewController implements Serializable {
private static final Logger LOG = LoggerFactory.getLogger(OverviewController.class);
@@ -67,7 +72,7 @@ public class OverviewController {
private Salutation[] multiValue;
/*
- @Required(parameters = ViolationSeverity.Error.class)
+ @Required
*/
private String basicInput;
Modified: myfaces/tobago/trunk/tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml?rev=1160722&r1=1160721&r2=1160722&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/tobago-example11/tobago-example11-demo/src/main/webapp/WEB-INF/faces-config.xml Tue Aug 23 14:51:55 2011
@@ -104,12 +104,6 @@
<!-- overview -->
- <managed-bean>
- <managed-bean-name>overviewController</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.demo.overview.OverviewController</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-
<!-- the jspx files will be generated -->
<navigation-rule>
<navigation-case>