I was hoping to see quickstart .... :) So I have created one for you: https://github.com/solomax/label-with-image It seems to work as expected Please check it and compare with your code
On Wed, Oct 25, 2017 at 10:30 AM, kyc <brend...@hku.hk> wrote: > The following is sample code to repeat the problem. > > HTML: > <html xmlns:wicket="http://wicket.apache.org/"> > <wicket:extend> > > </wicket:extend> > </html> > > JAVA: > public ShowLabelPage() { > super(); > > String htmlWithImgTag = "some text at the beginning > <\"images/icon/add.gif\"> something text at the end" ; > add(new Label("message", htmlWithImgTag). > setEscapeModelStrings(false)); > } > > URL to load the page > http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_ > mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCAT > vhmaI-sJ571s/Vl64f/l6T59 > > <http://apache-wicket.1842946.n4.nabble.com/file/t375782/ > Screenshot_-_10_25_2017_%2C_11_23_28_AM.png> > > There are images under > WebContent/images/icon/add.gif > > > > > > > > > > > > > > -- > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- WBR Maxim aka solomax