Re: T4: question about IEngineService and outputstream

2009-10-02 Thread Ivano Luberti
Well, it seems really a long work to deduce from that page how to write
the few lines of code you have suggested to me.
Now I understand there is no point in creating new docs for Tapestry4.1
but I hope that the new docs Howard is writing for T5 will have an
how-to section that make able T5users to quickly find a way to solve
recurrent problem like this.

Thanks again Andreas.


Andreas Andreou ha scritto:
> perhaps http://hivemind.apache.org/hivemind1/hivemind/BuilderFactory.html
>
> On Thu, Oct 1, 2009 at 7:35 PM, Ivano Luberti  wrote:
>   
>> Ok it worked: just a curiosity. Is there some documentation explaining it?
>> I tried browsing Hivemind but couldn't find it.
>>
>>
>>
>> Andreas Andreou ha scritto:
>> 
>>> using hivemodule.xml - or in 4.1 just add property + getter/setter for
>>> it and it'll get
>>> auto-wired
>>>
>>> On Thu, Oct 1, 2009 at 6:29 PM, Ivano Luberti  wrote:
>>>
>>>   
 Andreas, maybe I have a terminology problem:

 Andreas Andreou ha scritto:

 
> 1) inject ApplicationStateManager and use its get method
> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>
>
>
>   
 what you mean by Injecting ? I'm in a service , can I use @Injectx
 in an EngineService ? I would say no.
 Then how I'm supposed to inject in a service: using hivemodule.xml



 
> 2) It's a matter of setting some repsonse headers... google for
> Content-Disposition
>
>
>   
 Ok I will

 --
 ==
 dott. Ivano Mario Luberti
 Archimede Informatica societa' cooperativa a r. l.
 Sede Operativa
 Via Gereschi 36 - 56126- Pisa
 tel.: +39-050- 580959
 tel/fax: +39-050-9711344
 web: www.archicoop.it
 ==


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 
>>>
>>>
>>>   
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Andreas Andreou
perhaps http://hivemind.apache.org/hivemind1/hivemind/BuilderFactory.html

On Thu, Oct 1, 2009 at 7:35 PM, Ivano Luberti  wrote:
> Ok it worked: just a curiosity. Is there some documentation explaining it?
> I tried browsing Hivemind but couldn't find it.
>
>
>
> Andreas Andreou ha scritto:
>> using hivemodule.xml - or in 4.1 just add property + getter/setter for
>> it and it'll get
>> auto-wired
>>
>> On Thu, Oct 1, 2009 at 6:29 PM, Ivano Luberti  wrote:
>>
>>> Andreas, maybe I have a terminology problem:
>>>
>>> Andreas Andreou ha scritto:
>>>
 1) inject ApplicationStateManager and use its get method
 http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html



>>> what you mean by Injecting ? I'm in a service , can I use @Injectx
>>> in an EngineService ? I would say no.
>>> Then how I'm supposed to inject in a service: using hivemodule.xml
>>>
>>>
>>>
 2) It's a matter of setting some repsonse headers... google for
 Content-Disposition


>>> Ok I will
>>>
>>> --
>>> ==
>>> dott. Ivano Mario Luberti
>>> Archimede Informatica societa' cooperativa a r. l.
>>> Sede Operativa
>>> Via Gereschi 36 - 56126- Pisa
>>> tel.: +39-050- 580959
>>> tel/fax: +39-050-9711344
>>> web: www.archicoop.it
>>> ==
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>>
>>
>>
>>
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Ivano Luberti
Ok it worked: just a curiosity. Is there some documentation explaining it?
I tried browsing Hivemind but couldn't find it.



