RE: Ajax Change event with T5.1.0.5

2010-08-30 Thread Jens Reufsteck
Thanks, that clarifies things! -- Jens Reufsteck Marketing & Online Director Staufenbiel Institut GmbH Events & Recruiting Solutions Wildunger Straße 6, 60487 Frankfurt am Main www.staufenbiel.de www.mba-master.de www.absolventenkongress.de Tel.: +49 (0)69 25537-140 Fax: +49 (0)69 25537-214

Aesthetic IE8 issues

2010-08-30 Thread Rich M
Hi, I've been doing some testing and noticed two peculiarities inherent to the framework in IE8, wondering if anyone has encountered these and possibly identified the issue at hand. First is the the JavaScript popup validation bubbles that accompany Tapestry forms do not display with the back

Re: If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread LLTYK
I wasn't intending to use just an Object in the first place, so it seems to be non-issue. For now anyways, hopefully the comment I put in reminds not to stick a plain Object in there later on. obj was going to be return of some event handler, to redirect to some page. I set to to a plain Object

RE: OT: Web Services

2010-08-30 Thread Jim O'Callaghan
Good point Peter. I'll see if I can fit this in, though my work will be more migration from XFire to CXF, and using another filter to intercept ws calls, rather than the Tapestry filter, so not sure if it really counts as "integrating" with Tap. The code I've inherited is using a lot of Spring

Re: [T5] Prevent multiple form submits

2010-08-30 Thread raulmt
I don't know if I understand correctly your problem, but Tapestry fires some JavaScript events when the form is submitting (see tapestry.js for details), like Tapestry.FORM_VALIDATE_EVENT, Tapestry.FORM_PREPARE_FOR_SUBMIT_EVENT and Tapestry.FORM_PROCESS_SUBMIT_EVENT. The latter two fire after vali

Re: If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread Josh Canfield
> obj being null results in false just fine. But doing "obj = new Object()" > makes it explode Sounds like a missing coercion, but what's your use case? -- Josh On Aug 30, 2010, at 4:45 AM, LLTYK wrote: > > So I have this: > > > obj being null results in false just fine. But doing "obj

Re: [T5] Prevent multiple form submits

2010-08-30 Thread Sigbjørn Tvedt
Have a look at this example (if javascript is an option): http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/creatingmixins1 Sigbjørn Tvedt On Mon, Aug 30, 2010 at 1:57 PM, joris wrote: > Yes, the client validation is the biggest problem. I tried something > similar. I disabl

RE: OT: Web Services

2010-08-30 Thread Jim O'Callaghan
This is stellar stuff guys - you're saving me a lot of headaches. Thanks. Regards, Jim. -Original Message- From: Peter Stavrinides [mailto:p.stavrini...@albourne.com] Sent: 30 August 2010 14:36 To: Tapestry users Subject: Re: OT: Web Services ... sorry to leach on this thread, but perh

Re: OT: Web Services

2010-08-30 Thread Peter Stavrinides
... sorry to leach on this thread, but perhaps a short blog on integrating Metro or CXF with Tapestry would be useful. cheers, Peter - Original Message - From: "Kristian Marinkovic" To: "Tapestry users" Sent: Monday, 30 August, 2010 16:22:40 GMT +02:00 Athens, Beirut, Bucharest, Ista

Re: OT: Web Services

2010-08-30 Thread Kristian Marinkovic
hi, i use a (JaxWS)HttpServletRequestFilter service to intercept WS calls to my application. it will only intercept calls that have the url pattern of the provided WS that can be configured. and i'm using metro too. we switched from cxf to metro because it was easier to work with jaxb-binding

Re: Ajax Change event with T5.1.0.5

2010-08-30 Thread Thiago H. de Paula Figueiredo
On Mon, 30 Aug 2010 09:38:26 -0300, Jens Reufsteck wrote: Thanks - but then, how do I know, which element actually triggered the submit? I need to react differently to a click on the submit button and to a submit coming from clicks on a listbox. You could use a Hidden field for that. Jus

Re: OT: Web Services

2010-08-30 Thread Peter Stavrinides
Hi Jim I evaluated quite a few Java WS stacks and was between CXF and Metro, but in the end I chose metro, but to be honest there was very little to choose btw the two... so I would suggest those two as the leading Java WS stacks. Both support maven and are very complete in terms of how much of

RE: Ajax Change event with T5.1.0.5

2010-08-30 Thread Jens Reufsteck
Thanks - but then, how do I know, which element actually triggered the submit? I need to react differently to a click on the submit button and to a submit coming from clicks on a listbox. I can only capture events with a general onSubmit handler. A onSubmitFromButton doesn't work, whilst onSel

RE: OT: Web Services

