ComboBox with Vaadin Grid and ComponentRenderer and the Empty Grid












0














I hope this post can help me.
My problem that when I use ComponentRenderer, then the grid appears empty.
The used vaadin version 7.6 and the used ComponentRenderer is 1.0.3 as it is recommended to be.
If I did not use ComponentRenderer, then the grid appears but the combo box is not appear.



What could be the reason?



Below is the used code:



    Object itemId = container.addItem();    
container.getContainerProperty(itemId,"ID").setValue("1");
container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
this.getColumn("Approval").setRenderer(new ComponentRenderer());


Regards
Bilal










share|improve this question



























    0














    I hope this post can help me.
    My problem that when I use ComponentRenderer, then the grid appears empty.
    The used vaadin version 7.6 and the used ComponentRenderer is 1.0.3 as it is recommended to be.
    If I did not use ComponentRenderer, then the grid appears but the combo box is not appear.



    What could be the reason?



    Below is the used code:



        Object itemId = container.addItem();    
    container.getContainerProperty(itemId,"ID").setValue("1");
    container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
    container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
    container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
    this.getColumn("Approval").setRenderer(new ComponentRenderer());


    Regards
    Bilal










    share|improve this question

























      0












      0








      0







      I hope this post can help me.
      My problem that when I use ComponentRenderer, then the grid appears empty.
      The used vaadin version 7.6 and the used ComponentRenderer is 1.0.3 as it is recommended to be.
      If I did not use ComponentRenderer, then the grid appears but the combo box is not appear.



      What could be the reason?



      Below is the used code:



          Object itemId = container.addItem();    
      container.getContainerProperty(itemId,"ID").setValue("1");
      container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
      container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
      container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
      this.getColumn("Approval").setRenderer(new ComponentRenderer());


      Regards
      Bilal










      share|improve this question













      I hope this post can help me.
      My problem that when I use ComponentRenderer, then the grid appears empty.
      The used vaadin version 7.6 and the used ComponentRenderer is 1.0.3 as it is recommended to be.
      If I did not use ComponentRenderer, then the grid appears but the combo box is not appear.



      What could be the reason?



      Below is the used code:



          Object itemId = container.addItem();    
      container.getContainerProperty(itemId,"ID").setValue("1");
      container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
      container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
      container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
      this.getColumn("Approval").setRenderer(new ComponentRenderer());


      Regards
      Bilal







      combobox grid vaadin7 renderer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 22:13









      Bilal GhayadBilal Ghayad

      12




      12
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Object itemId = container.addItem();    //1
          container.getContainerProperty(itemId,"ID").setValue("1");//2
          container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");//3
          container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");//4
          container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);//5
          this.getColumn("Approval").setRenderer(new ComponentRenderer()); //6


          I believe you are trying to add a column "Approval" in line 5. Shouldn't it be:



             Column approvalColumn = container.addColumn(...);
          approvalColumn.setRenderer(...);





          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421173%2fcombobox-with-vaadin-grid-and-componentrenderer-and-the-empty-grid%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Object itemId = container.addItem();    //1
            container.getContainerProperty(itemId,"ID").setValue("1");//2
            container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");//3
            container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");//4
            container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);//5
            this.getColumn("Approval").setRenderer(new ComponentRenderer()); //6


            I believe you are trying to add a column "Approval" in line 5. Shouldn't it be:



               Column approvalColumn = container.addColumn(...);
            approvalColumn.setRenderer(...);





            share|improve this answer


























              0














              Object itemId = container.addItem();    //1
              container.getContainerProperty(itemId,"ID").setValue("1");//2
              container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");//3
              container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");//4
              container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);//5
              this.getColumn("Approval").setRenderer(new ComponentRenderer()); //6


              I believe you are trying to add a column "Approval" in line 5. Shouldn't it be:



                 Column approvalColumn = container.addColumn(...);
              approvalColumn.setRenderer(...);





              share|improve this answer
























                0












                0








                0






                Object itemId = container.addItem();    //1
                container.getContainerProperty(itemId,"ID").setValue("1");//2
                container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");//3
                container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");//4
                container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);//5
                this.getColumn("Approval").setRenderer(new ComponentRenderer()); //6


                I believe you are trying to add a column "Approval" in line 5. Shouldn't it be:



                   Column approvalColumn = container.addColumn(...);
                approvalColumn.setRenderer(...);





                share|improve this answer












                Object itemId = container.addItem();    //1
                container.getContainerProperty(itemId,"ID").setValue("1");//2
                container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");//3
                container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");//4
                container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);//5
                this.getColumn("Approval").setRenderer(new ComponentRenderer()); //6


                I believe you are trying to add a column "Approval" in line 5. Shouldn't it be:



                   Column approvalColumn = container.addColumn(...);
                approvalColumn.setRenderer(...);






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 2 '18 at 4:40









                Vikrant ThakurVikrant Thakur

                60556




                60556






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421173%2fcombobox-with-vaadin-grid-and-componentrenderer-and-the-empty-grid%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    Refactoring coordinates for Minecraft Pi buildings written in Python