sun4love 发表于 2013-1-29 10:51:27

use【组件公共属性】

<div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-color: #ffffff;"><span style="line-height: 16px; white-space: normal;">语法
apply="a-class-name"apply="class1, class2,..."apply="${EL_returns_a_class_or_a_collection_of_classes}"apply="${EL_returns_an_instance_or_a_collection_of_Composer_instances}"可以指定一个类、类的集合,apply用于初始化组件(译者注:详见use和apply的区别).该类必须实现 Composer接口 ,然后可以在doAfterCompose方法内做一些初始化工作, 因为该方法会在组件和其子组件初始化后自动调用(译者注:callback)
<div style="color: #000000;"><div style="width: 1196px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; font-size: 1em !important; background-color: white !important;" class="syntaxhighlighterxml"><div style="border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; background-image: none !important; background-color: white !important; border-top-width: 0px !important; border-right-width: 3px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-color: #008bb6 !important; float: none !important; height: auto !important; line-height: 1.1em !important; padding-top: 0px !important; padding-right: 0.5em !important; padding-bottom: 0px !important; padding-left: 1em !important; text-align: right !important; vertical-align: baseline !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; white-space: pre !important; border-right-style: solid !important; margin: 0px !important;" class="line number1 index0 alt2">1
页: [1]
查看完整版本: use【组件公共属性】