I haven't had any problems navigating relationships in T5. But then again, I
avoided the issue with the grid by collecting the properties I needed from
the related objects and put them into one specifically tailored for the
grid.

If you don't need that relation, you could manually create the bean model,
and the remove the offending relation:

_beanModel.remove("OffendingProperty");

Actually, I think it takes an array of property names.

You might also try changing the data type so it doesn't look like a
hibernate proxy:

_beanModel.get("OffendingProperty").dataType("DataType");

But I haven't looked into what the options are there.

I would be interested to hear back about what you do and find.


Jonathan


> -----Original Message-----
> From: Andres Alvarez [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 06, 2007 11:03 PM
> To: 'Tapestry users'
> Subject: [T5] Grid component failure with hibernate objects
> 
> Hi all,
> 
> I'm trying to display an object retrieved from hibernate, it has just one
> relation to other object.
> 
> When I try to render the page I get:
> 
> 2007-08-05 15:58:40,843 [http-8080-Processor25] ERROR
> org.apache.tapestry.internal.services.InternalModule.RequestExceptionHandl
> er
> - Processing of request failed with uncaught exception: (class:
> $PropertyConduit_11438092bfd, method: set signature:
> (Ljava/lang/Object;Ljava/lang/Object;)V) Incompatible object argument for
> function call
> java.lang.VerifyError: (class: $PropertyConduit_11438092bfd, method: set
> signature: (Ljava/lang/Object;Ljava/lang/Object;)V) Incompatible object
> argument for function call
>       at java.lang.Class.getDeclaredConstructors0(Native Method)
>       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
>       at java.lang.Class.getConstructors(Class.java:1446)
>       at
> org.apache.tapestry.internal.services.PropertyConduitSourceImpl.build(Prop
> er
> tyConduitSourceImpl.java:166)
>       at
> org.apache.tapestry.internal.services.PropertyConduitSourceImpl.create(Pro
> pe
> rtyConduitSourceImpl.java:79)
> 
> 
> I'm starting to guess that I need to pass a bean with no other objects
> related, Am I right?
> 
> Has anyone experience on this?
> 
> Thanks,
> 
> 
> Ing. Carlos Andrés Alvarez Vázquez
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to