Hello,
I want to build divs with rounded corners.
I was searching over Internet when I found 'NiftyCube'. I looked at the
examples in http://www.html.it/articoli/niftycube/index.html,
window.onload=function(){
Nifty("div#box","big");
}
And I included a div with id="box",
I tried to include
Hi everyone,
I am trying to figure out the cleanest solution to managing a zone which
will be updated with numerous complex page fragments depending on the state
of the user.
There is one page with a zone which gets periodically updated depending on
the state of the user, the content is large en
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.
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
On Wed, 05 May 2010 20:43:55 -0300, MauricioF
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 structure, dynamic behaviour.
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
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">
EXTERNAL PAGE TEMPLATE
the p
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 t
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.
--
On Wed, 05 May 2010 19:11:51 -0300, MauricioF
wrote:
Caused by: org.apache.tapestry5.ioc.internal.OperationException: Service
interface org.apache.tapestry5.internal.services.PageTemplateLocator is
matched by 2 services: PageTemplateLocator, PageTemplateLocatorFileBased.
Try not adding Page
Decorating will probably work, but you can also construct the service from
within your contributing method:
public static void contributeServiceOverride(MappedConfiguration
configuration, @ContextProvider AssetFactory contextAssetFactory,
ComponentClassResolver componentClassResolver)
{
co
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
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 resolution
On Wed, 05 May 2010 22:50:00 +0200, MauricioF 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 you need to do. You can o
On Wed, 05 May 2010 18:48:47 -0300, Josh Canfield
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 called. The class is documen
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 fi
On Wed, 05 May 2010 17:50:00 -0300, MauricioF
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 register in my module a new
On Wed, 05 May 2010 18:21:30 -0300, Michael Prescott
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 URL-based
security.
Every t
On Wed, 05 May 2010 17:59:01 -0300, Jim O'Callaghan
wrote:
You should pass a String containing the id of the zone to be updated, not
the zone itself.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars M
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 wrote:
>
>
> Hi,
>
> In the application I am working on, I like to show a processing wheel
> turni
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
"Sub
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
oncl
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 contain
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
deve
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
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 Presc
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 -
'P
I have a spring configuration file config.xml:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-
Try:
@Property @InjectComponent
private Zone testZone;
On Wed, May 5, 2010 at 11:32 AM, Thiago H. de Paula Figueiredo
wrote:
> On Wed, 05 May 2010 15:18:18 -0300, Jim O'Callaghan
> wrote:
>
>> Hello,
>
> Hi!
>
>>
>
> Don't use expansions (${}) when passing values to parameters. It forces the
>
On Wed, 05 May 2010 15:18:18 -0300, Jim O'Callaghan
wrote:
Hello,
Hi!
Don't use expansions (${}) when passing values to parameters. It forces
the conversion to String. In this case, it's harmless, as it's already a
Strig.
'zone' is a ComponentSource within the associated componen
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 zon
What I meaned to say with the perfect explanation... :)
Thank you! :)
2010/5/5 Thiago H. de Paula Figueiredo
> On Wed, 05 May 2010 13:13:09 -0300, Nicolas Bouillon
> wrote:
>
> My real component takes is used to display the product price in an order
>> from the client cart (many lines, so in a
On Wed, 05 May 2010 13:13:09 -0300, Nicolas Bouillon
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 kept
for all the f
On Wed, 05 May 2010 13:02:26 -0300, Nicolas Bouillon
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 an initial value
On Wed, 05 May 2010 12:55:47 -0300, Nicolas Bouillon
wrote:
Hello,
Hi!
if if call mutliple type my component like :
You have two different instances (objects) of your count component.
Now you have one instance being rendered twice.
Is this intended or a bug ?
This is h
On Wed, 05 May 2010 12:45:20 -0300, paha 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 object returns "" and
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
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
> Thank you for yo
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
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
> Hello,
>
> I'm facing a strange behavi
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) {
count
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 metho
On Wed, 05 May 2010 12:13:10 -0300, MauricioF
wrote:
Hi
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 manag
On Wed, 05 May 2010 12:01:26 -0300, paha 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
object. and as soon as
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 te
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 return
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
Try verify if the 'user' is null in the toClient method .
2010/5/5 paha
>
> Hi, it must be again some misunderstanding from my side. I have a form and
> select
>
> encoder="supervisorEncoder" model="supervisorModel"
> blankOption="always"/>
>
>
> i
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
--
Vie
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, it must be again some misunderstanding from my side. I have a form and
select
in OnSubmit i see that all other field values of the form (and also some
selects but with Enum as Model) get applied to company object except for
this select. AS SOON AS i remove
validate="required" it's get appl
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.
On Wed, 05 May 2010 07:27:25 -0300, Mark Allan 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 templates. You can imp
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 wrote:
> Hi All,
>
> I've tried searching in vain for an answer to this, so hav
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 r
54 matches
Mail list logo