[appfuse-user] Acegi Remember me

2007-12-04 Thread jithesh
Hi guys, Is there a way to set "Remember Me" after the user has already logged in? In this scenario a user logs in then at some point during his session submits a form to set "Remember Me" for the next login Thanks & regards, Jithesh -- View this message in context: http://www.nabble.com/Ace

Re: [appfuse-user] Web services in Appfuse 2.0

2007-12-04 Thread jackalista
Ah, the light comes on, finally... ok, I get the idea, thanks Matt!! mraible wrote: > > > On Dec 4, 2007, at 9:13 PM, jackalista wrote: > >> >> >> >> mraible wrote: >>> >>> On Dec 4, 2007, at 8:57 PM, jackalista wrote: >>> So I need to run "mvn install"? From which directory? Pleas

Re: [appfuse-user] Web services in Appfuse 2.0

2007-12-04 Thread Matt Raible
On Dec 4, 2007, at 9:13 PM, jackalista wrote: mraible wrote: On Dec 4, 2007, at 8:57 PM, jackalista wrote: So I need to run "mvn install"? From which directory? Please note I'm using the modular struts2 archteype. --- You need to run it from "co

Re: [appfuse-user] Web services in Appfuse 2.0

2007-12-04 Thread jackalista
mraible wrote: > > On Dec 4, 2007, at 8:57 PM, jackalista wrote: > >> So I need to run "mvn install"? From which directory? Please note >> I'm using the modular struts2 archteype. > --- > You need to run it from "core" in order to install the core mo

Re: [appfuse-user] appfuse project creation..

2007-12-04 Thread Matt Raible
AppFuse will download its dependencies the first time, after that it'll use your local copies. If you don't want Maven to look on the internet, use "mvn -o". Matt On Dec 4, 2007, at 9:03 PM, SaiKumar-IN wrote: Hi there, Is it neceseary appfuse downloads each time I create a project and

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-04 Thread Matt Raible
Yes, it's true that SiteMesh does not work seamlessly with JSF. However, there's nothing saying it's not possible. http://raibledesigns.com/rd/entry/sitemesh_works_with_jsf Someone e-mailed me a couple of weeks ago saying he got the following working with Facelets, but I haven't heard back from h

[appfuse-user] appfuse project creation..

2007-12-04 Thread SaiKumar-IN
Hi there, Is it neceseary appfuse downloads each time I create a project and run; or is there a way I have a repos on my local and appfuse uses it. I use Eclipse can I run directly from eclipse?? if so what config in eclipse I have to use?? I followed Matt's wiki on Eclipse. thanks

Re: [appfuse-user] Web services in Appfuse 2.0

2007-12-04 Thread Matt Raible
On Dec 4, 2007, at 8:57 PM, jackalista wrote: Hi Mike, thanks. No, I have done *only* what the tutorial says and then the stuff in this thread as I haven't messed with this AppFuse "feature" previously and so I was carefully following the instructions. So I need to run "mvn install"? Fro

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Stephiems
Ok, well I think I have a temporary solution. I had installed the maven 2 plugin, but I also had the regular maven installed from awhile back and it was overriding the maven 2 plugin. Now it will compile, just in Netbeans it thinks the package doesn't exisit. Annoying, but won't stop development.

Re: [appfuse-user] Web services in Appfuse 2.0

2007-12-04 Thread jackalista
Hi Mike, thanks. No, I have done *only* what the tutorial says and then the stuff in this thread as I haven't messed with this AppFuse "feature" previously and so I was carefully following the instructions. So I need to run "mvn install"? From which directory? Please note I'm using the modular

[appfuse-user] Unidirectional ManyToOne Hibernate save problem: TransientObjectException

2007-12-04 Thread Mike Wille
Hi All, I've been playing with Appfuse/Spring WebMVC/Hibernate and made a change to the base User object. I added a many-to-one reference to an Organization object. Everything works fine in my unit tests for creating a user, setting its organization property, and saving it. The problem com

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Matt Raible
On Dec 4, 2007, at 8:33 PM, Stephiems wrote: Ok, well I must be a bit overworked, the reason it didn't work is those packages weren't imported. Since they didn't get automatically imported by Netbeans, I forgot to import and save the files. It now compiles on the command line. Now I ju

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Stephiems
Ok, well I must be a bit overworked, the reason it didn't work is those packages weren't imported. Since they didn't get automatically imported by Netbeans, I forgot to import and save the files. It now compiles on the command line. Now I just have to figure out if it is Netbeans or the Maven plu

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Matt Raible
There shouldn't be a problem with 2.0.8, I've been using it since it came out w/o issues. Are you using a basic or modular project. If basic, does your pom.xml have a dependency on appfuse-struts? It should have two - one with type=war and one with type=warpath. Matt On Dec 4, 2007, at 8:1

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Stephiems
I don't like either one of those solutions, haha. Ok, just to test, I opened a command line, went to the directory that my application is in, and typed: mvn install I still got a compile error. I'm guessing that means there is another problem, possibly maven 2.0.8? I might download 2.0.7 and giv

Re: [appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Matt Raible
Yes, it's probably caused by NetBeans - unless you're using a Maven Plugin. There are two solutions: 1. Run "mvn appfuse:full-source" to import all of AppFuse's source into your project. 2. Compile from the command line. The good news is IDEA doesn't have this problem. ;-) Matt On Dec 4,

[appfuse-user] org.appfuse.webapp classes don't seem to be in classpath

2007-12-04 Thread Stephiems
I was running through the tutorial for AppFuse and made it up to the Web Application part. I've created a struts2 project, and when I tried to extend BaseActionTestCase and also BaseAction, they couldn't be found. It doesn't seem like anything in the appfuse-struts package is able to be seen by my

Re: [appfuse-user] Getting build error with aspectj-maven-plugin

2007-12-04 Thread Stephiems
Ok, thanks, I will try that. For some reason temporarily changing it to 1.0-beta-1 seemed to work. mraible wrote: > > If you're not using AspectJ in your project, you can safely remove > (or comment out) the aspectj-mave-plugin in your pom.xml. > > Matt > > On Dec 3, 2007, at 10:59 PM, Step

Re: [appfuse-user] Dialect class not found: org.hibernate.dialect.Oracle9iDialect

2007-12-04 Thread fadhli
But if you're using hibernate 3.2.5.ga, the hibernate team split Oracle9Dialect into Oracle9iDialect and Oracle10gDialect http://opensource.atlassian.com/projects/hibernate/browse/HHH-2665 On Nov 12, 2007 11:16 PM, Josef Cacek <[EMAIL PROTECTED]> wrote: > Don't use Oracle9iDialect in the .pom fi

Re: [appfuse-user] getId() returns NULL on a newly saved hibernate object?

2007-12-04 Thread davos
Thanks for the (incredibly speedy) reply! It works a treat. mraible wrote: > > Try this: > > photo = photoManager.save(photo); > > Matt > > On 12/4/07, davos <[EMAIL PROTECTED]> wrote: >> I'm sure this must be a common problem for people new to AppFuse/Spring >> MVC >> as I am, but I can't

Re: [appfuse-user] getId() returns NULL on a newly saved hibernate object?

2007-12-04 Thread Matt Raible
Try this: photo = photoManager.save(photo); Matt On 12/4/07, davos <[EMAIL PROTECTED]> wrote: > I'm sure this must be a common problem for people new to AppFuse/Spring MVC > as I am, but I can't figure out how to get my object to update and get it's > ID after i create and save it. The relevant

[appfuse-user] getId() returns NULL on a newly saved hibernate object?

2007-12-04 Thread davos
I'm sure this must be a common problem for people new to AppFuse/Spring MVC as I am, but I can't figure out how to get my object to update and get it's ID after i create and save it. The relevant code in the controller is : photoManager.save(photo); return new ModelAndView(getSuccessView() + "?i

Re: [appfuse-user] A question on JSF/Tiles

2007-12-04 Thread Matt Raible
You should look for a Tiles + JSF tutorial and then worry about integrating Tomahawk after that. Why do you want to use Tiles? You can use Facelet's composition stuff and it works pretty nicely. Matt On 12/4/07, Carlos Ortiz <[EMAIL PROTECTED]> wrote: > > > Hi > > > > I World like to know where I

[appfuse-user] A question on JSF/Tiles

2007-12-04 Thread Carlos Ortiz
Hi I World like to know where I can find a good tutorial about using Struts Tiles 2 with JSF Tomahawk?

Re: [appfuse-user] Concuurent session handling

2007-12-04 Thread Nathan Anderson
Doesn't look like anyone here has an answer for you. Maybe you should try the ACEGI section of the Spring forums. Nathan - "ujjala" <[EMAIL PROTECTED]> wrote: > Pls reply > > ujjala wrote: > > > > Hi, > > I have implemented the following in > applicationContext-Security.xml,to > > handle

Re: [appfuse-user] Question about retrieving a section of a div with id

2007-12-04 Thread Nathan Anderson
Not sure if you got this figured out, but this sounds like it would be easier to solve with javascript. http://www.w3schools.com/htmldom/dom_obj_document.asp Maybe this will help. Nathan - "Yongping" <[EMAIL PROTECTED]> wrote: > I know my question is nothing to do with Appfuse. However I

Re: [appfuse-user] work with excluding set in Hibernate/MySQL

2007-12-04 Thread Nathan Anderson
Don't know if you already found a solution, but here is what the SQL would look like... I imagine the HQL would be similar.. Here is how to get just the "other" users: SELECT user.* FROM user WHERE user.city NOT IN (SELECT city.name FROM city WHERE state = 'CA') Here is how to get all users an

Re: [appfuse-user] PickList Javascript error

2007-12-04 Thread Nathan Anderson
Have you found a solution to this? Also I see that there is a typo in your message "from" has no properties. Is that typo in your email or your code? Nathan - "Sanath" <[EMAIL PROTECTED]> wrote: > Hi Mike, > I did so, yes its a great tool!! > > the issue with me is that for the 1st page

Re: [appfuse-user] Entity Archival in a Manager

2007-12-04 Thread Nathan Anderson
Sorry for the delay in response, I was out of town and didn't check my email much. You could compare the objects before saving to see if you should really invoke the save, but I suppose you wouldn't be any better off than your original suggestion. I mean you'd still have to fetch the current

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Dale Newfield
This is great news! Anyone know how to get hibernate to choose this column type from xdoclet tags instead of JPA? (I.E.: appfuse 1.9.x instead of 2.0) -Dale Martin Homik wrote: The documentation says: "If you desire to store long strings with no specific upper limit, use text or character

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
I should have known, there is simple solution. :-) MH Rob Hills wrote: > > Hi Martin, > > Martin Homik wrote: >> Yesterday, I tried to run my AppFuse application with PostgreSQL instead >> of >> MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier >> mistake. In MySQL I us

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
The documentation says: "If you desire to store long strings with no specific upper limit, use text or character varying without a length specifier, rather than making up an arbitrary length limit." I do not remember if I read that or whether I made that up. Today was a day full of information. B

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Rob Hills
Hi Martin, Martin Homik wrote: Yesterday, I tried to run my AppFuse application with PostgreSQL instead of MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier mistake. In MySQL I used a longtext type for a description field. This type corresponds to a column JPA annotation

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Matt Raible
On Dec 4, 2007, at 1:02 AM, Martin Homik wrote: Yesterday, I tried to run my AppFuse application with PostgreSQL instead of MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier mistake. In MySQL I used a longtext type for a description field. This type corresponds to

Re: [appfuse-user] to prevent from relogin.

2007-12-04 Thread Matt Raible
If you don't get a good answer on this list, it's likely because no one knows the answer. I'd suggest asking this question in the Acegi user forums. http://forum.springframework.org/forumdisplay.php?f=33 Hopefully someone there has done what you're trying to do and can help. Matt On Dec 4,

Re: [appfuse-user] Getting build error with aspectj-maven-plugin

2007-12-04 Thread Matt Raible
If you're not using AspectJ in your project, you can safely remove (or comment out) the aspectj-mave-plugin in your pom.xml. Matt On Dec 3, 2007, at 10:59 PM, Stephiems wrote: I'm using Netbeans 6.0 with the maven plugin. I've downloaded maven 2.0.8 and have set the maven plugin to use t

AW: AW: [appfuse-user] BeanCreationException

2007-12-04 Thread René Günther
Thanks. I deleted those under test/resources and everything works fine. Still don’t know from where the evil files came from... René -Ursprüngliche Nachricht- Von: kace [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. Dezember 2007 15:12 An: users@appfuse.dev.java.net Betreff: Re: AW: [

Re: [appfuse-user] Appfuse generated jsp with select box

2007-12-04 Thread Rob Hills
Hi Mani, Mani_N wrote: Am seeing the following to do for generated select tag in appfuse generated jsp page which is referring to the list of child objects. Please let me know what is that I have to do to make this select box active with values of the memotype table.. Assuming you

Re: AW: [appfuse-user] BeanCreationException

2007-12-04 Thread kace
There should only be one of these and that's in main/resources. The one in src/test/resources shouldn't exist. ..kace René Günther wrote: > > Now I changed applicationContext-test.xml, added the property. I got > another > error. I solved it by changing hibernate.cfg.xml of test/resources

[appfuse-user] Appfuse generated jsp with select box....Plz help

2007-12-04 Thread Mani_N
Hi, Am seeing the following to do for generated select tag in appfuse generated jsp page which is referring to the list of child objects. Please let me know what is that I have to do to make this select box active with values of the memotype table.. -- View this message in context:

AW: [appfuse-user] BeanCreationException

2007-12-04 Thread René Günther
Now I changed applicationContext-test.xml, added the property. I got another error. I solved it by changing hibernate.cfg.xml of test/resources directory so that it is equal to hibernate.cfg.xml of main/resources directory. Now the tests are successful. Do I really have to change definitions in tes

[appfuse-user] BeanCreationException

2007-12-04 Thread René Günther
I am using appfuse 2.0.1 with full source. I am getting the following error when running mvn test -Dtest=UserDao*: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager' defined in file [c:\Source\bj2\target\test-classes\applicationContext-test.xml]: I

[appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
Yesterday, I tried to run my AppFuse application with PostgreSQL instead of MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier mistake. In MySQL I used a longtext type for a description field. This type corresponds to a column JPA annotation having a length attribute with th

[appfuse-user] to prevent from relogin.

2007-12-04 Thread ujjala
I don't want user to login when he is already logged in. I have implemented following code in applicationcontext security.xml. In this case problem is that user is also not able to login after properlogout. It gets the exception maximum session exceeded. I registered the Httpeventpublisher listene