What possible state would you have to clean up?
Assuming you are using proper instance variables (all private), then
Tapestry already does end-of-request cleanup, resetting all your
fields to correct default values (for those that are not set to fixed
values via an injection).
On Nov 30, 2007 6:3
The bug we're seeing is that the page context is being set by an
onActivate call, but it's never being cleaned up. So the next page
render still has the old page context setup, and we don't have a chance
to re-null it.
normally while handling a page:
onActivate
setupRender
...
cleanupRender
W
Hi Folks,
We have a need to provide personalized page for different user groups, so I
tweaked some T5 services to make it possible to use personalized template
based on a request parameter.
I would like put the general idea here in case you guys are interested. Also
since I have change some T5
Viva!
What about https://issues.apache.org/jira/browse/TAPESTRY-1874 (provide
annotation-based decorator matching in T5-IoC) now? :)
Thiago
And now it is fixed. Viva la 404!
On Nov 30, 2007 8:57 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 5:45 PM, Thiago HP <[EMAIL PROTECTED]> wrote:
>
> > Filed: https://issues.apache.org/jira/browse/TAPESTRY-1947
> >
> > Thiago
>
> This has hit me a lot of time but i was too laz
Hi list,
I need to wrap "begin transaction" and "end transaction" actions around
a request cycle. I've read about Hivemind,
http://www.nabble.com/hivemind-factory-service-tf251931.html#a704856
and configured a service point (see below). This works very well: my
transaction is created, but I c
Alright thanks, i guess i'll just wait until the office binary's get
released for 4.1.4 since I don't use maven.
On Nov 30, 2007 11:14 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> it was fixed in 4.1.4-SNAPSHOT some time ago - and later on that logic
> was replaced...
> so, can you move to tha
Yeah, very sorry about that. You'll have to inject RequestGlobals and
get the Session like this:
@Inject
private RequestGlobals requestGlobals;
public String onActionFromLogout() {
Session session = requestGlobals.getRequest().getSession(false);
if (null != session) session.invali
it was fixed in 4.1.4-SNAPSHOT some time ago - and later on that logic
was replaced...
so, can you move to that?
On Nov 30, 2007 8:02 PM, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> I think its definately a jdk 1.4 incompatibility considering
> string.replace(CharSequence, CharSequence) is not a
I think its definately a jdk 1.4 incompatibility considering
string.replace(CharSequence, CharSequence) is not a 1.4 method. Is it
possible to get this fixed quickly and merged into the 4.1.3 binary?
On Nov 30, 2007 10:42 AM, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> Oh and this was working in
Oh and this was working in 4.1.2. Also I am forced to use java 1.4 so
could this be an issue with that?
Thanks.
On Nov 30, 2007 10:37 AM, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> I just upgraded from 4.1.2 to 4.1.3 and am not recieving the following
> exception for every page. Any ideas wh
I just upgraded from 4.1.2 to 4.1.3 and am not recieving the following
exception for every page. Any ideas what this may be cause from?
[ +/- ] Exception:
java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
java.lang.NoSuchMethodError
java.lang.String.repl
Hi filip,
How can i use it?
i tried this, but i got a bunch of exceptions...
@Inject
private Session _session;
public String onActionFromLogout() {
_session.invalidate();
return "start";
}
2007/11/29, Filip S. Adamsen <[EMAIL PROTECTED]>:
>
> Inject o.a.t.services.Session.
>
> -Filip
>
On Nov 30, 2007 5:45 PM, Thiago HP <[EMAIL PROTECTED]> wrote:
> Filed: https://issues.apache.org/jira/browse/TAPESTRY-1947
>
> Thiago
This has hit me a lot of time but i was too lazy fire the issue. Thanks!
--
Massimo
http://meridio.blogspot.com
On 11/30/07, Geoff Callender <[EMAIL PROTECTED]> wrote:
>
> I hadn't considered for a second that Tapestry could, or even should,
> be integrated with Seam, but it's a wild idea that just might make
> sense! Just had a look at the Wicket-Seam Integration code and at
> first blush it looks like Tap
Filed: https://issues.apache.org/jira/browse/TAPESTRY-1947
Thiago
Please add to JIRA, it should be consistent and I think the page
render request approach (effectively, reject the request and let the
servlet container report the error) is the correct approach.
On Nov 23, 2007 6:43 AM, Thiago H de Paula Figueiredo
<[EMAIL PROTECTED]> wrote:
> Hi!
>
> Has anyone n
This is exactly what I am using, it is a wrapper around LinkedHashMap
that someone else developed here:
http://www.source-code.biz/snippets/java/6.htm
I think I also used an LRU put out by SUN in my previous versions.
On Nov 30, 2007 9:13 AM, Christian Edward Gruber
<[EMAIL PROTECTED]> wrote:
> I
I have seen some suggestions on how to handle @RadioGroup and @EventListener
here but none of them works for me.
One suggestion is to add a function to any div element
document.getElementById('someDiv').clickRadio=function(radio) {};
add a onclick to the @Radio that calls that function
plus some
p.s. That client side validation does sound pretty cool. It'd be
neat to have the field sort of "glow red" around the edges with the
bubble popping up when you mouse over or focus it telling you what you
screwed up.
One big regret I have with t4.1 is incorporating the new client side
validation
If you just override removeEldestEntry() on LinkedHashMap, you'll get
LRU behaviour. You can subclass it and set a max capacity, and LRU if
you've hit capacity. Not a heavy implementation, but it might reduce
a dependency if you're only importing commons-collections for the LRU.
christian
What about using the "NonVisual" annotation on your properties and
then manually adding the ones you want?
Alternatively, you could do something like:
define a "RemoveProperties" service with a method like:
removeModelProperties(BeanModel model, String... properties)
Then you could do:
BeanMode
Hello Thiago H de Paula Figueiredo-2 and All Tapestry Developers,
If you remember you helped me in the problem of persisting the value of
select component
in action request, it is working correctly now.
I have some thing different now.
When I save new value in database which is actually shown
I have a primitive caching implementation that I like to think of as a
"conversation", even though it is not comparable to the kinds of
persistence methods you guys are talking about.
Mine involves storing large computed data in the User's ASO (such as a
report data structure with it's data). Ins
Hi,
Is there a way not to include all fields in beanModelSource.create? I know I
can use 'remove', but sometimes there are many fields in a bean, might be
nice to have a way to tell BeanModelSource to include rather than include
all then 'remove' later, and I notice I usually use only one field i
hi
listener:
public void onMyAction(String componentId)
{
//some code
}
link generated for this listener:
public String getTheLink()
{
Link l = _componentResources.createActionLink("myaction", false,
"param.param");
return l.toURI();
}
result link is som
Kalle,
I hadn't considered for a second that Tapestry could, or even should,
be integrated with Seam, but it's a wild idea that just might make
sense! Just had a look at the Wicket-Seam Integration code and at
first blush it looks like Tapestry-Seam would be very doable.
For anyone who's
For most people, I'm sure it'd be Seam. Spring adds an extra layer of
indirection, another IoC framework, more cumbersome configuration and
support for other patterns that a few people really need. Not that I have
anything against Spring (quite the contrary, I happily use it in multiple
projects),
Thank you Chirs.
But I have applied the utf-8 filter several days before, since without
applying utf-8 filter, I got wrong encoding Chinese chars even without
enctype="multipart/form-data".
2007/11/30, Christian Köberl POI <[EMAIL PROTECTED]>:
>
>
> You will have to set the character encoding i
Hi Kalle,
I found this suggestion interesting, T5 already has Spring integration,
which one will be easier for the user, Seam or Spring?
A.C.
Kalle Korhonen-2 wrote:
>
>
> JSF. In practice, integrating Tap5 with Seam might be the fastest way of
> getting practical results for a conversation
You will have to set the character encoding in the ServletRequest. Add the
UTF-8 Filter to your AppModule
http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding
Chris
ps: thanks for the hint - there should be a null check for the
request.getCharacterEncoding() - I will file a patch
--
View this
31 matches
Mail list logo