Re: AW: AW: AW: AW: Strange behavior of special characters

2008-07-09 Thread Andreas Andreou
Try searching the bug tracker... I found http://issues.apache.org/jira/browse/TAPESTRY-607 'Output encoding problem with some versions of Tomcat 5' (btw, what's your servlet container?) and some others that may help... For the record, tapestry 3-4 used a custom resourcebundle loader that didn't r

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Howard Lewis Ship
I think that kind of complication becomes more trouble than just implementing onActivate(), onPassivate(). On Wed, Jul 9, 2008 at 3:24 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > Is there opposition to adding an index to the annotation so you don't have > to use source order? > > @PageActiviati

T3 problem: spindle won't include the tap. .jars in the .war

2008-07-09 Thread Tomi N/A
I know most eyes are focused on T5, but people work with legacy apps as well so... I have a small application built on Tapestry 3.0.3. It compiles, and I can build a .war, but no matter what I try, the .war won't contain the tapestry jars. The app is supposed to work in a hosted environment, I woul

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Josh Canfield
Is there opposition to adding an index to the annotation so you don't have to use source order? @PageActiviationContext(index=2) private Bar b @PageActiviationContext(index=1) private Foo a Josh On Wed, Jul 9, 2008 at 2:36 PM, Igor Drobiazko <[EMAIL PROTECTED]> wrote: > I see a problem with mul

Re: T5: java.util.ConcurrentModificationException

2008-07-09 Thread Howard Lewis Ship
ASOs are specified in terms of implementation classes, not interfaces. That makes it more awkward and error prone to create a proxy for them (you have to create a subclass and hit all the non-private methods and make them delegate, and there can be issues concerning constructors that get in the way

Re: T5: java.util.ConcurrentModificationException

2008-07-09 Thread Fernando Padilla
Also, maybe you should be using ConcurrentHashMap or other classes specifically made for multi-threaded access. And if you review the javadoc for that class, I think they discuss how they handle iterators in a multi-thread safe manner.. Howard Lewis Ship wrote: Does raise an interesting poi

Re: T5: java.util.ConcurrentModificationException

2008-07-09 Thread Martijn Brinkers
> So it does seem to me that if you are using Ajax techniques and thus > explicitly asynchronous access to the application, you should be > mindful of this. We could bounce around some ideas as to how the > framework could assist: perhaps a per-session/per-page lock? A per-session/per-page lock

Re: T5: java.util.ConcurrentModificationException

2008-07-09 Thread Howard Lewis Ship
Does raise an interesting point. In a traditional page app, you would rarely have request overlap. It was possible (a wildly clicking user, perhaps). Often the main page would be one request, followed by a series of overlapping requests to retrieve static assets. It would be possible to add a f

T5: java.util.ConcurrentModificationException

2008-07-09 Thread Martijn Brinkers
On one page I use a persistent Hashmap. The page contains an actionLink with a click event handler. The onclick event is activated with a delay using setTimeout. When the event is fired another actionLink is activated. Now what happens is that during the handling of the first actionLink the second

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Igor Drobiazko
I see a problem with multiple @PageActivationContext annotations inside a page class. Consider following example: public class Start{ @PageActivationContext private Foo b; @PageActivationContext private Bar a; } When Eclipse "Sort Member Save Action" feature is enabled, the order of

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Josh Canfield
But you can't use a delegate component without a template, right? On Wed, Jul 9, 2008 at 12:15 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Another option is to use the Delegate component and pass it the Block > instance. > > On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]>

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Howard Lewis Ship
Another option is to use the Delegate component and pass it the Block instance. On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]> wrote: > I don't recall if you can use MarkupWriter to write blocks yet, but one > method I've used is to return the block from the beginRender method,

Re: [T5] Layout and $remove$

2008-07-09 Thread Fabio Kreusch
Just one thing if anyone try this again: I had to add a xmlns, otherway it doesn't uses the Border component: t:type="Layout" xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; Did it worked for you without the xmlns? 2008/7/9 Fabio Kreusch <[EMAIL PROTECTED]>: > Thanks, that'

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano
I thought that its main contribution to be able to use it for multiple values, and not yet I understand why this functionality has not been implemented. So, I agree for jira. Ted Steen wrote: At the moment you should think of the @PageActivationContext as a convenience annotation for you to us

