Re: tapastry vs struts

2006-05-01 Thread Richard Clark
On 4/25/06, Jonnalagadda, Sumithra <[EMAIL PROTECTED]> wrote: We are currently evaluating different frameworks to build our e-commerce site. I've spent the last year and a half working on a complex web application for a Fortune 100 company using Tapestry, and I believe we wouldn't have gotten a

Re: Does JS have to be in Script components?

2006-03-26 Thread Richard Clark
You can include javascript (and script tags for including .js files) in your plain html files. You don't have to use a Tapestry script component. ...Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Eclipse (with spindle 3.2.13) + Tapestry 4 + DTD problem.

2006-01-25 Thread Richard Clark
On Jan 25, 2006, at 9:44, Geoff Longman wrote: Rather than start a long debate about licenses.. anybody interested in coming over and implementing an ant task for validating Tapestry projects? Although I think it would be tough to handle the annotations at this point in time. I think there's so

Re: Tapestry Benefits

2006-01-25 Thread Richard Clark
On Jan 25, 2006, at 20:21, Alexander Varakin wrote: in Wicket that for each form control one has to create an instance of a class and bind it to html page. IMO this violates the DRY(do not repeat yourself) principle. Tapestry 3 also has some replications (.page file vs. backing Java cod

Re: Tapestry Benefits

2006-01-25 Thread Richard Clark
If you want to "sell" Tapestry to management, here are some points to consider: 1) The Java "ecosystem" is far more mature than the .Net ecosystem -- there are more experienced programmers, more tools, more libraries, etc. It's relatively easy to find a library that does what you need, es

Re: Tapestry Benefits

2006-01-23 Thread Richard Clark
On Jan 23, 2006, at 5:59, spm wrote: I guess with all the input we better just go with ASP.NET! This strikes me as a "troll" -- a statement intended merely to provoke people via annoyance. The simple fact is, your previous message asked an incredibly broad question and that's exactly the

Re: Altering persisted objects. (Hibernate problem)

2006-01-16 Thread Richard Clark
On Jan 14, 2006, at 8:41, Rick Uks wrote: Is this approach most common? What are alternatives? Since Tapestry will directly modify an object when the form is submitted, if you want to control exactly when the object is changed you have to have Tapestry work on through an intermediate copy

Re: Altering persisted objects. (Hibernate problem)

2006-01-11 Thread Richard Clark
Basically, you don't want to have the form work directly against your object. Copy out all of the data you care about into individual getters/ setters (so, for a typical address you'd have get/set address, get/ set city, etc.), and load the data from your object into these using a pageBegin

Re: problem with PropertySelection + Hibernate

2006-01-11 Thread Richard Clark
Hibernate does not guarantee the same object will be returned when you get the same record out of the database twice. You will get the same object if retrieved twice in the same session because the first object is placed into the session cache and Hibernate looks in the cache before creatin

Re: problems with sending objects to a service.

2006-01-10 Thread Richard Clark
Hi Brian, How about passing the data in the Visit? Or if it's so large that the resulting HTTPSession will be too big, keep it in a database (or some in-memory data source) and pass just the key(s) for the data from the first page to the report generator? ...Richard ---

Re: problem with HibernateSqueezer

