Forum

Accueil » Alloy UI » English

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Madhava Reddy Solipuram
How to set the size of <aui:input> tag
6 juillet 2011 05:25
Réponse

Madhava Reddy Solipuram

Rang: Junior Member

Publications: 45

Date d'inscription: 27 juin 2011

Publications Récentes

Hi,

I am using <aui:input> tag when i am mentioning the size of input tag it is not effecting.
my code is:
<aui:fieldset>

<aui:column>
<aui:input name="firstName" size="60" />

<aui:input name="lastName" size="60" />

<aui:input bean="<%= user2 %>" model="<%= User.class %>"
name="emailAddress" size="60" />

What should i have to do to increase the input text filed size.
Akash Patil
RE: How to set the size of <aui:input> tag
6 juillet 2011 08:25
Réponse

Akash Patil

Rang: Junior Member

Publications: 70

Date d'inscription: 12 décembre 2010

Publications Récentes

hi madhava,

use type="text" attribute

it'll work.,
Madhava Reddy Solipuram
RE: How to set the size of <aui:input> tag
6 juillet 2011 20:58
Réponse

Madhava Reddy Solipuram

Rang: Junior Member

Publications: 45

Date d'inscription: 27 juin 2011

Publications Récentes

thanks akash,
It is working..
Nicolas Lafaury
RE: How to set the size of <aui:input> tag
11 octobre 2013 01:53
Réponse

Nicolas Lafaury

Rang: New Member

Publications: 3

Date d'inscription: 25 septembre 2012

Publications Récentes

Hello

How did you solve the problem?
Because text area will not work because in DB, Liferay defined a VARCHAR (75)

CREATE MEMORY TABLE PUBLIC.BLOGSENTRY(UUID_ VARCHAR(75),ENTRYID BIGINT NOT NULL PRIMARY KEY,GROUPID BIGINT,COMPANYID BIGINT,USERID BIGINT,USERNAME VARCHAR(75),CREATEDATE TIMESTAMP,MODIFIEDDATE TIMESTAMP,TITLE VARCHAR(150),URLTITLE VARCHAR(150),DESCRIPTION VARCHAR(75),CONTENT VARCHAR(16777216),DISPLAYDATE TIMESTAMP,ALLOWPINGBACKS BIT(1),ALLOWTRACKBACKS BIT(1),TRACKBACKS VARCHAR(16777216),SMALLIMAGE BIT(1),SMALLIMAGEID BIGINT,SMALLIMAGEURL VARCHAR(16777216),STATUS INTEGER,STATUSBYUSERID BIGINT,STATUSBYUSERNAME VARCHAR(75),STATUSDATE TIMESTAMP)

If I modify the value, I have a JDBC update exception ; =(

Many thanks

Nicolas
Roberto Méndez
RE: How to set the size of <aui:input> tag
18 août 2014 03:22
Réponse

Roberto Méndez

Rang: New Member

Publications: 2

Date d'inscription: 13 août 2014

Publications Récentes

Nicolas Lafaury:
Hello

How did you solve the problem?
Because text area will not work because in DB, Liferay defined a VARCHAR (75)

CREATE MEMORY TABLE PUBLIC.BLOGSENTRY(UUID_ VARCHAR(75),ENTRYID BIGINT NOT NULL PRIMARY KEY,GROUPID BIGINT,COMPANYID BIGINT,USERID BIGINT,USERNAME VARCHAR(75),CREATEDATE TIMESTAMP,MODIFIEDDATE TIMESTAMP,TITLE VARCHAR(150),URLTITLE VARCHAR(150),DESCRIPTION VARCHAR(75),CONTENT VARCHAR(16777216),DISPLAYDATE TIMESTAMP,ALLOWPINGBACKS BIT(1),ALLOWTRACKBACKS BIT(1),TRACKBACKS VARCHAR(16777216),SMALLIMAGE BIT(1),SMALLIMAGEID BIGINT,SMALLIMAGEURL VARCHAR(16777216),STATUS INTEGER,STATUSBYUSERID BIGINT,STATUSBYUSERNAME VARCHAR(75),STATUSDATE TIMESTAMP)

If I modify the value, I have a JDBC update exception ; =(

Many thanks

Nicolas


In portal-model-hints.xml you must set something like this:

<field name="title" type="String">
<hint name="max-length">255</hint>
</field>