myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "from ADF to Trinidad" by MatthiasWessendorf
Date Thu, 17 Aug 2006 05:59:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by MatthiasWessendorf:
http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

------------------------------------------------------------------------------
  
  = 3.) Java files =
  
+ == API ==
+ 
+ If you use the ADF Faces API inside your Java files, for instance inside your backing beans,
you must change the package names and in some cases also the class names.
+ 
+ The formal ADF Faces API was:
+ {{{
+ oracle.adf.view.faces.**
+ }}}
+ 
+ Inside Trinidad it's changed to
+ {{{
+ org.apache.myfaces.trinidad.**
+ }}}
+ 
+ Here is a simple example for the new import of the 'Agent' interfaces.
+ 
+ Instead of
+ {{{
+ import oracle.adf.view.faces.context.Agent;
+ }}}
+ 
+ use
+ {{{
+ import org.apache.myfaces.trinidad.context.Agent;
+ }}}
+ 
+ Since some class names have been changed, here is a list of all classes from the ADF Faces
API,
+ which have been renamed during the move to Trinidad.
+ 
+ || '''''ADF Faces API''''' |||| '''''Apache Trinidad Podling API''''' ||
+ || !AdfFacesContext |||| !RequestContext ||
+ || !AdfFacesFiler |||| !TrinidadFilter ||
+ || ADFLogger |||| !TrinidadLogger ||
+ || ADF!LogRecord* |||| !TrinidadLogRecord*||
+ 
+ Here is a short example of howto use one of the renamed classes
+ {{{
+ RequestContext.getCurrentInstance().isPostback();
+ }}}
+ 
+ '''*''' !TrinidadLogRecord class is not a public class, it's only visible inside the ''org.apache.myfaces.trinidad.logging''
package.
+ 
+ == internal package ==
+ However there is also an ''adfinternal'' package, which has been changed to ''trinidadinternal''
+ 

Mime
View raw message