Re: enctype="multipart/form-data" cause encoding problem in Chinese!

2007-11-29 Thread yuan gogo
Today I download the lastest t5.0.7 snapshot. It seems the patch has been applied. But another problem arised! I get the following error: the charset encoding is NULL java.lang.NullPointerException: charsetName java.lang.String.(String.java:442) java.lang.String.(String.java:516)

RE: T5: How to remove default.css?

2007-11-29 Thread Adam Ayres
My preference would be for the first option, and then if I want to add my own default CSS then I could contribute a service similar to the one used currently for the Tapestry default.css or by some other means. My desire to not use the default.css is not due to any bugs with the Tapestry CSS, but

Re: T5: radio button

2007-11-29 Thread Angelo Chen
Hi Jeffrey, good link, it solves my problem, thanks. jeffrey ai wrote: > > Angelo, > > You could find an example of radiogroup at the following great site > created by SH Man. > > http://lombok.demon.co.uk/tapestry5Demo/ > > -- View this message in context: http://www.nabble.com/T5%3A-

Re: T5 Complex NPE in org.apache.tapestry.internal.util.Base64InputStream

2007-11-29 Thread Howard Lewis Ship
That would make sense, the URL is for a form submission, a kind of component action event. Is there a way to configure ACEGI with a specific URL, i.e., a page render URL (which would be more appropriate). On Nov 29, 2007 2:37 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > I recall seeing somethin

Re: [T5] Cannot persist field exception

2007-11-29 Thread Howard Lewis Ship
Don't see anything obvious, he Palette itself does not have any persistent fields. It must be some parameter of the Palette, tied to a persistent field in some way. On Nov 29, 2007 3:40 PM, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > So I've finally narrowed it down to the Palette compon

Re: T5: How to remove default.css?

2007-11-29 Thread Howard Lewis Ship
There's two options: 1) Add a configuration value that would turn off the contribution of default.css. Your page (or layout component) would then provide appropriate CSS. 2) Allow replacement of default.css with some other file (or files?). What do people think is the best option? I'd prefer,

Re: T5: Is Persist("conversation") planned? Please?

2007-11-29 Thread Kalle Korhonen
Of course, nothing prevents one writing a semi-automatic workspace management layer on top of Seam that would take care of detecting and closing abandoned conversations (for example, along the lines I suggested on the Trails list). The Seam guys have carefully removed any dependencies to JSF. In pr

RE: [T5] Cannot persist field exception

2007-11-29 Thread Jean-Philippe Steinmetz
So I've finally narrowed it down to the Palette component the page uses. When I remove the Palette it doesn't give errors. When its on screen I get errors. This is the error I now get when I try and submit the form... java.lang.NullPointerException Stack trace * org.apache.tapestry.coreli

Re: Dynamic pages (or: arguments to pages) [T4]

2007-11-29 Thread Kaspar Fischer
On 29.11.2007, at 11:02, Ulrich Stärk wrote: These are just guesses, I haven't tried them nor verified them. I could imagine that the parameter isn't available via the WebRequest because the page didn't get called by a GET request directly but with the help of the service encoder, so your

Re: T5 Complex NPE in org.apache.tapestry.internal.util.Base64InputStream

2007-11-29 Thread Josh Canfield
I recall seeing something about this on the list before. I believe the problem is that ACEGI isn't posting the form data on the redirect. This sounds like your problem: https://issues.apache.org/jira/browse/TAPESTRY-1780 Josh On Nov 29, 2007 1:49 PM, Daniel Jue <[EMAIL PROTECTED]> wrote: > I'm

Re: T5 Complex NPE in org.apache.tapestry.internal.util.Base64InputStream

2007-11-29 Thread Daniel Jue
I'm still having an issue with this. Is there a quick fix or workaround? Or any idea where I should insert a hack? Summary: You log into your app and an ASO is created for you You land on a page that has a form You wait until your session times out (automatically) You click the form submit. Your

Re: [T4] why/when use the external service

2007-11-29 Thread Ulrich Stärk
ServiceEncoders don't depend on ExternalPages, do they? So when using friendly URLs it just comes down to the DataSqueezers, right? Uli Andreas Andreou schrieb: Well, it generally depends on what you're doing and how happy you are with the urls, e.t.c. It's true that you can use the page servi

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Jesse Kuhnert
Sure, There are 3 examples here that work: http://tapestry.apache.org/tapestry4.1/components/form/propertyselection.html You can also look at the "Workbench" demo which also uses them: http://opencomponentry.com:8080/workbench/app (source: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/

Re: [T4] why/when use the external service

2007-11-29 Thread Andreas Andreou
Well, it generally depends on what you're doing and how happy you are with the urls, e.t.c. It's true that you can use the page service along with getRequestCycle().getParameter() to get parameters in whatever order they may appear - and if that's what you're after, fine! ExternalPages do require

[T4] why/when use the external service

2007-11-29 Thread Ulrich Stärk
Hi List, I don't really understand when one should use the ExternalService and what exactly it is good for. According to the JavaDocs and TiA the external service enables me to bookmark pages and pass parameters to them. But according to my understanding I can create a bookmark to every page in

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
Well so much for possible bug/jira issue... Is there a working sample that exercises PropertySelection bindings as documented in T-4.1.3 that I can operate. I mean a sample that you have confirmed is currently operating the way it should. Likewise I will produce a sample to try and present t

Re: T5: How to remove default.css?

2007-11-29 Thread Daniel Jue
This would be very nice. I understand the "usable defaults" point of view, but sometimes I'd rather not deal with default.css raising it's head during development. Maybe there is a way to configure default assets in the AppModule? That way we could just change the default contribution that would

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Jesse Kuhnert
I have no ideaSounds like you need to isolate your problem. Put your gallery widget in a very basic page somewhere with as little extra stuff as possible and play around with your parameters / values. Either way you ~must~ specify a value parameter for your PropertySelection component if you

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
This is what I receive when I uncomment the binding in the jwc file [ +/- ] Exception: A binding for parameter 'value' of component Home/galleryWidget.tableSizeSelect in the template for Home/galleryWidget conflicts with an existing binding in the specification. org.apache.hivemind.Applic

Re: retrieve outer component reference from inner component

