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:47 UTC
[myfaces-tobago] branch tobago-5.x updated: docs: improve migration guide
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-5.x by this push:
new e7b6909a12 docs: improve migration guide
e7b6909a12 is described below
commit e7b6909a122533938015315269cfef8bb1e9d5fc
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 e3c7af1119..e476c03eaa 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 javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
-import javax.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">