You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by ha...@welinux.cl on 2010/04/07 18:28:24 UTC

Automatic add public fields to model

Hi,

I'm migrating a click 1.4 application to latest 2.1.0. I've found that the public fields don't get automatically inserted in the velocity context ¿ is there some configuration parameter to change to old behavior ?

Hans


-- 
Hans Poo, WeLinux S.A. http://www.welinux.cl
Oficina: 697.25.42, Celular: 09-319.93.05
Bombero Ossa # 1010, Santiago


Re: Automatic add public fields to model

Posted by ha...@welinux.cl.
Bob,

Yes, after setting autobinding to "public" everything worked as expected, it seems that by default it's not public.

Hans



----- "Bob Schellink" <sa...@gmail.com> escribió:

> Hi Hans,
> 
> On 8/04/2010 02:46, hans@welinux.cl wrote:
> >
> > Answering to myself: it's defined in click.xml with the autobinding
> attribute:
> >
> > <pages package="cl.codeduc.codeweb.pages" autobinding="public" />
> 
> 
> The following should have worked as well since Click will use "public"
> mode by default:
> 
> <pages package="cl.codeduc.codeweb.pages"/>
> 
> You are saying you saw different behavior?
> 
> kind regards
> 
> bob

-- 
Hans Poo, WeLinux S.A. http://www.welinux.cl
Oficina: 697.25.42, Celular: 09-319.93.05
Bombero Ossa # 1010, Santiago


Re: Automatic add public fields to model

Posted by Bob Schellink <sa...@gmail.com>.
Hi Hans,

On 8/04/2010 02:46, hans@welinux.cl wrote:
>
> Answering to myself: it's defined in click.xml with the autobinding attribute:
>
> <pages package="cl.codeduc.codeweb.pages" autobinding="public" />


The following should have worked as well since Click will use "public" mode by default:

<pages package="cl.codeduc.codeweb.pages"/>

You are saying you saw different behavior?

kind regards

bob

Re: Automatic add public fields to model

Posted by ha...@welinux.cl.
Hi,

Answering to myself: it's defined in click.xml with the autobinding attribute:

<pages package="cl.codeduc.codeweb.pages" autobinding="public" />

Glup
Hans

----- hans@welinux.cl escribió:

> Hi,
> 
> I'm migrating a click 1.4 application to latest 2.1.0. I've found that
> the public fields don't get automatically inserted in the velocity
> context ¿ is there some configuration parameter to change to old
> behavior ?
> 
> Hans
> 
> 
> -- 
> Hans Poo, WeLinux S.A. http://www.welinux.cl
> Oficina: 697.25.42, Celular: 09-319.93.05
> Bombero Ossa # 1010, Santiago

-- 
Hans Poo, WeLinux S.A. http://www.welinux.cl
Oficina: 697.25.42, Celular: 09-319.93.05
Bombero Ossa # 1010, Santiago