Forums de discussion

How to set the size of <aui:input> tag

thumbnail
Madhava Reddy Solipuram, modifié il y a 12 années.

How to set the size of <aui:input> tag

Junior Member Publications: 45 Date d'inscription: 27/06/11 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.
thumbnail
AKASH PATIL, modifié il y a 12 années.

RE: How to set the size of <aui:input> tag

Junior Member Publications: 75 Date d'inscription: 13/12/10 Publications récentes
hi madhava,

use type="text" attribute

it'll work.,
thumbnail
Madhava Reddy Solipuram, modifié il y a 12 années.

RE: How to set the size of <aui:input> tag

Junior Member Publications: 45 Date d'inscription: 27/06/11 Publications récentes
thanks akash,
It is working..
Nicolas Lafaury, modifié il y a 10 années.

RE: How to set the size of <aui:input> tag

New Member Publications: 3 Date d'inscription: 25/09/12 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
thumbnail
Roberto Méndez, modifié il y a 9 années.

RE: How to set the size of <aui:input> tag

New Member Publications: 2 Date d'inscription: 13/08/14 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>