Hi Matthias,
Thank you very much for your reply.
I have play around with my page for a while.
In my case, if I put the <tr:validateLength> in tr:table, then that new line
is generated but it's only happen on IE. What I did instead of using table,
I use trh:tableLayout and tr:iterator.
my page structure is:
...
... Note: messages is message bundle, MyBean = backing bean, myNewData =
List, dataList = List
...
<tr:panelGroupLayout>
<tr:table emptyText="#{messages.emptyTable}"
value="#{MyBean.myNewData}" var="entity"
width="558" columnBandingInterval="1"
inlineStyle="outline-style:none;"
binding="#{MyBean.myNewDataTable}">
<tr:column>
<trh:rowLayout>
<tr:table emptyText="#{messages.emptyTable}"
value="#{entity.dataList}" var="data"
width="558" columnBandingInterval="1"
inlineStyle="outline-style:none;">
<tr:column headerText="" sortable="false"
rowHeader="false"
separateRows="false" width="40%"
styleClass="configLabel">
<h:outputText value="#{data.label}"/>
</tr:column>
<tr:column sortable="false" headerText=""
width="60%">
<tr:inputText value="#{data.value}">
<tr:validateLength minimum="#{data.min}"
maximum="#{data.max}"/>
</tr:inputText>
</tr:column>
</tr:table>
</trh:rowLayout>
</tr:column>
</tr:table>
</tr:panelGroupLayout>
...
...
...
Any suggestion for replacing tr:table?
Thank you very much.
Regards,
Pdt
Matthias Wessendorf-4 wrote:
>
> Hi,
>
> IMO that shouldn't happen, can you file an issue:
> https://issues.apache.org/jira/browse/TRINIDAD
>
> -Matthias
>
> On 9/18/07, pdt_p <[EMAIL PROTECTED]> wrote:
>>
>> Hi...
>>
>> I just wonder about tr:validateLength.
>> I have a table with 2 columns. 1 column for label and the other column
>> containing tr:inputText.
>> I have validate the input text value with tr:ValidateLength and specify
>> the
>> minimum and maximum.
>> I just relize that every time I submit the form, there is a new line
>> generated in the next line after input text. So my table heights become
>> longer. That happens in both cases either the value is valid or is not
>> valid. if the value entered is not valid then the error message will be
>> display in that new line. I think that new line is reserve for error
>> message.
>>
>> How to remove that new line if the value entered is valid?
>>
>> I get this issue only in IE. In Firefox, the new line is not display.
>>
>> <tr:inputText value="#{MyBean.value}"
>> binding="#{MyBean.inputTextOne}"
>> rendered="#{MyBean.renderInputTextOne">
>> <tr:validateLength minimum="#{MyBean.min}"
>> maximum="#{MyBean.max}"/>
>> </tr:inputText>
>>
>> Thank you very mich
>>
>> Pdt
>> --
>> View this message in context:
>> http://www.nabble.com/Trinidad-validateLength-tf4471579.html#a12749801
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>
>
--
View this message in context:
http://www.nabble.com/Trinidad-validateLength-tf4471579.html#a12789362
Sent from the MyFaces - Users mailing list archive at Nabble.com.