|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Accessing autoconnect-parameter by reference, not by valueHello,
Recently I found that autoconnect-parameters are being copied instead of being set as reference to parent parameter. What I want is to implement various editor-components containing BeanEditForm accessing parent property. class Page { @Property private EntityObject entity; void onSuccess() { // save entity here } } class EditorComponent { @Property @Parameter(autoconnect = true) private EntityObject entity; } Which way do I have to start to dig to? Alexey. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Accessing autoconnect-parameter by reference, not by valueHmm... Seems like autoconnect does not work for me as I expect.
I checked in setupRender() inside EditorComponent and found that 'entity' is null, while Page.setupRender() assigns new value to its same named property. What am I doing wrong? On Sat, Nov 7, 2009 at 7:50 PM, Alexey Hanin <gagarin61@...> wrote: > Hello, > > Recently I found that autoconnect-parameters are being copied instead > of being set as reference to parent parameter. > > What I want is to implement various editor-components containing > BeanEditForm accessing parent property. > > class Page { > > @Property > private EntityObject entity; > > void onSuccess() { > // save entity here > } > > } > > class EditorComponent { > > @Property > @Parameter(autoconnect = true) > private EntityObject entity; > > } > > Which way do I have to start to dig to? > > Alexey. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Accessing autoconnect-parameter by reference, not by valueSeriously, guys? Anyone?
On Sun, Nov 8, 2009 at 8:55 AM, Alexey Hanin <gagarin61@...> wrote: > Hmm... Seems like autoconnect does not work for me as I expect. > > I checked in setupRender() inside EditorComponent and found that > 'entity' is null, while Page.setupRender() assigns new value to its > same named property. > > What am I doing wrong? > > On Sat, Nov 7, 2009 at 7:50 PM, Alexey Hanin <gagarin61@...> wrote: >> Hello, >> >> Recently I found that autoconnect-parameters are being copied instead >> of being set as reference to parent parameter. >> >> What I want is to implement various editor-components containing >> BeanEditForm accessing parent property. >> >> class Page { >> >> @Property >> private EntityObject entity; >> >> void onSuccess() { >> // save entity here >> } >> >> } >> >> class EditorComponent { >> >> @Property >> @Parameter(autoconnect = true) >> private EntityObject entity; >> >> } >> >> Which way do I have to start to dig to? >> >> Alexey. >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Accessing autoconnect-parameter by reference, not by valueOh, I finally found what I was doing wrong :) Just misread the
documentation. The parameter bound to the property which is named exactly as component. In fact only one property can be bound. On Mon, Nov 9, 2009 at 2:14 PM, Alexey Hanin <gagarin61@...> wrote: > Seriously, guys? Anyone? > > On Sun, Nov 8, 2009 at 8:55 AM, Alexey Hanin <gagarin61@...> wrote: >> Hmm... Seems like autoconnect does not work for me as I expect. >> >> I checked in setupRender() inside EditorComponent and found that >> 'entity' is null, while Page.setupRender() assigns new value to its >> same named property. >> >> What am I doing wrong? >> >> On Sat, Nov 7, 2009 at 7:50 PM, Alexey Hanin <gagarin61@...> wrote: >>> Hello, >>> >>> Recently I found that autoconnect-parameters are being copied instead >>> of being set as reference to parent parameter. >>> >>> What I want is to implement various editor-components containing >>> BeanEditForm accessing parent property. >>> >>> class Page { >>> >>> @Property >>> private EntityObject entity; >>> >>> void onSuccess() { >>> // save entity here >>> } >>> >>> } >>> >>> class EditorComponent { >>> >>> @Property >>> @Parameter(autoconnect = true) >>> private EntityObject entity; >>> >>> } >>> >>> Which way do I have to start to dig to? >>> >>> Alexey. >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |