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 2021/06/17 05:41:38 UTC

[myfaces-tobago] branch master updated: fix(demo): Controller needs a scope

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

lofwyr 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 8e6c9b8  fix(demo): Controller needs a scope
8e6c9b8 is described below

commit 8e6c9b880cf110792dd6cf92e2aa0d60b8c71b96
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Thu Jun 17 07:38:24 2021 +0200

    fix(demo): Controller needs a scope
---
 .../org/apache/myfaces/tobago/example/demo/ButtonLinkController.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ButtonLinkController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ButtonLinkController.java
index 4e65570..55a4bdc 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ButtonLinkController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ButtonLinkController.java
@@ -22,11 +22,13 @@ package org.apache.myfaces.tobago.example.demo;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import javax.enterprise.context.RequestScoped;
 import javax.inject.Named;
 import java.io.Serializable;
 import java.lang.invoke.MethodHandles;
 
 @Named
+@RequestScoped
 public class ButtonLinkController implements Serializable {
 
   private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());