Fórum

how to create a select option using liferay

Terry Ang, modificado 10 Anos atrás.

how to create a select option using liferay

New Member Postagens: 4 Data de Entrada: 16/05/13 Postagens Recentes
Dear All

May i know how to create a new select tag in liferay , how to write in jsp???
Terry Ang, modificado 10 Anos atrás.

RE: how to create a select option using liferay

New Member Postagens: 4 Data de Entrada: 16/05/13 Postagens Recentes
Reply please????
thumbnail
James Falkner, modificado 10 Anos atrás.

RE: how to create a select option using liferay

Liferay Legend Postagens: 1399 Data de Entrada: 17/09/10 Postagens Recentes
Terry Ang:
Reply please????


To make a select with Alloy UI, check out this guide.
Terry Ang, modificado 10 Anos atrás.

RE: how to create a select option using liferay

New Member Postagens: 4 Data de Entrada: 16/05/13 Postagens Recentes
hi james

i write it prompt out the error say
Multiple annotations found at this line:
- Syntax error on token "}", delete this token
- Syntax error, insert "}" to complete Block
thumbnail
sachin maheshwari, modificado 10 Anos atrás.

RE: how to create a select option using liferay

Junior Member Postagens: 52 Data de Entrada: 04/12/10 Postagens Recentes
try this code:



<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>


<portlet:defineobjects />

<aui:select label="State" name="SkpState">
	<aui:option value="">Select</aui:option>
	<aui:option value="<%=" state"%>"&gt;&lt;%="state"%&gt;</aui:option>
</aui:select>



Also refer this
thumbnail
Vishal Panchal, modificado 10 Anos atrás.

RE: how to create a select option using liferay

Expert Postagens: 289 Data de Entrada: 20/05/12 Postagens Recentes
Terry Ang:
hi james

i write it prompt out the error say
Multiple annotations found at this line:
- Syntax error on token "}", delete this token
- Syntax error, insert "}" to complete Block



Hi Terry,

Please verify the syntax this is because it looks like you have some additional "}" .

below is a sample code.
<aui:select name="test" label="Label" onchange="javascript:functionSelect(this.value);">
<aui:option value="test1">test1</aui:option>
<aui:option value="test2">test2</aui:option>
<aui:option value="test3">test3</aui:option>
</aui:select>

You may also refer below link.
http://www.liferay.com/community/wiki/-/wiki/Main/Alloy+UI+Forms+%28aui%29#section-Alloy+UI+Forms+(aui)-Select

Hope it helps.!

Thanks&Regards,
Vishal R. Panchal
thumbnail
Muradali Hasan, modificado 10 Anos atrás.

RE: how to create a select option using liferay

Junior Member Postagens: 84 Data de Entrada: 27/07/10 Postagens Recentes
Hi James,

Links seems to be broken can you verify please.

Thanks-
Muradali
Terry Ang, modificado 10 Anos atrás.

RE: how to create a select option using liferay

New Member Postagens: 4 Data de Entrada: 16/05/13 Postagens Recentes
Hi james and vishal

It work's

Thanks For your information

Regards
Terry