Re: T5: page redirect

2007-06-17 Thread Sven Homburg

wow, and i think i must be crazy and nobody believes me !!

Mit freundlichem Gruss

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947




Bill Holloway schrieb:

I'm having the same trouble.  My Start page inherits from ProtectedPage:

public abstract class ProtectedPage
{
@InjectPage
private Login _loginPage;

@ApplicationState

private AppState _state;

Object onActivate ()

{
if (! _state.isLoggedIn())
{
_loginPage.setCallback (this);
return _loginPage;
}
return null;
}
}

Start has an empty class, no members, just a template.  The Login
works fine.  Everything is OK under Jetty (logged in or logged out) as
long as I call localhost:8080/start, but if I'm not logged in, a
call to localhost:8080 gets me a blank page.  Introducing Login tmp =
_loginPage at the beginning of onActivate and watching that in a
debug session shows a good _loginPage variable.  But BOOM.

Bill

-
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]



T5 Block Rendering

2007-06-17 Thread Jeremy F. Kassis

This works:
div t:type=EmptyFrame t:id=myFrame
centerBlock=block:centerBlock/div
t:block t:id=centerBlockSomething/t:block


But T5 complains that the component doesn't have a Block with
id=centerBlock in this case:
div t:type=EmptyFrame t:id=myFrame centerBlock=block:centerBlock
   t:block t:id=centerBlockSomething/t:block
/div

And has the same complaint for this:
t:block t:id=centerBlockSomething/t:block
div t:type=EmptyFrame t:id=myFrame
centerBlock=block:centerBlock/div


Coming from Tap4 land, this seems a little strange.
-- 
View this message in context: 
http://www.nabble.com/T5-Block-Rendering-tf3935992.html#a11163113
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5 Block Rendering

2007-06-17 Thread Howard Lewis Ship

It's a little confusing and although what it does now is correct, I may fix it.

div t:type=EmptyFrame t:id=myFrame centerBlock=block:centerBlock
 t:block id=centerBlockSomething/t:block
/div


t:id is just for components.  For blocks, a simple id will sufffice,
and is all that's accepted.  It should be generating a parse error for
your syntax.

Further for what you are trying to do, I've tried to make it easy:

div t:type=EmptyFrame t:id=myFrame
 t:parameter name=centerBlock Something /t:parameter
/div

t:parameter is used to define a Block and bind it to a parameter all
in one go.

On 6/17/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote:


This works:
div t:type=EmptyFrame t:id=myFrame
centerBlock=block:centerBlock/div
t:block t:id=centerBlockSomething/t:block


But T5 complains that the component doesn't have a Block with
id=centerBlock in this case:
div t:type=EmptyFrame t:id=myFrame centerBlock=block:centerBlock
   t:block t:id=centerBlockSomething/t:block
/div

And has the same complaint for this:
t:block t:id=centerBlockSomething/t:block
div t:type=EmptyFrame t:id=myFrame
centerBlock=block:centerBlock/div


Coming from Tap4 land, this seems a little strange.
--
View this message in context: 
http://www.nabble.com/T5-Block-Rendering-tf3935992.html#a11163113
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]



Re: T5 encoding issue

2007-06-17 Thread Martin Grotzke
On Tue, 2007-06-12 at 10:38 +0200, Ulrich Stärk wrote:
 In case you are using Tomcat try adding URIEncoding=UTF-8 to your
 connector definition in server.xml.
I just tried that, but it does not solve the problem.

I have added a servlet filter that prints the requested uri to
the std out, just to see what is the input for T5.

The URIEncoding=UTF-8 does not change what's printed by the
filter, but the argument that's passed to my page class' onActivate
is different.

Without URIEncoding=UTF-8:

[INFO ] 2007-06-17 22:52:37,956 http-8080-1 
org.comp.proj.presentation.util.EncodingFilter.doFilter:
- uri: /shopping24-shop/search/tr%C3%BCb
- path: null

[INFO ] 2007-06-17 22:52:51,303 http-8080-1 
org.comp.proj.presentation.pages.Search.onActivate:
Got invoked args tr??b

With URIEncoding=UTF-8:

[INFO ] 2007-06-17 22:54:33,398 http-8080-1 
org.comp.proj.presentation.util.EncodingFilter.doFilter:
uri: /shopping24-shop/search/tr%C3%BCb

[INFO ] 2007-06-17 22:54:44,620 http-8080-1 
org.comp.proj.presentation.pages.Search.onActivate:
Got invoked args tr?b


Is there anything else that I could do to get the correct
decoding of the request parameters / uri?

