um.. actually it is not really a filename, but is more like an ID of a
file.. is a unique string generated by the server (is the original filename
user uploaded).
I came up with this solution using your CleanupRender suggestion which will
completely hide the filename (or ID of the file):
...
@P
Yikes, that sounds dangerous... am I going to be able to load random files
from your server by tweaking that filename?
On 10/26/07, ronaldlee <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for the tip.
>
> I find a solution to this problem by simply passing the filename as the
> link's param, like this:
Hello,
I upgraded to 5.0.6, and since then, if I try to display a Grid that
contains a Date column whose value is NULL, I receive the following
exception.
Should I file a JIRA, or am I doing something wrong?
Here's the error:
org.apache.tapestry.ioc.internal.util.TapestryException
Cannot forma
Thanks for the tip.
I find a solution to this problem by simply passing the filename as the
link's param, like this:
public Link getSmallThumbnailImageURL(){
return resources.createActionLink("imageFileURL", false,
new
Object[]
The @Persist("flash") removes the object after page B is processed the first
time, then when you call the action handler page B is processed again and
your field is null, as it should be.
You should be able to simply add a cleanupRender method to page B which
resets the flash persisted field. I be
May be you can use a String text field with a Regexp validator
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/validator/Regexp.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Hi,
I am having problem with @Persist(Flash) and StreamResponse.. I am using the
latest 5.0.6 release.
Here is my setup:
- I have two pages, page A is for uploading an image, and page B is for
previewing an image.
- Page A injects Page B, and Page B has a @Persist("flash") on a
"imageFilename" a
Hello,
Im having some trouble with the EventListener annotation and
PropertySelection component. I am using Tap 4.1.3. Here is the mappings.
@Component(id="reportTypeSelect", type="PropertySelection", bindings={
"displayName=literal:Report Type",
On 10/26/07, Robin Helgelin <[EMAIL PROTECTED]> wrote:
> On 10/26/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote:
> > Could you release a new version with updated dependencies? :) While you do
> > not do that, I'll checkout the source and try to figure out what happened.
>
> I will :) T
On 10/26/07, Steven Woolley <[EMAIL PROTECTED]> wrote:
> Quick question... is there any chance of having the acegi setup so that an
> @Secured annotation on the class also applies to all the action methods in
> that class? I find it odd that adding the annotation to a class still
> allows accessin
Folks,
Can someone provide some snippet on how to bind a script routine variable to a
component property?
For instance I have this...
document.forms[0]
inlineMyWidth
The component has one properties myWidth.
So I want to ask dojo for the forms width and bind it to my respetive componen
Quick question... is there any chance of having the acegi setup so that an
@Secured annotation on the class also applies to all the action methods in
that class? I find it odd that adding the annotation to a class still
allows accessing the action methods (and perhaps a bit of a pain to always
rem
Thank you, Howard.
--- Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> We've changed the name to Layout, but it's still just a design
> pattern, not
> a concrete component.
>
> Layout.tml:
>
>My Layout
>
>
>
>
> Copyright 2007 MyCo.
>
>
>
>
>
> There you go ... a Layout that p
On 10/26/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote:
> Could you release a new version with updated dependencies? :) While you do
> not do that, I'll checkout the source and try to figure out what happened.
I will :) The subversion code is ready, I was just waiting for the
official
We've changed the name to Layout, but it's still just a design pattern, not
a concrete component.
Layout.tml:
My Layout
Copyright 2007 MyCo.
There you go ... a Layout that puts a copyright on every page (that uses the
Layout component).
On 10/26/07, Paul Croarkin <[EMAIL PROTE
I've worked extensively with Tapestry 4 and am now looking at 5. This
is probably in a FAQ somewhere, but I can't find the FAQ. What is the
Tapestry 5 equivalent of a Border Component?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam p
ah, i`ll have a look at that in the weekend. it is an easy thing to add.
2007/10/26, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>:
> Thanks Ted, I know that. By the way, did you have a chance to add
> another toolbar configuration to FCKEditor component?
>
> -Original Message-
> From
On 10/26/07, Norman Franke <[EMAIL PROTECTED]> wrote:
> The old @Foreach (Tapestry 4.0.x) did NOT do this, and I wish there
> was an option to do this with @For.
The old @Foreach is really just @For with volatile set to true
--
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapest
Thanks for the answer,
Now my application is loading (aside from some components).
I still get a warning, though:
log4j:WARN No appenders could be found for logger
(org.mortbay.util.Container).
log4j:WARN Please initialize the log4j system properly.
Although it's not important to fix for now.
Hi Norman, thanks for the tips!
Studying a little bit the whole web app architecture I think I can use
the volatile attribute, since the data always come from a database and I
believe it´s never modified between form rendering and submission
(that's the most difficult thing to analyze), my coll
Sorry !!!
Same problem as described there due to the javassist version :
http://mail-archives.apache.org/mod_mbox/tapestry-users/200705.mbox/[EMAIL
PROTECTED]
Stephane
Stephane Decleire a écrit :
Here is what i get when i try to launch my Tap 5.0.6 application from
Eclipse on Jetty 5.1.12 (by
Here is what i get when i try to launch my Tap 5.0.6 application from
Eclipse on Jetty 5.1.12 (by the JettyLauncher).
I don't understand at all what that means ...
Any idea ?
Stephane
18:02:04.968 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109)
>16> added [EMAIL PROTECTED]
18:02:04
There's an issue for this that was
closed(https://issues.apache.org/jira/browse/TAPESTRY-1648) but i think
should be reopened.
Daniel Leffel wrote:
This is a known issue at the moment. Unfortunately, some people on the list
want blanks to be represented as nulls (like me) and some want them co
This is a known issue at the moment. Unfortunately, some people on the list
want blanks to be represented as nulls (like me) and some want them coerced
into 0. I've tried using a Translator and can't get it to function even if
the translator returns null as well. Howard is thinking about a beautifu
Folks,
I am operating the @Script component and the scripting features tapestry offers
for components to facilitate surgical portions of javascript specific to
particular components that reflect, mirror, and persist properties off of java
objects or java components from the client side to serv
This really bugged me as well, since can easily add 100K to your page.
First, it only seems to happen inside a @Form component, as best as I
can tell from reading the docs. You can provide a "keyExpression" to
have it serialize the value of the object's attribute, e.g. it's
primary key for
Hi everybody !!
I'm having a little problem when using the @For component ... while I'm
iterating through the source collection the component prints a string
representation of the object as the value of the @For component, I went
to check the documentation and it says that the value attribute i
How to solve the following problem when update the Integer or Double value In
tapestry 5.0.6 ?When I clean the value of a field whose value is 5 int example
= 5;Then
press the sumbit botton . It's displaying 0 and send 0 to the database.How can
I do If I want Textfield to display nothing and
Hi!
Robert, please take a look at this: after upgrading my application to
Tapestry 5.0.6, this exception was thrown:
[snip}
Caused by: java.lang.NoSuchFieldError: BEGIN_RENDER_SIGNATURE
at
nu.localhost.tapestry.acegi.services.internal.AcegiWorker.transformPage(AcegiWorker.java:73)
at
nu
Fixed the typo but still get the same sort of error as the original problem
2007-10-26 08:33:25,031, ERROR, [com.db.rdq.web.tapestry.html.RDQException],
line 22, org.apache.tapestry.BindingException
2007-10-26 08:33:25,062, ERROR, [com.db.rdq.web.tapestry.html.RDQException],
line 23, Unable to upd
Thats, just it:)
make a component, not a function ...
you'll copy pasete your function arround and iject component resources in
each page that uses it,
look at the ActionLink source and create an ExternalLink from it :)
Davor Hrg
On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi Nick,
Hi Nick,
yes, I just want to make a method to create external page link, well, I'll
just create it on the page, was thinking I can make a generic function for
that.
Nick Westgate wrote:
>
> At a glance, you just want to call createPageLink on a Page.
>
> So you could inject the PagePool to g
or, instead of creating a service,
just create an ExternalLink component like normal link already is
Hrg
On 10/26/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
>
> At a glance, you just want to call createPageLink on a Page.
>
> So you could inject the PagePool to get the page and go from there.
>
At a glance, you just want to call createPageLink on a Page.
So you could inject the PagePool to get the page and go from there.
That's an internal service though ... can't see an obvious way to
do this without "more than a glance". ;-)
Cheers,
Nick.
Angelo Chen wrote:
hi davor,
correction,
You are right, that pattern is not doing what it's supposed to do. I
reopened the issue and attached a new patch.
And email addresses containing an underscore are allowed. I put that
into the patch too.
Uli
Christian Dutaret schrieb:
Seems there is a bug in the new pattern:
public static
you can not inject component resources that way ... it is specific to a
component
so it's scope is not even PER_THREAD
you will have to provide it in the method you call...
and inject it into your page...
look at it this way: if you have a dozen of components on your page
and from one of the comp
Thanks Ted, I know that. By the way, did you have a chance to add
another toolbar configuration to FCKEditor component?
-Original Message-
From: Ted Steen [mailto:[EMAIL PROTECTED]
Sent: 26 October 2007 11:00
To: Tapestry users
Subject: Re: T5 book: update
Very nice!
Dont forget to upda
Very nice!
Dont forget to update the part about the DatePicker. It is now
obsolete. T5.0.6 now includes a DateField as a part of the core.
2007/10/26, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>:
> Just to let you know: the first draft of the book is completed, the
> external revewing is a
Seems there is a bug in the new pattern:
public static final String USERNAME_PATTERN =
"([da-z]+[-._+&'])*[da-z]+";
should be:
public static final String USERNAME_PATTERN =
"([\\da-z]+[-._+&'])*[\\da-z]+";
or:
public static final String USERNAME_PATTERN =
"([0-9a-z]+[-._+&'])*[
hi davor,
correction, the problem is ComponentResources used in the constructor, it
has this error:
Exception constructing service 'MyServices': Error invoking constructor
org.bfe.myapp.t5.MyServicesImp(ComponentResources) (at
MyServicesImp.java:36) (for service 'MyServices'): No service impleme
Hi,
Thanks, now when there is only one parameter in the constructor, it works:
public MyServicesImp(ApplicationGlobals globals) {
this.globals = globals;
}
but if I have this:
public MyServicesImp(ApplicationGlobals globals, ComponentResources
resources) {
this.globals =
Just to let you know: the first draft of the book is completed, the
external revewing is almost completed, I am currently upgrading the
chapters to 5.0.6 with the deadline of 15 November. If everything goes
well, the book should hit the shelves in December.
Cheers,
Alexander
service do not get enhanced like pages do,
services get dependacies through constructor...
http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html
Davor Hrg
On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I injected ComponentResources in a service, but it's null, why?
>
Hi,
I injected ComponentResources in a service, but it's null, why?
public class MyServicesImp implements MyServices {
@Inject
private ComponentResources resources;
public String createExternalPageLink(String pageName, Object context) {
return getDomainName() + resources.cr
But how do I do this in T5?
Olle
2007/9/17, Renat Zubairov <[EMAIL PROTECTED]>:
>
> You can send redirect to any page and/or URL you want via direct
> access to WebRequest or via RedirectException
> See
>
>
> http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/RedirectExcep
in my appModule.java, i changed :
public void contributeHibernateSessionSource(
OrderedConfiguration configuration) {
configuration.add("my", "org.ts.domain.bo");
}
2007/10/26, Donyee <[EMAIL PROTECTED]>:
>
>
>
> I got errors when i use T5.06-hibernate, and my app works
I got errors when i use T5.06-hibernate, and my app works fine when i use
T5.05!
Also i changed the html to tml, sl4j...
Error:
No service implements the interface org.apache.tapestry.ioc.Configuration.
Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(Hibern
Hi Sunil
I answered a similar question a few weeks ago:
http://www.nabble.com/T4%3A-Servlet-mapping-problem-tf4577378.html#a13073861
I hope it helps.
Alejandro.
On 10/25/07, sunilmanu <[EMAIL PROTECTED]> wrote:
>
> Hello everyone,
>
> When we try to do a logout by doing a RESTART of Service, by
I would like to add that "final release" is a very subjective term.
Indeed, as you may read in the success stories, we are in production
since october 1st using Tapestry 5.0.6 and it runs fine. I may add
that 5.0.6 is probably more stable than many frameworks which would
claim to be "final
Like
http://tacos.sourceforge.net/components/AjaxAutoInvoker.html
?
On 10/25/07, Tapestry240 <[EMAIL PROTECTED]> wrote:
>
> hi,
> I am using Tapestry 4.0.2 and Tacos 4.0.1
>
> I would like to know if there is a way to do auto refresh on some of the
> components on a page and not the whole page. I
50 matches
Mail list logo