Skip to content

Commit

Permalink
Fix Loading of taglibs, replace myfaces with component local mojarra
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jun 14, 2024
1 parent 51a2eb4 commit 0a7c294
Show file tree
Hide file tree
Showing 6 changed files with 14,843 additions and 16 deletions.
4 changes: 2 additions & 2 deletions modules/cui-jsf-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<artifactId>jaxen</artifactId>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<groupId>de.cuioss.jsf</groupId>
<artifactId>cui-jsf-bootstrap</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import static de.cuioss.jsf.dev.metadata.TagLib.JSF_2_2_FACELET_TAGLIB_NAMESPACE;
import static de.cuioss.jsf.dev.metadata.TagLib.JSF_2_FACELET_TAGLIB_NAMESPACE;
import static de.cuioss.jsf.dev.metadata.TagLib.JSF_4_0_FACELET_TAGLIB_NAMESPACE;

/**
Expand All @@ -14,10 +14,11 @@
public enum LibraryTagLib {

CUI_CORE("/META-INF/cui-core.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
CUI_BOOTSTRAP("/META-INF/cui-core.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
PRIME_FACES("/META-INF/primefaces-p.taglib.xml", JSF_2_2_FACELET_TAGLIB_NAMESPACE),
CUI_BOOTSTRAP("/META-INF/cui-bootstrap.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
PRIME_FACES("/META-INF/primefaces-p.taglib.xml", JSF_2_FACELET_TAGLIB_NAMESPACE),
OMNI_FACES("/META-INF/omnifaces-ui.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
MY_FACES("/META-INF/standard-faces-config.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE);
FACES_CORE("/META-INF/resources/mojarra-4.0.7-tlds/faces.core_taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
FACES_HTML("/META-INF/resources/mojarra-4.0.7-tlds/faces.html_taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE);

@Getter
private final String path;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is a temporary workaround:
Starting with myfaces-4, there are no tld-files delivered.
Therefore, we fall back to mojarra 4.0.7 until we implement the parsing of the "META-INF/standard-faces-config.xml"
Loading

0 comments on commit 0a7c294

Please sign in to comment.