You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by karthi <ra...@snovabits.net> on 2013/01/07 07:38:29 UTC
Way to display numeric pad for phone number field in tapestry
Hi,
What is the way to display numeric pad in smartphones for phone number
field.
Here I searched & found that
type="tel" & type="number" will work out
but in tapestry it shows error :
Unable to resolve 'tel' to a component class name
Unable to resolve 'number' to a component class name
Can anyone please tell me when user comes to & clicks phone number field,
number pad needs to display?
Regards,
Karthi.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Way to display numeric pad for phone number field in tapestry
Posted by Alejandro Scandroli <al...@gmail.com>.
ohhhhh, excellent! thanks Geoff!!
On Sun, Jan 13, 2013 at 10:12 AM, Geoff Callender
<ge...@gmail.com> wrote:
> As penance, I've created an HTML5 Input Types example! The telephone keypad comes up just fine on my phone:
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/component/html5inputtypes
>
> Cheers,
>
> Geoff
>
> On 08/01/2013, at 7:34 AM, Geoff Callender wrote:
>
>> Sorry, I completely missed the point of the question.
>>
>> On 08/01/2013, at 1:08 AM, Alejandro Scandroli wrote:
>>
>>> Hi Karthi
>>>
>>> How are you declaring your fields? And also, which Tapestry version
>>> are you using?
>>> After 5.3.2 you can do something like this:
>>>
>>> <t:textfield value="foo" type="number" />
>>>
>>> Take a look at: https://issues.apache.org/jira/browse/TAP5-1787
>>>
>>> If you are using a previous version you can create a mixing to force
>>> the "type" attribute.
>>> Take a look at the MarkupChanger mixin in this thread:
>>> http://tapestry.1045711.n5.nabble.com/Snippet-T5-A-mixin-to-rewrite-the-markup-of-element-td4479439.html
>>>
>>> Cheers.
>>> Alejandro.
>>>
>>>
>>> On Mon, Jan 7, 2013 at 9:04 AM, Geoff Callender
>>> <ge...@gmail.com> wrote:
>>>> Try this (untested):
>>>>
>>>> <a t:type="any" href="tel:${phoneNumber}">${phoneNumber}</a>
>>>>
>>>> The Any components is documented on this page:
>>>>
>>>> http://tapestry.apache.org/component-reference.html
>>>>
>>>> Geoff
>>>>
>>>> On 07/01/2013, at 5:38 PM, karthi wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> What is the way to display numeric pad in smartphones for phone number
>>>>> field.
>>>>>
>>>>> Here I searched & found that
>>>>>
>>>>> type="tel" & type="number" will work out
>>>>>
>>>>> but in tapestry it shows error :
>>>>>
>>>>> Unable to resolve 'tel' to a component class name
>>>>> Unable to resolve 'number' to a component class name
>>>>>
>>>>> Can anyone please tell me when user comes to & clicks phone number field,
>>>>> number pad needs to display?
>>>>>
>>>>> Regards,
>>>>> Karthi.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
>>>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Way to display numeric pad for phone number field in tapestry
Posted by Geoff Callender <ge...@gmail.com>.
As penance, I've created an HTML5 Input Types example! The telephone keypad comes up just fine on my phone:
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/html5inputtypes
Cheers,
Geoff
On 08/01/2013, at 7:34 AM, Geoff Callender wrote:
> Sorry, I completely missed the point of the question.
>
> On 08/01/2013, at 1:08 AM, Alejandro Scandroli wrote:
>
>> Hi Karthi
>>
>> How are you declaring your fields? And also, which Tapestry version
>> are you using?
>> After 5.3.2 you can do something like this:
>>
>> <t:textfield value="foo" type="number" />
>>
>> Take a look at: https://issues.apache.org/jira/browse/TAP5-1787
>>
>> If you are using a previous version you can create a mixing to force
>> the "type" attribute.
>> Take a look at the MarkupChanger mixin in this thread:
>> http://tapestry.1045711.n5.nabble.com/Snippet-T5-A-mixin-to-rewrite-the-markup-of-element-td4479439.html
>>
>> Cheers.
>> Alejandro.
>>
>>
>> On Mon, Jan 7, 2013 at 9:04 AM, Geoff Callender
>> <ge...@gmail.com> wrote:
>>> Try this (untested):
>>>
>>> <a t:type="any" href="tel:${phoneNumber}">${phoneNumber}</a>
>>>
>>> The Any components is documented on this page:
>>>
>>> http://tapestry.apache.org/component-reference.html
>>>
>>> Geoff
>>>
>>> On 07/01/2013, at 5:38 PM, karthi wrote:
>>>
>>>> Hi,
>>>>
>>>> What is the way to display numeric pad in smartphones for phone number
>>>> field.
>>>>
>>>> Here I searched & found that
>>>>
>>>> type="tel" & type="number" will work out
>>>>
>>>> but in tapestry it shows error :
>>>>
>>>> Unable to resolve 'tel' to a component class name
>>>> Unable to resolve 'number' to a component class name
>>>>
>>>> Can anyone please tell me when user comes to & clicks phone number field,
>>>> number pad needs to display?
>>>>
>>>> Regards,
>>>> Karthi.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
>>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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: Way to display numeric pad for phone number field in tapestry
Posted by karthi <ra...@snovabits.net>.
Hi,
Thank you all for your valuable replies
Tried this ontouchstart="this.type='number'" & it works
My Tapestry version is 5.3.1
Regards,
Karthi
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166p5719218.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Way to display numeric pad for phone number field in tapestry
Posted by Geoff Callender <ge...@gmail.com>.
Sorry, I completely missed the point of the question.
On 08/01/2013, at 1:08 AM, Alejandro Scandroli wrote:
> Hi Karthi
>
> How are you declaring your fields? And also, which Tapestry version
> are you using?
> After 5.3.2 you can do something like this:
>
> <t:textfield value="foo" type="number" />
>
> Take a look at: https://issues.apache.org/jira/browse/TAP5-1787
>
> If you are using a previous version you can create a mixing to force
> the "type" attribute.
> Take a look at the MarkupChanger mixin in this thread:
> http://tapestry.1045711.n5.nabble.com/Snippet-T5-A-mixin-to-rewrite-the-markup-of-element-td4479439.html
>
> Cheers.
> Alejandro.
>
>
> On Mon, Jan 7, 2013 at 9:04 AM, Geoff Callender
> <ge...@gmail.com> wrote:
>> Try this (untested):
>>
>> <a t:type="any" href="tel:${phoneNumber}">${phoneNumber}</a>
>>
>> The Any components is documented on this page:
>>
>> http://tapestry.apache.org/component-reference.html
>>
>> Geoff
>>
>> On 07/01/2013, at 5:38 PM, karthi wrote:
>>
>>> Hi,
>>>
>>> What is the way to display numeric pad in smartphones for phone number
>>> field.
>>>
>>> Here I searched & found that
>>>
>>> type="tel" & type="number" will work out
>>>
>>> but in tapestry it shows error :
>>>
>>> Unable to resolve 'tel' to a component class name
>>> Unable to resolve 'number' to a component class name
>>>
>>> Can anyone please tell me when user comes to & clicks phone number field,
>>> number pad needs to display?
>>>
>>> Regards,
>>> Karthi.
>>>
>>>
>>>
>>> --
>>> View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>
> ---------------------------------------------------------------------
> 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: Way to display numeric pad for phone number field in tapestry
Posted by Alejandro Scandroli <al...@gmail.com>.
Hi Karthi
How are you declaring your fields? And also, which Tapestry version
are you using?
After 5.3.2 you can do something like this:
<t:textfield value="foo" type="number" />
Take a look at: https://issues.apache.org/jira/browse/TAP5-1787
If you are using a previous version you can create a mixing to force
the "type" attribute.
Take a look at the MarkupChanger mixin in this thread:
http://tapestry.1045711.n5.nabble.com/Snippet-T5-A-mixin-to-rewrite-the-markup-of-element-td4479439.html
Cheers.
Alejandro.
On Mon, Jan 7, 2013 at 9:04 AM, Geoff Callender
<ge...@gmail.com> wrote:
> Try this (untested):
>
> <a t:type="any" href="tel:${phoneNumber}">${phoneNumber}</a>
>
> The Any components is documented on this page:
>
> http://tapestry.apache.org/component-reference.html
>
> Geoff
>
> On 07/01/2013, at 5:38 PM, karthi wrote:
>
>> Hi,
>>
>> What is the way to display numeric pad in smartphones for phone number
>> field.
>>
>> Here I searched & found that
>>
>> type="tel" & type="number" will work out
>>
>> but in tapestry it shows error :
>>
>> Unable to resolve 'tel' to a component class name
>> Unable to resolve 'number' to a component class name
>>
>> Can anyone please tell me when user comes to & clicks phone number field,
>> number pad needs to display?
>>
>> Regards,
>> Karthi.
>>
>>
>>
>> --
>> View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Way to display numeric pad for phone number field in tapestry
Posted by Geoff Callender <ge...@gmail.com>.
Try this (untested):
<a t:type="any" href="tel:${phoneNumber}">${phoneNumber}</a>
The Any components is documented on this page:
http://tapestry.apache.org/component-reference.html
Geoff
On 07/01/2013, at 5:38 PM, karthi wrote:
> Hi,
>
> What is the way to display numeric pad in smartphones for phone number
> field.
>
> Here I searched & found that
>
> type="tel" & type="number" will work out
>
> but in tapestry it shows error :
>
> Unable to resolve 'tel' to a component class name
> Unable to resolve 'number' to a component class name
>
> Can anyone please tell me when user comes to & clicks phone number field,
> number pad needs to display?
>
> Regards,
> Karthi.
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Way-to-display-numeric-pad-for-phone-number-field-in-tapestry-tp5719166.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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