Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Stefan Rasmusson

Greenhorn
+ Follow
since Feb 25, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stefan Rasmusson

It figured out the problem.
I was using the primefaces commad button that does a partial ajax submit. Changed to jsf commandbutton and everything works
11 years ago
JSF
It didn't work. I think the problem lies in JSF and facelets. I use a facelet and a template.

Template



Facelet




But if I rewrite the facelet like this, the download works, and it works with the mimetype text/plain




Any ideas?
11 years ago
JSF
Hi I've tried two different techniques for sending a file to a browser(making the user download a file). I've tried an example from myfaces wikipage


I have also tried using a component named fileDownload from PrimeFaces. Both give the same result:

I get a response from the server, the response contains text that should be in the file. The header is a follows:

X
To me this looks correct but for some reason I don't get to download the file, I just get this response in firebug.

Does anyone have any idea?, could it be a serversetting problem? I using glassfish 3

Thanks / Stefan
11 years ago
JSF
I have a Session scoped bean



I'm setting a value in a SessionScoped bean in my stateless session bean

When I try to get the object with @Inject I only get null


I have a bean.xml
Hi I'm looking to make a custom annotation, Secure. I would like this annotation to act as an interceptor that makes some security checks.
The reason i want this is because i would like to pass arguments to my security method through the annotation.
Some thing like this:

Annotation


SecureBean


intercept


Does anyone have an idea if this is possible
Thanks

/Stefan