Hi,

 I am trying to get the DatePicker class from the
tapestry5-jscalendar package [1] to work with the latest 5.0.5
snapshot. The code did not compile initially since there were
@Inject annotations like this one:

| @Inject("${net.keso.ted.jscalendarscript}/button-image.png")
| private Asset defaultButtonImage;

I modified these like this:

| @Inject
| @Value("${net.keso.ted.jscalendarscript}/button-image.png")
| private Asset defaultButtonImage;

Now the code compiled.

However when trying to use the DatePicker in a page I now
get this error:

#  java.lang.ClassNotFoundException
caught an exception while obtaining a class file for 
net.keso.ted.jscalendar.components.DatePicker

exception
    org.apache.tapestry.internal.services.TransformationException: Error 
obtaining injected value for field 
net.keso.ted.jscalendar.components.DatePicker.defaultButtonImage: Could not 
find a coercion
from type java.lang.String to type org.apache.tapestry.Asset. 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.math.BigDecimal, String -->
java.math.BigInteger, String --> org.apache.tapestry.SelectModel, String --> 
org.apache.tapestry.corelib.data.GridPagerPosition, java.math.BigDecimal --> 
Double, java.util.Collection --> Boolean,
java.util.List --> java.util.Set, java.util.List --> 
org.apache.tapestry.SelectModel, java.util.List --> 
org.apache.tapestry.grid.GridDataSource, java.util.Map --> 
org.apache.tapestry.SelectModel,
java.util.Set --> java.util.List, null --> Boolean, null --> String, null --> 
java.util.List, null --> org.apache.tapestry.grid.GridDataSource. 

Are there any API changes from 5.0.3 to 5.0.5 that could have
caused this problem, or does anyone know what to do here?

Cheers,

Martin

[1] http://tapestry5-jscalendar.googlecode.com/svn/trunk/

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
Aber zur rechten Zeit noch ergriff mich beim Fuss der Kapitaen. Er zog mich 
vom Schiffsrand und rief, aergerlich lachend: Doktor, sind Sie des Teufels?

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

Reply via email to