cannot output table tags in outputraw compnnent

2012-09-28 Thread Ken in Nashua
Folks, If the output and outputraw components cannot contain a left angel bracket < or other angle brackets ex. Then I am left with doing this... But if yeilds the following exception java.lang.RuntimeExceptionError parsing property expression '': Unable to parse input at character

RE: is there a way to refer to a Class type in a tml ?

2012-09-28 Thread Ken in Nashua
Thanks Thiago... that worked for my one class. But... @java.lang.Math@min(collection.size,itemsPerPage) the above statement... I am sure you know what it is T4 What I am looking for is a T5 solution to reference these classes and operate them right inside the template. Is there a solution in

onValidate get list of fields containing validation errors.

2012-09-28 Thread George Christman
Hello, in my onValidate method, I'm trying to get a list of the fields containing validation errors. I'm able to get a list of the errors using form.getDefaultTracker().getErrors(); however that only returns the error messages and not the fields. I know I could just pass the field name into the in

Re: Generating link/url without RequestGlobals

2012-09-28 Thread Thiago H de Paula Figueiredo
On Fri, 28 Sep 2012 15:41:50 -0300, Alex Kotchnev wrote: In my application, I send html emails which contain links to the application. I use the pageRenderLinkSource.createPageRenderLink to generate the URLs from within the application. So far, so good. The trouble begins when I tried to mak

Re: is there a way to refer to a Class type in a tml ?

2012-09-28 Thread Thiago H de Paula Figueiredo
On Fri, 28 Sep 2012 15:28:41 -0300, Ken in Nashua wrote: Folks, Hi! I am referring to the old T4 manner in which we would refer to a class type using @Integer.class within a template can this be done in T5 ? The Tapestry 5 philosophy is to do this kind of stuff in Java, never in

Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
I'm not too familiar with the tapestry-jquery code but perhaps updateZoneOnEvent(eventName, element, zoneId, url) does exactly what you want? https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js -- View this message in context: ht

Re: Zone update after ajax request to component event

2012-09-28 Thread nquirynen
Yep I use tapestry5-jquery :) Ok so I added the following code to my javascript click events callback: if (responseJSON.zones) { // perform multi zone update $.each(responseJSON.zones, function(zoneId) { $('#' + zoneId).tapestryZone("applyContentUpdate", responseJSON.zones[zoneId]); })

Re: Zone update after ajax request to component event

2012-09-28 Thread Emmanuel DEMEY
Hi, If you use Tapestry5-jQuery, you should have a look to this javascript code : https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/components/upload/upload-jquery.js Manu 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I add

Re: Zone update after ajax request to component event

2012-09-28 Thread Ivan Khalopik
As you use your own zone update mechanism instead of native(e.g. EventLink component) you can provide js-callback for ajax request as you mention before. To update zone use something like this: var zone = Tapestry.findZoneManager(spec.zoneId); function rowClickCalback(response) { zone.process

Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
Take a look at Geoff's ZoneUpdater mixin [1] which fires a serverside event by listening to a clientside event on a DOM element. You should never update the innerHTML of a zone directly, use the client-side ZoneManager. If you are using tapestry-jquery, there is a different implementation of this.

Re: Zone update after ajax request to component event

2012-09-28 Thread Charlouze
Hey, I've never used it but if you want to use jQuery, you should take a look at the tapestry5-jquery plugin : http://tapestry5-jquery.com/ Charles. 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I added a javascript onclick event on my > rows where I do an ajax (jquery) request

Zone update after ajax request to component event

2012-09-28 Thread nquirynen
Hi, I have a component (grid) where I added a javascript onclick event on my rows where I do an ajax (jquery) request to a component event: $.get('${onRowClickEventLink}'); This all works fine, but I also want to update some zones after this event so I added this to the event method: void onRow

Re: BufferedImage in Tapestry

2012-09-28 Thread Lance Java
As I said before, use firebug or a similar tool to inspect the HTTP response for the image. Are there any differences between the Jetty response and the Tomcat response? Take note of the response headers. Also, have you tried setting the content length header? -- View this message in context: