A Bug [about utf-8 filter]?

2007-11-24 Thread yuan gogo
I'm trying to integrating tapestry 5.0.6 + spring 2.5 rc. Everything looks ok, but, as I'm a Chinese user I should input some Chinese. I use knowledge from http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding; to solve encoding problem. It DOES work. But , the strange thing is I MUST name the

[T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Henrik Schlanbusch
Hi I have problem with my ajax code. I try to run the code in my tapestry app, but when I read the results in firebug from my calls, I get an empty string from the tapestry servlet, when I indeed expect to see a well formed html page. I have tried to run the url that I call directly through the

Re: [T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Andreas Andreou
But, what happens when you GET that url directly? Do you see anything returned? On Nov 24, 2007 12:17 PM, Henrik Schlanbusch [EMAIL PROTECTED] wrote: Hi I have problem with my ajax code. I try to run the code in my tapestry app, but when I read the results in firebug from my calls, I get an

Re: [T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Henrik Schlanbusch
Andreas Andreou andreoua at gmail.com writes: But, what happens when you GET that url directly? Do you see anything returned? Yes, I get the full page as I expect it to be loadede through the ajax call. I can even see - when I try to load through the AjaxUploader - that the page I want to

Re: [T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread andyhot
Ok - i haven't really used prototype in Tapestry, but i took a quick look at PrototypeResponseContributorImpl in org.apache.tapestry.services.impl and it looks like that ResponseBuilder overrides the default one if it finds X-Prototype-Version in the request headers... So, assuming that

Re: Can we use Text Area for String field in BeanEditor?

2007-11-24 Thread Kevin Menard
Yes. That was my mistake. The snippet I posted will work in a BeanEditForm but does not appear to work for a BeanEditor. -- Kevin On 11/23/07 10:44 PM, in article [EMAIL PROTECTED], Eko S.W. [EMAIL PROTECTED] wrote: I am not quite understand, but I'll try it anyway I'll report soon

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-24 Thread Andy Huhn
Hi Lasitha, Here is how I handle this. Again, I'm not sure if it's best practice, I'd be interested in comments: 1) In @PageAttached, I NULL out entity. 2) In OnActivate() (which is executed a few times), I set entity to a new, empty Entity (useful if this page was called with no primary key,

Re: Can we use Text Area for String field in BeanEditor?

2007-11-24 Thread Eko S.W.
Ouch. Now that was hurt ^_^ Well, as this is my lecture's order, than I should told him about it. Thanks. This is a reliev anyway Thank you Mr. Howard 2007/11/24, Kevin Menard [EMAIL PROTECTED]: Yes. That was my mistake. The snippet I posted will work in a BeanEditForm but does not appear

Re: Can we use Text Area for String field in BeanEditor?

2007-11-24 Thread Howard Lewis Ship
See https://issues.apache.org/jira/browse/TAPESTRY-1931 On Nov 24, 2007 9:49 AM, Eko S.W. [EMAIL PROTECTED] wrote: Ouch. Now that was hurt ^_^ Well, as this is my lecture's order, than I should told him about it. Thanks. This is a reliev anyway Thank you Mr. Howard 2007/11/24, Kevin

[T5] Render Informal Parameters in BeanEditorForm

2007-11-24 Thread Adam Ayres
I am using the BeanEditForm with informal parameters but they do not seem to be rendering correctly. In my page template I have: t:beanEditForm object=myObject class=fooBar / And the rendered output becomes: form id=form name=form method=post action=/myPage.beaneditform.form ...

T5: How do I create a page link with an anchor?

2007-11-24 Thread Filip S. Adamsen
Hi, I need to create a page link with an anchor, for example /app/news/read#comments. In T4 PageLink and friends had an anchor parameter, which made it easy to do this, but it's missing from T5 counterparts. I filed https://issues.apache.org/jira/browse/TAPESTRY-1879 - PageLink does not

T5: onActivate woes

2007-11-24 Thread Andy Huhn
Hello, I'm having a problem with onActivate(). Here are my questions: 1) Why is onActivate() called when a context variable is included in the URL? 2) Is there a way to prevent onActivate() from being called until AFTER onActivate(Integer prmPrimaryKey) is called? Here's my dilemma: I want to

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-24 Thread Andy Huhn
Alexander, This link appears to have been taken down. Is the book still on schedule? Thanks, Andy On Wed, 2007-11-14 at 09:45 +, Kolesnikov, Alexander GNI wrote: It can be pre-ordered from the publisher's website: http://www.packtpub.com/tapestry5/book Cheers, Alexander

Re: [T5] Render Informal Parameters in BeanEditorForm

2007-11-24 Thread Howard Lewis Ship
In that case, the informal parameters are the block parameters used to override the editor row for a particular property. In your case, you may want to explode BeanEditForm into a Form and a BeanEditor component, which will give you more precise control over the rendered markup. On Nov 24, 2007

Re: T5: onActivate woes

2007-11-24 Thread Howard Lewis Ship
You are using 5.0.5? I believe 5.0.6 has a fix for this, wherein the method invocation order is by number of parameters, decreasing. You may have to do: Object onActivate(Object[] context) { ... } And check the context count explicitly, and convert the context values explicitly, if you are on

Re: T5: onActivate woes

2007-11-24 Thread Andy Huhn
Hi Howard, I am on 5.0.6. The behavior you described here is what I expected to see (I have onActivate() with one parameter, and onActivate() with 0 parameters, and I expected to see onActivate() with one parameter executed first...but that was not the case). Should I file a JIRA? It sounds