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 a

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 remo

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 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, Apache Tapestry 5

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 wrote: > Em Fri, 11 Dec 2009 16:57:28 -0200, Ilya Obshadko > escreveu: > >> Could someone p

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 : > Em Fri, 11 Dec 2009 11:50:44 -0200, marioosh.net > escreveu: > >> So... how to do something like ok and handle onClick >> event on it ? > > It depends. Do you need to trigger any server-side code or not? >

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 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. -- Thiago H. de Paula Figu

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 writer

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,

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 comp

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 escreveu: So... how to do something like ok 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 5 and Hibernate consultant, devel

Re: ActionLink and onClick action

2009-12-11 Thread marioosh.net
So... how to do something like ok and handle onClick event on it ? 2009/12/11, Thiago H. de Paula Figueiredo : > Em Fri, 11 Dec 2009 11:34:37 -0200, marioosh.net > escreveu: > >> This work: >> ok >> This doesn't: >> ok >> > > ActionLink nor EventLink can have any Javascript event hooked to them

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 meth

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 escreveu: This work: ok This doesn't: ok ActionLink nor EventLink can have any Javascript event hooked to them using the @OnEvent annotation (at least not yet). You have to write the Javascript yourself, unless you're using Zones. -- T

Re: ActionLink and onClick action

2009-12-11 Thread marioosh.net
This work: ok This doesn't: ok What is going on ? 2009/12/11, marioosh.net : > How to do onClick handler for my "ok" link (by annotation) ? > > ActionLink doesn't work for me :( > > http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> > ok > > > public class Index { > > v

Re: Getting rid of the default.css

2009-12-11 Thread Alessandro Bottoni
Thiago H. de Paula Figueiredo ha scritto: > It should be configuration.add("tapestry.default-stylesheet", > "context:styles/empty.css"); Thanks! Now the empty.css is in my page and everything works fine. -- Alessandro Bottoni Website: http://www.alessandrobottoni.it/ "Prediction is very diffic

ActionLink and onClick action

2009-12-11 Thread marioosh.net
How to do onClick handler for my "ok" link (by annotation) ? ActionLink doesn't work for me :( http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> ok public class Index { void onAction() { System.out.println("action"); } @OnEvent(valu

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 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 method is a concrete clas

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 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"); Any suggestion

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 wrote: > > TNX Thiago, > > this really helped me a lot :) > > PS > isn't url rewrite complicated to do when I have lots of diferent part

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 mail.

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. >

Re: Login Filter,

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

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 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 contributeApplicationDef

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 escreveu: Hi All, Hi! Have you tried Event.observe('form', 'submit', function() { doCustomAjaxPost();return false; });? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and inst

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 M

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 events.