Hi. I have a utility class that I call from within my application. Is it
possible to access the current request and requests parameters from within
my utility class so I can access form parameter values that were uploaded in
the current request?
--
View this message in context:
Nice. I was thinking I could only inject a request into a page class. So I
can inject the request anywhere in the application? Great. Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Accessing-tapestry-request-params-outwith-a-page-tp5718291p5718293.html
Sent
...just out of interest. Am I correct in thinking that form parameters for a
Tapestry form upload are not stored in the usual HttpServletRequest
parameters?
The reason I ask is that I was originally accessing the HttpServletRequest
object, to try and get to the form parameter I was looking for.
Thanks. I wasn't able to use the following annotation and method...
@Contribute(ServiceOverride.class)
public static void
setupApplicationServiceOverrides(MappedConfigurationClass,Object
configuration)
{
configuration.addInstance(SomeServiceType.class,
SomeServiceTypeOverrideImpl.class);
Hi there. I would like to add a progress listener to UploadedFile to track
progress up the file being uploaded. I know that it's possible to do this
with apache commons file upload. Is there an easy way to do it with the T5
UploadedFile class?
Cheers,
Dave.
--
View this message in context:
Yes. Is there a way to set the listener from within Tapestry?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Adding-a-progress-listener-to-UploadedFile-tp5718197p5718199.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi. When creating dynamic content in a TML template file I normally do
something like this:
${user.email}
So when running the template in my tapestry app, I get a header with the
logged in user's email address.
But, when viewing the template outside of tapestry, as a normal file,
obviously I
Could I extend that a little and create a component that does the following?
[hidden email]
Then tapestry could replace the dispayed value with thee specified
'property'?
I wonder if a comonent like that exists, or how I would write one if it
doesn't?
Thanks...
--
View this message in
brilliant! it actually works with outputraw, which means i don't have to
supply the format... and it's always going to be a string that I set, so
should be fine.
Thanks.
--
View this message in context:
Hi folks. I am writing a web app to be used by a number of clubs. Each club
can register and create a gallery page and a contact page. Both pages will
then be public.
I each clubs pages to be viewable from the following urls:
http://localhost/club_url_friendly_name/gallery
Superbe! It looks like I can just use a URL rewriter filter to rewrite my
URLs and pass the club name in as a request param.
http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html
--
View this message in context:
Thanks. Will take a look.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714535.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
This looks perfect! Tapestry is outstandingly good.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714537.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi there. I'm looking to create a Layout.tml template file to hold the
header/footer/navigation elements of my page, and then create the content
within separate files such as Index.tml, About.tml
Obviously, at the moment, when viewing these files outside of Tapestry, they
just show a snippet of
Hi. the trouble is when I try to escape everything around the main content..
eg. if the About.tml looks a bit like this...
html
head
/head
body
about text
/body
html
I want it to have all the body/head tags in the TML file as above, so it can
easily be viewed outiside of tapestry.
But, i
Thank you s much!. That's exactly what I've been looking for. Should have
read more closely.
Cheers,
David.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Using-layouts-partial-page-templates-tp4806800p4806882.html
Sent from the Tapestry - User mailing list archive
Hi guys. Is it possible to access the imaes that are used by validation
bubbles? I wanted to make the less round and change the colour. any ideas?
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Changing-the-look-of-the-validation-bubbles-tp4730327p4730327.html
Hi there. I have a page on which I want to have a number of forms, one for
each person. The forms will have forename, surname, etc... the usual fields.
However, I wont know how many person forms I want on the page until runtime.
At the moment it seems that I need to have a @Component on my page
Hi. Is there any way I can create a select field and get is just to use the
options listed in the html?
The values I have are never going to change and Im happy with the list in
the TML.
Eg... I have...
form t:id=search_form name=search_form
p
label for=employeeType
Yesss!. Tapestry seems to take care of it if I just create a loop. So I can
loop through each person, create a form for each, and have one Form
component with one set of field props in the page class that each generated
HTML for can submit too. Brilliant.
--
View this message in context:
Brilliant! Thanks
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Select-component-Can-i-just-pass-it-a-list-of-values-tp4674906p4675175.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi there. When using localization to display different template files based
on the locale, it seems to ad the locale to the URL. Is that normal
behaviour?
Eg. I have 2 homepage files... Home_en.tml and Home_fr.tml.
If I set the locale to French, and go to the homepage, if goes to URL
/fr/Home
Not sure if that makes any sense but here goes... For each page in Tapestry,
I know that I need to specify a page class, and a corresponding TML templage
file for that page.
I was wondering if I can have more than one possible TML file for a page...
and programatically decide which one to use?
Ah. Maybe this is what I need to dynamically use a different template for a
page...
http://tapestry.apache.org/localization.html
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Can-you-dynamically-select-which-page-template-to-return-tp4505668p4505678.html
Sent from the
]
ml-node+4507472-1501312819-92...@n5.nabble.com wrote:
From: Howard Lewis Ship [via Tapestry]
ml-node+4507472-1501312819-92...@n5.nabble.com
Subject: Re: Can you dynamically select which page template to return?
To: dkeenan david_siedle...@yahoo.co.uk
Date: Monday, June 20, 2011, 7:49 PM
Thanks Lewis. I can see what you mean. It does sound like I'm trying to do
something action-oriented/Struts-like. I'm a big fan of the way Tapestry
doesn't force you to think in this way and is more intuitive. The reason I
ask actually, is more to do with wanting to re-skin pages based on a user.
Thanks Thiago. Yeah I see what you mean also. Ideally the HTML should be the
content, and be completely separate from styling (that's CSS's job). This is
exactly how it should be done as you say, but I'm also keen to reuse
existing HTML templates without having to re-factor too much (some changes
Sounds great. I'll take that approach in that case. Thanks for your help.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Can-you-dynamically-select-which-page-template-to-return-tp4505668p4508195.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi. I just gave that a go, using localization to serve a different TML
template. Started by adding following lines to AppModule:
public static void contributeApplicationDefaults(
MappedConfigurationlt;String, Stringgt; configuration) {
29 matches
Mail list logo