Re: Change Event on Select Component

2009-11-25 Thread Inge Solvoll
See this post for something to base your own implementation on. http://tinybits.blogspot.com/2009/05/simple-onevent-mixin.html On Wed, Nov 25, 2009 at 7:32 PM, Everton Agner wrote: > For this situation, that would be a workaround... > > I think I'll add ChenilleKit core dependency to the project

Any Examples or LINK about T5.1.0.5 Zone, Block with Javascript?

2009-11-25 Thread alanearl
Just post it, If you want to HELP hehehe Thanks -- View this message in context: http://old.nabble.com/Any-Examples-or-LINK-about-T5.1.0.5-Zone%2C-Block-with-Javascript--tp26524982p26524982.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: dispatcher POST-processing

2009-11-25 Thread Alfonso Quiroga
Last thing about this... I found something about performance: I did it with de "tapestry-hibernate way", this is using the PerThreadManager. I thought it was going to be the same or better, but NO, it's the *same* as doing the RequestFilter way, I mean, for every asset (js, css) it will try to clos

Re: dispatcher POST-processing

2009-11-25 Thread Alfonso Quiroga
In my case I don't open the session programatically, the session opens when it's needed (getCurrentSession() bounded to current thread). I think the only diference is closing the session... I do it inside the dispatcher, and tapestry-hibernate is better (as you say) because it closes when the threa

Re: dispatcher POST-processing

2009-11-25 Thread Robert Zeigler
I think you're going at this the wrong way, in this particular instance. I think you'd be better off to do this the way tapestry-hibernate does it. Basically, you instaniate the session the first time it's needed, and then use PerThreadManager to clean up the session at the end of the thread

Re: dispatcher POST-processing

2009-11-25 Thread Alfonso Quiroga
Answering to myself :) It is possible to *override* dispatchers... in this case, I did override "PageRender". In contributeMasterDispatcher(...) I added : configuration.overrideInstance("PageRender", MyDispatcher.class); where MyDispatcher is the similar to PageRenderDispatcher (default) but

dispatcher POST-processing

2009-11-25 Thread Alfonso Quiroga
Hi, I made a dispatcher for web-security and it really works fine. As I'm not using tapestry-hibernate, I want to create a dispatcher for opening and closing hibernate-sessions. By now I did it with a RequestFilter and works fine, the problem is that the RequestFilter filters *everything*, assets,

Re: onActivate avoiding events?

2009-11-25 Thread Alfonso Quiroga
+1 for Maradona (as a PLAYER, I mean the past, not now!!) On Wed, Nov 25, 2009 at 7:21 PM, Igor Drobiazko wrote: > +5 for Arshavin. LOL > > On Wed, Nov 25, 2009 at 11:18 PM, Andreas Andreou wrote: > >> +1 for Maradona >> >> On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga >> wrote: >> > Mm.. I

Re: onActivate avoiding events?

2009-11-25 Thread Igor Drobiazko
+5 for Arshavin. LOL On Wed, Nov 25, 2009 at 11:18 PM, Andreas Andreou wrote: > +1 for Maradona > > On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga > wrote: > > Mm.. I prefer when you talk about tapestry5 ;) thanks again > > > > On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo >

Re: onActivate avoiding events?

2009-11-25 Thread Andreas Andreou
+1 for Maradona On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga wrote: > Mm.. I prefer when you talk about tapestry5 ;) thanks again > > On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo > wrote: >> Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga >> escreveu: >> >>> Thiago tha

Re: Combining Javascript doesn't work with libraries like TinyMCE

2009-11-25 Thread Ulrich Stärk
What exactly do you have in mind with the filter attribute? Because I could think of situations where you might want to import the same file for different browser versions. Uli Howard Lewis Ship schrieb: I'm afraid its time to go for something a bit more structured: @ImportJavaScript({ @Im

Re: Combining Javascript doesn't work with libraries like TinyMCE

2009-11-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Nov 2009 19:21:07 -0200, Howard Lewis Ship escreveu: I'm afraid its time to go for something a bit more structured: @ImportJavaScript({ @Import("classpath:foo.js" filter="IE5" combine=false), @Import("context:bar.js")}) public class MyJSComponent ... Looks good to me. I just

Re: Combining Javascript doesn't work with libraries like TinyMCE

2009-11-25 Thread Howard Lewis Ship
I'm afraid its time to go for something a bit more structured: @ImportJavaScript({ @Import("classpath:foo.js" filter="IE5" combine=false), @Import("context:bar.js")}) public class MyJSComponent ... ... also the term "import" is much more accurate than "include". This raises some ambiguities

Re: onActivate avoiding events?

2009-11-25 Thread Alfonso Quiroga
Mm.. I prefer when you talk about tapestry5 ;) thanks again On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga > escreveu: > >> Thiago that simply works perfect. Thanks again, it's really good to >> have so fast and quality

Re: onActivate avoiding events?

