Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Position bug for SmartGWT autogenerated content in buttons

    Hi there,

    Please find all the description in the pdf located here, as it is impossible to attach one to the post:
    http://www.vdkeilen.be/smartgwt/SmartgwtPositionBug.pdf

    Best regards

    Romain Van der Keilen.

    #2
    Don't use RootPanel.add(), use draw() (this is covered in the QuickStart).

    Comment


      #3
      Hi there,

      This solution doesn't work. As there is no reference to the HTML id where the component has to be inserted, it is just dropped in the beginning of the page, and the listgrid is not displayed anymore!

      Can anyone tell me how I am supposed to do this, without using
      RootPanel.get("mhHTMLid").add(myComponent);

      Thanks!!
      Attached Files

      Comment


        #4
        I've also tried something like this: layout.setHtmlElement(DOM.getElementById("listContainer"));

        but it don't work either.

        Comment


          #5
          I finally foud a fix for this.

          Code:
          final VLayout printLayout = new VLayout(0);
          final IButton print = new IButton( messages.print() );
          print.setStyleName("printButton");
          print.setIcon("/images/iconePrint.gif");
          printLayout.addChild(print);
          RootPanel.get("printContainer").add(printLayout);
          Maybe it's not the exact advised way to do, but as I cannot find any accurate documentation about this anywhere, I had to be creative.

          Comment


            #6
            We can't really tell (too little information provided), but it looks like you are invalidly mixing GWT and SmartGWT components (see FAQ about this).

            If you think it's a valid usage, try putting together a minimal, ready-to-run test case demonstrating an issue where the usage is clearly inline with the FAQ.

            Of course, you have a workaround for now, so you may not want to bother unless you hit another issue.

            Comment


              #7
              I will try to provide you some exact test case soon.

              Comment

              Working...
              X