On 29 sep 2009, at 16.12, Thiago H. de Paula Figueiredo wrote:
One simple question related to this: if I have a service that is
used by
many components and that holds a list of component related
information,
how do I make this request related?
Your service must have the perthread scope. A
request (they send that
when
they register themselves at beginRender) then how do I clear that list
at
the beginning or end of the request inside the service? How do I make
sure
that I keep that information request relative since the service is a
singleton.
Thanks,
Andreas Pardeike
On 29
al. It's a natural extension to event-bubbling that
otherwise only provides a one-way (up in this case) communication.
/Andreas Pardeike
On 28 sep 2009, at 16.27, Thiago H. de Paula Figueiredo wrote:
Em Mon, 28 Sep 2009 10:41:35 -0300, Cordenier Christophe > escreveu:
Hi
sible, it would make my event handling so much better.
Regards,
Andreas Pardeike
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
ll other contributions, services and custom code
in my
AppModules except for the template locator overwrite. So it seems that
this
one is the culprit for the recursion exception I get with 5.1.0.2
/Andreas
On 3 apr 2009, at 13.28, Andreas Pardeike wrote:
Unfortunately, one of my key concepts in
Unfortunately, one of my key concepts in a big application I am
developing
stops working in the step from 5.1.0.1 -> 5.1.0.2. Our application has
all page
classes inside a subfolder, thus our internal tapestry pages all look
like
http://hostname/klubb/page
and there is one tapestry page 'd
On 24 mar 2009, at 14.20, Robert Zeigler wrote:
I think that's ugly. :)
Consider:
componentSource
.getPage
(Index
.class).getComponentResources().createPageLink(Index.class,true);
Personally, I get suspicious of call chains nested more than about
two-deep... smells of tight coupling.
Ultim
meter PageClassName which needs to be converted
to an url.
Previously, I used ComponentResource for creating a page link from a
Page (which
I get from RequestPageCache). How do I do this with 5.1?
/Andreas Pardeike
-
To unsubs
_logger = logger;
_response = response;
_resolver = resolver;
_productionMode = productionMode;
}
...
}
/Andreas
On 20 mar 2009, at 14.12, Thiago H. de Paula Figueiredo wrote:
On Fri, Mar 20, 2009 at 9:54 AM, Andreas Pardeike wrote:
Thiago,
Hi!
I don't
...
On 20 mar 2009, at 13.11, Thiago H. de Paula Figueiredo wrote:
On Fri, Mar 20, 2009 at 9:08 AM, Andreas Pardeike wrote:
2) ComponentResources
-
public class ExceptionHandler implements RequestExceptionHandler
{
public ExceptionHandler(RequestPageCache
n) (at ExceptionHandler.java:32) via
se.fsys.klubb.services.TweaksModule.bind(ServiceBinder) (at
TweaksModule.java:60) (for service 'ExceptionHandler'): No service
implements the interface org.apache.tapestry5.ComponentResources.
/Andreas Pardeike
--
parameterize the page?
2) Can this be done with a component instead of a page?
For (1) I can set some values in my session and render the page right
after that. Seems
a bit like a hack though.
/Andreas Pardeike
-
To unsubscribe, e
more build-in way of getting
a T5 page to render into a string without simulating an external http
request. Something that would
even work with a component.
Anyone?
Andreas Pardeike
-
To unsubscribe, e-mail: users-unsubscr
Hi,
I build it so my users can customize their tapestry pages. Now I
want to add that they can send html emails by using the output of
a specific page. How do I grab the outcome of a page for further
processing?
Regards,
Andreas Pardeike
Hi,
we have our own Date->String coersion handler installed and by using
the explain method in the coersion API, we can see that it's called
and working fine.
Why is it then that our beanform does not use the coersion at all?
/Andreas
uot;/>) is evaluated, 'foo' is evaluated
in the context of component 'A'. What is the best strategy
here? Should A have a property that the loop of B will
modify or, better, can I make it so that foo is evaluated
within the context of B?
Hi,
Don't know what you folks do, but I have created a bunch of custom
bindings for different cases. The only thing I actually miss is the
ability to COMBINE them.
I.e., I have added a binding
equals:foo=bar
where foo and bar can be other binding objects or literals. I use
it successfully for
ter>
it works fine, but not via the body tag. Is this a limitation, and if
so, how
do I create a workaround?
Thnx,
Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
eating the site inside the path would be not so nice:
http://www.longsitenamehere.com/longsitenamehere/header.gif
First, it's quite ugly and second, it will create confusion if users
start to abuse other sites content.
Sorry for the long post but I felt that I had to go into detail to
show
Robert ,
Just coded that and it (sort of) works. The problem is, as Chris has
mentioned, that T5 complains about the assets being not present.
And when I dodge this by simply creating my own prefix, lets say
'/host_assets/' and fall back to not using assets at all, then my
servlet container will
enier Christophe wrote:
And what about a custom AssetDispatcher ?
-Message d'origine-
De : Andreas Pardeike [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 28 mars 2008 15:22
À : Tapestry users
Objet : Re: T5: Custom asset locator?
Thanks Christope, but it's not quite what I want. To illust
is is just an idea,
but maybe it would be easier to create a new type of binding Factory
upon the AssetBinding factory to add dynamic datas.
Best regards,
Christophe.
-Message d'origine-----
De : Andreas Pardeike [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 28 mars 2008 14:58
À : Tapes
- there, I automatically take care of the
host name.
I couldn't find a example on how to expand/overwrite asset lookup (in
the same way I expanded template lookup). All I want is to add a
subfolder on the fly to the asset path and still use the same build
i
guess that this might not be a candidate for default
behavior but a configuration option would be nice.
/Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PS:
I use Tapestry 5.0.12-SNAPSHOT...
/Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
page instance to go to that page, a Block to render the
ajax response or (and that is my favorite) 'null' to just refresh the
zone so I don't have to hack around this as in the example below.
Howard?
/Andreas Pardeike
On 13 mar 2008, at 13.13, Cordenier Christophe wrote:
things including a inside the block
but since its an ajax request, JS is not executed. Or is it and
I am doing something wrong.
Any insides appreciated,
Andreas Pardeike
--
Here is my Login component:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
Filip,
After refactoring my code about a dozen times your suggestion (and
my original code) did the trick.
Thanks!
Andreas Pardeike
On 11 mar 2008, at 13.11, Filip S. Adamsen wrote:
Cordenier, that's a VERY complicated way to get the class, when, in
fact, getClass() on the Comp
Great. One question though. I tried to create my own annotation Access
@PageAccess(Access.PUBLIC)
public class Start
{
...
}
but
Class pageClass = page.getClass();
PageAccess access = pageClass.getAnnotation(PageAccess.class);
fails because there are no annotations in 'page'. What am I doi
olean service(Request request, Response response,
RequestHandler handler)
unless I rely on the rather unsafe way to use request.getPath(). Is
there
a way to get the current page/component/service that is the target of
the
request and *ask* it if it is public?
/Andreas Pardeike
On 28 sep 200
ring out the *right* things. I
don't need
someone to hold my hand when I code a class to an interface.
/Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 5 mar 2008, at 22.19, Robert Zeigler wrote:
I'll do one better a little later today (or possibly tomorrow): I'll
clean
up my code and package it as a standalone "cayenne integration"
module.
I do believe that the need for such example(s) is quite high. What
hinders
T5 most from success
ction
management?
Any help appreciated,
Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
merName());
return _contextRoot.forFile(path).forLocale(locale);
}
}
// Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
points out the advantages of it
compared with Tapestry. From what he tells me (and with the limited
ability of me to digest it) I think that they use redirect-after-post
only sporadic.
Andreas Pardeike
On 13 apr 2007, at 11.22, kranga wrote:
Reasons I can think of:
1) Log analysis: Your page hit
On 12 apr 2007, at 03.29, Howard Lewis Ship wrote:
Every request is a page redirect in T5. Check the URLs in the browser
as you work through the application.
Is that clever design? I can think of several reasons why this could be
a bad idea. What's the reasoning behind this?
An
On 28 mar 2007, at 15.50, Maximilian Weißböck wrote:
Application works with IE if we do NOT use a proxy.
It breaks in IE if we use the proxy (we use the squid proxy).
BUT: If you set in IE the internet option "use HTTP 1.1 for proxy
connections"
(don't know the exact wording since I have on
bet it's not a script error).
So double+triple check your tomcat configuration. Also make sure you
don't
do any special stuff in your border component or in your @Shell
configuration.
Andreas Pardeike
PS: I would really love to see some error checking on this. It's
really ha
MinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,image/gif"
and everything works again.
This took me 5 hours and I can honestly say that I really really
*hate* IE now
(I knew I hated it before, but I didn't realize how dee
st dojo.js but it's the
same. Anyone who knows why it's freezing? Interestingly, all other
browsers work fine (although Safari sometimes keeps loading some
elements). The problem can be reproduced when the IE cache is cleared.
The site: http://www.fsbutiken.se
He
ake_by. I was
able to do this:
setItem_id(linkParam);
DirectLink fakeBuy = (DirectLink)getComponent("fake_buy");
ILink fakeBuyLink = fakeBuy.getLink(getPage().getRequestCycle());
link = fakeBuyLink.getURL();
But I am not sure if this is the right way to do it becaus
after she clicked on a Buy button.
Anyone?
Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 20 jun 2006, at 11.49, Nick Westgate wrote:
Just glancing at your code without digging in to it, it seems
pretty dangerous to use statics like this in a component:
...
private static Method snippetConverterMethod;
That certainly is true.
One more thing:
Thinking about fixing my problem.
r and it didn't show so I am pretty sure that caching is on on the
test server (it's the default, right?).
Can caching cause this weird problem? Is there a better way to have my
library call a method on the visit class?
Thanx,
Andreas Pardeike
On 20 jun 2006, at 10.14, Nick Westgate wrot
first call to a page that contains this component will fail.
Andreas Pardeike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The code also has these debugging statements:
writer.print("page: " + page);
writer.print("visitObject: " + visitObject);
writer.print("visitClass: " + visitClass);
writer.print("arguments[0]: " + arguments[0]);
writer.print("arguments[1]: " + arguments[1]);
writer.print("snippetGetterMetho
Seems like the attachments didn't make it. Here's the source:
### DBTextSnippet.jwc
http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
class="se.pardeike.tapestry.Extras.DBTextSnippet.DBTextSnippet"
allow-body="no" allow-informal-parameters="no">
A piece of dynamic text fetched f
Fsys.Common.Visit
arguments[0]: fshome-menu1
arguments[1]: sv_SE
snippetGetterMethod : public java.lang.String
Fsys.Common.Visit.getSnippetText(java.lang.String,java.util.Locale)
which to me looks like all my stuff isn't null at all. I'm out of
ideas why
invoke
I forgot to mention that my catch actually looks like
catch(Exception e)
{
writer.print("Component exception : " + e.getMessage());
...
}
so it seems that something is null that I don't expect. I do catch
visitObject == null so I wonder if it might be the snippetGetterMethod?
On 1
The component is located in a tapestry library and it uses invoke to
call a
database fetching method in the page's visit object. It works perfect on
start and during the run of the server but fails after the test server
was idle for a long time.
Thnx,
Andreas Pardeike
E
50 matches
Mail list logo