Forums de discussion
Datatable is not working after changing portlet's position in liferay
Ramya Sree Kalagiri, modifié il y a 11 années.
Datatable is not working after changing portlet's position in liferay
New Member Publications: 8 Date d'inscription: 19/12/12 Publications récentes
Hi all,
I'm using jquery datatable in liferay. I have 3 portlets in a page suppose portlet A, B and C which are present in the same page. Where, on user entering data in portlet A, liferay will be fired in other 2 porlets(B, C) and data will be displayed in that portlets. In portlet C, I'm using datatable(jquery) which is working fine when portlet B is placed above C. But I'm facing javascript error(Object doesn't support this property or method at dataTable) when portlet C is placed before portlet B, in both the situations B is working fine.
What might me the problem? can anyone please help me out to solve this problem? thanks in advance.
I'm using jquery datatable in liferay. I have 3 portlets in a page suppose portlet A, B and C which are present in the same page. Where, on user entering data in portlet A, liferay will be fired in other 2 porlets(B, C) and data will be displayed in that portlets. In portlet C, I'm using datatable(jquery) which is working fine when portlet B is placed above C. But I'm facing javascript error(Object doesn't support this property or method at dataTable) when portlet C is placed before portlet B, in both the situations B is working fine.
What might me the problem? can anyone please help me out to solve this problem? thanks in advance.
Hitoshi Ozawa, modifié il y a 11 années.
RE: Datatable is not working after changing portlet's position in liferay
Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
You have to remember that html page is generated from portlets. You're portlets probably have id or class that you haven't prefixed with <portlet:namespace /> to make them unique.
BTW, you're posting to the wrong forum. Your question is about jquery and this forum is about Alloy UI. Please don't post questions not pertaining to Alloy UI here.
BTW, you're posting to the wrong forum. Your question is about jquery and this forum is about Alloy UI. Please don't post questions not pertaining to Alloy UI here.