Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Terry Ang
how to create a select option using liferay
4 de Junho de 2013 17:53
Resposta

Terry Ang

Ranking: New Member

Mensagens: 4

Data de entrada: 16 de Maio de 2013

Mensagens recentes

Dear All

May i know how to create a new select tag in liferay , how to write in jsp???
Terry Ang
RE: how to create a select option using liferay
4 de Junho de 2013 18:16
Resposta

Terry Ang

Ranking: New Member

Mensagens: 4

Data de entrada: 16 de Maio de 2013

Mensagens recentes

Reply please????
James Falkner
RE: how to create a select option using liferay
4 de Junho de 2013 19:08
Resposta

James Falkner

Community Moderator

Ranking: Liferay Legend

Mensagens: 1406

Data de entrada: 17 de Setembro de 2010

Mensagens recentes

Terry Ang:
Reply please????


To make a select with Alloy UI, check out this guide.
Terry Ang
RE: how to create a select option using liferay
4 de Junho de 2013 21:02
Resposta

Terry Ang

Ranking: New Member

Mensagens: 4

Data de entrada: 16 de Maio de 2013

Mensagens 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
sachin maheshwari
RE: how to create a select option using liferay
5 de Junho de 2013 00:01
Resposta

sachin maheshwari

Ranking: Junior Member

Mensagens: 52

Data de entrada: 4 de Dezembro de 2010

Mensagens recentes

try this code:


 1
 2<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
 3<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
 4<%@ taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
 5<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
 6<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
 7
 8
 9<portlet:defineObjects />
10
11<aui:select  label="State"  name="SkpState">
12    <aui:option value="">Select</aui:option>
13    <aui:option value="<%="state"%>"><%="state"%></aui:option>
14</aui:select>


Also refer this
Vishal Panchal
RE: how to create a select option using liferay
5 de Junho de 2013 00:29
Resposta

Vishal Panchal

Ranking: Expert

Mensagens: 288

Data de entrada: 20 de Maio de 2012

Mensagens 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
Muradali Hasan
RE: how to create a select option using liferay
5 de Junho de 2013 00:11
Resposta

Muradali Hasan

Ranking: Junior Member

Mensagens: 83

Data de entrada: 26 de Julho de 2010

Mensagens recentes

Hi James,

Links seems to be broken can you verify please.

Thanks-
Muradali
Terry Ang
RE: how to create a select option using liferay
5 de Junho de 2013 01:45
Resposta

Terry Ang

Ranking: New Member

Mensagens: 4

Data de entrada: 16 de Maio de 2013

Mensagens recentes

Hi james and vishal

It work's

Thanks For your information

Regards
Terry

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!