Hi All,
I've tried searching in vain for an answer to this, so have included
my search terms throughout this email in case anyone is stuck on the
same issue in the future - if it looks like I'm using various terms to
refer to the same thing, that's why!
I've got a T5 app which is almost
I don't think so. T5 is all about avoiding logic in the templates.
I would recommend creating a service that accesses those properties, if
you're copying the logic around.
On Wed, May 5, 2010 at 12:27 PM, Mark Allan mark.al...@ed.ac.uk wrote:
Hi All,
I've tried searching in vain for an
On Wed, 05 May 2010 07:27:25 -0300, Mark Allan mark.al...@ed.ac.uk wrote:
Hi All,
Hi!
I've tried a number of variations on the following, but nothing works:
${message:comp/env/StreamServerLocation}
As Inge said, the Tapestry philosophy is to implement logic in classes,
not in
I guess you could also contribute these strings to be accessible by
SymbolSource? This way you can easily inject single values into the
page/component class like this:
@Property
@Inject
@Symbol(streamServerLocation)
private String streamServerLocation;
On Wed, May 5, 2010 at 2:00 PM, Thiago H.
Hi, it must be again some misunderstanding from my side. I have a form and
select
t:form
t:select t:id=supervisor value=company?.supervisor validate=required
encoder=supervisorEncoder model=supervisorModel
blankOption=always/
/t:form
in OnSubmit i see
Thanks everyone. I guess the preferred approach is to write a service
to provide various constants like this.
All my pages extend a very basic Page.java so I can just import the
service into that and create accessors as necessary - that should be
the most efficient way to do what I want.
Hi,
i tried to get the file upload to work with tomcat with this manual:
http://t5-easy-fckeditor.kenai.com/FileUploads.html
Now i've got the problem that i use Tomcat instead of jetty and i have no
idea how the 3. step in the manual should look like for tomcat.
Can someone help?
hunta
--
Try verify if the 'user' is null in the toClient method .
2010/5/5 paha ch_pa...@yahoo.com
Hi, it must be again some misunderstanding from my side. I have a form and
select
t:form
t:select t:id=supervisor value=company?.supervisor validate=required
Hello All,
I am new to Tapestry. I am trying to run a client's Tapestry project in
Eclipse but it cannot be run. I do not know where I am committing a mistake.
The client's folder structure is like:
project---
src
target
dso-boot-hotspot_linux_160_17.jar
Pablo dos Reis wrote:
Try verify if the 'user' is null in the toClient method .
no, it is not null. as i said, the properly selected value gets never
submitted or doesn't survive validation (don't know what is really going on
and in which order) - but encoder gets correct value and returns
Hi
I´m evaluating T5 for development of a web application. I´ve been able to
play with it and I think it could be the right tool for the job. There is
only one stopper for this:
The requirement is that the templates must be managed externally by a CMS.
After some investigation it seems that
On Wed, 05 May 2010 12:01:26 -0300, paha ch_pa...@yahoo.com wrote:
no, it is not null. as i said, the properly selected value gets never
submitted or doesn't survive validation (don't know what is really going
on and in which order) - but encoder gets correct value and returns
correct
Thiago H. de Paula Figueiredo wrote:
Tapestry form field components don't update the edited property when a
validation error ocurrs
thank you, you gave me some idea and i found a reason. my User class
overrides toString returning name+surname. when the valueencoder runs
toObject method,
Hello,
I'm facing a strange behaviour on a component. Here if a sample component :
package tapestry.components;
import org.apache.tapestry5.MarkupWriter;
public class CountComponent {
private Integer count = 0;
public Integer getCount() {
if (count == null) {
Hi,
No, there is no bug.
In the first example you have 2 components, so two contexts.
In the second one you have just one component, so when you loop into it, it
increases twice, as you are increasing the same component
Katia
2010/5/5 Nicolas Bouillon nico...@bouil.org
Hello,
I'm facing a
Thank you for you fast response.
Very disturbing in fact, because I was using this kind of method in lot of
place... and I don't know if the component will be used alone or in a loop.
So I have to reset such local variable in a @SetupRender each time, or
there is a better solution ?
Thanks.
On
If nobody desagrees, I think SetupRender is the place to initialize the
render variables.
Anyway, your component seems very simple ; I don't know exactly which will
be useful for You could use component parameters...
I depends on the component...
2010/5/5 Nicolas Bouillon nico...@bouil.org
Yes, this sample component is really simple, it was just a test case.
My real component takes is used to display the product price in an order
from the client cart (many lines, so in a loop). And as local variable I
had the discount so once a discount was found for a line, it was kept
for all
On Wed, 05 May 2010 12:45:20 -0300, paha ch_pa...@yahoo.com wrote:
thank you, you gave me some idea and i found a reason. my User class
overrides toString returning name+surname. when the valueencoder runs
toObject method, a User-Object with only id set gets created. so the
toString of this
On Wed, 05 May 2010 12:55:47 -0300, Nicolas Bouillon nico...@bouil.org
wrote:
Hello,
Hi!
if if call mutliple type my component like :
t:countComponent /
t:countComponent /
You have two different instances (objects) of your count component.
t:loop source=items value=var:item
On Wed, 05 May 2010 13:02:26 -0300, Nicolas Bouillon nico...@bouil.org
wrote:
Thank you for you fast response.
Very disturbing in fact, because I was using this kind of method in lot
of place... and I don't know if the component will be used alone or in a
loop.
By the way, *never* give
On Wed, 05 May 2010 13:13:09 -0300, Nicolas Bouillon nico...@bouil.org
wrote:
My real component takes is used to display the product price in an order
from the client cart (many lines, so in a loop). And as local variable I
had the discount so once a discount was found for a line, it was
What I meaned to say with the perfect explanation... :)
Thank you! :)
2010/5/5 Thiago H. de Paula Figueiredo thiag...@gmail.com
On Wed, 05 May 2010 13:13:09 -0300, Nicolas Bouillon nico...@bouil.org
wrote:
My real component takes is used to display the product price in an order
from the
Hello,
I 'm having an issue with zone Ids and actionlinks and having spent some
time on it am hoping someone can give me some pointers. I've checked the
previous postings to do with manually binding zone Ids to ensure they are
consistent before and after partial updates and can see that my
On Wed, 05 May 2010 15:18:18 -0300, Jim O'Callaghan
j...@peritussolutions.com wrote:
Hello,
Hi!
t:zone zone=prop:zone id=${ componentZoneId } t:update=show
Don't use expansions (${}) when passing values to parameters. It forces
the conversion to String. In this case, it's harmless, as
Try:
@Property @InjectComponent
private Zone testZone;
On Wed, May 5, 2010 at 11:32 AM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
On Wed, 05 May 2010 15:18:18 -0300, Jim O'Callaghan
j...@peritussolutions.com wrote:
Hello,
Hi!
t:zone zone=prop:zone id=${ componentZoneId }
I have a spring configuration file config.xml:
?xml version=1.0 encoding=UTF-8?
beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.springframework.org/schema/beans
Re: the first error, it looks like Spring is trying to inject your class 'by
type', but isn't sure which of two Process beans to use. I only see one
from the snippet you've attached, is it possible that there's another one?
As far as the second error goes, the ids are probably case sensitive -
I even tried
@Inject
@Service(process)
private Process process;
Caused by: java.lang.RuntimeException: Service id 'Process' is not defined
by any module.
I am only using this configuration file to load beans...so i guess there
should not be a confusion or second possibility
Michael
Thiago H. de Paula Figueiredo wrote:
You should provide your own ValueEncoder that doesn't rely on toString().
well if you've read my first post, you could see that my ValueEncoder
doesn't rely on toString(). It is rather Tapestry Validator, that runs
toString on User object and assumes
Hi Thiago, thanks for your reply!
Totally agree with your statement: Tapestry templates are meant to be used
by developers, not users.
But in our CMS there are some sections which will require some technical
knowledge.
The good thing of templates is that they are easy to understand by a web
Howard, Thiago,
Thanks for the responses. I changed the zone declaration in then
component's java class to the correct type and used the @InjectComponent
annotation instead of @Inject (I must have incorrectly copy/pasted this from
an online example) and while the generated HTML source now
Hi,
In the application I am working on, I like to show a processing wheel
turning when processing Delete action. After deletion is done, it will
refresh the update zone with some sort of messages related to Delete and
stop processing wheel. It works in Firefox, but not in IE because the
onclick
Is there any solid documentation on the full set of transformations from
page class to URL? Seems that understanding all of the URLs at which my
pages are made available is important to using any sort of URL-based
security.
Every time I go to look this up, I can never find it, other than the
Don't use the onclick attribute, it gets overwritten.
Use Prototype's observe():
$(linkId).observe(click, function() { startProcessingWheel( ... ); });
On Wed, May 5, 2010 at 2:14 PM, DavidWei xinhua@rrd.com wrote:
Hi,
In the application I am working on, I like to show a processing
On Wed, 05 May 2010 17:59:01 -0300, Jim O'Callaghan
jc1000...@yahoo.co.uk wrote:
div class=t-zone
zone=org.apache.tapestry5.corelib.components.z...@278a2a id=zone_1
You should pass a String containing the id of the zone to be updated, not
the zone itself.
--
Thiago H. de Paula
On Wed, 05 May 2010 18:21:30 -0300, Michael Prescott
michael.r.presc...@gmail.com wrote:
Is there any solid documentation on the full set of transformations from
page class to URL? Seems that understanding all of the URLs at which my
pages are made available is important to using any sort of
On Wed, 05 May 2010 17:50:00 -0300, MauricioF mauricio.fara...@ioko.com
wrote:
Other issue I´ll have to face is about caching templates, because I´d
like T5 to detect when a template has changed to remove it from the
cache)
I guess you'll need to do this yourself.
Ideally I´d like to
Your problem is definitely with the Required validator, although it's
a little suspect that a valid User.toString() returns an empty string
or that you are building incomplete entities in the ValueEncoder. In
my opinion the validator should not be returning an error.
public void validate(Field
On Wed, 05 May 2010 18:48:47 -0300, Josh Canfield joshcanfi...@gmail.com
wrote:
Your problem is definitely with the Required validator, although it's
a little suspect that a valid User.toString() returns an empty string
That's strange for me too.
I'm not sure why value.toString() is
On Wed, 05 May 2010 22:50:00 +0200, MauricioF mauricio.fara...@ioko.com wrote:
Ideally I´d like to register in my module a new implementation of
PageTemplateLocator
Any other idea how can I do this? (If you think override PageTemplateLocator
is not the right thing..)
Thanks
Yes, that's what
M, overriding makes T5 throw an exception
Caused by: org.apache.tapestry5.ioc.internal.OperationException: Service
interface org.apache.tapestry5.internal.services.PageTemplateLocator is
matched by 2 services: PageTemplateLocator, PageTemplateLocatorFileBased.
Automatic dependency
Hi,
It's all about having the app server serve up images once they've been uploaded.
For Tomcat I simply set a new context with the specified docbase. e.g.
using to set up a context of wwwfiles to serve images from
C:\Users\Ville\Documents\NetBeansProjects\wwwfiles
I just created a file called
Decorating will probably work, but you can also construct the service from
within your contributing method:
public static void contributeServiceOverride(MappedConfigurationClass, Object
configuration, @ContextProvider AssetFactory contextAssetFactory,
ComponentClassResolver
On Wed, 05 May 2010 19:11:51 -0300, MauricioF mauricio.fara...@ioko.com
wrote:
Caused by: org.apache.tapestry5.ioc.internal.OperationException: Service
interface org.apache.tapestry5.internal.services.PageTemplateLocator is
matched by 2 services: PageTemplateLocator,
Thanks Martin, testing that approach right now..
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/How-to-load-tml-files-from-the-filesystem-instead-of-classpath-tp5009386p5011538.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
I managed to override the class but later I realize that I did not want to
have this behaviour for all the T5 standard components :(
So using a decorator fits better because I can reuse the original approach
in the case I don´t find the template in the fileSystem.
This is a first version of
I´ve found a small gotcha with this approach, it works fine for my page and
components
However it does not work for render injected blocks.
In this template
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
xmlns:p=tapestry:parameter
EXTERNAL PAGE TEMPLATE
t:block
On Wed, 05 May 2010 20:43:55 -0300, MauricioF mauricio.fara...@ioko.com
wrote:
I´ve found a small gotcha with this approach, it works fine for my page
and components
However it does not work for render injected blocks.
What do you mean by not working?
Remember that Tapestry is static
Hi,
yeah, the configuration differs how to set up this with different app
servers. (Or apache as we always use httpd to serve static files anyway.)
- Ville
Ps. Wish that I had time to finish CKEditor integration, I already have
working version which needs polishing and documentation. The file
Le 05/05/2010 17:13, MauricioF a écrit :
Hi
I´m evaluating T5 for development of a web application. I´ve been able to
play with it and I think it could be the right tool for the job. There is
only one stopper for this:
The requirement is that the templates must be managed externally by a CMS.
51 matches
Mail list logo