Re: T5: handling form events in sub-components?

2009-12-11 Thread Inge Solvoll
I struggled earlier with this. Components bubble up, not down. Your components won't be alerted that the form in your page was submitted. If you need form fields in components, you either have to put the entire form in the component, or you need to avoid that the form fields depend on form

Getting rid of the default.css

2009-12-11 Thread Alessandro Bottoni
Hi All, I'm trying to use this Open Source CSS template: http://www.opendesigns.org/design/?template=45 (Multiflex 3) Unfortunately, it looks like that some of the CSS element defined by the default.css of Tapestry 5 are not redefined by Multiflex and still came to the surface, interfering with

Re: t5.2.0-SNAPSHOT: Possible bug: form.onsubmit is being replaced by a tapestry onsubmit handler

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 01:22:29 -0200, buckofive klecko...@yahoo.com escreveu: Hi All, Hi! t:form onsubmit=doCustomAjaxPost();return false; Have you tried Event.observe('form', 'submit', function() { doCustomAjaxPost();return false; });? -- Thiago H. de Paula Figueiredo Independent

Re: Getting rid of the default.css

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 07:15:37 -0200, Alessandro Bottoni alexbott...@gmail.com escreveu: Hi All, Hi! http://tapestry.apache.org/tapestry5/guide/conf.html and I tried to get rid of the default.css in both of the following ways: Try to set this configuration symbom in AppModule, method

Re: Login Filter,

