Re: D2W and Ajax oh my!
Re: D2W and Ajax oh my!
- Subject: Re: D2W and Ajax oh my!
- From: David LeBer <email@hidden>
- Date: Wed, 12 Feb 2014 10:37:52 -0500
Hey Ted,
Technically the “_parent” thing* is from the Ajax framework, so should be documented there.
As far as documentation is concerned, I’m afraid I don’t have any details for you (other than documentation == good).
Anyone on the list care to chime in?
D
*FWIW, giving some (but unfortunately not all) Ajax components a ‘_parent’ binding for their updateContainerID is a shortcut for binding to something like this:
public String parentUpdateContainerID() {
return AjaxUpdateContainer.currentUpdateContainerID();
}
which is pretty handy to know in its own right.
On Feb 12, 2014, at 8:35 AM, Theodore Petrosky <email@hidden> wrote:
> thanks you.
>
> I was thinking of starting to document my little journey into D2W and add a section to the 'How-tos" on the wiki. Do you think it belongs here or is there somewhere else started to add these topics to?
>
> Ted
>
>
>
> On Feb 11, 2014, at 7:32 PM, David LeBer <email@hidden> wrote:
>
>> Theodore,
>>
>> updateContainerID = d2wContext.idForRepetitionContainer
>>
>> Should work.
>>
>> Or more generically:
>>
>> updateConatinerID = “_parent”; // update whatever UpdateContainer is directly above this element
>>
>> D
>>
>>
>>
>> On Feb 11, 2014, at 2:48 PM, Theodore Petrosky <email@hidden> wrote:
>>
>>> I am trying to add a custom component to a ListPage. I am showing a normal list (ERMODListPage) and I want the user to be able to edit an attribute by clicking on the cell and use an AjaxInPlace to edit the text.
>>>
>>> I have everything working except the refresh when the user clicks the 'save' button. I am hoping the answer is simple. If I were not using D2W, I would wrap the table in an AjaxUpdateContainer and just fire that update after I did a saveChanges().
>>>
>>> Before I start subclassing ERMODListPage to add an UpdateContainer, is there a rule or two that will do this. Or am I working too hard.
>>>
>>> I would love to find something like:
>>>
>>> updateContainerID = d2wContext.idForParentMainContainer;
>>>
>>> Ted
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
_______________________________________________
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