Forums de discussion

how to get the j_id of a liferay icefaces element

dominick campbell, modifié il y a 11 années.

how to get the j_id of a liferay icefaces element

Junior Member Publications: 60 Date d'inscription: 15/08/12 Publications récentes
Hey Everyone

Does anyone know how to get the "j_id" of an icefaces element in liferay?

For instance my portlet renders an ice:panelDivider
<ice:panelDivider id="dashboardPanelId" dividerPosition="#{ColumnsModelBean.dividerPosition}" orientation="vertical"
style="width:1000px; height:400px;" rendered="#{ColumnsModelBean.dashboardBean.displayTree}" >
<f:facet name="first">

but the id renders as A3896:j_idt43:dashboardPanelId

I know how to get the A3896 part, but i cant seem to figure out how to get the j_id part of the id

Thanks
thumbnail
Kyle Joseph Stiemann, modifié il y a 11 années.

RE: how to get the j_id of a liferay icefaces element

Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
Hi Dominick,
What is the parent of your ice:panelDivider? If you give that parent's id attribute a value, then you will have full control over the generated clientId.

-Kyle
dominick campbell, modifié il y a 11 années.

RE: how to get the j_id of a liferay icefaces element

Junior Member Publications: 60 Date d'inscription: 15/08/12 Publications récentes
Thanks for the response Kyle

Thats what I ended up doing

I wrapped the ice panel divider in a div tag and grabbed the first child element

Thanks