RE: T5 problem with multiple submit buttons

2008-06-18 Thread Ben Sommerville
Is your form using a zone? If so, you may have hit this bug https://issues.apache.org/jira/browse/TAPESTRY-2324 cheers Ben > -Original Message- > From: Janko Muzykant [mailto:[EMAIL PROTECTED] > > > ups, sorry for not specifing that. i'm using latest tapestry 5.0.13. > > jm. > Massim

RE: T5: the scanner and JBoss

2007-10-01 Thread Ben Sommerville
27;t work for me. My html templates are in subdirectories of WEB- > INF. Where are yours? > > On 01/10/2007, at 11:53 PM, Ben Sommerville wrote: > > > Switching to the JBoss classloader also makes auto-loading of html > > templates > > work for me. > > > &g

RE: T5: the scanner and JBoss

2007-10-01 Thread Ben Sommerville
auto-reload T5 html templates in JBoss??? > > Alternatively, can someone point me to T5.0.5's template > scanning class? > > Thanks in advance, > Geoff > > On 30/09/2007, at 10:01 PM, Ben Sommerville wrote: > > > I found that using the JBoss UnifiedClassLoad

RE: T5: the scanner and JBoss

2007-09-30 Thread Ben Sommerville
I found that using the JBoss UnifiedClassLoader instead of the Tomcat class loader for web applications fixes the auto-reloading issues. To change this setting you need to edit the following file: JBoss 4.0.x /deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml JBoss 4.2.x /deploy/jbossweb.de

RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Ben Sommerville
You can find that discussion here http://www.nabble.com/T5%3A-NPE-in-Base64InputStream-and-locked-waiting-Ch eckForUpdatesFilter-tf4058686.html > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Saturday, 25 August 2007 3:35 AM > To: Tapestry users > Subject

RE: T5: NPE in Base64InputStream and locked/waitingCheckForUpdatesFilter

2007-07-15 Thread Ben Sommerville
I finally had a chance to test this & I'm confident it is fixed. Under 6u1 I was consistently getting a deadlock, under 6u2 I cannot reproduce it. cheers Ben > -Original Message----- > From: Ben Sommerville [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 11 July 2007 4:24

RE: T5: NPE in Base64InputStream and locked/waitingCheckForUpdatesFilter

2007-07-10 Thread Ben Sommerville
x27;s the > underlying cause. > > I wonder if we could create a work around by setting a wait time to > acquire the read lock? In a loop? > > On 7/10/07, Ben Sommerville <[EMAIL PROTECTED]> wrote: > > If you are running under jdk 6u1 and tapestry 5.0.5 (or > g

RE: T5: NPE in Base64InputStream and locked/waitingCheckForUpdatesFilter

2007-07-10 Thread Ben Sommerville
If you are running under jdk 6u1 and tapestry 5.0.5 (or greater) then there is a jvm bug that can cause a deadlock. The bug report is at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6571733. It is supposed to be fixed in jdk 6u2 (which was release recently) but I haven't had a chance to t

RE: T5.0.4: Bug in ComponentClassResolver?

2007-06-21 Thread Ben Sommerville
That is deliberate, not a bug. >From "New And of Note" at http://tapestry.apache.org/tapestry5/tapestry-core/index.html The mapping from class names to page names (or component types) has been tweaked to remove some redunancy; For example, class org.example.myapp.pages.edit.EditUser will now hav

RE: T5: File input component

2007-06-01 Thread Ben Sommerville
tp://repo1.maven.org/maven2), > codehaus.snapshots (http://snapshots.repository.codehaus.org), > howardlewisship.com (http://howardlewisship.com/repository) > > I think this is maven problem. Do I need to change my pom.xml? > > On 6/1/07, Ben Sommerville <[EMAIL PROTECTED]&g

RE: T5: when is @Persist necessary and when not...

2007-06-01 Thread Ben Sommerville
Tapestry users' > Subject: Re: T5: when is @Persist necessary and when not... > > On Thu, May 31, 2007, Ben Sommerville wrote: > > > For a form I'd say the best place to create those compound objects > > is in the onPrepare method. This will be invoked before &g

RE: T5: File input component

2007-06-01 Thread Ben Sommerville
That download should still work... the only thing that you should need to change is the tapestry versions in the pom files (replace all 5.0.4 references with 5.0.5) If you run into problems drop me an email & I will try to help. cheers Ben > -Original Message- > From: Jason Lea [mailto

RE: T5: when is @Persist necessary and when not...

2007-05-31 Thread Ben Sommerville
The default value that the _person member gets reset to will be the Person _instance_ that you assigned in the constructor. So when the form is submitted that instance will have its members set based on the form values. When the page is rendered the same instance will be used as the default val

RE: Trigger different behavior by clicking the different button in Tapestry5.0.4

2007-05-28 Thread Ben Sommerville
Hi Allen, You can use public void onSelectedFromUpdate(){...} public void onSelectedFromBack(){...} A couple of things to note: - all the standard form events (prepare, submit, validate, etc) will also be invoked. I believe that selected events will be invoked between prepare and validate - on

RE: T5: PrintWriter weirdness

2007-05-23 Thread Ben Sommerville
ject: Re: T5: PrintWriter weirdness > > You can also return a StreamResponse, which is probably > easier to implement > that ActionResponseGenerator. > > On 5/22/07, Ben Sommerville <[EMAIL PROTECTED]> wrote: > > > > Bill, > > > > When you return

RE: T5: PrintWriter weirdness

2007-05-22 Thread Ben Sommerville
Bill, When you return void from an actionLink method the default response of tapestry is to render the page. To just return the editor value you need to return an ActionResponseGenerator that outputs your desired response. e.g. ActionResponseGenerator onInPlaceEditorSubmit() throws IOExcept

RE: T5: New Validators and server side validation

2007-05-16 Thread Ben Sommerville
}); } } where is the javascript to test if "value" is a valid email address. Add a script include to your border/page (to load your validation function) and change the render method to use MyProject.Field.email and you are good to go cheers. -- Ben Sommerville

