You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ed Dening <ed...@hotmail.com> on 2008/06/02 14:39:31 UTC

Trinidad maximumLength incorrect when set rows > 1 for inputText

I have a problem with the inputText Trinidad component. When I set the rows
attribute to be greater than 1 it allows me to enter 1 additional char to
what is set in the maximumLength attribute. When the page is submitted the
value is the correct length. 

For example:

<tr:inputText rows="2" maximumLength="10" />

The will allow me to enter 11 chars into the inputText component. When I
submit the page there are 10 chars.	

Is there a way around this problem?

Thanks,
Ed
-- 
View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17600304.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Matthias Wessendorf <ma...@apache.org>.
On Mon, Jun 16, 2008 at 3:41 AM, Paul Mander <pa...@chordiant.com> wrote:
>
>
> Matthias Wessendorf-4 wrote:
>>
>> I just tried this on our demo page:
>> http://www.irian.at/trinidad-demo/faces/components/inputText.jspx
>>
>> I can't reproduce that.
>> rows:2; maxLength:1
>>
>
> Try using IE7... The component allows one extra character to be entered.

cool. That sucks. Dude...
Can you file a jira issue for that ?
Thanks!

>
> --
> View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17861941.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Matthias Wessendorf <ma...@apache.org>.
On Wed, Jun 18, 2008 at 8:10 AM, Ed Dening <ed...@hotmail.com> wrote:
>
> I have tested the patch and it works.
>
> One thing we have noticed in Firefox if you enter some text and keep your
> finger on a key it stops on the max number. For IE if you keep your finger
> on a key it will add more than the max number, although when you take your
> finger off the key it trims back to the max length.

I know. But fix was easy and better than nothing :)
Same is true for "cut-and-past" values

>
>
>
> Matthias Wessendorf-4 wrote:
>>
>> On Tue, Jun 17, 2008 at 5:45 AM, Paul Mander <pa...@chordiant.com>
>> wrote:
>>>
>>>
>>> Matthias Wessendorf-4 wrote:
>>>>
>>>> I added a fix in trunk...
>>>>
>>>
>>> Can you post the fix so I can patch my 1.0.7 jars?
>>
>> http://svn.apache.org/viewvc?view=rev&revision=668395
>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17897206.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> further stuff:
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> mail: matzew-at-apache-dot-org
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17984843.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Ed Dening <ed...@hotmail.com>.
I have tested the patch and it works.

One thing we have noticed in Firefox if you enter some text and keep your
finger on a key it stops on the max number. For IE if you keep your finger
on a key it will add more than the max number, although when you take your
finger off the key it trims back to the max length.



Matthias Wessendorf-4 wrote:
> 
> On Tue, Jun 17, 2008 at 5:45 AM, Paul Mander <pa...@chordiant.com>
> wrote:
>>
>>
>> Matthias Wessendorf-4 wrote:
>>>
>>> I added a fix in trunk...
>>>
>>
>> Can you post the fix so I can patch my 1.0.7 jars?
> 
> http://svn.apache.org/viewvc?view=rev&revision=668395
> 
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17897206.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
> 
> 

-- 
View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17984843.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Matthias Wessendorf <ma...@apache.org>.
On Tue, Jun 17, 2008 at 5:45 AM, Paul Mander <pa...@chordiant.com> wrote:
>
>
> Matthias Wessendorf-4 wrote:
>>
>> I added a fix in trunk...
>>
>
> Can you post the fix so I can patch my 1.0.7 jars?

http://svn.apache.org/viewvc?view=rev&revision=668395

>
> --
> View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17897206.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Paul Mander <pa...@chordiant.com>.

Matthias Wessendorf-4 wrote:
> 
> I added a fix in trunk...
> 

Can you post the fix so I can patch my 1.0.7 jars?

-- 
View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17897206.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Matthias Wessendorf <ma...@apache.org>.
On Mon, Jun 16, 2008 at 3:41 AM, Paul Mander <pa...@chordiant.com> wrote:
>
>
> Matthias Wessendorf-4 wrote:
>>
>> I just tried this on our demo page:
>> http://www.irian.at/trinidad-demo/faces/components/inputText.jspx
>>
>> I can't reproduce that.
>> rows:2; maxLength:1
>>
>
> Try using IE7... The component allows one extra character to be entered.
I added a fix in trunk...
>
> --
> View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17861941.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Paul Mander <pa...@chordiant.com>.

Matthias Wessendorf-4 wrote:
> 
> I just tried this on our demo page:
> http://www.irian.at/trinidad-demo/faces/components/inputText.jspx
> 
> I can't reproduce that.
> rows:2; maxLength:1
> 

Try using IE7... The component allows one extra character to be entered.

-- 
View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17861941.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad maximumLength incorrect when set rows > 1 for inputText

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,

I just tried this on our demo page:
http://www.irian.at/trinidad-demo/faces/components/inputText.jspx

I can't reproduce that.
rows:2; maxLength:1
=> only one char I could write

On Mon, Jun 2, 2008 at 5:39 AM, Ed Dening <ed...@hotmail.com> wrote:
>
> I have a problem with the inputText Trinidad component. When I set the rows
> attribute to be greater than 1 it allows me to enter 1 additional char to
> what is set in the maximumLength attribute. When the page is submitted the
> value is the correct length.
>
> For example:
>
> <tr:inputText rows="2" maximumLength="10" />
>
> The will allow me to enter 11 chars into the inputText component. When I
> submit the page there are 10 chars.
>
> Is there a way around this problem?
>
> Thanks,
> Ed
> --
> View this message in context: http://www.nabble.com/Trinidad-maximumLength-incorrect-when-set-rows-%3E-1-for-inputText-tp17600304p17600304.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org