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 2022/11/16 13:11:50 UTC
[myfaces-tobago] branch main updated: docs: improve migration guide
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/main by this push:
new 715ce1f0fb docs: improve migration guide
715ce1f0fb is described below
commit 715ce1f0fb6714c05396d2af734751691752830b
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Nov 16 12:10:53 2022 +0100
docs: improve migration guide
---
.../org/apache/myfaces/tobago/example/demo/Migration5Controller.java | 4 ++--
.../content/000-intro/50-migration/95-migration/4.0_to_5.0.xhtml | 5 +++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Migration5Controller.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Migration5Controller.java
index 8dc03a9f9c..9388c251ac 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Migration5Controller.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Migration5Controller.java
@@ -19,11 +19,11 @@
package org.apache.myfaces.tobago.example.demo;
+import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Named;
-import jakarta.inject.Singleton;
import java.io.Serializable;
-@Singleton
+@ApplicationScoped
@Named
public class Migration5Controller extends SourceFileReader implements Serializable {
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/000-intro/50-migration/95-migration/4.0_to_5.0.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/000-intro/50-migration/95-migration/4.0_to_5.0.xhtml
index 495d7c01e5..492a1940e3 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/000-intro/50-migration/95-migration/4.0_to_5.0.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/000-intro/50-migration/95-migration/4.0_to_5.0.xhtml
@@ -85,6 +85,11 @@
class="language-markup">autoSpacing</code> replace this. By default it's 'true' and a bottom margin is set on form components. Use
<code class="language-markup">autoSpacing='false'</code> to remove the margin.
</tc:section>
+
+ <tc:section label="Markups">
+ Custom markups are no longer supported in Tobago 5. The markup attribute have to be replaced by
+ <code class="language-markup"><tc:style customClass="..."/></code>.
+ </tc:section>
</tc:section>
<tc:section id="java" label="Java API">