ListPresenter with Value Models

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ListPresenter with Value Models

Bruno Buzzi
Hi All,

I have a DialogView with a lot of TextPresenters and one ListPresenter.

All TextPresenters models are ValueAspectAdaptors, with #aspectValue:
message.

The quuestion is:

Is there any way to connect a ListPresenter with a Value Model ?

Because when I "connect" a Value Model to the ListPresenter I have problems
with #list: message.

Did anyone handle this before ?

Best Regards
Bruno Buzzi Brasesco.


Reply | Threaded
Open this post in threaded view
|

Re: ListPresenter with Value Models

Ted Bracht-2
Hi Bruno

"Bruno Buzzi" <[hidden email]> wrote in message
news:90lata$1jbgq$[hidden email]...

> Hi All,
>
> I have a DialogView with a lot of TextPresenters and one ListPresenter.
>
> All TextPresenters models are ValueAspectAdaptors, with #aspectValue:
> message.
>
> The quuestion is:
>
> Is there any way to connect a ListPresenter with a Value Model ?
>
> Because when I "connect" a Value Model to the ListPresenter I have
problems
> with #list: message.
>
> Did anyone handle this before ?

The problem might be that you're working with a Dialog view, which uses the
AspectBuffer as a wrapper around the Model. When using a DialogView your
model is copied and you're looking at the copy. So any modifications are
done on the copy, and when you OK, the copy's changes are 'applied' to the
original model. However, when you're using lists, the wrapper isn't able to
handle that.

Hope this helps,

>
> Best Regards
> Bruno Buzzi Brasesco.
>
>
>

Ted