Re: T5: Issues contributing a coercion?

2007-10-30 Thread Andy Huhn
Thanks again, Howard!

On Mon, 2007-10-29 at 19:32 -0700, Howard Lewis Ship wrote:
> Create an interface for your page, make sure the interface is not in
> the .pages. package, have the page implement the interface, do the
> coversion in terms of the interface.
> 
> It's tricky class loader issues, the EditPgaeModelImpl class known to
> your services layer is literally not the same class as the one
> Tapestry uses to instantiate your page (once it gets down rewriting it
> to fit in with Tapestry's runtime model).
> 
> On 10/29/07, Andy Huhn <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm attempting to contribute a coercion.  This is the first time I've
> > attempted to , so I could be missing something obvious...but the error
> > message I receive makes me think there's something else going on.
> >
> > As you can see below, I'm attempting to coerce from
> > com.homeed.pages.EditPageModelImpl to com.homeed.pages.PageModel.  It
> > says that coercion isn't available...however, look halfway through the
> > available list...this very coercion is listed!
> >
> > Am I missing something obvious?
> >
> > Thanks,
> > Andy
> >
> > Failure reading parameter pageModel of component account/Edit:layout:
> > Could not find a coercion from type com.homeed.pages.EditPageModelImpl
> > to type com.homeed.pages.PageModel. Available coercions: Double -->
> > Float, Float --> Double, Long --> Boolean, Long --> Byte, Long -->
> > Double, Long --> Integer, Long --> Short, Number --> Long, Object -->
> > String, Object --> java.util.List, Object[] --> java.util.List, String
> > --> Boolean, String --> Double, String --> Long, String -->
> > java.io.File, String --> java.math.BigDecimal, String -->
> > java.math.BigInteger, String --> java.util.regex.Pattern, String -->
> > org.apache.tapestry.SelectModel, String -->
> > org.apache.tapestry.corelib.data.GridPagerPosition, boolean[] -->
> > java.util.List, byte[] --> java.util.List, char[] --> java.util.List,
> > com.homeed.pages.EditPageModelImpl --> com.homeed.pages.PageModel,
> > double[] --> java.util.List, float[] --> java.util.List, int[] -->
> > java.util.List, java.math.BigDecimal --> Double, java.util.Collection
> > --> Boolean, java.util.List --> org.apache.tapestry.SelectModel,
> > java.util.List --> org.apache.tapestry.grid.GridDataSource,
> > java.util.Map --> org.apache.tapestry.SelectModel, long[] -->
> > java.util.List, null --> Boolean, null --> Double, null --> Long, null
> > --> String, null --> java.math.BigDecimal, null -->
> > java.math.BigInteger, null --> java.util.List, null -->
> > org.apache.tapestry.grid.GridDataSource,
> > org.apache.tapestry.runtime.ComponentResourcesAware -->
> > org.apache.tapestry.ComponentResources, short[] --> java.util.List.
> >
> >
> > -
> > 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]



Re: T5: Issues contributing a coercion?

2007-10-29 Thread Howard Lewis Ship
Create an interface for your page, make sure the interface is not in
the .pages. package, have the page implement the interface, do the
coversion in terms of the interface.

