Re: AutoComplete textfield ignores visible property within hierarchy.

2009-09-30 Thread Ann Baert

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 ann.ba...@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.ba...@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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AutoComplete textfield ignores visible property within hierarchy.

2009-09-29 Thread Igor Vaynberg
please open a jira issue.

-igor

On Tue, Sep 29, 2009 at 7:59 AM, Ann Baert ann.ba...@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.ba...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org