[Seaside] Seaside, Omnibase, OmnibaseSupport - markDirty failing
wilkesjoiner at gmail.com
Sun Feb 19 14:37:54 UTC 2006
I'm learning to use Seaside with Omnibase and am having some issues.
I'm getting a "ODBError: Object is not persistent or is a part of
composite persistent object" when calling markDirty on an object.
Here is the setup for the app.
I'm using a custom Session class, BLGSession, which is a subclass of
I have one domain object, BLGPost, and two components. One for
listing posts, BLGPostList, and another for creating and editing them,
BLGPost inherits from ODBSPersistentObject. It has a body attribute
with the following setter:
body := anObject.
The edit component is causing the problem. When I call it to modify
the body attribute of a Post I get the "not persistent" message.
^ post isNil
ifTrue: [post := BLGPost new]
[html label for: 'post_title'; with: 'Title'.
html textInput on: #title of: self post].
[html label for: 'post_body'; with: 'Body'.
html textArea on: #body of: self post].
html submitButton callback: [self answer: self post]].
I've tried many variations and permutations of this, but can't seem to
get this to work. Anything obvious that I'm missing? Is my approach
More information about the Seaside