RE: Best practice? Cleaning up instance data in pages and compone nts for the cache?

2006-04-10 Thread Schulte Marcus
yes, exactly, that's what I do. > -Original Message- > From: Nick Faiz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 8:09 AM > To: Tapestry users > Subject: Re: Best practice? Cleaning up instance data in pages and > compone nts for the cache? > > > Ah yes, that's for data re

Re: intercepting page rendering

2006-04-10 Thread Aleksej
If you only need to have transaction opened during page rendering then you should put your logic into separate hivemind service with threaded model. Such service must start transaction at initialization and close it in the end of thread ( after page rendering ). Look more in hivemind docs. ---

What you use?

2006-04-10 Thread Apache
What you use? windows xp windows 2000 windows 98 windows 95 or other --- Best regards m2f Sent from www.TapestryForums.com Read this topic online here: <> http://www.tapestryforums.com/viewtopic.php?p=14694#14694 m2f

Re: Best practice? Cleaning up instance data in pages and compone nts for the cache?

2006-04-10 Thread Nick Faiz
Ah yes, that's for data represented by an abstract getter and setter, right? I'm discovering that there's a hybrid solution to this - rely on those abstract proxies whenever possible, dont use class members, store state in an ASO. :) Cheers, Nick On 11/04/2006, at 3:52 PM, Schulte Marcus

RE: Best practice? Cleaning up instance data in pages and compone nts for the cache?

2006-04-10 Thread Schulte Marcus
afaik all properties are reset to their initial value (defaults to null) when the page is returned to the pool ... > -Original Message- > From: Nick Faiz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 7:43 AM > To: Tapestry users > Subject: Best practice? Cleaning up instance da

Best practice? Cleaning up instance data in pages and components for the cache?

2006-04-10 Thread Nick Faiz
Hi, Is there an easyt practice for ensuring that instance data in pages and components is cleaned up, before the object is cached for future needs? My current idea is to implement the detach() method in each page and have the components implement PageDetachListener. Is there a more conv

Re: Tapestry 5

2006-04-10 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leonardo Quijano Vincenzi wrote: > I would rather keep the XML files around to *override* the annotations, > not because I can't use Java 5.0. Amen! [with a caveat that it should be _easy_ (whatever 'easy' is) to override] We'll have to see how this pl

Re: Missing slash in externalized asset URLs?

2006-04-10 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip S. Adamsen wrote: > Oops, source-tree should of been class-tree. > > It's 3:47 AM and I'm out of coffee... : P Was Java appropriately named, or what? Always a reference to coffee in developer threads. ;-) > > Filip S. Adamsen skrev: >> I just

Re: Tapestry 5

2006-04-10 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Snare wrote: > I hope not. That would be horrible. There's a good segment of us > still using java 1.4 who would be significantly annoyed at that, and > for good reason. Yes, and some of that "us" you reference includes me. :-) > > I know that

Re: [Announce] Release Tapestry 3.0.4 / Tapestry 4.0.1

2006-04-10 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, I did build the docs - and yes I'm still waiting on commit access. But for those who want to know 'off-site', here's the snippet of the changelog that's going to be in the site (wish I could format it better, but...) : # fix Fixed TemplateParser

Tapestry drop downs

2006-04-10 Thread Annie Lim
Hello, I am currently evaluating Tapestry 4 and am having issues with the select drop downs. Is there an option to allow the selected option to be set to an object's property directly ?? From what I can see, it seems to be set to a boolean array. I have also tried the Property Selection compo

Re: Tapestry 5

2006-04-10 Thread Leonardo Quijano Vincenzi
I would rather keep the XML files around to *override* the annotations, not because I can't use Java 5.0. As for the use of JDK 5.0, well... this is a release that's a ... year from now? And we'll have to maintain backwards compatibility with Java 1.1 or 1.2 or whatever at a time when - I thin

Re: spindle

2006-04-10 Thread Steve Motola
The two cents: I think annotations are great and convenient, this is not intended as any kind of annotations flame war. I think XML is easier for tool support, amongst other things. We are going to have more annotations support in the future with the Cognition Modeler, but otherwise XML provid

Re: Another question concerning the For component

2006-04-10 Thread James Carman
Are you extending a page class (shot in the dark)? > On 10. Apr 2006 - 11:45:52, Mark wrote: > | What happens if you take the @Persist annotation out? > | Just to see if the error goes away. Maybe that would be a pointer > then... > > The exception remains exactly as it was before... > > -

