Author: shane.bryzak(a)jboss.com
Date: 2008-05-12 10:55:32 -0400 (Mon, 12 May 2008)
New Revision: 8164
Modified:
trunk/examples/seamspace/src/org/jboss/seam/example/seamspace/PictureAction.java
Log:
fixed LIE
Modified:
trunk/examples/seamspace/src/org/jboss/seam/example/seamspace/PictureAction.java
===================================================================
---
trunk/examples/seamspace/src/org/jboss/seam/example/seamspace/PictureAction.java 2008-05-12
14:39:34 UTC (rev 8163)
+++
trunk/examples/seamspace/src/org/jboss/seam/example/seamspace/PictureAction.java 2008-05-12
14:55:32 UTC (rev 8164)
@@ -25,11 +25,11 @@
public void uploadPicture()
{
memberImage = new MemberImage();
- memberImage.setMember(authenticatedMember);
}
public void savePicture()
{
+ memberImage.setMember(entityManager.find(Member.class,
authenticatedMember.getMemberId()));
entityManager.persist(memberImage);
Conversation.instance().end();
}
Show replies by date