You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tapestryphoto <ph...@digiatlas.org> on 2009/03/26 11:14:10 UTC
T5: integer input box query
I have an input box that accepts an int. It is enabled/disabled by a
selection from a combobox. Whenever it is enabled it shows a red
border and red X next to it, even though the value in the box is
correct (and is initialised with a value when the page is initially
shown).
Here is my mark-up:
<t:parameter name="proximityCell">
<t:textfield t:id="proximityField" size="3"
value="keywordVisual.keyword.proximity"
t:disabled="keywordVisual.inverseUseProximity"/>
</t:parameter>
keywordVisual.keyword.proximity is of type "int".
Why is this occuring?
thanks,
p.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: integer input box query
Posted by Howard Lewis Ship <hl...@gmail.com>.
Primitive values, int, are always required. Integers (wrapper types)
are (by default) optional. Could this be the problem?
On Thu, Mar 26, 2009 at 7:08 AM, tapestryphoto <ph...@digiatlas.org> wrote:
> Hi Thiago,
>
> Thanks for your suggestion.
>
> Yes, the CSS is included correctly.
>
> The problem goes away when I use an Integer rather than an int.
>
> p.
>
>
> Quoting "Thiago H. de Paula Figueiredo" <th...@gmail.com>:
>
>> Check if the Tapestry CSS file is being correctly included in your
>> pages, because that's the one who hides the red X image when the
>> textfield is rendered without errors.
>>
>> --
>> Thiago
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: integer input box query
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, Mar 26, 2009 at 11:08 AM, tapestryphoto <ph...@digiatlas.org> wrote:
> Hi Thiago,
Hi!
> Thanks for your suggestion.
:)
> Yes, the CSS is included correctly.
> The problem goes away when I use an Integer rather than an int.
Tapestry makes fields bound to primitive types required as they do not
accept null.
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: integer input box query
Posted by tapestryphoto <ph...@digiatlas.org>.
Hi Thiago,
Thanks for your suggestion.
Yes, the CSS is included correctly.
The problem goes away when I use an Integer rather than an int.
p.
Quoting "Thiago H. de Paula Figueiredo" <th...@gmail.com>:
> Check if the Tapestry CSS file is being correctly included in your
> pages, because that's the one who hides the red X image when the
> textfield is rendered without errors.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: integer input box query
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Check if the Tapestry CSS file is being correctly included in your
pages, because that's the one who hides the red X image when the
textfield is rendered without errors.
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org