代码如下:
page_en.utf8.properties:
text=This is a ${testLink} link.
linkText=sample
page.java:
add(new BookmarkablePageLink<Void>("testLink");
page.html中:
<div>
<wicket:msg key="text">
<a wicket:id="testLink" href="#">
<wicket:msg key="linkText"></wicket:msg>
</a>
</wicket:msg>
</div>
输出:
<div>
This is a
<a href="#">
<br />
sample
<br />
</a>
link.
</div>
如何删除自动生成的br标签?
答案 0 :(得分:0)