Domino JSP Tags -deletedoc

来源:互联网 发布:台湾类似淘宝的网站 编辑:程序博客网 时间:2024/05/01 06:05

    在页面上产生一个链接,用于删除当前文档,并且显示下一个文档当表单上定义了"nextdoc"标签时。如果没有"nextdoc"标签或者在定义的视图中没有剩余文档时,页面将转向用"validhref"定义的地址。如果没有"validhref"属性定义支持,the page specified in the validhref attribute for the form containing this tag displays instead. -此句不会翻译。
    JSP tags不支持软删除。如果当前用户没有权限删除文档,这个标签将无效。
注释:当用户点击这个标签产生的HTML文字链接时,页面将会重新载入。如果你想保留传入页面的一些参数。你必须使用"preserve tag"标签为每一个你想保存的参数,否则当页面重载时,参数将会丢失。
注释:如果包含这个标签的页面被其它页面用<jsp:include>标签包含时,validhref属性将会无效。

标签详解:
   必须在form标签中使用:<domino:form><domino:deletedoc></domino:deletedoc></domino:form>
 语法:
   <domino:deletedoc
   text="button label"
showdisabled="true|false"
validhref="link to go to"
debug="true|false"
onfailure="inline|exception"
time="true|false"
The standard HTML tag attributes listed below>
Attributes
The following attributes are optional:
text
Text for button label. If not specified, displays the body of the tag as a label. If no body exists, defaults to the text Delete. To localize the text, supply replacement arguments using the (1)msg tag in the body of the deletedoc tag.
showdisabled
Indicates whether or not the link should be generated if the current document has not been saved yet. If you want to display the link using an icon, include an HTML <img> tag referencing an image file in the body of the tag. Include a disabled image using the (2)docnavimg tag. Default is false.
validhref
Overrides the validhref attribute of the form tag to indicate where the request should be redirected to as the current document is deleted. 

原创粉丝点击