Re: T5: select updating in form?

2008-10-08 Thread photos
Quoting Ulrich Stärk <[EMAIL PROTECTED]>: Come on, you could really invest some mental effort instead of asking us to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... Thanks for the example Uli. Contrary to what you may think,

Re: T5: select updating in form?

2008-10-08 Thread photos
Further to this, I can see it can be done using two forms, but that isn't very nice. As this is such a common requirement (and one that I used without problems in an application using Tapestry 3) I am somewhat surprised that there are no examples offered as to how to do this in Tapestry 5

Re: T5: select updating in form?

2008-10-08 Thread photos
Quoting Ulrich Stärk <[EMAIL PROTECTED]>: Do a form submit upon selecting something in the first dropdown, then render the second dropdown according to the selection made. And vote for https://issues.apache.org/jira/browse/TAP5-138. Thanks, but I must be doing something wrong as I cannot get

Re: T5: select updating in form?

2008-10-08 Thread photos
Anyone? Quoting [EMAIL PROTECTED]: I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside

T5: select updating in form?

2008-10-07 Thread photos
I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside a form). In that case, how can

Re: T5: select list?

2008-10-06 Thread photos
Thanks! Quoting Ulrich Stärk <[EMAIL PROTECTED]>: Select is what you want. The HTML specs specify a size attribute for the select HTML element which indicates how many entries should be displayed at a time. size=1 (default) would be a dropdown list. HTH, Uli Am Mo, 6.10.2008, 11:33, schrieb

T5: select list?

2008-10-06 Thread photos
Is there no such thing as a Select List in T5? I see "pallete" and "select", but they aren't suitable (I have a long list of data that I want selectable - only one selection at a time - in a scrolling list). thanks, p. ---

Re: T5: return Index.class problem

2008-09-26 Thread photos
Quoting "Filip S. Adamsen" <[EMAIL PROTECTED]>: Hi, This was changed between 5.0.14 and 5.0.15 and subsequently reverted in 5.0.16. See https://issues.apache.org/jira/browse/TAPESTRY-2675. -Filip Ok, thanks. That will be why. cheers, p.

T5: return Index.class problem

2008-09-26 Thread photos
Hi, I am implementing an access controller as specified in the Wiki HOW-TOs http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess On a logout ActionLink I do: return Index.class; In the past this has been working fine. Today I tried using the link and I get an exception: [ERROR]

T5: config problem with move to 5.0.15

2008-09-25 Thread photos
This is probably some silly problem and it isn't really Tapestry related (sorry :-( ), but I'm getting so flummoxed I thought I'd ask here... I deleted my .m2 repository and changed the POM to get Tap 5.0.15 plus added a dependency to get tapestry-spring. In Eclipse I then did a Maven up

Re: T5 : [ANN] The book - (Index & Appendices)

2008-09-04 Thread photos
I know this is very early in the piece, but what do you intend to do about indexing the book? The Kolesnikov Tapestry book has one of the worst indexes I've ever come across and stands as a good example of how not to do it. Having a good index is a very important part of any successful te

Re: Problem with aso - a further query

2008-09-03 Thread photos
Quoting Hugo Palma <[EMAIL PROTECTED]>: You have two ways of setting the currUser DAO: 1. Copy fields from one object to another. Just add this to your code: currUser.setUsername(user.getUsername); currUser.setPassword(user.getPassword); . You don't have to assign the currUser field. That

Re: T5: onActivate exception query

2008-08-29 Thread photos
Hi, I was just about to reply and say I solved it. Missing slash in the location.href. The following works: onclick="location.href='/Administration';"/> thanks for your help. p. Quoting Martijn Brinkers <[EMAIL PROTECTED]>: I'm not sure but I thinks it's a similar problem. It looks l

Re: T5: onActivate exception query

