HZNM.COM
welcome to my space
X
Search:  
 HOME   java.lang.ClassCastException: com.extjs.gxt.ui.client.widget.layout.BorderLayout Data
java.lang.ClassCastException: com.extjs.gxt.ui.client.widget.layout.BorderLayout Data
Published by: rose 2009-01-08
Welcome to:hznm.com

  • This exception happens intermittently. I'll try to build a standalone example to reporiduce it but maybe this is a known issue.
    It happens when I repeatedly add and remove the components to the parent component which has RowLayout set to it and calling Viewport.layout() after each such an iteration.
    Obviously the exact logic is much more complex.

    What prompts me to think that this is a bug is that if I replace the RowLayout with BorderLayout it works just fine.


    java.lang.ClassCastException: com.extjs.gxt.ui.client.widget.layout.BorderLayout Data
    at com.extjs.gxt.ui.client.widget.layout.RowLayout.la youtVertical(RowLayout.java:163)
    at com.extjs.gxt.ui.client.widget.layout.RowLayout.on Layout(RowLayout.java:212)
    at com.extjs.gxt.ui.client.widget.Layout.layout(Layou t.java:71)
    at com.extjs.gxt.ui.client.widget.Layout$1.handleEven t(Layout.java:48)
    Secretarial & Typing Work From Home.::
    How To Start A Secretarial Service Business And Get Legitimate Freelance Typing & Data Entry Work From Home.
    http://welcomewlc.LEVADUELL.hop.clickbank.net
    HOME
    High 75% Commission - Super High Converting Job Site!::
    TradeTrend.com Offers An Amazing 75% Commission Or 35.25 Per $47 Sale. New Program Is Getting Super High Conversions. Employment Site Offering Jobs In Focus Groups, Data Entry, Mystery Shopping And More.
    http://welcomewlc.TTREND.hop.clickbank.net
    HOME
    at com.extjs.gxt.ui.client.widget.Layout$1.handleEven t(Layout.java:1)
    at com.extjs.gxt.ui.client.event.BaseObservable.fireE vent(BaseObservable.java:74)
    at com.extjs.gxt.ui.client.widget.Component.fireEvent (Component.java:403)
    at com.extjs.gxt.ui.client.widget.BoxComponent.setSiz e(BoxComponent.java:411)
    at com.extjs.gxt.ui.client.widget.Layout.setSize(Layo ut.java:208)
    at com.extjs.gxt.ui.client.widget.layout.RowLayout.la youtVertical(RowLayout.java:201)


  • I guess the situation in which this could happen (when reusing the container) is as follows:
    - set the BorderLayout to the container
    - add components
    - call ViewPort.layout()
    - do some work
    - remove components with removeAll(). Tthis doesn't force components to be removed:

    // from Container.java
    public boolean removeAll() {
    return removeAll(false);
    }
    - set the RowLayout to the container
    - add components
    - call ViewPort.layout()
    - get the exception since there is (potentially) a component that has BorderLayoutData set on it.

    Is this something that you could/will look in to or should I just avoid reuse of the container?


  • RowLayout expects RowData. It looks like the layout data is BorderLayoutData which is why the class cast exception occurs.


  • After the container has been rendered, this is true. You need to call layout().

    Could you please explain? I need to call removeAll() followed by the layout() to force the removal, is this what you mean?


  • After a container is rendered, adding and removing children will not update the UI. The UI will be updated when container's layout is executed. Another approach is to call setLayoutOnChange(true) to have the container's layout execute any time there is a change to the children of the container.


  • I am not sure I understand you question. Containers can be reused, however, when changing layouts, the children must use the appropriate layout data.

    remove components with removeAll(). Tthis doesn't force components to be removed:
    After the container has been rendered, this is true. You need to call layout().





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's java.lang.ClassCastException: com.extjs.gxt.ui.client.widget.layout.BorderLayout Data, click hznm.com to home
  • maximizing business opportunities through motivation
  • using xmas instead of christmas
  • using outsourcing to explode your profits
  • mystery stories
  • spyware remover tools can easily be found across the internet
  • spyware and spybot removal tools are perfect for ensuring the protection of your computer
  • impressive spyware and spybot remover can ensure the protection of your system files
  • central texas growth
  • to attract more clients plug into your purpose
  • web design india website software development php net designers developers outsourcing consultancy call center bpo solutions services seo
  • wedding invitations a special meaning
  • free spybot downloads have increased during the past years due to the fact that their are more people gaining access to the internet
  • consequence of spyware or spybot intrusions
  •  
  • unique christmas ornaments
  • spyware and adware are files that can be installed on your computer
  • special wedding thank you cards
  • golf tips benefits of the early backward break
  • starting out the technology tutorials for toddlers
  • spyware software is getting to be easier and easier to find over the internet
  • spyware download
  • the garden revisited part 1
  • spyware doctor programs
  • wedding planning a barrel of joys and challenges
  • protect your computer against pop ups
  • treatment for thinning hair modern and traditional treatments for hair loss
  • the garden revisited part 2
  • the garden revisited part 3
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