T5: best approach in testing a service

2007-12-20 Thread Angelo Chen
Hi, If I am writing a service which does not require any other tapestry modules, I can simply use TestNG to do some testing on the class, but if the service requires Tapestry-hibernate, then how can I test it? I have to start from a page then goes to the service using pageTester? thanks for shar

Conditional validation in T4?

2007-12-20 Thread Drew McAuliffe
I'm running into a problem with validators in T4. I have a situation where I sometimes need to validate a field on a form, but only if another field on the same form has a certain set of values. For example, a "ship quantity" field on an order form is only required if the order delivery method is "

Re: T5: A web flow idea on T5

2007-12-20 Thread Dapeng
in the step 3 if the specific page would to render the next link, what is the purpose of the WEBFLOW? isn't the WEBFLOW'S responsibility to take care of the page navigation?? well i guess the purpose of having such a concept of WEBFLOW is to decouple the Page presentation from the page navigat

T5: Message component

2007-12-20 Thread Joshua Jackson
Dear all, Is there a message component in T5? Usually I use this in struts to display message after succession upon one process. What I've found is only the t:errors component. Thanks in advance. -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.com/ --

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread Angelo Chen
Hi Jeffrey, do you meant the third party URLRewriter, http://tuckey.org/urlrewrite/ this one? jeffrey ai wrote: > > Angelo, > > You could use URLRewriter to do this job for you. For details, pls see my > post at the following thread: > http://www.nabble.com/url-rewriting-in-Tapestry-5-to128

Re: Maven: archetype.xml descriptor cannot be found

2007-12-20 Thread Andy Huhn
Martin, I agree with you...I think I initially tried gcj, but quickly gave up and switched to sun's jdk. I've used jdk 1.5 and 1.6 both, and haven't noticed issues with either one. Andy On Thu, 2007-12-20 at 17:39 +0100, Martin Ågren wrote: > > I'm on Debian Lenny also, and I haven't had any i

[T5] Type Coercion contribution at runtime

2007-12-20 Thread Tandel Sascha
Hello all, is it possible to contribute a TypeCoercer at runtime for a class generated with ClassFactory? And another question: Could some please give me an extended example how to use the Strategy Pattern. (i already read http://tapestry.formos.com/nightly/tapestry5/tapestry-ioc/strategy.h

Re: T5: A web flow idea on T5

2007-12-20 Thread Joshua Jackson
I like the idea of web-flow like yours. It's not as complicated as Spring Webflow which involves a helluava xml. I hope tapestry5 would adopt your idea. Cheers. On 12/21/07, jeffrey ai <[EMAIL PROTECTED]> wrote: > > Hi All, > > As you may know or not, T5 doesn't have a web flow framework like the

Re: [T4]: EventListener autoSubmit

2007-12-20 Thread Kevin Menard
On 12/20/07 5:51 PM, in article [EMAIL PROTECTED], "Jesse Kuhnert" <[EMAIL PROTECTED]> wrote: > In theory it will take all the arguments to the client side function > (including the javascript event, which should have a > target/relatedTarget/etc attribute attached to it) and serialize them > in

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Josh Canfield
Yeah, I'm not convinced either. Also, ApplicationState for instance should probably be stored outside of the context of a conversation as well... Josh On Dec 20, 2007 2:03 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > you are right, that is more usefull. > > instead introducing conversation to fiel

Re: T-4.1.3 build failure...mojo descriptors found in plugin

2007-12-20 Thread Jesse Kuhnert
Really, please. I try to stay as nice/professional as I can here but this is getting silly. Please post just "ONE" email message per topic if at all possible. Obviously there are normal circumstances where it makes sense to do it but almost always replying to your own email with two or more fol

Re: [T4]: EventListener autoSubmit

2007-12-20 Thread Jesse Kuhnert
Heh...If it were correctly not submitting the form I'm still not sure if you'd be able to figure out what the value bound to the checkbox is. Marcus did add something semi - recently that may actually give you what you want. If your BrowserEvent object has a getMethodArguments() method then you

RE: T-4.1.3 build failure...mojo descriptors found in plugin

2007-12-20 Thread Ken in nashua
I found this... http://www.nabble.com/-jira--Created-3A--28TAPESTRY-1914-29-Nightly-build-broken-inside-quickstart-module-to13777115.html Someone too lazy to update the tags? Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: T-4.1.3 build failure...mojo descriptors found

T-4.1.3 build failure...mojo descriptors found in plugin

2007-12-20 Thread Ken in nashua
Any help appreciated... O reset my local repo and checked out fresh T-4.1.3 tag branch and attempted to build. [INFO] [plugin:descriptor][INFO] Using 2 extractors.[INFO] Applying extractor for language: java[INFO] Extractor for language: java found 0 mojo descriptors.[INFO] Applying extract

[T4]: EventListener autoSubmit

2007-12-20 Thread Kevin Menard
Hi, I've just finally gotten back around to messing with the T4 async stuff. The first thing I wanted to try was a simple shipping/billing info wizard where clicking a checkbox labeled "same shipping info" would grab the shipping info and populate the form on the billing info page. Generally I ha

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Davor Hrg
you are right, that is more usefull. instead introducing conversation to field level, it should be set at page/component level. flash is I suppose already session specific and should be also conversation specific, but I'm still not convinced that something should be done to those that explicitly

Re: [T5] Dynamic created bean class not found

2007-12-20 Thread Tandel Sascha
Thanks Howard! Even when didn't understand my explantion ;) your hint for ClassFactory worked. Before i created the bean class with plain javassist and so bypassed the tapestry classloader i think. With ClassFactory it works. I think i have to take a much deeper look in to the docs then i

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-20 Thread Sylwek
Hi, will it be possible to use in this case BeanEditForm with component Select ? Something like this: Sylwek -- View this message in context: http://www.nabble.com/T5-%3A-select-component-in-a-form-didn%27t-show-the-selected-value--EDIT-MODE--tp14414479p14445453.html

Re: [T5] Dynamic created bean class not found

2007-12-20 Thread joachim
Are you running inside an application server? You want need to configure javassist to use the context classloader. See http://blog.progs.be/?p=52 Kind regards, Joachim Tandel Sascha <[EMAIL PROTECTED]> wrote: > Hello all, > > > First of all i'm using Tapestry 5.0.7. > > In a project i have

Re: [T5] Dynamic created bean class not found

2007-12-20 Thread Howard Lewis Ship
I'm having trouble getting a handle on what you are trying to accomplish, and where you have gone wrong. Generally, when creating entirely new classes, you do this by injecting the @ComponentLayer ClassFactory service. On Dec 20, 2007 10:58 AM, Tandel Sascha <[EMAIL PROTECTED]> wrote: > Hello al

Re: [T4] OGNL bytecode compilation in Tapestry/status of tapestry-prop?

2007-12-20 Thread Marcus Schulte
Hi Kaspar, you are right OGNL bytecode compilation is enabled in all Tapestry-versions >= 4.1.2. As far as I can see, the performance improvements will be substantial for high-volume public sites where server-cpu load is a performance-bottleneck. If you are not satisfied with rendering times in sin

[T5] Dynamic created bean class not found

2007-12-20 Thread Tandel Sascha
Hello all, First of all i'm using Tapestry 5.0.7. In a project i have to generate beans for use in grid and beanEditor on the fly because the underlying class ist not a bean. The with javassist generated bean simply delegates all calls. To use this bean as source for the grid component i

Re: T4: New tacos release

2007-12-20 Thread Martino Piccinato
Congratulation Andy, I still think tacos is a must for tapestry users and look forward for tapestry 4.1.4/dojo 1.0 upgrade On Dec 19, 2007 8:10 PM, andyhot <[EMAIL PROTECTED]> wrote: > Hi, > the new tacos release (4.1.1) is already deployed at maven's central repo. > > Details are at http://taco

T5: A web flow idea on T5

2007-12-20 Thread jeffrey ai
Hi All, As you may know or not, T5 doesn't have a web flow framework like the Spring one yet. Howard mentioned he may add it in the next release. However, our project cannot wait for that, therefore I have created a simple one on T5. Here is the general idea, your comments are **GREATLY APPRECIAT

Re: Rendering a component from it's name

2007-12-20 Thread Josh Canfield
Hi Alex, A delegate component is used to render a block component. I don't believe you are going to be able to find a general way to grab any component from your project and dynamically stick it in the page. Read Principle 1 -- Static Structure, Dynamic Behavior on http://tapestry.formos.com/nigh

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Josh Canfield
Hello, I think Flash persistence would also want to be in the context of the conversation, otherwise couldn't messages show up in the second window that were intended for the first (perhaps with a slow connection to the server?) Without having spent much time thinking about this (and never having

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread jeffrey ai
Angelo, You could use URLRewriter to do this job for you. For details, pls see my post at the following thread: http://www.nabble.com/url-rewriting-in-Tapestry-5-to12823397.html#a12823397 Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi, > > T5's url is nice looking, however I have a need to ha

Re: [T5] best practice to cancel edit page

2007-12-20 Thread jeffrey ai
Homburg, I noticed the same problem too. If you have a normal cancel button in a T5 form as your save button, a post request will be sent back to the page to go through the validation method and even onSuccess() method. My solution to this problem is to create an ActionLinkButton component. It

RE: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-20 Thread Marcus.Schulte
> > I suppose your page implements IExternalPage? > > You mean that I create a single Tapestry class implementing > IExternalPage, right? All my (variably many) pages use this > class. Correct? Yes. > > > If you seed you page/app with external parameters which you > need later > > on, in s

Re: T4: New tacos release

2007-12-20 Thread Alejandro Scandroli
congratsOnTheNewRelease++; Thank you Andreas, excellent work. -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Dec 20, 2007 3:22 AM, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > Congrats on the new release, excellent job once again! > > Kalle > >

Re: Maven: archetype.xml descriptor cannot be found

2007-12-20 Thread Martin Ågren
> I'm on Debian Lenny also, and I haven't had any issues. Although I > believe I was on T5.0.5 when I installed the quickstart, not 5.0.6. > > Andy > > On Wed, 2007-12-19 at 17:38 +0100, Martin Ågren wrote: > > Hi, > > > > It surprises me not having heard about this yet, so I might be doing > > s

Re: How to use images outside webroot

2007-12-20 Thread Sven Homburg
goto Project Settings and add a new "Web Resource Directory" best regards S.Homburg [EMAIL PROTECTED] schrieb: During development I would like to access/use images that are on a network drive (e.g. f:\images) as I dont have enough space on my harddisk. How can I tell Tapestry that it fin

Re: T5:why my dispatcher not got called?

2007-12-20 Thread Kristian Marinkovic
try: public static void contributeMasterDispatcher(...) { configuration.add("LocaleDispatcher", localeDispatcher,"before:PageRender"); configuration.add("anotherserviceid",anotherservice,"before:LocaleDispatcher"); } this is the reason why you have to provide an id... then you can apply be

Re: T5:why my dispatcher not got called?

2007-12-20 Thread Angelo Chen
Hi Howard, If I want to add another Dispatcher before the one I just added, how to do that? I already have this: public static void contributeMasterDispatcher(OrderedConfiguration configuration, @InjectService("LocaleDispatcher") Dispatcher localeDispatcher) { System.ou

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread Angelo Chen
Thanks Peter and Marcelo, your tip works, for the intended page, it is request.getPath(). A.C. Peter Stavrinides wrote: > > response.sendRedirect(arg0), a redirect should not be used for an error > > -- View this message in context: http://www.nabble.com/T5%3A-redirect-page-in-a-Dispatch

Re: backport 5.0.5 fix to 4.1.3?

2007-12-20 Thread Jesse Kuhnert
I can certainly look in to it some but I don't think that this is the same problem. The class in question is another generated class that should theoretically have been generated by the same javassist instance pool that everything else is done in. This has come up before but I've never been abl

Re: T4: problem with OGNL expression caching

2007-12-20 Thread Alejandro Scandroli
Hi Andy The issue It's not the "caching" mechanism, it's the ognl to bytecode compiler. Don't worry it's easy to fix. Create a common "interface" with the "getSomeProperty" method and make all your pages implement that interface. That should be all. -- Alejandro Scandroli Amneris: We build proces

Re: Checkbox inside contrib:table (again)

2007-12-20 Thread munich
The following example is clear: Baz But what about the Java code? How do you get a list of selected objects back? The checkboxes are not mapped to anything ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread Marcelo Lotif
Hi Angelo, I use the sendRedirect, like peter said, instead of throw a RuntimeException: response.sendRedirect(request.getContextPath() + "/start"); if you want to execute a method on the page, you should try something like "/start.init/STRING_VALUE". You must have a init(String arg) waiting on t

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-20 Thread Kaspar Fischer
Dear Marcus, First of all, thanks a lot for your reply! I am not sure whether I understand what you say. I have a variable (and huge) number of actual pages. (In fact, each is coming from a DB entry.) Because the number is variable, I chose to implement a *single* Tapestry page class for t

Re: T5: redirect page in a Dispatcher

2007-12-20 Thread Peter Stavrinides
Hi Angelo, You already have the request and response object what else would you need? the Dispatcher example is great, but a changed a few lines, for errors I use: response.sendError(401, "Authentication failed") instead of the exception which I feel is not appropriate,for a redirect you coul

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-20 Thread Kaspar Fischer
Hi Andreas, On 20.12.2007, at 11:36, Andreas Pursian wrote: How can I use a DirectLink on a page that depends on a parameter, for instance of, on a page like this http://my.org/app?page=Article&id=27 So if i got the point, you just want to create a link that refers to a special article wic

[T4] OGNL bytecode compilation in Tapestry/status of tapestry-prop?

2007-12-20 Thread Kaspar Fischer
Dear list, I am confused about the status of OGNL that comes with Tapestry 4.1.3. I read on http://blog.opencomponentry.com/2007/01/14/new-ognl-release-on-the- horizon-its-faster that bytecode compilation has been implemented for OGNL and that this is in Tapestry 4.1.2 already. * Is this t

Rendering a component from it's name

2007-12-20 Thread Alexander Lamb
Hello, I would like to render a component that would be chosen from it's name (a String). Something like: In the enclosing component I would have: public String getMyComponentName() Which returns the name of a component in my project. It would be instantiated and the parameters (param1

T4: problem with OGNL expression caching

2007-12-20 Thread Andy Pahne
I have a compomen "ItemDetails" which is used in many pages. In the component's template there is an ognl expression like "ognl:page.someProperty". Unfortunatly this expression is cached (I think). page always evaluates to the first page that I opened after deployment. On the other pages a

How to use images outside webroot

2007-12-20 Thread munich
During development I would like to access/use images that are on a network drive (e.g. f:\images) as I dont have enough space on my harddisk. How can I tell Tapestry that it finds "localhost:8080/images/image.gif" here "f:\images\image.gif" ? ---

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-20 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Kasper, > How can I use a DirectLink on a page that depends on a parameter, for > instance of, on a page like this > > http://my.org/app?page=Article&id=27 So if i got the point, you just want to create a link that refers to a special article w

Render portlets after browser refresh

2007-12-20 Thread shepy
Hello, I have noticed that, when i refresh portlet page from browser, the render event is not fired. How can i force portlet to rerender. My portlet view is dependant on database information which is changed constantly so i need somehow to render portlet every time the database information is

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Francois Armand
Kristian Marinkovic wrote: hi davor, Hi, Sorry I jump in the thread, you're right... "flash" will be an excpetion :)... the problem is that if you use components (libraries) of other teams or third party components that persist values in the session you still want to be able to use it in a

RE: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-20 Thread Marcus.Schulte
I suppose your page implements IExternalPage? If you seed you page/app with external parameters which you need later on, in subsequent requests, store them in page/component properties marked as @Persist-ent. > -Original Message- > From: Kaspar Fischer [mailto:[EMAIL PROTECTED] > Sent: We

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Kristian Marinkovic
hi davor, you're right... "flash" will be an excpetion :)... the problem is that if you use components (libraries) of other teams or third party components that persist values in the session you still want to be able to use it in a conversation without changing the component. making it easy

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Davor Hrg
It seems you are trying too hard to fix user mistakes, a developer using the conversation persistence strategy must be aware of it and code accordingly. Forcing a specific persistence strategy can also cause undesired behaviours (for example error messages that use @Persist("flash")) these are ju

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Kristian Marinkovic
hi filip, @Meta("tapestry.persistence-strategy=conversation") only works if the @Persist annotation does not specify a strategy. I want to override the strategy even if the developer has set it to a specific strategy so whenever a conversation is started the values of all persistent fields