2008-08-29 Thread photos
Thanks for the fast reply Martijn; that fixed the GIF asset. However, I am still having problems with the Cancel button. I can reference the Administration page as an asset, but obviously it then does not get processed by Tapestry. Thoughts, anyone? p. Quoting Martijn Brinkers <[EMAI

T5: onActivate exception query

2008-08-29 Thread photos
I don't quite understand why the following does not work and produces: TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Exception in method uk.bl.dportal.pages.EditUser.onActivate(int) (at EditUser.java:40), parameter #1: Coercion of bl_red_hundre

T5: Form cancellation query

2008-08-27 Thread photos
I have a form on a page and I have two buttons: Submit and Cancel. I have handlers for both. However, because I need two of the fields to be required, the client side checking never allows my handlers to be called if no values are inserted in the fields and the user presses Cancel. How

Re: T5 : Let's write a book !

2008-08-27 Thread photos
Have the book printed by Lulu. In the Lulu project set the Royalties to 0. Then when a copy is bought the customer will be paying for the printing only. No royalties will be paid. As the book is unlikely to sell tens of thousands of copies the amount of money generated by royalties would

Re: T5: Query regarding .tml file location

2008-08-26 Thread photos
Thanks Howard. My environment is that which is provided when Maven pulls in the files when doing the tutorial. I'm trying this in a "bare bones" Tapestry application. p. Quoting Howard Lewis Ship <[EMAIL PROTECTED]>: It probably means that your build is not deploying the .tml file with

T5: Query regarding .tml file location

2008-08-26 Thread photos
The Tapestry website says: - Under a typical Maven directory structure, the Java class for a component might be src/main/java/org/example/myapp/components/MyComponent.java. The corresponding template will be src/main/resources/org/example/myapp/components/MyComponent.tml.

Form validation question

2008-08-06 Thread photos
From reading the documentation I am under the impression that during form submission a VALIDATE_FORM event is emitted once. However, I observe onValidate() being called for every component in the form, the value from the component not being set until *after* onValidate has apparently been c

Re: Access control with dispatchers and annotations - problem

2008-07-30 Thread photos
I too have been trying to implement what is on the wiki. This is really doing my head in (not helped by the fact the wiki solution http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess does not have all the "bits" of code necessary for a newbie like myself to get it working. For insta

Re: Access control with dispatchers and annotations

2008-07-29 Thread photos
I've been trying to use the same code. The problem lies apparently in the fact that the class returned by getAnnotation is not Private but a proxy... ... page anno class=$Proxy40 ... Quoting Moritz Gmelin <[EMAIL PROTECTED]>: Hi, I think there is a bug in the Wiki. Try this instead

[T5]: form submission broken?

2008-07-29 Thread photos
Again, I'm trying to follow what is in the Kolesnikov book and I can't get it to work: template: value="Submit"/>

[T5]: label not being picked up

2008-07-29 Thread photos
Sorry for another newbie question :-) but why does: the name of the user print "the name of the user" rather than "User Name" like it does in the Kolesnikov book? thanks, p.

Re: [T5]: Hibernate question - thank you!

2008-07-28 Thread photos
IgnoredPathsFilter: DEFINED So that one should be ok. Is the page that you are testing with _really_ calling session.something? Tapestry lazy loads everything so Hibernate is not really initialized without the call. Can we have the stack trace? - 99 photos-4 wrote: Quotin

Re: [T5]: Hibernate question - session is null

2008-07-28 Thread photos
he call. Can we have the stack trace? - 99 photos-4 wrote: Quoting 9902468 <[EMAIL PROTECTED]>: Is the hibernate service initialized at all? When Tapestry starts it lists all known services, is Hibernate in that list? - 99 It looks like it: ...

Re: [T5]: Hibernate question - session is null

2008-07-28 Thread photos
Quoting 9902468 <[EMAIL PROTECTED]>: Is the hibernate service initialized at all? When Tapestry starts it lists all known services, is Hibernate in that list? - 99 It looks like it: ... FieldValidationSupport: DEFINED FieldValidatorDefaultSource: DEFINED

Re: [T5]: Hibernate question - session is null

2008-07-25 Thread photos
Thanks for your help, but so far no joy: Quoting 9902468 <[EMAIL PROTECTED]>: And of course, check that you have Hibernate and hibernate annotation in your >libraries, they are NOT included automatically by maven if maven is used. The libraries appear in my repository and appear under "sou

Re: [T5]: Hibernate question - session is null

2008-07-25 Thread photos
Quoting 9902468 <[EMAIL PROTECTED]>: Check that the @Inject private Session session; session is org.hibernate.Session. - 99 It is. I notice that when I switch on the mysql log that no attempt is ever made to access the db. Is there any kind of logging I can switch on from Tapestry

Re: [T5]: Hibernate question - session is null

2008-07-25 Thread photos
I'm using Eclipse. The XML config appears in target/classes and appears to be in the classpath. I'm afraid I'm rather new to Tap 5 and also to Hibernate. I'm just following what is in the Tutorial. Unfortunately the session is still coming out as null. Is there anywhere I can see that T

[T5]: Hibernate question

2008-07-24 Thread photos
I am following the tutorial at http://tapestry.apache.org/tapestry5/tutorial1/forms2.html but I find that the session (supposedly injected) is null. I'm not sure how to proceed. Could someone point me to documents/better tutorials on how to use Tapestry with Hibernate? Thanks, p. ---

re [t5]: testing for null number

2008-07-24 Thread photos
Can someone knowledgable please comment on my query from yesterday? I notice that t:if coerces number objects (Long, Integer, etc) and tests for zero or non-zero. I want to test for null or not null using a number data type. Is there any way to do this? Thanks, p. ---

[t5]: testing for null number

2008-07-23 Thread photos
I notice that t:if coerces number objects (Long, Integer, etc) and tests for zero or non-zero. I want to test for null or not null using a number data type. Is there any way to do this? - To unsubscribe, e-mail: [EMAIL

[t5] remove in grid not working

2008-07-22 Thread photos
"remove" does not appear to work: t:remove="id" t:row="listItem"> ${listItem.article} I have looked for previous advice on this and someone said that "exclude" should

T5: to t:page or not to t:page?

2008-07-21 Thread photos
I am using the new book on Tapestry 5 by Alexander Kolesnikov and I notice that there is a subtle difference between the Tapestry web Tutorial and what is in the book: that is the case, why is it missing in examples in the Tutorial? Also, where is there anywhere I can see what tags are defi

Re: new user help required

2008-05-08 Thread photos
Thank you Christian and Jonathan for your quick replies. I'm not using Jetty Runner - I did install JettyLoader. I'm running Jetty from Maven command line because, as I recall, that is what is in the Tutorial. Anyway, the observed reloading behaviour is fine - I did suspect that perhaps on

new user help required

2008-05-08 Thread photos
Hi, I've had a look through the archive but haven't spotted an explanation for my query. I have used Tapestry 3 in the past and have just started looking at T5. I have not used Maven before and part of my query probably relates to that. I have been doing Howard's tutorial and I note Mav