Revision history [back]

click to hide/show revision 1
initial version

answered 2017-11-22 20:25:24 +0800

cor3000 gravatar image cor3000

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);

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);

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);
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More