Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ace jsf2
-
Assignee Priority:P2
Description
as per attached test case, note the context menu will fire the action listener only for the root node.
three test pages within this test app:-
<ace:linkButton id="linkButton1" value="12684" href="contextMenuInAceTree.jsf"></ace:linkButton>
<ace:linkButton id="linkButton3" value="12684Variation" href="contextMenuInAceTree2.jsf"></ace:linkButton>
<ace:linkButton id="linkButton2" value="12684 no ace ajax" href="contextMenuInAceTreeNoAceAjax.jsf"></ace:linkButton>
12684 is original test case.
12684 variation is not using static lists directly in page.
12684 no ajax is without using ace:ajax.
First two show js errors
"[window] Source element is undefined, cannot determine if this view is ICEfaces enabled." (once for each ace:ajax per menuItem). Note the id's that the ace:tree generates
javax.faces.execute: form:tree:-:0:1:-:menuItem3a
Even the showcase example shows '-' within id's of ace:tree. Is this acceptable for jsf id's?
three test pages within this test app:-
<ace:linkButton id="linkButton1" value="12684" href="contextMenuInAceTree.jsf"></ace:linkButton>
<ace:linkButton id="linkButton3" value="12684Variation" href="contextMenuInAceTree2.jsf"></ace:linkButton>
<ace:linkButton id="linkButton2" value="12684 no ace ajax" href="contextMenuInAceTreeNoAceAjax.jsf"></ace:linkButton>
12684 is original test case.
12684 variation is not using static lists directly in page.
12684 no ajax is without using ace:ajax.
First two show js errors
"[window] Source element is undefined, cannot determine if this view is ICEfaces enabled." (once for each ace:ajax per menuItem). Note the id's that the ace:tree generates
javax.faces.execute: form:tree:-:0:1:-:menuItem3a
Even the showcase example shows '-' within id's of ace:tree. Is this acceptable for jsf id's?
-
Hide
- aceTree.zip
- 28 kB
- Judy Guglielmin
-
- aceTree/.classpath 2 kB
- aceTree/.project 1.0 kB
- aceTree/.settings/.jsdtscope 0.5 kB
- aceTree/.../org.eclipse.jdt.core.prefs 0.3 kB
- aceTree/.../org.eclipse.wst.common.component 0.5 kB
- aceTree/.../org.eclipse.wst.common.project.facet.core.prefs.xml 0.3 kB
- aceTree/.../org.eclipse.wst.common.project.facet.core.xml 0.4 kB
- aceTree/.../org.eclipse.wst.jsdt.ui.superType.container 0.0 kB
- aceTree/.../org.eclipse.wst.jsdt.ui.superType.name 0.0 kB
- aceTree/build/.../LocationNodeImpl.class 6 kB
- aceTree/build/.../contextMenu/TreeBean.class 6 kB
- aceTree/build/.../TreeBean2$1.class 1 kB
- aceTree/build/.../TreeBean2.class 3 kB
- aceTree/build/.../TreeDataFactory.class 3 kB
- aceTree/build/.../TreeDataFactory2$1.class 0.7 kB
- aceTree/build/.../TreeDataFactory2.class 3 kB
- aceTree/src/.../LocationNodeImpl.java 4 kB
- aceTree/src/.../contextMenu/TreeBean.java 6 kB
- aceTree/src/.../contextMenu/TreeBean2.java 2 kB
- aceTree/src/.../TreeDataFactory.java 3 kB
- aceTree/src/.../TreeDataFactory2.java 4 kB
- aceTree/.../contextMenuInAceTree.xhtml 3 kB
- aceTree/.../contextMenuInAceTree2.xhtml 4 kB
- aceTree/.../contextMenuInAceTreeNoAceAjax.xhtml 3 kB
- aceTree/WebContent/index.jsp 0.1 kB
- aceTree/WebContent/index.xhtml 1 kB
- aceTree/WebContent/META-INF/MANIFEST.MF 0.0 kB
- aceTree/WebContent/.../faces-config.xml 0.3 kB
- aceTree/WebContent/WEB-INF/web.xml 2 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
for priority and assignment. Note support case issue.
Show
Judy Guglielmin
added a comment - for priority and assignment. Note support case issue.
Looks like the ID’s are not valid. Mojarra likes only underscores and colons (besides word characters).
Show
Mircea Toma
added a comment - Looks like the ID’s are not valid. Mojarra likes only underscores and colons (besides word characters).
The format of the ID is fine, JSF allows underscore, dash, colon and any word character. The ID needs to start with word character.
Show
Mircea Toma
added a comment - The format of the ID is fine, JSF allows underscore, dash, colon and any word character. The ID needs to start with word character.
The log message described above is actually a warning not an error. The message is shown when the JSF bridge is not able to find the element that triggered the submit (this is when the data.source property is transformed from an ID as string into the element object).
Show
Mircea Toma
added a comment - The log message described above is actually a warning not an error. The message is shown when the JSF bridge is not able to find the element that triggered the submit (this is when the data.source property is transformed from an ID as string into the element object).
Modified BaseMenuRenderer to render the ID attribute for the anchor elements that represent the menu items in the page.
Show
Mircea Toma
added a comment - - edited Modified BaseMenuRenderer to render the ID attribute for the anchor elements that represent the menu items in the page.
example app