[jboss-user] [JBoss Seam] - How to do a redirect to something *not* a viewId?

2008-01-23 Thread Toby451
We are applying the URLRewriteFilter to get nice and SEO-friendly URLs. At some places we would like to be able to do a redirect to the nice URL such as "/foo-bar" instead of the viewID... To be specific we want that almost all of the time since we don't want that the user is able to escape the

[jboss-user] [JBoss Seam] - s:link-action calling restricted method

2008-01-23 Thread Toby451
I have an s:link with an action calling a method that I have annotated as: | @Restrict("#{identity.loggedIn}") | - If I am not logged in when clicking the link I am redirected to the login page, as expected. - After having logged in I am returned to the page I was coming from, as expected

[jboss-user] [JBoss Seam] - Re: occasional could not acquire lock on @Synchronized compo

2008-01-08 Thread Toby451
Hmm, I get this quite instantly when I load-test the seam-components. Could you just clarify what you mean by "increasing the timeout"? how do I do this? I suspect that this is not the "concurrent-request-timeout" - the mentioning about timeouts in the ref is mainly about conversations, so I am

[jboss-user] [JBoss Seam] - Re: Enum in components.xml

2007-12-18 Thread Toby451
Just noted at this has been closed as of BSEAM-2045. Marked my jira feature request as an duplicate and closed it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113730#4113730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-12-17 Thread Toby451
If you read the jira-issue you just posted it clearly says: Fix Version/s: 2.0.1.CR1 /Tobias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113577#4113577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=411357

[jboss-user] [JBoss Seam] - Re: Set non-shared Hibernate interceptor on JPA EntityManage

2007-12-16 Thread Toby451
I am in need of auditlogging and versioning as well in the application we're building. And as always: the more elegant and slim solution, the better. So I wonder: Did you ever solve this in a nice way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113220#

[jboss-user] [JBoss Seam] - Re: Enum in components.xml

2007-11-27 Thread Toby451
And yes, it is of course possible to let the component I am configuring take a String as argument inst. of an enum, followed by a conversion String-to-enum on the inside. But it would be neat to have this config automatically. All information is there (as far as I can see). View the original p

[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-11-27 Thread Toby451
Ah, thanks for clarifying Pete. There are actually more reports in the forum about this. Maybe it should be stressed in the reference that: - seam might call the authenticate method at will (so to speak) - the authenticate method (as a consequence) probably should be side-effect-free. View

[jboss-user] [JBoss Seam] - Enum in components.xml

2007-11-26 Thread Toby451
Is it possible to use enums as data to set on components from components.xml. I would like to do something like this: | DEVELOPMENT | ... having a | public enum ApplicationMode { | PRODUCTION, | STAGE, | DEVELOPMENT | } | Any ideas? View the original post :

[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-11-26 Thread Toby451
The call stacks differ in the following ways! First call to login-method: | ... | at org.jboss.seam.security.Identity.quietLogin(Identity.java:265) | at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:182) | at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:172) | a

