You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ernesto Reinaldo Barreiro <re...@gmail.com> on 2019/06/26 06:30:02 UTC

improvement for wicket:for

Hi,

In application I'm developing right now we have following situation.


   1. A repeater consisting of a label with wicket:id "label" + some
   complex panel with wicket:id="value"
   2. I still would like to use wicket:for but panel value structure may
   change a lot depending on "type" of current repeater "row". Thus, I can't
   alway write wicket:for="value/xxx".

Thus, I would like to introduce some interface to be implemented by
"ValuePanel" which returns a reference to that for component to which label
should point, so that I could write wicket:for="value"

WDYT?

-- 
Regards - Ernesto Reinaldo Barreiro

Re: improvement for wicket:for

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Voila

https://github.com/apache/wicket/pull/373

On Wed, Jun 26, 2019 at 9:46 AM Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> ok.
>
> On Wed, Jun 26, 2019 at 9:43 AM Martin Grigorov <mg...@apache.org>
> wrote:
>
>> Hi Ernesto,
>>
>> Please create a Pull Request and we will discuss it! Thanks!
>>
>> On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro <
>> reiern70@gmail.com> wrote:
>>
>> > I could try to provide a PR implementing this.
>> >
>> > On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
>> > reiern70@gmail.com> wrote:
>> >
>> > > Hi,
>> > >
>> > > In application I'm developing right now we have following situation.
>> > >
>> > >
>> > >    1. A repeater consisting of a label with wicket:id "label" + some
>> > >    complex panel with wicket:id="value"
>> > >    2. I still would like to use wicket:for but panel value structure
>> may
>> > >    change a lot depending on "type" of current repeater "row". Thus, I
>> > can't
>> > >    alway write wicket:for="value/xxx".
>> > >
>> > > Thus, I would like to introduce some interface to be implemented by
>> > > "ValuePanel" which returns a reference to that for component to which
>> > label
>> > > should point, so that I could write wicket:for="value"
>> > >
>> > > WDYT?
>> > >
>> > > --
>> > > Regards - Ernesto Reinaldo Barreiro
>> > >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>> >
>>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: improvement for wicket:for

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
ok.

On Wed, Jun 26, 2019 at 9:43 AM Martin Grigorov <mg...@apache.org>
wrote:

> Hi Ernesto,
>
> Please create a Pull Request and we will discuss it! Thanks!
>
> On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > I could try to provide a PR implementing this.
> >
> > On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
> > reiern70@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > In application I'm developing right now we have following situation.
> > >
> > >
> > >    1. A repeater consisting of a label with wicket:id "label" + some
> > >    complex panel with wicket:id="value"
> > >    2. I still would like to use wicket:for but panel value structure
> may
> > >    change a lot depending on "type" of current repeater "row". Thus, I
> > can't
> > >    alway write wicket:for="value/xxx".
> > >
> > > Thus, I would like to introduce some interface to be implemented by
> > > "ValuePanel" which returns a reference to that for component to which
> > label
> > > should point, so that I could write wicket:for="value"
> > >
> > > WDYT?
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: improvement for wicket:for

Posted by Martin Grigorov <mg...@apache.org>.
Hi Ernesto,

Please create a Pull Request and we will discuss it! Thanks!

On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> I could try to provide a PR implementing this.
>
> On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > Hi,
> >
> > In application I'm developing right now we have following situation.
> >
> >
> >    1. A repeater consisting of a label with wicket:id "label" + some
> >    complex panel with wicket:id="value"
> >    2. I still would like to use wicket:for but panel value structure may
> >    change a lot depending on "type" of current repeater "row". Thus, I
> can't
> >    alway write wicket:for="value/xxx".
> >
> > Thus, I would like to introduce some interface to be implemented by
> > "ValuePanel" which returns a reference to that for component to which
> label
> > should point, so that I could write wicket:for="value"
> >
> > WDYT?
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>

Re: improvement for wicket:for

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
I could try to provide a PR implementing this.

On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> Hi,
>
> In application I'm developing right now we have following situation.
>
>
>    1. A repeater consisting of a label with wicket:id "label" + some
>    complex panel with wicket:id="value"
>    2. I still would like to use wicket:for but panel value structure may
>    change a lot depending on "type" of current repeater "row". Thus, I can't
>    alway write wicket:for="value/xxx".
>
> Thus, I would like to introduce some interface to be implemented by
> "ValuePanel" which returns a reference to that for component to which label
> should point, so that I could write wicket:for="value"
>
> WDYT?
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


-- 
Regards - Ernesto Reinaldo Barreiro