(no subject)
(no subject)
- Subject: (no subject)
- From: Don <email@hidden>
- Date: Mon, 12 Jun 2006 10:22:51 -0400
Hello All;
I am using WO 5.3 on Tiger with an Oracle 10G 10.0.3.0 database. I am able to render a listing of people with two checkboxes (the fields in the database are numeric for these checkboxes) The fields are named trainer and custodian.
Everything renders correctly, puling the correct data etc. However if I check any of the boxes then press my save button (which is a submit) (WORepetition and Submit are inside a form). It does not appear any changes are being saved.
I have included the source from page as well as the java source, eo model class, and table structure.
Please help, I am sure it is something small that is causing the error.
Thanks,
Don Lindsay
Java Source:
public void appendToResponse(WOResponse response, WOContext context) {
EOFetchSpecification fetchSpec = null;
EOEditingContext ec = null;
try{
ec = session().defaultEditingContext();
fetchSpec = new EOFetchSpecification("Agent",null,null);
//EOFetchSpecification.fetchSpecificationNamed("byName","Agent");
NSArray tempT = ec.objectsWithFetchSpecification(fetchSpec);
AgentList = new NSMutableArray(tempT);
WXDebug.println(7, "AgentList:"+AgentList.count());
} catch(Exception e){
WXDebug.println(1, "e:"+e);
e.printStackTrace();
} finally{
super.appendToResponse(response,context);
}
}
public WOComponent saveAgent()
{
EOEditingContext ec = null;
try{
ec = session().defaultEditingContext();
//WXDebug.println(1,);
ec.saveChanges();
WXDebug.println(1, "Agents.java:saveAgent()");
} catch( Exception e) {
WXDebug.println(1, "An Error Occurred in Agents.java:SaveAgent() error:"+e);
e.printStackTrace();
} finally {
//ec.unlock();
}
return null;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden