I thought the digest generator is meant to make a different digest for each
file, but it seems to be for the whole app?, or is that bit
something to do with app versioning for caching and what not and not the
digest?. This whole thread has some ideas for a white list approach to files
on
Ouch, now I get it. WEB-INF and all its contents are in fact visible,
directly below yourapp/assets/ctx//, and it's not hard
to find out the value of .
Suggestions anyone?
On 15/08/2009, at 10:34 AM, kartweel wrote:
http://jumpstart.doublenegative.com.au:80
http://jumpstart.doublenegative.com.au:8080/jumpstart/assets/ctx/9f6f05886c53821a/WEB-INF/classes/jumpstart/web/services/AppModule.class
you can access the entire web app, it even gives you directory listings
Geoff Callender-2 wrote:
>
> Isn't this simply due to a Maven convention which has p
2009/8/15 bdumeny :
> There is no specified scope for jpa dependencies...
And the hibernate.jar is definitely in the generated WAR file?
Otherwise try scope 'compile'. Obviously the javax.persistence jar is.
> If only someone tells me that it's possible...
> I haven't found any example of use t5/
I have a need to make my Tapestry 4.1 Pages available in pdf format but
having no luck to-date on my own.
My apologies if soliciting this list is inappropriate here, but I do have a
consulting budget available to get this done if anyone is interested.
Register.java:
package com.packtpub.celebrity.collector.pages;
import org.apache.tapestry5.EventConstants;
import org.apache.tapestry5.SelectModel;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.ioc.Messages;
import or
Very nice Sebastian ! thanks!
On Fri, Aug 14, 2009 at 8:24 PM, Sebastian
Hennebrueder wrote:
> Hello,
>
> I have finally finished the evaluation of Tapestry.
>
> I would like to thank you for your feedbacks, which helped a lot to write
> the article.
>
> You can find the article on my website.
>
>
Hello,
I have finally finished the evaluation of Tapestry.
I would like to thank you for your feedbacks, which helped a lot to
write the article.
You can find the article on my website.
http://www.laliluna.de/tapestry-webframework-evaluation-test.html
It is part of the web framework series.
The question was: do we introduce one XML namespace for Tapestry
components and a second one for the (finite set) of Tapestry
directives? I chose to have a single namespace. This could be changed
in the future to have a distinct XML namespace for components and a
separate one for directives. The X
We've developed our own custom ValidationDecorator which works nicely. To
activate it for a form we're pushing it onto the environment in the setupRender
for each component/page with a form that needs validation, like this:
@BeginRender
void setup(MarkupWriter writer)
{
environme
On Fri, Aug 14, 2009 at 11:05 AM, Thiago H. de Paula
Figueiredo wrote:
> Em Fri, 14 Aug 2009 11:57:09 -0300, Michael Gentry
> escreveu:
> Take a look at http://tapestry.apache.org/tapestry5.1/guide/templates.html,
> section "Tapestry Elements".
I had seen that section before, but it wasn't really
I know tapestry-upload. But it need to submit.
What I use is a flash/javascript fileUpload
addon(SWFUpload:http://www.swfupload.org/).
Files can be uploaded without submit. I set a Tapestry page to receive the
file.
In PHP, Struts and jsp, it works well. I just want to find a Tapestry way.
Em Fri, 14 Aug 2009 11:57:09 -0300, Michael Gentry
escreveu:
I'm assuming t:body isn't really a component, but a different form of
magic.
is not a component.
Are there other "components" that aren't really components
Take a look at
http://tapestry.apache.org/tapestry5.1/guide/templat
Hi all, I know I'm still learning, but I'm a bit puzzled as to why:
works just fine, but:
and
both error out with:
org.apache.tapestry5.ioc.internal.util.TapestryException
Unable to resolve 'body' to a component class name. Available
component types: ActionLink, AddR
Thanks, I just wanted to make sure that this component is the right tool for
the job!
My job is to build Pagination component which will use filter and pages for
rendering component which is wrapped by Pagination component.
Sample usage could be:
And IteratedComponent must be unaware
There is no specified scope for jpa dependencies...
If only someone tells me that it's possible...
I haven't found any example of use t5/jpa
Message :
org.apache.tapestry5.runtime.ComponentEventException
No Persistence provider for EntityManager named MY_APP
Stack trace
*
javax.pers
2009/8/15 bdumeny :
> Yes, all included in my pom.xml.
>
> If I haven't dependencies my tests wouldn't work during a mvn install...
well not strictly true seeing as you could could have it in a "test"
scope (e.g. something I often do with the HSQL classes). sorry i had
to ask the obvious question.
Yes, all included in my pom.xml.
If I haven't dependencies my tests wouldn't work during a mvn install...
Scot Mcphee a écrit :
Doesn't Tomcat - it being "just" a servlet and JSP engine and not a
full blown JEE specification implementation - not have any actual JPA
implementation? Are you inc
use RenderBody instead of InnerComponent
If for every iteration you want to pass dynamic data from @Component
to the components that exist in the body of @Component, you can use
the requestCycle, i.e.
cycle.setAttribute()
cycle.getAttribute()
On Fri, Aug 14, 2009 at 4:27 PM, Marko Mrkus wrote:
>
Yes - that is exactly what @RenderBody does.
Cheers
Richard
Marko Mrkus wrote:
Sorry, formatting of the last message was awful... Here's the message again:
Hi, all!
Can you tell me is it possible to render body of a component in some other
component which is wrapped by this first one in Tapes
Sorry, formatting of the last message was awful... Here's the message again:
Hi, all!
Can you tell me is it possible to render body of a component in some other
component which is wrapped by this first one in Tapestry 4.1?
I have an example:
Page html:
This is top level component's b
Hi, all!
Can you tell me is it possible to render body of a component in some other
component which is wrapped by this first one in Tapestry 4.1?
I have an example:
Page html:
This is top level component's body
Component.jwc:
Haeder
Doesn't Tomcat - it being "just" a servlet and JSP engine and not a
full blown JEE specification implementation - not have any actual JPA
implementation? Are you including one in your WAR file, e.g.
Hibernate?
2009/8/14 bdumeny :
> Thiago H. de Paula Figueiredo a écrit :
>>
>> Em Fri, 14 Aug 2009
Thiago H. de Paula Figueiredo a écrit :
Em Fri, 14 Aug 2009 09:42:34 -0300, bdumeny escreveu:
Hi all!
Hi!
I try to develop a T5 / jpa application!
All junits tests on my DAOS work but when I try to deploy on tomcat I
still have a "No Persistence provider for EntityManager name ..."
error
Em Fri, 14 Aug 2009 09:28:48 -0300, Geoff Callender
escreveu:
Isn't this simply due to a Maven convention which has passed its "use
by" date?
I don't think so.
Why not put .java, .tml, and .properties together in the source tree,
and compile them all into WEB-INF/classes/ where they're
Em Fri, 14 Aug 2009 09:42:34 -0300, bdumeny escreveu:
Hi all!
Hi!
I try to develop a T5 / jpa application!
All junits tests on my DAOS work but when I try to deploy on tomcat I
still have a "No Persistence provider for EntityManager name ..." error
when I call DAOs.
My persistence.xml
Hi all!
I try to develop a T5 / jpa application!
All junits tests on my DAOS work but when I try to deploy on tomcat I
still have a "No Persistence provider for EntityManager name ..." error
when I call DAOs.
My persistence.xml seams to be at good place...
So my question is : Is it possible th
we are encountering the same problem here - server side validation errors for
fields in a form fragment that is not visible/active. happens under firefox too.
the textfields not visible that produce the validation errors are filled with
default values when the form is loaded the first time.
th
Isn't this simply due to a Maven convention which has passed its "use
by" date? Why not put .java, .tml, and .properties together in the
source tree, and compile them all into WEB-INF/classes/ where they're
automatically hidden from the users? Surely this makes so much sense.
It's what I do
onValidate() gets called for every form component inside your form. The NullPointerException you are
getting is likely due to some other form component also validating. Change the method name to match
your upload component's id, e.g. onValidateFromUpload() if your component's id is upload. That
>From JumpStart for a Form it is:
pageAttached()
onActivate()
...onPrepareForSubmit()
...onPrepare()
...onSelected()
...onValidateForm()
...onSuccess()
...onSubmit()
...Tapestry creates a URL to next page
pageDetached()
...Tapestry redirects to render next page
-Original Message-
...
The
dirk.latterm...@bgs-ag.de wrote:
> So, in short, try using onValidateForm() instead of onValidate().
That solved my problem. Thank you very much for this simple solution!
Regards
Stephan Windmüller
-
To unsubscribe, e-mail: us
Otho wrote:
> From skimming the sources I would guess that you need to provide your own
> FieldValidator as a component parameter to
Thanks for the quick reply!
I wrote the FieldValidator, but where do I register it and how do I set
the component parameter?
gives me this error:
| Unknown val
> 2009/8/14 Stephan Windmüller
>
> > Hello!
> >
> > We are using the upload component of tapestry and want to validate the
> > content type during the upload. To accomplish this we wrote the
> > following code:
> >
> > | @Property
> > | private UploadedFile file;
> > |
> > | [...]
> > |
> > | voi
>From skimming the sources I would guess that you need to provide your own
FieldValidator as a component parameter to
2009/8/14 Stephan Windmüller
> Hello!
>
> We are using the upload component of tapestry and want to validate the
> content type during the upload. To accomplish this we wrote
Hello!
We are using the upload component of tapestry and want to validate the
content type during the upload. To accomplish this we wrote the
following code:
| @Property
| private UploadedFile file;
|
| [...]
|
| void onValidate() {
|
| if(file.getContentType().toLowerCase(Locale.ENGLISH)
|
The ResourceDigestGenerator by default secures files with extension:
.tml and .class. To add more restrictions you'd have to contribute
ResourceDigestGenerator. Something like this:
public static void
contributeResourceDigestGenerator(Configuration configuration)
{
configur
Michael added the logout handler I was suggesting, and a
2.1.1-SNAPSHOT release is available from
http://www.localhost.nu/java/mvn-snapshot/
--
regards,
Robin
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.
That may be possible in version #2.
The problem is that to make tapx-templating work requires overriding
several key internal services; in order to allow mixed mode, we would
have to do something very dynamic so that some of the times, those
services were left as is, sometimes overrides. That's po
39 matches
Mail list logo