RE: T3: loosing the User object as soon as the edit action is invoked?

2007-07-23 Thread Bhuiyan, Nazmul
Hi Nick,

Thanks a lot.

I've added persistent="yes" and it is working.




Naz

-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 July 2007 5:30 p.m.
To: Tapestry users
Subject: Re: T3: loosing the User object as soon as the edit action is
invoked?

How is the User object persisted?
(What relates to it in your UserEdit.page file?)

Cheers,
Nick.


Nazmul Bhuiyan wrote:
> I'm loosing the User object as soon as the edit action is invoked?
> 
> I'm setting an object (e.g. User) in page UserMaint.java to the page
> UserEdit.java.
> 
> UserMaint.java
> 
> public void userEditAction(IRequestCycle cycle) {
> UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit");
>   Object[] parameters = cycle.getServiceParameters();
>   int id = ((Integer) parameters[0]).intValue();
> 
>   EfiUser user = EfiUserDAO.getEfiUserById(id);
>   
>   nextPage.setUser(user);
>   nextPage.setNewUser(false);
>   cycle.activate(nextPage);
> }
> 
> In pageBeginRender method of UserEdit shows the User object with all
the
> attributes:
> 
> UserEdit.java
> 
> public abstract void setUser(EfiUser user);
> public abstract EfiUser getUser()
> 
> public void pageBeginRender(PageEvent event) {
> 
>   if (!getNewUser() && !event.getRequestCycle().isRewinding()) {
>   
> System.out.println("Inside pageBeginRender..");
> System.out.println("user: " + getUser());
> System.out.println("ID: " + getUser().getUsrUserId());
>   .
>   .
>   etc
>   }   
> }
> 
>>From Debug:
> Inside pageBeginRender..
> user: [EMAIL PROTECTED]
> ID: 1
> 
> But in the updateUser method the User object is different and the
fields I
> don't want to update are null.
> 
> UserEdit.java
> 
> public void updateUser(IRequestCycle cycle) {
>   System.out.println("In updateUser");
> 
>   IValidationDelegate delegate = getValidationDelegate();
> 
>   //HibernateUtil.restartSession();
> 
>   System.out.println("Inside updateUser..");
> System.out.println("user: " + getUser());
> System.out.println("ID: " + getUser().getUsrUserId());
>   .
>   .
>   etc 
> }
> 
>>From Debug:
> Inside updateUser..
> user: [EMAIL PROTECTED]
> ID: 0
> 
> Please help.
> 
> 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: JumpStart v1.6 - for Tapestry 4.1.2

