RE: Rendering form submit response with the same page.

2006-01-31 Thread Schulte Marcus
Uih, interesting, I just hope I'll never have to do portlets, then ;) > -Original Message- > From: Richard Kirby [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 31, 2006 6:35 PM > To: Tapestry users > Subject: Re: Rendering form submit response with the same page. > > > Hi Aj, > > Si

RE: Recommended Memory Req's

2006-01-31 Thread Schulte Marcus
It depends on how many collection-links there are between entities in your db-model. Try to enable hibernate-SQL logging. If you see a lot of eager loading here, you'll be using a lot of mem (and a lot of cpu/network latency). None of my Apps would run at a near-decent performance *without* lazy

Re: Old style URLs in Tapestry4

2006-01-31 Thread Simeon Koptelov
I think there are several possibilities: 1. Create ServiceEncoder and say before="original service encoder id" in contribution 2. Add URL rewriting as javax.servlet.Filter or WebRequestServicerFilter -- Best, Simeon Koptelov pgpQxX0QO8T2Z.pgp Description: PGP signature

Re: Tapestry 3 - dynamic event listener problem - F.A.O. Kent Tong

2006-01-31 Thread Kent Tong
sean gao wrote: Thanks Kent, > class YourPageClass { > void dispatch(IRequestCycle cycle) { > String listenerName = (String)cycle.getServiceParameters()[0]; > ... > } > } But what do I do after String listenerName = (String)cycle.getServiceParameters()[0]; Use reflection t

Re: Page structure best practices

2006-01-31 Thread Martin Strand
I assume you've started creating your own components? If so, you can just create a "Border" component with a template like this: [Border.html] Menu item Menu item Menu item Page content will be inserted here and then use that Border component in all your pages l

Re: Page structure best practices

2006-01-31 Thread Alin Simionoiu
Thank you for the quick response Chris (and Robert for another reply to my email), I'll check the Border component stuff. Really appreciate the code offer but let's see if I can figure it out myself, if not I may impose again. Alin On Jan 31, 2006, at 8:27 PM, Chris Chiappone wrote: Yeah

Re: Using fieldTrackings

2006-01-31 Thread Daniel Lydiard
Ah cool, thanks for the link, I'm not sure how I missed that one :P - Original Message - From: "Christian Mittendorf" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, January 31, 2006 5:13 PM Subject: Re: Using fieldTrackings Am 01.02.2006 um 02:03 schrieb Daniel Lydiard: W

Re: Page structure best practices

2006-01-31 Thread Chris Chiappone
Yeah I would definatly go away from using frames these days. The page you describe is basically what I use for my applications. It consists of a Border component that has a header footer and then place holders for components such as a left nav bar or left login area depending on the sessions stat

Re: Page structure best practices

2006-01-31 Thread Robert Zeigler
People usually solve this by creating a "Border" component. Search searching the mailing list for the Border component. :) Incidentally, "including" something is normally done by making a component in tapestry. :) Robert Alin Simionoiu wrote: Hi folks, I'm trying to build a small website th

Page structure best practices

2006-01-31 Thread Alin Simionoiu
Hi folks, I'm trying to build a small website that will exercise some business logic. I looked around for some framework that will help me build the pages fast. I choose Tapestry mainly because I can use the existing HTML pages as templates, really cool thing. The first thing that I did w

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Am 01.02.2006 um 02:03 schrieb Daniel Lydiard: When ever a user chooses the "noSelectionValue" which is the default, it's recorded in the validation delegate. Is this what you're going for? No, not really (I do also need the selected value in the validation delegate). But the hints and i

Re: Using fieldTrackings

2006-01-31 Thread Daniel Lydiard
No, I only throw them if input was incorrect. i.e. checkbox not checked and it's required (using validators:required), or the pulldown value selected was equal to the "noSelectionValue" (see ValidPropertySelection source code in link below). example: When ever a user c

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
That might be a solution: do ValidPropertySelection and ValidCheckbox record their input values to the ValidationDelegate in any case, even if no error occured? Am 01.02.2006 um 01:44 schrieb Daniel Lydiard: I was actually using the ValidPropertySelection and ValidCheckbox in my T3 code (

Re: Using fieldTrackings

2006-01-31 Thread Daniel Lydiard
I was actually using the ValidPropertySelection and ValidCheckbox in my T3 code (http://issues.apache.org/bugzilla/show_bug.cgi?id=29535) and ported it over to T4. I basically took the existing T4 source for PropertySelection/Checkbox and added in the code to work with ValidationDelegate (by t

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Am 01.02.2006 um 01:20 schrieb Jesse Kuhnert: Hmmm...I know the tapestry workbench demo application has a sample "ShowErrors" sort of component for this. The biggest reason I suggested the ValidationDelegate approach is because you're guaranteed to get every fields value and error written ou

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Am 01.02.2006 um 01:20 schrieb Jesse Kuhnert: Hmmm...I know the tapestry workbench demo application has a sample "ShowErrors" sort of component for this. Ok, I think I'll have to check it. The biggest reason I suggested the ValidationDelegate approach is because you're guaranteed to get eve

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Am 01.02.2006 um 01:06 schrieb Jesse Kuhnert: If you wanted to display error messages next to the fields in question I would highly reccomend looking at this (though it uses labels, you can override whichever method points you want): http://jakarta.apache.org/tapestry/UsersGuide/ validation.

Re: Using fieldTrackings

2006-01-31 Thread Jesse Kuhnert
Hmmm...I know the tapestry workbench demo application has a sample "ShowErrors" sort of component for this. The biggest reason I suggested the ValidationDelegate approach is because you're guaranteed to get every fields value and error written out properly as everything is passed in as a paramter

Re: Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Error tracking is working really nice, that is not the problem. My problem is that not every form field does record its input value to the trackingFields. Textfields do always record their values, even if no error occured. On my page I'm iterating the trackingFields while I'm building up th

Re: Using fieldTrackings

2006-01-31 Thread Jesse Kuhnert
If you wanted to display error messages next to the fields in question I would highly reccomend looking at this (though it uses labels, you can override whichever method points you want): http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.delegate On 1/31/06, Christian Mitte

Re: Tapidea release 0.2

2006-01-31 Thread Hugo Palma
We moved the discussion away from this list. This goes for everyone, any other issues related with Tapidea please use the Tapidea forum. Cheers Hugo Frank wrote: I do not think I disabled it. Attached is the log. Thanks Frank --

Re: Using fieldTrackings

2006-01-31 Thread Ron Piterman
I don't know why checkbox propertySelection aso don't have validator, I guess they are not that common, but you can validate them in your submit/form listener and add trackings to the delegate, making the errors apear on each IFormComponent... you just call one of the error tracking methods on

Using fieldTrackings

2006-01-31 Thread Christian Mittendorf
Hello! I'm currently exploring how Tapestry 4 is validating fields and tracking error messages. Can someone please tell me if I'm right with the following assumptions: - _every_ error is tracked in the ValidationDelegates fieldTrackings - _only_ the content of form elements that extend Vali

Re: BindingException Issues more prominent with annotations

2006-01-31 Thread Chris Chiappone
Howard may be on to something. In my WEB-INF folder i have /lib/tapestry-4 jars but I also have a WEB-INF/old/tapestry 4 beta 11 jars. I thought the only jars that get put in the classpath must be in WEB-INF/lib/. Could it by its picking up the WEB-INF/old/* jars also?? On 1/31/06, Jeff Lubetki

Re: BindingException Issues more prominent with annotations

2006-01-31 Thread Jesse Kuhnert
Ouch, I hope this has nothing to do with the tacos component enhancement pipeline contributions. It could very well be my fault somehow as well. I'll double check the tacos contribution rules to see if it looks like it might conflict with something in annotations. it's this btw (for howard) :

RE: BindingException Issues more prominent with annotations

2006-01-31 Thread Jeff Lubetkin
It's possible that tacos has this problem, but that was not the issue in our case, as we've custom rolled our AJAX stuff, and don't use tacos. The issue was in the standard Tapestry component pipeline. Later this afternoon I should have time to redo my debugging. I'll annotate the JIRA issue with

Old style URLs in Tapestry4

2006-01-31 Thread gvp
I'm moving my Tapestry 3 application to version 4. I have many hardcoded urls (stored in DB as menu links) in old Tapestry 3 style: /app?service=page/MyPage. During the transition process I found that this link is unsupported and produces error org.apache.hivemind.ApplicationRuntimeException: No e

RE: BindingException Issues more prominent with annotations

2006-01-31 Thread Jeff Lubetkin
This looks very similar to a problem we encountered with disable-caching=true and running parallel queries (such as when a resulting HTML page contained multiple embedded asset requests, or AJAX type requests). Basically, if two queries run in parallel and disable-caching is true, then when the fi

Re: BindingException Issues more prominent with annotations

2006-01-31 Thread Howard Lewis Ship
One thing that occured to me is that,possibly, you have two versions of Tapestry on the classpath;were there any startup warnings? Can you verify that you are using Tapestry 4.0's libraries and nothing else? I mean, to the point of doing a find . -name tapestry\* -print on your filesystem. On 1/

Re: BindingException Issues more prominent with annotations

2006-01-31 Thread Chris Chiappone
I'm still trying to figure this out. Could this problem be associated when disable-caching=true? On 1/29/06, Chris Chiappone <[EMAIL PROTECTED]> wrote: > New JIRA created: > > https://issues.apache.org/jira/browse/TAPESTRY-848 > > On 1/29/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > I don

Fw: T4 conrib:Table converter binding doesn't work within a Form.

2006-01-31 Thread Daniel Lydiard
When using Table. the "converter" binding is NEVER used, but if I use the deprecated FormTable my converter binding method is used. Nobody else has experienced this problem with T4? Also, I noticed in debug messages for my IBasicTableModel implementation that getRowCount() is called 3x first

Re: Rendering form submit response with the same page.

2006-01-31 Thread Richard Kirby
Hi Aj, Since you are using tapestry in a portlet, please read this to understand your problem: http://jakarta.apache.org/tapestry/tapestry-portlet/coding-issues.html Hope that makes everything clear Richard. Aj Gregory wrote: You're right that would be nice (and expected), but if I call se

[T3] Components in a loop

2006-01-31 Thread Sergiy Kyrylkov
Hi, I have a list of items. For each item I have to select a property from the set of the predefined values. If I just needed to display the items and the set of values I could have had something like this: Now since I need to both set initially selecte

RE: Recommended Memory Req's

2006-01-31 Thread Shawn Church
I agree that maxing out 512 seems high. Looking at my currently running Tomcat servers, here's my usage: Server 1 -- 1 Tap4, 2 Tap3 -- Heap 140 MB, PermGen 85 MB Server 2 -- 2 Tap3 -- Heap 134 MB, PermGen 35 MB Server 3 -- 5 Tap3 -- Heap 59 MB, PermGen 46 MB Server 4 (leaky) -- 1 Tap3 -- Heap 610

Forms, PropertySelection and Delegate - a bug?

2006-01-31 Thread Christian Mittendorf
Hello! I've got a question regarding the fieldTrackings of a form delegate. From my understanding, this is a list of trackings that the delegate stores. It does contain a tracking entry for each form field that is being validated. A field tracking may contain the error message (errorRender

Re: Rendering form submit response with the same page.

2006-01-31 Thread Aj Gregory
You're right that would be nice (and expected), but if I call setObject(...) on the current page in the listener it won't be set when the page is rendered again. From what I can tell by logging messages in PageAttachListener and PageDetachListener the page is re-acquired from the pool before r

Re: Euro Symbol Localisation

2006-01-31 Thread Lubos and Alena Pochman
I had the same problem with Tapestry 3.02 and I think it is still in 4.0. Somehow Tapestry doesnt' set up content type properly. Looking at html source from Tapestry, the for content type is not the first but the second in the . I have read somewhere, that content type must be the first in oth

Re: Recommended Memory Req's

2006-01-31 Thread Chris Chiappone
Yeah I also know about this issue although it only takes me about 3 redeploys. I actually haven't ran out of memory when just starting jboss for the first time although looking at my processes its nearly at the max heap size so I'm concerned that concurrent users will cause some problems. On 1/31

Re: Recommended Memory Req's

2006-01-31 Thread Gary Pampara
Chris Chiappone wrote: I am actually not using lazy connections. When I started this project I was getting a lot of lazyinitializaition expections at the time. Do you think this could be my whats taking up a lot of memory? On 1/31/06, Schulte Marcus <[EMAIL PROTECTED]> wrote: Seems a lot of M

Re: Euro Symbol Localisation

2006-01-31 Thread Jérôme BERNARD
Usually you should suspect somewhere a wrong encoding used through the flow of your system. Check the following points: - is your database storing content in UTF-8 (should you use one)? - are your Tapestry templates written in UTF-8 and specifying a proper content type (<*meta* http-equiv="Content

Re: Recommended Memory Req's

2006-01-31 Thread Chris Chiappone
I am actually not using lazy connections. When I started this project I was getting a lot of lazyinitializaition expections at the time. Do you think this could be my whats taking up a lot of memory? On 1/31/06, Schulte Marcus <[EMAIL PROTECTED]> wrote: > Seems a lot of Mem to me. We're running

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Jérôme, Good question, I'm using XP SP2 and the file was created from eclipse using new file -> myproject.properties. I went back and checked to see what encoding eclipse was using for the *.properties files and found that these are encoded as ISO-8859-1by default, so I changed this to UTF-8. Stop

RE: Recommended Memory Req's

2006-01-31 Thread Schulte Marcus
Seems a lot of Mem to me. We're running a Tomcat with several small to medium apps (1 Tap4, 1 Tap3, several legacy jsp) with some 100 concurrent users. And 256 MB of Heap is way enough. So, maybe it's Jboss - or your app. What's your hibernate cache-settings. Do you use lazy collections? Sorry for

Re: Euro Symbol Localisation

2006-01-31 Thread Andreas Andreou
If you try this, use: >> >> Use the correct html. I think it is something like: |€ >> >> ||Gary| >> || >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > Sorry thats:

Re: Euro Symbol Localisation

2006-01-31 Thread Jérôme BERNARD
Are you really sure that you .properties file is written using an UTF-8 encoding and nothing fancy like a windows encoding? Regards, Jérôme. On 1/31/06, Brian Long <[EMAIL PROTECTED]> wrote: > > Martin, > > No joy, same problem, € becomes ? and "€" becomes "€" . . . > > Looks like I'll be us

Re: DatePicker in IE: operation aborted

2006-01-31 Thread Martin Carel
Hi! This solved my problem. Thanks for the reply Schabek (and the contributions from the others)! Here is what I've done: * Replace (delete/paste) the writeInitializationScript() method in the PageRenderSupportImpl class (as proposed at http://issues.apache.org/jira/browse/TAPEST

Recommended Memory Req's

2006-01-31 Thread Chris Chiappone
I'm just curious what the recommended amount of memory should be allocated to a medium sized appilcation running Tapestry 4 / Hibernate in JBOSS 4.X? Currently on my Dev box I have JBoss heap size set at 512. When testing my application I notice that I am pretty much maxing that out and am worrie

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Martin, No joy, same problem, € becomes ? and "€" becomes "€" . . . Looks like I'll be using EURO (so long as tapestry doesn't try convert it into YEN)! Thanks, Brian. On 1/31/06, Martin Strand <[EMAIL PROTECTED]> wrote: > Perhaps you need to specify the *.properties file encoding. Put thi

Re: Euro Symbol Localisation

2006-01-31 Thread Brian Long
Gary, same problem really, when tapestry sees "€" in the .properties file it converts the ampersand to & so I get something like the following in my .html page The price is € same problem for € etc. So I have to figure out how to escape the € symbol (or the & symbol) or tapestry will conti

Re: Euro Symbol Localisation

2006-01-31 Thread Martin Strand
Perhaps you need to specify the *.properties file encoding. Put this in your *.application config: --Martin On Tue, 31 Jan 2006 16:00:07 +0100, Brian Long <[EMAIL PROTECTED]> wrote: Gary, same problem really, when tapestry sees "€" in the .propertiesfile it converts the ampersand to &

Focus of form fields

2006-01-31 Thread Sebastiaan van Erk
Hi all, I have two small questions regarding the focus of fields in forms. 1) I have a password change page in which you must enter your old password, your new password, and must verify your new password. Now assume the user types his/her old password correctly but there is a password mismatc

Euro Symbol Localisation

2006-01-31 Thread Brian Long
Hi, I'm using .properties files in WEB-INF for localisation and using on the html pages to generate the relevant text for the users locale. I am however having a small problem at the moment with the euro symbol €, when this is placed in the .properties file, it is rendered as ? on the actual html

Re: Euro Symbol Localisation

2006-01-31 Thread Gary Pampara
Gary Pampara wrote: Brian Long wrote: Hi, I'm using .properties files in WEB-INF for localisation and using on the html pages to generate the relevant text for the users locale. I am however having a small problem at the moment with the euro symbol €, when this is placed in the .properties fil

Re: Euro Symbol Localisation

2006-01-31 Thread Gary Pampara
Brian Long wrote: Hi, I'm using .properties files in WEB-INF for localisation and using on the html pages to generate the relevant text for the users locale. I am however having a small problem at the moment with the euro symbol €, when this is placed in the .properties file, it is rendered as

Re: Spurious error - looking for home?

2006-01-31 Thread Martin Strand
"Home" is the default page. You can use another default page by having this in your *.application file: On Tue, 31 Jan 2006 13:58:56 +0100, Daniel M Garland <[EMAIL PROTECTED]> wrote: Hi all, I've been seeing the odd ApplicationRuntimeException on my tapestry app: org.apache.tapestry.Ap

ValidationDelegate and non-TextFields

2006-01-31 Thread Christian Mittendorf
Hello! I've got a Form with a ValidationDelegate and a number of TextFields. There are also fields for the errors, etc. Everything is working fine. Now I've changed the first two TextFields to PropertySelection (but I kept validators and DisplayName is also set) and while iterating over t

Spurious error - looking for home?

2006-01-31 Thread Daniel M Garland
Hi all, I've been seeing the odd ApplicationRuntimeException on my tapestry app: org.apache.tapestry.ApplicationRuntimeException Could not find template for page Home in locale en_US. Strange thing is, I don't have a page called Home - is this required by Tapestry? -- Dan Garland ---

Synchronising threads started by tacos calls

2006-01-31 Thread Robert Haycock
Hi, I have a tacos PartialForm and a tacos PartialLink. When a user clicks on the link a javascript call first checks to see if anything in the form has changed. If so, the form is submitted. The links onClick then continues. My problem is that I need the form to finish submitting before

RE: property persistence strategy q.

2006-01-31 Thread Schulte Marcus
Afaik it's just the stored properties. Having a look at SessionPropertyPersistenceStrategy helped me in understanding the interface. > -Original Message- > From: Norbert Sándor [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 2:53 PM > To: tapestry-user > Subject: Fw: property p

AW: Re: unexpected exception - closed

2006-01-31 Thread Gerald Schöffel
Ok, finally I got it. Uh, very embarrassing, because I already use this method of injecting the PageService on another page in my app. So @InjectObject("engine-service:page") public abstract IEngineService getPageService(); did it - hopefully for all cases that could appear. So thank

AW: Re: unexpected exception

2006-01-31 Thread Gerald Schöffel
:-)=) Hi Howard, thank you for pointing this out ;) I did not expect this exception because I expect getService() to return a PageService - not a DirectService. In my understanding (which seems to be wrong :) ) the DirectService was 'consumed' on the Login-page to do the submit. After this,

T4 conrib:Table converter binding doesn't work within a Form.

2006-01-31 Thread Daniel Lydiard
The FormTable component is deprectated so I simply changed it to Table, in which the doucmentation says it will automaitcally perform the FormTable functions when within a Form. When using Table. the "conveter" binding is NEVER used, but if i use the depcrecated FormTable my converter binding

Re: Tapestry 3 - dynamic event listener problem - F.A.O. Kent Tong

2006-01-31 Thread sean gao
sean gao wrote: Thanks Kent, > class YourPageClass { > void dispatch(IRequestCycle cycle) { > String listenerName = (String)cycle.getServiceParameters()[0]; > ... > } > } But what do I do after String listenerName = (String)cycle.getServiceParameters()[0]; Use reflection

RE: DatePicker in IE: operation aborted

2006-01-31 Thread Schulte Marcus
I had the same problem. In the end, it was a missing (or duplicate, can't really remember), close-tag somewhere else in the html. > -Original Message- > From: Martin Carel [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 5:02 PM > To: Tapestry users > Subject: DatePicker in IE: o

RE: Rendering form submit response with the same page.

2006-01-31 Thread Schulte Marcus
The result is exactly what it should be! Why would you want a separate instance of your page? Just set your "result-property" in the listener and return nothing from the listener. Then render the result property in your page-template. > -Original Message- > From: Aj Gregory [mailto:[EMAIL