-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright (c) 2024 Contributors to Eclipse Foundation. | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License v. 2.0, which is available at | ||
http://www.eclipse.org/legal/epl-2.0. | ||
This Source Code may also be made available under the following Secondary | ||
Licenses when the conditions for such availability set forth in the | ||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
version 2 with the GNU Classpath Exception, which is available at | ||
https://www.gnu.org/software/classpath/license.html. | ||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
--> | ||
<html | ||
xmlns:h="jakarta.faces.html" | ||
xmlns:my="jakarta.faces.composite/components" | ||
> | ||
<h:head> | ||
<title>Issue5415IT</title> | ||
</h:head> | ||
<h:body> | ||
<h:form id="form"> | ||
<my:outerComponent id="firstInstanceOfOuterComponent" /> | ||
<my:outerComponent id="secondInstanceOfOuterComponent" /> | ||
</h:form> | ||
</h:body> | ||
</html> |
31 changes: 31 additions & 0 deletions
31
tck/faces40/ajax/src/main/webapp/resources/components/innerComponent.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
Copyright (c) 2024 Contributors to Eclipse Foundation. | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License v. 2.0, which is available at | ||
http://www.eclipse.org/legal/epl-2.0. | ||
This Source Code may also be made available under the following Secondary | ||
Licenses when the conditions for such availability set forth in the | ||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
version 2 with the GNU Classpath Exception, which is available at | ||
https://www.gnu.org/software/classpath/license.html. | ||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
--> | ||
<ui:component | ||
xmlns:ui="jakarta.faces.facelets" | ||
xmlns:f="jakarta.faces.core" | ||
xmlns:h="jakarta.faces.html" | ||
xmlns:cc="jakarta.faces.composite" | ||
xmlns:my="jakarta.faces.composite/components" | ||
> | ||
<cc:interface> | ||
<cc:clientBehavior name="change" event="change" targets="input" /> | ||
</cc:interface> | ||
<cc:implementation> | ||
<h:selectOneMenu id="input" /> | ||
</cc:implementation> | ||
</ui:component> |
32 changes: 32 additions & 0 deletions
32
tck/faces40/ajax/src/main/webapp/resources/components/middleComponent.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- | ||
Copyright (c) 2024 Contributors to Eclipse Foundation. | ||
This program and the accompanying materials are made available under the | ||
terms of the Eclipse Public License v. 2.0, which is available at | ||
http://www.eclipse.org/legal/epl-2.0. | ||
This Source Code may also be made available under the following Secondary | ||
Licenses when the conditions for such availability set forth in the | ||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
version 2 with the GNU Classpath Exception, which is available at | ||
https://www.gnu.org/software/classpath/license.html. | ||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
--> | ||
<ui:component | ||
xmlns:ui="jakarta.faces.facelets" | ||
xmlns:f="jakarta.faces.core" | ||
xmlns:h="jakarta.faces.html" | ||
xmlns:cc="jakarta.faces.composite" | ||
xmlns:my="jakarta.faces.composite/components" | ||
> | ||
<cc:interface> | ||
</cc:interface> | ||
<cc:implementation> | ||
<my:innerComponent> | ||
<f:ajax execute="#{cc.clientId}" event="change" /> | ||
</my:innerComponent> | ||
</cc:implementation> | ||
</ui:component> |
11 changes: 11 additions & 0 deletions
11
tck/faces40/ajax/src/main/webapp/resources/components/outerComponent.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<ui:component | ||
xmlns:ui="jakarta.faces.facelets" | ||
xmlns:cc="jakarta.faces.composite" | ||
xmlns:my="jakarta.faces.composite/components" | ||
> | ||
<cc:interface> | ||
</cc:interface> | ||
<cc:implementation> | ||
<my:middleComponent id="middleComponentInOuterComponent" /> | ||
</cc:implementation> | ||
</ui:component> |
43 changes: 43 additions & 0 deletions
43
...s40/ajax/src/test/java/ee/jakarta/tck/faces/test/servlet50/ajax_selenium/Issue5415IT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
package ee.jakarta.tck.faces.test.servlet50.ajax_selenium; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import jakarta.faces.component.UIComponent; | ||
import jakarta.faces.component.behavior.AjaxBehavior; | ||
|
||
import org.junit.Test; | ||
|
||
import ee.jakarta.tck.faces.test.util.selenium.BaseITNG; | ||
import ee.jakarta.tck.faces.test.util.selenium.WebPage; | ||
|
||
public class Issue5415IT extends BaseITNG { | ||
|
||
/** | ||
* @see AjaxBehavior#getExecute() | ||
* @see UIComponent#getCompositeComponentParent(UIComponent) | ||
* @see https://github.com/eclipse-ee4j/mojarra/issues/5415 | ||
*/ | ||
@Test | ||
public void testExecuteCcClientId() throws Exception { | ||
WebPage page = getPage("issue5415IT.xhtml"); | ||
assertEquals(200, page.getResponseStatus()); | ||
assertEquals("Issue5415IT", page.getTitle()); | ||
} | ||
|
||
} |