Re: Missing slash in externalized asset URLs?

2006-04-10 Thread Filip S. Adamsen
Oops, source-tree should of been class-tree. It's 3:47 AM and I'm out of coffee... : P Filip S. Adamsen skrev: I just moved some of my application's assets into my source-tree. Unfortunately, it appears that externalized assets aren't working properly, at least as far as I can see. -

Re: Missing slash in externalized asset URLs?

2006-04-10 Thread Jesse Kuhnert
What version is this against? On 4/10/06, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > I just moved some of my application's assets into my source-tree. > Unfortunately, it appears that externalized assets aren't working > properly, at least as far as I can see. > > This is the URL I get when I

Re: Tapestry 5

2006-04-10 Thread Jesse Kuhnert
I hope everyone understands that T5 is still a long ways away from coming out. The T4.1 series has barely started to form a new API, let alone even an alpha release. There will be many many iterative releases of the 4.1 series while all of that new functionality is figured out, and the old functio

Missing slash in externalized asset URLs?

2006-04-10 Thread Filip S. Adamsen
I just moved some of my application's assets into my source-tree. Unfortunately, it appears that externalized assets aren't working properly, at least as far as I can see. This is the URL I get when I include some.file in my component (the two files are in the same directory in the source tree

Re: spindle

2006-04-10 Thread Geoff Longman
ok ok I guess I'd better have my say. I'm going to build *something* for T4, if for no other reason that I have made many promises in the past and I'm not one to renege. I'm afraid that that *something* will be less than what people are hoping for. The devil is in the details and I *am* crushed a

Re: Can't get a Tacos:AjaxForm working: dojo.widget has no properties

2006-04-10 Thread Jesse Kuhnert
Sounds like a bug to me.. What happens if you add this to the bottom of your html page? dojo.require("dojo.widget"); On 4/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: > > Hi all, > > Been trying for some time know to get an AjaxForm working. > All my tests end up with something like... > > D

Re: Tapestry 5

2006-04-10 Thread Geoff Longman
There was a general vote on abandoning support for JDK < 1.5 when the ideas for T5 were originally floated.. but I'm not sure that ditching the xml was included in that discussion. I'm ok with losing the xml because I have already put in a suggestion not to lose the xml! :-) I was thinking we "lo

Re: Tapestry 5

2006-04-10 Thread Alex Kartashev
Please keep the XML configs around as optional. I really really dislike long annotations. And I do like existing XML configs. With Eclipse/IDEA XML auto-fill, they totally do not get in the way. Please keep them around... -Alex Bryan Lewis wrote: Same feelings here. I *like* the xml bindi

Re: Tapestry 5

2006-04-10 Thread Bryan Lewis
Same feelings here. I *like* the xml binding files and I'm not wild about mixing too many presentation details in with my java code. (Although I suspect there would be some benefits like compiler type checking.) Mike Snare wrote: >I hope not. That would be horrible. There's a good segment of

Re: Tapestry 5

2006-04-10 Thread Mark
I'm not sure how old this PDF is (the cover page says "sponsored by JSS SYmposium March 2006") , but it looks like Howard himself said this... Count me +1 against that idea... Here is the summary: ---quote--- Tapestry 5 will be significantly advanced over Tapestry 4 or anything else; planned f

Re: intercepting page rendering

2006-04-10 Thread Ted Steen
As I understand, the rewind cycle updates properties and if there is an active transaction these changes could be persisted without my knowing? or am I wrong? What I want is to make the transaction only span the part of the rendering that has to do with reading, so that no properties will be persi

Re: Tapestry 5

2006-04-10 Thread Mike Snare
I hope not. That would be horrible. There's a good segment of us still using java 1.4 who would be significantly annoyed at that, and for good reason. I know that the tap developers don't tend to concern themselves with backward compatibility, but it seems you should try to *build* a user base -

Can't get a Tacos:AjaxForm working: dojo.widget has no properties

2006-04-10 Thread Pedro Viegas
Hi all, Been trying for some time know to get an AjaxForm working. All my tests end up with something like... DEBUG: AjaxForm submission using form submit. DEBUG: ERROR: On line 483 of document http://localhost/testapp/app?digest=b28ed13c10dc1486db25d6aa85688eec&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2F

