I took it out when doing my side-project testing.
The findAll() works without a ValueEncoder, yet the other query does not.
Here is a ValueEncoder I have used but no luck.
Why does findAll() work without a value encoder and the other one doesn't?
This part seems irregular.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.opencsta.eventviewer.encoders;
import javax.ejb.EJB;
import org.apache.tapestry5.ValueEncoder;
import org.apache.tapestry5.services.ValueEncoderFactory;
import
org.opencsta.ctiserver.library.asterisk.managerevents.model.LibraryQueueMemberEvent;
import
org.opencsta.ctiserver.library.asterisk.managerevents.session.LibraryQueueMemberEventFacadeLocal;
/**
*
* @author chrismylonas
*/
public class LibraryQueueMemberEventEncoder implements
ValueEncoder<LibraryQueueMemberEvent>,
ValueEncoderFactory<LibraryQueueMemberEvent> {
private LibraryQueueMemberEventFacadeLocal _libraryQueueMemberService;
public LibraryQueueMemberEventEncoder(LibraryQueueMemberEventFacadeLocal
qmService) {
this._libraryQueueMemberService = qmService;
}
@Override
public String toClient(LibraryQueueMemberEvent v) {
return String.valueOf(v.getId());
}
@Override
public LibraryQueueMemberEvent toValue(String id) {
return _libraryQueueMemberService.find(Long.valueOf(id));
}
@Override
public ValueEncoder<LibraryQueueMemberEvent>
create(Class<LibraryQueueMemberEvent> type) {
;//
}
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/3-days-of-ValueEncoder-ing-no-coercion-found-tp5720109p5720135.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org