You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ha...@apache.org on 2004/02/17 16:03:20 UTC
cvs commit: jakarta-tapestry/framework/src/org/apache/tapestry/binding ExpressionBinding.java
harishkswamy 2004/02/17 07:03:20
Modified: framework/src/org/apache/tapestry/binding
ExpressionBinding.java
Log:
Changed formatting to conform to Tapestry style.
Revision Changes Path
1.11 +12 -12 jakarta-tapestry/framework/src/org/apache/tapestry/binding/ExpressionBinding.java
Index: ExpressionBinding.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/binding/ExpressionBinding.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ExpressionBinding.java 19 Jan 2004 21:32:12 -0000 1.10
+++ ExpressionBinding.java 17 Feb 2004 15:03:20 -0000 1.11
@@ -265,19 +265,19 @@
private Map getOgnlContext()
{
- if (_context == null) {
+ if (_context == null)
_context = Ognl.createDefaultContext(_root, _resolver);
- }
- if (_root.getPage() != null) {
- if (_root.getPage().getEngine() != null) {
- IApplicationSpecification appSpec =
- _root.getPage().getEngine().getSpecification();
- if (appSpec != null && appSpec.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)) {
- TypeConverter typeConverter =
- (TypeConverter) appSpec.getExtension(
- Tapestry.OGNL_TYPE_CONVERTER,
- TypeConverter.class);
+ if (_root.getPage() != null)
+ {
+ if (_root.getPage().getEngine() != null)
+ {
+ IApplicationSpecification appSpec = _root.getPage().getEngine().getSpecification();
+
+ if (appSpec != null && appSpec.checkExtension(Tapestry.OGNL_TYPE_CONVERTER))
+ {
+ TypeConverter typeConverter = (TypeConverter) appSpec.getExtension(
+ Tapestry.OGNL_TYPE_CONVERTER, TypeConverter.class);
Ognl.setTypeConverter(_context, typeConverter);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org