question of popup openModal window
question of popup openModal window
https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=121398832
2024-03-28T15:46:08Z
2024-03-28T15:46:08Z
question of popup openModal window
Scarletake Bwi
https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=121398831
2022-04-14T03:44:08Z
2022-04-13T07:06:34Z
<p>hi </p>
<p>i am using popup openModal window</p>
<pre>
<code class="language-java"><%@ include file="/init.jsp" %>
<%
String showEditSnmPrefixDialogJS = "JavaScript:showopenModal('" + 99 + "');";
%>
<liferay-ui:icon image="edit" message="test" url="<%=showEditSnmPrefixDialogJS%>" />
<portlet:renderURL var="openModal" windowState="<%=LiferayWindowState.POP_UP.toString()%>">
<portlet:param name="mvcPath" value="/second.jsp"/>
</portlet:renderURL>
<aui:script position="inline" use="aui-base">
window.showopenModal = function(id) {
Liferay.Util.openModal(
{
title: 'test',
centered: true,
constrain2view: false,
modal: true,
height: 650,
resizable: true,
url: '<%=openModal.toString()%>&<portlet:namespace />targetPart='+id,
size: 'md'
}
);
}
</aui:script></code></pre>
<p>in my second.jsp. i try use two columns, but it doesn't work, it only
shows one column. is that limitation of openModal? or what i do wrong?</p>
<pre>
<code class="language-java"> <aui:form id="test" method="post">
<aui:fieldset >
<aui:row>
<aui:col width="50">
<aui:select name="select"
id="select"
label="select" inlineField="false">
<aui:option value="0" label="0" />
<aui:option value="1" label="1" />
<aui:option value="2" label="2" />
<aui:option value="3" label="3" />
</aui:select>
</aui:col>
<aui:col width="50">
<aui:select name="select2" id="selectid" label="select2">
<aui:option value="0" label="Non" selected="false" />
<aui:option value="1" label="Len" selected="true" />
<aui:option value="2" label="Gnd" selected="false" />
<aui:option value="3" label="Ora" selected="false" />
</aui:select>
<div id='NonRule' class='aui-helper-hidden'>Not ODM</div>
<div id='LenRule' class='aui-helper-hidden'>LenovoRule</div>
<div id='GNDRule' class='aui-helper-hidden'>GNDRule</div>
<div id='OraRule' class='aui-helper-hidden'>OracleRule</div>
</aui:col>
</aui:row>
</aui:fieldset>
</aui:form></code></pre>
<p> </p>
<p>i want it like this</p>
<p>
<img alt="" height="114"
src="/documents/14/0/Image+2+%283%29.png/278619de-8d05-0bed-aff6-8119379d8c8f?t=1649907777033&imagePreview=1" width="519" /></p>
<p>but it display like this</p>
<p>
<img alt="" height="289"
src="/documents/14/0/Image+3+%282%29.png/44df641f-ce69-8fe8-ecb6-850ac5eee0fe?t=1649907811238&imagePreview=1" width="248" />
<br /> </p>
<p>is there any passable to make it two columns?</p>
<p>thanks in advance.&