RE: How do you use Tapestry?

2006-02-16 Thread Patrick Casey
I have a .application file. Personally this strikes me as one of those behaviors which seem newbie friendly (see, you can start it up without having to make a .application file!) but really aren't (the documentation keeps talking about the .application file, but I don't seem to *have* one!

RE: Optimization Questions

2006-02-15 Thread Patrick Casey
Did you try running the thing under a profiler? I tend to use JProfiler here and I'm quite happy with it. The last time I did a serious performance attach on a Tapestry 3.0.3 app, by far the biggest performance bottleneck was the demon OGNL. Howard and I went round and round on t

RE: [OT] Oracle Performance Issue

2006-02-10 Thread Patrick Casey
'2') > AND (PTI.CMA_CUSTOMER_NUMBER IS NULL >OR NOT PTI.CMA_CUSTOMER_NUMBER = 1) > AND PTI.PARTY_TYPE_ID = ('14') > AND EXISTS (SELECT 1 > FROM PARTY_CLASSIF PC > WHERE

RE: [OT] Oracle Performance Issue

2006-02-09 Thread Patrick Casey
Just how many tables are you joining in these tables here? When I see phrases like "highly normalized data model", my "danger will robinson" alarm goes off. If you overnormalize, your database is going to kill itself joining tables for you. Sometimes you just have to denormalize to make pe

RE: [NOTICE] TapestryForums Spamming

2006-02-08 Thread Patrick Casey
If it really bugs you (which it sounds like it does), you could always ask them to stop, neh? As the guy behind Tapestry, a request from you would carry a certain amount of Moral Authority if nothing else. If that fails, you could just ban their IP from the mailing lists :). --- P

RE: OT - sending mails ?

2006-02-08 Thread Patrick Casey
I don't know if Velocity includes a mailer or not (I have some old mail generation home-brew code I still use), but I've been using apache's commons email package as a MDU and been quite happy with it. http://jakarta.apache.org/commons/email/ --- Pat > -Original Message-

RE: [OT] was RE: ***Forum criminals labor uniun member*** let it be

2006-02-03 Thread Patrick Casey
Well just think of all the bandwidth we've sucked up debating the merit's of his OTness; far more than his original question and answers used :). --- Pat > -Original Message- > From: Mark Stang [mailto:[EMAIL PROTECTED] > Sent: Friday, February 03, 2006 9:16 AM > To: Tape

RE: ***Forum criminals labor uniun member*** let it be

2006-02-03 Thread Patrick Casey
I'm with Ron on this one. I don't mind the occasional OT post; I've been guilty of using this forum for non tapestry stuff myself and I don't see anything intrinsically wrong with it. Ultimately it's a community of like minded people, and folks are occasionally going to stray into OT land.

RE: anyone buy Kent's Tapestry Book that has PDF version?

2006-02-02 Thread Patrick Casey
Is anything ever easier to read over PDF :)? --- Pat > -Original Message- > From: FRANK ROCCO [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 11:57 AM > To: Tapestry users > Subject: anyone buy Kent's Tapestry Book that has PDF version? > > Hello, > > I

RE: Re: Spindle for Tapesty 4?

2006-02-01 Thread Patrick Casey
I'm going to sound really dumb here (especially because I'm a big spindle user), but: What does Spindle do apart from editing and context checking? --- Pat PS So I guess you could put me in the "only editing" group, although now I wonder if I've been missing some

RE: tapestry not really component based?

