Chapter 5: Other View Element Types in Screen Widgets
2013-04-10 10:30
309 查看
FreeMarker
我之前对web.xml只有一个很粗略的理解:定义了webapp可以使用的资源。今天有了进一步的理解:定义了component中所有的parameter!
在party的PartyScreen.xml中有着这样一段代码:
<screen name="findparty"> <section> <actions> <set field="titleProperty" value="PageTitleFindParty"/> <set field="headerItem" value="find"/> <set field="tabButtonItem" value="findparty"/> <service service-name="findParty" auto-field-map="parameters"/> </actions> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <section>
其中,location这里的${parameters.mainDecoratorLocation}就是在web.xml中定义的:
<context-param>
<param-name>mainDecoratorLocation</param-name> <param-value>component://party/widget/partymgr/CommonScreens.xml</param-value> <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> </context-param>
所以,这里的${parameters.mainDecoratorLocation}就等价于:"component://party/widget/partymgr/CommonScreens.xml"
自我感觉,这里的context-param有点像C/C++全局变量
相关文章推荐
- Android View api 详解-LocationInWindow,getLocationOnScreen,getGlobalVisibleRect,getLocalVisibleRect
- Data Types and Expressions(Chapter 4 of Programming in Objective-C 2.0)
- Chapter 11-Creating Other Schema Objects ---View
- How "Copy File" works in 'View Output" screen in Oracle Apps
- 5.2 Android Basic QuickStart Widgets&Other View Date Picker
- 使用getLocationInWindow或getLocationOnScreen获得View在屏幕中的坐标
- 5.2 Android Basic QuickStart Widgets&Other View Time Picker
- 5.2 Android Basic QuickStart Widgets&Other View Form Stuff
- 5.2 Android Basic QuickStart Widgets&Other View Spinner
- 解决警告:View.propTypes has been deprecated and will be removed in a future version of ReactNative
- 5.2 Android Basic QuickStart Widgets&Other View Auto Complete
- findViewById() returns null for custom component in layout XML, not for other components
- 5.2 Android Basic QuickStart Widgets&Other View Web View
- android webview 全屏播放H5 (Playing HTML5 video on fullscreen in android webview)
- Combining Navigation Drawer with ViewPager and TabLayout in one screen
- 5.2 Android Basic QuickStart Widgets&Other View Gallery
- 5.2 Android Basic QuickStart Widgets&Other View Google Map View
- Django: Filter ModelChoiceField by user(or other args in view)
- 记录iOS7截图drawViewHierarchyInRect:afterScreenUpdates崩溃
- More on Variables and Data Types(Chapter 10 of Programming in Objective-C 2.0)