Re: Does Tapestry have a standard way to support user timezone?

2006-02-16 Thread Fernando Padilla
Sadly I don't think Tapestry supports TimeZone, only Locale. I was thinking it would be great (and relatively easy) to duplicate the current Locale support for TimeZone.. then the datepicker could be changed to work with that information.. While you're at it, someone could think about addi

Re: Getting raw POST data

2006-03-19 Thread Fernando Padilla
Yup, you can't, this is how webapps work in general, sorry. But you can create a filter to get what you want, read on. The problem is that if it's a POST request, someone (webapp container, request object) has already digested the whole body of the request and convert it into properties of th

Re: Getting raw POST data

2006-03-21 Thread Fernando Padilla
Well, you should keep reading up on Filters and how they can replace the request/response objects, they are very useful. You'll want to create your own Request object ( extending HttpServletRequestWrapper ). In its constructor you absorb the inputstream into a byte[]. Then you create another

Re: Show component inside an AbstractComponent

2006-03-24 Thread Fernando Padilla
You have to declare the component first ( within the .jwc, .page or through annotations ). While you're declaring it you can use the property option to have tapestry automatically bind the component to a property for you, or you can call a getComponent( "name" ) (something like that, or getCom

Re: AW: https

2006-04-05 Thread Fernando Padilla
Just a warning. The 'scheme' parameter under 4.0 doesn't really work by its self. You need to use the 'scheme' and 'port' parameters exposed under 4.0.1. If you have a url "http:80" and you just change the 'scheme' it turns into an invalid url "https:80", since you can't have one web server

Re: AW: https

2006-04-05 Thread Fernando Padilla
Because it might not work in all the settings... What about under the PageRedirectException, or the cycle.activate (server side redirect essentially, the client isn't given the chance to reconnect under SSL). But I guess tapestry could throw an exception if someone tries to access a page inse

Re: AW: https

2006-04-05 Thread Fernando Padilla
on, or am I wrong? Or does T4 always include the port number in the links? -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED] Sent: 05 April 2006 16:32 To: Tapestry users Subject: Re: AW: https Just a warning. The 'scheme' parameter under 4.0 doesn'

Re: AW: AW: https

2006-04-05 Thread Fernando Padilla
Actually the more I think abou this, it seemss feasible to implement this feature in tapestry. As long as there is a default link renderer code that every link uses, and can be configurable/changeable through hivemind. - add 'secure' meta-data to the page somehow - change render cycle to th

Re: AW: https

2006-04-05 Thread Fernando Padilla
e no port then the browser automatically connects to 443 if it sees a leading https:// so that should work in production, or am I wrong? Or does T4 always include the port number in the links? -Original Message----- From: Fernando Padilla [mailto:[EMAIL PROTECTED] Sent: 05 April 2006 16:32 To:

Re: 4.0 -> 4.0.1 Public method signature changed in an incompatible fashion Why?

2006-04-06 Thread Fernando Padilla
Sorry. I feel bad for the original poster, I'm the one that submitted the patch thinking that FormSupport was an internal class only used by Form, so I guess I'm the root cause for David's bad day at work.. I know how I hate it when the rug gets pulled out from under me without expecting it.

Re: 4.0 -> 4.0.1 Public method signature changed in an incompatible fashion Why?

2006-04-06 Thread Fernando Padilla
If the buggy interface is introduced and fixed within a release cycle - rip the band aid off really fast. Appreciate the work for a patch. Hopefully this will ease a vote for release. [and if my access comes in time I'll be glad to step in on it to ease 4.1 resources] Brian Fernando Padilla

Re: 4.0 -> 4.0.1 Public method signature changed in an incompatible fashion Why?

2006-04-07 Thread Fernando Padilla
wait, did I mess up my patch again? I'm confused. oh well. Leonardo Quijano Vincenzi wrote: lol , and it's ironic that I now need a signature change in AbstractFormComponent. A protected to public method. Weird huh! - To uns

Re: External assets in seperate file?

2006-04-07 Thread Fernando Padilla
Yes, please post this up on the wiki, it is definitely useful. I wonder if there is some way to add this to the core tapestry. Also, it might be clearer to add application or library wide assets, so we just modify the .application or .library rather than the hivemodule.xml then we can si

Re: preventing multiple form submittions

2006-04-12 Thread Fernando Padilla
once you get this working, could you submit a patch against the main form component to support this through a simple parameter? Dan Adams wrote: Okay, I've got the common problem where I want to prevent some users from double clicking submit buttons and double submitting a form. I've got the fo

Re: preventing multiple form submittions

2006-04-12 Thread Fernando Padilla
actually, sorry to bother you, but did you work out something this simple to support a "submit on enter" for textfields? Dan Adams wrote: Okay, I've got the common problem where I want to prevent some users from double clicking submit buttons and double submitting a form. I've got the following

Re: Simple AJAX Call

2006-04-24 Thread Fernando Padilla
There might be better ways, but one way that does work without too much trouble is Client-Side-Includes: http://del.icio.us/fern/csi I created a page that just returned the desired html fragment, then I pointed my CSI call to that url and had it replace a div in the calling page... of cours

unique urls for assets (to make them permanently cacheable) ??

2006-04-28 Thread Fernando Padilla
So. We have this image we use for the navbar. We changed the navbar image, but because we had set the expires to be a day, the change wasn't apparent to people for a day after we deployed. I proposed to our team to leverage the tapestry's Asset system to have normal context assets add a nonce

Re: T4 beta 9: Validation skipped on blank TextField?

2005-10-20 Thread Fernando Padilla
did you have your costum validator support validating null values? Validator.getAcceptsNull() http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/form/validator/Validator.html radone wrote: > You should try to add a "required" validator like this: > > > > > -RB- > > Josep

Re: Memory / Caching Issues

2005-10-26 Thread Fernando Padilla
A few weeks ago we had a memory leak that we thought was caused by Tapestry, but was in fact caused by us confusing Tapestry. We had gone and overriden the getLocale() method in the BasePage to return a "new Locale( "en_US" )" which totally confused Tapestry's PagePool, so that it never recognized

Re: Memory / Caching Issues

2005-10-28 Thread Fernando Padilla
Howard Lewis Ship wrote: > On 10/26/05, Fernando Padilla <[EMAIL PROTECTED]> wrote: > >>A few weeks ago we had a memory leak that we thought was caused by >>Tapestry, but was in fact caused by us confusing Tapestry. We had gone >>and overriden the getLocale() meth

Re: [OT] HLS in San Francisco/Palo Alto Nov 6th-12th

2005-11-02 Thread Fernando Padilla
It would be great to shake hands with you guys, just say when and where. Richard Clark wrote: > That sounds like a fine idea! Count me in. > > ...R > > On Nov 2, 2005, at 12:44, Howard Lewis Ship wrote: > >> I'll be staying in Palo Alto, CA next week for a client engagement. >> Perhaps we coul

Re: Is there any way to display a Date as text in the format I wondering?

2005-12-17 Thread Fernando Padilla
One way would be to just use what Paul already pointed out. You define one dateFormat property, and you use that same dateFormat property across all date Inserts. But maybe you meant change the format without having to explicitly set it. In that case, you'll probably have to create your own

Re: https again and still absolutely clueless :(

2006-01-26 Thread Fernando Padilla
Though not very clean I use a javax.servlet.Filter that locks down parts of the site by redirecting to/fro http/https. So if a url coming in points to any of those pages I make sure that it's request.isSecure, else I get the full url and replace the scheme( http,https ) and port( 80,443 ), and

library components without jwc file

2006-02-06 Thread Fernando Padilla
So.. I can do everything in a component without a jwc file. I've been trying to google around, and I can't figure out how to add a component to a library without a jwc file... how are we supposed to do so again? - To unsubscr

Re: anchors with @Shell

2006-02-09 Thread Fernando Padilla
I couldn't read through the threads ( didn't seem like the right solution anyhow ). This is what our html developer came up with, a nice javascript hack: (right off of our site) He simply created a javascript function that is called that does the named-anchor dereference, instead of letting t

Re: anchors with @Shell

2006-02-10 Thread Fernando Padilla
to a component library without refering to a jwc. Fernando Padilla wrote: I couldn't read through the threads ( didn't seem like the right solution anyhow ). This is what our html developer came up with, a nice javascript hack: (right off of our site) He simply created a javascript fun

Re: anchors with @Shell