Re: T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Britske
Wow I love that. Somehow I mistakenly thought it didn't work that way, thanks. As a related question : is there a way to get the 'real' session instead of the proxy on a call to getSession() The reason I'm asking is that in a lot of cases I want to use (Hibernate's) DetachedCriteria's, so I c

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Marcelo Lotif
IMHO, this is not the easyest approach I prefer to inject the next page, set it's attributes and then pass it as the method's return... this way you can set as many parameters as you like On Wed, Jul 9, 2008 at 2:29 PM, Francisco Manzano <[EMAIL PROTECTED]> wrote: > why don't ? > > Ted Steen wrot

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Ted Steen
At the moment you should think of the @PageActivationContext as a convenience annotation for you to use when you only want to place a single value in the context. Personally I think it would make more sense if you where able to use it for multiple values. Maybe worth adding a JIRA for that? For ex

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano
why don't ? Ted Steen wrote: I dont think you can use that with multiple values as the context :/ 2008/7/9 Francisco Manzano <[EMAIL PROTECTED]>: Or, you can use the new @PageActivationContext annotation for a greater simplicity Zanius Ted Steen wrote: Just add more parameters to t

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Josh Canfield
> > Or, you can use the new @PageActivationContext annotation for a greater > simplicity > http://tapestry.formos.com/nightly/tapestry5/apidocs/src-html/org/apache/tapestry5/internal/transform/PageActivationContextWorker.html#line.37 037if (fields.size() > 1) 038throw

Re: T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Howard Lewis Ship
If you are using tapestry-hibernate, the injectable Session service is a perthread proxy. It can be shared across threads, but each method invocation on the proxy is redirected to a real per-thread Hibernate session. On Wed, Jul 9, 2008 at 9:27 AM, Britske <[EMAIL PROTECTED]> wrote: > > I found s

Re: T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Josh Canfield
> > How can I get the current (per-thread) hibernate-session (as configured > through tapestry-hibernate) from a singleton custom tapestry service? > I haven't tried creating a getInstance type method for my service classes, but here is my understanding. The default scope for a service is singleto

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Ted Steen
I dont think you can use that with multiple values as the context :/ 2008/7/9 Francisco Manzano <[EMAIL PROTECTED]>: > Or, you can use the new @PageActivationContext annotation for a greater > simplicity > > Zanius > > Ted Steen wrote: >> >> Just add more parameters to the activate/passivate-meth

[T5] : in place Grid does not sort when rendering a checkbox in a column

2008-07-09 Thread Hugues Narjoux
Hi, I have an inplace grid, enclosed in a form, and which renders a checkbox for a boolean attribute. (The code is at the end of this mail). My problem is that the grid refuses to sort its columns If I remove the rendering of the check box and just display the boolean value, sorting works fi

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano
Or, you can use the new @PageActivationContext annotation for a greater simplicity Zanius Ted Steen wrote: Just add more parameters to the activate/passivate-methods. Or you can use (Object[] parameters). Or you can use (EventContext context) The way to go for you would be to just add more p

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Josh Canfield
I don't recall if you can use MarkupWriter to write blocks yet, but one method I've used is to return the block from the beginRender method, it's rendered after whatever you write within the method. I believe for both blocks you would have to use both beginRender and beforeRenderTemplate, or I supp

Re: [T5] Login session

2008-07-09 Thread Marcus
Hi Fabio, I can't find any examples on how can I store a user session login on T5. http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html > > And how can I protect pages so that only > logged users can see it? http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher ht

T5: Different behavior of Palette Component in FireFox, Safari and IE

2008-07-09 Thread Maximilian Weißböck
Palette Component behaves different in FireFox then it does in Safari and IE If palette item is moved in FireFox the following events are triggered onSuccess() onSubmit() If palette item is moved in Safari or IE none of the above events is triggered. Is this suggested to be

T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Britske
I found some partial references on the list, but nothing that really answered the question, so: How can I get the current (per-thread) hibernate-session (as configured through tapestry-hibernate) from a singleton custom tapestry service? For reference: I have a MySingleton-class build as a tapes

[T5] Login session

2008-07-09 Thread Fabio Kreusch
Hello all again. I can't find any examples on how can I store a user session login on T5. Does anyone know how can I do it? And how can I protect pages so that only logged users can see it? Thanks. -- Fabio Kreusch [EMAIL PROTECTED]

Re: [T5] Layout and $remove$

2008-07-09 Thread Fabio Kreusch
Thanks, that's what I needed! 2008/7/8 Onno Scheffers <[EMAIL PROTECTED]>: > Hi Fabio, > > it looks like you're looking for the same thing I was looking for a while > ago. > > http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-tc16448904.html#a16448904 > > Look for Peters' responses in tha

Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Ted Steen
Just add more parameters to the activate/passivate-methods. Or you can use (Object[] parameters). Or you can use (EventContext context) The way to go for you would be to just add more parameters to the activate/passivate-methods. 2008/7/9 t <[EMAIL PROTECTED]>: > void onActivate(String message) >

[T5] Rendering a block a component received as parameter

2008-07-09 Thread Tobias Wehrum
Hi there, I am developing a tree component which can take several classes as nodes. Each class should have it's own body, stored in parameters - and then rendered, of course. Now, lets say I have I have this code in my Test.tml: ---

Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Patrick Moriarty
Sorry, guess I should have searched first. Could consider this a bump I suppose :) On 09/07/2008, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > There is indeed... Looks like the fix version is "5.0" though, which is > some strange holding place where defects seem to disappear to: > > https://issues