2007-07-23 Thread Bhuiyan, Nazmul
Hi,
Is it possible for you to put some tips to use tomcat with your
JumpStart?
Thanks
Naz
-Original Message-
From: Geoff Callender [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 July 2007 2:18 a.m.
To: Tapestry users
Subject: JumpStart v1.6 - for Tapestry 4.1.2

Hi all,

JumpStart v1.6.0 is now available.  New features include: it works  
with Tapestry 4.1.2, it has a more Maven-like project structure, and  
it builds its exploded EAR file on the fly.  You'll find it at the  
usual place:

http://files.doublenegative.com.au/jumpstart

JumpStart v1.5.0 has also been released today for those wanting to  
stay with Tapestry 4.0.2 but get the other new features.

Comments and suggestions welcomed.  Be brutal or helpful - I don't  
care which, because it all helps to make this stuff more useful.

Cheers,

Geoff Callender

-
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: T5 Tutorial

2007-07-11 Thread Bhuiyan, Nazmul
I still couldn't manage to get the mvn worknig at my work pc. It is
working fine in my home pc.

I'm using maven 2.0.7

I've modified the conf/settings.xml as follows.
  

  
  true
  http
  
  
  202.27.42.14
  8080
  

  

Still getting the following error:

C:\tmp>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.5
-DgroupId=org.apache.tapestry -DartifactId=tapestry-tutorial1
-DpackageName=org.apache.tapestry.tutorial
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
[ERROR] BUILD ERROR
[INFO]
-
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found
[INFO]
-
[INFO] For more information, run Maven with the -e switch
[INFO]
-
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jul 12 13:55:34 NZST 2007
[INFO] Final Memory: 1M/2M
[INFO]
-

Am I doing my proxy setting in settings.xml?
If any one came across similar issue please help.

Naz
-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 July 2007 2:51 p.m.
To: Tapestry users
Subject: Re: T5 Tutorial

Try upgrading to 2.0.7.

If that doesn't work, googling the error message suggests
it's a network/proxy problem.

http://maven.apache.org/guides/mini/guide-proxies.html

Cheers,
Nick.


Bhuiyan, Nazmul wrote:
> Shall I use Maven 2.0.7?
> In the tutorial you have mentioned to use Maven 2.0.5

-
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: T5 Tutorial

2007-07-09 Thread Bhuiyan, Nazmul
Hi Nick,

No luck yet and still getting the same error. 

I've upgraded to Maven 2.0.7 and modified the
maven-2.0.7\conf\settings.xml of maven as follows.

The proxy settings are exactly same as eclipse network settings. I'm
pretty sure proxy setting causing the problem.

Can you please check whether the proxy in settings.xml is ok or not?

  


  true
  http
202.27.42.14
  8080
  localhost,127.0.0.1

  

I'll try this at home pc tonight and see if it works.

Thanks

Naz
-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 July 2007 2:51 p.m.
To: Tapestry users
Subject: Re: T5 Tutorial

Try upgrading to 2.0.7.

If that doesn't work, googling the error message suggests
it's a network/proxy problem.

http://maven.apache.org/guides/mini/guide-proxies.html

Cheers,
Nick.


Bhuiyan, Nazmul wrote:
> Shall I use Maven 2.0.7?
> In the tutorial you have mentioned to use Maven 2.0.5

-
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: T5 Tutorial

2007-07-09 Thread Bhuiyan, Nazmul
Shall I use Maven 2.0.7?
In the tutorial you have mentioned to use Maven 2.0.5

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 July 2007 1:20 p.m.
To: Tapestry users
Subject: Re: T5 Tutorial

And I'm on Maven 2.0.7 at this point.  This sure feels like a Maven
bug (it's complaining about a missing archetype plugin, not anything
to do with Tapestry specifically).

On 7/9/07, Donyee <[EMAIL PROTECTED]> wrote:
> I change 5.05 to 5.04,then it works fine.
>
> 2007/7/10, Howard Lewis Ship <[EMAIL PROTECTED]>:
> > What version of Maven are you using?
> >
> > On 7/9/07, Nazmul Bhuiyan <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I'm following the T5 tutorial and getting the following error. I've ran 
> > > this
> > > at my work pc. Is there any proxy issue here or some thing else?
> > >
> > > C:\tmp>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
> > > -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.5
> > > -DgroupId=org.apache.tapestry -DartifactId=tapestry-tutorial1
> > > -DpackageName=org.apache.tapestry.tutorial
> > > [INFO] Scanning for projects...
> > > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > > [INFO]
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > 
> > > [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
> > > not
> > > exist or no valid version could be found
> > > [INFO]
> > > 
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > > 
> > > [INFO] Total time: < 1 second
> > > [INFO] Finished at: Tue Jul 10 11:38:50 NZST 2007
> > > [INFO] Final Memory: 1M/2M
> > > [INFO]
> > > 
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/T5-Tutorial-tf4053179.html#a11513000
> > > Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > TWD Consulting, Inc.
> > Independent J2EE / Open-Source Java Consultant
> > Creator and PMC Chair, Apache Tapestry
> > Creator, Apache HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> 徐 依伟
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com



RE: T5 Tutorial

2007-07-09 Thread Bhuiyan, Nazmul
C:\tmp>mvn --version
Maven version: 2.0.5

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 July 2007 12:53 p.m.
To: Tapestry users
Subject: Re: T5 Tutorial

What version of Maven are you using?

On 7/9/07, Nazmul Bhuiyan <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm following the T5 tutorial and getting the following error. I've
ran this
> at my work pc. Is there any proxy issue here or some thing else?
>
> C:\tmp>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
> -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.5
> -DgroupId=org.apache.tapestry -DartifactId=tapestry-tutorial1
> -DpackageName=org.apache.tapestry.tutorial
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
>

> [ERROR] BUILD ERROR
> [INFO]
>

> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
does not
> exist or no valid version could be found
> [INFO]
>

> [INFO] For more information, run Maven with the -e switch
> [INFO]
>

> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Jul 10 11:38:50 NZST 2007
> [INFO] Final Memory: 1M/2M
> [INFO]
>

> --
> View this message in context:
http://www.nabble.com/T5-Tutorial-tf4053179.html#a11513000
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
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: Updated T5 Tutorial

2007-06-28 Thread Bhuiyan, Nazmul
Great!!

Is it possible for you to include Date field and validation into the
form (e.g. Address created on) that capture date and time?
What are the advantages using Jetty over Tomcat?

Thanks a lot for giving us Tapestry

Naz

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Friday, 29 June 2007 9:40 a.m.
To: Tapestry users
Subject: Updated T5 Tutorial

The T5 Tutorial has been updated:

- It is now HTML format, not PDF
- I've added a chapter on forms and validation

it's still very much a work in progress, but I think it will server
many people's needs better than the raw reference documentation.

http://tapestry.apache.org/tapestry5/tutorial1/index.html

-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
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: T3: Question

2007-06-27 Thread Bhuiyan, Nazmul
Hi Nick,

 

Please find attached code.

 

Thanks

 

Naz

 

 

-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 27 June 2007 3:42 p.m.
To: Tapestry users
Subject: Re: T3: Question

 

Please show us the relevant code.

 

Cheers,

Nick.

 

 

Nazmul wrote:

> As not too many people interested on T3 but I got a existing
application

> developed by T3 that needs some change.

> If some one help me on extending the following tutorial would help me
a lot.

> 

> I've been following the tutorial at

>
http://www.sandcastsoftware.com/downloads/brownbag/tapestry/tapestry-cru
d-a4.pdf

> 

> I want to extend this DVD application so that 

> user can choose DVD type from a drop down list (i.e. Action, Drama) 

> and choose a date from a date picker.

> 

> I have tried to do this but when I click on Edit the Edit page
displays with all

> data related to the DVD except the Date and the DVD type. The Date
picker field

> is empty and the DVD type drop down field set to "Action" even the DVD
was Drama.

> 

> Please help.

> 

> 

> 

> -

> 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: T3 binding issue for DatePicker

2007-06-17 Thread Bhuiyan, Nazmul
Hi Nick,

I'm new in Tapestry.

There is no usages doc with the component.
Can you please provide me some sample code?

Thanks a lot.

Naz

-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Monday, 18 June 2007 4:34 p.m.
To: Tapestry users
Subject: Re: T3 binding issue for DatePicker

Look on Tassel which has various validating components that you can use
or study:
http://www.tapestrycomponents.org/Tassel/app?service=direct/1/Browse/cha
ngeView&sp=SForm-element+%28validating%29

In fact one of them purports to be a ValidDatePicker.
Depsite being marked as "GPL", no GPL license statement appears to be
included.

Cheers,
Nick.


Bhuiyan, Nazmul wrote:
> I want to use DatePicker to capture date from user. And would like to
> make this field mandatory.
> How do I do this?
> 
> -Original Message-
> From: Nick Westgate [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 18 June 2007 4:01 p.m.
> To: Tapestry users
> Subject: Re: T3 binding issue for DatePicker
> 
> Hi Naz.
> 
> You're getting confused between DatePicker and DateField.
> 
> Cheers,
> Nick.
> 
> 
> Nazmul wrote:
>> If I use the following code in my html and
>> the page then get the following error:
>>
>> Html template:
>> 82 
>> 83  > field="ognl:components.inputUserActiveDate">
>> Active Date
>> 84   Active Date
>> 85
>> 86 
>>
>> Page specification:
>>
>> 
>> 
>> 
>> 
>> 
>>
>> Error from Tapestry:
>> Display name not specified and not provided by 
>> field UserMaint/inputUserActiveDate.
>>  
>> binding:
>>  ExpressionBinding[UserMaint/inputUserActiveDate
>> cachedValue=org.apache.tapestry.form.
>> [EMAIL PROTECTED]/inputUserActiveDate]]
>>  
>> component:
>>  org.apache.tapestry.valid.
>> [EMAIL PROTECTED]/$FieldLabel$4]
>>  
>> location:
>>  context:/WEB-INF/UserMaint.html, line 83
>>
>> If I use the following code then I don't get any error
>> and the UserMaint page displays ok but when I submit
>> the form then get null for the nputUserActiveDate.
>> It seems binding not done properly.
>>
>> Html template:
>>
>> 
>>  Active Date
>> 
>> 
>>
>> Page specification:
>>
>> 
>> 
>> 
>> 
>>
>> Please help.
>>
>> 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]
> 
> 

