You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Fabio Fioretti <wi...@gmail.com> on 2008/04/03 20:03:03 UTC

[Wicket 1.3.3] Possible wicket:enclosure regression.

Hi All,

I'm experiencing a possible regression for wicket:enclosure in Wicket
1.3.3 (maybe related to the couple of patches that involved enclosures
for 1.3.3). It thought of a regression because the following code
works just fine in 1.3.1, even if I haven't tested it in 1.3.2.

Basically, I have a RadioGroup with a couple of options. When the user
selects the second option, a text field and link (wrapped in an
enclosure) should appear next to the option. If she/he selects the
first option, they should disappear again. Their visibility management
is based on the enclosure.

<wicket:extend>
    <form wicket:id="form">
        <span wicket:id="radioGroup">

            <input wicket:id="radioOne" type="radio" value="U">
            <span onclick="event.cancelBubble = true;">Set OPTION ONE
                <br/>
            </span>

           <input wicket:id="radioTwo" type="radio" value="P"/>
           <span onclick="event.cancelBubble = true;">Set OPTION TWO
               <wicket:enclosure child="textField">
                   <input wicket:id="textField" type="text"/>
                   <a wicket:id="link">link</a>
               </wicket:enclosure>
               <br/>
            </span>

        </span>
        <input type="button" wicket:id="submitButton"/>
    </form>
</wicket:extend>


On the Java side, the relevant code looks like this (feel free to ask
for further details):

radioGroup.add(new AjaxFormRadioUpdatingBehavior("onclick"){
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                if (OPTION_ONE.equals(getSelectedOption())) {
                    textField.setVisible(true);
                } else {
                    textField.setVisible(false);
                }
               target.addComponent(radioGroup);
            }
});

As you can see, I set the visibility of the textField depending on the
selected option and then update the container (the radioGroup). Again,
it worked fine in 1.3.1.

Is anybody aware of this or has anyone else experienced the same
change in enclosure functioning from Wicket 1.3.1 to 1.3.3?


Thank you very much and keep up the good work!

Fabio Fioretti - WindoM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

Posted by Igor Vaynberg <ig...@gmail.com>.
i think our bamboo instance might be having problems. so yes you can
try there, if that snapshot is too old you can try checking out from
source and mvn installing it

-igor


On Wed, Apr 30, 2008 at 1:50 PM, Alex Jacoby <ae...@isr.umich.edu> wrote:
> Thanks.
>
>  Is this the right place to download 1.3.4?
>
>
> http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/
>
>  Cheers,
>  Alex
>
>
>
>  On Apr 30, 2008, at 4:45 PM, Igor Vaynberg wrote:
>
>
> > also fixed for 1.3.4...
> >
> > -igor
> >
> > On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <ae...@isr.umich.edu> wrote:
> >
> > > Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just
> need to
> > > find where to download it :)
> > >
> > > https://issues.apache.org/jira/browse/WICKET-1536
> > >
> > > Alex
> > >
> > >
> > >
> > > On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:
> > >
> > >
> > >
> > > >
> > > > I just upgraded to 1.3.3 today and I'm having enclosure problems too
> -- it
> > > > seems like their state isn't updated after the page is constructed.
> Is
> > > >
> > > this
> > >
> > > > fixed in trunk?
> > > >
> > > > Searched the list but haven't found anything yet.
> > > >
> > > > Thanks,
> > > > Alex
> > > >
> > > >
> > > > Fabio Fioretti wrote:
> > > >
> > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I'm experiencing a possible regression for wicket:enclosure in
> Wicket
> > > > > 1.3.3 (maybe related to the couple of patches that involved
> enclosures
> > > > > for 1.3.3). It thought of a regression because the following code
> > > > > works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> > > > >
> > > > > Basically, I have a RadioGroup with a couple of options. When the
> user
> > > > > selects the second option, a text field and link (wrapped in an
> > > > > enclosure) should appear next to the option. If she/he selects the
> > > > > first option, they should disappear again. Their visibility
> management
> > > > > is based on the enclosure.
> > > > > [snip]
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.html
> > >
> > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

Posted by Alex Jacoby <ae...@isr.umich.edu>.
Thanks.

Is this the right place to download 1.3.4?

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/

Cheers,
Alex

On Apr 30, 2008, at 4:45 PM, Igor Vaynberg wrote:

