Foros de discusión
How to set the size of <aui:input> tag
Madhava Reddy Solipuram, modificado hace 12 años.
How to set the size of <aui:input> tag
Junior Member Mensajes: 45 Fecha de incorporación: 27/06/11 Mensajes recientes
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.
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, modificado hace 12 años.
RE: How to set the size of <aui:input> tag
Junior Member Mensajes: 75 Fecha de incorporación: 13/12/10 Mensajes recientes
hi madhava,
use type="text" attribute
it'll work.,
use type="text" attribute
it'll work.,
Madhava Reddy Solipuram, modificado hace 12 años.
RE: How to set the size of <aui:input> tag
Junior Member Mensajes: 45 Fecha de incorporación: 27/06/11 Mensajes recientes
thanks akash,
It is working..
It is working..
Nicolas Lafaury, modificado hace 10 años.
RE: How to set the size of <aui:input> tag
New Member Mensajes: 3 Fecha de incorporación: 25/09/12 Mensajes recientes
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
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, modificado hace 9 años.
RE: How to set the size of <aui:input> tag
New Member Mensajes: 2 Fecha de incorporación: 13/08/14 Mensajes recientesNicolas 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>