Details
Description
detect(parents(element), function (e) {return e.configuration;}) is null
[Break On This Error] return detect(parents(element), function(e) {
forum?...=normal (line 34)
The test case needs to be deployed in Liferay portal.
-
Hide
- icefaces-2.x-portlet-1.0.0-BETA4-SNAPSHOT.war
- 2.74 MB
- Neil Griffin
-
- META-INF/MANIFEST.MF 0.3 kB
- css/liferay-theme-override.css 0.2 kB
- images/icon-help.png 4 kB
- META-INF/context.xml 0.1 kB
- META-INF/LICENSE-2.0.txt 11 kB
- resources/pcc/message.xhtml 0.9 kB
- resources/pcc/messages.xhtml 1 kB
- WEB-INF/classes/i18n.properties 0.9 kB
- WEB-INF/classes/i18nFaces.properties 0.1 kB
- WEB-INF/classes/log4j.properties 2 kB
- WEB-INF/.../ApplicantBackingBean.class 6 kB
- WEB-INF/classes/.../ApplicantModelBean.class 4 kB
- WEB-INF/classes/.../bean/ListModelBean.class 4 kB
- WEB-INF/classes/org/.../dto/City.class 1 kB
- WEB-INF/classes/org/.../dto/Province.class 0.9 kB
- WEB-INF/classes/.../DebugPhaseListener.class 1 kB
- WEB-INF/classes/.../FacesMessageUtil.class 3 kB
- WEB-INF/faces-config.xml 0.8 kB
- WEB-INF/jboss-web.xml 0.3 kB
- WEB-INF/lib/icefaces-2.0.1.jar 200 kB
- WEB-INF/lib/jboss-el-2.0.0.GA.jar 131 kB
- WEB-INF/lib/jsf-api-2.1.1-b01.jar 606 kB
- WEB-INF/lib/jsf-impl-2.1.0-b08.jar 1.82 MB
- WEB-INF/.../portletfaces-bridge-2.0.0-BETA4-SNAPSHOT.jar 206 kB
- WEB-INF/liferay-display.xml 0.2 kB
- WEB-INF/liferay-plugin-package.properties 0.4 kB
- WEB-INF/liferay-portlet.xml 0.7 kB
- WEB-INF/portlet.xml 2 kB
- WEB-INF/web.xml 3 kB
- xhtml/applicant.xhtml 5 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
after fixing error is:
'value' - is null or not an object (javascript error)
I just tested this with the ICEfaces 2.0 trunk (versioned as 2.0.1 in icefaces/maven2/icefaces.pom) with the latest trunk of the PortletFaces Bridge (versioned as 2.0.0-BETA4) with Mojarra 2.1 and I'm getting the following JavaScript error:
form[form.id] is undefined
Demo portlet attached. Error occurs when all form fields are filled out and the Submit button is clicked.
Added test to verify the existence of form ID before checking the existence of the form element with the same name as the ID.
Hi Mircea – I did an svn update to svn revision 24000 and tried this again, but am still getting a JavaScript error at line 2174 in FireFox:
form[form.id] is undefined
[Break On This Error] (form.id && form.id == form[form.id].value);
Thanks in advance,
Neil
Sorry Neil about this. The test seemed so benign.
The fix checks the existence of the form element with the same name as the form ID before reading its 'value' property.
Verified as fixed – thanks Mircea!
BTW – The ICEfaces forum reference talks about, that after the navigation takes place, all of the Liferay menus, etc. disappear. Now that you fixed this issue, I just reproduced that problem – it's a servlet dependency in Mojarra where jsf.js replaces swaps out the entire <body>...</body> when it sees a javax.faces.ViewState DOM replacement in the partial update. This is something that will probably get fixed in JSF 2.2 but we'll have to hack around it in the bridge here: http://jira.portletfaces.org/browse/BRIDGE-74
Update: I just closed BRIDGE-74 because I realized the Liferay Menus disappearing is a problem with ICEfaces. See http://jira.icefaces.org/browse/ICE-6610
Are you sure this is fixed? I'm getting this problem 2.01-SNAPSHOT (built from the trunk) using ICEfaces 2.02 with the bundled implementation of Mojarra and Liferay 6.0 EE SP1. I wasn't getting it before I upgraded, though.
Getting the the error: detect(parents(element), function (e)
{return e.configuration;}) is null
when using the <ice:dataPaginator/>
The error occurs when one of the callbacks is trying to process the form elements found in the DOM update. During processing the bridge configuration is read from the form's parent node. The code fails because one of the processed form found in the DOM update is not actually rendered by JSF, the form is missing the parent having with the configuration attached.
The fix changed 'findUpdatedForms' function to return only the forms rendered by JSF components thus making sure that the process forms will have the configuration set on the parent nodes.