T5: setupRender (named by convention) not called correctly in hierarchical base classes

2008-05-09 Thread Bill Holloway
I have two abstract component base classes A and B in the base package. B inherits from A. I have methods literally named "setupRender" in both. I notice that B's setupRender is called but not A's. *However*, if I rename A's setupRender() to some other name and annotate it with @SetupRender, bo

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread zack1403
Actually I found an unlikely workaround (for my case at least). All I did was move the entire ContactUpload property to the top of the class. For whatever reason the error went away. I am really not familiar with Javassist but at least there is a workaround to this. Of course I am open to any

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Martin Grotzke
On Fri, 2008-05-09 at 18:08 -0700, Howard Lewis Ship wrote: > Perhaps an upgrade to 5.0.11 rather than the .12-SNAPSHOT? I'm not > sure how much changed between .10 and .11 API-wise. I just changed the dependency to 5.0.11. Some changes have to be made, but hopefully not too many. I'll have a lo

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Martin Grotzke
On Fri, 2008-05-09 at 17:47 -0700, Howard Lewis Ship wrote: > The code in question was certainly changed by a bug fixed related to > threading issues; rather than hangs, some users were seeing NPEs. > > Here's the bug: https://issues.apache.org/jira/browse/TAPESTRY-2141 I thought this would not ap

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Howard Lewis Ship
Perhaps an upgrade to 5.0.11 rather than the .12-SNAPSHOT? I'm not sure how much changed between .10 and .11 API-wise. It already seems like ancient history to me :-) On Fri, May 9, 2008 at 5:56 PM, Martin Grotzke <[EMAIL PROTECTED]> wrote: > On Fri, 2008-05-09 at 17:43 -0700, Howard Lewis Ship

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Martin Grotzke
On Fri, 2008-05-09 at 17:43 -0700, Howard Lewis Ship wrote: > The problem with snapshots is that it makes it that much harder to > figure out if this is a bug that's been fixed, or something new. Completely true. I already search jira for fixes in 5.0.10 to 5.0.12 that might be related to this but

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Howard Lewis Ship
The code in question was certainly changed by a bug fixed related to threading issues; rather than hangs, some users were seeing NPEs. Here's the bug: https://issues.apache.org/jira/browse/TAPESTRY-2141 Fixed in 5.0.11. Can you try upgrading from 5.0.10-SNAPSHOT to 5.0.11? On Fri, May 9, 2008 a

Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Howard Lewis Ship
The problem with snapshots is that it makes it that much harder to figure out if this is a bug that's been fixed, or something new. On Fri, May 9, 2008 at 5:39 PM, Martin Grotzke <[EMAIL PROTECTED]> wrote: > Hi, > > yesterday we deployed our application upgraded from T5.0.5 to 5.0.10 > (SNAPSHOT 2

T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-09 Thread Martin Grotzke
Hi, yesterday we deployed our application upgraded from T5.0.5 to 5.0.10 (SNAPSHOT 2008-02-11) on the production system, now it hangs from time to time with several thread blocked at PerThreadServiceCreator.createObject. We started with default settings for thetapestry.page-pool.hard-limit and so

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread Filip S. Adamsen
For what it's worth I saw the same errors earlier while using the @Cached annotation. Removing the annotation made the errors go away. Following the advice in the linked mail, on the other hand, doesn't help. But it doesn't happen all the time - I use @Cached lots, and it was only two specific

Re: Simple date format question

2008-05-09 Thread Geoff Callender
Yes, please vote for it! "Date formating global support" https://issues.apache.org/jira/browse/TAPESTRY-2198 Cheers, Geoff On 10/05/2008, at 1:45 AM, Leon Derks wrote: Hi Marcus, I couldn't find the jira issue. Do you have it? I will vote! I found this example on :http://www.packtpub.com/

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread Josh Canfield
This is what I found about it from googling... http://article.gmane.org/gmane.comp.java.tapestry.user/59171 I don't have personal experience with the problem, just remembered it being mentioned. On Fri, May 9, 2008 at 2:11 PM, zack1403 <[EMAIL PROTECTED]> wrote: > > I am running java 1.6.0_03 on

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread zack1403
I am running java 1.6.0_03 on Ubuntu 7. 5.0.11 is my tapestry version. Hmm that would make sense then. Do you know of a workaround? Thanks for the quick reply, Zack joshcanfield wrote: > > Are you running with Java6? I believe at one point there was a defect > in a version of javaassist tha

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread Josh Canfield
Are you running with Java6? I believe at one point there was a defect in a version of javaassist that would cause the ArrayIndexOutOfBoundsException you are seeing. What version of Tapestry are you running? Josh On Fri, May 9, 2008 at 1:50 PM, zack1403 <[EMAIL PROTECTED]> wrote: > > Hi All, > >

TransformationException/ClassNotFoundException

2008-05-09 Thread zack1403
Hi All, Im getting a very wierd error that isnt very descriptive. When just loading this page: http://pastebin.com/m141bdd4d, I get this error: http://pastebin.com/m5f42dd31. If I refresh the error page I get a new error: http://pastebin.com/m1859133b Removing the ContactUpload property seems

