I forgot to say the version. I am using appfuse 1.9.4 and Wwbwork. This
is my save() method in StudyAction:
public String save() throws Exception {
if (cancel != null) {
return "cancel";
}
if (delete != null) {
return delete();
}
boolean isNew = (study.getId() == null);
Date now = new Date();
study.setModified(now);
studyManager.saveStudy(study);
String key = (isNew) ? "study.added" : "study.updated";
saveMessage(getText(key));
if (!isNew) {
return INPUT;
} else {
return SUCCESS;
}
}
Thanks again
Adriel
On Thu, 2007-06-28 at 12:35 +0100, Michael Horwitz wrote:
> Which version of Appfuse are you using and with which web framework?
>
> Thanks
>
> Mike.
>
>
> On 6/28/07, adriel manalansan <[EMAIL PROTECTED]> wrote:
> Hello to everyone,
>
> I have 2 pojos, study and image. I did the relationship
> between the 2
> tables and it is successful. Here it goes, from
> editStudy.html, i
> uploaded an image(redirected to editImage.html) that uses
> imageAction
> and saved the imageId to my study then redirect to
> editStudy.html again,
> the imageId is saved to study table so I can say that saving
> imageId to
> my study is successful. the problem is when I click the save
> button to
> my editStudy that calls the method save(), the imageId was
> deleted. I
> dont know where is the problem so please help me about this...
>
> Thanks and God bless you.
>
> Adriel
>
> ---------------------------------------------------------------------
> 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]