Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread [EMAIL PROTECTED]
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:

Re: [appfuse-user] Strange TagAttributeException

2008-02-04 Thread Casanova
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

Re: [appfuse-user] Strange TagAttributeException

2008-02-04 Thread Matt Raible
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

Re: [appfuse-user] Strange TagAttributeException

2008-02-04 Thread Casanova
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

Re: [appfuse-user] Strange TagAttributeException

2008-02-04 Thread Matt Raible
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

[appfuse-user] Strange TagAttributeException

2008-02-04 Thread Casanova
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

Re: [appfuse-user] Image in Velocitymenudisplayer

2008-02-04 Thread Matt Raible
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

Re: [appfuse-user] Image in Velocitymenudisplayer

2008-02-04 Thread Casanova
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Matt Raible
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

Re: [appfuse-user] Image in Velocitymenudisplayer

2008-02-04 Thread Rob Hills
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.

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread [EMAIL PROTECTED]
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:

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Matt Raible
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread [EMAIL PROTECTED]
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread [EMAIL PROTECTED]
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,

Re: [appfuse-user] WYSWYG

2008-02-04 Thread Dale Newfield
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 ---

[appfuse-user] Image in Velocitymenudisplayer

2008-02-04 Thread Casanova
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

Re: [appfuse-user] log4j - Please initialize the log4j system properly.

2008-02-04 Thread Marc Siramy
-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

Re: [appfuse-user] log4j - Please initialize the log4j system properly.

2008-02-04 Thread eveeve
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Gareth Davis
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Rob Hills
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

Re: [appfuse-user] Appfuse Required Skills

2008-02-04 Thread Ealden EscaƱan
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

[appfuse-user] Appfuse Required Skills

2008-02-04 Thread Owen Ilagan
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

Re: [appfuse-user] WYSWYG

2008-02-04 Thread Peter Schneider-Manzell
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

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Gareth Davis
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