Re: AW: AW: Strange behavior of special characters

2008-07-08 Thread Sebastian Altmann
Yes I'm reading my values from properties files which are utf-8 encoded, but what really confuses me is that you tell me they aren't allowed i utf-8. Because we're running an application with utf-8 properties-files without any problems. This strange behavior can only be found in anatoher applica

Re: AW: AW: Strange behavior of special characters

2008-07-08 Thread Ulrich Stärk
>From the java apidocs: The load and store methods load and store properties in a simple line-oriented format specified below. This format uses the ISO 8859-1 character encoding. Characters that cannot be directly represented in this encoding can be written using Unicode escapes ; only a single '

t5: logging pages

2008-07-08 Thread Angelo Chen
hi, i just noticed that catalina.out contains informations from different web apps hosted in the same site, is there a way for me to specify a log file for my tapestry 5 app only? thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-logging-pages-tp18333788p18333788.html

Tapestry-upload component limit uploaded data

2008-07-08 Thread Peter Stavrinides
Hi I wish to limit the types of files that are handled by the upload component (i.e: only excel and pdf files), but I can't seem to find this documented... I also tried it using the HTML parameter accept="application/excel, application/vnd.ms-excel, application/x-msexcel, application/ms-excel,

Re: Tapestry-upload component limit uploaded data

2008-07-08 Thread Ulrich Stärk
You can write an org.apache.tapestry5.FieldValidator and bind it to your upload component with the validate parameter. Uli Am Di, 8.07.2008, 11:02, schrieb Peter Stavrinides: > Hi > > I wish to limit the types of files that are handled by the upload > component (i.e: only excel and pdf files), bu

Re: Using the Autocompleter

2008-07-08 Thread Andy Pahne
Found the solution: Use the Suggest component instead. http://tapestry.apache.org/tapestry4.1/components/scriptaculous/suggest.html The Autocompleter has issues anyway: http://issues.apache.org/jira/browse/TAPESTRY-1244 Andy Pahne schrieb: I am trying to implement a form that uses the

Re: Tapestry-upload component limit uploaded data

2008-07-08 Thread Ulrich Stärk
Or you could just use the regexp validator and filter on file names. See http://tapestry.apache.org/tapestry5/tutorial1/forms.html for an example how to use it. Uli Am Di, 8.07.2008, 11:11, schrieb Ulrich Stärk: > You can write an org.apache.tapestry5.FieldValidator and bind it to your > upload c

Re: [T5] Default ValidationTracker clearing needed?

2008-07-08 Thread Kristian Marinkovic
hi, the Form component was changed some time ago to use the "flash" persistence strategy for the ValidationTracker from the code: @Persist(PersistenceConstants.FLASH) private ValidationTracker defaultTracker; g, kris "Vjeran Marcinko" <[EMAIL PROTECTED]> 07.07.2008 21:15 Bitte antw

Re: [T5] Default ValidationTracker clearing needed?

2008-07-08 Thread Vjeran Marcinko
Oh, I didn't know that since I've seen some discussions before that it was "session". Nevertheless, clearing of the input values prior to "success" event still poses slight problem IMO. I am not fond of persisting some entity objects between requests just to be able to see those input values r

Re: [T5] Default ValidationTracker clearing needed?

2008-07-08 Thread Kristian Marinkovic
hi, this is how i do it... one of many possible ways :) i let tapestry populate a DTO bean that is sent during the validate event through a facade (IOC service) to my businesslayer. there the DTO is then mapped to my BOs. (as in the theory :) because i don't want to write these stupid DTO- BO

Re: [T5] Looped component question

2008-07-08 Thread Tobias Wehrum
Ah, sorry, it seems I was halfly asleep when I answered. I completely misread your question. (And sure you are right about the identifier part.) José Paumard schrieb: Thank you for your answer Tobias, but it wont work, because a component ID has to be a valid Java identifier. José Tobias Weh

AW: AW: AW: Strange behavior of special characters

2008-07-08 Thread Maximilian Weißböck
"The load and store methods load and store properties in a simple line-oriented format specified below. This format uses the ISO 8859-1 character encoding. Characters that cannot be directly represented in this encoding can be written using Unicode escapes ; only a single 'u' character is allow

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

2008-07-08 Thread Sebastian Altmann
Sorry but I just don't get it... After you mentioned the first time that there are problems concerning properties files in UTF-8 I also found this and similar articles on the sam topic. I would quietly accept this, if my special characters were displayed wrong all over the application and in ot

Re: [T5] Default ValidationTracker clearing needed?

2008-07-08 Thread Vjeran Marcinko
Hi, Thanx for suggestion, but I really don't see that I have any issue with my application design. The facade that you described here is just nice *view-layer* convenience that prepares error messages in bottom layer for web pages above. I emphasize this *view-layer facade* since business/serv

Re: [T5] Default ValidationTracker clearing needed?