Re: [ANN] equanda 0.9 released

2008-05-09 Thread adasal
Joachim what are your thoughts on OWL export of the object model? Where would that be used? I have to admit I am interested in something else, but have made no progress, that of the possible use of Tapestry with OWL. Henry Story has the story (excuse the pun). https://sommer.dev.java.net/sommer.htm

Re: Replace item in OrderedConfiguration

2008-05-09 Thread Howard Lewis Ship
boolean dispatchComponentEvent(ComponentEvent event); So, in your advice: ComponentEvent event = (ComponentEvent) invocation.getParameter(0); if (event.matches("activate", "", 0) { // Do some extra checking here. } invocation.proceed(); On Fri, May 9, 2008 at 10:32 AM, Robin Helgelin <[E

Re: Replace item in OrderedConfiguration

2008-05-09 Thread Robin Helgelin
On Fri, May 9, 2008 at 5:54 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Since it's a specific method, we know what the parameters are; we can > then cast the first parameter to ComponentEvent, and (inside the > advice) check to see if it is an "activate" event, and apply security > checks th

Re: Simple date format question

2008-05-09 Thread Sven Homburg
the t5components-SNAPSHOT has a DateTimeField component that reflects the localization issue 2008/5/9 Marcelo Lotif <[EMAIL PROTECTED]>: > Leon, > As was said here before: > "The DateField component was changed due to a license incompatibility > issue and the new one currently isn't as flexible

Re: Simple date format question

2008-05-09 Thread Marcelo Lotif
Leon, As was said here before: "The DateField component was changed due to a license incompatibility issue and the new one currently isn't as flexible as the old one." T5.0.9 version's DateField (the "old one") has the t:format parameter, but many bugs aren't fixed in this version and some of the

Re: T5: Calling method with parameter in prop

2008-05-09 Thread Sven Homburg
we will see what can we do 2008/5/9 Howard Lewis Ship <[EMAIL PROTECTED]>: > Nope; I just want to let you create Insanely Great things, using T5 as the > base. > > On Fri, May 9, 2008 at 9:10 AM, Sven Homburg <[EMAIL PROTECTED]> > wrote: > > howard, > > > > you make us jobless ;-) > > > > 20

Re: T5: Calling method with parameter in prop

2008-05-09 Thread Howard Lewis Ship
Nope; I just want to let you create Insanely Great things, using T5 as the base. On Fri, May 9, 2008 at 9:10 AM, Sven Homburg <[EMAIL PROTECTED]> wrote: > howard, > > you make us jobless ;-) > > 2008/5/9 Howard Lewis Ship <[EMAIL PROTECTED]>: > >> In 5.1 I want to extend the Tapestry property expr

Re: onActivate

2008-05-09 Thread nicholas Krul
Thanks, works just fine... so now everything is bundled into a String[] anyway... ?wouldn't it be useful to have String[] as one of the default conversions available? I don't expect it would be hard ... and it was (for me, anyway) expected behavior. after all, with the splitting on /, is IS an arr

Re: T5: Calling method with parameter in prop

2008-05-09 Thread Sven Homburg
howard, you make us jobless ;-) 2008/5/9 Howard Lewis Ship <[EMAIL PROTECTED]>: > In 5.1 I want to extend the Tapestry property expression language > quite a bit further to address this (invoking methods), as well as map > and array ceation ... basically, all the cool OGNL stuff people miss. > >

Re: T5: Calling method with parameter in prop

2008-05-09 Thread Howard Lewis Ship
In 5.1 I want to extend the Tapestry property expression language quite a bit further to address this (invoking methods), as well as map and array ceation ... basically, all the cool OGNL stuff people miss. On Fri, May 9, 2008 at 7:52 AM, kranga <[EMAIL PROTECTED]> wrote: > In looking at convertin

Re: Replace item in OrderedConfiguration

2008-05-09 Thread Howard Lewis Ship
At Formos, we used the ComponentMethodAdvice approach to enforce page-level security, advising the dispatchComponentEvent() method (part of the Component interface). Since it's a specific method, we know what the parameters are; we can then cast the first parameter to ComponentEvent, and (inside

Re: Simple date format question

2008-05-09 Thread Sven Homburg
a possible solution: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/DateFormat.html 2008/5/9 Leon Derks <[EMAIL PROTECTED]>: > Hi Marcus, > > I couldn't find the jira issue. Do you have it? I will vote! > > I found this example on : > http://www.pa

Re: Simple date format question

2008-05-09 Thread Leon Derks
Hi Marcus, I couldn't find the jira issue. Do you have it? I will vote! I found this example on :http://www.packtpub.com/article/tapestry-5-advanced-component t:format="%d/%m/%y"/> But this seems to be outdated, because it doesn't work. Leon Marcus wrote: Leon, No, you can't, :) it's on

Re: Simple date format question

2008-05-09 Thread Marcus
Leon, No, you can't, :) it's only for output. Don't forget to vote on JIRA! Marcus

Re: T5: select within table grid

2008-05-09 Thread Marcus
Hi Axel. Maybe this help, "Adding Columns Example" at http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Grid.html Marcus

Re: Simple date format question

2008-05-09 Thread Leon Derks
Okay, I use Tapestry 5. But can I use the OutputLocale component also on a DateField? Leon Marcus wrote: Hi Leon, There is a JIRA about format parameter for DateField, vote! To format a date output you can use OutputLocale component ( http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNu

RE: T5: Calling method with parameter in prop

2008-05-09 Thread Jonathan Barker
I missed that functionality as well. I use the ognl binding available in the t5components library. http://87.193.218.134:8080/t5components/index.html I remember trying something complicated once, and I had problems with values being cached that should not have been, but it worked beautifully

Re: Simple date format question

2008-05-09 Thread DR_GLoPeL_BouCa
I use Tapestry 4.1.5, you can change the dateFormat like this, translator="translator:date,pattern=dd/MM/" in @TextField or @DatePicker, and format="ognl:dateFormat" in a @Insert ( Format dateFormat = new SimpleDateFormat("dd/MM/");) Marcos. -- View this message in context: http://www.

Re: Simple date format question

2008-05-09 Thread Marcus
Hi Leon, There is a JIRA about format parameter for DateField, vote! To format a date output you can use OutputLocale component ( http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber) Marcus

Re: T5: Calling method with parameter in prop

2008-05-09 Thread Robert Zeigler
Fastest solution is the t5components module, which re-introduces the ognl binding: http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html Cheers, Robert On May 9, 2008, at 5/99:52 AM , kranga wrote: In looking at converting from T3 to T5, I've to deal with constructs su

Simple date format question

2008-05-09 Thread Leon Derks
How can I format my date in a date field I want to use the format (dd/MM/). Does tapestry have some build in functionality for this? And how can I format a date printing it to the screen like this: ${person.birthday} Leon ---

T5: Calling method with parameter in prop

2008-05-09 Thread kranga
In looking at converting from T3 to T5, I've to deal with constructs such as: class="ognl:menuClassName('home')" where getMenuClassName uses the parameter to compare with the page's "id" passed in to determine if this is the currentPage or not. So the template has multiple links with construc

Re: @Persist("flash") question

2008-05-09 Thread Thiago HP
Try this: @Persist("flash") private String importRequestSearch; public List getImportRequests() { return importDAO.findImportRequests(importRequestSearch); } This way, you store less information in the session (just the search criteria, not the search result). And you mus

T5: select within table grid

2008-05-09 Thread Axel Mannhardt
Hi, I am trying to show a table with a column with comboboxes, but the GridDataSource does not seem to accept a the value type for the generic select model necessary for the combobox. The most promising stuff i tried is a table containing a column with Longs and one with the selected entry of th

Re: T5 ASO & Service

2008-05-09 Thread maxthesecond
Well I just wandered about serialization issues, but better for me if it's not a problem, at the end I added my Service as a parametrer in the ASO: MyASO.addproducttoChart(idProduct,MyServices) { Map _chartMap; Product p=MyServices.getProductById(idProduct); _chartMap.put(idProduc

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-09 Thread Sven Homburg
hopefully your VIPs are impressed 2008/5/9 lebenski <[EMAIL PROTECTED]>: > > This fix has addressed my issue, and its now all working as expected > :clap:. > > Cheers, > Ben. > > > Sven Homburg wrote: > > > > howard commited some changes into tapestry trunk, so the snapshot build > > starts in so

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-09 Thread lebenski
This fix has addressed my issue, and its now all working as expected :clap:. Cheers, Ben. Sven Homburg wrote: > > howard commited some changes into tapestry trunk, so the snapshot build > starts in some minutes > > 2008/5/8 Sven Homburg <[EMAIL PROTECTED]>: > >> lebenski, >> >> the snapshot

Re: T5: How to update zone after form submission?

2008-05-09 Thread Filip S. Adamsen
... ... Object onSuccessFromForm() { return ...; // block or component } http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html -Filip Partogi, Joshua skrev: Dear all, I want to update a zone and show a message after form is submitted. I could not find the docs rega

Re: T5 ASO & Service

2008-05-09 Thread Filip S. Adamsen
What? It's not uncommon to have methods on an ASO. You can also inject services into it when creating it if you use an ApplicationStateCreator. The relevant docs on Application State has an example at the bottom. -Filip maxthesecond skrev: oopss! I think I missed the point the ASO aplication

Number Formatters in tacos4.1.1

2008-05-09 Thread abhilash
Hi all, i am using tapestry4.1.5,tacos4.1.1. I don't know how to specify the number formatter for my field. any ideas? Thanks in advance. -- View this message in context: http://www.nabble.com/Number-Formatters-in-tacos4.1.1-tp17142912p17142912.html Sent from the Tapestry - User mailing list arc

AW: Detecting cookies disabled

2008-05-09 Thread Martin Kersten
Simply use an immediated redirect. Store a cookie within the page redirecting and on the target page just verify if the cookie is present. Simple like that... :-) Cheers, Martin (Kersten) PS: I was also eager to know if this is possible... Yes it is! :-) -Ursprüngliche Nachricht- Von