ZoneUpdater uses proxy URL rather than external URL (Apache/Tomcat/mod_proxy)

2011-07-08 Thread Ross Greinke
I'm trying to use Inge's ZoneUpdater and have found a problem that I wonder if anyone has solved. My tapestry app is running in tomcat behind apache using mod_proxy: ProxyPass / http://127.0.0.1:7070/ ProxyPassReverse / http://127.0.0.1:7070/ When the ZoneUpdater code tries to execute the line

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Tony Nelson
Are you by chance using tapestry5-jquery? If so, make sure you are using 2.1.1-SNAPSHOT. The behavior you describe exists in 2.1.0. Tony On Jul 8, 2011, at 8:48 PM, Taha Hafeez wrote: > Can you share the code and the generated markup > > > > On Sat, Jul 9, 2011 at 6:10 AM, Greg Pagendam-Tu

Re: 5.2 AJAX Forms

2011-07-08 Thread Taha Hafeez
Hi Norman, On Fri, Jul 8, 2011 at 9:37 PM, Norman Franke wrote: > I did, but I apparently used a much more recent version of ModalBox. The > version you are using is very, very old. They changed the "onContentLoaded" > callback to "afterLoad" so the form scripts weren't being called. > > Changed

A rewriting problem

2011-07-08 Thread dick_hu
I want to rewriting my page,code like this: public class AutoLoginLinkTransformer implements PageRenderLinkTransformer { @Inject private RequestGlobals requestGlobals; @Inject private MainLoginService loginService; @Inject private TypeCoerce

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Taha Hafeez
Can you share the code and the generated markup On Sat, Jul 9, 2011 at 6:10 AM, Greg Pagendam-Turner wrote: > Taha, > > Strangely I'm not seeing the span despite hitting a breakpoint in the code > for linksubmit that creates the span > > > Regards, > > Greg > > > On 09/07/2011, at 10:07 AM, Tah

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Greg Pagendam-Turner
Taha, Strangely I'm not seeing the span despite hitting a breakpoint in the code for linksubmit that creates the span Regards, Greg On 09/07/2011, at 10:07 AM, Taha Hafeez wrote: > Hi > > LinkSubmit is rendered as a span around the element you have specified as > linkSubmit. So my guess i

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Taha Hafeez
Hi LinkSubmit is rendered as a span around the element you have specified as linkSubmit. So my guess is that the class attribute will be present in the span around the anchor link. regards Taha On Sat, Jul 9, 2011 at 5:30 AM, Greg Pagendam-Turner wrote: > Hi, > > I have a submit component tha

LinkSubmit not rendering class attribute

2011-07-08 Thread Greg Pagendam-Turner
Hi, I have a submit component that uses LinkSubmit. I want to set the class attribute on the generated link. ${value} But when the link is rendered I only get: What happened to the class attribute? The documentation states that LinkSubmit supports informal parameters. I'm using Tapestry

Re: Loop Behaviour on Null or Empty List

2011-07-08 Thread Mark
Argh I can't believe I did that. Thank you! :) On Fri, Jul 8, 2011 at 6:17 PM, Josh Canfield wrote: > Looks like a typo. > >> > This should be > ^^ > > You need the namespace to tell tapestry you want it to be a component. > > Josh > > On Fri, Jul 8, 2011 at 4:04 PM, Mark wrote: >> >

Re: Debugging forms

2011-07-08 Thread Josh Canfield
Do your submit buttons have images? http://www.onenaught.com/posts/382/firefox-4-change-input-type-image-only-submits-x-and-y-not-name On Fri, Jul 8, 2011 at 10:54 AM, Michael Prescott wrote: > I have a form that involves a loop, and each row has some > buttons.  On Chrome, these buttons work j

Re: Loop Behaviour on Null or Empty List

2011-07-08 Thread Josh Canfield
Looks like a typo. > This should be wrote: > >        ${person.name} > > > > If department.people is null or contains a collection with zero items, > I would expect ${person.name} to never be evaluated.  However, I'm > getting an error saying that person is null within the express > person.nam

Re: Loop Behaviour on Null or Empty List

2011-07-08 Thread Mark
Hm. This seems to fix it: ${person.name} Is this a bug or should we expect different behavior with: ${person.name} On Fri, Jul 8, 2011 at 6:04 PM, Mark wrote: > >        ${person.name} > > > > If department.people is null or contains a collection with zero items, > I woul

Loop Behaviour on Null or Empty List

2011-07-08 Thread Mark
${person.name} If department.people is null or contains a collection with zero items, I would expect ${person.name} to never be evaluated. However, I'm getting an error saying that person is null within the express person.name. Are there any conditions that will cause the interior of

Debugging forms

2011-07-08 Thread Michael Prescott
I have a form that involves a loop, and each row has some buttons. On Chrome, these buttons work just fine (triggering a server-side event); in Firefox 4, the form submits, but the submit button's event isn't triggered. What techniques are available for debugging this? I've got the tapestry.eve

Re: 5.2 AJAX Forms

2011-07-08 Thread Norman Franke
I did, but I apparently used a much more recent version of ModalBox. The version you are using is very, very old. They changed the "onContentLoaded" callback to "afterLoad" so the form scripts weren't being called. However, there are several other issues with the code you mentioned. 1. For

Re: Trying to use tapestry-breadcrumbs

2011-07-08 Thread Joakim Olsson
Aaaah...Just saw in the copy that was sent directly to me that you indeed had the displaybreadcrumb inside the . Could you place a breakpoint in the dispatch-method in the BreadCrumbDispatcher and see if the crumbs are actually added to the list? Regards, Joakim On Fri, Jul 8, 2011 at 5:35 PM,

Re: Trying to use tapestry-breadcrumbs

2011-07-08 Thread Joakim Olsson
Hi, First, tapestry-breadcrumbs is written for Tapestry 5.2.5 so I would recommend you to upgrade (5.3.0 seems to be around the corner as well). It also seems to be missing something that actually does anything with the BreadCrumbInfo in the template. Currently you are only looping over any crumb

Re: Doubt including component in page

2011-07-08 Thread Howard Lewis Ship
Tapestry gives you a bunch of options here and elsewhere. Perhaps thats a failing, but it means you can adopt the practices that make sense to you, in terms of naming and organization. On Fri, Jul 8, 2011 at 7:51 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Jul 2011 11:06:42 -0300, Nicol

Trying to use tapestry-breadcrumbs

2011-07-08 Thread Luana
Hi all! I'm testing the tapestry-breadcrumbs but for the moment it doesn't work. I have a Layout class where I put the member breadCrumbInfo like the following code: @Property private BreadCrumbInfo breadCrumb; And in the Layout.tml I put the navigator like this:

Re: Doubt including component in page

2011-07-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Jul 2011 11:06:42 -0300, Nicolas Barrera wrote: Hi, Hi! As it's not mandatory to have a @Component variable in Index.java I started to think that including comp1 just as a tag in the tml may result in a more difficult way of finding which pages depend/include comp1. Good

Re: Doubt including component in page

2011-07-08 Thread Nicolas Barrera
Hi, although the example worked out with the suggestions Thiago and Taha made... I kept wondering around on this: consider I include or use a certain component on my Index.tml http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; > xmlns:p="tapestry:parameter"> > > ${message:greeting} > >

Re: Grinder stress test

2011-07-08 Thread Josh Canfield
Ajax support requires JavaScript. Test request.isXHR in your method before returning a multi zone update. On Jul 8, 2011 5:02 AM, "atcach" wrote: > Hi, > I'm doing some stress testing with grinder on a tapestry 5 project with > multizones. > I have multiple forms in the page and I submit some of t

Re: Grinder stress test

2011-07-08 Thread Andreas Andreou
http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/ On Fri, Jul 8, 2011 at 16:16, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Jul 2011 09:02:18 -0300, atcach wrote: > >> Hi, > > Hi! > >> classpath:com/tida/servir/pages/ABMUsuario.tml, line 85]}]. Return t

Re: Grinder stress test

2011-07-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Jul 2011 09:02:18 -0300, atcach wrote: Hi, Hi! classpath:com/tida/servir/pages/ABMUsuario.tml, line 85]}]. Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled. Tapestry only handles AJAX-related return types (MultiZoneUpdate included) if the request has t

Grinder stress test

2011-07-08 Thread atcach
Hi, I'm doing some stress testing with grinder on a tapestry 5 project with multizones. I have multiple forms in the page and I submit some of thems depending the submit clicked. It works ok, but when testing with grinder I'm getting an exception. If I use the explorer, but deactivate the javascrip