2008-07-08 Thread Geoff Callender
Hi Vjeran, I completely agree with everything you just said. Cheers, Geoff On 08/07/2008, at 11:20 PM, Vjeran Marcinko wrote: Hi, Thanx for suggestion, but I really don't see that I have any issue with my application design. The facade that you described here is just nice *view-layer* c

Custom Components with input

2008-07-08 Thread Michał U
Hi, I hava a custom component which includes form. Part of my CustomComponent.html looks like this: ... ... action is a parameter of my component and it is persistent in the page that component is put on. When listener onWriteRequest is fired action.mainAttribute.name is null. It looks like the

Re: Custom Components with input

2008-07-08 Thread Michał U
Sorry. It should look like this: ... ... Michał U Michał U wrote: > > Hi, > > I hava a custom component which includes form. Part of my > CustomComponent.html looks like this: > ... > "<"span jwcid="@Insert" value="ognl:action.mainAttribute.name"> > > ... > action is a parameter of my com

can we do something for grid.refresh() with the parameter inplace=true?

2008-07-08 Thread Tan [EMAIL PROTECTED]
hi, i'm newbie in tapestry. can we do something like grid.refresh() (example) with the parameter inplace=true? i noticed that it will run setupRender, setupDataSource, getAvailableRows.. when I click on paging 2 in the grid ( because after i click on the page2 and click back to the page1. my

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

2008-07-08 Thread Maximilian Weißböck
I'm very sure the property files that work are not utf-8 encoded but iso-8895-1 encoded. You can use ÄÖÜß and so on with no problem in property files (we do it), just be very sure they are iso-8895-1 encoded. If you use Eclipse, right click on the file, open Properties and look at the Text fil

Re: how to get the nice ajax form-validations when using beaneditform.recordError()

2008-07-08 Thread Josh Canfield
> > I get nice ajax validations on fields when using the @Validate-annotation > This isn't ajax validation, it's javascript validation which means there is no trip to the server. Look at the source for your page you'll see the validation registered in a script block at the end. If you want javasc

Re: t5: logging pages

2008-07-08 Thread Josh Canfield
You want to look into how to configure log4j, assuming your using the default logging implementation. On Tue, Jul 8, 2008 at 12:49 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > hi, > > i just noticed that catalina.out contains informations from different web > apps hosted in the same site, is th

[T5] Layout and $remove$

2008-07-08 Thread Fabio Kreusch
Hello all, I'm new to Tapestry 5, and I'm having some problems: In T4, the Shell component creates the outer layout. When I insert a shell component in my pages, it ignores the page etc and only renderizes the , and renderizes the shell . On T5, with the , it renders both, the layout and

Re: [T5] Layout and $remove$

2008-07-08 Thread Shing Hing Man
To preview, I use something like the following. http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Hello! I use a simple remove component ,with no template, to remove the header tag. public class Remove { protected boolean beginRender(){

Re: [T5] Layout and $remove$

2008-07-08 Thread Onno Scheffers
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 that Thread. He really helped me out. regards, Onno Scheffers 2008/7/8 Fabio Kreusch <[EM

stripping jsessionid in custom dispatcher depending on ASM.

2008-07-08 Thread Britske
I want to strip JsessionId from the url (for browsers who dont support cookies) for SEO purposes. btw: perhaps a bit long-winded as to the why's, but it may help others. At first I implemented a servletfilter (from http://randomcoder.com/articles/jsessionid-considered-harmful) which basically co

Re: stripping jsessionid in custom dispatcher depending on ASM.

2008-07-08 Thread Britske
perhaps I should have mentioned that the code for checking if the user-instance exists or not isn't here yet, but it isn't really relevant for the problem. Thanks. Britske wrote: > > I want to strip JsessionId from the url (for browsers who dont support > cookies) for SEO purposes. > btw: per

Re: T5: Working with BeanModel

2008-07-08 Thread Andy Huhn
For future reference, here is the fix. I found it by looking at the source for BeanModelSourceImpl.java: BeanModel toReturn = _beanModelSource.create( MyClass.class, false, _componentResources ); toReturn.exclude( (String[])toReturn.getPropertyNames() .toArray( new Strin

Re: T5: redirect page in a Dispatcher

2008-07-08 Thread Weisu
Thanks Francois! I will give it a go. Weisu Francois Armand wrote: > > Weisu wrote: >> Hi All, I am trying to do the same, but after Login page how do I go back >> to >> the original page. >> Thanks in advance! >> Weisu >> > You will have to store the previous in some fashion, and return it o

T5: dead lock in Tapestry - Hibernate

2008-07-08 Thread Angelo Chen
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 append some rows using T5-hibernate, any idea why ? Thanks. Angelo [WARN] ThreadPoolAsynchronousRunner [EMAIL PROTECTED] -- APPARENT DEADLOCK!!!

T5: FileUpload and time out

2008-07-08 Thread Angelo Chen
Hi, following sample works, but how to determine if timeout error occurs? thanks. public class UploadExample { private UploadedFile file; public UploadedFile getFile() { return file; } public void setFile(UploadedFile file) {