How to create watermark/placeholder effect for input component in ADF What is watermark behavior A watermark typically appears as light gray text within an input or textarea element whenever the element is empty and does not have focus. This provides a hint to the user as to what the input or textarea element is used for, or the type of input that is required. For example, a search input space sometimes appears at the top of the page, giving the user quick access to the search functionality. Oftentimes you will see the word "Search" in light gray text in that space, and when the user clicks into the entry space, the word disappears. That is an example of a watermark. How to implement 1) Create your tag library First step is to create tab lib in your project. Just select New à WebTier à JSP à JSP tag library · Select deployable or project based option · ...
In an enterprise application deployment scenario, there are many cases where some libraries are used/referenced by multiple applications. It would indeed be a bad design to include such common libraries with every application deployed on the WebLogic server. Not only does it prevent redundancy of resources on the server, it also consumes valuable space & deployment time - especially when the libraries are huge. WebLogic server offers the shared library concept using which EARs, JARs, EJBs and WARs can be shared across applications in a WebLogic domain. Let us now see how to package and deploy a shared library in WebLogic server; Step 1: Create a folder structure as shown below Step 2: Copy all the libraries (in this case JAR files) that you would want to share across applications to the lib folder under WEB_INF Step 3: Create a file under META_INF folder by name "MANIFEST.MF" Step 4: Contents of the MANIFEST.MF file are shown below Manifest-Version: 1....
Sometime we need to call Stored Procedure or Stored function in ADF application. Programmetic View objects are used for this. In this blog I will explain how to use Programmetic VO to call the Strored procedure and function. We need to override following methods of the ViewImpl class executeQueryForCollection() hasNextForCollection() createRowFromResultSet() releaseUserDataForCollection() Below are the detailed steps create VO as below 2. add the needed atributes 3. Override the above mentioned methods in VOImpl Class 4. Make sure all the attributes in VO are updatable 5. Atleast one attribute should be key attribute 6. I have created Employee VO as below Define the Stored Function in DB, CREATE OR REPLACE FUNCTION HR.FUNC_returnEmployee RETURN SYS_REFCURSOR AS REF_TEST SYS_REFCURSOR; BEGIN OPEN REF_TEST FOR SELECT employee_id,first_n...
Comments
Post a Comment