Repository: primefaces/primefaces (java)

Issue:
TabView: Hides menuItems items except the first one under actions facet of TabView
### Describe the bug

When put the menu button to the actions facet of TabView, only the first one is shown.

```xhtml
<p:tabView>
    <f:facet name="actions">
        <p:menuButton value="Menu button">
            <p:menuitem value="menu item 1"/>
            <p:menuitem value="menu item 2"/>
            <p:menuitem value="menu item 3"/>
            <p:menuitem value="menu item 4"/>
        </p:menuButton>
    </f:facet>
    <p:tab title="Tab1"/>
    <p:tab title="Tab2"/>
    <p:tab title="Tab3"/>
</p:tabView>
```

<img width="1680" alt="Screenshot 2024-07-29 at 16 15 28" src="https://github.com/user-attachments/assets/a92c6783-7018-46bc-8407-fb96c87f99f9">


### Reproducer

[primefaces-test.zip](https://github.com/user-attachments/files/16413773/primefaces-test.zip)

### Expected behavior

all menu items must be shown

### PrimeFaces edition

Community

### PrimeFaces version

15.0.0-SNAPSHOT

### Theme

_No response_

### JSF implementation

All

### JSF version

2.3

### Java version

17

### Browser(s)

_No response_

Pull request description:
Fix #12338: 14.0.4 Tabview with MenuButton in facet
Fix #12338: 14.0.4 Tabview with MenuButton in facet

Patch:
diff --git a/pom.xml b/pom.xml
index c83d2cc7fc..dc97bca22c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
     <groupId>org.primefaces</groupId>
     <artifactId>primefaces-parent</artifactId>
     <packaging>pom</packaging>
-    <version>14.0.3</version>
+    <version>14.0.4-SNAPSHOT</version>
 
     <name>PrimeFaces Parent</name>
     <url>https://www.primefaces.org</url>
diff --git a/primefaces-cli/pom.xml b/primefaces-cli/pom.xml
index 6907d610a5..696fd0efcb 100644
--- a/primefaces-cli/pom.xml
+++ b/primefaces-cli/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces-selenium/pom.xml b/primefaces-selenium/pom.xml
index 84afb247f1..4c00fd04e0 100644
--- a/primefaces-selenium/pom.xml
+++ b/primefaces-selenium/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces-selenium/primefaces-selenium-components/pom.xml b/primefaces-selenium/primefaces-selenium-components/pom.xml
index 52d19bbd7f..263ce563a2 100644
--- a/primefaces-selenium/primefaces-selenium-components/pom.xml
+++ b/primefaces-selenium/primefaces-selenium-components/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-selenium</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces-selenium/primefaces-selenium-core/pom.xml b/primefaces-selenium/primefaces-selenium-core/pom.xml
index e8a3327d82..fbeb1856ed 100644
--- a/primefaces-selenium/primefaces-selenium-core/pom.xml
+++ b/primefaces-selenium/primefaces-selenium-core/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-selenium</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces-showcase/pom.xml b/primefaces-showcase/pom.xml
index 757382b5f1..d811483904 100644
--- a/primefaces-showcase/pom.xml
+++ b/primefaces-showcase/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces/pom.xml b/primefaces/pom.xml
index cd923a987b..2c6c67b521 100644
--- a/primefaces/pom.xml
+++ b/primefaces/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces/src/main/resources/META-INF/resources/primefaces/tabview/tabview.css b/primefaces/src/main/resources/META-INF/resources/primefaces/tabview/tabview.css
index 6157aa9e6d..5721fb741c 100644
--- a/primefaces/src/main/resources/META-INF/resources/primefaces/tabview/tabview.css
+++ b/primefaces/src/main/resources/META-INF/resources/primefaces/tabview/tabview.css
@@ -18,6 +18,11 @@
     float: none;
 }
 
+/* GitHub #12338 menu inside tabs */
+.ui-tabs .ui-tabs-nav li .ui-menu-list {
+    white-space: initial;
+}
+
 .ui-tabs .ui-tabs-nav li a {
     float: left;
     padding: .5em 1em;


Test patch:
diff --git a/primefaces-integration-tests-jakarta/pom.xml b/primefaces-integration-tests-jakarta/pom.xml
index 0954435515..d1483e5b36 100644
--- a/primefaces-integration-tests-jakarta/pom.xml
+++ b/primefaces-integration-tests-jakarta/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
diff --git a/primefaces-integration-tests/pom.xml b/primefaces-integration-tests/pom.xml
index 26b2ac870e..a050b97b10 100644
--- a/primefaces-integration-tests/pom.xml
+++ b/primefaces-integration-tests/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.primefaces</groupId>
         <artifactId>primefaces-parent</artifactId>
-        <version>14.0.3</version>
+        <version>14.0.4-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>