Andreas Andreou ha scritto:
> using hivemodule.xml - or in 4.1 just add property + getter/setter for
> it and it'll get
> auto-wired
>
> On Thu, Oct 1, 2009 at 6:29 PM, Ivano Luberti  wrote:
>   
>> Andreas, maybe I have a terminology problem:
>>
>> Andreas Andreou ha scritto:
>> 
>>> 1) inject ApplicationStateManager and use its get method
>>> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>>>
>>>
>>>   
>> what you mean by Injecting ? I'm in a service , can I use @Injectx
>> in an EngineService ? I would say no.
>> Then how I'm supposed to inject in a service: using hivemodule.xml
>>
>>
>> 
>>> 2) It's a matter of setting some repsonse headers... google for
>>> Content-Disposition
>>>
>>>   
>> Ok I will
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Andreas Andreou
using hivemodule.xml - or in 4.1 just add property + getter/setter for
it and it'll get
auto-wired

On Thu, Oct 1, 2009 at 6:29 PM, Ivano Luberti  wrote:
> Andreas, maybe I have a terminology problem:
>
> Andreas Andreou ha scritto:
>> 1) inject ApplicationStateManager and use its get method
>> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>>
>>
> what you mean by Injecting ? I'm in a service , can I use @Injectx
> in an EngineService ? I would say no.
> Then how I'm supposed to inject in a service: using hivemodule.xml
>
>
>> 2) It's a matter of setting some repsonse headers... google for
>> Content-Disposition
>>
> Ok I will
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Ivano Luberti
For anyone interested here is the solution to change the name of the
file generated in the stream.

OutputStream os = response.getOutputStream(new
ContentType("application/xls")); //or whatever content type you are
streaming
  
response.setHeader("Content-Disposition",
"attachment; filename=" + filename);

Thanks to Andreas for pointing me in the right direction.



Ivano Luberti ha scritto:
> Andreas, maybe I have a terminology problem:
>
> Andreas Andreou ha scritto:
>   
>> 1) inject ApplicationStateManager and use its get method
>> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>>
>>   
>> 
> what you mean by Injecting ? I'm in a service , can I use @Injectx
> in an EngineService ? I would say no.
> Then how I'm supposed to inject in a service: using hivemodule.xml
>
>
>   
>> 2) It's a matter of setting some repsonse headers... google for
>> Content-Disposition
>>   
>> 
> Ok I will
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Ivano Luberti
Andreas, maybe I have a terminology problem:

Andreas Andreou ha scritto:
> 1) inject ApplicationStateManager and use its get method
> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>
>   
what you mean by Injecting ? I'm in a service , can I use @Injectx
in an EngineService ? I would say no.
Then how I'm supposed to inject in a service: using hivemodule.xml


> 2) It's a matter of setting some repsonse headers... google for
> Content-Disposition
>   
Ok I will

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T4: question about IEngineService and outputstream

2009-10-01 Thread Andreas Andreou
1) inject ApplicationStateManager and use its get method
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html

2) It's a matter of setting some repsonse headers... google for
Content-Disposition

On Thu, Oct 1, 2009 at 4:56 PM, Ivano Luberti  wrote:
> Hi, this one is a little off topic.
> I have used T4 and Apache POI  to generate an XLS  and  PDF files that I
> return to the client using a T4 IEngineService that write to the
> outpustream.
>
> It worlks quite well but I have two problems:
>
> 1) to allow access to pages only to authenticated user I use this method:
>
>   �...@injectstate("user")
>    public abstract User getUser();
>
> where User is an ASO whose value is set at authentication time.
> How can I use the ASO insisde the Service.
>
>
> 2) when the user opens the file (through PDF plugin or using the option
> to open it with an application installed on the PC given by the browser)
> the file is named app, which is the inernal link. How can I customize
> the name given to the file automatically saved from the stream?
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T4: question about IEngineService and outputstream

2009-10-01 Thread Ivano Luberti
Hi, this one is a little off topic.
I have used T4 and Apache POI  to generate an XLS  and  PDF files that I
return to the client using a T4 IEngineService that write to the
outpustream.

It worlks quite well but I have two problems:

1) to allow access to pages only to authenticated user I use this method:

@InjectState("user")
public abstract User getUser();

where User is an ASO whose value is set at authentication time.
How can I use the ASO insisde the Service.


