Monday 31 March 2014

Oracle ADF : Avoid "fetching data" on af:table



Avoid "fetching data" on af:table?
 
Managed You may find this scenario with af:table. If any action will be causing partial update on this table and because of this update table is rerendering with intermediate screen of “fetching data”, or in other words you can say flickering of table. To avoid this behavior use contentDelivery="immediate" attribute of table.

More detailed discussion can be found : https://community.oracle.com/message/4034492

Thursday 20 March 2014

Oracle ADF : Email Validation




Email Validation
 
It can be achieved by two ways –
 
1.Clien side validation- This can be achieved by using af:validateRegExp inside af:inputText
 
<af:inputText id=”it1” label=”Email”>
<af:validateRegExp pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"/>
</af:inputText>
 
2.Server side validation – For this we need to write a custom validator method in managed bean and give its reference to validator attribute of inputText.
This can be found on :
http://oracleadf-java.blogspot.in/2012/11/custom-validator-in-oracle-adf-jsf_20.html

Oracle ADF : How to Convert Sys Date to Jbo.DomainDate ?



How to Convert Sys Date to Jbo.DomainDate ?
 
For this first we need to convert current date (java.util.Date) to sql date (java.sql.Date) and
then convert sql date to jbo date (oracle.jbo.domai.Date). Following is code
 
 
 

Oracle ADF : How to convert Input text to Upper Case ?



How to convert Input text to Upper Case ?
 
This can be done by using contentStyle property of af:inputtext or using javascript. 
The same can be seen on following link
 
http://adfgouravtkiet.blogspot.in/2012/07/convert-afinputtext-to-uppercase.html
 

Oracle ADF : How to create / recreate Jdeveloper domain?



How to create / recreate Jdeveloper domain ?
 
1.By default when we start weblogic server first time its domain(system folder) is created 
at location “%USERPROFILE%\Application Data\JDeveloper”.
 
2.If we want to recreate it we need to delete it and start weblogic server again it will create 
a new system folder
 
3.If we do not want to create system folder at default location then we need to add an environment 
variable “JDEV_USER_HOME” and give desired path as value like following –
 
  
 


4.After this on start of server it will create new system folder on specified path