> also fixed for 1.3.4...
>
> -igor
>
> On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <ae...@isr.umich.edu>  
> wrote:
>> Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I  
>> just need to
>> find where to download it :)
>>
>> https://issues.apache.org/jira/browse/WICKET-1536
>>
>> Alex
>>
>>
>>
>> On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:
>>
>>
>>>
>>> I just upgraded to 1.3.3 today and I'm having enclosure problems  
>>> too -- it
>>> seems like their state isn't updated after the page is  
>>> constructed.  Is
>> this
>>> fixed in trunk?
>>>
>>> Searched the list but haven't found anything yet.
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> Fabio Fioretti wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> I'm experiencing a possible regression for wicket:enclosure in  
>>>> Wicket
>>>> 1.3.3 (maybe related to the couple of patches that involved  
>>>> enclosures
>>>> for 1.3.3). It thought of a regression because the following code
>>>> works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
>>>>
>>>> Basically, I have a RadioGroup with a couple of options. When the  
>>>> user
>>>> selects the second option, a text field and link (wrapped in an
>>>> enclosure) should appear next to the option. If she/he selects the
>>>> first option, they should disappear again. Their visibility  
>>>> management
>>>> is based on the enclosure.
>>>> [snip]
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>> http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

Posted by Igor Vaynberg <ig...@gmail.com>.
also fixed for 1.3.4...

-igor

On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <ae...@isr.umich.edu> wrote:
> Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just need to
> find where to download it :)
>
>  https://issues.apache.org/jira/browse/WICKET-1536
>
>  Alex
>
>
>
>  On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:
>
>
> >
> > I just upgraded to 1.3.3 today and I'm having enclosure problems too -- it
> > seems like their state isn't updated after the page is constructed.  Is
> this
> > fixed in trunk?
> >
> > Searched the list but haven't found anything yet.
> >
> > Thanks,
> > Alex
> >
> >
> > Fabio Fioretti wrote:
> >
> > >
> > > Hi All,
> > >
> > > I'm experiencing a possible regression for wicket:enclosure in Wicket
> > > 1.3.3 (maybe related to the couple of patches that involved enclosures
> > > for 1.3.3). It thought of a regression because the following code
> > > works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> > >
> > > Basically, I have a RadioGroup with a couple of options. When the user
> > > selects the second option, a text field and link (wrapped in an
> > > enclosure) should appear next to the option. If she/he selects the
> > > first option, they should disappear again. Their visibility management
> > > is based on the enclosure.
> > > [snip]
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

Posted by Alex Jacoby <ae...@isr.umich.edu>.
Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just  
need to find where to download it :)

https://issues.apache.org/jira/browse/WICKET-1536

Alex

On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:

>
> I just upgraded to 1.3.3 today and I'm having enclosure problems too  
> -- it
> seems like their state isn't updated after the page is constructed.   
> Is this
> fixed in trunk?
>
> Searched the list but haven't found anything yet.
>
> Thanks,
> Alex
>
>
> Fabio Fioretti wrote:
>>
>> Hi All,
>>
>> I'm experiencing a possible regression for wicket:enclosure in Wicket
>> 1.3.3 (maybe related to the couple of patches that involved  
>> enclosures
>> for 1.3.3). It thought of a regression because the following code
>> works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
>>
>> Basically, I have a RadioGroup with a couple of options. When the  
>> user
>> selects the second option, a text field and link (wrapped in an
>> enclosure) should appear next to the option. If she/he selects the
>> first option, they should disappear again. Their visibility  
>> management
>> is based on the enclosure.
>> [snip]
>>
>
> -- 
> View this message in context: http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

Posted by Alex Jacoby <ae...@icpsr.umich.edu>.
I just upgraded to 1.3.3 today and I'm having enclosure problems too -- it
seems like their state isn't updated after the page is constructed.  Is this
fixed in trunk?

Searched the list but haven't found anything yet.

Thanks,
Alex


Fabio Fioretti wrote:
> 
> Hi All,
> 
> I'm experiencing a possible regression for wicket:enclosure in Wicket
> 1.3.3 (maybe related to the couple of patches that involved enclosures
> for 1.3.3). It thought of a regression because the following code
> works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> 
> Basically, I have a RadioGroup with a couple of options. When the user
> selects the second option, a text field and link (wrapped in an
> enclosure) should appear next to the option. If she/he selects the
> first option, they should disappear again. Their visibility management
> is based on the enclosure.
> [snip]
> 

-- 
View this message in context: http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org