Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: EE-3.0.0.GA_P01
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Liferay 6.0.6
Liferay Faces 3.0.0-ga1
Description
After upgrading from PortletFaces Bridge to Liferay Faces Bridge, a client's application is unresponsive when clicking on h:commandLinks
The id's in the response have the portlet namespace prepended twice as follows:
<partial-response>
<changes>
<update id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn"><input id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" name="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" type="hidden" /></update>
<update id="javax.faces.ViewState">3857415867440424219:3407657154440939010</update>
<eval>Ice.Prototype.$('A1609:j_idt12:A1609:j_idt12:j_idt15_idtn').value='';//1663176465</eval>
<extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension>
</changes>
</partial-response>
The id's in the response have the portlet namespace prepended twice as follows:
<partial-response>
<changes>
<update id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn"><input id="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" name="A1609:j_idt12:A1609:j_idt12:j_idt15_idtn" type="hidden" /></update>
<update id="javax.faces.ViewState">3857415867440424219:3407657154440939010</update>
<eval>Ice.Prototype.$('A1609:j_idt12:A1609:j_idt12:j_idt15_idtn').value='';//1663176465</eval>
<extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension>
</changes>
</partial-response>
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Deryk found the following:
CustomComponentUtils:
public static String getHiddenTreeExpandFieldName(String componentId,
{ return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_NAV_FIELD_NAME; }String formName)
public static String getHiddenTreeActionFieldName(String componentId,
{ return formName + UINamingContainer.getSeparatorChar(FacesContext.getCurrentInstance()) + componentId + HIDDEN_TREE_ACTION_FIELD_NAME; }String formName)
Those two methods are taking the formName (which is calculated as "A1609:j_idt12") and then appending the component id (which is calculated as "A1609:j_idt12:j_idt15_idtn")