1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    11
    Vote Rating
    0
    Nico P is on a distinguished road

      0  

    Default Text#setText() in IE causes problems

    Text#setText() in IE causes problems


    Hi @ll,

    I am using a newer version of Gxt to produce dynamic layouted pages. I use it in combination with Vaadin for integration reasons.

    When I do the following it works fine in google chrome and firefox 3.5:

    1) Create the page: LayoutContainer with BorderLayout
    2) Add a ContentPanel to the east area
    3) Add a FormPanel 1 to the mentioned ContentPanel

    -> After the user triggered an event my code continues with:

    4) Add a second FormPanel 2 to the previously added FormPanel 1
    5) Add a TextField to the FormPanel 2
    6) Add a text, not null, to the TextField

    The TextField never appears in IE7 or 8 but in FF. I can see the following error message:

    com.google.gwt.core.client.JavaScriptException: (Error): Unbekannter Laufzeitfehler number: -2146827687 description: Unbekannter Laufzeitfehl
    Which says that an unknown runtime error was detected.

    When debugging I can see, that the exception is thrown after Method com.extjs.gxt.ui.client.widget.Text#setText() was called when the component was rendered and so the member 'rendered' is true. Does anybody have an idea why I face this problem with IE? I mean why does this exception come up when trying to set inner html? Unfortunately I do not see any other error messages in IE.

    Thanks & Greetings,
    Nico.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Can you please post a fully working testcase implementing EntryPoint for this? This way we could debug it directly. Its kind of hard to say without seeing any code.
    6) Add a text, not null, to the TextField
    You mean setValue with this?

    4) Add a second FormPanel 2 to the previously added FormPanel 1
    This is not supported. IE cannot have a form tag within another form tag. Why do you want to use multiply FormPanel?

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    11
    Vote Rating
    0
    Nico P is on a distinguished road

      0  

    Default


    Hi Sven

    sorry my fault. I am using a Label not a text field and so label#setText(String).
    Unfortunately I can not provide you a testcase. My Project is a try to integrate Gxt over Vaadin with an mvc based runtime which requires a bunch of libs. Sorry for that.

    This is not supported. IE cannot have a form tag within another form tag. Why do you want to use multiply FormPanel?
    Omg, you are right! Don't know why I forgot about this. The pages are generated depending on a tree of control objects. Using FormPanel as the default Panel was a bad choice. I will check, if this is the reason for my problem.

    Thanks & Greetings,
    Nico.

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    11
    Vote Rating
    0
    Nico P is on a distinguished road

      0  

    Default


    Sven you saved my day!

    IE cannot have a form tag within another form tag.
    This was the reason why the inner html could not be set. For me this means to switch from FormPanel to ContentPanel.

    Many thanks,
    Nico.

Similar Threads

  1. setText in TreeNode when original text contains link
    By yyogev in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 Nov 2010, 11:13 AM
  2. Replies: 2
    Last Post: 13 Jul 2010, 5:08 AM
  3. Problems validating a text field
    By Chamster in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 15 Jun 2008, 3:02 AM
  4. Problems Addressing a Text Item in BBar
    By greyknght1 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 May 2008, 6:02 AM
  5. two very small problems of text field and check box
    By aamir in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 Jan 2008, 8:12 AM

Thread Participants: 1