Thanks for those links, Geoff. Actually, I'm more interested in your
Grid example where you provide this component with an encoder.
http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridwithdeletecolumn1
When I try to do likewise, my IDE complains: "Attribute t:encoder is not
allowed here". Not sure whether this is related to the problem in any
way.
As I understand it, I shouldn't be needing to explicitly provide an
encoder. The objects being sent to Grid's source and row parameters are
Hibernate entities, and the tapestry-hibernate module normally
automatically generates ValueEncoders for Hibernate registered entities.
So the exception below has me a little puzzled.
"Render queue error in BeginRender[vessel/Read:grid.rows]: Failure
writing parameter 'row' of component vessel/Read:grid.rows: Failure
writing parameter 'row' of component vessel/Read:grid: Could not find a
coercion from type [Ljava.lang.Object; to type
com.optomus.harbour.entities.Crewman."
In case it matters, all Hibernate entities have a default constructor
(thank you, Volker).
Partial stack trace:
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl
findOrCreateCoercion() TypeCoercerImpl.java 335
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion
getCoercion() TypeCoercerImpl.java 87
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion
coerce() TypeCoercerImpl.java 65
org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl
coerce() TypeCoercerImpl.java 148
org.apache.tapestry5.internal.transform.ParameterWorker$3$1
writeToBinding() ParameterWorker.java 296
org.apache.tapestry5.internal.transform.ParameterWorker$3$1
set() ParameterWorker.java 245
org.apache.tapestry5.corelib.components.Grid setRow() Grid.java
688
org.apache.tapestry5.internal.bindings.PropBinding
set() PropBinding.java 76
org.apache.tapestry5.internal.transform.ParameterWorker$3$1
writeToBinding() ParameterWorker.java 298
org.apache.tapestry5.internal.transform.ParameterWorker$3$1
set() ParameterWorker.java 245
org.apache.tapestry5.corelib.components.GridRows
setupForRow() GridRows.java 299
org.apache.tapestry5.corelib.components.GridRows
beginRender() GridRows.java 320
org.apache.tapestry5.corelib.components.GridRows
beginRender() GridRows.java
Regards,
Chris.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org