2010-08-30 Thread Jim O'Callaghan
Thanks Davor - am leaning towards CXF. Regards, Jim. -Original Message- From: Davor Hrg [mailto:hrgda...@gmail.com] Sent: 30 August 2010 08:47 To: Tapestry users Subject: Re: OT: Web Services I used CXF to generate java code from XSD-s, CXF is easily used with maven, but in the end most

Re: [T5] Prevent multiple form submits

2010-08-30 Thread joris
Yes, the client validation is the biggest problem. I tried something similar. I disable the submit button for 2 seconds, to work around the client site validation problem. I get it work for IE and Firefox, but in Chrome it doesn't work. Event.observe(window, 'load', function() { $$("inpu

Re: File Handling and Buffer Handling

2010-08-30 Thread Thiago H. de Paula Figueiredo
On Sun, 29 Aug 2010 11:22:03 -0300, Charith Madusanka wrote: Hi Donny, Hi! I want to do randomly access a file and I was already use java.io.RandomAccessFile class . I'm looking T5 class ... I think your comment help to me. Why do you need random access in a file for? Tapestry-Core

Re: Ajax Change event with T5.1.0.5

2010-08-30 Thread Thiago H. de Paula Figueiredo
On Mon, 30 Aug 2010 08:32:49 -0300, Jens Reufsteck wrote: I’m trying to update a zone triggered by a change event in a listbox. I’ve seen the recent posting re the zoneUpdater mixin, but need to post the whole form rather than picking individual parameters. Use $(formId).fire(Tapestry.FOR

If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread LLTYK
So I have this: obj being null results in false just fine. But doing "obj = new Object()" makes it explode. Oddly enough, "obj = new Integer(1)" (and presumably any other subclass of Object), works just fine. An unexpected application exception has occurred. Render queue error in BeginRen

Ajax Change event with T5.1.0.5

2010-08-30 Thread Jens Reufsteck
I’m trying to update a zone triggered by a change event in a listbox. I’ve seen the recent posting re the zoneUpdater mixin, but need to post the whole form rather than picking individual parameters. This is the js snippet I’m using: this.element.form.sendAjaxReq

Re: [T5] Prevent multiple form submits

2010-08-30 Thread LLTYK
I have a hidden div with a "Processing" message, then I listen for submit events and pop the div into view, blocking off the page until it redirects. Although I haven't figured out how to get to mesh will with client side validation, where I'd get an event but the form would not submit due to an e

Re: Update Zone Outside of AjaxFormLoop

2010-08-30 Thread LLTYK
Forget zones, just count the rows with js. $$('.classYouStickOnEveryRow').length; Although the only way I know of to get js to run on zone load is to clumsily cram a script tag in each row. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Update-Zone-Outside-of-AjaxFor

[T5] Prevent multiple form submits

2010-08-30 Thread joris
Hello, I try to prevent multiple form submits, if the user clicks more then ones a submit button. Is there a build in way for this problem? Or is there a preferred solution? Thanks. Joris - To unsubscribe, e-mail: users-unsu

[T5.2.0] java.lang.NoSuchMethodError: MutableComponentModel.addMixinClassName()

2010-08-30 Thread Steve Eynon
Hello, I really want to upgrade to T5.2 but have come across a bit of a hurdle. I'm trying to add a bit of markup to *every* page. I've written a mixin to supply the markup and am using a ComponentClassTransformWorker to add the mixin to every page. This worked flawlessly in T5.1.0.5 but in T5.2.

Documentation improvement maybe ?

2010-08-30 Thread Davor Hrg
FAQ page http://people.apache.org/~uli/tapestry-site/frequently-asked-questions.html#FrequentlyAskedQuestions-HowdoIstoremypageclassesinadifferentpackage ? Question: How do I store my page classes in a different package? Answer: you can't The statement there is that pages must be in root-ackage.pa

RE: OT: Web Services

2010-08-30 Thread Jim O'Callaghan
Kalle, Daniel, Thanks for the responses. Good to know that there are positive experiences with CXF. It's probably the front-runner for me at the moment, but will keep an ear open for any other feedback. Looking at my original query I can see that it looks like I am focusing on generating WS cli

Re: OT: Web Services

2010-08-30 Thread Davor Hrg
I used CXF to generate java code from XSD-s, CXF is easily used with maven, but in the end most newer WS engines use JAXB for data binding. JAXB is not perfect, and it took me a whole week to make rules for jaxb to get desired output. To be fair, he problem was not jaxb here but a very bad XSD, so

RE: OT: Web Services

2010-08-30 Thread Jim O'Callaghan
Martin, Thanks for all the details. I hadn't considered the client generation at this stage, and was planning on just relying on the published wsdl for business consumers to use whatever package they wanted to generate a client from the public wsdl - perhaps this is not a realistic expectation