<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    天空是藍色的

    做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe
    數據加載中……
    Form組件的簡單應用Tapestry Component Reference

    Form

    描述

    管理HTML<form>的組件,其他相關組件必須被包含在組建內部。

    當表單被提交時,Form組件會等待所有的內部組件顯示。當Form組件顯示時(在顯示周期,生成HTML顯示),更新屬性值和調用他們的監聽器。另外:每一個組件并不單單用來顯示HTML的責任(來顯示fotm),還處理它的表單提交。只有這些完畢后才Form組件才通知它的監聽器。

    名稱

    類型

    方向

    必須

    默認

    描述

    listener

    IActionListener

    in

    no

     

    處理請求

    delegate

    IValidationDelegate

    in

    no

     

    用來處理堆棧錯誤和報告的對象。單個實例共享給所有的ValidFieldFieldLable組件在單個form

    parameters

    Object or Object[] or List

    in

    no

     

    An array of Objects to be encoded into the URL. These parameters will be decoded when the link is triggered.

    stateful

    boolean

    in

    no

    true

    如果是ture,組件被出發時需要一個活動的HttpSession,如果沒有會拋出StateLinkException異常。如果是false則沒有必要檢查。必要狀態的附加在URL上。

    direct

    boolean

    in

    no

    true

    默認調用direct服務,這樣減少處理請求的數量

    method

    String

    in

    no

    POST

    Tag<form>method參數值


    例子

     

    Home.html

     1<html>
     2    <head>
     3        <title>Tutorial: HelloWorld</title>
     4    </head>
     5<body jwcid="@Body">
     6<h1>HelloWorld Tutorial</h1>
     7
     8<form jwcid="@Form" listener="ognl:listeners.formSubmit">
     9EnterYourName
    10<br/>
    11<input jwcid="enterYourName" name="textfield" type="text"/>
    12<br/>
    13<input type="submit" value="Submit"/>
    14<br/>
    15</form>
    16
    17<span jwcid="@Insert" value="ognl:yourName"/>
    18
    19</body>
    20</html>
    21

    Home.page
     1<?xml version="1.0" encoding="UTF-8"?>
     2<!DOCTYPE page-specification
     3      PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
     4      "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
     5<!-- generated by Spindle, http://spindle.sourceforge.net -->
     6
     7<page-specification class="com.Home">
     8
     9    <description>Hello World Home Page</description>
    10    
    11
    12<property-specification name="yourName" type="java.lang.String" persistent="yes"/>
    13<component id="enterYourName" type="TextField">
    14       <static-binding name="displayName">displayName</static-binding>
    15       <binding name="value" expression="yourName"/>
    16 </component>
    17
    18</page-specification>
    19
    20

    Home.java
     1package com;
     2
     3import org.apache.tapestry.IRequestCycle;
     4import org.apache.tapestry.html.BasePage;
     5
     6public abstract class Home extends BasePage {
     7    public abstract String getYourName();
     8
     9    public static void main(String args[]) {
    10
    11    }

    12
    13    public void formSubmit(IRequestCycle cycle) {
    14        // Process the form submission.
    15    }

    16}

    17

    posted on 2005-11-08 15:06 bluesky 閱讀(908) 評論(0)  編輯  收藏 所屬分類: 框架應用

    主站蜘蛛池模板: 亚洲一区二区三区免费观看| 国产亚洲精品国产福利在线观看| 天天影院成人免费观看| 亚洲色成人网站WWW永久四虎| 亚洲Av无码国产情品久久| 日本一道本不卡免费 | 真实乱视频国产免费观看| 一级做a爰片久久毛片免费看 | 又硬又粗又长又爽免费看| 亚洲av无码潮喷在线观看| 欧美最猛性xxxxx免费| 一区二区3区免费视频| 久久精品亚洲AV久久久无码 | 亚洲AV成人一区二区三区观看| 不卡精品国产_亚洲人成在线| 免费在线看v网址| 国产成人自产拍免费视频| 久久乐国产综合亚洲精品| 亚洲中文字幕无码久久精品1| 最近2019中文字幕免费看最新| 永久免费A∨片在线观看| 337P日本欧洲亚洲大胆精品| 亚洲AV人无码激艳猛片| 亚洲成a人片在线观看老师| 国产香蕉免费精品视频| 精品国产呦系列在线观看免费| 亚洲性无码AV中文字幕| 亚洲黑人嫩小videos| 亚洲精品一品区二品区三品区| 午夜两性色视频免费网站| 999任你躁在线精品免费不卡| 国产精品偷伦视频免费观看了| 亚洲色精品VR一区区三区| 2022年亚洲午夜一区二区福利 | 免费国产黄网站在线看 | 免费国产黄网站在线观看可以下载| 亚洲av无码专区在线电影| 亚洲一卡二卡三卡| 久久亚洲AV无码精品色午夜麻豆| 亚洲精品无码Av人在线观看国产| 国产又黄又爽又刺激的免费网址|