2006-02-10 Thread Fernando Padilla
alright, again. version 2 I reviewd the documentation on annotations and simplified the .jwc I still want to know how to add a component to a library without a jwc file? Fernando Padilla wrote: Alright, I had reason to stay up anyhow. Attached is a version of a NameLink component that takes

Re: [OT] Tool to simplify HTML

2005-06-30 Thread Fernando Padilla
Look at iframe: http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5 http://www.htmlcodetutorial.com/frames/_IFRAME.html But then the HTML fragment has to be a different URL. Or you can try using some sort of javascript to squirt the HTML into the iframe: http://www.codingforums.com/ar

DirectLink vs. ExternalLink

2005-07-20 Thread Fernando Padilla
I have lately been wondering, what's the real difference between DirectLink and ExternalLink. It looks like I can boil it down to just what listener method they call. - PageLink goes to a page, without using a listener method. - DirectLink goes to a user defined listener method. - ExternalLink go

forcing No Server Session

2005-07-20 Thread Fernando Padilla
We are developing a high load application. One of our requirements is to have no server side sessions. As the documentation says, Tapestry tries it's best to not start a HttpSession until it has to. But I need a tighter guarantee, that it does not start a HttpSession ever. For example I would p

Re: forcing No Server Session

2005-07-20 Thread Fernando Padilla
PM > Subject: RE: forcing No Server Session > > >> >> How about you just set up a visit object that throws an error in its >> constructor? >> >> --- Pat >> >>> -Original Message- >>> From: Fernando Padilla [mailto:[EMAIL PROTECT

Re: XTiles supprt for tapestry 4.0

2005-07-26 Thread Fernando Padilla
who is the maintainer of XTiles? Could they just put it up on xtiles homepage, as an official port. seloha . wrote: > I have tried several times to send an attached zip file of 16kB > containing the modified XTiles source code but delivery fails. Is there > a restriction for sending attachments t

TimeZone

2005-07-27 Thread Fernando Padilla
I was wondering about Tapestry's support for TimeZone. Though I haven't used it, I hear that it has good support for Locale, but how about TimeZone?? My application has a strict no server session policy; Is the Tapestry Locale/TimeZone support consistent with that? yes we're using Tap 4. -

Re: Tapestry fails performance testing. HELP!

2005-08-01 Thread Fernando Padilla
Yes we're interested. We're about to start QA/Load/Performance phase, so any gotchas you learn would be great. Though, it sounds like it's probably application specific, if there was anything wrong with Tapestry, please let us know. :) Robert Cole wrote: > Thanks again Pat. Tomcat's initial serv

ExternalLink to HTTPS

2005-08-05 Thread Fernando Padilla
Hey. So I was wondering if there was an easy way to point an ExternalLink to a different protocol. We want to have most of the site be in HTTP, except the credit card entry page, that should be HTTPS. options? ideas? discussion? --

Re: 4.0: HTTP / HTTPS Protocol Switching

2005-08-10 Thread Fernando Padilla
wow. I asked about this just a few days ago. But I don't quite understand the last mile. Once Tapestry is patched, what do I have to do in my webapp to turn this on for my credit card entry page.. We have to override all Engine Services? ps - I am currently looking into using urlrewrite to do

Re: Choosing components at runtime

2005-08-15 Thread Fernando Padilla
This sounds like an if statement. The issue with tapestry is not the act of choosing what component to render, that's pretty easy, but it's the defining/constructing/initializing/binding part. I don't know how to do all of that at runtime, and you probably shouldn't because of page construc

Collection or Array datasqueezers

2005-08-24 Thread Fernando Padilla
In Tap4, are there no default datasqueezers for Collections or at least Arrays of various types? It seems to be defaulting to the SerializableSqueezer for a simple String[]. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: Questions about Components and StyleSheets

2005-08-26 Thread Fernando Padilla
Could someone with more time and hunger just spend a week to duplicate and adapt the IScript support for stylesheets? It's a minor oversight to not have done it from the beginning, but I think it's time to bring this kind of support into the core Tapestry. It seems possible, or am I missing somet

Re: Performance problem : simple tapestry page takes long time to show up

2005-09-04 Thread Fernando Padilla
So I suppose HTML page weight isn't an issue? If tapestry behaves just fine on a local network then it's probably not Tapestry's fault, look at the network and tomcat. I'll also mention/remind everyone to look into turning on the HTTP/1.1 Compression (very easy for tomcat). It's a win-win sort o