I was able to reproduce this problem and believe it might be caused by
a bug in MyFaces. In the past, I've seen null values get translated
into 0 instead of null. It looks like new users' version is getting
set to 0 instead of 1 and therefore the update fails. If you're using
full-source, you might look at UserPage.save() to see if you can
adjust the logic.

Hope this helps,

Matt

On Tue, Nov 11, 2008 at 7:08 AM, Irshad Buchh <[EMAIL PROTECTED]> wrote:
>
> I faced a very strange problem with AppFuse JSF Basic.
>
> To see the problem:
> 1. create a basic JSF appfuse project
> 2. login as admin
> 3. go to Administration/Users
> 4. click on  admin to edit and save, no problem
> 5. Click on user to edit and save, no problem.
> 6. Now create a new user (test), no problem.
> 7.Click on the newly created user test to edit and save, we get a stacktrace
> in jetty and an error on the browser:
> This username (test) or e-mail address ([EMAIL PROTECTED]) already exists.
> Please try a different username.
> There is no user with that name/e-mail in the database. <br />This problem
> is only with the newly created users, but not with admin or user.
>
> Has anybody else faces it?
>
> --Irshad.
>
> --
> View this message in context: 
> http://www.nabble.com/A-strange-problem-with-AppFuse-JSF-Basic-tp20440243s2369p20440243.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to