I tried this before but here it is for list edification. I created a component 
with an object

<webobject name = "PublicationEditInPlace"/>
and bound it with
PublicationEditInPlace : AjaxInPlaceEditor {
        value = object.publication;//VALID
        rows = 5;
        cols = 15;      
}

Perhaps because my component is bound into a repetition but it does not respect 
the rows and cols bindings so that before I click on the object it will show a 
single string. Then when I click to select, I get the textarea with the line 
feeds.

Give me a clue. When I attempt to use the AjaxinPlace and the multiple 
bindings, my component complains that there is no setKey nor _setKey etc.

I could use some expert guidance. 

Ted

--- On Sun, 1/29/12, David LeBer <[email protected]> wrote:

> From: David LeBer <[email protected]>
> Subject: Re: It's never easy
> To: "Theodore Petrosky" <[email protected]>
> Cc: "WebObjects Development" <[email protected]>
> Date: Sunday, January 29, 2012, 3:06 PM
> Ted,
> 
> Please respond to the list.
> 
> It looks like AjaxInPlaceEditor will render a textarea if
> you supply it with a rows and cols binding.
> 
> The AjaxExample app in Wonder has a multiline in-place
> editor example that should give you what you need.
> 
> Alternately you can use AjaxInPlace and give it your own
> edit and view templates (also shown in that example).
> 
> D
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2012-01-29, at 12:15 PM, Theodore Petrosky wrote:
> 
> > So either I wasn't clear or I don't understand the
> answer.
> > 
> > In the ListObject view, I want to present the user with
> an AjaxInPlaceEditor (I shouldn't say that, I want them to
> be able to select and edit a cell). For my values that will
> always be a single line (a name of something), it works
> great as an AjaxInPlaceEditor.
> > 
> > However, when there is a list of items:
> > 
> > Billy
> > Sam
> > Jon
> > 
> > they appear as:
> > 
> > Billy Sam Jon   (of course on a single
> line instead of three lines in the AjaxInPlaceEditor.)
> > 
> > I examined the source of AjaxInPlaceEditor and it
> appears to me that this is an implementation of
> AjaxInPlace.
> > 
> > 
> > 
> > --- On Sun, 1/29/12, David LeBer <[email protected]>
> wrote:
> > 
> >> From: David LeBer <[email protected]>
> >> Subject: Re: It's never easy
> >> To: "Theodore Petrosky" <[email protected]>
> >> Date: Sunday, January 29, 2012, 10:37 AM
> >> There is no 'magic' Ted, D2W is just
> >> WO with a rule engine on top.
> >> 
> >> An ERD2WEditLargString is just a property level
> component
> >> containing a WOText (textarea). So implement that.
> >> 
> >> D
> >> 
> >> --
> >> David LeBer
> >> Codeferous Software
> >> 
> >> On 2012-01-29, at 7:58 AM, Theodore Petrosky
> wrote:
> >> 
> >>> I viewed David Leber's two part D2W tutorial
> from 2009
> >> where he show how to use a CustomComponent.
> >>> 
> >>> Great, I figured out how to add an
> AjaxInPlaceEditor to
> >> my D2W list page. But now I need a combination. An
> >> ERD2WEditLargeString that is an AjaxInPlaceEditor.
> >>> 
> >>> Is there some magic that can help me with this
> one?
> >>> 
> >>> Ted
> >>>
> _______________________________________________
> >>> Do not post admin requests to the list. They
> will be
> >> ignored.
> >>> Webobjects-dev mailing list     
> ([email protected])
> >>> Help/Unsubscribe/Update your Subscription:
> >>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> >>> 
> >>> This email sent to [email protected]
> >>> 
> >> 
> >> 
> > 
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to