You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2007/09/10 07:48:14 UTC
svn commit: r574140 - in
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry:
corelib/components/GridCell.java services/PropertyDisplayContext.java
Author: hlship
Date: Sun Sep 9 22:48:14 2007
New Revision: 574140
URL: http://svn.apache.org/viewvc?rev=574140&view=rev
Log:
TAPESTRY-1633: PropertyDisplayContext should expose the id/propertyName of the currently rendering property
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/GridCell.java
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/PropertyDisplayContext.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/GridCell.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/GridCell.java?rev=574140&r1=574139&r2=574140&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/GridCell.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/GridCell.java Sun Sep 9 22:48:14 2007
@@ -81,6 +81,14 @@
{
return readPropertyForRow();
}
+
+ public String getPropertyId() {
+ return _model.getId();
+ }
+
+ public String getPropertyName() {
+ return _model.getPropertyName();
+ }
};
_environment.push(PropertyDisplayContext.class, context);
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/PropertyDisplayContext.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/PropertyDisplayContext.java?rev=574140&r1=574139&r2=574140&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/PropertyDisplayContext.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/PropertyDisplayContext.java Sun Sep 9 22:48:14 2007
@@ -35,4 +35,13 @@
* the container of the {@link Grid} component.
*/
Messages getContainerMessages();
+
+ /**
+ * Returns a string that identifies the property, usually the property name. This is used as the
+ * basis for the client-side client id.
+ */
+ String getPropertyId();
+
+ /** Returns the name of the property (which may, in fact, be a property expression). */
+ String getPropertyName();
}