Re: spindle

2006-04-10 Thread Mark Arnold
Like Mark says - it may make sense for Spindle to actually do that... I wouldn't neccesarilly call it a "fear". It would probably be for the benefit of having a much earlier T5 Spindle. If Geoff is pressed for time anyway, it may make more sense to start getting a T5 spindle out the door, rath

Re: spindle

2006-04-10 Thread Pedro Viegas
And to make things worse... has Geoff has stated he is still using T3 at work, so his efforts are on that direction... one has to pay the bills. Really hope that Marks fears don't come true and that Spindle doesn't skip T4! Come on Geoff we're all holding our breaths out here! Keep it up! ;-) On

Re: injecting mock services at test time

2006-04-10 Thread andyhot
Use Tapestry's Creator class (in org.apache.tapestry.test) to instanciate pages and components to be tested. Creator allows passing mock instances of a component's properties. >From Rob Dennett <[EMAIL PROTECTED]>: > I have a listener like this: > > @InjectService(�FooService�) > public abstra

injecting mock services at test time

2006-04-10 Thread Rob Dennett
I have a listener like this: @InjectService(“FooService”) public abstract FooService getFooService(); public void doSomething() { FooService fs = getFooService(); fs.doBar(); } Can I inject a mock FooService into the component for testing purposes without having to change hivemo

Tapestry 5

2006-04-10 Thread Mark
I just read on http://www.virtuas.com/files/JavaWebFrameworkSweetSpots.pdf that T5 will not have any XML configuration option any more, only annotations. Is this true? MARK - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [Announce] Release Tapestry 3.0.4 / Tapestry 4.0.1

2006-04-10 Thread Jesse Kuhnert
Yeah I think Brian built the docs already, but I figured I'd let him do the honors since he should theoretically have commit access any day now. On 4/10/06, Ryan <[EMAIL PROTECTED]> wrote: > > Any luck on getting a 3.0.4 change log? > > Thanks, > Ryan > > On 4/4/06, Brian K. Wallace <[EMAIL PROTEC

Re: [Announce] Release Tapestry 3.0.4 / Tapestry 4.0.1

2006-04-10 Thread Ryan
Any luck on getting a 3.0.4 change log? Thanks, Ryan On 4/4/06, Brian K. Wallace <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm currently working on getting the 3.0.4 site built which will have > the changelog. I'll post again as soon as I have something that

Re: Spring MVC vs. Tapestry 4

2006-04-10 Thread Henri Dupre
I'm not very familiar with Spring MVC but most Spring Web tools seem to provide rather low level tools for other frameworks instead of Tapestry which is a complete component based solution. I don't believe it is possible to make a comparison between, but I would suggest you to have a look at both t

Spring MVC vs. Tapestry 4

2006-04-10 Thread Mark
Hi guys, does anybody know of a detailed comparison of Tapestry 4 vs. Spring MVC? I only found some short comparisons that were all related to T3, claiming T3 was very difficult to impossible to unit test - which others say is not true... Then I found this: http://www.virtuas.com/files/JavaW

Re: How to pass in [ and ] into pattern validator?

2006-04-10 Thread Martijn Hinten
Ooops That was a very nasty typo. Appologies to the forum. Here comes the correct text of my post: Anybody knows how to pass in a regExp containing [ and ] into Tapestry's pattern validator? I haven't found it out and created my own validator that accepts (for example) {a-zA-Z} and transfo

How to pass in [ and ] into pattern validator?

2006-04-10 Thread Martijn Hinten
Anybody knows how to pass in a regExp containing [ and ] into Tapestry's pattern validator? I haven't found it out and created my own validator that accepts (for example) {a-zA-Z} and transforms that internally to [a-zA-Z]. Is there a way to do something like shit: value="validators=pattern=[

Re: intercepting page rendering

