You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ann Baert <an...@tvh.be> on 2009/09/29 16:59:45 UTC
AutoComplete textfield ignores "visible" property within hierarchy.
When writing an autocomplete textfield on a form that is first visible,
and after an ajax call rendered invisible, the autocomplete textfields
on this form get rendered anyway in the ajax response.
The method "renderAutocompleteHead" in AbstractAutocompleteBehavior gets
executed,
even if the AutoComplete component to which it is attached is not visible
within the
component hierarchy.
Below the snippet of code that solved it for us ...
In the class AbstractAutoCompleteBehavior, a test on the visibility was
added.
public void renderHead(IHeaderResponse response) {
if(this.getComponent().isVisibleInHierarchy()) {
super.renderHead(response);
renderAutocompleteHead(response);
}
}
The error becomes visible in the debug window on the webpage.
There is already a bug report filed within jira, and a demo application is
included to simulate the problem.
https://issues.apache.org/jira/browse/WICKET-2497
Met vriendelijke groeten,
ANN BAERT
ICT-DEPARTMENT
Internet technologie: Software Engineer
Tel.: +32 56 43 42 11
Fax: +32 56 43 44 88
E-mail: ann.baert@tvh.com
Contactsheet: ANN BAERT TVH FORKLIFT PARTS nv-sa - BRABANTSTRAAT 15 -
B-8790 WAREGEM
Neem even pauze om onze website te bekijken en vertel ons hoe we u kunnen
helpen: www.tvh.com/nl Vooraleer ik print, denk ik aan het milieu.
**** DISCLAIMER ****
<A HREF="http://www.tvh.be/newen/pages/emaildisclaimer.html">
http://www.tvh.be/newen/pages/emaildisclaimer.html </A>
"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."
Re: AutoComplete textfield ignores "visible" property within
hierarchy.
Posted by Ann Baert <an...@tvh.be>.
I already opened a jira issue:
https://issues.apache.org/jira/browse/WICKET-2497
igor.vaynberg wrote:
>
> please open a jira issue.
>
> -igor
>
> On Tue, Sep 29, 2009 at 7:59 AM, Ann Baert <an...@tvh.be> wrote:
>> When writing an autocomplete textfield on a form that is first visible,
>> and after an ajax call rendered invisible, the autocomplete textfields
>> on this form get rendered anyway in the ajax response.
>>
>> The method "renderAutocompleteHead" in AbstractAutocompleteBehavior gets
>> executed,
>> even if the AutoComplete component to which it is attached is not visible
>> within the
>> component hierarchy.
>>
>> Below the snippet of code that solved it for us ...
>>
>> In the class AbstractAutoCompleteBehavior, a test on the visibility was
>> added.
>>
>>
>>
>> public void renderHead(IHeaderResponse response) {
>> if(this.getComponent().isVisibleInHierarchy()) {
>> super.renderHead(response);
>> renderAutocompleteHead(response);
>> }
>> }
>>
>>
>> The error becomes visible in the debug window on the webpage.
>>
>> There is already a bug report filed within jira, and a demo application
>> is
>> included to simulate the problem.
>>
>> https://issues.apache.org/jira/browse/WICKET-2497
>>
>> Met vriendelijke groeten,
>>
>> ANN BAERT
>> ICT-DEPARTMENT
>> Internet technologie: Software Engineer
>> Tel.: +32 56 43 42 11
>> Fax: +32 56 43 44 88
>> E-mail: ann.baert@tvh.com
>> Contactsheet: ANN BAERT TVH FORKLIFT PARTS nv-sa - BRABANTSTRAAT 15 -
>> B-8790 WAREGEM
>> Neem even pauze om onze website te bekijken en vertel ons hoe we u kunnen
>> helpen: www.tvh.com/nl Vooraleer ik print, denk ik aan het milieu.
>> **** DISCLAIMER ****
>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>>
>> "This message is delivered to all addressees subject to the conditions
>> set forth in the attached disclaimer, which is an integral part of this
>> message."
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/AutoComplete-textfield-ignores-%22visible%22-property-within-hierarchy.-tp25664687p25675445.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
Re: AutoComplete textfield ignores "visible" property within
hierarchy.
Posted by Igor Vaynberg <ig...@gmail.com>.
please open a jira issue.
-igor
On Tue, Sep 29, 2009 at 7:59 AM, Ann Baert <an...@tvh.be> wrote:
> When writing an autocomplete textfield on a form that is first visible,
> and after an ajax call rendered invisible, the autocomplete textfields
> on this form get rendered anyway in the ajax response.
>
> The method "renderAutocompleteHead" in AbstractAutocompleteBehavior gets
> executed,
> even if the AutoComplete component to which it is attached is not visible
> within the
> component hierarchy.
>
> Below the snippet of code that solved it for us ...
>
> In the class AbstractAutoCompleteBehavior, a test on the visibility was
> added.
>
>
>
> public void renderHead(IHeaderResponse response) {
> if(this.getComponent().isVisibleInHierarchy()) {
> super.renderHead(response);
> renderAutocompleteHead(response);
> }
> }
>
>
> The error becomes visible in the debug window on the webpage.
>
> There is already a bug report filed within jira, and a demo application is
> included to simulate the problem.
>
> https://issues.apache.org/jira/browse/WICKET-2497
>
> Met vriendelijke groeten,
>
> ANN BAERT
> ICT-DEPARTMENT
> Internet technologie: Software Engineer
> Tel.: +32 56 43 42 11
> Fax: +32 56 43 44 88
> E-mail: ann.baert@tvh.com
> Contactsheet: ANN BAERT TVH FORKLIFT PARTS nv-sa - BRABANTSTRAAT 15 -
> B-8790 WAREGEM
> Neem even pauze om onze website te bekijken en vertel ons hoe we u kunnen
> helpen: www.tvh.com/nl Vooraleer ik print, denk ik aan het milieu.
> **** DISCLAIMER ****
> <A HREF="http://www.tvh.be/newen/pages/emaildisclaimer.html">
> http://www.tvh.be/newen/pages/emaildisclaimer.html </A>
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org