Re: ideas to dupe an EO

2013-02-15 Thread David LeBer
Ted, You should be able to do something like: ((ERXCopyable)object()).copy(); Or more safely: if (object() instanceof ERXCopyable) { ... ((ERXCopyable)object()).copy(); ... } notactuallylookedattheapivoidwhereprohibitedbyl

Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
Thank you very much for the catch!!! I am stuck half way in D2W land. the TPMODInspectPage only knows about the object(). I was hoping that I could just wire up a button that says "Dupe" and the method would dupe the EO, saveChanges and present the lastPage. Obviously, object().copy() won't wor

Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
Thank you very much for the catch!!! I am stuck half way in D2W land. the TPMODInspectPage only knows about the object(). I was hoping that I could just wire up a button that says "Dupe" and the method would dupe the EO, saveChanges and present the lastPage. Obviously, object().copy() won't wor

Re: ideas to dupe an EO

2013-02-15 Thread David Avendasora
Hi Ted, On Feb 16, 2013, at 2:11 AM, Theodore Petrosky wrote: > @Override > public Agenda duplicate(NSMutableDictionary> > copiedObjects) { > Agenda duplicate = ERXCopyable.Utility.modelCopy(copiedObjects, > (Agenda) this); > return duplicate; > } Whoops! My Javadoc has lead you a

Re: Mobile to full site page, not refreshed until browser refresh - solved

2013-02-15 Thread John Pollard
Problem solved, nothing to do with WebObjects. I needed to add the following to the button: data-ajax="false"; In order to allow the link to escape out to the full site. On 15 Feb 2013, at 18:43, John Pollard wrote: > Hi list, > > I have a site that will display in mobile / full site mode: > w

Mobile to full site page, not refreshed until browser refresh

2013-02-15 Thread John Pollard
Hi list, I have a site that will display in mobile / full site mode: www.team-picker.com Click the "Mobile site" link next to the 4th tick down to see the mobile version. Then click the Full Site button at the bottom left of the mobile page view. This is where I have a problem, on returning to th

Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
David, I downloaded the ERXCopyable.java and added it to my Wonder. I added the implements ERXCopyable to my EO and experimented with adding the default overrides. Finally living with: @Override public Agenda copy() { Agenda copy = (Agenda) copy(new NSMutableDictionary>()); ret

Re: foreach: list must not be a constant

2013-02-15 Thread Pascal Robert
Le 2013-02-15 à 06:00, John Pollard a écrit : > Many thanks, that fixed it, I had: > > component.inlineBindingPrefix=[ > component.inlineBindingSuffix=] > component.wellFormedTemplateRequired=true > > Though using $ as the binding did actually work, even given the error showing. > > Also my p

Re: ideas to dupe an EO

2013-02-15 Thread David LeBer
You probably want ERXCopyable. http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html D On 2013-02-15, at 10:42 AM, Theodore Petrosky wrote: > I am looking for an idea on duping an EO. I've thought of putting a hyperlink > on the listPage then I thought of putting a button o

ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
I am looking for an idea on duping an EO. I've thought of putting a hyperlink on the listPage then I thought of putting a button on the editPage (i am toying with that now). I duped ERMODInspectPage and I added a button. If I create a localInstance in a new EC, how can I save this 'new' EO. it

RE: Business rules and filtering

2013-02-15 Thread Oscar González
Hi Ralph, That wil be nice of you Saludos. From: ralph.sche...@gmx.net Subject: Re: Business rules and filtering Date: Thu, 14 Feb 2013 14:07:42 +0100 To: prob...@macti.ca CC: webobjects-dev@lists.apple.com Hi Pascal, You could consider the JBoss Drools Framework, or, if you want to implement

Re: foreach: list must not be a constant

2013-02-15 Thread John Pollard
Many thanks, that fixed it, I had: component.inlineBindingPrefix=[ component.inlineBindingSuffix=] component.wellFormedTemplateRequired=true Though using $ as the binding did actually work, even given the error showing. Also my previous note about using an NSMutableArray was a red herring, the

Re: WYSIWIG editor with WO

2013-02-15 Thread Theodore Petrosky
I use it all the time! Everything is broken apart and well labeled. I wish there was something like this for wonder. --- On Thu, 2/14/13, Ken Anderson wrote: > From: Ken Anderson > Subject: Re: WYSIWIG editor with WO > To: "Ramsey Gurley" > Cc: "WebObjects Development" > Date: Thursday, Fe

Re: foreach: list must not be a constant

2013-02-15 Thread Þór Sigurðsson
Check if these lines are missing from your project's build.properties file: component.inlineBindingPrefix=$ component.inlineBindingSuffix= component.wellFormedTemplateRequired=false /Þór On 14.2.2013, at 19:24, John Pollard wrote: > Hi List, > > In wolips html view I get an error on the first l