Thanx  cheers,
Martin



 
 Uli
 
 On Mo, 11.06.2007, 23:13, Martin Grotzke sagte:
  Hi,
 
  I have currently an encoding issue, but am not really sure what's
  the reason for this.
 
  I have an url that contains a url encoded german umlaut (ü) in UTF-8
  and looks like the following:
 
  http://localhost:8080/app/search/%C3%BCbel (the %C3%BC represents the ü
  in UTF-8, this url is created by
  componentResources.createPageLink( search, new Object[]{ _query } )
  in the submit method of the search page)
 
  Now, when I look in the onActivate(string) method, the string is not
  übel but it's ?bel, both printed via logging as when I inspect the
  variable during debugging.
 
  AFAICS the created url from the page link is correct in terms of utf-8
  encoding, but the parsed query string seems to be wrong, as it contains
  only the ?...
 
  We have the following in our AppModule:
 
  public void contributeRequestHandler(
  OrderedConfigurationRequestFilter configuration,
  @InjectService(TimingFilter)
  final RequestFilter filter, @InjectService(Utf8Filter)
  final RequestFilter utf8Filter ) {
  configuration.add( Timing, filter );
  configuration.add( Utf8Filter, utf8Filter ); // handle UTF-8
  }
 
  public RequestFilter buildUtf8Filter(
  @InjectService(RequestGlobals)
  final RequestGlobals requestGlobals ) {
  return new RequestFilter() {
  public boolean service( Request request, Response response,
  RequestHandler handler ) throws IOException {
  requestGlobals.getHTTPServletRequest().setCharacterEncoding(
  UTF-8 );
  return handler.service( request, response );
  }
  };
  }
 
  public static PageResponseRenderer decoratePageResponseRenderer(
  @InjectService(PageMarkupRenderer)
  final PageMarkupRenderer markupRenderer,
  @InjectService(MarkupWriterFactory)
  final MarkupWriterFactory markupWriterFactory, final Object
  delegate ) {
 
  return new PageResponseRenderer() {
  public void renderPageResponse( Page page, Response response )
  throws IOException {
  MarkupWriter writer =
  markupWriterFactory.newMarkupWriter();
  markupRenderer.renderPageMarkup( page, writer );
  PrintWriter pw = response
  .getPrintWriter( text/html; charset=UTF-8 );
  writer.toMarkup( pw );
  pw.flush();
  }
  };
  }
 
  Is there anything wrong, or what am I missing?
 
  Thanx  cheers,
  Martin
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part


Re: T5 encoding issue

2007-06-17 Thread Martin Grotzke
I just stepped through the sources to see where the URI get's
decoded to the activation context arguments, and found that the
o.a.t.internal.services.PageRenderDispatcher.dispatch invokes
convertActivationContext with the path info to convert it to
the activation context args.

convertActivationContext uses TapestryInternalUtils.urlDecode
which invokes URLCodec.decode. It seems that this causes the
problem, but I cannot say what exactly is the reason.

When I remove the invocation of TapestryInternalUtils.urlDecode
everything's fine...

Any help with this issue?

Thanx  cheers,
Martin


On Sun, 2007-06-17 at 23:01 +0200, Martin Grotzke wrote:
 On Tue, 2007-06-12 at 10:38 +0200, Ulrich Stärk wrote:
  In case you are using Tomcat try adding URIEncoding=UTF-8 to your
  connector definition in server.xml.
 I just tried that, but it does not solve the problem.
 
 I have added a servlet filter that prints the requested uri to
 the std out, just to see what is the input for T5.
 
 The URIEncoding=UTF-8 does not change what's printed by the
 filter, but the argument that's passed to my page class' onActivate
 is different.
 
 Without URIEncoding=UTF-8:
 
 [INFO ] 2007-06-17 22:52:37,956 http-8080-1 
 org.comp.proj.presentation.util.EncodingFilter.doFilter:
 - uri: /shopping24-shop/search/tr%C3%BCb
 - path: null
 
 [INFO ] 2007-06-17 22:52:51,303 http-8080-1 
 org.comp.proj.presentation.pages.Search.onActivate:
 Got invoked args tr??b
 
 With URIEncoding=UTF-8:
 
 [INFO ] 2007-06-17 22:54:33,398 http-8080-1 
 org.comp.proj.presentation.util.EncodingFilter.doFilter:
 uri: /shopping24-shop/search/tr%C3%BCb
 
 [INFO ] 2007-06-17 22:54:44,620 http-8080-1 
 org.comp.proj.presentation.pages.Search.onActivate:
 Got invoked args tr?b
 
 
 Is there anything else that I could do to get the correct
 decoding of the request parameters / uri?
 
 Thanx  cheers,
 Martin
 
 
 
  
  Uli
  
  On Mo, 11.06.2007, 23:13, Martin Grotzke sagte:
   Hi,
  
   I have currently an encoding issue, but am not really sure what's
   the reason for this.
  
   I have an url that contains a url encoded german umlaut (ü) in UTF-8
   and looks like the following:
  
   http://localhost:8080/app/search/%C3%BCbel (the %C3%BC represents the ü
   in UTF-8, this url is created by
   componentResources.createPageLink( search, new Object[]{ _query } )
   in the submit method of the search page)
  
   Now, when I look in the onActivate(string) method, the string is not
   übel but it's ?bel, both printed via logging as when I inspect the
   variable during debugging.
  
   AFAICS the created url from the page link is correct in terms of utf-8
   encoding, but the parsed query string seems to be wrong, as it contains
   only the ?...
  
   We have the following in our AppModule:
  
   public void contributeRequestHandler(
   OrderedConfigurationRequestFilter configuration,
   @InjectService(TimingFilter)
   final RequestFilter filter, @InjectService(Utf8Filter)
   final RequestFilter utf8Filter ) {
   configuration.add( Timing, filter );
   configuration.add( Utf8Filter, utf8Filter ); // handle UTF-8
   }
  
   public RequestFilter buildUtf8Filter(
   @InjectService(RequestGlobals)
   final RequestGlobals requestGlobals ) {
   return new RequestFilter() {
   public boolean service( Request request, Response response,
   RequestHandler handler ) throws IOException {
   
   requestGlobals.getHTTPServletRequest().setCharacterEncoding(
   UTF-8 );
   return handler.service( request, response );
   }
   };
   }
  
   public static PageResponseRenderer decoratePageResponseRenderer(
   @InjectService(PageMarkupRenderer)
   final PageMarkupRenderer markupRenderer,
   @InjectService(MarkupWriterFactory)
   final MarkupWriterFactory markupWriterFactory, final Object
   delegate ) {
  
   return new PageResponseRenderer() {
   public void renderPageResponse( Page page, Response response )
   throws IOException {
   MarkupWriter writer =
   markupWriterFactory.newMarkupWriter();
   markupRenderer.renderPageMarkup( page, writer );
   PrintWriter pw = response
   .getPrintWriter( text/html; charset=UTF-8 );
   writer.toMarkup( pw );
   pw.flush();
   }
   };
   }
  
   Is there anything wrong, or what am I missing?
  
   Thanx  cheers,
   Martin
  
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part


Re: [T5.0.5] Replacement for tapestry.test.pagelevel.NoOpURLEncoder ?

2007-06-17 Thread Howard Lewis Ship

Yes, a bunch of those APIs were consolidated back into Request and
Response. They were broken out that way by Kent to support the
PageTester, but I found a way to put humpty dumpty back together again
while keeping PageTester happy.

On 6/15/07, Daniel Jue [EMAIL PROTECTED] wrote:

I see the source code for this class in the online api-docs, but it
doesn't appear to be in the current snapshot.  I believe it was around
back in 5.0.4.  Has something better replaced it?  Can I just use
ResponseImpl with no ill repercussions?

I came across it when trying to use some T5 Acegi code that was posted
on the list:

...

Object onSuccessFromLoginForm() {
Link acegiLoginLink = new LinkImpl(new NoOpURLEncoder(), 
jumpstart,
j_security_check);
acegiLoginLink.addParameter(j_username, username);
acegiLoginLink.addParameter(j_password, password);

return acegiLoginLink;
}
...


Daniel

-
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]



T3 binding issue for DatePicker

2007-06-17 Thread Nazmul
If I use the following code in my html and
the page then get the following error:

Html template:
82 tr
83  thspan jwcid=@FieldLabel
field=ognl:components.inputUserActiveDate
Active Date/span/th
84  th Active Date/th
85tdinput jwcid=inputUserActiveDate size=10 //td
86 /tr

Page specification:

component id=inputUserActiveDate type=DatePicker
static-binding name=displayName value=Active Date /
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

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:

tr
th Active Date/th
tdinput jwcid=inputUserActiveDate size=10 //td
/tr

Page specification:

component id=inputUserActiveDate type=DatePicker
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

Please help.

Naz


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



Re: tapestry-1.0.0 on any mirror?

2007-06-17 Thread Jesse Kuhnert

It should be soon(whenever they rsync the mirrors, assuming 24-48hrs),  when
it does show up you should see it here as version 4.1.2.

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tapestry/tapestry-test/

On 6/12/07, Peter Schröder [EMAIL PROTECTED] wrote:


hi jesse,