2009-12-11 Thread sandeepraj singh
Successfully created a filter inorder to avoid css problem, public void contributePageRenderRequestHandler( OrderedConfigurationPageRenderRequestFilter configuration, final ApplicationStateManager sessionManager, final RequestGlobals requestGlobals, final LinkSource

Re: Getting rid of the default.css

2009-12-11 Thread Alessandro Bottoni
Thiago H. de Paula Figueiredo ha scritto: http://tapestry.apache.org/tapestry5/guide/conf.html and I tried to get rid of the default.css in both of the following ways: Try to set this configuration symbom in AppModule, method contributeApplicationDefaults(), instead of using web.xml. Its

java.lang.AbstractMethodError - 5.1.0.5

2009-12-11 Thread Jim O'Callaghan
Hi, I came across an interesting issue and thought I would post it so that it might save someone else some time - I'm not sure if this is down to questionable coding practise on my part causing the relevant classloader to burp or Tapestry relevant ... the stack trace is at the bottom of the

Re: [T5] Permalinks

2009-12-11 Thread Jakub Vlasak
Or you can do it from the other side. If the string isn't contained in the array of your pages, then rewrite the url. On Thu, Dec 10, 2009 at 7:49 PM, blueboy6 blueb...@gmail.com wrote: TNX Thiago, this really helped me a lot :) PS isn't url rewrite complicated to do when I have lots of

Re: Getting rid of the default.css

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 10:11:53 -0200, Alessandro Bottoni alexbott...@gmail.com escreveu: [AppModule.java] // Overriding the default.css configuration.add(DEFAULT_STYLESHEET, context:styles/empty.css); It should be configuration.add(tapestry.default-stylesheet, context:styles/empty.css);

Re: java.lang.AbstractMethodError - 5.1.0.5

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 10:23:11 -0200, Jim O'Callaghan jc1000...@yahoo.co.uk escreveu: Hi, Hi! I have a service bound to an interface in the ioc registry. The interface extends another interface and duplicates a method name and parameter list however the return type in the overridden

Re: ActionLink and onClick action

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 11:34:37 -0200, marioosh.net marioosh@gmail.com escreveu: This work: t:actionlink t:id=ok t:zone=zone1ok/t:actionlink This doesn't: t:actionlink t:id=okok/t:actionlink t:zone t:id=zone1/ ActionLink nor EventLink can have any Javascript event hooked to them using

RE: java.lang.AbstractMethodError - 5.1.0.5

2009-12-11 Thread Jim O'Callaghan
Hi Thiago, Thanks for the response - comments below. Tapestry-IoC create proxies around your service implementations, so, when you @Inject UserEntityManager, the object your receive is proxy that implements UserEntityManager, not BaseEntityManager. This means that the proxy will invoke a method

Re: ActionLink and onClick action

2009-12-11 Thread marioosh.net
So... how to do something like a href=#ok/a and handle onClick event on it ? 2009/12/11, Thiago H. de Paula Figueiredo thiag...@gmail.com: Em Fri, 11 Dec 2009 11:34:37 -0200, marioosh.net marioosh@gmail.com escreveu: This work: t:actionlink t:id=ok t:zone=zone1ok/t:actionlink This

Re: ActionLink and onClick action

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 11:50:44 -0200, marioosh.net marioosh@gmail.com escreveu: So... how to do something like a href=#ok/a and handle onClick event on it ? It depends. Do you need to trigger any server-side code or not? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry

Re: T5: handling form events in sub-components?

2009-12-11 Thread Jacob Mouka
Thanks Inge. I was hoping for a different answer, but this makes sense. Jacob On 11-Dec-09, at 4:02 AM, Inge Solvoll wrote: I struggled earlier with this. Components bubble up, not down. Your components won't be alerted that the form in your page was submitted. If you need form fields in

Re: [T5] Permalinks

2009-12-11 Thread blueboy6
Hi Jakub, I'm not sure that I got what you are suggesting to me? Can you explain it a little bit to me. Bojan Jakub Vlasak wrote: Or you can do it from the other side. If the string isn't contained in the array of your pages, then rewrite the url. On Thu, Dec 10, 2009 at 7:49 PM,

RSS feed output using Tapestry

2009-12-11 Thread Ilya Obshadko
Could someone point out how to create RSS feed using Tapestry page? I tried the following (using http://wiki.java.net/bin/view/Javawsxml/Romelibrary): - output feed contents to property and then use t:outputraw to display it - output feed contents directly using beforeRender ( MarkupWriter

Re: RSS feed output using Tapestry

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 16:57:28 -0200, Ilya Obshadko ilya.obsha...@gmail.com escreveu: Could someone point out how to create RSS feed using Tapestry page? Create a page and return a StreamResponse (in this case, a TextStreamResponse) containing the RSS output on its onActivate() method. --

Re: ActionLink and onClick action

2009-12-11 Thread marioosh.net
Yes, i need to trigger some server-side code 2009/12/11, Thiago H. de Paula Figueiredo thiag...@gmail.com: Em Fri, 11 Dec 2009 11:50:44 -0200, marioosh.net marioosh@gmail.com escreveu: So... how to do something like a href=#ok/a and handle onClick event on it ? It depends. Do you need

Re: RSS feed output using Tapestry

2009-12-11 Thread Howard Lewis Ship
I've also created pages that directly output RSS, which was nice ... to be able to use T5 templating to generate the RSS content was a snap! On Fri, Dec 11, 2009 at 11:49 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Fri, 11 Dec 2009 16:57:28 -0200, Ilya Obshadko

Re: RSS feed output using Tapestry

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Sat, 12 Dec 2009 00:38:02 -0200, Howard Lewis Ship hls...@gmail.com escreveu: I've also created pages that directly output RSS, which was nice ... to be able to use T5 templating to generate the RSS content was a snap! RSS or Atom? :) -- Thiago H. de Paula Figueiredo Independent Java,

T5 - Bug in AJAX Functionality

2009-12-11 Thread Daniel Jones
Explanation: - Form inside Zone component - Loop component inside the Form containing Checkboxes. - Form submits via AJAX - Event handler returns a MultiZoneUpdate to update 2 Zones, one of these is the Zone that contains the form, the other is an order summary panel which has ActionLinks to

Re: Help with ZoneUpdate

2009-12-11 Thread Daniel Jones
this.myZone = $('myZoneID'); this.myZone.observe(Tapestry.ZONE_UPDATED_EVENT, this.doSomeFunction()); Cheers, Daniel joshcanfield wrote: The Zone raises a JS event when is updated. You're right, my bad. I was looking at the form injector when I replied. It doesn't raise an event and so