2006-04-10 Thread Henri Dupre
With my solution, the request would span the rewinding + page rendering... Why don't you want the transaction to span the rewinding? I'll post on the wiki my solution. Henri. On 4/10/06, Ted Steen <[EMAIL PROTECTED]> wrote: > > Hi Henri. > > I got a solution that provides the session (in a sessi

RE: spindle

2006-04-10 Thread Mark Stang
Geoff is working on it when he has available cycles. And as we all know free time is hard to come by. Currently, he is on some kind of death march at his paying job so it will be a bit before he can get back to Spindle. He has stated on the Spindle Development list that supporting 4.x is very

Re: intercepting page rendering

2006-04-10 Thread Ted Steen
Hi Henri. I got a solution that provides the session (in a session-per-view manner). I also have transaction-handling (using interceptors). Problem now is that there must be a transaction open while rendering the page, for being able to lazy-load collections, etc. I do not want the transaction to

Re: intercepting page rendering

2006-04-10 Thread Henri Dupre
I wouldn't suggest to hack into the page rendering... This lead into most of my poor code in Tapestry 3 that I'm trying to cleanup... What I did in Tapestry 4 is a WebRequestFilter that creates a Spring Hibernate session (I translated the Spring "OpenSessionInView" servlet filter). If you are using

Re: [4.0][NB?] IExternalPage + Form submit

2006-04-10 Thread Theo vN
Can't remember where I found this.. public abstract class MyExternalPage extends BasePage implements IExternalPage { public void activateExternalPage(Object[] params, IRequestCycle cycle) { Object param1 = cycle.getRequestContext().getParameter("param1")); doOtherStuff(cycle);

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 11:45:52, Mark wrote: | What happens if you take the @Persist annotation out? | Just to see if the error goes away. Maybe that would be a pointer then... The exception remains exactly as it was before... - To un

intercepting page rendering

2006-04-10 Thread Ted Steen
Hi all! I need an active transaction when the page is rendered, in order to load/read lazy collections. One way to do it would be to start a transaction in beginRender etc. Another way that I think is better would be to intercept the method in the Engine that renders the page. Now the problem is t

Re: Adding scripts in head

2006-04-10 Thread Jesse Kuhnert
The best way to ensure it gets in the head is probably to use the delegate parameter of the Shell component. It's something I didn't discover until recently, but is very powerful in terms of defining dynamic extension points. On 4/10/06, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > I am trying t

Re: Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Stephane Decleire
My bulletinboard module is composed of pages instead of components ... Is there any way to make a "library" with pages ? Sam Gendler wrote: I don't have a definitive answer for you. However, the JSCookMenu component (available from tassel) allows you to supply new themse and assets without mod

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mike Snare
There would certainly need to be some filtering. As to the issue of objects in pages, it's really a matter of logic in pages, since the objects aren't really stored in the pages anyway. Shouldn't be an issue. There are many issues that would need to be addressed, but it should be do-able. On 4/

Re: Another question concerning the For component

2006-04-10 Thread Mark
What happens if you take the @Persist annotation out? Just to see if the error goes away. Maybe that would be a pointer then... MARK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mark
Hey Mark, thanks for the pointer, I will look at it in detail later on. My main problem is that I am sure most thing can be done, but there is no documentation out there about how to do it. Especially for T4, I have not found anything that explains how the infrastructure works internally. So I

Adding scripts in head

2006-04-10 Thread Chris Chiappone
I am trying to add the following javascript in the head of my Border page as follows: djConfig = { isDebug: false, baseRelativePath: "js/dojo", preventBackButtonFix: false, parseWidgets: false }; The problem that i'm having is that the

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mark
Mike, Not sure if it would have to be done in a way that you can specify which pages to inject stuff into. Maybe based on the Page interface-/ implementation classname. Otherwise you end up with all kinds of objects in page classes that do not want them. Although, I am not sure if this would b

Re: Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Henri Dupre
Hi, One option I see is for you to use a parameter to call the bulletin board. E.g, in each other tapestry application you could make an external link to the bulletin board and pass header and footer as parameters (and eventually encode them so users don't see them). Then you could have that heade

Re: using EnhancementWorkers for Specification Inheritance

2006-04-10 Thread Mark Lehmacher
For future reference: Solved my problem by simply contributing my enhancement worker with before="tapestry.enhance.inject-specification" instead of before="tapestry.enhance.abstract-property"! > --- Ursprüngliche Nachricht --- > Von: "Mark Lehmacher" <[EMAIL PROTECTED]> > An: tapestry-user@jakart

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mike Snare
Not ideal, for sure. I think part B of my proposal is much better -- an application.page file that has normal page-file semantics to inject/add whatever is needed across all pages: application.page file: Then any page that wanted the FooService could just do: public abstract MyPage exten

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mark Lehmacher
Basically you should be able to do all the stuff you can do with annotations programmatically using EnhancementWorkers. You should have a look at the org.apache.tapestry.enhance package and the implementation of the annotations (which use enhancement workers). I am stuck with JDK1.4 myself and had

Re: Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Sam Gendler
I don't have a definitive answer for you. However, the JSCookMenu component (available from tassel) allows you to supply new themse and assets without modifying the original component. If you look at the code to JSCookMenu, you may well see something that will help you solve this. Alternatively,

Re: Injecting common properties for multiple pages

2006-04-10 Thread Sam Gendler
> @Tap Team: > How difficult would it be to add the ability to either: > A) declare services/aso's as 'global' (or some better label), such > that every page gets it injected? But bear in mind that anything that would be injected 'blind' by the framework would not be visible within the public i

Re: [OT] test case for pages that email

2006-04-10 Thread Mike Snare
Again, I would suggest that if you feel it's important to know that the mail was actually sent then the user likely will too. Return a flag or object from the service and use it to conditionally render text to the response. Test for that. -Mike On 4/10/06, Dan Adams <[EMAIL PROTECTED]> wrote: >

RE: [OT] test case for pages that email

2006-04-10 Thread Dan Adams
Yeah, this is way we write our pages. The pages are very lightweight and normally just call services. The services are separately unit tested. The problem is being able to test if the page actually calls the service. On Mon, 2006-04-10 at 11:30 -0400, James Carman wrote: > That's kind of the idea

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 11:37:09, Mike Snare wrote: | Hmm.. Maybe a problem with the doctor class? Is it possible that the | doctor class doesn't really compile? No, I'm using it all over the place. If the class didn't compile actually the whole application wouldn't be usable at all ;) | What about A