RE: T5 Class Not Found Error

2007-04-17 Thread Ben Sommerville
I believe that tapestry uses javassist 3.4ga. It is likely that the tapestry ClassFactoryClassPool class is trying to use a javaassist method that isn't in 3.2 cheers Ben > -Original Message- > From: Tim Sawyer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 18 April 2007 7:40 AM > To:

RE: T5 Upload component?

2007-04-06 Thread Ben Sommerville
I'll take a peek when I get a chance. > > My intention is for there to be a small tapestry-upload > project for the Upload component. The (majority of) > applications that don't use upload will not be burdened with > the many extra dependencies Upload will bring. > > O

RE: T5 Upload component?

2007-04-04 Thread Ben Sommerville
FYI - I just submitted an implementation of a file upload component to JIRA. It can be downloaded from https://issues.apache.org/jira/browse/TAPESTRY-1354 You'll have to build it yourself, but it should "just work" using maven. If anyone tries it out, please let me know if you have any problems o

RE: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Ben Sommerville
I also had this error when I was playing yesterday. In my case it turned out that I had two copies of tapestry-core on the classpath (one in a web app lib and the other in the ear that contained the web app). Removing the extra copy (in the web app) fixed this problem for me. -Original Messa

RE: Dynamic Radiogroup

2006-10-26 Thread Ben Sommerville
mport org.apache.tapestry.Tapestry; import org.apache.tapestry.annotations.Parameter; import org.apache.tapestry.annotations.ComponentClass; import org.apache.hivemind.ApplicationRuntimeException; /** * TODO: Doc this. * * @author Ben Sommerville */ @ComponentClass(allowBody = false, reservedParam

RE: Dynamic Radiogroup

2006-10-26 Thread Ben Sommerville
I ran into this problem too. FieldLabel does not work with Radio because it is not an IFormComponent. The order of FieldLabel & the component it refers to doesn't matter. Except that if you put the FieldLabel after the component you have to set prerender=false. I worked around this by creating

RE: @EventListener and dojo topics

2006-09-11 Thread Ben Sommerville
can be more useful with ideas. On 9/10/06, Ben Sommerville <[EMAIL PROTECTED]> wrote: > > Hi, > > Can an @EventListener be used to subscribe to an event publised via a > dojo topic? > (dojo topics are described at > > http://dojotoolkit.org/docs/dojo_event_system.htm

RE: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Ben Sommerville
Gary, If you change @EventListener(events="onSelect", elements="addressTable") to @EventListener(events="onSelect", targets="addressTable") then Tapestry will render the event script using dojo.widget.ByID (elements hooks to html elements, targets hooks to components/widgets) Hope that helps re

@EventListener and dojo topics

2006-09-10 Thread Ben Sommerville
Hi, Can an @EventListener be used to subscribe to an event publised via a dojo topic? (dojo topics are described at http://dojotoolkit.org/docs/dojo_event_system.html#using-topics-for-truly-an onymous-communication). cheers, -- Ben Sommerville

@EventListener, FieldLabel & IRequestCycle.getResponseBuilder.updateComponent

2006-07-27 Thread Ben Sommerville
tent type 'text/xml;charset=UTF-8'; a default filter has been used." Any ideas what might be causing this? thanks -- Ben Sommerville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: PermGen space - Caching is ON

2006-07-24 Thread Ben Sommerville
that helps. For what its worth, you have my sympathies. I've tried to find similar problems myself & itÂ’s a long, hard road :( Regards, Ben Sommerville -Original Message- From: Henri Dupre [mailto:[EMAIL PROTECTED] Sent: Monday, 24 July 2006 2:12 PM To: Tapestry users Subject: Re: Perm