You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Federico Fanton <ff...@ibc.it> on 2007/08/23 15:25:21 UTC

Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

On Fri, 6 Jul 2007 08:48:56 -0700
"Igor Vaynberg" <ig...@gmail.com> wrote:

> > Thanks for the tip but I absolutly need a compoundPropertyModel.
> 
> https://issues.apache.org/jira/browse/WICKET-723

I had the same issue, thanks! Now I'm using beta3..
Another question though: I see that Recorder.initIds() assumes that getPalette().getModelCollection() is never null.. Is this by design? Should I check my "backing bean" for null collections before passing it to the CompoundPropertyModel?
(Or maybe I could override CompoundPropertyModel.AttachedCompoundPropertyModel.getObject() so that it creates the empty collection when needed.. X-) )

Many thanks in advance!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

Posted by FakeBoy <da...@gmail.com>.
I have also the same problem, because my backend bean collection attributes
sometimes is null. I have some client logic bind to this attribute a I need
that it will be null.
I understand that is not so good when Pallete creates some List impl. But I
thought about it and I see solution in Palette's method for example called:
protected List getDefaultList(). Everyone who need to have bean attribute
null and if also need use this attribute for Palette component can override
this method a return default the List impl, which need.

Can you please think about it? It's my wrong ?
Thanks you very much!
Dave



igor.vaynberg wrote:
> 
> i dont know if it is by design or not. it makes sense to me that you pass
> in
> a model with at least an empty collection, otherwise palette has to create
> an instance of some collection which isnt as clean.
> 
> -igor
> 
> 
> On 8/23/07, Federico Fanton <ff...@ibc.it> wrote:
>>
>> On Fri, 6 Jul 2007 08:48:56 -0700
>> "Igor Vaynberg" <ig...@gmail.com> wrote:
>>
>> > > Thanks for the tip but I absolutly need a compoundPropertyModel.
>> >
>> > https://issues.apache.org/jira/browse/WICKET-723
>>
>> I had the same issue, thanks! Now I'm using beta3..
>> Another question though: I see that Recorder.initIds() assumes that
>> getPalette().getModelCollection() is never null.. Is this by design?
>> Should
>> I check my "backing bean" for null collections before passing it to the
>> CompoundPropertyModel?
>> (Or maybe I could override
>> CompoundPropertyModel.AttachedCompoundPropertyModel.getObject() so that
>> it
>> creates the empty collection when needed.. X-) )
>>
>> Many thanks in advance!
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-No-get-method-defined-for-expression-recorder---when-using-Palette-and-CompoundPropertyModel-tp12293607p19160596.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

Posted by Federico Fanton <ff...@ibc.it>.
On Thu, 23 Aug 2007 09:00:18 -0700
"Igor Vaynberg" <ig...@gmail.com> wrote:

> i dont know if it is by design or not. it makes sense to me that you pass in
> a model with at least an empty collection, otherwise palette has to create
> an instance of some collection which isnt as clean.

I see.. So I'll let my implementation of CompoundPropertyModel create it as needed.. Thanks for your answer :)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

Posted by Igor Vaynberg <ig...@gmail.com>.
i dont know if it is by design or not. it makes sense to me that you pass in
a model with at least an empty collection, otherwise palette has to create
an instance of some collection which isnt as clean.

-igor


On 8/23/07, Federico Fanton <ff...@ibc.it> wrote:
>
> On Fri, 6 Jul 2007 08:48:56 -0700
> "Igor Vaynberg" <ig...@gmail.com> wrote:
>
> > > Thanks for the tip but I absolutly need a compoundPropertyModel.
> >
> > https://issues.apache.org/jira/browse/WICKET-723
>
> I had the same issue, thanks! Now I'm using beta3..
> Another question though: I see that Recorder.initIds() assumes that
> getPalette().getModelCollection() is never null.. Is this by design? Should
> I check my "backing bean" for null collections before passing it to the
> CompoundPropertyModel?
> (Or maybe I could override
> CompoundPropertyModel.AttachedCompoundPropertyModel.getObject() so that it
> creates the empty collection when needed.. X-) )
>
> Many thanks in advance!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>