Fórum

is it necessary to use aui tag library

thumbnail
Sachin Aware, modificado 10 Anos atrás.

is it necessary to use aui tag library

New Member Postagens: 23 Data de Entrada: 19/07/12 Postagens Recentes
Hi,

I am creating portlet with a form with submit action in liferay 6.2. I have text fields in it.
But I am using following line for text fields .
<input name="test" id="test" type="text" value=""/>
I am geeting null value in process action

but for following

<aui:input label="test" name="test" type="text" value="" />

gives me proper value.

Is it necessary to use aui tag library in form?

Thanks in advance.
thumbnail
Sampsa Sohlman, modificado 10 Anos atrás.

RE: is it necessary to use aui tag library

Regular Member Postagens: 230 Data de Entrada: 27/09/07 Postagens Recentes
Hi Sachin,

Liferay is JSR-168 / JSR-286 compatible portal, so it is not necessary Liferay tag libs, but those tag libs have been to build to help you.

I would suggest that you study liferay tag-libs, since there are many useful services. If you are looking nice example application take a look https://github.com/liferay-labs/jukebox-portlet.
thumbnail
meera prince, modificado 10 Anos atrás.

RE: is it necessary to use aui tag library

Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
Hi

Here in liferay 6..2 we have xml tag in liferay-portlet.xml i.e <requires-namespaced-parameters/>

with this tag all request parameters should appended with portlet name space then only request parameter consider by portlet action class

when we use <aui:input/> by default the input parameter name appended with portlet name space so that portlet action class will consider..

when we use simple htmp input then input parameter name not appended with portlet name space

so you have two option

option:1 make it false to <requires-namespaced-parameters/> tag in liferay-portlet.xml as follows

<requires-namespaced-parameters>false</requires-namespaced-parameters>

option: 2 add <portlet:namspace/> tag to input name as follows

<input name="<portlet:namspace/>test" id="<portlet:namspace/>test" type="text" value=""/>

Please have a look into http://www.liferaysavvy.com/ for more liferay stuff

Regards,
Meera Prince
thumbnail
Sachin Aware, modificado 10 Anos atrás.

RE: is it necessary to use aui tag library

New Member Postagens: 23 Data de Entrada: 19/07/12 Postagens Recentes
Thanks meera, it worked by adding <portlet:namspace/> tag to input field.