-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
the '?:' operator should be part of the expression: please try this:
<cell width="${$composer.fullWidth ? '70%' : '50%'}">
The special if-attribute controls whether a component is created or not. If the condition is false the component is never created at all.
The equivalent in java would be:
//remove a component
test.detach();
//re-attach the component
test.setParent(parent);
//create a new component
Textbox test = new Textbox();
test.setId(test);
test.setParent(parent);
2 | No.2 Revision |
the '?:' operator should be part of the expression: please try this:
<cell width="${$composer.fullWidth ? '70%' : '50%'}">
or <cell width="@($composer.fullWidth ? '70%' : '50%')">
The special if-attribute controls whether a component is created or not. If the condition is false the component is never created at all.
The equivalent in java would be:
//remove a component
test.detach();
//re-attach the component
test.setParent(parent);
//create a new component
Textbox test = new Textbox();
test.setId(test);
test.setParent(parent);
3 | No.3 Revision |
the '?:' operator should be part of the expression: please try this:
<cell width="${$composer.fullWidth ? '70%' : '50%'}">
or
or
<cell width="@($composer.fullWidth width="@{$composer.fullWidth ? '70%' : '50%')">'50%'}">
The special if-attribute controls whether a component is created or not. If the condition is false the component is never created at all.
The equivalent in java would be:
//remove a component
test.detach();
//re-attach the component
test.setParent(parent);
//create a new component
Textbox test = new Textbox();
test.setId(test);
test.setParent(parent);