1

How to hide and show the commandButton in oracle mobile Application Framework using AMX?

Is this possible to do it in AMX itself without using javascript/jQuery.

4

1 回答 1

1

No need for JS.

Example with using the inlineStyle:

 <amx:commandButton id="c1" text="#{row.name}" inlineStyle="#{row.salary >4000 ? 'display: none;' : 'display: inline;'}">

You can also use the rendered attribute as described in the documentation.

于 2015-09-23T12:55:28.400 回答