You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2021/04/20 13:20:21 UTC

[myfaces-tobago] branch master updated: fix(demo): OutController

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 87e4154  fix(demo): OutController
87e4154 is described below

commit 87e4154d5201fa6f208219185d2f6e80f6cac87f
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue Apr 20 15:19:26 2021 +0200

    fix(demo): OutController
    
    Add RequestScoped annotation
---
 .../java/org/apache/myfaces/tobago/example/demo/OutController.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/OutController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/OutController.java
index 1f30824..e59595c 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/OutController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/OutController.java
@@ -19,15 +19,16 @@
 
 package org.apache.myfaces.tobago.example.demo;
 
+import javax.enterprise.context.RequestScoped;
 import javax.inject.Named;
 import java.io.Serializable;
 
 @Named
+@RequestScoped
 public class OutController implements Serializable {
 
   public String getHtml() {
     return "Text in <span style='color:#FF0000'>red</span>, "
         + "<span style='color:#00FF00'>green</span> and <span style='color:#0000FF'>blue</span>.";
   }
-
 }