ComboBox with Vaadin Grid and ComponentRenderer and the Empty Grid
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
add a comment |
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
add a comment |
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
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
combobox grid vaadin7 renderer
asked Nov 21 '18 at 22:13
Bilal GhayadBilal Ghayad
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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(...);
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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(...);
add a comment |
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(...);
add a comment |
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(...);
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(...);
answered Dec 2 '18 at 4:40
Vikrant ThakurVikrant Thakur
60556
60556
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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