Re: Another question concerning the For component

2006-04-10 Thread Mike Snare
Hmm.. Maybe a problem with the doctor class? Is it possible that the doctor class doesn't really compile? What about ActivatePage? Does it have any reference to a doctor property that could (grabbing at straws here) cause some sort of collision? -Mike On 4/10/06, Andreas Bulling <[EMAIL PROTEC

Re: [OT] test case for pages that email

2006-04-10 Thread Mike Snare
You can't possibly write a test to ensure that every single line of every single method gets called without writing log statements and parsing the log. Test your page, test your service. You can return some flag from the service method (perhaps a boolean) to indicate whether or not the service wa

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 11:23:48, James Carman wrote: | That's what I typically do. I've seen that error message before, but it | usually meant that something else was wrong. Are there any warning/error | messages above that anywhere? I can't remember exactly what the problem | was, but it wasn't intu

RE: [OT] test case for pages that email

2006-04-10 Thread James Carman
That's kind of the idea behind T4 and the HiveMind integration. Pages should just collect information from the user and pass that information to services to actually do the work (and then present results back to the user of course). That way, your pages are more lightweight and view-oriented only

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 11:22:24, Mike Snare wrote: | You showed that for the EditPatient page, but not in the ShowPatient | page where the exception is occurring. Does some part (probably in | ShowPatient.page) of the page attempt to access a 'doctor' property? | If so, prove to yourself that getDocto

RE: [OT] test case for pages that email

2006-04-10 Thread James Carman
So, make your page call a service which does all the work. Then, you can easily test a service object outside the container using mock objects. -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 11:26 AM To: Tapestry users Subject: RE: [OT] test c

RE: [OT] test case for pages that email

2006-04-10 Thread Dan Adams
I would love to use a mock object for this, but I'm not sure of a way to instantiate a page class in order to test it. We use mock objects extensively elsewhere but I don't know how to set up a tapestry page to test it. On Mon, 2006-04-10 at 11:19 -0400, James Carman wrote: > I would use MockObjec

Re: [OT] test case for pages that email

2006-04-10 Thread Dan Adams
But that's not the point. If you are using Test Driven Development, how do you write a test to make sure that line 2 even exists? On Mon, 2006-04-10 at 11:19 -0400, Mike Snare wrote: > If the message gets displayed, and you know it's because the code > 'displayMessage()' on line N displayed it, it

RE: Another question concerning the For component

2006-04-10 Thread James Carman
That's what I typically do. I've seen that error message before, but it usually meant that something else was wrong. Are there any warning/error messages above that anywhere? I can't remember exactly what the problem was, but it wasn't intuitive to me at the time either if I remember correctly.

Re: Another question concerning the For component

