I'm using the custom component DirectArea that HLS described in
Tapestry in Action. The problem is that after migrating to 4.0 the
renderComponent method is using deprecated/changed methods
3.0
public void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
if (cycle.isRewinding())
return;
Object[] parameters =
DirectLink.constructServiceParameters(getParameters());
IEngineService service =
cycle.getEngine().getService(Tapestry.DIRECT_SERVICE);
ILink link = service.getLink(cycle,this,parameters);
writer.beginEmpty("area");
writer.attribute("href",link.getURL());
renderInformalParameters(writer,cycle);
}
4.0
getEngine() from IEngine deprecated (service to be injected from somewhere?)
getLink() from IEngineService now takes only two arguments a boolean
and an Object?
If anyone has already updated their DirectArea component to 4.0 could
they please let me know what the changes are?
/Brian.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]