Even if you supply a ValueEncode you might run into a bug in T5.0.5.
https://issues.apache.org/jira/browse/TAPESTRY-1597
(This was just fixed in SVN.)

Anyway, your first stop for questions like this should be:
http://wiki.apache.org/tapestry/Tapestry5HowTos

Cheers,
Nick.


Joshua Jackson wrote:
Dear all,

I had a problem using the Select component.

I have a List of Members that I want to populate into the Select component.

Here is my html template:
<select t:type="Select" model="members" value="member"></select>

And here's my Page class:
@Inject @Parameter Member member;
private List<Member> members;

But I get this exception:
No adapter from type com.taxandtech.projexion.entities.Member to type
org.apache.tapestry.services.ValueEncoderFactory is available
(registered types are java.lang.Enum, java.lang.String).

I've tried adding a ValueEncoder, although it hasn't worked yet but it
seems to be a long way to register the Member entity to the value
encoder. Is there an easier way to use the Select component?

Thanks in advance.

:)


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

Reply via email to