同じドメインの複数の属性に対して定義されたデフォルトのフィールド・レンダラを上書きします。
<jbo:SetDomainRenderer
domain="class name of the domain"
classname="class name of the field renderer"
fieldtype="Display | Edit"
scope="Page | Request | Session | Application"
/>
指定されたドメイン型のすべての属性に対して既存のレンダラを上書きするには、<jbo:SetDomainRenderer>
タグを使用します。WebアプリケーションのJSPページでは、ドメイン・レンダラによって、ドメインの属性の編集または表示方法が決定します。 <jbo:SetDomainRenderer>
タグのscope
属性を使用すると、Webアプリケーションでのドメイン・レンダラの有効範囲を制御できます。 特定の属性に対してレンダラを指定する場合の詳細は、<jbo:SetFieldRenderer>
タグを参照してください。
次の例では、デフォルトのテキスト・フィールドのかわりにTextAreaフィールドを使用して、String型のすべてのフィールドをレンダリングします。
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %> <jbo:ApplicationModule id="am" configname="mypackage.MypackageModule.MypackageModuleLocal" releasemode="Stateless" /> <jbo:DataSource id="ds" appid="am" viewobject="EmpView" /> <%-- Use a TextArea field instead of a the default text field for all fields of type String --%> <jbo:SetDomainRenderer classname="oracle.jdeveloper.html.TextArea" domain="java.lang.String" fieldtype="Edit" scope="session" /> <%-- Ename and Job are String, they use TextArea Salary is a Number, it use the default Input Text--%> <form name="test" action="formSubmit.jsp" method="post"> Name: <jbo:InputRender datasource="ds" dataitem="Ename" formname="test" /><br> Job: <jbo:InputRender datasource="ds" dataitem="Job" formname="test" /><br> Salary: <jbo:InputRender datasource="ds" dataitem="Sal" formname="test" /><br> <input type="submit" value="Update"> </form> <jbo:ReleasePageResources /
Copyright © 1997, 2004, Oracle. All rights reserved.