you wrote, that you wanted to push a version to ibiblio mirror. i didnt
find it jet?!

kind regards
peter

-
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


T4 wml servlet context

2007-06-17 Thread Hyuuga Mawaddah

Dear all,

my application has 2 contexts. on web.xml i have these lines

servlet
   servlet-nameMReunion/servlet-name
   servlet-classorg.apache.tapestry.ApplicationServlet
/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameMReunion/servlet-name
   url-pattern/app/url-pattern
   /servlet-mapping
   servlet
   servlet-namewap/servlet-name
   servlet-classorg.apache.tapestry.ApplicationServlet
/servlet-class
   /servlet
   servlet-mapping
   servlet-nameMReunion/servlet-name
   url-pattern/app/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-namewap/servlet-name
   url-pattern/wap/app/url-pattern
   /servlet-mapping


and my Home.wml  has these

go jwcid=[EMAIL PROTECTED]:Go stateful=ognl:false
listener=listener:submit
   postfield jwcid=[EMAIL PROTECTED]:Postfield name=ognl:
components.userInput.name value=ognl:username/
   /go

i put my wap application under WEB-INF/wap dir

the problem is, the Go component on my Home.wml is always refers to
MReunion/app context  instead of MReunion/wap/app context
so it can't get the right page to display because it searches on the wrong
context. I access the page with http://localhost/MReunion/wap/app, and when
i clicked it, it went to http://localhost/MReunion/app  with error message
how to solve this problem?

thanks for any help


Mawaddah
Web Application Developer
Nurulfikri Software Development
Jakarta-Indonesia


Re: T3 binding issue for DatePicker

2007-06-17 Thread Nick Westgate

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 tr
83  thspan jwcid=@FieldLabel
field=ognl:components.inputUserActiveDate
Active Date/span/th
84  th Active Date/th
85tdinput jwcid=inputUserActiveDate size=10 //td
86 /tr

Page specification:

component id=inputUserActiveDate type=DatePicker
static-binding name=displayName value=Active Date /
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

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:

tr
th Active Date/th
tdinput jwcid=inputUserActiveDate size=10 //td
/tr

Page specification:

component id=inputUserActiveDate type=DatePicker
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

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: 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 tr
 83  thspan jwcid=@FieldLabel
 field=ognl:components.inputUserActiveDate
 Active Date/span/th
 84  th Active Date/th
 85tdinput jwcid=inputUserActiveDate size=10 //td
 86 /tr
 
 Page specification:
 
 component id=inputUserActiveDate type=DatePicker
 static-binding name=displayName value=Active Date /
 binding name=validator expression=beans.required/
 binding name=value expression=user.usrActiveDate/
 /component
 
 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:
 
 tr
 th Active Date/th
 tdinput jwcid=inputUserActiveDate size=10 //td
 /tr
 
 Page specification:
 
 component id=inputUserActiveDate type=DatePicker
 binding name=validator expression=beans.required/
 binding name=value expression=user.usrActiveDate/
 /component
 
 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: T3 binding issue for DatePicker

2007-06-17 Thread Nick Westgate

Look on Tassel which has various validating components that you can use or 
study:
http://www.tapestrycomponents.org/Tassel/app?service=direct/1/Browse/changeViewsp=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 tr
83  thspan jwcid=@FieldLabel
field=ognl:components.inputUserActiveDate
Active Date/span/th
84  th Active Date/th
85tdinput jwcid=inputUserActiveDate size=10 //td
86 /tr

Page specification:

component id=inputUserActiveDate type=DatePicker
static-binding name=displayName value=Active Date /
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

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:

tr
th Active Date/th
tdinput jwcid=inputUserActiveDate size=10 //td
/tr

Page specification:

component id=inputUserActiveDate type=DatePicker
binding name=validator expression=beans.required/
binding name=value expression=user.usrActiveDate/
/component

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]



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
ngeViewsp=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 tr
 83  thspan jwcid=@FieldLabel
 field=ognl:components.inputUserActiveDate
 Active Date/span/th
 84  th Active Date/th
 85tdinput jwcid=inputUserActiveDate size=10 //td
 86 /tr

 Page specification:

 component id=inputUserActiveDate type=DatePicker
 static-binding name=displayName value=Active Date /
 binding name=validator expression=beans.required/
 binding name=value expression=user.usrActiveDate/
 /component

 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:

 tr
 th Active Date/th
 tdinput jwcid=inputUserActiveDate size=10 //td
 /tr

 Page specification:

 component id=inputUserActiveDate type=DatePicker
 binding name=validator expression=beans.required/
 binding name=value expression=user.usrActiveDate/
 /component

 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]