-
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: T3 binding issue for DatePicker

2007-06-17 Thread Bhuiyan, Nazmul
I want to use DatePicker to capture date from user. And would like to
make this field mandatory.
How do I do this?

-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Monday, 18 June 2007 4:01 p.m.
To: Tapestry users
Subject: Re: T3 binding issue for DatePicker

Hi Naz.

You're getting confused between DatePicker and DateField.

Cheers,
Nick.


Nazmul wrote:
> If I use the following code in my html and
> the page then get the following error:
> 
> Html template:
> 82 
> 83   field="ognl:components.inputUserActiveDate">
> Active Date
> 84   Active Date
> 85
> 86 
> 
> Page specification:
> 
> 
> 
> 
> 
> 
> 
> Error from Tapestry:
> Display name not specified and not provided by 
> field UserMaint/inputUserActiveDate.
>  
> binding:
>  ExpressionBinding[UserMaint/inputUserActiveDate
> cachedValue=org.apache.tapestry.form.
> [EMAIL PROTECTED]/inputUserActiveDate]]
>  
> component:
>  org.apache.tapestry.valid.
> [EMAIL PROTECTED]/$FieldLabel$4]
>  
> location:
>  context:/WEB-INF/UserMaint.html, line 83
> 
> If I use the following code then I don't get any error
> and the UserMaint page displays ok but when I submit
> the form then get null for the nputUserActiveDate.
> It seems binding not done properly.
> 
> Html template:
> 
> 
>  Active Date
> 
> 
> 
> Page specification:
> 
> 
> 
> 
> 
> 
> Please help.
> 
> 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
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 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]

> 

> 

>