2009-11-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga escreveu: Thiago that simply works perfect. Thanks again, it's really good to have so fast and quality answers, greetings from Argentina De nada! :) Greetings from Belo Horizonte, Minas Gerais, Brazil! But Pelé is greater than Maradona,

Re: onActivate avoiding events?

2009-11-25 Thread Alfonso Quiroga
Thiago that simply works perfect. Thanks again, it's really good to have so fast and quality answers, greetings from Argentina On Wed, Nov 25, 2009 at 4:14 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 25 Nov 2009 17:11:47 -0200, Alfonso Quiroga > escreveu: > >> Hi, I have a page and I need

Re: onActivate avoiding events?

2009-11-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Nov 2009 17:11:47 -0200, Alfonso Quiroga escreveu: Hi, I have a page and I need the onActivate() method to do things there, but *only* when it shown to the user. Use the @SetupRender event instead of onActivate(). It is only triggered when a page is rendered, not being triggere

onActivate avoiding events?

2009-11-25 Thread Alfonso Quiroga
Hi, I have a page and I need the onActivate() method to do things there, but *only* when it shown to the user. In the page I have a upload (tapestry-upload), and when I upload the file... onActivate() is called again... :-( Is there some way to say... "onActivate()" but avoiding events like file u

Res: Change Event on Select Component

2009-11-25 Thread Everton Agner
For this situation, that would be a workaround... I think I'll add ChenilleKit core dependency to the project (and later for the Library) and use the OnEvent mixin for properly handling Change event on Select components... Thanks! Everton De: Ilya Obshadko

Re: Change Event on Select Component

2009-11-25 Thread Ilya Obshadko
You need to simluate submit button click, so you could clearly separate form events. A few days before I posted complete mixin code for similar issue. If you cannot find it in archives, let me know - I could send the source. On Wed, Nov 25, 2009 at 8:08 PM, Everton Agner wrote: > Thanks for the

Res: Change Event on Select Component

2009-11-25 Thread Everton Agner
Thanks for the answers. I thought I could do it without forcing form submission, like I said with the "onChange" manipulation in the page Class (that i think it uses Ajax). The form submission that you said works fine, but I have a problem. Like I said, I'm creating a component that renders thi

Re: Validation failing in IE6/7

2009-11-25 Thread Andrew Miller
Hello again, I'm extremely happy to close this one off. I _finally_ found the source of the problem today. As it turns out, the lightbox solution I was using was including its own version of effects.js which was quite old - and conflicting with the one already provided by Tapestry. Once I remove

Re: Spindle for Tapestry 5?

2009-11-25 Thread Juan E. Maya
U can check this: http://code.google.com/p/loom-t5/ I've personally never used it but i know of some colleagues who use it. There are also some eclipse code templates on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates On Wed, Nov 25, 2009 at 3:24 PM, Alessandro Botto

Re: Change Event on Select Component

2009-11-25 Thread Bryan Lewis
It's on page 225 of my paper copy. A simple bit of javascript: On Wed, Nov 25, 2009 at 9:49 AM, Jim O'Callaghan wrote: > Hi, > > I had a requirement to do this previously and used the example provided in > Tapestry 5: Building Web Applications, around page 281 - the book (or at > least ex

RE: Change Event on Select Component

2009-11-25 Thread Jim O'Callaghan
Hi, I had a requirement to do this previously and used the example provided in Tapestry 5: Building Web Applications, around page 281 - the book (or at least excerpts) is available on the net I think if you Google - no point in me pasting a code example, as my code is heavily customised. Hope thi

Spindle for Tapestry 5?

2009-11-25 Thread Alessandro Bottoni
Hi All, what do you use for generating .tml empty files and other standard T5 stuff in Eclipse 3.5? Googling around, I found Spindle (http://spindle.sourceforge.net/) but it seems that its development was stopped at the time of the Tapestry 3 version and that there is not any plan to support more

Change Event on Select Component

2009-11-25 Thread Everton Agner
Hi, Which is the simplier way to capture the "onChange" event of a Select component and treat it in the page Class on the appropriate Event Handler? My goal is to create a Component that renders a Select component to locale switching. I only could do that (in another situation) using the "ZoneU

Re: Form submitions without t:formdata

2009-11-25 Thread Ed Bowler
On Tue, 24 Nov 2009 17:29:26 -, Thiago H. de Paula Figueiredo wrote: You can't use Tapestry components to do this, but you can easily @Inject the Request and its List getParameterNames() and String getParameter(String name) methods to get what was submitted. That's useful information r

blackbird.js amended for Tap 5.1.0.5 - IE background fixed issue

2009-11-25 Thread Jim O'Callaghan
Hello, I hope this is the correct list to ask this of. I'm having an issue with Tapestry 5.1.0.5 and a background image not scrolling with the rest of a page, just in IE. The offending function is from blackbird.js, function backgroundImage() - the script comments indicate it has been heavily mo