2) when the user opens the file (through PDF plugin or using the option
to open it with an application installed on the PC given by the browser)
the file is named app, which is the inernal link. How can I customize
the name given to the file automatically saved from the stream?

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T4] Question on TableRows

2007-06-19 Thread Marcos Chicote

Thanks Jesse!
I was missing those "+" (concatenation).

Also, justo using row.id doesn't work. I had to bind TableRow's row
parameter to a page variable to make it work.
I added to the page file something like:



and then used something like


"ognl:'StringValueInHere' + thisLP.id  +
'moreStringValueStuff'"

because row.id throw a NoSuchPropertyException.

Thanks for the help!

Marcos.

On 6/18/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Use double quotes for your javascript function parameters?  Either that or
try writing a javascript template via
http://tapestry.apache.org/tapestry4.1/usersguide/script.html.

Also, it's questionable whether or not you need to actually quote those
characters at all.   Apart from that it looks like you are trying to do
something like this:

"ognl:'StringValueInHere\'referenceToObject\'moreStringStuff'"

This is probably not going to work so well , but a much easier version
that
does work would be:

"ognl:'StringValueInHere' + row.id + 'moreStringValueStuff'"

On 6/15/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
>
> Hi!
> I'm developing a page where I have a Form and a Table component
(actually
> Table component is not used, I use TableView, TableColumns, etc).
> The idea is that when someone clicks on a TR of the table a JS function
is
> called and the form is filled with information about that row (so the
user
> can edit that row).
>
> Here's the code I'm using:
>
> 
> 
> 
> 
> 
> 
>
> However I keep getting a ognl.ParseException.
> The problem is that I need to pass to the JS function parameters that I
> get
> from the element being rendered by the TableRows component. How do I get
> this done?
> I'm using Tap 4.1.
> I also tried this:
> 
> 
> 
> 
> 
>
>
> That didn't work either.
>
> Thanks!
> Marcos
>



--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



Re: [T4] Question on TableRows

2007-06-18 Thread Jesse Kuhnert

Use double quotes for your javascript function parameters?  Either that or
try writing a javascript template via
http://tapestry.apache.org/tapestry4.1/usersguide/script.html.

Also, it's questionable whether or not you need to actually quote those
characters at all.   Apart from that it looks like you are trying to do
something like this:

"ognl:'StringValueInHere\'referenceToObject\'moreStringStuff'"

This is probably not going to work so well , but a much easier version that
does work would be:

"ognl:'StringValueInHere' + row.id + 'moreStringValueStuff'"

On 6/15/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:


Hi!
I'm developing a page where I have a Form and a Table component (actually
Table component is not used, I use TableView, TableColumns, etc).
The idea is that when someone clicks on a TR of the table a JS function is
called and the form is filled with information about that row (so the user
can edit that row).

Here's the code I'm using:








However I keep getting a ognl.ParseException.
The problem is that I need to pass to the JS function parameters that I
get
from the element being rendered by the TableRows component. How do I get
this done?
I'm using Tap 4.1.
I also tried this:







That didn't work either.

Thanks!
Marcos





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


[T4] Question on TableRows

2007-06-15 Thread Marcos Chicote

Hi!
I'm developing a page where I have a Form and a Table component (actually
Table component is not used, I use TableView, TableColumns, etc).
The idea is that when someone clicks on a TR of the table a JS function is
called and the form is filled with information about that row (so the user
can edit that row).

Here's the code I'm using:

   
   
   
   
   
   

However I keep getting a ognl.ParseException.
The problem is that I need to pass to the JS function parameters that I get
from the element being rendered by the TableRows component. How do I get
this done?
I'm using Tap 4.1.
I also tried this:
   
   
   
   
   


That didn't work either.

Thanks!
Marcos


RE: T4 question:

2007-06-06 Thread Bhuiyan, Nazmul
omitZero=true disable the required and the javascript's client side
validation.

-Original Message-
From: Bhuiyan, Nazmul 
Sent: Thursday, 7 June 2007 11:03 a.m.
To: Tapestry users
Subject: RE: T4 question:

I'm new to Tapestry and please suggest me the right version of Tapestry
to use for my project. Tapestry5 is not stable yet. Shall I use 4.0.2?

Thanks

naz


-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 7 June 2007 10:57 a.m.
To: Tapestry users
Subject: Re: T4 question:

It looks like it.
I have a similar use case in a project and it works fine but using
4.0.2.

Jesse Kuhnert wrote:
> HmmmIt does look like it's possibly a bug.  If you file a jira 
> issue I
> can look at it.
>
> On 6/6/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>
>>
>> Thanks for your prompt answer.
>>
>> My question was regarding the validation. The weight field accepts
empty
>> filed even I've used 'required' in the binding.
>>
>>
>>
>> Please see below:
>>
>>
>>
>>
>>
>> 
>>
>>   
>>
>>   
>>
>>   
>>
>>   
>>
>> 
>>
>>
>>
>> -Original Message-
>> From: Hugo Palma [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, 6 June 2007 10:08 p.m.
>> To: Tapestry users
>> Subject: Re: T4 question:
>>
>>
>>
>> Try setting the translator binding to
>>
>>
>>
>> "translator:number,omitZero=true"
>>
>>
>>
>> See the section on translators here
>>
>> http://tapestry.apache.org/tapestry4.1/usersguide/validation.html
>>
>>
>>
>> Nazmul wrote:
>>
>> > I'm trying to work through the chapter 3 of the book "Enjoy web
>> development with
>>
>> > Tapestry" This book using tapestry4.1.1 and pointed a bug alert:
>>
>> > "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator.
It
>> will
>>
>> > convert an empty string into 0, not null. This will get pass both
the
>> required
>>
>> > and the min validators".
>>
>> >
>>
>> > How do I enforce the required in validator?
>>
>> >
>>
>> > Thanks
>>
>> >
>>
>> > naz
>>
>> >
>>
>> >
>>
>> >
-
>>
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> >
>>
>> >
>>
>> >
>>
>>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T4 question:

2007-06-06 Thread Bhuiyan, Nazmul
I'm new to Tapestry and please suggest me the right version of Tapestry
to use for my project. Tapestry5 is not stable yet. Shall I use 4.0.2?

Thanks

naz


-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 7 June 2007 10:57 a.m.
To: Tapestry users
Subject: Re: T4 question:

It looks like it.
I have a similar use case in a project and it works fine but using
4.0.2.

Jesse Kuhnert wrote:
> HmmmIt does look like it's possibly a bug.  If you file a jira 
> issue I
> can look at it.
>
> On 6/6/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>
>>
>> Thanks for your prompt answer.
>>
>> My question was regarding the validation. The weight field accepts
empty
>> filed even I've used 'required' in the binding.
>>
>>
>>
>> Please see below:
>>
>>
>>
>>
>>
>> 
>>
>>   
>>
>>   
>>
>>   
>>
>>   
>>
>> 
>>
>>
>>
>> -Original Message-
>> From: Hugo Palma [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, 6 June 2007 10:08 p.m.
>> To: Tapestry users
>> Subject: Re: T4 question:
>>
>>
>>
>> Try setting the translator binding to
>>
>>
>>
>> "translator:number,omitZero=true"
>>
>>
>>
>> See the section on translators here
>>
>> http://tapestry.apache.org/tapestry4.1/usersguide/validation.html
>>
>>
>>
>> Nazmul wrote:
>>
>> > I'm trying to work through the chapter 3 of the book "Enjoy web
>> development with
>>
>> > Tapestry" This book using tapestry4.1.1 and pointed a bug alert:
>>
>> > "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator.
It
>> will
>>
>> > convert an empty string into 0, not null. This will get pass both
the
>> required
>>
>> > and the min validators".
>>
>> >
>>
>> > How do I enforce the required in validator?
>>
>> >
>>
>> > Thanks
>>
>> >
>>
>> > naz
>>
>> >
>>
>> >
>>
>> >
-
>>
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> >
>>
>> >
>>
>> >
>>
>>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T4 question:

2007-06-06 Thread Hugo Palma

It looks like it.
I have a similar use case in a project and it works fine but using 4.0.2.

Jesse Kuhnert wrote:
HmmmIt does look like it's possibly a bug.  If you file a jira 
issue I

can look at it.

On 6/6/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:


Hi,



Thanks for your prompt answer.

My question was regarding the validation. The weight field accepts empty
filed even I've used 'required' in the binding.



Please see below:







  

  

  

  





-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 6 June 2007 10:08 p.m.
To: Tapestry users
Subject: Re: T4 question:



Try setting the translator binding to



"translator:number,omitZero=true"



See the section on translators here

http://tapestry.apache.org/tapestry4.1/usersguide/validation.html



Nazmul wrote:

> I'm trying to work through the chapter 3 of the book "Enjoy web
development with

> Tapestry" This book using tapestry4.1.1 and pointed a bug alert:

> "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It
will

> convert an empty string into 0, not null. This will get pass both the
required

> and the min validators".

>

> How do I enforce the required in validator?

>

> Thanks

>

> naz

>

>

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

>

>

>







Re: T4 question:

2007-06-06 Thread Jesse Kuhnert

HmmmIt does look like it's possibly a bug.  If you file a jira issue I
can look at it.

On 6/6/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:


Hi,



Thanks for your prompt answer.

My question was regarding the validation. The weight field accepts empty
filed even I've used 'required' in the binding.



Please see below:







  

  

  

  





-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 6 June 2007 10:08 p.m.
To: Tapestry users
Subject: Re: T4 question:



Try setting the translator binding to



"translator:number,omitZero=true"



See the section on translators here

http://tapestry.apache.org/tapestry4.1/usersguide/validation.html



Nazmul wrote:

> I'm trying to work through the chapter 3 of the book "Enjoy web
development with

> Tapestry" This book using tapestry4.1.1 and pointed a bug alert:

> "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It
will

> convert an empty string into 0, not null. This will get pass both the
required

> and the min validators".

>

> How do I enforce the required in validator?

>

> Thanks

>

> naz

>

>

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

>

>

>





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


RE: T4 question:

2007-06-06 Thread Bhuiyan, Nazmul
Hi,

 

Thanks for your prompt answer.

My question was regarding the validation. The weight field accepts empty
filed even I've used 'required' in the binding.

 

Please see below:

 

 



  

  

  

  



 

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 6 June 2007 10:08 p.m.
To: Tapestry users
Subject: Re: T4 question:

 

Try setting the translator binding to

 

"translator:number,omitZero=true"

 

See the section on translators here 

http://tapestry.apache.org/tapestry4.1/usersguide/validation.html

 

Nazmul wrote:

> I'm trying to work through the chapter 3 of the book "Enjoy web
development with

> Tapestry" This book using tapestry4.1.1 and pointed a bug alert:

> "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It
will

> convert an empty string into 0, not null. This will get pass both the
required

> and the min validators".

> 

> How do I enforce the required in validator?

> 

> Thanks

> 

> naz

> 

> 

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

> 

> 

>   



Re: T4 question:

2007-06-06 Thread Hugo Palma

Try setting the translator binding to

"translator:number,omitZero=true"

See the section on translators here 
http://tapestry.apache.org/tapestry4.1/usersguide/validation.html


Nazmul wrote:

I'm trying to work through the chapter 3 of the book "Enjoy web development with
Tapestry" This book using tapestry4.1.1 and pointed a bug alert:
"BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It will
convert an empty string into 0, not null. This will get pass both the required
and the min validators".

How do I enforce the required in validator?

Thanks

naz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


T4 question:

2007-06-06 Thread Nazmul
I'm trying to work through the chapter 3 of the book "Enjoy web development with
Tapestry" This book using tapestry4.1.1 and pointed a bug alert:
"BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It will
convert an empty string into 0, not null. This will get pass both the required
and the min validators".

How do I enforce the required in validator?

Thanks

naz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]