incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r483793 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
Date Fri, 08 Dec 2006 02:56:02 GMT
Author: awiner
Date: Thu Dec  7 18:55:58 2006
New Revision: 483793

URL: http://svn.apache.org/viewvc?view=rev&rev=483793
Log:
Improvements to CoreAdfRenderingContext to support subclassing, in particular overriding of
getAgent()

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java?view=diff&rev=483793&r1=483792&r2=483793
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderingContext.java
Thu Dec  7 18:55:58 2006
@@ -145,7 +145,7 @@
    */
   public TrinidadAgent getTrinidadAgent()
   {
-    return _agent;
+    return (TrinidadAgent) getAgent();
   }
 
   @Override
@@ -372,7 +372,7 @@
 
     // =-=jmw @todo when we have proper renderKitId switching, I can
     // get rid of this bit of code.
-    if (TrinidadAgent.TYPE_PDA == _agent.getAgentType())
+    if (TrinidadAgent.TYPE_PDA == getTrinidadAgent().getAgentType())
     {
       renderKitId = "org.apache.myfaces.trinidad.pda";
     }
@@ -558,8 +558,6 @@
   {
     _PRINTABLE_CAPABILITIES.put(TrinidadAgent.CAP_INTRINSIC_EVENTS,
                                 Boolean.FALSE);
-    _PRINTABLE_CAPABILITIES.put(TrinidadAgent.CAP_SCRIPTING_SPEED,
-                                TrinidadAgent.SCRIPTING_SPEED_CAP_NONE);
     _PRINTABLE_CAPABILITIES.put(TrinidadAgent.CAP_SCRIPTING_SPEED,
                                 TrinidadAgent.SCRIPTING_SPEED_CAP_NONE);
     _PRINTABLE_CAPABILITIES.put(TrinidadAgent.CAP_NAVIGATION,



Mime
View raw message