RE: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Joel Wiegman
There is indeed... Looks like the fix version is "5.0" though, which is some strange holding place where defects seem to disappear to: https://issues.apache.org/jira/browse/TAPESTRY-2234 -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2008 8:

RE: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Joel Wiegman
I'm with Markus. Personally, I'm kind of shocked this is even under consideration. "Versioning" your package structure is a band-aid to the real problem, which is people not being able to control their class-loaders. If you deploy your Tapestry 4 app in one WAR and your Tapestry 5 app in another

RE: T5: Persistence pains

2008-05-05 Thread Joel Wiegman
mailto:[EMAIL PROTECTED] Sent: Saturday, May 03, 2008 5:38 PM To: Tapestry users Subject: Re: T5: Persistence pains On Fri, May 2, 2008 at 6:36 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > Josh, > > Thanks for the great suggestions. > > I guess I'm still befuddled as to why

RE: T5: Persistence pains

2008-05-02 Thread Joel Wiegman
e page for the first time you want an empty object, if they are posting an update to the form then Tapestry is going to populate the values. If you are navigating within the page using pagelinks, but it's a form then I'd consider posting the form instead... Josh On Fri, May 2, 2008 at 2

RE: T5: Persistence pains

2008-05-02 Thread Joel Wiegman
ward Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Friday, May 02, 2008 5:17 PM To: Tapestry users Subject: Re: T5: Persistence pains Could you elaborate on why the "flash" persistence strategy is insufficient for your needs? On Fri, May 2, 2008 at 2:00 PM, Joel Wiegman <[EMAIL PROTECTED]

T5: Persistence pains

2008-05-02 Thread Joel Wiegman
All, Maybe I'm missing something here, maybe I'm not, but I'm attempting to preserve state JUST BETWEEN REQUESTS and I'm really struggling (I know in T5 there's two requests, but for simplicity's sake let's just call the round trip from the browser a "request"). My options are: 1) @Persist("ses

RE: page activation + components

2008-04-30 Thread Joel Wiegman
I may be chiming in a little late on this, but if Janos is just trying to communicate activation context values to child components, isn't this what the @Parameter annotation of a component is for? http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Just kick me out if I'm

T5: OpenQA Maven repository location changed

2008-04-30 Thread Joel Wiegman
All, I'm sure someone has called this out already, but I noticed that OpenQA's repository (that tapestry-test relies on) has changed locations. Looks like it switched from http://maven.openqa.org to http://archiva.openqa.org/repository/releases/ . I'm guessing this would only get fixed in the ne

RE: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Joel Wiegman
rmally use a PrimaryKeyEncoder. - Original Message - From: "Joel Wiegman" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 5:10:00 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: How to update a list from a checkbox in a loop in

RE: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Joel Wiegman
Peter, Are you using a DefaultPrimaryKeyEncoder as your encoder? Joel -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 8:39 AM To: Tapestry users Subject: Re: How to update a list from a checkbox in a loop in t5 Hi Ivan This is precis

RE: JSONObject problem and Autocomplete

2008-04-11 Thread Joel Wiegman
Just to close the thread, I see that there's an existing bug for this problem: https://issues.apache.org/jira/browse/TAPESTRY-2234 -Original Message- From: JWiegman [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 1:17 PM To: users@tapestry.apache.org Subject: Re: JSONObject probl

RE: T5.0.11: @Persist("flash") values are not retained if validation fails

2008-04-03 Thread Joel Wiegman
ED] Sent: Wednesday, April 02, 2008 6:10 PM To: Tapestry users Subject: Re: T5.0.11: @Persist("flash") values are not retained if validation fails Could you give a simple example of the problem? 2008/4/2, Joel Wiegman <[EMAIL PROTECTED]>: > As an addendum, I shouldn't say

RE: T5.0.11: @Persist("flash") values are not retained if validation fails

2008-04-02 Thread Joel Wiegman
As an addendum, I shouldn't say "any field". The culprit is a List that gets iterated over in the TML. -Original Message----- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 2:20 PM To: Tapestry users Subject: T5.0.11: @Persist("flash"

