Fórum

Datatable with selectionMode in alloy:dialog

thumbnail
Nicola Sar, modificado 7 Anos atrás.

Datatable with selectionMode in alloy:dialog

New Member Postagens: 7 Data de Entrada: 12/02/16 Postagens Recentes
Hi all,
I am trying to rerender an alloy:dialog that render an alloy:datatable in selectionMode="radio",
when I click on alloy:button to open dialog, It doesn't open dialog.
But if I remove from datatable the selectionMode, It works. Any idea?

My environment:
liferay-faces-alloy/bridge-impl/portal/faces-util/bridge-api --> 3.2.5-ga6
jsf-api/impl --> 2.1.29

Thank you for your help

Nicola
thumbnail
Kyle Joseph Stiemann, modificado 7 Anos atrás.

RE: Datatable with selectionMode in alloy:dialog

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Nicola,

Can you post the shortest code necessary to reproduce your issue? Also, are there any errors in the server or browser logs?

- Kyle
thumbnail
Nicola Sar, modificado 7 Anos atrás.

RE: Datatable with selectionMode in alloy:dialog

New Member Postagens: 7 Data de Entrada: 12/02/16 Postagens Recentes
Hi Kyle,
I've no errors on server, but that on browser console:
 onclick="Liferay.component('dialog1').toggle();" onfocus="this.className+=' btn-focus';return false;" onblur="this.className=this.clas...Can not retrieve the property ' toggle ' to a reference zero or undefined

I've attached simple files to reproduce errors.

Thank you for your help

Nicola
thumbnail
Kyle Joseph Stiemann, modificado 7 Anos atrás.

RE: Datatable with selectionMode in alloy:dialog

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Nicola,
I think you might be running into FACES-2580. Please try either changing h:head and h:body to alloy:head and alloy:body or adding alloy.js to h:head:

<alloy:outputScript library="liferay-faces-alloy" name="alloy.js" target="head" />

- Kyle
thumbnail
Nicola Sar, modificado 7 Anos atrás.

RE: Datatable with selectionMode in alloy:dialog

New Member Postagens: 7 Data de Entrada: 12/02/16 Postagens Recentes
Thank you so much Kyle!
Now it works.

Nicola
thumbnail
Kyle Joseph Stiemann, modificado 7 Anos atrás.

RE: Datatable with selectionMode in alloy:dialog

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Glad it's working for you! Thanks for using Liferay Faces!

- Kyle