2006-01-09 Thread Richard Clark
On Jan 9, 2006, at 10:44, Ted Steen wrote: there is a problem with the HibernateSqueezer ( http://wiki.apache.org/jakarta-tapestry/HibernateTapestrySqueezer ) sometimes Hibernate extends the persistent classes, this probably has something to do with caching.. If you're using collections, you

Re: Submit action method ignored

2006-01-09 Thread Richard Clark
On Jan 9, 2006, at 4:44, tmarx wrote: Is this a bug? The save method is not called after submitting the form: What's in your html file (and page file, if you have it)? ...R - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Long compilation of Tapestry page

2006-01-09 Thread Richard Clark
A lot of things affect the page display speed in Tapestry. If there's low free memory in Tomcat (look at the /manager/status page when Tomcat is running) or if your page uses a substantial amount of OGNL, it will show the speeds you report. Also, many developers test with caching off, which

Re: PropertyUtils.write() method

2006-01-08 Thread Richard Clark
http://jakarta.apache.org/hivemind/hivemind/apidocs/org/apache/ hivemind/util/PropertyUtils.html On Jan 8, 2006, at 19:31, NYG wrote: In page 59 of Kent Tong's "Enjoy web deveopment with Tapestry", it says the PropertyUtils is a class that comes with one of the jars used by the Tapestr

Re: Application hanging - revisited

2006-01-06 Thread Richard Clark
Are you using Commons Logging or anything that depends on it (e.g. Velocity)? It's notorious for hanging onto class loaders and thus hanging onto classes well past the end of their nominal lives. ...R On Jan 6, 2006, at 13:29, Jason Suplizio wrote: I just got it again! Before getting it I

Re: ognl ques

2006-01-06 Thread Richard Clark
That's legal. You can also omit the "!= null" as in jwcid="@If" condition="ognl:object"> Or, getting rid of the external @If and using ?: where the last part is colon, two single-quotes, and a double-quote to finish. ?: is especially nice for alternating row colors in a table: index="ognl:i

Re: [DISCUSS] JDK 1.5 for Tapestry 4.1?

2005-12-20 Thread Richard Clark
One other thought: If the programming model changes radically, it's not really a point release. Tapestry 5 could be a clearer name in that case. ...Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: [DISCUSS] JDK 1.5 for Tapestry 4.1?

2005-12-20 Thread Richard Clark
Using Java annotations for Tapestry 4 development is dramatically cleaner than doing it with page files. I (and my clients, including the Fortune 100 one you know) would be fine with moving to JDK 5. Besides, we're talking next summer/fall for 4.1, plus time to make sure it's settled in (an

Re: page flow configuration

2005-12-19 Thread Richard Clark
On Dec 19, 2005, at 14:48, Mazhar, Osman (Home Office) wrote: Is cycle.activate() the only way of going from one page to another - or can this be encapsulated in a config file - i.e. outside of the java code? Tapestry has no built-in way to set up page flow via an external file, though I

Re: OmniGroup CrashCatcher Report for OmniWeb (5.1.2 (v563.60) (10/24/05))

2005-12-14 Thread Richard Clark
It's a very nice web browser for Mac OS X. It's nice enough that folks will pay money for it. :) ...R On Dec 14, 2005, at 20:14, Geoff Longman wrote: umm, what is OmniWeb? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: OmniGroup CrashCatcher Report for OmniWeb (5.1.2 (v563.60) (10/24/05))

2005-12-14 Thread Richard Clark
On Dec 14, 2005, at 11:49, Paul Cantrell sent a crash report including: USER DETAILS trying "live examples" at tacos.sourceforge.net Interesting. I also just made OmniWeb crash by going to the Partial Component rendering demo and clicking on one of the "details" links.

Re: T4/Hivemind/Spring likes Jetty but hates Tomcat

2005-12-14 Thread Richard Clark
I found a solution, which was to strip down to just the Tapestry and Hibernate JARs, then start adding until all the dependencies were satisfied. (I'm using myEclipse, which tends to add a pile of JARs to a project.) I then hit in (in)famous Hivemind module duplication bug in JettyLaunche

T4/Hivemind/Spring likes Jetty but hates Tomcat

2005-12-13 Thread Richard Clark
Here's a puzzler for you all: I'm using the Tapestry-4 Spring integration from the Wiki (http:// wiki.apache.org/jakarta-tapestry/Tapestry4Spring) using the individual files instead of the pre-packaged JAR. This all works beautifully when running under Jetty. But when I deploy it under Tom

Re: detect user roles (somthing like )

2005-11-26 Thread Richard Clark
That's basically how I've done it in a production app. I wrote an "isAvailableForRole" method and created a Role enumeration, so the HTML looks like: ... I've started thinking how to cut this over to ACEGI as well (and how I could do this in T4...) ...Richard On Nov 26, 2005, at 18

Re: Sharing an HTTPSession Between Apps

2005-11-20 Thread Richard Clark
I've done something similar to this in Tapestry 3. Let's say you have two apps: Catalog and Checkout, and that the user is always sent to Catalog first. Catalog would then assign a "working user ID", and dump its state to the database under that ID. When it's time to go to the Checkout, use

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Richard Clark
You may want to try a small prototype using the usual Tapestry approach and user-test it. Tapestry caches page layouts in normal operation, so the submit-render cycle is very fast. "Waiting for the server to rebuild the form" may well take less time than you think. Then, if you find you st

Re: Sharing an HTTPSession Between Apps

2005-11-20 Thread Richard Clark
On Nov 17, 2005, at 16:10, evan rawson wrote: Hiya we have a quite large tapestry application we are developing and was wondering if and how we could share httpsession data between tapestry applications. I would extract the data and stuff it into a common database that is then accessed

Re: Status of OGNL 3.0?

2005-11-12 Thread Richard Clark
I suspect it's being neglected. There's a fairly awful bug in 2.6.7 (it mishandles Object.equals in such a way that it kills our major Tapestry app dead; I've had to work-around by making all my objects Comparable), and I tried to report it to the ognl-developers mailing list. But, lists.og

Re: Problem with Tapestry 4.0-beta-12?

2005-11-10 Thread Richard Clark
Perhaps the checkbox (etc.) could be responsible for rendering its own label, and this could be optional for backward compatibility. Or offer both a "checkbox" component and a compound "labeledCheckbox" component. Todd is right that the current situation interferes with localization and s

Re: Live change strategy

2005-11-09 Thread Richard Clark
Assuming this is a regular production website, if you're just changing the HTML and/or .page file, you can make the changes then either restart Tomcat or reload the app within Tomcat. Be aware that if the app came from a WAR file that deploying a newer WAR file will overwrite your changes.

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

2005-11-02 Thread Richard Clark
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 could organize an informal get-together? -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Cr

Re: Pat vs. the toolbar (was Re: "Why I Like Annotations")

2005-11-02 Thread Richard Clark
: I could, but I always get the heebie-geebies when I drive stakes through component encapsulation like that, it kind of feels like I'm defeating the purpose of using a component based framework at all. -Original Message- From: Richard Clark [mailto:[EMAIL PROTECTED] Sent: Wedne

Pat vs. the toolbar (was Re: "Why I Like Annotations")

2005-11-02 Thread Richard Clark
Maybe I'm missing something, but you can define a parameter as optional and give it a default value. Why not declare "listener" as optional and default it to the listener in your root page class? I realize this doesn't make your toolbar class 100% reusable across all projects, unless you do

Re: "Why I Like Annotations"

2005-11-01 Thread Richard Clark
On Nov 1, 2005, at 15:55, Howard Lewis Ship wrote: Well, if we can get enough of the community to say "Howard! Build us something better, and F**K backwards compatibility!" then I can do that, and maybe just a little bit more :-) The reality is that if you want to keep serious commercial cust

Re: Checking if component is in a Form inside the components code

2005-10-31 Thread Richard Clark
Oops, missed a detail (I was cutting and pasting from existing code and editing madly.) Here's new code: public abstract class CollectionEditPage extends BasePage implements PageRenderListener { public abstract ListEditMap getMap(); public abstract void setMap(ListEditMap map); publi

Re: Checking if component is in a Form inside the components code

2005-10-31 Thread Richard Clark
Hi Tony, Assume you have a page with 3 tabs (and one collection per tab): A, B, and C. Since the user could make a few changes in one tab then switch to another and do more, Tapestry has to collect the changes from all of the tabs. This collection happens during the rewind. For sake o

Re: @InjectObject and concrete classes

2005-10-31 Thread Richard Clark
Correction: Make that injection call @InjectObject("service:gtd.UserDataSource") That's what I get for not just cutting and pasting! (It still fails as described) ...R On Oct 31, 2005, at 17:59, Richard Clark wrote: I'm experimenting with Tapestry 4 (not quite re

@InjectObject and concrete classes

2005-10-31 Thread Richard Clark
I'm experimenting with Tapestry 4 (not quite ready to apply this to the huge production app yet ;) ), and ran into an interesting problem. I have a Validator that's used in my login process, and a service that gives access to the user names & passwords. I would like the validator to pick up

Re: Building Tapesty 3.0.3 Fails

2005-10-29 Thread Richard Clark
Since Howard's focus is currently on finishing Tapestry 4 for release, the best solution to this is to download javassist manually. ...Richard On Oct 29, 2005, at 7:13, mike jones wrote: Had a quick check on the mailing list but I couldnt find this problem. When I try to build from the Tape

Re: AW: Memory / Caching Issues

2005-10-28 Thread Richard Clark
Are you using Commons Logging or a package that uses it (e.g. Velocity)? It is notorious for holding onto its own classloader, which will hold a copy of any and all classes that have been loaded. I'm still working on slaying that dragon in one of my production apps. ...Richard On Oct 28,

Re: tapestry helloworld example: module duplicated error

2005-10-23 Thread Richard Clark
The tutorial library folder contains some duplicate libraries (beta-10 and beta-11 versions). Remove the beta-10 versions from the folder. ...Richard On Oct 23, 2005, at 10:03, Valdemaras Repšys wrote: When running a helloworld.war in tomcat i get such an exception: javax.servlet.Servlet

Re: OpenLaszlo thoughts

2005-07-29 Thread Richard Clark
I'm both a Flash advocate and a fairly experienced program (e.g. developed 6 fully interactive simulations in ActionScript, including the underlying framework, for a total of about 20K lines of code.) But I wouldn't use it for all clients, and note that secure government installations (and

Re: Eclipse + Jettylauncher + Hibernate?

2005-07-11 Thread Richard Clark
Hi Leo, Which database are you using? ...Richard On Jul 11, 2005, at 12:52, Leo Sakhvoruk wrote: Hello everyone, I'm trying to use Hibernate in a Tapestry project. However, I can't find any concise documentation on how I can set up Hibernate with Jetty. I found a lot of examples on us