2006-01-30 Thread Patrick Casey
That was my understanding as well, although the last time I got into a discussion about the topic with the Tacos crew there was a degree of "wait and see ... we may be more clever than you think". --- Pat > -Original Message- > From: Leonardo Quijano Vincenzi [mailto:[EMA

RE: Authentication module in Tapestry

2006-01-29 Thread Patrick Casey
Did you try just implementing PageValidateListener? For simple stuff that's going to be a lot easier than hacking BaseEngine. --- Pat > -Original Message- > From: Tomcy John [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 29, 2006 7:47 PM > To: Tapestry users > Subject:

RE: Images from DB

2006-01-29 Thread Patrick Casey
This will probably help (3.0.3): 1: The Service: package services; import java.io.IOException; import javax.servlet.ServletException; import org.apache.tapestry.IComponent; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.engine.AbstractService; import org.

RE: tapestry not really component based?

2006-01-27 Thread Patrick Casey
the whole problem with getting access to what's > rendered inside a For component. But that's not something I've > needed to deal with very often, so I'm not going to lose sleep over it. > > --Chris > > > > > > > > > > > > > > > > "Patrick Casey&q

RE: instantiating components directly

2006-01-27 Thread Patrick Casey
That's rather akin to the claim that if I have 120 cars in my garage, my BMW is actually a transformer, on the grounds that I could decide to drive a Buik instead, isn't it? The idea that I have to know a-priori every possible component I might, potentially, need to render, is the hangup, not to m

RE: Eclipse Autmatic Update and Spindle

2006-01-27 Thread Patrick Casey
nd line using the -clean flag. > > Auto update will now work. > > If you do need the groovy support you'll be stuck until I fix my end > of the problem (this evening). > > Geoff > On 1/27/06, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > > > >

Eclipse Autmatic Update and Spindle

2006-01-27 Thread Patrick Casey
Hi Folks, I have a suspicion this may be related to the fact that I'm still on Tapestry 3.0.3, but for the last week or so, Eclipse auto-update has been trying to update my copy of Spindle. When it does though, I get this error message: Groovestry Support Add-in f

RE: tapestry not really component based?

2006-01-27 Thread Patrick Casey
I don't necessarily buy the slippery slope argument here. One might as well argue "well if we put listener functions in the page class that fire when users click links or buttons, the before you know it users are going to insist on the full swing set, so we shouldn't do listener functions"

RE: https again and still absolutely clueless :(

2006-01-26 Thread Patrick Casey
> A nice side benefit is you get to use Apache's native SSL > implementation which is orders of magnitude faster then the terribly > slow Java SSL implementation. My understanding is that this hasn't been true since the 1.4 JVM e.g. java's ssl package has gotten a *lot* faster and now come

RE: tapestry not really component based?

2006-01-26 Thread Patrick Casey
I'd be more comfortable about that approach if it weren't for the fact that every time somebody on this list seems to use portlets a new bug report gets up being generated for something or another :(. The portlet support smells like it needs another revision or two to knock the rough edges

RE: tapestry not really component based?

2006-01-26 Thread Patrick Casey
I agree with Richard; the OP's problem isn't that Tapestry doesn't support or use components, it's that he can't dynamically alter the component tree. It's rather like claiming that my laptop's CPU doesn't use transistors because I can't change them after it comes out of the FAB plant :).

RE: session=T

2006-01-25 Thread Patrick Casey
The stateful flag is still there in 3.0, isn't it? So you setting stateful="false" on your link should solve the problem regardless of version. --- Pat > -Original Message- > From: Mark Stang [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 25, 2006 4:32 PM > To: Tape

RE: Tap 3 getPage problem.

2006-01-25 Thread Patrick Casey
Did you try (for debugging if nothing else): IPage page = cycle.getPage("foo"); if (page != null) cycle.activate(page); else Log.error("Strange things are afoot at the circle K"); --- Pat > -Original Message- > From

RE: Wiring up an Export service

2006-01-25 Thread Patrick Casey
ct: Re: Wiring up an Export service > > Are these Tapestry 3 or 4? They seems to be Tapestry 3. > > > On 1/25/06, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > > > > Steve, > > > > Probably the easiest way to invoke a service i

RE: Wiring up an Export service

2006-01-25 Thread Patrick Casey
Steve, Probably the easiest way to invoke a service is to link directly to it rather than use a directlink, have the page listener fire, and then invoke the service. So what I'd recommend is that you see if you can use the existing ServiceLink component to invoke your service or,

RE: [OT] 3.163 + 0.001 = ??? (found solution, i think)

2006-01-21 Thread Patrick Casey
The problem is where you're setting the bigdecimal. BigDecimal a = new BigDecimal(3.163) sets the bigdecimal to the *double* 3.163. The double is the implied type of any constant set in java if there isn't enough information available to type it explicitely. To set the B

RE: [OT] 3.163 + 0.001 = ???

2006-01-21 Thread Patrick Casey
Huh? A double is a double is a double, regardless of the processor's register size, neh? Isn't that one of the guarantees of the JVM? --- Pat > -Original Message- > From: Sergei Dubov [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 21, 2006 11:12 AM > To: Tapestry use

RE: [OT] 3.163 + 0.001 = ???

2006-01-21 Thread Patrick Casey
Double is java's implementation of EEE Long Real: 64 bits It encodes things as: 1 bit for the sign, 11 bits for the exponent 52 bits for the mantissa What that means is that any number it encodes is actually a small math problem that is "solved"

RE: Session time out

2006-01-20 Thread Patrick Casey
Which web.xml are you setting? It's a global tomcat setting, so you need to add that line to the web.xml in: /conf/web.xml --- Pat > -Original Message- > From: Vincent [mailto:[EMAIL PROTECTED] > Sent: Friday, January 20, 2006 9:54 PM > To: Tapestry users > Subje

RE: Tapestry not ranked high?

2006-01-20 Thread Patrick Casey
And here I thought tapestry was a framework written in the java language. --- Pat > -Original Message- > From: Warner Onstine [mailto:[EMAIL PROTECTED] > Sent: Friday, January 20, 2006 3:02 PM > To: Tapestry users > Subject: Re: Tapestry not ranked high? > > I'm confused

PDF Output of Tapestry Pages

2006-01-20 Thread Patrick Casey
I've got a rather bizarre requirement at the moment (at least in my mind) where people want to be able to get a report of what their screen looked like. In other words if you fill in an order form, the administrator doesn't want just any old report describing your order, he wants a r

RE: sorting table columns in hibernate

2006-01-20 Thread Patrick Casey
I would get back "could not resolve > property: City of com.domain.City". The way it is selecting it is > basically by using > > session.createCriteria(City.class).addOrder(Order.asc("City.state.name")). > list(); > > On Fri, 2006-01-20 at 08:42

RE: sorting table columns in hibernate

2006-01-20 Thread Patrick Casey
city.state.name Or, to use an actual example from an app of mine: person.address.state --- Pat > -Original Message- > From: Dan Adams [mailto:[EMAIL PROTECTED] > Sent: Friday, January 20, 2006 8:38 AM > To: Tapestry users > Subject: sorting table colu

RE: Something to do a menu ?

2006-01-19 Thread Patrick Casey
I'd love to see some of the better components out of the Tassel or Tacos library find their way into the base Tapestry distribution. I think it's complicated enough for new users to have to add the contrib library to their projects without having to ask them to go off and google their way

RE: DatePicker and SSL in IE

2006-01-18 Thread Patrick Casey
Isn't it in the jar? So unless you get the source I'm not sure you can change it conveniently. Even if you pull the .js out of the jar (it's plaintext) the bytecode for the .class will still load the .js out of the jar won't it? --- Pat > -Original Message- > From: Chris

RE: ActionLink and DirectLink

2006-01-18 Thread Patrick Casey
, stuffing an object id into a DirectLink > > or storing an object id in a persistent page property and then > > recreating the object in pageBeginRender. Can't Tapestry handle this > > conversion instead? I'm thinking of something like the "converter" > > p

RE: ActionLink and DirectLink

2006-01-18 Thread Patrick Casey
A fairly standard approach is to not send the object out on the directlink, but instead send out some sort of uniquely identifiable key and the pull the object back out of persistent storage as the first operation in your direct link. If you're talking about DB objects, then putti

RE: First page display slowdown in v 4.0

2006-01-18 Thread Patrick Casey
Disabling hot code replacement doesn't mean your web app reloads instantly, it means it *never reloads*. The classloader loads the .class file as it existed the first time a class was references and hangs onto that version of the .class until the JVM cycles. That's why your annotation chan

RE: Exception Page from Tapestry

2006-01-18 Thread Patrick Casey
Did this change in 4.0? In 3.0.3 you didn't have to get this fancy, you could just change your .application file. This overrides the default renders for StaleLink, StaleSession, and Generic Exceptions. It's then up to you to catch the error and do whatever you want in

RE: First page display slowdown in v 4.0

2006-01-16 Thread Patrick Casey
r something like a one-second reload of just the one file that changed. > > > Patrick Casey wrote: > > > Did you set reloadable="true" in your web.xml? > > > > --- Pat > > > > > > > >>-Original Message- > >>

RE: First page display slowdown in v 4.0

2006-01-16 Thread Patrick Casey
Did you set reloadable="true" in your web.xml? --- Pat > -Original Message- > From: Bryan Lewis [mailto:[EMAIL PROTECTED] > Sent: Monday, January 16, 2006 5:29 PM > To: Tapestry users > Subject: Re: First page display slowdown in v 4.0 > > I must be doing something wrong

RE: First page display slowdown in v 4.0

2006-01-13 Thread Patrick Casey
There's a lot of behind the scenes work going on the first time a page is rendered. Basically Tapestry is creating a kind of meta-representation of your page, enhancing your page class, and doing all sorts of behind the scenes grinding. The downside is that, yah, first page render is slow.

OT: SSL Version Level Support

2006-01-13 Thread Patrick Casey
Sorry for the OTness, but I'm in a wee bit of a bind here so I was hoping somebody here would be able to help me out. I have a web application that used tapestry inside of tomcat to host certain protected HTTPS pages. I properly set up a certificate, the security cons

RE: Re: Tapestry 4.0 is NOT Java 1.3 compliant

2006-01-13 Thread Patrick Casey
Agree; if you're doing work at a customer site, you use what the customer has, and lots of folks are still on JDK 1.3. I wouldn't dream of using it for any new stand-alone development mind you, but if it's gotta run on a customer's hardware inside their managed box, it's got to use whateve

RE: instantiating components directly

2006-01-12 Thread Patrick Casey
I agree with you gaz; I'd *like* to be able to do things that way myself. It's more natural for my programming background since its similar to the way most gui frameworks I've worked with operate e.g. you want a new button? You add a new button :). You don't have to declaratively thing ahe

RE: Deploying Tap4 components - newbie question

2006-01-12 Thread Patrick Casey
I take the opposite approach, not out of any deeply held conviction, but just habit I guess. All my images go in /img, all my css goes in /css, etc. It means that a component might not be in its own self contained directory, but it also means that I don't have to look all over the map to f

RE: instantiating components directly

2006-01-12 Thread Patrick Casey
I think what he's getting at is this: The way tapestry works today, a page is a static tree of components. Based on various conditional statements, not every component in the tree gets built for a specific page render, but they actual set of components is fixed at design time.

RE: Best Practice (Hibernate, Spring, Tapestry)

2006-01-10 Thread Patrick Casey
I'd generally be inclined to go with Option #2. Loading an object in session A, then reattaching it to session B (with, for example, Session.lock()) is a bit of a code smell with hibernate, especially if there's any chance the object might have been changed by another thread between initia

RE: Why I like the rewind cycle

2006-01-09 Thread Patrick Casey
Wouldn't Howard's proposed approach of serializing and compressing all relevant page data in the outbound stream and then echoing it back in the POST still let you do things like loops, but without having to muck around with the rewind cycle? I don't see why his approach would prevent you

RE: Tapestry 4.0 Release Notice on TheServerSide

2006-01-09 Thread Patrick Casey
I have to agree with Lennart here; I felt a wee bit uncomfortable reading Howard's mail. I mean really, we're supposed to be a user mailing list here, not the borg collective (yes, I made a Star Trek reference, so sue me :). I don't have a problem with saying "hey, tapestry got me

RE: problem with HibernateSqueezer

2006-01-09 Thread Patrick Casey
You could set proxy=false in your hibernate mapping to prevent this kind of class enhancement, but you'd take a serious performance hit. Without seeing the source for the hibernate squeezer I can't offer a solution on that end. --- Pat > -Original Message- > From: Ted Ste

RE: css background-image

2006-01-09 Thread Patrick Casey
Do you consider adding a .css page via the style parameter of the shell component to be insufficiently elegant? It's the usual approach. --- Pat > -Original Message- > From: Stephane Decleire [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 6:42 AM > To: tapestr

RE: passing parameters between pages

2006-01-03 Thread Patrick Casey
How are you getting into the listener of page A? Usually a listener method gets called in response to a user submission e.g. Page Zed is up. User pushes button/link. ListenerZed fires. You push parameters into page A. Page A renders. User pu

RE: How to clear the visit object(Tapestry 3.03)

2006-01-03 Thread Patrick Casey
No, those settings affect the tapestry cache and the reset service, respectively. To turn of shutdown session serialization and persistence in tomcat set: saveOnRestart=false In your session manager configuration. --- Pat > -Original Message- > From: Vincent [ma

RE: Application hangs / website stalls

2006-01-03 Thread Patrick Casey
You sure you're not leaking jdbc connections? Try fiddling with the max_connections parameter in you're my.cnf file and see if that changes the entimology of the hang. --- Pat > -Original Message- > From: tmarx [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 03, 2006 2

RE: dealing with optimizing ASOs

2006-01-03 Thread Patrick Casey
on-per-view and I don't want to have to change my > services to have to know about their being serialized. Besides, doesn't > serializing the service kind of defeat the point of not serializing the > object the service is loading? > > On Tue, 2006-01-03 at 11:06 -

RE: dealing with optimizing ASOs

2006-01-03 Thread Patrick Casey
Can't you just get a new session e.g. Session s = getSession(); If (s == null) s = MySessionFactory.openSession(); Object MyReloadedObject = s.load(MyClass.class, MyId); --- Pat > -Original Message- > From: Dan Adams [mailto:[EMAIL

RE: changing an external link to use https

2006-01-03 Thread Patrick Casey
Can't you use your web server's redirect function to take care of this? On tomcat, for example, you specify: Corinna /foo/bar/* CONFIDENTIAL And then any url that starts with /foo/bar au

RE: website hosting

2006-01-02 Thread Patrick Casey
> In the case I described, the only restrictions is that you can not load > new modules in the kernel. Not a big deal IMO... > You can install whatever packages you need (on a CentOS aka RHEL base) > in a 15Gb disk. > Good enough for 99% of people no? > -jec Quite possibly. My concern is just t

RE: website hosting

2006-01-02 Thread Patrick Casey
Yah, but then you're time slicing a fragment of a box, often with restrictions on what you can do with it e.g. you get the 1.4.2 JVM because that's what the server has on it, you get the standard package list and can't install more, etc. A virtual server may well work for a lot of

RE: website hosting

2006-01-02 Thread Patrick Casey
Well, a lot of services will just flat out lease you a box, then it's up to you to use whatever you want on them. Usually for $100 per month or so, you can get a box with a static IP address and an internet connection. You can, of course, pay a lot more if you require, say hot hourly backu

RE: How to add logic for all components that render

2005-12-30 Thread Patrick Casey
Couldn't you just override the component's renderBody method? And then do something like: Public void renderBody(IRequestCycle cycle) { If (foo) Super.renderBody(cycle); } --- Pat > -Original Message- > From: John Smith [mailto:[EM

RE: CRUD

2005-12-29 Thread Patrick Casey
Create, Read, Update, Delete The four atomic actions of most simple database applications. --- Pat > -Original Message- > From: Thom Hehl [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 8:13 AM > To: tapestry-user@jakarta.apache.org > Subject: CRUD

RE: Tapoestry 3 -> Tapestry 4 upgrade question

2005-12-22 Thread Patrick Casey
I saw that error a lot in my existing 3.0 application. In my case I eventually tracked it down to a low level socket write error (my server was reporting that the browser shut the socket before it finished sending the full stream). I'm sure there's another underlying cause e.g. the browser

RE: [DISCUSS] Moving beyond the "rewind cycle" in Tapestry 4.1

2005-12-20 Thread Patrick Casey
Eeek! Maybe I'm weird on this one, but I'd much rather have a small number of big releases than a continuous upgrade cycle. Every time I change a core library, it's a regression testing nightmare. Even if nothing at all breaks, I still have to go back and ensure that fact. I can d

RE: [DISCUSS] JDK 1.5 for Tapestry 4.1?

2005-12-20 Thread Patrick Casey
I think you may have misread what Howard proposed. 4.0 is and will be 1.4 compatible. He's speculating about 4.1. --- Pat > -Original Message- > From: DarĂ­o Vasconcelos [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 20, 2005 1:59 PM > To: Tapestry u

RE: [DISCUSS] JDK 1.5 for Tapestry 4.1?

2005-12-20 Thread Patrick Casey
Personally, +1 for 1.5. I'm already targeting 1.5 for everything I'm working on now, so I've no need for 1.4.2 compatibilty. --- Pat > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 20, 2005 1:05 PM > To: Tapestry developm

RE: Slightly OT - Hibernate Lazy Loading with Spring and Tapestry

2005-12-19 Thread Patrick Casey
Maybe he's using mySQL with myISAM tables? Rollback is a NOOP there... > -Original Message- > From: Paul Cantrell [mailto:[EMAIL PROTECTED] > Sent: Monday, December 19, 2005 8:27 AM > To: Tapestry users > Subject: Re: Slightly OT - Hibernate Lazy Loading with Spring and Tapestry >

RE: Preventing URL hacking in tapestry 3.0.2

2005-12-19 Thread Patrick Casey
I have some unpackaged code that support either URL signing (to throw errors if the URL has been hacked), or URL encryption (to flat out encrypt the entire URL). It's not in a nice friendly jar or anything though, but if you want to work with it, let me know and I'll email you the code. I

RE: disable an element in a propertyselection.

2005-12-17 Thread Patrick Casey
Does the html spec even allow you to selectively disable one option in an optiongroup? My copy of the spec seems to imply that its supposed to inherit the disabled property from its containing rather than each havning its own private disabled flag. Note the "unavailable in th

RE: issue about a attribute "readonly" of component

2005-12-16 Thread Patrick Casey
Did you try readonly="true"? --- Pat > -Original Message- > From: Ryan Pan [mailto:[EMAIL PROTECTED] > Sent: Friday, December 16, 2005 11:04 PM > To: tapestry-user@jakarta.apache.org > Subject: issue about a attribute "readonly" of component > > Hi all, > Is ther

RE: Learning Tapestry

2005-12-16 Thread Patrick Casey
Plus, with few exceptions, you almost never get called a &^&^&ing ignorant newb here. I *hate* the Hibernate forums. --- Pat > -Original Message- > From: Chris Chiappone [mailto:[EMAIL PROTECTED] > Sent: Friday, December 16, 2005 1:55 PM > To: Tapestry users; Konstantin I

RE: Learning Tapestry

2005-12-16 Thread Patrick Casey
One word of advice: The first few days with Tapestry are going to be frustrating :). Plan on pulling your hair out a little, but don't worry it does all start to come together after a bit. In other words, if you struggle a bit early on, don't give up. --- Pat > -Orig

RE: Learning Tapestry

2005-12-16 Thread Patrick Casey
Or at least take it to private emails. The rest of us don't need to hear the two of you going at it :(. --- Pat > -Original Message- > From: Eric Schneider [mailto:[EMAIL PROTECTED] > Sent: Friday, December 16, 2005 11:19 AM > To: Tapestry users; Konstantin Ignatyev > Sub

RE: Learning Tapestry

2005-12-16 Thread Patrick Casey
> -Original Message- > From: Cosmin Bucur [mailto:[EMAIL PROTECTED] > Sent: Friday, December 16, 2005 9:32 AM > To: Tapestry users > Subject: Re: Learning Tapestry > > On 12/16/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > > Wh

RE: Learning Tapestry

2005-12-16 Thread Patrick Casey
What's wrong with something being eclipse oriented? I understand there are folks out there who don't use it, but it it's got to be by far the planet's most common java IDE. A tutorial sufficiently detailed for a beginner is going to have to give instructions about some IDE stuff too, so Ec

RE: 3.0.3: Double-checked locking on enhancement

2005-12-14 Thread Patrick Casey
Sure looks like a potential threading problem. Beyond that, I can't say much unfortunately as I, like most everyone else on the planet, used to assume Double Check locks were thread safe. --- Pat PS Now they tell me x++ isn't thread safe either and I need to use AtomicInt

RE: How to include Javascript with correct absolute path?

2005-12-14 Thread Patrick Casey
Did you try the swiss army knife of paths the single dot :)? e.g. src = "./js/dojo/dojo.js" --- Pat > -Original Message- > From: Paul Cantrell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 14, 2005 11:19 AM > To: Tapestry users > Subject: How to

RE: TextField component issue.

2005-12-14 Thread Patrick Casey
User a ValidField instead of a TextField. TextFields only work with string data types, while ValidFields use the validator to do data type conversion between the displayed string and the appropriate internal data type. --- Pat > -Original Message- > From: gcormier [mailt

RE: Cycle not activating pages/callbacks

2005-12-13 Thread Patrick Casey
What's the point of the callback then if you have to persist the callback yourself anyway? --- Pat > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman > Sent: Tuesday, December 13, 2005 3:51 PM > To: tapestry-user@jakarta.apache.org > Sub

RE: Client-side validated uploads

2005-12-13 Thread Patrick Casey
Are you sure it's hard coded? Isn't the max upload size set in the extension point? --- Pat > -Original Message- > From: Ben Dotte [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 10:32 AM > To: Tapestry users > Subject: RE: Client-sid

RE: Ajax in tapestry

2005-12-13 Thread Patrick Casey
In the case of a form, the quick answer is: probably. Tapestry doesn't really maintain a copy of the form on the server and then cross reference when you submit. What it does is *rebuild* the form on the server on submission and make sure that rebuilt form has the same number of widgets as

RE: Further simplifying Tapestry (was: tapestry to JSF conversion)

2005-12-12 Thread Patrick Casey
Further simplifying Tapestry (was: tapestry to JSF > conversion) > > To be honest, the wizards in Spindle are the part I like building the > least. The builder is cool, the editors are neat, the wizards are > drudgery. > > Geoff > > On 12/12/05, Patrick Casey <[EMAI

RE: Further simplifying Tapestry (was: tapestry to JSF conversion)

2005-12-12 Thread Patrick Casey
I'd love to see some sort of form generation wizard that was integrated with either hibernate or just a simple POJO. e.g. "Build me a form to display an example of ." And then have the wizard introspect the class, determine the fields and types, and then create w

RE: Does Tacos NOT work with Konqueror?

2005-12-12 Thread Patrick Casey
I think your question contains within it the solution to your problem :). Seriously, it's just not practical, even for most commercial sites, to target more than IE/Firefox and maybe Safari. If Tacos is the only component that doesn't work right on Konqueror, I'd be really surprised (happy

RE: tapestry to JSF conversion

2005-12-12 Thread Patrick Casey
> After Tapestry 4 is final, the next project needs to be to create a > comprehensive developers toolset IMO. It's the wizards and autopromts that > get the beginners roped in. Spindle would seem to make a logical place to > start. > > John Agree about 200%; I'd dearly love for users to

RE: tapestry to JSF conversion

2005-12-12 Thread Patrick Casey
I don't find it as clean as you do for the simple reason that it's yet one more moving part I have to deploy and test. It's yet one more thing a potential client could forget about, and it's yet one more thing I have to educate my support folks on. "Ok, so, lets learn a little ab

RE: tapestry to JSF conversion

2005-12-12 Thread Patrick Casey
I do find as a general rule that, even if I'm in control of the client and the server, I still like having a dynamic scripting language embedded in my applications. It lets me, tech support, or the customer change behaviors without me having to do a recompile which makes my life like 10

RE: Very odd problem

2005-12-09 Thread Patrick Casey
The home page doesn't have the login logic on it, does it? Are you persisting something into the session on login that writes the value out? Likewise remember that the default value only gets set once, so if you change it, it doesn't change back every time the component go

4.0 Question ... Servlets and Cache

2005-12-09 Thread Patrick Casey
I seem to recall reading something about this in one of Howard's blog entries, but when I looked back I couldn't find anything so I thought I'd ask about it here. Lets say we have a component that serves up some static content (like, say 4 .gif files that go on button

RE: Tapestry + lucene + hibernate

2005-12-09 Thread Patrick Casey
I've never tried it with hivemind, but the usual approach is to implement hibernate's listener API and then create Lucene records in the OnPostInsert, OnPostUpdate, and OnPostDelete events. It really only amount to a hundred lines of code or so total. --- Pat > -Original Mess

RE: Reject call of a page

2005-12-09 Thread Patrick Casey
One word of advice about the PageValidate code. At least in 3.0.3, you couldn't actually veto the render in the validate routine (unless I was using it wrong). Instead you had to throw a redirectexception to abort the render and send the page elsewhere. If you just did a cycle.act

RE: Tapestry runs differently on one computer than another

2005-12-09 Thread Patrick Casey
You don't have the cache disabled on the dev machine do you? If so I'd definitely look into your page initialization logic. --- Pat > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Borins > Sent: Friday, December 09, 2005 7:50 AM > To: tapestr

RE: Streaming a file

2005-12-08 Thread Patrick Casey
public void service(IEngineServiceView acrg0, IRequestCycle cycle, ResponseOutputStream response) throws ServletException, IOException { Object[] parms = this.getParameters(cycle); Clock c = new Clock(); String cssName = (Stri

RE: a issue about type binding

2005-12-08 Thread Patrick Casey
If you use a Tapestry 3.0.3 Validfield, the valuator has two purposes: 1) Validate Data 2) Perform Type Conversion The sequence of events is: If valid then return type converted object. --- Pat > -Original Message- > From: Ryan Pan [mail

RE: Tapestry, swing, and ajax

2005-12-08 Thread Patrick Casey
> > > Hmmm... yeah I thought so when I checked the release. But sometimes it > bugs me as a "version-marketing" (here we go again) approach to > numbering... I guess I'd need to see it more closely. No time now, though. Yah, because no product *we* know and love would ever stoop to someth

RE: tapestry to JSF conversion

2005-12-08 Thread Patrick Casey
05 3:16 PM > > To: Tapestry users > > Subject: Re: tapestry to JSF conversion > > > > > > you know ... to throw the discusion COMPLETLY offtopic now > > > > On 12/8/05, Cosmin Bucur <[EMAIL PROTECTED]> wrote: > > > since we're discussing ef

RE: Clinets IP

2005-12-08 Thread Patrick Casey
cycle.getRequestContext().getRequest().getRemoteAddr(); > -Original Message- > From: Istvan Zakar [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 08, 2005 12:23 PM > To: tapestry-user@jakarta.apache.org > Subject: Clinets IP > > Hello! > > My application should display a littlebit

RE: tapestry to JSF conversion

2005-12-08 Thread Patrick Casey
Honestly, I looked into it and couldn't figure out what all the fuss is about. For a little toy crud application it's nice and fast, but, hey, so's python, perl, or PHP. It just doesn't have to features I'd need to build what I consider a "real" application. One question in the ra

RE: tapestry to JSF conversion

2005-12-08 Thread Patrick Casey
Please see comments below :). > -Original Message- > From: Leonardo Quijano Vincenzi [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 08, 2005 12:01 PM > To: Tapestry users > Subject: Re: tapestry to JSF conversion > > Well actually you can download Java and buy MyEclipse for

  1   2   3   4   5   6   7   >