It's tricky class loader issues, the EditPgaeModelImpl class known to
your services layer is literally not the same class as the one
Tapestry uses to instantiate your page (once it gets down rewriting it
to fit in with Tapestry's runtime model).

On 10/29/07, Andy Huhn <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm attempting to contribute a coercion.  This is the first time I've
> attempted to , so I could be missing something obvious...but the error
> message I receive makes me think there's something else going on.
>
> As you can see below, I'm attempting to coerce from
> com.homeed.pages.EditPageModelImpl to com.homeed.pages.PageModel.  It
> says that coercion isn't available...however, look halfway through the
> available list...this very coercion is listed!
>
> Am I missing something obvious?
>
> Thanks,
> Andy
>
> Failure reading parameter pageModel of component account/Edit:layout:
> Could not find a coercion from type com.homeed.pages.EditPageModelImpl
> to type com.homeed.pages.PageModel. Available coercions: Double -->
> Float, Float --> Double, Long --> Boolean, Long --> Byte, Long -->
> Double, Long --> Integer, Long --> Short, Number --> Long, Object -->
> String, Object --> java.util.List, Object[] --> java.util.List, String
> --> Boolean, String --> Double, String --> Long, String -->
> java.io.File, String --> java.math.BigDecimal, String -->
> java.math.BigInteger, String --> java.util.regex.Pattern, String -->
> org.apache.tapestry.SelectModel, String -->
> org.apache.tapestry.corelib.data.GridPagerPosition, boolean[] -->
> java.util.List, byte[] --> java.util.List, char[] --> java.util.List,
> com.homeed.pages.EditPageModelImpl --> com.homeed.pages.PageModel,
> double[] --> java.util.List, float[] --> java.util.List, int[] -->
> java.util.List, java.math.BigDecimal --> Double, java.util.Collection
> --> Boolean, java.util.List --> org.apache.tapestry.SelectModel,
> java.util.List --> org.apache.tapestry.grid.GridDataSource,
> java.util.Map --> org.apache.tapestry.SelectModel, long[] -->
> java.util.List, null --> Boolean, null --> Double, null --> Long, null
> --> String, null --> java.math.BigDecimal, null -->
> java.math.BigInteger, null --> java.util.List, null -->
> org.apache.tapestry.grid.GridDataSource,
> org.apache.tapestry.runtime.ComponentResourcesAware -->
> org.apache.tapestry.ComponentResources, short[] --> java.util.List.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

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



T5: Issues contributing a coercion?

2007-10-29 Thread Andy Huhn
Hello,

I'm attempting to contribute a coercion.  This is the first time I've
attempted to , so I could be missing something obvious...but the error
message I receive makes me think there's something else going on.

As you can see below, I'm attempting to coerce from
com.homeed.pages.EditPageModelImpl to com.homeed.pages.PageModel.  It
says that coercion isn't available...however, look halfway through the
available list...this very coercion is listed!

Am I missing something obvious?

Thanks,
Andy

Failure reading parameter pageModel of component account/Edit:layout:
Could not find a coercion from type com.homeed.pages.EditPageModelImpl
to type com.homeed.pages.PageModel. Available coercions: Double -->
Float, Float --> Double, Long --> Boolean, Long --> Byte, Long -->
Double, Long --> Integer, Long --> Short, Number --> Long, Object -->
String, Object --> java.util.List, Object[] --> java.util.List, String
--> Boolean, String --> Double, String --> Long, String -->
java.io.File, String --> java.math.BigDecimal, String -->
java.math.BigInteger, String --> java.util.regex.Pattern, String -->
org.apache.tapestry.SelectModel, String -->
org.apache.tapestry.corelib.data.GridPagerPosition, boolean[] -->
java.util.List, byte[] --> java.util.List, char[] --> java.util.List,
com.homeed.pages.EditPageModelImpl --> com.homeed.pages.PageModel,
double[] --> java.util.List, float[] --> java.util.List, int[] -->
java.util.List, java.math.BigDecimal --> Double, java.util.Collection
--> Boolean, java.util.List --> org.apache.tapestry.SelectModel,
java.util.List --> org.apache.tapestry.grid.GridDataSource,
java.util.Map --> org.apache.tapestry.SelectModel, long[] -->
java.util.List, null --> Boolean, null --> Double, null --> Long, null
--> String, null --> java.math.BigDecimal, null -->
java.math.BigInteger, null --> java.util.List, null -->
org.apache.tapestry.grid.GridDataSource,
org.apache.tapestry.runtime.ComponentResourcesAware -->
org.apache.tapestry.ComponentResources, short[] --> java.util.List.


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