Hi John,
you should be able to inject its value into your class with
@Symbol("tapestry.production-mode")
See org.apache.tapestry5.ioc.annotations.Symbol for documentation and
org.apache.tapestry5.SymbolConstants for names.
Hth,
Lutz
On Tue, Jan 15, 2013 at 11:07 AM, John wrote:
> Hi,
>
> What
Hi Nillehammer,
I was facing the same task and took the liberty of using your code -
works like a charm! Thanks for that!
One thing though... it will redirect with a "302 - Found" code, while
I need it to return a "301 - moved permanently".
Maybe it's because it is late, but I can't seem to figu
Short answer: no.
Long answer: well, you know, "impossible is nothing". I you really
must, you could probably "mix" Tapestry templates and JSP pages in the
same application, but I cannot think of a good reason why one should
attempt this. What are you trying to achieve? Why not use just
Tapestry,
Dear Thiago,
thanks for your patient reply and the advice. Of course I realize that
I can still implement a search with Tapestry, with redirect-after-post
or else, and I have actually done so in the past.
But please take a minute and think about these two things:
1. You say,
> GET was always mea
Dear Thiago,
now this - the lack of - is something that has been
puzzling me in Tapestry 5 for a long time. Why would you say using
"GET" is a bad idea?
The use case I think of is a search field. You enter a search term,
submit the form, get the result. I think using a form with method=get
is th
I don't understand how this answers the question. I followed all of
the links and could not find instructions how to use the get method in
forms in tapestry. Must have overlooked it.. could you be more
specific maybe?
On Sun, Aug 22, 2010 at 3:03 PM, based2 wrote:
>
> http://www.cgisecurity.com/
Ihre Bewerbung!
Lutz Hühnken
--
altocon GmbH
http://www.altocon.de/
Software Development, Consulting
Hamburg, Germany
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h
Stephan,
you can extend the possible return types of the onActivate method by
adding a ComponentEventResultProcessor to you configuration. You can
define an HttpStatusCode class that returns the code you wish.
I don't know if you consider this "clean", but it takes HTTP
internals, codes etc. out
s
>
> If you have some problem I can paste the code to contribute and get
> your implementation working.Bye
>
> 2010/1/7 Lutz Hühnken :
>> Hi,
>>
>> I do not want to use the blackbird console, especially not on the
>> production server, plus it breaks my appl
Hi,
I do not want to use the blackbird console, especially not on the
production server, plus it breaks my application on IE (because of the
cookie it sets, it somehow breaks the cookie handling because IE does
not separate them properly).
I see other peoples have problems with it too:
https://is
Jim,
You still have some different options to pursue in a cluster..
- "sticky" sessions, so that requests of the same user will go to the
same server in the cluster. Good for load balancing, but if a server
fails, the users of that server will loose their session.
- session replication in the cl
lso feel it makes the app more breakable (fundamental
> state could be broken with browser security settings). What I'm after is
> something akin to PageActivationContext but that passes the relevant
> object(s) using Request parameters rather than the querystring / url - tha
Cookies come to mind, would that be an option?
On Wed, Jan 6, 2010 at 2:16 PM, Jim O'Callaghan wrote:
> Hi,
>
> Can anyone advise on the preferred way of persisting state between pages
> without using HTTP Session? PageActivationContext using Object[] looks
> promising but I don't want long url
Hi everybody,
I think the discussion on TheServerSide actually is somewhat
interesting, but not because of the unfortunate Tapestry vs. Wicket
flame war. Let's have a look at the topic leading to that...
- One part of Java EE 6 is "CDI" (JSR 299) -
http://jcp.org/en/jsr/detail?id=299 - originall
Hi Angelo,
what kind of e-commerce software are you thinking of?
If it is a straight-forward online shop - we built www.toplicht.de
about two and a half years ago with Tapestry and ever since we did, we
wanted to open source the code as a an open source e-commerce project
(the name would be "Coki
http://www.toplicht.de
(Tapestry 4)
http://www.go7seas-kreuzfahrten.de
(Tapestry 5)
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
Hi Sean,
although I currently use jetty (via the jetty maven plugin) for
Tapestry development, I have used tomcat in the past, and if I
remember correctly, there are two approaches.
You can use the "web tools platform" in Eclipse, which will give you a
server view and allow you to start your web
Hi Angelo,
I think the point of sticking the session to the request is to keep it
open until the request is processed, to avoid
LazyInitializationExceptions during view rendering. So you might have
to do your session management without the HibernateSessionManager.
Then again, I wonder if it reall
Hi Dan,
I think the usual approach would be to expose a remote interface to
your application not through tapestry (or any other web framework),
but by use of some remoting framework. Depending on your requirements
(binary or text, one client platform or many, client architecture,
security and tran
Hi Borut,
right, Base 64 encoding is no good for URLs. See
"http://en.wikipedia.org/wiki/Base64#URL_applications";.
> What is the cleanest solution? Is there a known url safe
> encoder/decoder which I can use or do I have to write one myself?
I know there is one implementation included in the bo
Hi Britske,
assuming you are using mod_jk to connect Apache httpd to Tomcat, you
can use JkMount/JkUnmount to unmount the paths containing static
resources and have httpd handle them directly.
Let's look at an example..
If your images are in "_img", the context is the root context and your
webap
The way I like to do it: decorate the exception handler in your AppModule.java
/**
* Decorate the exception handler in a way that it will just return error
* code 500 in production mode. See
* http://tapestry.apache.org/tapestry5/cookbook/exceptions.html On the
* bottom o
Fernando,
I agree with you, especially your suggestion (1) would be very helpful
and a welcome addition. The form/zone combination could maybe include
more callback hooks. I think I have a case of Rails envy, look at the
callbacks you can use for the remote_form_tag:
> The callbacks that may be s
Andy,
you can strip the session id with filter, but you should also check if
the pages you want index really need to be stateful. When your servlet
container adds a session id, it means it found it necessary to create
a session. If you just strip the session id, a new session will be
created for e
Hm... I think there are many possible points of failure for the encoding...
- maybe your browser thinks the page is not utf-8. Is the encoding set
correctly either in a http response header or html meta tag?
- what do you use for building your project? If you use maven, check
the "encoding" argum
Jayson,
> customer. I attempted this using the onEvent mixin and a javascript
> function, but Tapestry kept telling me my javascript function was undefined.
that's probably just some mismatch between your function name and
what you said the callback function was. Maybe you should post that
code
I don't know how to do it within Tapestry, but generally you can use a
filter to make sure that jsessionid is never set as a secure cookie. I
dug up some old code that does that, I think it works:
public class TomcatUnifiedSessionFilter implements Filter {
public void destroy() {
//
Hi,
that is really quite the bug. I see you opened a jira ticket for it:
https://issues.apache.org/jira/browse/TAP5-362
I hope a lot of people vote for it so it gets resolved quickly. Does
anyone know of a good workaround?
Lutz
--
On Tue, Nov 11, 2008 at 4:29 PM, Keith Bottner <[EMAIL PROTECTED]> wrote:
> Oddly enough that DID work. But if I specify the domain and path it doesn't.
There's probably a mismatch either of the given and the real hostname,
or the given and real context path.
> I will continue to look into this.
Hm. Works fine for me.
What happens if you leave out domain and path, like in
cookies.writeCookieValue(Constants.COOKIE_NAME, value)
?
On Wed, Nov 5, 2008 at 10:12 PM, Keith Bottner <[EMAIL PROTECTED]> wrote:
> I am attempting to set a cookie for a user; however, it does not seem to be
> reta
Hi,
is it possible (in 5.0.15) to have a radiogroup within a radiogroup?
In the Tapestry 4.1 docs, it says quite clearly "RadioGroup components
may not nest. ", but there is no such warning on the T5 RadioGroup
page.
Regards,
Lutz
---
Hi Stephane,
I think you can inject the WebApplicationContext and then use
context.getBean to get fresh instances of your prototype bean.
See http://tapestry.apache.org/tapestry5/tapestry-spring/
"The Spring WebApplicationContext is also added as a service..."
"For the moment, you should consid
Hi Fernando,
> Sorry, I might be worked up, but really, wow this is just amazing me how no
> one has complained about this yet.
well, this is just not true. You will find many discussions regarding
this on this mailing list.
Workarounds have been proposed. For log4j, you might try a filter
htt
In your pom.xml, add a context handler to the jetty plugin:
org.mortbay.jetty
jetty-maven-plugin
/
/myimages
/the/
I'm just taking a guess here, but I think it won't. As far as I know
the tapestry spring integration was always limited to singleton beans.
I think the "prototype" variant is maybe difficult to handle since
tapestry ioc (and hivemind in the past) have a somewhat different
approach on object creatio
page is
actually a Tapestry template. Since Magnolia uses JSP, these to
approaches don't interfere. You can easily add t:ids and such to your
Magnolia templates.
You can use Tapestry's template location mechanism to get the pages
from Magnolia, and put any pre-generation and/or caching i
Hm... I had the same problem once, and I figured it was because
Tapestry doesn't use the log level configured for the
"org.apache.tapestry5" category, but the level you define for your
components.
As it is said on http://tapestry.apache.org/tapestry5/guide/logging.html :
When a component's logger
Hi Sven,
this is the first time i hear of "chenillekit". So I'm wondering (and
I'm sure others are, too) - what the relationship is between
"chenillekit" and "t5components" ? Are those two names for the same
project?
Regards,
Lutz
On Sat, Aug 9, 2008 at 2:13 PM, Sven Homburg <[EMAIL PROTECTED
Hi Mike,
I faced the same task, I solved it using the onEvent mixin from
Tapestry 5 components -
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html
In more detail - say you have two selects, sel1 and sel2, and you want
sel2 to be updated when s
I fell into that same trap once. Although it does it good job in
teaching a lesson about not just copying & pasting code from a web
page, it would really be nice if someone could correct the incorrect
code samples on
http://tapestry.apache.org/tapestry5/guide/secure.html
Samples (plural) because
I haven't tried it, but I think it should work with the approach described in
http://www.nabble.com/Index-page-context-and-404-response-to16649174.html#a16649174
It works fine for 404, you might have to extend it to include the URL
to the page you are redirecting to.
Hth,
Lutz
On Thu, Aug 7,
Hi,
have a look at
"http://tapestry.apache.org/tapestry5/tapestry-core/guide/secure.html";.
If the first paragraph - @Secure - does not work for you (which seems
odd by the way because for me it seems to work just fine in 5.0.13),
you can configure it in your AppModule.java, see the other two
pa
Hi Argo,
if I understand you correctly, what you call application name is
usually (or, in "java servlet speak") referred to as the "context". It
is a property of the HttpServletRequest, which provides that
information to you by the method "getContextPath()".
Check the following pages:
http://java
Hi,
I'm trying to use a FormFragment triggered by a Radio Button.
Obviously, other people have done this before and ran into issues, see
http://www.nabble.com/Form-fragments-and-radio-buttons-td16493007.html#a16493007
and
https://issues.apache.org/jira/browse/TAPESTRY-2261
Having read that, I was
>> Ends up as http://app.com/. Am I doing something wrong? Surely others
>> have run into this and deem it undesirable, no?
>
> yes and yes.
Sorry, that should be no and yes and yes.
no - you're not doing anything wrong (or better said, if you are, I'm
doing something wrong, too)
yes - others -
Dear Chris,
> Ends up as http://app.com/. Am I doing something wrong? Surely others
> have run into this and deem it undesirable, no?
yes and yes. It has been discussed on this list before and a
workaround (that works well for me) has been proposed. You can see the
thread here:
http://www.nabble.
Shouldn't that be up to the developer (or whoever decides on the
URLs)? If you don't want the page suffix, why not just name the page
"Blogger" instead of "BloggerPage"? What if I wanted a url that reads
"mypage"? Would I have to name the page "MyPagePage"? I'm all for
convention over configuration
Hi Brendan,
I think the "OnEvent" mixin from t5components does what you are looking for:
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html
(I haven't used it myself, though. Let me know if it works as described.)
Hth,
Lutz
On Tue, Jun 24,
Hi everybody,
what is the way to create a form with method="GET" in Tapestry 5?
I would like to create a simple form that produces a "GET" request
with query parameters, such as
www.example.com/books?author=king&category=crime. What is the
straight-forward way to do that?
Thanks for your help,
Well, if you want stateless, you probably don't even want the session
to be created at all.
There has been a conversation about this on this mailing list before.
The solution takes advantage of the possibility to define the
persistence strategy per component. It also provides a custom
persistence
Hi,
which Tapestry version are you referring to? And what exactly do you
mean with "in a final object" - are you talking about a component? In
what way is the "final" part relevant?
In Tapestry 4.0.x, the BasePage provides getLocale() and getMessages()
methods. But I guess that's not what you are
I'm not sure if I understand that correctly... I think the idea was
not return the page name as a string from a submit method, but to set
it..
in page A:
- inject page B
- set the name of page A as a property in page B
- activate (or redirect to) B
in page B:
- do not inject page A, but get it by
My first guess would be that you refer to something called
"ClassWorkers" in your hivemodule.xml, but it is undefined. I think it
might be helpful if you posted your hivemodule.xml.
Hth,
Lutz
On 8/8/07, kael20 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am trying to setup tapestry-acegi using the
Excuse me for being picky, but your subject is misleading. You claim
to have an ognl error, but obviously you are using tapestry-prop
instead of ognl.
>From a quick look at your code I would guess the problem is that at
some point the value of radioId is "mnpnull". Although you have
defined an ini
Hi there,
to me it seems the error message indicates that you don't have a
method "setSpringContext" in your CurrentFooEncoder. I think hivemind
will try to set that property using that method. Or maybe you need a
constructor with an argument of that type.
For a slightly different approach you mi
What is the most common way to use Spring in combinations with Tapestry?
I don't know.
How do you combine Tapestry and Spring?
I use the tapestry-spring library from
"http://howardlewisship.com/tapestry-javaforge/tapestry-spring/";.
Which parts of Spring?
I use dependency injection a lot
You can define your own components, i.e. take the code that is common
to several templates and turn it into a tapestry component. You can
than compose your templates from your components.
Also, you might want to look at the "Border" component.
hth,
Lutz
On 7/4/07, Eko S.W. <[EMAIL PROTECTED]>
Which servlet/filter handles which request is configured in web.xml.
Apparently, yours is set up in a way that a request which should go to
the WingS-Servlet is handled by the Tapestry filter, although it
shouldn't be.
Check the filter-mapping for the TapestryFilter, does it include
/application/
I'm not sure (since I'm still on Tapestry 4 and there it's done like
here: "http://wiki.apache.org/tapestry/UsingCustomResourceSource";),
but there was a thread about that on this list just a few weeks ago.
You can read it here:
"http://thread.gmane.org/gmane.comp.java.tapestry.user/49256";.
hth,
I've been using Tapestry for a couple of month now and still haven't
understood how to work with collections in forms correctly.
What works well for me is the DefaultPrimaryKeyConverter. But it seems
such an overhead, I have to populate it in the beginPageRender, and
iterate it in the listener to
-----Original Message-
From: Lutz Hühnken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:38 PM
To: Tapestry users
Subject: Re: Timing processing time of a page
I believe if your set the log level for tapestry to "debug", as in
putting a line like "log4j.logger.org.a
I believe if your set the log level for tapestry to "debug", as in
putting a line like "log4j.logger.org.apache.tapestry=debug" in your
log4j.properties, it will output such information.
Like
19:30:56,135 DEBUG BaseComponent:89 - Begin render Home
19:30:57,807 DEBUG BaseComponent:95 - End render
gt; wrote:
Oh, if you're interested in it, I can give my code for JCR integration as a
base :)
2006/7/9, Lutz Hühnken <[EMAIL PROTECTED]>:
>
> Hi,
>
> I haven't really looked at it, but I was wondering... as far as I
> understand, you'd like to integrate CMS-ma
Hi,
I haven't really looked at it, but I was wondering... as far as I
understand, you'd like to integrate CMS-managed content into a
Tapestry-based site.
You mention Magnolia... afaik, Magnolia uses a JSR 170 compliant
content repository, such as Apache Jackrabbit
("http://jackrabbit.apache.org/
Any ideas out there on how we can get a better inventory of components?
I think it would be easiest if everybody would just list their
components (or components they know of) in the tapestry wiki
("http://wiki.apache.org/tapestry/ExtraComponents";).
On a funny side note, the first one listed un
I have not used google analytics, so I don't know. In theory, it
could/should still work. The original client ip is, afaik, included in
the http header "X-Forwarded-For".
It's pretty much as if the user uses a proxy server (i.e. a forward
proxy, not a reverse proxy) - how does google analytics dea
What I don't understand: in an earlier posting you wrote:
On 5/29/06, Josip Gracin <[EMAIL PROTECTED]> wrote:
[...]
scheme, but relying only on Tapestry mechanisms, i.e. not using Tomcat etc.?
[...]
Why would you not want to use an external mechanism? Is it not rather
a feature of the framewor
Mark,
I added "hibernate.connection.autocommit=true" to my
hibernate.properties and that fixed it...
hm. I don't know if that's a good idea. I'm not comfortable with
hibernate.properties in a Spring environment, anyway. Is it clear to
you in which order they are read? Will Spring configuratio
I asked for applicationContext.xml, and I get a mysql log... well,
near enough :)
From your last mail I understand you have the same problem if you use
the mysql command line client. Makes me wonder why you thought the
problem had to do with Hibernate in the first place (let alone
Tapestry, for
Yes, the Spring HibernateTemplate will take care of that for you. The
actual behaviour depends on your transaction management, but let's not
get into that for now.
So, the save you call will commit the changes to the database.
Hibernate then disconnects the session, I believe, anyhow, there is no
Hm... given that you don't use OpenSessionInViewFilter, I think it is
really pretty optimistic to believe your current problem can be solved
by subclassing it and/or changing its flushing behaviour.
On 5/25/06, Mark <[EMAIL PROTECTED]> wrote:
Is there a way to set this in the hibernate.propert
my two cents, in three parts...
- about the problem:
well, usually, it kind of works. This may sound silly, but do you
maybe have hbm2ddl.auto set to "create-drop" ? Or when you check if
something has been stored, are you sure you're checking the right
database? I'm not making fun of you, I have
Yes, it has:
"http://wiki.apache.org/tapestry/HowTos";.
Hth,
Lutz
On 5/24/06, albartell <[EMAIL PROTECTED]> wrote:
Thanks Ignatyev, that worked great! How would I have gotten to that
without the list though?
I think we should start a page called "How to do x in Tapestry" because
these t
About Spring: There is a Wiki page at
"http://wiki.apache.org/tapestry/Tapestry4Spring"; and a "drop-in" jar
at "http://howardlewisship.com/tapestry-javaforge/tapestry-spring/";.
The latter is by the Tapestry author himself, which makes some people
(including me) favor it among the "quite a few so
here may be a Hivemind way to inject a different message worker
into only certain classes, but I would guess overriding getMessages()
is probably just fine. Did you try it? Does it work? Is it simple? If
so, no worries!
Cheers, P
On May 15, 2006, at 10:57 AM, Lutz Hühnken wrote:
> Hi there,
>
Hi,
actually no, I haven't even tried it, but it *must* collide with the
enhancement stuff...
However, I came across the page
"http://wiki.apache.org/tapestry/UsingCustomResourceSource";, which
provides quite a good solution.
It "overrides" a default service implementation with a specific one i
Hi there,
assume you want to create a localized tapestry application, but there
are localized messages that you don't want to store in a properties
file / text file.
In a plain Java application, you could just write your own
implementation of ResourceBundle, that could take the messages from
any
77 matches
Mail list logo