Announcement

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

    Problems with MultiFileItem

    Hello,
    I'm using SmartGWT 3.1p of 12/25/2012 (v8.3p_2012-12-25/PowerEdition Deployment) and I'm having problems with MultiFileItem.
    I've added a MultiFileItem in a section on a DynamicForm that is contained in a popup (Window class).
    The first problems are that when I click on the add icon to upload files:
    1. The MultiFileItem Upload popup is shown behind my Window (see screenshot).
    2. The upload button is not shown.

    One other problem is that I'm using "VisibilityMode.MUTEX" on the form and the MultiFileItem component is always visible, even when SectionItem is closed.

    These problems happen in dev mode, in compiled mode the form is not shown (Tested with FF 17 and Chrome 23).

    MultiFileItem is created this way (inspired by http://smartclient.com/smartgwtee/showcase/#multi_file):
    Code:
    MultiFileItem multiFileItem = new MultiFileItem("documento");
    multiFileItem.setAttribute("dataSource", Constantes.DS_DOCUMENTO_REL_MENSAL);

    Regards,
    Cédric.
    Attached Files

    #2
    This really looks like an invalid mix of GWT and SmartGWT components (see FAQ), especially if you're seeing different behavior in Dev vs Compiled mode, which generally indicates a core GWT bug.

    Can you show how this can be reproduced with just SmartGWT widgets?

    Comment


      #3
      Hello,
      Thanks for the answer.
      I've carefully looked again at the code I'm not using any GWT component. Only SmartGWT ones, for the popup I'm using com.smartgwt.client.widgets.Window for instance.
      Cheers,
      Cédric.

      Comment


        #4
        Regardless, we need to see how you're getting this effect. Can you show code that would reproduce the issue?

        Comment


          #5
          I wasn't able to reproduce the problems in builtinds with a similar code.
          I'll continue investigating my code. Besides GWT and SmartGWT component mix, is there anyhting else that could cause the problem?
          Thanks,
          Cédric.

          Comment


            #6
            It's hard to imagine anything that would reproduce what you're seeing in that screenshot, such not hiding when a section is closed. A call to bringToFront() that happens after the MultiFileItem's pop-up would be enough, in general to put a Window in front of some other pop-up.

            Comment


              #7
              I've found the problem. I had two related datasources with binary fields and these fields had the same name. I've renamed one of them in one of the detail datasource and it's now working.
              I now have another problem with translation that I'll open in antoher thread.
              Thanks,
              Cédric.

              Comment

              Working...
              X