2007-11-29 Thread Jesse Kuhnert
You could use IPage.getNestedComponent() by calling getPage().getNestedComponent() (http://tapestry.apache.org/tapestry4.1/apidocs/src-html/org/apache/tapestry/IPage.html#line.111) Other than passing the component around as a parameter, is there a reason why you need the reference to it at all?

Re: T5: How to remove default.css?

2007-11-29 Thread Jesse Kuhnert
Not sure if there is an easy way to do it as I don't know the codebase well enough but I would second the opinion that this should be made very easy / obvious to do... (for people that don't care they don't care, but for people that do they will care a ~lot~) On Nov 29, 2007 2:43 PM, Adam Ayres

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Jesse Kuhnert
Are you sure about that? You didn't bind it in any previous html examples you gave. I'm skeptical. On Nov 29, 2007 2:36 PM, Ken in nashua <[EMAIL PROTECTED]> wrote: > > Jesse, that binding was specified in the html. No need to duplicate that > right?Best regards Ken in nashua > > > From: [

T5: How to remove default.css?

2007-11-29 Thread Adam Ayres
I am using Tapestry 5.0.6 and would like to prevent the default.css from being added to my pages. Since the default.css is contributed as a service in the TapestryModule I do not see a way of preventing this from being added. Please advise if there is a way to customize this? There are a coup

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
If you want I can zip up the whole trails project and get that to you. I would think at this point it would be helpful to have a running trails runtime for these special instances, for fun and probably for that nasty bug that comes along. Trails would provide you that extra special real world

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
Jesse, that binding was specified in the html. No need to duplicate that right?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: PropertySelection binding bug T-4.1.3 ?Date: Thu, 29 Nov 2007 13:49:39 -0500 Ok, I followed your lead and tried both 1. repaired spell

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Jesse Kuhnert
Ummm.. In the files you attached you don't have your PropertySelect components "value" parameters bound ... On Nov 29, 2007 1:49 PM, Ken in nashua <[EMAIL PROTECTED]> wrote: > > Ok, I followed your lead and tried both > > 1. repaired spelling of integer. Still failed > > 2. Tried Jesse's

Re: T5: radio button

2007-11-29 Thread jeffrey ai
Angelo, You could find an example of radiogroup at the following great site created by SH Man. http://lombok.demon.co.uk/tapestry5Demo/ Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi, > > How to use radio/radiogroup? I have following: > > > option1 > opti

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
Ok, I followed your lead and tried both 1. repaired spelling of integer. Still failed 2. Tried Jesse's version. That failed too @Persist @InitialValue('ognl:2') public abstract int getTableSize(); public abstract void setTableSize(int tableSize); The select comes up with initial selected '1' hi

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Jesse Kuhnert
Yes, .or to be safe: @Persist/* session is default persist strategy */ @InitialValue("ognl:2") public abstract int getTableSize(); On Nov 29, 2007 1:03 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > Hi Ken, > > > > @InitialValue("ognl:new java.lang.Ingeter('2').intValue()") > > > A couple of

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Josh Canfield
Hi Ken, > @InitialValue("ognl:new java.lang.Ingeter('2').intValue()") A couple of things jump out at me. You misspelled Integer, there is no constructor for Integer that takes a character, and why are you passing a char/String to the Integer constructor when you can just pass the int? Actually

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
Ok, I changed my property method signatures to int Everything else shold pan into this as it is all configured in the java as opposed to jwc file. @Persist("session") @InitialValue("ognl:new java.lang.Ingeter('2').intValue()") public abstract int getTableSize(); public abstract void setTable

Re: T5: problems when extending DateField. More flexibility needed?

2007-11-29 Thread Howard Lewis Ship
That is a problem; we're seeing a subtle difference between a JavaScript hash and a JSON object. What you want to specify is a hash, because that what's the Calendar wants. This may require a hack on JSONObject. On Nov 28, 2007 8:39 AM, Britske <[EMAIL PROTECTED]> wrote: > > Hi, > > I extended

OGNL race condition(s) (?)

2007-11-29 Thread Martino Piccinato
Hi all, some time ago we had a strange problem with our tapestry application, there was a component repeatedly throwing a ClassCastException, in fact one of this component's parameter was passed a User (interface) object being in that specific case a "SimpleUser" concrete implementation. When usin

Re: enctype="multipart/form-data" cause encoding problem in Chinese!

2007-11-29 Thread Christian Köberl POI
yuan gogo wrote: > > Hasn't this problem been resolved in 5.0.7-snapshot ? > It was resolved yesterday - so probably it's not in the snapshot build yet or you havent got the most recent snapshot. You could also checkout the 5.0.6 and apply the patch from https://issues.apache.org/jira/browse/T

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-29 Thread Ken in nashua
Ok, I got pre-empted but am back. I understand the flames from Andy and I do not mind being torched. I can handle the flames and eventually come out contributing to the drive of this framework in a fruitful user capacity. It's not you guys fault and I have high regard for your priest stewardshi

Adding rowspan in table header

2007-11-29 Thread trainee24
Hi, I would like to ask is it possible for me to add rowspan in table header by using contrib:table component? Any help given will be greatly appreciated. Thanks in advance. Regards, trainee 24 -- View this message in context: http://www.nabble.com/Adding-rowspan-in-table-header-tf4897415.htm

Re: [T5] interfaces and coercion

2007-11-29 Thread Alexander Turtsevich
Alexander Turtsevich wrote: i'm developing ajax tree component, providing 2 interfaces to implement: JqTreeKeyPrivider and JqTreeModel but i cant pass classes that implements those interfaces to the component, getting error : Could not find a coercion from type org.example.ajax.compon

Re: enctype="multipart/form-data" cause encoding problem in Chinese!

2007-11-29 Thread yuan gogo
I followed the link and found it has be resolved in 5.0.7 version. So I downloaded all 5.0.7-snapshot of 28th Nov. After replaced all 5.0.6jars, the problem is still there. Hasn't this problem been resolved in 5.0.7-snapshot ? Thank you :-) 2007/11/29, Olof Næssén <[EMAIL PROTECTED]>: > > Might h

[T5] interfaces and coercion

2007-11-29 Thread Alexander Turtsevich
i'm developing ajax tree component, providing 2 interfaces to implement: JqTreeKeyPrivider and JqTreeModel but i cant pass classes that implements those interfaces to the component, getting error : Could not find a coercion from type org.example.ajax.components.TreeModel to type org.e

Re: Dynamic pages (or: arguments to pages) [T4]

2007-11-29 Thread Ulrich Stärk
These are just guesses, I haven't tried them nor verified them. I could imagine that the parameter isn't available via the WebRequest because the page didn't get called by a GET request directly but with the help of the service encoder, so your parameter isn't there anymore when the page get's

Re: T5: problems when extending DateField. More flexibility needed?

2007-11-29 Thread Britske
OK , I'll do that. How about issue 2? Andreas Andreou wrote: > > That's the same as > https://issues.apache.org/jira/browse/TAPESTRY-1795 > only for Tapestry-5... add an issue for it > > On Nov 28, 2007 6:39 PM, Britske <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I extended datafield to call

Re: enctype="multipart/form-data" cause encoding problem in Chinese!

2007-11-29 Thread Olof Næssén
Might have something to do with this: https://issues.apache.org/jira/browse/TAPESTRY-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel /Olof On 29/11/2007, yuan gogo <[EMAIL PROTECTED]> wrote: > Hi, folks. > I'm a Chinese user and using tapestry 5.0.6 + jdk5 > I found