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
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
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
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
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
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#
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
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
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 :
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
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
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
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
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
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
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
__
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
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=
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]
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
|
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
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
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
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
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
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
___
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
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
28 matches
Mail list logo