天空是藍色的

          做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe
          數據加載中……
          Tapestry常見規范文件的書寫

          四種常見的Tapestry規范

          (<application>,<component-specification>,<page-specification>and<library-specification>)

           

          應用程序規范文件,一般是*.application后綴文件

          頁面規范文件,是組件規范的子集一般是*.page后綴文件

          組件規范文件,擴展新的組件一般是*.jwc 后綴文件

          <bean>元素,獲得bean的引用,實例化(instantiated)初始化(initialized)JavaBean,Page定義和組件元素中出現。

          <bean> Attributes

          Name

          Type

          Required ?

          Default Value

          Description

          name

          string

          yes

           

          The name of the bean, which must be a valid Java identifier.

          class

          string

          yes

           

          The name of the class to instantiate.

          lifecycle

          none|page|render|request

          no

          request

          As described above; duration that bean is retained.

           

          <component> element自定義組件

           

          出現在組件規范和頁面規范中

          定義被用來植入到容器中(組件或者頁面)的組件

          Name

          Type

          Required ?

          Default Value

          Description

          id

          string

          yes

           

          Identifier for the component here and in the component's template. Must be a valid Java identifier.

          type

          string

          no

           

          A component type to instantiate.

          copy-of

          string

          no

           

          The name of a previously defined component. The type and bindings of that component will be copied to this component.

           

           

          <property-specification> 定義需要實現的靜態方法

          posted on 2005-11-10 12:22 bluesky 閱讀(432) 評論(0)  編輯  收藏 所屬分類: 框架應用

          主站蜘蛛池模板: 石渠县| 利辛县| 孙吴县| 新民市| 永济市| 武定县| 秦皇岛市| 浠水县| 长岛县| 碌曲县| 开阳县| 阿克苏市| 张家港市| 楚雄市| 安顺市| 苍溪县| 安宁市| 卓尼县| 开远市| 曲靖市| 祁门县| 昔阳县| 清原| 荣成市| 额济纳旗| 满洲里市| 阿拉尔市| 休宁县| 芦山县| 杭锦后旗| 嘉黎县| 正定县| 汝州市| 鄯善县| 集安市| 营口市| 象山县| 安远县| 吉水县| 淳安县| 抚宁县|