T5.0.11: @Persist("flash") values are not retained if validation fails

2008-04-02 Thread Joel Wiegman
All, I've noticed that if validation fails on my page, any field annotated with @Persist("flash") is not retained when the response is rendered. Per the documentation for @Persist("flash"), this doesn't appear to be expected behavior. Should I put this in JIRA? Joel ---

RE: T5.0.7 Validation error

2008-03-06 Thread Joel Wiegman
Validation error On Dec 28, 2007 1:44 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > Ouch... That change botches up my current application pretty thoroughly. > > I don't think the event needs to be re-named... but consider the > following situation: > > If a form is i

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
outside process to hit a url to generate the page to have the component generate itself).. Have I confused you enough yet? Joel Wiegman wrote: > Hello all, > > Our application has the need to generate files. > > I'm interested in trying to use Tapestry to do this since we&

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
ry 29, 2008 10:15 AM To: users@tapestry.apache.org Subject: RE: T5: File generation Tapestry is not the right tool to generate files - we tried this in T4 and failed. T5 is even more component-oriented. Components just don't work well for generating text files. Use Velocity or FreeMark

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
ernal classes. Good luck - I'm sure others would be interested in your progress. sincerely, chris Joel Wiegman wrote: > The type of file doesn't really matter here. I just want to leverage > the Tapestry templating engine. > > For example, say my TML looked like t

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
lly designed to avoid semantics like: MyComponent component = new MyComponent(); component.setName("Test"); Components don't 'exist' like that. chris Joel Wiegman wrote: > Hello all, > > Our application has the need to generate files. > > I'm inte

T5: File generation

2008-02-29 Thread Joel Wiegman
Hello all, Our application has the need to generate files. I'm interested in trying to use Tapestry to do this since we're already using T5 on the presentation layer. Has anyone extracted the Tapestry templating engine to do other processing? Something like the pseudo-code below: // BEGIN @In

RE: T5.0.11-SNAPSHOT: tapestry-test suggestions

2008-02-28 Thread Joel Wiegman
ght now, T5's tests start up a series of different applicaitions to test various odds and ends. Perhaps we could juggle it to just start/stop Jetty and leave Selenium (server and browser app) running the whole time? On Thu, Feb 28, 2008 at 11:30 AM, Joel Wiegman <[EMAIL PROTECTED]> wr

T5.0.11-SNAPSHOT: tapestry-test suggestions

2008-02-28 Thread Joel Wiegman
All, I'd like to suggest some improvements to the tapestry-test library. I've had to write my own custom version of these classes because some of them aren't very configurable. - Perhaps most importantly, leverage the @BeforeSuite and @AfterSuite TestNG annotations for setting up and tearing down

T5.0.11-SNAPSHOT: Selenium upgrade

2008-02-28 Thread Joel Wiegman
All, Anyone know of any plans to upgrade the Selenium version in tapestry-test from 0.8.1 to a more current version? I've spent all day trying to get SSL to work with it, only to find out that the version Tapestry uses (0.8.1) does not support HTTPS: http://blogs.opensymphony.com/plightbo/2006/1

RE: T5.0.11-SNAPSHOT: pageLink rendering in SSL broken

2008-02-26 Thread Joel Wiegman
users Subject: Re: T5.0.11-SNAPSHOT: pageLink rendering in SSL broken Hi Joel, A @Secure annotation was implemented recently, I believe you might want to override the BaseURLSource service: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/secure. html Hope this helps. :) -Filip

T5.0.11-SNAPSHOT: pageLink rendering in SSL broken

2008-02-26 Thread Joel Wiegman
Hello all, After upgrading to T5.0.11-SNAPSHOT, PageLink components that render SSL links do not render the correct protocol and omit the port altogether. Expected: https://myserver:9300/myapp Actual: http://myserver/myapp Running the same application over regular HTTP renders the links corre

RE: T5.0.10: DateField on IE

2008-02-25 Thread Joel Wiegman
: DateField on IE I've done some work on it in 5.0.11, and tested with Mac Firefox 2 and Windows IE 7. I don't have access to an IE 6 right now (I need to setup yet another virtual machine). On Mon, Feb 25, 2008 at 10:30 AM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > Hello a

