In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Oracle ADF Faces(adfFaces) provides rich UI components that simplify your web application development. You can understand the use of adfFaces by studying sample code, the sample code package.
adfFaces defines an API and a basic set of tags to build a web-based user interface, which is based on the JSF framework and extends UI components. This article shows how to use the UI components provided by adfFaces in an existing JSF application.
First, to run the sample code, the minimum environment requirements are J2SE 1.4, Servlet 2.3, JSP 1.2, JSF 1.1, ADF Faces EA13,JSTL 1.0, JDBC-enabled database, or Oracle Toplink.
This article will build on the example described in another article, replacing JSF interfaces with adfFaces for data access. See link for previous examples.
Similar to JSF,adfFaces provides an open API for your Java classes and two JSP tag libraries (HTML & CORE) for pages. In addition,adfFaces also includes a set of resources (images,js,css) for internal use by UI components.
Download the resource package, copy adf-faces-api-ea13.jar, adf-faces-impl-ea13.jar and share-1_1_18.jar into your web project lib library (usually WEB-INF\lib\), unzip adf-faces-install-ea13.zip(including images,js and css) into your web application directory.
Configuration of server-side web.xml:
FacesServlet javax.faces.webapp.FacesServlet 1 FacesServlet /faces/* FacesServlet *.faces... AdfFacesFilter oracle.adf.view.faces.webapp.AdfFacesFilter AdfFacesFilter FacesServlet
Create adf-faces-config.xml, specify additional parameters in this descriptor
true #{prefs.proxy.accessibilityMode} #{prefs.proxy.lookAndFeel}
Follow these steps to modify your existing jsp page
1. Import adfFaces tag library
a) The core library contains UI components, buttons, input boxes, lists, menus, tables, trees, panels, etc.
b) HTML library contains HTML element tags
2. HTML tags using adfFaces, and
...
3. Renaming old jsf tags and attributes
adfFaces provides a set of tags similar to standard jsf, and extends a number of additional tags for use. The two can be mixed, but it is recommended to use the same tags for uniform code style, such as JSF below.
can be converted into
Among them, through the setting of the attributes rows and secret, it can be used to display single lines, multiple lines, and password input.
Use the adfFaces panel tab, which can be used to quickly implement a variety of panel combinations, not detailed here.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.