2006-04-10 Thread Mark Arnold
Sorry, I can't find anything wrong - but I'm just getting started with Tapestry myself... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Another question concerning the For component

2006-04-10 Thread Mike Snare
You showed that for the EditPatient page, but not in the ShowPatient page where the exception is occurring. Does some part (probably in ShowPatient.page) of the page attempt to access a 'doctor' property? If so, prove to yourself that getDoctor should exist in either ShowPatient or the enhanced s

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mark Arnold
Yeah, generally, I looked through the API and it looks like many, many objects and methods that give access to internal things are deprecated. The documentation says "Use injection instead", but I am using Java 1.4. And one important thing to consider: annotations will be coded into the class fi

RE: [OT] test case for pages that email

2006-04-10 Thread James Carman
I would use MockObjects for this and the second line would be something like: emailService.sendEmail( params ); Then, you give it a mock emailService and make sure it calls it. -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 11:16 AM To: Tapestr

Re: [OT] test case for pages that email

2006-04-10 Thread Mike Snare
If the message gets displayed, and you know it's because the code 'displayMessage()' on line N displayed it, it's probably a safe bet that the code on line N+1 executed... -Mike On 4/10/06, Dan Adams <[EMAIL PROTECTED]> wrote: > No no. Okay lets say I have some code in the page that does this: >

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
Hi James ;) I have the following in my page class: @Persist public abstract Person getDoctor(); public abstract void setDoctor(Person person); That should be enough, shouldn't it? Kind regards, Andreas - To unsubscribe, e-ma

RE: [OT] test case for pages that email

2006-04-10 Thread Dan Adams
No no. Okay lets say I have some code in the page that does this: displayMessage(); sendEmail(); How do you write a unit test that makes sure that the page actually calls the second line? You could take it out and still have the tests pass. I found a lightweight email server at http://www.ericda

RE: Another question concerning the For component

2006-04-10 Thread James Carman
Is the "doctor" property a persistent property? Did you declare it? -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Monday, April 10, 2006 10:59 AM To: Tapestry users Subject: Re: Another question concerning the For component Just to

Re: Another question concerning the For component

2006-04-10 Thread Andreas Bulling
Just to add the stack trace also to this thread - perhaps someone can help me with it ;-) org.apache.hivemind.ApplicationRuntimeException Error at context:/WEB-INF/pages/ShowPatient.page, line 6, column 21: Method 'public abstract de.plattform.domain.Person de.plattform.pages.ShowPatient.getDoctor

Page injection question

2006-04-10 Thread Mike Snare
I have a central repository (PageConstants.java) for page names. I need to inject a page into another. The problem is that It doesn't seem to work to inject the actual name of the page. Let's say I have a page named Foo. I would therefore have the following in PageConstants.java: public stati

RE: [OT] test case for pages that email

2006-04-10 Thread James Carman
You don't typically unit test a mail server. That's a deployment/configuration issue. If you're using JavaMail or Jakarta Commons Email to send your emails, you can be pretty sure that the emails will go out if your mail server is available and configured properly. -Original Message- Fro

Re: [OT] test case for pages that email

2006-04-10 Thread Dan Adams
Well, my page is going to display a message to the user letting them know but that doesn't ACTUALLY mean that the email was sent or the service was called. The way I have to do it right now is by having the email sent to me and checking my email manually. I would love to have it all automated thoug

Re: [OT] test case for pages that email

2006-04-10 Thread Mike Snare
Well, wouldn't you want to indicate to the user that the send was successful or not? If so, you could just look for that. I know you said that the submission doesn't affect the page but don't you want to let the user know it worked? -Mike On 4/10/06, Dan Adams <[EMAIL PROTECTED]> wrote: > Okay,

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 10:29:20, Mike Snare wrote: | Clearly, some object used as an expression prefix on line 106 of | ShowAdminPanel is null. Put a breakpoint there and see what it is. Now it works - thanks! :-) - To unsubscribe, e

[OT] test case for pages that email

2006-04-10 Thread Dan Adams
Okay, I have a page that, when submitted, sends an email. Now the page uses a service via interface that actually does the emailing and that service is tested separately. But how can I write a test that makes sure that my page actually calls that service and that the email gets sent since that does

Re: component-writing question

