|
From: nicolas de l. <nic...@gm...> - 2007-01-09 08:49:06
|
I've got another issue with the p:namespace :
My bean has a setURL(String) dependency.
setting <property name="URL" value="..."/> works, but using p:u-r-l="..."
(as springide 2.0M1 suggests) doesn't work ('invalid property uRL"), and
p:-u-r-l is not a valid attribute.
Is this a known limitation ?
Nico.
2007/1/5, Juergen Hoeller <jue...@in...>:
>
> Indeed, this seems to be related. Please give a recent 2.0.2 snapshot a
> try and see whether your scenario works there...
>
> As SPR-2955 indicates, I suppose you got hit by the "p:" namespace not
> working at all for inner beans: So your init method might get invoked first
> simply because the setters will never be invoked at all!
>
> Juergen
>
>
> ------------------------------
> *From:* spr...@li... [mailto:
> spr...@li...] *On Behalf Of *nicolas
> de loof
> *Sent:* Friday, January 05, 2007 5:13 PM
> *To:* spr...@li...
> *Subject:* Re: [Springframework-developer] [bug] p:namespace
> breaksinit-method for nested beans declaration !
>
> seems to be related to SPR-2955...
>
> 2007/1/5, nicolas de loof <nic...@gm...>:
> >
> > My application works with "traditional" <property name="" value=""/>
> > dependencies.
> >
> > A declaration use a nested declaration for it's dependency. The nested
> > one uses init-method="load" fo internal setup.
> > I've changed my xml configs to use the p:namespace. The load method is
> > invoked BEFORE dependencies get injected.
> >
> > Is this a known bug ?
> >
> > The attached demo demonstrates the bug
> >
> > Nico.
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
|