Re: Add a button to BeanEditForm

2007-12-03 Thread Howard Lewis Ship
Currently, you would need to build your own Form, including an Errors component, a BeanEditor component, and you own Submit components. On Dec 3, 2007 12:18 PM, Christoph Jaeger [EMAIL PROTECTED] wrote: Hi, is there an easy way of adding a button to a BeanEditForm? Just an additional Delete

Nightly docs fixed - and some general notes

2007-12-04 Thread Howard Lewis Ship
The nightly docs are now fixed. My hatred of Maven is growing quickly. You may not be aware of this, but Jesse fixed the Surefire plugin for Maven almost two years ago and that STILL isn't the default version (i.e., the non-snapshot version). In order to get some new tests working, I had to

Re: [T5] Obtaining a relative directory path

2007-12-05 Thread Howard Lewis Ship
This should work: img src=${asset:context:images/some_image.gif}/ The value inside a ${...} expansion is actual a binding in disguise, so it can use binding prefixes such as prop: (the default), message: or asset:. However, inside a template, the current location is on the classpath (i.e.,

Re: [T5] Obtaining a relative directory path

2007-12-05 Thread Howard Lewis Ship
One more note .. if that is awkard for you ... write a one-liner component to take care of this for you! On Dec 5, 2007 8:06 AM, Howard Lewis Ship [EMAIL PROTECTED] wrote: This should work: img src=${asset:context:images/some_image.gif}/ The value inside a ${...} expansion is actual

T5: Anyone using PageTester?

2007-12-05 Thread Howard Lewis Ship
PageTester, Kent Tong's unit/integration testing layer for T5, is increasingly becoming difficult to maintain properly ... how many people are currently relying on it? -- Howard M. Lewis Ship TWD Consulting, Inc. Creator Apache Tapestry and Apache HiveMind

Re: Request Filter with ApplicationStateManager

2007-12-05 Thread Howard Lewis Ship
I think, at the very least, we need to handle the null case better, with a message that explains what property of what object/service is null. Further, it's looking like the current approach is a little heavy-handed; perhaps the Request and Response objects should be created earlier and stored

Re: T5: Anyone using PageTester?

2007-12-05 Thread Howard Lewis Ship
That's all good to hear, and I found a reasonable way to keep it in place without disrupting things. On Dec 5, 2007 1:57 PM, Mark Horn [EMAIL PROTECTED] wrote: My team uses PageTester to unit test all our Page classes. We have found it very useful. PageTester, Kent Tong's unit/integration

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Howard Lewis Ship
So, there's no chance that you have a copy of the common module lib on the general classpath and in WEB-INF/lib? On Dec 5, 2007 7:26 AM, Steve Eynon [EMAIL PROTECTED] wrote: Hello, I have a number of T5 web apps that all use a common component module. In the component's module class (as

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Howard Lewis Ship
That's true, if its not clear, only the module containing the WebsiteTagsModule class should have an entry in its Manifest pointing to the class. On Dec 5, 2007 8:25 AM, Thiago HP [EMAIL PROTECTED] wrote: On 12/5/07, Steve Eynon [EMAIL PROTECTED] wrote: java.lang.RuntimeException: Service

Re: [T5] Re-inject or inherit services in children ?

2007-12-06 Thread Howard Lewis Ship
I've found that, quite often, there's a little bit of processing around the injected service method invocation, so that's where the base page can really add some value: collect and pre-processing the values before invoking the method. For example, I was just working on PageLink and ActionLink and

Re: t5: violates loader constraints-error when loading pages into ioc-injected class-instance

2007-12-06 Thread Howard Lewis Ship
If you need a page instance, you need to go through the appropriate Tapestry services ... unfortunately, some of them are internal. Nonetheless, Tapestry enforces a specific lifecycle on Tapestry pages and components and if you attempt to instantiate them directly you will fail. If you have

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-08 Thread Howard Lewis Ship
Makes me wonder if Tapestry modules should be final? On Dec 8, 2007 9:12 AM, Steve Eynon [EMAIL PROTECTED] wrote: To clear this one up, I was in error. My App Module class extended the Component Module class. (Doh!) I now remember doing this to have the Jetty Launcher in Eclipse pick up the

Re: [T5] Component Module Templates Not Rendering

2007-12-08 Thread Howard Lewis Ship
Is there any chance you are using Ant filters when copying resources into the deployed WAR? Try expoding the WAR and checking the files direclty. Filtering (the thing that finds @FOO@ and replaces the value with something else) will corrupt binary files quite often. On Dec 8, 2007 10:10 AM,

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-09 Thread Howard Lewis Ship
already been defined error message. Steve. On Dec 8, 2007 5:26 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Makes me wonder if Tapestry modules should be final? On Dec 8, 2007 9:12 AM, Steve Eynon [EMAIL PROTECTED] wrote: To clear this one up, I was in error. My App Module class extended

Re: [T5] strange error

2007-12-12 Thread Howard Lewis Ship
Component ids should not have periods in their name. The fact that the parser even allows it is an error. On Dec 12, 2007 1:02 AM, Salamon Zsolt [EMAIL PROTECTED] wrote: Hi I got this error and I don't know why. I use 5.0.5 Tapestry. Intez is a page object. EditForm is a Component object.

Re: [T5] strange error

2007-12-13 Thread Howard Lewis Ship
: It's ok. But I don't use any Component with period. The @Persist private Tezm itm is not a Component. It's a simple variable. Or do I know wrong? On Dec 12, 2007, at 14:04, Howard Lewis Ship wrote: Component ids should not have periods in their name. The fact

Re: T5: Quartz and the IoC Registry?

2007-12-15 Thread Howard Lewis Ship
The Registry is not exposed, a service may be passed its ServiceResources via a constructor parameter. This is an extension of ServiceLocator, which includes all the key methods of Registry, allowing services to be obtained by type or by service id. In addition, starting in 5.0.7., service

Re: New community site based on t5

2007-12-15 Thread Howard Lewis Ship
I'm afraid what Sven was saying was that the site is very small and incomplete and doesn't demonstrate, to the outside world, anything razzle-dazzle. That's the problem with dev tools, you only see the tip of the iceberg (the finished project) and don't see the real impact below the water line.

Re: T5: Anything new preview coming out before year end?

2007-12-17 Thread Howard Lewis Ship
Quite likely, but you can always see the latest greatest in the nightly build. On Dec 17, 2007 3:18 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, Anything new preview scheduled for 2007? A.C. -- View this message in context:

Re: T5-Can't find Ajax doco under tapestry-code

2007-12-18 Thread Howard Lewis Ship
Yes, and that's the point. The formos site contains nightly builds and up to date documentation for *unreleased* code. The main site contains documentation for the most recent release. On Dec 18, 2007 7:47 PM, Weisu [EMAIL PROTECTED] wrote: Sorry, I can see it now. But if you go through the

Re: T5:why my dispatcher not got called?

2007-12-19 Thread Howard Lewis Ship
contribute methods should be named after the service to which you make the contribution. Try naming the method contributeMasterDispatcher. On Dec 18, 2007 9:50 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I have a dispatcher that I like it to be called before page renders, problem is, it

Re: T5:why my dispatcher not got called?

2007-12-19 Thread Howard Lewis Ship
services. That's a tremendously low priority concern for you, so just make all your module class' methods static. Thanks, A.C. Howard Lewis Ship wrote: contribute methods should be named after the service to which you make the contribution. Try naming the method contributeMasterDispatcher

Re: Can't get Tapestry5 to work with Spring

2007-12-19 Thread Howard Lewis Ship
On Dec 19, 2007 10:58 AM, Joel Wiegman [EMAIL PROTECTED] wrote: 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

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 all,

Re: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Howard Lewis Ship
Between release 5.0.5 and 5.0.6 Tapestry switched from commons-logging to SLF4J. You want to be injecting an org.slf4j.Logger instead. On Dec 21, 2007 7:44 AM, [EMAIL PROTECTED] wrote: Joel, Simplifying is, of course, a good suggestion. So I reduced my DAO to a plain POJO (no longer extends

Re: T5: Message component

2007-12-21 Thread Howard Lewis Ship
I think you are missing an @Parameter on field _class. On Dec 21, 2007 5:06 AM, Sven Homburg [EMAIL PROTECTED] wrote: like this ? /** * * @author a href=mailto:[EMAIL PROTECTED]shomburg/a * @version $Id$ */ public class MessageDisplay { /** * message that should displayed.

Re: components collection release 0.5.0

2007-12-22 Thread Howard Lewis Ship
Fast! On Dec 22, 2007 11:40 AM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog

Re: components collection release 0.5.0

2007-12-22 Thread Howard Lewis Ship
examples, and deploy at http://mp2.crecg.com/tapestry-core-demo/ Forgive me if these have problems, Howard M. Lewis Ship Korben Zhang Tfan On 12/23/07, Sven Homburg [EMAIL PROTECTED] wrote: the early bird catch the worm ;-) best regards S.Homburg Howard Lewis Ship schrieb

Re: T5: onActive()

2007-12-23 Thread Howard Lewis Ship
Your template has a relative URL to a file commons.css, that does not exist. Because the file is missing, Tapestry thinks that the request is for the application, and invokes your page, including the activation part. On Dec 23, 2007 8:01 AM, osamuo [EMAIL PROTECTED] wrote: Hi, I have

Re: T5: Tapestry 5.07 released?

2007-12-26 Thread Howard Lewis Ship
I've been away, skiing. I'll be putting the 5.0.7 release up tomorrow. On Dec 26, 2007 3:22 PM, Angelo Chen [EMAIL PROTECTED] wrote: already more than 3 days, time to released? Davor Hrg wrote: 5.0.7 release is currently under vote -- View this message in context:

Re: why special position for pages, components and ...?

2007-12-27 Thread Howard Lewis Ship
There are a number of reasons. Convention over configuration. Your @Page annotation is just another bit of configuration that is obviated by putting classes in a known directory. Although the layout mandated by T5 is required, it is also the layout that I recommended for T4, even though more

Re: T5: createActionLink, delimiter : and .

2007-12-27 Thread Howard Lewis Ship
Your method is named incorrectly. It should be onSend() or onSendFromFoo() (where Foo is the component id). On Dec 25, 2007 11:34 PM, Foror [EMAIL PROTECTED] wrote: When I call a createActionLink(send, false, 2050) in page then link is message:send/2050. And it does not work

Re: T5.0.7 still can't resolve encoding.

2007-12-28 Thread Howard Lewis Ship
Thanks, will look into this. On Dec 27, 2007 6:59 PM, yuan gogo [EMAIL PROTECTED] wrote: I got t5.0.7 this morning. As I'm a Chinese user, I use utf-8 encoding for my application. But, while upload file and some text, I got this: java.lang.NullPointerException: charsetName

[ANNOUNCE] Tapestry 5.0.7

2007-12-28 Thread Howard Lewis Ship
Tapestry 5 preview release 5.0.7 is now available for download, and via Maven. 5.0.7 features a bunch of bugs fixes and improvements including a major revamp to client-side validation and the start of Ajax support. The new validation is a very interesting experiment, as it uses a popup bubble to

Re: T5.0.7 Validation error

2007-12-28 Thread Howard Lewis Ship
Try clearing your browser cache, you may have the old tapestry.js stuck in there. On Dec 28, 2007 10:29 AM, Marcelo Lotif [EMAIL PROTECTED] wrote: When i switch to the 5.0.7 version, the validations of my BeanEditForms doesn't work properly... I have a BEF to add a user to the database. When i

Re: Does Tapestry5 support Portlets specs JSR168 and 286

2007-12-28 Thread Howard Lewis Ship
Currently there are not plans to support Portlets in T5 for the initial release. If there is enough interest, it will be added as a follow on. It will be much easier to add to T5 than it was to T4, since a lot of the ideas in T5 came from T4 and its portlet support. such as the action request /

Re: T5: 404 http error

2007-12-28 Thread Howard Lewis Ship
I think we need a new class, ErrorResponse, that can be returned as a way to invoke response.sendError(). The StreamResponse handler wants to send a stream of content, which causes problems because after sendError() the response is committed (meaning you can't legally obtain an output stream or

Re: T5.0.7 Validation error

2007-12-28 Thread Howard Lewis Ship
: Friday, December 28, 2007 2:40 PM To: Tapestry users Subject: RE: T5.0.7 Validation error 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

Re: T5.0.7 Validation error

2007-12-28 Thread Howard Lewis Ship
techniques? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 3:25 PM To: Tapestry users Subject: Re: T5.0.7 Validation error Tapestry 5.0.7 adds a new way of validating input from the client, a validate event that is emitted from

Re: Does Tapestry5 support Portlets specs JSR168 and 286

2007-12-28 Thread Howard Lewis Ship
PROTECTED] wrote: would it be completely ridiculous for a T5 component to house a portlet? is that at all feasible? -mike On Dec 28, 2007, at 2:06 PM, Howard Lewis Ship wrote: Currently there are not plans to support Portlets in T5 for the initial release. If there is enough interest

Re: [ANNOUNCE] Tapestry 5.0.7

2007-12-28 Thread Howard Lewis Ship
. Happy New Year! Imants Firsts Quoting Howard Lewis Ship [EMAIL PROTECTED]: Tapestry 5 preview release 5.0.7 is now available for download, and via Maven. 5.0.7 features a bunch of bugs fixes and improvements including a major revamp to client-side validation and the start of Ajax

Re: T5-Intellij: 5.0.7 in pom.xml

2007-12-29 Thread Howard Lewis Ship
So, you've used the synchronize option in the Maven Projects view? On Dec 28, 2007 5:21 PM, Bill Holloway [EMAIL PROTECTED] wrote: I changed the tapestry-release-version in my pom.xml to 5.0.7 in the pom.xml that was generated by the quickstart maven call when 5.0.6 was the latest. The

Re: Displaying form data in Tapestry 5

2007-12-31 Thread Howard Lewis Ship
I believe this is covered in the tutorial. It is important that data that must survive from one request to another be stored in a field marked with @Persist. Tapestry manages the HttpSession for you, triggered by the @Pesist annotation (and a few others). Tapestry 5, like Portlets, uses

Re: [T5] Tapestry 5 and IntelliJ IDEA

2008-01-02 Thread Howard Lewis Ship
I'm on IDEA 7 and have no problems at all with this stuff. I can't remember doing any special configuration, beyond adding *.tml as an XML file (in the File Types view of the preferences panel). Hm. Actually, I do see one intention error, URI is not registerred. Used the intention ... ok, now

Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Howard Lewis Ship
That's supposed to work; there was a bug in 5.0.6 that may have caused this behavior (and is fixed in 5.0.7). On Jan 2, 2008 1:43 AM, Britske [EMAIL PROTECTED] wrote: A strange thing happens. following an example of returning a streamresponse based on a user-click, this all works well in IE7

Re: T5.0.7: No service implements the interface org.slf4j.Logger

2008-01-02 Thread Howard Lewis Ship
That's odd, I don't understand why it would have worked in 5.0.5! A Logger should only be available for a service builder method, not for a contribution method. On Jan 2, 2008 11:18 AM, Franz Amador [EMAIL PROTECTED] wrote: This used to work, but now it's broken for me in 5.0.6 and 5.0.7. I'm

Re: T5.0.7: No service implements the interface org.slf4j.Logger

2008-01-02 Thread Howard Lewis Ship
it the Logger, then make my built DatabaseConnectionPropertiesHibernateConfigurer an argument to contributeHibernateSessionSource? Franz - Original Message From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Wednesday, January 2, 2008 11:27:18 AM

Re: BeanEditor TextArea

2008-01-03 Thread Howard Lewis Ship
That is strange, it should work as you have shown it. I know this behavior works ... there are unit tests to verify it. Ooops, please file a bug. I see the problem; BeanEditForm supports informal parameters, but BeanEditor does not! On Jan 3, 2008 1:05 PM, Mark Horn [EMAIL PROTECTED] wrote:

Re: T5: how to get all embedded component ids

2008-01-04 Thread Howard Lewis Ship
The APIs tend to reflect only the operations that are necessary; Tapestry's internals don't require access to this information, so it is not currently available. You can add an issue if you need this functionality, but an explanation of your use case will be pivotal in getting anything

Re: T5: Logging

2008-01-04 Thread Howard Lewis Ship
I think this is an excellent suggestion. On Jan 4, 2008 12:48 PM, Will Norris [EMAIL PROTECTED] wrote: On Jan 4, 2008, at 11:56 AM, Will Norris wrote: Perhaps a specific string can be prepended to T5 framework log messages, so that they can be filtered out in the logger configuration?

[T5] Component Libraries

2008-01-05 Thread Howard Lewis Ship
Hey Component Library Authors, Please update issue TAPESTRY-2024 with the details of your library: https://issues.apache.org/jira/browse/TAPESTRY-2024 Include correctly spelled name, URL, name of Author/Owner and a one-sentence description. I'll make sure it goes onto the main Tapestry 5 site.

Re: BeanEditor TextArea

2008-01-05 Thread Howard Lewis Ship
And I've already fixed it (in the 5.0.8 nightly snapshot). On Jan 3, 2008 6:22 PM, Mark Horn [EMAIL PROTECTED] wrote: Thanks Howard. I have created the bug in JIRA it is https://issues.apache.org/jira/browse/TAPESTRY-2013 On 1/3/08, Howard Lewis Ship [EMAIL PROTECTED] wrote

Re: T5 Grid How to show embedded property-values?

2008-01-06 Thread Howard Lewis Ship
That's supposed to work. Please show more of your code. On Jan 6, 2008 7:48 AM, Otho [EMAIL PROTECTED] wrote: Hi all, How is it possible to show properties of embedded objects in a grid? Example: class Master { String name; Slave slave; } class Slave { String name; Date

Re: [Tapestry 5] Template question

2008-01-07 Thread Howard Lewis Ship
, Martin Papy Howard Lewis Ship TWD Consulting, Inc. Creator: Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: var: in 5.0.8

2008-01-07 Thread Howard Lewis Ship
Check the nightly build for latest documentation. This is covered. var: is decidedly simple, you can reference a render variable, but since it is an Object in a Map, Tapestry doesn't have any type information about the Object, to allow it to build (non-reflective) property access, the way prop:

Re: What's heartbeat ?

2008-01-07 Thread Howard Lewis Ship
The Field/Label example is pretty canonical, you don't know the order they will render in (the Label generally before the Field, in western languages). The Label knows the field but not vice-versa. You need the Field to render before you can fully render the Label. Thus we put off a portion of

Re: T5: Multiple clicks causing NPE

2008-01-08 Thread Howard Lewis Ship
That doesn't look good .. but it is an earlier version of the framework, looks like 5.0.3 or 5.0.4. Looks like its hitting this code: public CookieSource buildCookieSource() { return new CookieSource() { public Cookie[] getCookies() {

Re: T5: Multiple clicks causing NPE

2008-01-08 Thread Howard Lewis Ship
I'll have to look into whether there is a workaround for that ThreadLocal bug, and figure out a way to test this. On Jan 8, 2008 2:08 PM, jason lea [EMAIL PROTECTED] wrote: Hi, We get this error quite often with Java 1.5, we asked about it in the mailing list back in August. We found the

Re: T5: multiple beaneditors inside a beaneditform

2008-01-08 Thread Howard Lewis Ship
Absolutely, you want to use two BeanEditor components inside your own Form. Don't forget an Errors component and a Submit. On Jan 8, 2008 3:39 PM, mammal [EMAIL PROTECTED] wrote: Hi, what is the best practice for doing the following registration form... let's assume we have a domain

Re: T5: beaneditform component error message

2008-01-08 Thread Howard Lewis Ship
@Component defines a component, it does not inject an existing component. You've ended up with two BeanEditForm components, one named beaneditform (from the Java code) and one anonymous (from the template). Change the t:beaneditform to, say form t:id=beaneditform object=bean/ ... or (better, for

Re: Add a DOCTYPE?

2008-01-09 Thread Howard Lewis Ship
Which version of Tapestry are you using? On Jan 9, 2008 12:05 AM, Donyee [EMAIL PROTECTED] wrote: How to add a DOCTYPE in the tapestry tml page. I put !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; in the page. Error: java.lang.RuntimeException

Re: T5: beaneditform component error message

2008-01-09 Thread Howard Lewis Ship
. By the way, is there a list of Tapestry5 annotations and what they do? I haven't seen one on the web site or the wiki. I think the JavaDoc is a perfectly good reference. - Original Message From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent

Re: T5: easy url routing

2008-01-09 Thread Howard Lewis Ship
It is not a high priority item, I believe there is an existing issue covering this area. On Jan 9, 2008 2:10 PM, Chris Lewis [EMAIL PROTECTED] wrote: Forgive me if a ticket already exists for this. I know that one of the Tapestry mantras is that the framework should create the URLs, but it is

Re: T5: Annotations documentation [was Re: T5: beaneditform component error message]

2008-01-09 Thread Howard Lewis Ship
PROTECTED] wrote: [Franz Amador] By the way, is there a list of Tapestry5 annotations and what they do? I haven't seen one on the web site or the wiki. [Howard Lewis Ship] I think the JavaDoc is a perfectly good reference. Okay, but it'd still be nice to know where to look for them. I've

Re: Override Header Names for Grid Component

2008-01-09 Thread Howard Lewis Ship
Grid can be customized much like a cell; you provide a t:parameter with the name propertyheader (that is, the property name with suffix header) and you can put whatever you want into the header at that point. Tapestry will render the TH element, your parameter renders everything inside. On Jan

Re: T5: easy url routing

2008-01-09 Thread Howard Lewis Ship
of Tapestry, but what's made available is carefully controlled. Howard Lewis Ship wrote: It is not a high priority item, I believe there is an existing issue covering this area. On Jan 9, 2008 2:10 PM, Chris Lewis [EMAIL PROTECTED] wrote: Forgive me if a ticket already exists

Re: [T5] NPE in PageRenderQueueImpl

2008-01-10 Thread Howard Lewis Ship
We're looking into this, it may be due to a known bug in JDK 1.5. On Jan 10, 2008 1:08 PM, Moritz Gmelin [EMAIL PROTECTED] wrote: Hi, I have a rather big application with hibernate integration that I am trying to deploy on a tomcat Server. After first deployment, I get the following error

Re: Tapestry 5.0.7 : Filtering in Output component

2008-01-10 Thread Howard Lewis Ship
You will have to write your own component (a few lines), or add a JIRA issue so that we can work on providing this functionality. On Jan 10, 2008 2:34 PM, Shing Hing Man [EMAIL PROTECTED] wrote: In Tap 4.0, the component Insert will have filtering on by default (characters such as are

Re: [Announcement] t5components - release 0.5.2

2008-01-10 Thread Howard Lewis Ship
Looks good as usual! On Jan 10, 2008 3:19 PM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, the t5components release 0.5.2 is out now and implements three more components and one new binding. special thanks to Tod Orr for his PagedLoop component. project page with demo

Re: Quick but urgent Tapestry question

2008-01-11 Thread Howard Lewis Ship
In 4.1 this can be done, the solution is no different than the chart built into the workbench, except that instead of returning an IAsset that invokes a URL request that generates the chart, the IEngineService will read and push the content of an external file. On Jan 11, 2008 3:28 AM, [EMAIL

Re: T5 naming and case peculiarities

2008-01-12 Thread Howard Lewis Ship
Very good research. On Jan 11, 2008 2:13 PM, Daniel Jue [EMAIL PROTECTED] wrote: I wanted to throw together a list of naming peculiarities (I hesitate to call them pitfalls), to put on the wiki. Some are documented on the API website, some of these are mailing list documented, some are only

Re: T5: Multiple clicks causing NPE

2008-01-12 Thread Howard Lewis Ship
I've added https://issues.apache.org/jira/browse/TAPESTRY-2037 On Jan 8, 2008 4:47 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: I'll have to look into whether there is a workaround for that ThreadLocal bug, and figure out a way to test this. On Jan 8, 2008 2:08 PM, jason lea [EMAIL

Re: T5: 5.0.8 whitespace

2008-01-13 Thread Howard Lewis Ship
The var: binding prefix is much more limited than prop:, and prop: is more limited than T4's use of OGNL. But it's all part of the grand plan :-) Building a more complex expression language is something that will wait for a later release, as you can write code in your component to perform these

Re: [T5] - (T5 Documents) IncludeJavaScriptLibraray or InjectJavaScriptLibrary

2008-01-13 Thread Howard Lewis Ship
Just a typo in the documentation, I'll fix that up. On Jan 13, 2008 2:07 AM, Mohammad Shamsi [EMAIL PROTECTED] wrote: Hi all, in the Ajax page in Tapestry Core Documents : http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html i saw an Annotaion @InjectJavaScriptLibrary

Re: T5: Exception occurs in onActivate

2008-01-13 Thread Howard Lewis Ship
What happening is that your HTML is referencing a static file. The file does not exist, and the format of the URL makes it look like a Tapestry page render or action request. If the file did exist, Tapestry would let the servlet container handle it. On Jan 13, 2008 8:16 AM, adamh [EMAIL

Re: Injecting LibraryMapping to core

2008-01-14 Thread Howard Lewis Ship
That's a feature. You can remove the ambiguity by injecting them into a non-core folder, say /common. You'd then reference them as t:common.foo or span t:type=common/foo/ On Jan 14, 2008 12:33 AM, Harald Geritzer [EMAIL PROTECTED] wrote: hi all, i am building a webapp consisting of serveral

Re: Use System ClassLoader with Tapestry5

2008-01-14 Thread Howard Lewis Ship
Tricky. The class loader Tapestry uses does two different things: - Transforms the class (for injections, parameters, and lots of other stuff) - Handles reloading of classes when they change When a .class file on the disk changes, Tapestry will actually discard the class loader and create a new

Re: _$resources.queueRender($2);

2008-01-14 Thread Howard Lewis Ship
You mentioned provided dynamically? You can't just instantiate components, only Tapestry can do that, once it has transformed the class. What you can do is place the components, in the template, inside a t:block element. On Jan 14, 2008 7:42 AM, Bret Gregory [EMAIL PROTECTED] wrote: I am

Re: _$resources.queueRender($2);

2008-01-14 Thread Howard Lewis Ship
Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 11:01 AM To: Tapestry users Subject: Re: _$resources.queueRender($2); You mentioned provided dynamically? You can't just instantiate components, only Tapestry can do that, once it has transformed

Re: T5: 5.0.8 whitespace

2008-01-14 Thread Howard Lewis Ship
-2043 chris Howard Lewis Ship wrote: I have been keeping the nightly documentation up to date with these changes. Please look at http://tapestry.formos.com/nightly/tapestry5 and dig down from there. The main site will only be updated when a new release is generated, the nightly

Re: T5: regexp for commas

2008-01-15 Thread Howard Lewis Ship
All the IDEs have some form of regexp testing plugin; I use the intellij one all the time. On Jan 14, 2008 4:33 AM, Michael Courcy [EMAIL PROTECTED] wrote: Did you try this regexp with in a regular java program ? Thomas Zenglein a écrit : Hello everybody, I want my textfield to allow a

Re: T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Howard Lewis Ship
Component classes are only transformed once. This has not changed. The contribution method is only called once. This too has not changed. On Jan 15, 2008 9:07 AM, Igor Drobiazko [EMAIL PROTECTED] wrote: Hello, Implementing injection workers I experienced that the worker is invoked only

Re: T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Howard Lewis Ship
PROTECTED] wrote: I see. Thanks. Just had a look into the ApplicationStateWorker. Your are replacing the read and write methods by a call to the manager. This way I can implement my use case. On Jan 15, 2008 7:01 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Component classes are only

Re: T5: Some problem with prob binding

2008-01-15 Thread Howard Lewis Ship
I see two problems: 1) setId(T) should be type void, not String. 2) Tapestry is not currently aware of generics, so everywhere you see type T in your class, Tapestry sees java.lang.Object. There's an issue about handling this better, but its very tricky. On Jan 15, 2008 2:27 AM, Davor Hrg

Re: onChangeEvent of a Select component

2008-01-15 Thread Howard Lewis Ship
Currently, Tapestry doesn't have a built-in way to accomplish what you want. You will see a property update when the form containing the Select component is submitted. The containing Form component will fire a series of events: prepare, then validate, then success or failure, then submit. Using

Re: T5: How to influence the order JavaScript libraries are loading

2008-01-15 Thread Howard Lewis Ship
I think you might have a situation where component A is rendering first, and including library Y, then component B renders and includes library X then Y. Because the Y is seen first, its order is first, even though component B wants Y to depend on X. I'd check what else on your page is including

Re: T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Howard Lewis Ship
This is coming soon, but it won't be part of BeanEditForm ... to get that level of interactivity will require that you spell out your individual fields and labels, along with extra components mixins to describe the Ajax functionality to Tapestry. On Jan 15, 2008 2:44 PM, Franz Amador [EMAIL

Re: Tapestry IDEA

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 11:33 AM, Kevin Menard [EMAIL PROTECTED] wrote: Hi all, It's time for me to ask about IDEA and Tapestry again. I seem to go in cycles with the whole thing. Recent traffic indicates that there's now a decent number of people using IDEA with Tapestry. My question is simply,

Re: @ApplicationState fields keyed by class, not instance

2008-01-17 Thread Howard Lewis Ship
Long experience has shown that these objects tend to be singletons. It's generally things like the user's identity or account information or shopping basket. Earlier versions of Tapestry uses a mechanism similar to what you have. It was always a lot of unwanted configuration. This streamlined

Re: Tapestry IDEA

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 12:04 PM, Michael Lake [EMAIL PROTECTED] wrote: For T5, in lieu of jettyLauncher you might try looking into extending the following class somewhere in your test sources: org.apache.tapestry.test.JettyRunner make a wrapper around it with a class that has a static main

Re: tapestry-spring

2008-01-17 Thread Howard Lewis Ship
I'll be looking at this today, in a few hours. On Jan 17, 2008 1:37 PM, HongDa Tang [EMAIL PROTECTED] wrote: After strictly following the instructions provided http://howardlewisship.com/tapestry-javaforge/ , the maven gave the same error. This error first appeared as

Re: T5: Reading context before persistent fields are read

2008-01-17 Thread Howard Lewis Ship
If you mean the event context (as opposed to the page activation context), then ... The path of least resistance is: 1) Define a service with a simple read/write property to store the context. Make sure this is perthread scope. 2) Contribute a filter to the ComponentActionRequestHandler

Re: t5: getting parameter from request

2008-01-17 Thread Howard Lewis Ship
That's odd, it doesn't do that for me. What is your web.xml and what servlet container are you using? On Jan 17, 2008 2:37 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, in a dispatcher, public boolean dispatch(Request request, Response response) if I pass url

Re: TAP-5: Tapestry Release Semantics and legacy thereof

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 10:38 AM, Ken in nashua [EMAIL PROTECTED] wrote: Hi, I have been watching tapestry release semantics for many years now, as they happen, as they impact the commercial field and related hurdles. Given the maturity of the framework and it's concepts... is it reasonable to

Re: T5: dynamically set disabled attribute

2008-01-17 Thread Howard Lewis Ship
Beginner's level Tapestry: Bind the disabled parameter of each field to a property that returns true when the field should be disabled and false otherwise. Journeyman level Tapestry: An alternative would be to define a special kind of binding for this purpose. I'd need more details, but a

Re: T5: Reading context before persistent fields are read

2008-01-17 Thread Howard Lewis Ship
] wrote: Yep, that did it. Thanks! 2008/1/18, Howard Lewis Ship [EMAIL PROTECTED]: If you mean the event context (as opposed to the page activation context), then ... The path of least resistance is: 1) Define a service with a simple read/write property to store the context. Make sure

Re: T5: Encoder and Loop

2008-01-17 Thread Howard Lewis Ship
That's the intent of the PrimaryKeyEncoder: to provide client/server synchronization so that TextFields inside Loops inside a Form can connect, when the client-side form is submitted, to equivalent server-side objects. The TextField components (and other form control element components)

Re: tapestry-spring

2008-01-17 Thread Howard Lewis Ship
artifactIdtapestry/artifactId /exclusion exclusion groupIdtapestry/groupId artifactIdtapestry-annotations/artifactId /exclusion /exclusions /dependency Copy that into your pom.xml. I just used it yesterday to create a new project. Howard Lewis Ship schrieb

Re: T5: Autocomplete not working in form in block in zone

2008-01-17 Thread Howard Lewis Ship
Yep, I haven't tackled the forms + ajax + zones work yet. On Jan 17, 2008 8:07 PM, Bill Holloway [EMAIL PROTECTED] wrote: Ah! Thanks. I knew Howard wouldn't let that slide! Bill On Jan 17, 2008 10:31 AM, Daniel Jue [EMAIL PROTECTED] wrote: I am just starting with Zones, but is Zone

Re: T5: using TapestryTestCase

2008-01-17 Thread Howard Lewis Ship
Just invoke mailer.sendIt() while training your mocks, without an expect() call. Copious examples of this in the Tapestry code base. On Jan 17, 2008 6:06 PM, Angelo Chen [EMAIL PROTECTED] wrote: Thanks, that works. one related question: I have this: public interface Mailer {

  1   2   3   4   5   6   7   8   9   10   >