Re: T5: redirect page in a Dispatcher

2008-07-07 Thread Francois Armand
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 on the login success. I believe that there is no predifined service for that, but it should

RE: [T5] Exception when using Tapestry5-Acegi 1.1.1-SNAPSHOT

2008-07-07 Thread Jonathan Barker
If your code was working prior to upgrade, make sure that you don't have any duplicate jar's in your classpath. It's now the first thing I check after upgrading any library. There's always something wrong. Jonathan > -Original Message- > From: Thiago H. de Paula Figueiredo [mailto:[EM

Re: T5: redirect page in a Dispatcher

2008-07-07 Thread Weisu
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 Angelo Chen wrote: > > Thanks Peter and Marcelo, > your tip works, for the intended page, it is request.getPath(). > > A.C. > > > Peter Stavrinides wrote: >> >> response.s

[T5] Exception when using Tapestry5-Acegi 1.1.1-SNAPSHOT

2008-07-07 Thread Thiago H. de Paula Figueiredo
Hi! When using Tapestry5-Acegi 1.1.1-SNAPSHOT (the only version supporting T5.0.13), an exception (stack trace later in this message) is thrown. Does anyone know how to solve this issue? Thanks in advance. Thiago java.lang.RuntimeException: Exception constructing service 'ServletApplication

Re: Tapestry accents support

2008-07-07 Thread Ulrich Stärk
See the article on how to use UTF8 in the wiki. Then encode your templates accordingly and if you are storing data in a database make sure it correctly stores and retrieves UTF8 encoded data. Uli OrionPax schrieb: Hi anybody knows how to give spanish and french accents support in Tapestry i re

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

2008-07-07 Thread Britske
I get nice ajax validations on fields when using the @Validate-annotation etc. I want that as well for cross-field validation, but instead I get the 'general' validation box in red above my form. I used the following validation-code to check if the two passwords supplied are the same, and if no

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
You should not do this. It's insecure. On a side note: passwords should never be stored, they should be hashed which makes it impossible to restore the password. And thus, the password field should show the passwords because you do not have the passwords :) Martijn Brinkers On Mon, 2008-07-07

Tapestry accents support

2008-07-07 Thread OrionPax
Hi anybody knows how to give spanish and french accents support in Tapestry i read a how to in tapestry's site but it is not so clear and i need a form which takes data with accents and the ñ (ntilde) and after display this data. please help me thanks in advance. P.S. sorry for the grammar. --

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
yeah that makes sense. However, when a user wants to edit his userprofile, I want the password fields to be filled in. How would I do this using the beaneditform? Is this at all possible? Martijn Brinkers (List)-2 wrote: > > That's intentional. You do not want your password to be sent to th

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
See: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/PasswordField.html ...Further, the output value for a PasswordField is always blank. Martijn On Mon, 2008-07-07 at 15:32 -0700, Britske wrote: > partially answering my own question: it doe

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
partially answering my own question: it doens't happen when both passwordfields are changed from type: passwordField to type: textField. Perhaps this is a bug in passwordField? Kind regards, Britske Britske wrote: > > I've got a beaneditform which displays a userprofile, with among other > t

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
That's intentional. You do not want your password to be sent to the client. Martijn On Mon, 2008-07-07 at 15:27 -0700, Britske wrote: > I've got a beaneditform which displays a userprofile, with among other things > 2 passwordsfields. > When displaying an existing userprofile all fields except

T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
I've got a beaneditform which displays a userprofile, with among other things 2 passwordsfields. When displaying an existing userprofile all fields except the password fields are rendered, (the password fields remain empty), although values for the password-fields exists in the bound userprofile.

Re: T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
I've just submitted an issue on JIRA : TAPESTRY-2505 Stephane Stephane Decleire a écrit : Hi Marcus, Yes, i'm on 5.0.13 and i've just tried without the zone parameter and it works. The problem is that i need the zone parameter in my app ... Is it a known bug ? Do you know a solution to avoid

Re: T5.0.13 colon in URL leads to 503-Error

2008-07-07 Thread Filip S. Adamsen
Well, 503 is Service Unavailable - could Glassfish be interpreting the URL in a wrong way because of the colon? I really don't know anything about Glassfish as I've never used it. -Filip Tommyboy66 skrev: Thanks for you reply Filip, I am using Glassfish with normal Basic-Authentification and

RE: LazyInitializationException for ASO?

2008-07-07 Thread zack.manning
Ha there you go. Modified code to this: http://pastebin.com/m7f98ffbe and all worked fine without surveyExists. This is good to note for future acegi-based development :) Thanks so much for your help! Zack Jonathan Barker wrote: > > > I think you should. > > It looks like Tapestry is havi

Re: T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
Hi Marcus, Yes, i'm on 5.0.13 and i've just tried without the zone parameter and it works. The problem is that i need the zone parameter in my app ... Is it a known bug ? Do you know a solution to avoid this behavior ? Thanks in advance Stephane Marcus a écrit : Hi Stephane, Are you on 5.0

[T5] Default ValidationTracker clearing needed?

2008-07-07 Thread Vjeran Marcinko
Hi all. I posted this as a comment on some closed Jira issue, but nevertheless, I would like to see comments from everybody... ValidationTracker in its current form clears its input values before "success" event. I guess it is done this way assuming that no error can happen anymore when "suc

RE: LazyInitializationException for ASO?

2008-07-07 Thread Jonathan Barker
I think you should. It looks like Tapestry is having the problem displaying the error page. You have the conditional for outside the ifLoggedIn check. Out of curiosity, what happens if that is moved inside the ifLoggedIn check? I'm wondering if the Acegi RememberMe filter is putting a detached

RE: LazyInitializationException for ASO?

2008-07-07 Thread zack.manning
Yea that seems to have done it. Shouldnt I be able to just check if the ASO is null? Every @ApplicationState of mine is set create = false. I might use that other places in the app and just want make sure I know the cause of the error so it doesnt crop up elsewhere. Zack Jonathan Barker wrot

Re: T5: onSelectedFrom ...

2008-07-07 Thread Marcus
Hi Stephane, Are you on 5.0.13? Have you tried without t:zone="testZone" parameter? Marcus

RE: LazyInitializationException for ASO?

2008-07-07 Thread Jonathan Barker
Are there any places where you use the @ApplicationState annotation for Survey or Project without create=false? What happens if you test on "surveyExists" which would be the way before the create=false option was introduced? > -Original Message- > From: zack.manning [mailto:[EMAIL PRO

Re: LazyInitializationException for ASO?

2008-07-07 Thread zack.manning
Its a pretty simple hibernate entity: http://pastebin.com/m6c765ff4 Would it matter that Project is a property of Survey? Thanks for the quick reply! Zack Marcus wrote: > > Hi Zack, > > Maybe the problem is related to Survey.java, can you post the code? > > Marcus > > -- View this messa

Re: LazyInitializationException for ASO?

2008-07-07 Thread Marcus
Hi Zack, Maybe the problem is related to Survey.java, can you post the code? Marcus

Re: [T5] Handling an event from an embedded component

2008-07-07 Thread Thiago H. de Paula Figueiredo
Em Sun, 06 Jul 2008 20:01:55 -0300, Robert Zeigler <[EMAIL PROTECTED]> escreveu: Hi Thiago, Hi, Robert! Which you then document. Now your page catches: onRemoveFrom... where ... is the id of the component in the page. The ability to trigger new events based on existing ones is a really p

LazyInitializationException for ASO?

2008-07-07 Thread zack.manning
Hi All, I have a very simple layout component where I look for two ASOs and display text based on them. Component snip: http://pastebin.com/m69540e56. Tml snip: http://pastebin.com/m4435806f. I am getting this exception http://pastebin.com/m42ec222a. I dont have any hibernate session injected

Re: [T4] tapestry-captcha source?

2008-07-07 Thread Kalle Korhonen
Oh, for this thing I don't want to rely on external services. tapestry-captcha integrates with jcaptcha. Just a note for others if you are looking to use it, you are probably better off doing your own integration with jcaptcha as there are quite a few things you might want to configure specifically

Re: [T5] Looped component question

2008-07-07 Thread José Paumard
Thank you for your answer Tobias, but it wont work, because a component ID has to be a valid Java identifier. José Tobias Wehrum a écrit : Hi José, I currently have no time to test it, but did you try t:mixins="autocomplete"/> ? - Tobias José Paumard schrieb: Hello all, I'm using a "com

T5 - Include HTML in Message Catalogs

2008-07-07 Thread JustLikeKat
Please could someone tell me how to include HTML in the message properties, so that it is actually used and not just converted to text. E.g. my.error.message=Sorry, that is wrong. Please go to /somewhere This Page . So that the link actually appears in the error message. I cannot just split

t5: rollback when profile update is cancelled with beaneditform

2008-07-07 Thread Britske
hi, I was quickly testing creating and updating userprofiles using beaneditform. To me, the most logical thing to do was combine Create and Update in one page: if a User-instance exists in the applicationstate --> user is displayed using beaneditform and fields can be edited, if no user-instan

Re: [T5] Looped component question

2008-07-07 Thread Tobias Wehrum
Hi José, I currently have no time to test it, but did you try t:mixins="autocomplete"/> ? - Tobias José Paumard schrieb: Hello all, I'm using a "component in a loop" T5 feature, that looks like this : encoder="encoder" index="index"> t:value="message:e

AW: AW: Strange behavior of special characters

2008-07-07 Thread Maximilian Weißböck
Do you read this values from a property file? Property files in Java may not be utf-8 encoded. The have to be iso-8859-1 encoded. Many thanks to Sun ... Max -Ursprüngliche Nachricht- Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] Gesendet: Montag, 7. Juli 2008 14:54 An: users@tapestry

Re: T5.0.13 colon in URL leads to 503-Error

2008-07-07 Thread Tommyboy66
Thanks for you reply Filip, I am using Glassfish with normal Basic-Authentification and there are no problems with pages, resources or else. Only this special interaction causes this issue. Also I wonder about the Status 503, normally the status ist 403 generated by an access denied. In my web.x

Re: AW: Strange behavior of special characters

2008-07-07 Thread Sebastian Altmann
No i didn't because i am using tapestry 4.0.2 (forgot to mention this :-(() but i read similar atricles on tapestry 4. The weird thing is that my encoding basically is ok, and this strange things happen just under certain circumstances. Another thing that confuses me is that for example in "lösc

AW: Strange behavior of special characters

2008-07-07 Thread Maximilian Weißböck
Did you have a look at http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding Max -Ursprüngliche Nachricht- Von: Sebastian Altmann [mailto:[EMAIL PROTECTED] Gesendet: Montag, 7. Juli 2008 14:06 An: users@tapestry.apache.org Betreff: Strange behavior of special characters Hi, we provi

T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
Hi all, I have a strange behavior when i try to trace which submit button have been used on a form : void onSelectedFromSubmit1() { log.info("submit1"); } void onSelectedFromSubmit2() { log.info("submit2"); } whether i submit the form via the submit1 or submit2 button, the

Re: T5.0.13 colon in URL leads to 503-Error

2008-07-07 Thread Filip S. Adamsen
Hi, This is not a bug in Tapestry, nor is it a problem with Windows - at least I don't have that problem. To be honest I don't even think it's Glassfish's fault, although this works for me with Jetty. Perhaps it's a configuration issue of some sort? And no, it's not simple to change the way

Strange behavior of special characters

2008-07-07 Thread Sebastian Altmann
Hi, we provide our tapestry application in two languages (german and english) which work quite fine but with one problem. The problem is, that special characters used in german (like ö, ü, ä) are displayed wrong the first time i access a page (in this case i get "l?en" instead of "löschen" för

Issue in Dropdown menu

2008-07-07 Thread Kameswari
I have a screen with 2 dropdown menus. The first menu has 3 items in it and the 2nd has 7 items. When i go to first menu the 2 menu items are dispalyed properly. Now if i move to the 2nd menu and then come back to the 1st menu again, some blank spaces are displayed and only after that the 2 menu

T5.0.13 colon in URL leads to 503-Error

2008-07-07 Thread Tommyboy66
Hello, I uses SSL in my Application and get an error 503 with EventLink and ActionLink. For example my code is really simple: *.tml: *.java: void onClickButton1() { Logfile.appendLog("onClickButton1"); } In this example T5 creates a link like

Re: Validate Event

2008-07-07 Thread Sven Homburg
here is an little example, but if you read the docs you can answer the question by your self @Persist @Property private String valueForComponent; @Component(parameters = {"value=valueForComponent"}) private TextField inputComponent; void onValidateFromInputComponent() { System.out.println(

Validate Event

2008-07-07 Thread 滕训华
I have three textField in my page and in my validate event I write: Private String component1; Void onValidate(){ System.out.println(component1) } The result is outputing the value of the component1 three times,but the first time its value is null and