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

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

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, I

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

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. -

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]

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: 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

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

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

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

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? input type=button id=cancelButton

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: input type=button id=cancelButton value=Cancel onclick=location.href='/Administration';/ thanks for your help. p. Quoting Martijn Brinkers [EMAIL PROTECTED]: I'm not sure

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

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: 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 the

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

[T5]: label not being picked up

2008-07-29 Thread photos
Sorry for another newbie question :-) but why does: td t:label t:for=userNamethe name of the user/t:label /td td input type=text t:id=userName t:type=TextField t:value=userName/ /td print the name of the

[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: t:form t:id=newUserForm table tr td colspan=2 align=left input type=submit

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

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-28 Thread photos
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: ... FieldValidationSupport: DEFINED FieldValidatorDefaultSource

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

2008-07-28 Thread photos
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: Quoting 9902468 [EMAIL PROTECTED]: Is the hibernate service

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

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
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

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]: 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.

[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:grid t:source=allDigitalItems t:reorder=article, issue,title t:remove=id t:row=listItem t:parameter t:name=articleCell t:PageLink t:page=details t:context=listItem.id ${listItem.article}

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: t:PageLink t:page=... t:PageLink page=... I noticed that when doing t:form t:id=... that the t: for id was required or

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