2006-04-10 Thread Mike Snare
Clearly, some object used as an expression prefix on line 106 of ShowAdminPanel is null. Put a breakpoint there and see what it is. -Mike On 4/10/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: > On 10. Apr 2006 - 10:15:16, Mike Snare wrote: > | Whenever you are asking for help with an exception,

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 10:15:16, Mike Snare wrote: | Whenever you are asking for help with an exception, it helps to | automatically post the exception with stack trace (there are often | more than one, post all of them). | | All you have said is that you are getting an | ApplicationRuntimeException.

Re: component-writing question

2006-04-10 Thread Mike Snare
Whenever you are asking for help with an exception, it helps to automatically post the exception with stack trace (there are often more than one, post all of them). All you have said is that you are getting an ApplicationRuntimeException. Without more info, that's next to meaningless. -Mike On

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 15:52:29, Andreas Bulling wrote: | I debugged the application step by step and the error | seems to occur in the DirectService service() method | when ResponseRenderer->renderResponse() gets called. I did some more steps and it seems as if the error occurs during page/component r

Re: component-writing question

2006-04-10 Thread Andreas Bulling
Please... Does one of the gurus have the (short) time to try to help me with my problem? As I wrote I'm able to create the DirectLinks using Java but when I click on the link I get an ApplicationRuntimeException. I debugged the application step by step and the error seems to occur in the DirectSer

Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Stephane Decleire
Hi, I've developped a bulletinboard module in Tapestry that i would share in several Tapestry application. By sharing, i mean the bulltinboard is a rubric in each application so it's the same but the header and the footer are different in each application. Is there a simple approach to do thi

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mike Snare
As I recall, one of tap's stated goals is to become a framework without a need for developers to extend any base class (i.e. BasePage, BaseComponent). If that *is* a goal, it seems like this is not just wanted, but needed. -Mike Then there's the whole composition vs. inheritance issue... (http:/

Re: Injecting common properties for multiple pages

2006-04-10 Thread Martijn Hinten
I asked this same question about half a year ago. Most answers refer to either annotations or using a smart subclassing of a given base class. But what if you are still using Java 1.4 and hence not able to use annotations and are neither willing to implement a subclassing solution, because imho

Re: Tapestry 4.0.1 validation problem

2006-04-10 Thread Angelo Luis
the pt_BR locale... If this is a tapetry error and don't mine i can do that ;-) ... On 4/10/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Can you be more specific about which locale this was for? Possibly firing > a > jira issue? > > On 4/10/06, Angelo Luis <[EMAIL PROTECTED]> wrote: > > > > Hi

Re: Injecting common properties for multiple pages

2006-04-10 Thread Mike Snare
I must say that this notion of inserting common ASOs and services into all pages has come up several times on this list in just the last month I've been subscribing. @Tap Team: How difficult would it be to add the ability to either: A) declare services/aso's as 'global' (or some better label),

Re: Tapestry 4.0.1 validation problem

2006-04-10 Thread Jesse Kuhnert
Can you be more specific about which locale this was for? Possibly firing a jira issue? On 4/10/06, Angelo Luis <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm update the tapestry 4.0 for 4.0.1and the validation don't change the > placeholders, with the message "bla bla bla {0}". don't change to NAme,

Tapestry 4.0.1 validation problem

2006-04-10 Thread Angelo Luis
Hi, I'm update the tapestry 4.0 for 4.0.1and the validation don't change the placeholders, with the message "bla bla bla {0}". don't change to NAme, adress , etcc...

Re: spindle

2006-04-10 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, Spindle is still under development. Per a message from Geoff on the 7th: No I'm not dead and the project isn't either. Just stuck in a bit of a death march at work until after the 15th. Cheers, Geoff Korbinian Bachl wrote: > Hi, > > does any

Custom AJAX form component and FieldLabel issue

2006-04-10 Thread Simeon Koptelov
Hello. I wrote a cascade select component - it consists of two PropertySelections and adjusts values list of the second when selection in first changes. This component uses AjaxDirectLink to refresh second list. My problem is that I can't attach FieldLabel to this component because 1. It does

Re: spindle

2006-04-10 Thread Francis Amanfo
Tyi, Spindle for T4 is in a deep coma, dying a very slow death! ;-) F On 4/10/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Hi, > > does anyone know if spindle for T4 is still under development ? - the > spindle blog says "on vacancy from 24th on..." and the mailing list also > has > no big

  1   2   >