You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Brian Long <br...@gmail.com> on 2005/12/22 18:22:36 UTC
DirectArea in 4.0
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org