Thanks, it did it.
For those who are interested, here is the code sample you need to replace
the one from the obsolete doc:
// ...
TypeCreationOptions tOpts = new TypeCreationOptions();
tOpts.setDefaultMinOccurs(1);
tOpts.setDefaultNillable(false);
AegisDatabinding aDB = new AegisDatabinding();
aDB.getAegisContext().setTypeCreationOptions(tOpts);
_sFactory.getServiceFactory().setDataBinding(aDB);
On Wed, Aug 20, 2008 at 04:20, Benson Margulies <[EMAIL PROTECTED]>wrote:
> Search for 'Global Type Creation Options' on that page.
>
> On Tue, Aug 19, 2008 at 4:05 AM, Shinkan <[EMAIL PROTECTED]> wrote:
> > Thanks Benson !
> >
> > Even if this doc is really interesting (I should click links more often),
> It
> > doesn't talk about programatically configuration.
> > Except maybe, in a diverted way, by talking about AegisContext for
> > AegisDatabinding.
> > But it doesn't help for default conf of bindings...
> >
> > On Tue, Aug 19, 2008 at 02:59, Benson Margulies <[EMAIL PROTECTED]
> >wrote:
> >
> >> Follow the link near the top of the page to the 2.1 Aegis doc.
> >>
> >> On Mon, Aug 18, 2008 at 4:47 AM, Shinkan <[EMAIL PROTECTED]> wrote:
> >> > Hi everyone !
> >> >
> >> > This page from Apache CXF doc deals with changing default minOccurs
> and
> >> > nillable parameters which are set automatically by Aegis or something:
> >> > http://cwiki.apache.org/CXF20DOC/aegis-databinding.html, see "Setting
> >> > Default minOccurs and nillable Parameters from Java" at the end.
> >> >
> >> > But... this doesn't Work with latest CXF. The used methods doesn't
> exist
> >> :(
> >> >
> >> > How can I tell Aegis to make minOccurs "1" and nillable "false" by
> >> default ?
> >> >
> >> > Thanks in advance.
> >> >
> >> > --
> >> > Pierre.
> >> > Some people, when confronted with a problem, think "I know, I'll use
> >> XML".
> >> > Now they have two problems. -- Jamie Zawinski / James Robertson
> >> >
> >>
> >
> >
> >
> > --
> > Pierre.
> > Some people, when confronted with a problem, think "I know, I'll use
> XML".
> > Now they have two problems. -- Jamie Zawinski / James Robertson
> >
>
--
Pierre.
Some people, when confronted with a problem, think "I know, I'll use XML".
Now they have two problems. -- Jamie Zawinski / James Robertson