posted 13 years ago
ui:define is not a GUI display element, it's a macro definition. So there's no style attached to it, only to whatever GUI content it expands into.
Technically, yes, you could define a macro and pass it a parameter which would be referenced in one or more of its expansion elements using an EL expression. In real life, I'd be more likely to pass a style name rather than hard-coding style values, however.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.