Matt,
Yes, that was referred to earlier and I did check out the code in
UserSecurityAdvice.
The code in UserSecurityAdvice uses SecurityContextHolder to return a
SecurityContext that in turn returns an Authorization. From this the
getDetails() method returns the IP address and session id, as in:
Yes Sir,
I did, create the pages in my faces-config.xml and made sure that it
followed navigation rules as well. But, still, I could not come out of this
problem. I think, its time to give up and restart my Appfuse by installing
it afresh.
Thanking you.
Regards,
Ajay.
mraible wrote:
>
> Can
Can you make sure you have sampleForm defined in your faces-config.xml?
Matt
On Feb 4, 2008, at 5:34 PM, Casanova wrote:
Yes Sir,
Since I use your plugins to genrate crud screens, by default it
extends the
basepage.Following is the, code of SampleForm.java.
public class SampleForm exten
Yes Sir,
Since I use your plugins to genrate crud screens, by default it extends the
basepage.Following is the, code of SampleForm.java.
public class SampleForm extends BasePage implements Serializable {
private GenericManager sampleManager;
private Sample sample = new Sample();
pr
Did you extend BasePage in SampleForm.java? getBundleName() is a
method in this class.
Matt
On Feb 4, 2008, at 5:24 PM, Casanova wrote:
Hello Sir,
Iam having strange problems today. Previously, I had no problems using
appfuse plugins to generate CRUD pages. But now, when I generate UI
pa
Hello Sir,
Iam having strange problems today. Previously, I had no problems using
appfuse plugins to generate CRUD pages. But now, when I generate UI pages
using appfuse plugins, Iam having the following error.
com.sun.facelets.tag.TagAttributeException: /sampleform.xhtml @7,63
/sampleform.xhtm
It's possible the Velocity template doesn't render an image. I'd
advise you to look at the template and see what HTML is being produced.
Matt
On Feb 4, 2008, at 2:57 PM, Casanova wrote:
Hello Sir,
Thank you for your reply. I think, I tried all the combinations for
using
image in my velo
Hello Sir,
Thank you for your reply. I think, I tried all the combinations for using
image in my velocity menudisplayer.
Please have a look in this example.
http://demo.raibledesigns.com/struts-menu/index.jsp
If you see, normal struts basic example to velocity coolmenus, both of them
get their
You can get the User object from Acegi's SecurityContextHolder - I
believe the code for that has already been posted on this thread.
Matt
On Feb 4, 2008, at 1:03 PM, [EMAIL PROTECTED] wrote:
Matt,
That works great - easy when you know what you're doing :)
Is there a convenient way to get th
Hi Ajay,
Casanova wrote:
Iam trying to include image in my velocity strutsmenu. I used this attribute
image=Images/myimage.png. But its is not displaying the image in the menu.
Could you please give me some hints, what might be wrong. Below is my code
Iam suing for displaying the image in menu.
Matt,
That works great - easy when you know what you're doing :)
Is there a convenient way to get the User object also at this point? That
would give me the internal object id which is really what I want to log -
the actual username can change from time to time.
Thanks - Richard
mraible wrote:
AppFuse has a RequestContextListener in web.xml that puts the Request
in a ThreadLocal (RequestContextHolder):
http://static.springframework.org/spring/docs/2.5.x/api/org/
springframework/web/context/request/RequestContextHolder.html
You can get the request using:
HttpServletRequest request
Garet,
OK ... the only place I find a reference to Authentication.getDetails is in
the getUser method in UserSecurityAdvice.java:
private User getCurrentUser(Authentication auth) {
User currentUser;
if (auth.getPrincipal() instanceof UserDetails) {
currentUser = (U
Rob, thanks for the followup - I'll play around with this a bit and see if I
can figure it out. - Richard
Rob Hills wrote:
>
> ...
> No, I wouldn't say that. Not sure exactly where I got the following
> from, but this is my getRequest() method from my event interceptor
> class. From memory,
Peter Schneider-Manzell wrote:
Maybe the FCKEditor is the type of editor you are looking for:
http://www.fckeditor.net/
Based on cross platform compatibility I've settled on
http://www.kevinroth.com/rte/
I'm pretty happy with it. YMMV.
-Dale
---
Hello Sir,
Iam trying to include image in my velocity strutsmenu. I used this attribute
image=Images/myimage.png. But its is not displaying the image in the menu.
Could you please give me some hints, what might be wrong. Below is my code
Iam suing for displaying the image in menu.
Thanking you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
your question doesn't really concerns Appfuse,
so maybe you'd better look at
http://logging.apache.org/log4j/1.2/manual.html (for starting with log4j)
or at http://displaytag.sourceforge.net/11/tut_basic.html if you want
to learn display-tags.
And
Hello,
I didn't configure anything. I just research over the internet add the
sessionScope as:
eve
Marc_13 wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Take a look at:
> http://www.codeczar.com/projects/components/logweb/
>
> or just do the same as in
> com.yourproject
just been poking around in the SecurityContext holder and that the
contents of Authenciation.getDetails() will actually be a
org.acegisecurity.ui.WebAuthenticationDetails from acegi...and guess
what that contains... one ip address.
no need for the complex filter thread local thing, just use
Hi Richard,
[EMAIL PROTECTED] wrote:
Here's what I ended up with:
That all sounded pretty good to me.
Question:
But I'm not sure how to get either the session or request from the
ServletContext object - it does not list those properties - unless its just
too late and I'm not looking careful
Owen,
I had to learn the underlying technologies that AppFuse pools together. One
of the things that I like with AppFuse together with it's tutorials is that
it allows me to work the bare essentials with the frameworks, get something
running, and then start working with each technologies in more
Hi there.
I'm a newbie here at Appfuse. Although I have prior experience with java
applications, it doesnt seem to help me much in getting to use Appfuse fast
and effectively. So I'd like to ask you folks what skills would I require to
be able to make say, a decent business web application with d
Maybe the FCKEditor is the type of editor you are looking for:
http://www.fckeditor.net/
This project also provides java integration files (e.g. taglibs to ad the
editor to your JSP pages)
Bye,
Peter
2008/1/29, Leo Barrientos C. <[EMAIL PROTECTED]>:
>
> I need a wyswyg editor for a jsp. Any id
I'm pretty sure you cannot get the Request from the servlet context.
The recommended way to get hold of the current user authentication
details is to use the:
org.acegisecurity.context.SecurityContextHolder
I think there is a util called SecurityUtil in appfuse (if not create
one :-) ) to
24 matches
Mail list logo