掲示板

Liferay Faces Alloy : <aui:dialog />

11年前 に benjamin garcia によって更新されました。

Liferay Faces Alloy : <aui:dialog />

New Member 投稿: 10 参加年月日: 12/09/04 最新の投稿
Hello,

I would like to know how open a <aui:dialog> without call renderer, only client side.
Like this primefaces example :

<p:commandbutton id="modalDialogButton" value="Modal" onclick="dlg2.show();" type="button" />
 <p:dialog id="modalDialog" header="Modal Dialog" widgetvar="dlg2" modal="true" height="100">
     <h:outputtext value="This is a Modal Dialog." />
 </p:dialog>
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Liferay Faces Alloy : <aui:dialog />

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
The aui:dialog component is experimental at this time, which is why it does not appear in the documentation. Consequently, it does not (yet) have an onclick/widgetVar client-side type of feature.

So at this time, the only way to pop it up is to use a rendered attribute:

<aui:dialog id="modalDialog" rendered="#{viewBean.popupRendered}">
		<h:outputtext value="This is a Modal Dialog." />
</aui:dialog>


And then toggle the value returned by ViewBean.isPopupRendered() like this:

<h:commandbutton actionlistener="#{ViewBean.togglePopup}">
    <f:ajax execute="@all" render="@form" />
</h:commandbutton>
11年前 に benjamin garcia によって更新されました。

RE: Liferay Faces Alloy : <aui:dialog />

New Member 投稿: 10 参加年月日: 12/09/04 最新の投稿
Hello,

Thank you for your answer. I will try this in new app.