[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-11-26 Thread Toby451
We're experiencing the same problem. And for us it led to a small bug as well. Our authenticate-method (unfortunately) wasn't side effect-free which led to that second call was treated differently than first one. Question remains: Why is it called twice? View the original post : http://www.j

[jboss-user] [JBoss Seam] - Re: Accessing bean in @Filter

2007-11-21 Thread Toby451
Thanks for your quick response! Works fine. I'll post it here as well (for anyone in the same situation): | public void init(FilterConfig config) throws ServletException { | Lifecycle.mockApplication(); | try { | ApplicationSettings settings = (Applicatio

[jboss-user] [JBoss Seam] - Accessing bean in @Filter

2007-11-21 Thread Toby451
This is probably simple, but I am really stuck. I have a filter. I also have an application scoped component containing "global settings" for the application. Here's the problem: I need to retrieve a field from the component in the filter. How do I do that? Any ideas much appreciated! Tob

[jboss-user] [JBoss Seam] - Re: A suggested SeamTest improvement

2007-11-16 Thread Toby451
I think most people will think their test is ok since it will pass (i.e. none of the assertions in renderRespose breaks). What most people (or was it just me?) will not realize is that the renderResponse isn't even called after a redirect - happily not knowing that they tested nothing. I would

[jboss-user] [JBoss Seam] - Re: java.lang.OutOfMemoryException occuring in our growing t

2007-10-26 Thread Toby451
Ok the tag below of course solves it ... or maybe just postpones it (I haven't investigated whether there is a real memory leak in our tests or our application or in seam): | | | Cheers, Tobias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=40994

[jboss-user] [JBoss Seam] - Re: java.lang.OutOfMemoryException occuring in our growing t

2007-10-25 Thread Toby451
Forgot to mention, Hibernate Search and a Lucene index is also part of the mix. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099008#4099008 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099008 __

[jboss-user] [JBoss Seam] - java.lang.OutOfMemoryException occuring in our growing test

2007-10-25 Thread Toby451
All of a sudden when our test suite now is approaching 100 tests (mostly integration tests with FacesRequest) we start experiencing OutOfMemoryErrors ... quite randomly as well. It is hard to tell when this was introduced. It has somewhat sneaked upon us. We suspect the caching ... maybe - but

[jboss-user] [JBoss Seam] - Re: Very slow initialization of Captcha

2007-10-18 Thread Toby451
Ok solved it ... Avast! antivirus + Vista => Captcha initializes in 1 min :-# Avast! antivirus + XP => Captcha initializes in 2 s :-| Avast! antivirus disabled + Vista or XP => Captcha initializes in 1 s :) Tobias View the original post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: Very slow initialization of Captcha

2007-10-17 Thread Toby451
Hi Peter & Shane, As can be seen below it seems that HeirarchicalLoaderRepository3 is slow at two points during Captcha init. I am still clueless on this one bu will continue to investigate. Any insightful points will be much appreciated. Cheers, Tobias | 15:57:45,974 INFO [Contexts]

[jboss-user] [JBoss Seam] - Re: Additional filter outside Seam-filter messes up encoding

2007-10-17 Thread Toby451
Ok ... the scandinavian characters åäöÅÄÖ got scrambled when they where part of a post-data. Adding this (below) filter in front of the timing seems to solve it! | | Character Encoding | | org.jboss.seam.servlet.SeamCharacterEncodingFilter |

[jboss-user] [JBoss Seam] - Re: Very slow initialization of Captcha

2007-10-09 Thread Toby451
Shane thanks for taking your time. Strange that it differs so much. I was using 1.5.0_12. Changing to 1.5.0_11 does not change it much: | 10:51:37,795 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage | 10:52:18,156 INFO [Initialization] done initializing Seam | Moreov

[jboss-user] [JBoss Seam] - Re: Additional filter outside Seam-filter messes up encoding

2007-10-09 Thread Toby451
Here it is (I can't see that it interfers with encoding in any way). Application is being deployed on JBoss 4.2.1.GA. | import org.apache.commons.lang.StringUtils; | | import javax.servlet.Filter; | import javax.servlet.FilterChain; | import javax.servlet.FilterConfig; | import java

[jboss-user] [JBoss Seam] - Additional filter outside Seam-filter messes up encoding

2007-10-08 Thread Toby451
I added a very innocent looking request timing filter outside the Seam Filter like this: | | Timing Filter | foo.bar.TimingFilter | | | | Seam Filter | org.jboss.seam.servlet.SeamFilter | | | | Timing Fil

[jboss-user] [JBoss Seam] - Very slow initialization of Captcha

2007-10-08 Thread Toby451
When redeploying a Seam application the initialization of Captcha takes a very long time. On my system (New Lenovo T60 + Vista) it is hanging for more than 50 seconds at each redeploy. Example from my logs: 09:09:50,311 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage 09:10:44

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-07-15 Thread Toby451
Ok, I'll have a look. Thanks for prompt answers everybody. /Tobias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064296#4064296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064296

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-07-12 Thread Toby451
Ok thanks for your pointers hstang and Michael. I will investigate! /Tobias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063621#4063621 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063621 ___

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-07-12 Thread Toby451
Well I didn't know there was paper on it. I guess I should have added a (IMO) somewhere in the "I would like to use this slightly cleaner variant"-sentence. Can we agree on "shorter"? Still. I would very much appreciate suggestions... Thanks. View the original post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Cleaner RESTful urls? Any suggestions?

2007-07-12 Thread Toby451
Hi, RESTful URLs tend to look like this in SEAM (as far I know): http://server/app/action.seam?param1=foo¶m2=bar I would like to use this slightly cleaner variant: http://server/app/action/foo/bar I.e. the action should have a URL-pattern associated with it that says that it should parse URL