on 06-15-2004 4:49 PM
Hello Friends,
Has anybody managed to get a Asterisk (*) next to an InputField in a TableView? The setRequired(true) for Label control renders this behaviour.
I would appreciate solution to my problem with a copy even to madoshi@deloitte.de
BR,
Maulin
Hi,
please check the PDK HTMLB documentation about the tableView component. There you'll find something on using custom controls in a tableView.
Regards,
aRmin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello friends,
I found the solution on my own :-). Would like to share it.
I added this code under cellrenderer to display respective tablecell:
if ((column == 4)){
FlowLayout fl = new FlowLayout();
fl.setId("myForm4");
InputField input = new InputField("InputName4");
input.setType(DataType.STRING);
//input.setMaxlength(100);
input.setValue(tableView.getValueAt(row, column).toString());
fl.addComponent(input);
if (row == 1) {
Label label = new Label("label_InputName4");
label.setRequired(true);
label.setText(" ");
label.setDesign(TextViewDesign.LABEL);
label.setLabelFor(input);
fl.addComponent(label);
}
fl.render(rendererContext);
//label.render(rendererContext);
}
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.