t5: pass few parameters to 2nd page

2008-07-09 Thread t
void onActivate(String message) { System.out.println("Another page is activated! The message is: " + message); this.passedMessage = message; } String onPassivate() { System.out.println("Another page is passivated..."); return passedMessage; } This is the

RE: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Joel Wiegman
There is indeed... Looks like the fix version is "5.0" though, which is some strange holding place where defects seem to disappear to: https://issues.apache.org/jira/browse/TAPESTRY-2234 -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2008 8:

Re: [T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Andreas Andreou
i think there's already a jira for this On 7/9/08, Patrick Moriarty <[EMAIL PROTECTED]> wrote: > Hi, > > Although I can subclass Autocomplete and implement the configure(JSONObject) > method to specify an afterUpdateElement, the fuction I specify (as a String > here) gets surrounded by double-q

Re: AW: AW: AW: AW: Strange behavior of special characters

2008-07-09 Thread Davor Hrg
properties files can not be encoded other than iso1, you should use natve2acii to convert them. this might solve your problem Davor Hrg On Wed, Jul 9, 2008 at 12:12 PM, Sebastian Altmann <[EMAIL PROTECTED]> wrote: > > Ok seems like this won't get me anywhre. > > I just can repeat: > All my prop

Re: Localization in business objects

2008-07-09 Thread Davor Hrg
injection via annotations to fields is only possible for pages, components... for pages and comps byte code is changed and greater flexibility is possible, for services that tapestry autobuilds, tapestry will use the constructor with most parameters, everything else you must connect your self..

Re: AW: AW: AW: AW: Strange behavior of special characters

2008-07-09 Thread Sebastian Altmann
Ok seems like this won't get me anywhre. I just can repeat: All my properties filese are 100% encoded in UTF-8 (checked this in eclipse and in an external editor) and all umlauts are displayed properly (except in the special case described above). To this problem you mentioned concerning Java P

[T5] Using Autocomplete.configure to specify an afterUpdateElement function

2008-07-09 Thread Patrick Moriarty
Hi, Although I can subclass Autocomplete and implement the configure(JSONObject) method to specify an afterUpdateElement, the fuction I specify (as a String here) gets surrounded by double-quotes by JSONObject.toString() Thus it is not interpreted as a function. It would be nice if I could use s

Localization in business objects

2008-07-09 Thread Udo Abel
Hi, is it possible to use the Tapestry Localization (message catalog) outside of pages and components, e.g. in business objects creating reports? A simple @Inject private Messages messages; doesn't work. Of course Tapestry could supply messages from the main application catalog only, bu

Re: T5: dead lock in Tapestry - Hibernate

2008-07-09 Thread Angelo Chen
I had quite a number of this dead lock issues before, have to modify the code, trial and error, just to make it works, looks like the main problem is this jdbc 3.x, so far so good. Davor Hrg wrote: > > nice to know :) , thnx > I still use 3.x :) > > On Wed, Jul 9, 2008 at 9:10 AM, Angelo Chen

Re: T5: dead lock in Tapestry - Hibernate

2008-07-09 Thread Davor Hrg
nice to know :) , thnx I still use 3.x :) On Wed, Jul 9, 2008 at 9:10 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > just discovered that my mysql jdbc driver is stil 3.x, updated to 5.1.6 in > pom.xml, problem goes away up to now. > > > Angelo Chen wrote: > > > > Hi, > > > > I encounter this wa

Re: T5: dead lock in Tapestry - Hibernate

2008-07-09 Thread Angelo Chen
just discovered that my mysql jdbc driver is stil 3.x, updated to 5.1.6 in pom.xml, problem goes away up to now. Angelo Chen wrote: > > Hi, > > I encounter this warning quite often, it usually happens when I updated a > row using mysql command line, then quit, after that I either update or >