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
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
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
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
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
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.
-
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]
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.
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
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}
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
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
33 matches
Mail list logo