T5.0.10: DateField on IE

2008-02-25 Thread Joel Wiegman
Hello all, Can anyone confirm that the DateField component is broken in IE 6.0 (possibly 7.0) and T5.0.10? I'm getting JavaScript errors when the pop-up image is clicked. Thanks! Joel - To unsubscribe, e-mail: [EMAIL PROTECTE

RE: Howard deserves praise

2008-02-11 Thread Joel Wiegman
Can we just remove him from the list? That's not the first time he's written a very spectacularly uninformed troll. -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 11:46 AM To: Tapestry users Subject: Re: Howard deserves praise Don't

T5.0.10: Integer as null

2008-02-05 Thread Joel Wiegman
I have a text box bound to a non-primitive Integer value and I keep getting the following error when I submit the form: The input value '' is not parseable as an integer value. The default NullFieldStrategy is to keep nulls as null, so I don't think I have to include that new attribute. My TML i

RE: Tapestry[5] - Overriding the form error messages

2008-01-31 Thread Joel Wiegman
Not sure how stringent your requirements are, but I know with 5.0.7 the bubbles go away by setting clientValidation="false" on the form component. Of course, this means that the page submits to validate... -Original Message- From: Maximilian Weißböck [mailto:[EMAIL PROTECTED] Sent: Thur

RE: T5: TypeCoercer uses unsafe route for void to Integer

2008-01-30 Thread Joel Wiegman
Michael, I just encountered this yesterday. I actually think this is a bug because the default NullFieldStrategy for TextFields is to leave nulls as null, but the bug is that it still goes through the type conversion hierarchy to do so (why not just return me null if you get a null?). The more in

RE: T5: Simple Module not loading [5.0.9]

2008-01-29 Thread Joel Wiegman
Never mind... The module class was in src/test/java not src/main/java. -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 1:41 PM To: Tapestry users Subject: T5: Simple Module not loading [5.0.9] All, Let me tell you a quick story... Got

T5: Simple Module not loading [5.0.9]

2008-01-29 Thread Joel Wiegman
All, Let me tell you a quick story... Got an error in my app which I'm sure some of you have seen: Failure writing parameter value of component app/controllist/consignment/EditControl:departmentid: Coercion of null to type java.lang.Integer (via null --> String, String --> Long, Long --> Integer)

T5: Event order for "selected" and "validate" events

2008-01-15 Thread Joel Wiegman
All, I've noticed that the "validate" event for a form fires before the "selected" event fires from the Submit component. IMHO, I think the "selected" event should fire first. Seems like I would want to know HOW the form was submitted before I validate it (in case I want to, say, skip validation

RE: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Joel Wiegman
This is a known issue: https://issues.apache.org/jira/browse/TAPESTRY-1568 -Original Message- From: Franz Amador [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 2:50 PM To: Tapestry Subject: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks My page unit test

RE: T5.0.7 Validation error

2007-12-28 Thread Joel Wiegman
event should be renamed from "validate" to "formValidate"? Change your method name from onValidate() to onValidateFromForm() (adjusting for your form's id). On Dec 28, 2007 12:02 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > There appears to be a bug with 5.0.7 in

RE: T5.0.7 Validation error

2007-12-28 Thread Joel Wiegman
There appears to be a bug with 5.0.7 in that any custom validation method ( onValidate(), etc. ) gets called before the HTTP values get bound to the Tapestry component. Can anyone else confirm this? -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Friday, December

RE: T5.0.7 Validation error

2007-12-28 Thread Joel Wiegman
I'm trying to upgrade to 5.0.7 and can't get screens (that validated just fine with 5.0.6) to validate either. Will re-post once I find out more. -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 2:05 PM To: Tapestry users Subject: Re: T

RE: T5: Tapestry-Test

2007-12-21 Thread Joel Wiegman
Seriously? Google "webdefault.xml" Put one in your /Users/justinchua/bfe/myapp/src/test/conf/ folder. :-) -Original Message- From: Angelo Chen [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 4:16 AM To: users@tapestry.apache.org Subject: T5: Tapestry-Test Hi, I am trying o

RE: Can't get Tapestry5 to work with Spring

2007-12-19 Thread Joel Wiegman
Dave, I have Tapestry 5.0.5, Spring 2.0.4, and Sun Appserver 9 all working in harmony. Haven't really had any problems at all. Based on your post, it sounds like Tapestry is finding and initializing the beans. That's the toughest part, so if that's true, I might suggest to just simplify things

RE: unit testing

2007-12-11 Thread Joel Wiegman
Tony, The purpose of unit testing is to run your tests in a black box environment. If you auto-load all of the Spring configurations from your web.xml and use them, you're kind of defeating the purpose of unit testing. If you're looking for integration testing (which it sounds like you are), the

RE: T5: Anyone using PageTester?

2007-12-05 Thread Joel Wiegman
Using it and loving it. So great to be able to unit test the user interface in a mock container. I've tried to answer most of the posts in this forum about it. Seems like other people are using it... -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday,

T5: The Mysteries of the ValidationTracker and the fields it decides to keep values for

2007-11-28 Thread Joel Wiegman
Hello all, The Tapestry 5 doc on Input Validation ( http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html ) states: "Likewise, the individual fields updated by the components should also be persistent." I'm not using the @Persist annotation on any fields (but let's get past t

RE: [T5] PageTester & tapestry-spring

2007-11-28 Thread Joel Wiegman
Mark, Take a gander at this thread and see if it answers any of your questions: http://www.nabble.com/Using-PageTester-with-tapestry-spring-tf4508561.ht ml Let me know if you have any questions... Joel -Original Message- From: Mark Horn [mailto:[EMAIL PROTECTED] Sent: Wednesday, Nove

RE: T5: testing T5

2007-11-19 Thread Joel Wiegman
why its finding test classes but not tests. The classes are probably being found by mvn b/c they live in the default hierarchy. They are annotated w/ @Test, but its like they aren't being registered as tests!? Joel Wiegman wrote: > I've got the PageTester, and well as integration test

RE: T5: testing T5

2007-11-16 Thread Joel Wiegman
I've got the PageTester, and well as integration test (tapestry-test) functionality working with my web-app. Not too difficult but there were some hoops to jump through. First of all, you may want to check out this thread: http://www.nabble.com/Junit-4-or-TestNG-5-suite-support-tf4647280s177.ht

RE: T5: testing software?

2007-11-12 Thread Joel Wiegman
Anything wrong with the one that ships with T5? http://tapestry.apache.org/tapestry5/tapestry-test/ Unforutnately, it's hard-coded that you have to use Firefox for your testing (or is that 'fortunately'?), but I've been using it and it works great. -Original Message- From: Angelo Chen [

Re: T5 Error in 5.0.5 palette.js

2007-10-04 Thread Joel Wiegman
Just tacking onto the thread that a patch is available for the problem discussed in this thread: https://issues.apache.org/jira/browse/TAPESTRY-1745 Seems like a pretty unintrusive fix... Anxiously awaiting for a committer to test and include... Howard Lewis Ship wrote: > > Please add this a

RE: Using PageTester with tapestry-spring

2007-09-27 Thread Joel Wiegman
ed for ContextForPageTester. at org.apache.tapestry.internal.test.PageTesterContext.getAttribute( PageTesterContext.java:61) at $Context_1154558bccc.getAttribute($Context_1154558bccc.java) at $Context_1154558bccb.getAttribute($Context_1154558bccb.java) at cn.crc.spring.SpringModule.build

RE: T5: Event logging

2007-09-26 Thread Joel Wiegman
2007 1:30 PM To: Tapestry users Subject: Re: T5: Event logging There's a bit of ambiguity going on w.r.t. event handler methods that are overridden in a subclass. Is this the case? On 9/26/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > One of my "onPrepare()" methods is g

T5: Event logging

2007-09-26 Thread Joel Wiegman
One of my "onPrepare()" methods is getting called twice and I'm not sure where the second one is coming from. Anyone figured out a slick way of logging the events ("action", "prepare", "submit", "activate", "validate", etc.) that Tapestry receives?

RE: Using PageTester with tapestry-spring

2007-09-26 Thread Joel Wiegman
OCModule.java:132) at $ObjectProvider_114ba61b5d4.provide($ObjectProvider_114ba61b5d4.java) at $ObjectProvider_114ba61b5ce.provide($ObjectProvider_114ba61b5ce.java) at org.apache.tapestry.internal.services.InjectWorker.inject( InjectWorker.java:80) ... 52 more ... Removed 22 stack frames 2007/9/25, Joel Wiegman &l

RE: Using PageTester with tapestry-spring

2007-09-25 Thread Joel Wiegman
I run into the same problem I use http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative2 Can you explain more detail?? 2007/9/24, Joel Wiegman <[EMAIL PROTECTED]>: > > Ivan, > > I'm using PageTester with Spring integration, but you'll have to jum

RE: Using PageTester with tapestry-spring

2007-09-24 Thread Joel Wiegman
Ivan, I'm using PageTester with Spring integration, but you'll have to jump through a few small hoops to accomplish this. I've written a "TestHarnessModule" in my .services directory. This module contributes the Spring services manually. My code looks very similar to what's found here: http://w

Re: T5 Error in 5.0.5 palette.js

2007-09-11 Thread Joel Wiegman
Did anyone find a workaround for this? Is there a JIRA defect for it? As much as I like Firefox, Internet Explorer is unfortunately the browser of choice still. Shame that the palette doesn't work with it. Daniel Jue wrote: > > When using the Palette component, I am getting a Javascript er

RE: T5: Activation contexts

2007-09-04 Thread Joel Wiegman
I'm actually seeing the behavior Marcus is referring to, where all possible matches are applied in a specific order (In my previous post, I was only trying the 3-arg method). Either way, it's not really that much of an inconvenience. As long as the behavior is predictable I can code accordingly.

RE: T5: Activation contexts

2007-08-31 Thread Joel Wiegman
self. >> >> public Object onActivate(Object[] context) { } >> >> I haven't looked closely enough at the code to determine if there is >> a > >> better option. >> >> Josh >> >> On 8/30/07, Joel Wiegman <[EMAIL PROTECTED]&g

RE: T5: Activation contexts

2007-08-31 Thread Joel Wiegman
al parameters I've ended up using > an Object[] as the argument and figuring out what the values mean myself. > > public Object onActivate(Object[] context) { } > > I haven't looked closely enough at the code to determine if there is a > better option. > > Jos

T5: Activation contexts

2007-08-30 Thread Joel Wiegman
Hello all, I'm wondering if anyone has had any luck making the "activation contexts" of pages a little more flexible. For example, let's say I have a "Sum.java" page that wants to take in between 1 and 4 Integers and add them together: //is there a way to make number3 and number4 "optional"? Se

RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Joel Wiegman
Hrm... I've been running a reasonably robust production app on T5.05 and JDK 1.6 and haven't seen any "hangs". I develop on Jetty but deploy to SJSAS, which runs Catalina (Tomcat's servlet container). Production is Linux and development is Windows. I also have 92 integration tests and unit test

T5: How do I set a property on a parent component?

2007-06-22 Thread Joel Wiegman
All, The subject pretty much says it all, but the only way I've found to get a reference to the parent component is by injecting ComponentResources and calling getContainer(). Unfortunately (for my situation), this doesn't hand me back an Object that I can cast and set properties on. Anyone have

RE: T5: Can't use any page name but "Start"

2007-06-14 Thread Joel Wiegman
html Both Start.html and Test.html contain the tag With both links /root/start and /root/admin/test works for me. Alex On 6/13/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Thanks for the response Alexandru. > > Yeah, it's all in the correct spot (keep i

RE: T5: Can't use any page name but "Start"

2007-06-13 Thread Joel Wiegman
- make sure the html is in the right place http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html -> Template Location Hope it helps. Alex On 6/13/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > All, > > I have an HTML file and Java file that functions perfectly wit

T5: Can't use any page name but "Start"

2007-06-13 Thread Joel Wiegman
All, I have an HTML file and Java file that functions perfectly with the following structure: /status/Start When I rename the HTML and Java file to something more meaningful, like: /status/ViewStatus Run a clean build and load the page, none of my embedded components are found anymore: "Compo

T5: Swapping out Spring definitions

2007-06-12 Thread Joel Wiegman
Hello all, During the execution of our end-to-end (out-of-container) unit tests, I'd like to load my service definitions as mock objects from Spring configuration files that are different from the ones defined in my container (web.xml file). Believe it or not, the Tapestry PageTester class has a

RE: T5: Testing - PageTester reworked... How do I use mock services now?

2007-06-04 Thread Joel Wiegman
"You can specify the additional module classes when creating the page tester." Howard, could you go into a little more detail here? I didn't see a constructor arg or a method on PageTester for specifying additional modules. -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTEC

T5: PageTester failure

2007-06-04 Thread Joel Wiegman
In a TestNG test, I'm calling: Document doc = tester.renderPage("status/Start"); //IMPORTANT NOTE: This URL renders without error in a browser This page renders a few components, and appears to be complaining about one of them (the StoreHierarchy component). I'm using the Spring IoC and am not

RE: T5: Testing - PageTester reworked... How do I use mock services now?

2007-06-04 Thread Joel Wiegman
Otho, Any chance you could share an example of this with the community? I'm having a hard time finding an example on the T5 website. Thanks! Joel -Original Message- From: Otho [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 4:36 AM To: Tapestry users Subject: Re: T5: Testing -

RE: T5: Works in Jetty but not in Tomcat

2007-05-30 Thread Joel Wiegman
Marcus, Thanks for the reply. I've been able to get it to work with mvn tomcat:run and mvn jetty:run, but not by deploying the war to a separate instance of Tomcat. I'll keep at it. It's not looking like it's a Tapestry bug... it appears to be a classloading issue involving JAXP/Xerces. Cheers

T5: Works in Jetty but not in Tomcat

2007-05-30 Thread Joel Wiegman
My application is working fine in Jetty but not in Tomcat. I've already followed the deployment instructions found here ( http://tapestry.apache.org/tapestry5/tomcat.html ). I confirmed that my classes are being jarred up by Maven and put into the WEB-INF/lib directory. Using JDK 1.5.0_11, and T

T5: Sun Java System Application Server

2007-05-25 Thread Joel Wiegman
This may be a crazy question but, has Tapestry 5 been tested on the "J2EE reference implementation" (note quotes)? I've been developing on Jetty for quite a while with no problems (because it's easier), but when I tried deploying the war to our QA Sun app servers, none of the component classes cou

RE: T5: Cobertura?

2007-05-25 Thread Joel Wiegman
ertura and instrumented file by cobertura & tapestry, if it is > possible. > > And of course keep it as simple as possible. > > Thanks > > Joel Wiegman napsal(a): >> Jiri, >> >> I know one of the Cobertura problems involved here is related to this b

RE: T5: Best practice for rendering a dynamic component

2007-05-24 Thread Joel Wiegman
om: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 4:08 PM To: Tapestry users Subject: Re: T5: Best practice for rendering a dynamic component Absolutely. You can put it inside a to keep it from rendering normally. On 5/23/07, Joel Wiegman <[EMAIL PROTECTED]>

RE: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Joel Wiegman
you can choose which objects render at what time in the rendering process, which ends up being about the same thing. On 5/23/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Hello all, > > I'm interested in rendering a component template that I can > selectively declare.

T5: Best practice for rendering a dynamic component

2007-05-23 Thread Joel Wiegman
Hello all, I'm interested in rendering a component template that I can selectively declare. For example, I'd like to do something like the following: public class MyPage { @Component private Fruit myFruit; Object onAction(String switchValue) {

RE: T5: PageTester problems

2007-05-21 Thread Joel Wiegman
Never mind... I had a stale war in development. I needed to replace org.apache.tapestry.TapestryFilter with org.apache.tapestry.spring.TapestrySpringFilter in my web.xml. -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 9:31 AM To: Tapestry

T5: PageTester problems

2007-05-21 Thread Joel Wiegman
I'm pretty sure the PageTester/unit testing framework is in a very "gelatinous" state right now, but I thought posting this error might help stabilize it. I'm getting a CNFE upon the first call to PageTester.renderPage (and yes, the page compiles and displays fine when not using the PageTester).

RE: T5: Cobertura?

2007-05-21 Thread Joel Wiegman
rtura ... can you, please, give more information where the problem is to solve it ... or show me the way how to investigate, where it is ... Thanks Jirka Howard Lewis Ship napsal(a): > Sorry if I was inexact; I'm shifting gears too constantly. > > On 5/17/07, Joel Wiegman <[E

RE: T5: Cobertura?

2007-05-17 Thread Joel Wiegman
ssage- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, May 17, 2007 12:53 PM To: Tapestry users Subject: Re: T5: Cobertura? It could be the version; I've been sticking to the 1.7 version of the plugin as 1.8 doesn't work (at least, not for Tapestry apps). On 5/17/0

T5: Cobertura?

2007-05-17 Thread Joel Wiegman
Hello all, I'm using the Cobertura (via the Maven plug-in) to execute some web app coverage tests. I'm seeing the T5 "PageTester" unit tests pass, but the same tests fail during the Cobertura coverage test. I end up seeing variations of java.lang.VerifyErrors and java.lang.ClassFormatErrors (exa

T5: ContextForPageTester error

2007-05-16 Thread Joel Wiegman
Hello all, I'm trying to get a simple PageTester working using JUnit: public class TestStoreHierarchy { private PageTester tester; @Before public void setUpStoreHierarchyTests() { tester = new PageTester("com.btservices.storeportal", "app", "src/main/weba

RE: T5: Flash persistence strategy

2007-05-15 Thread Joel Wiegman
ages = new ArrayList(); Also, you don't need the @Persist on the currentMessage field. On 5/15/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Greetings all, > > I attempted to expand upon the T5 "FlashDemo" found here: > > http://svn.apache.org/viewvc/tapestry

T5: Flash persistence strategy

2007-05-15 Thread Joel Wiegman
Greetings all, I attempted to expand upon the T5 "FlashDemo" found here: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/ test/app1/WEB-INF/ I'm attempting to write a "Messages" component that can be included anywhere and show a group of messages to a user. But for some

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
ue; the field is itself persistent (@Persist). Unless you are testing on a multi-machine cluster, you shouldn't see any problems along these lines! On 5/7/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Impressive! I was injecting that value via Spring to bootstrap it. > Makes sen

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
7, 2007 12:17 PM To: Tapestry users Subject: Re: T5: SelectModel - a real world example Odd that you lost your value; the field is itself persistent (@Persist). Unless you are testing on a multi-machine cluster, you shouldn't see any problems along these lines! On 5/7/07, Joel Wiegman <[EMAI

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
re on the brand field of your Main class? Something has changes that field to be read-only, which is usually a sign that a value was injected. On 5/4/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Still getting unintuitive errors... I've added the ValueEncoder and > n

RE: T5: SelectModel - a real world example

2007-05-04 Thread Joel Wiegman
r that converts between Brands and brand ids (as strings, for the client side). If Brand is an entity object, then it may be necessary to have the ValueEncoder talk to the database or session store. On 5/4/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Thanks for the reply Howard.

RE: T5: SelectModel - a real world example

2007-05-04 Thread Joel Wiegman
hat can convert between Brands and client-side string values. This is the encoder parameter of the Select component. On 5/4/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Not to be harsh, but I don't think I've ever written a select box with > constant values (Enum).

T5: SelectModel - a real world example

2007-05-04 Thread Joel Wiegman
Not to be harsh, but I don't think I've ever written a select box with constant values (Enum). Seems like even Male/Female drop downs need to be data-driven now-a-days. :-> I've started to stub out a very simple "real world example" of a select component in T5, but it doesn't appear to be as sim