Wednesday, October 29, 2008

Tapestry5 Page ActionLink 拼装过程

Page.createActionLink ->
LinkFactory.createActionLink ->
InvocationTarget.getPath ->
Link

其中在InvocationTarget的实现类ActionLinkTarget.getPath方法内实际拼装path,path中包括page, component, event等,如test.username:autocomplete。在LinkFactory中调用Link.addParameter方法将page activation context追加到link中。

No comments :