Re: HTML5 and Bootstrap Input placeholder tag

2016-05-06 Thread Martin Grigorov
On May 6, 2016 9:05 PM, "David Beer" wrote: > > Hi Guys > > I am trying to utilise the placeholder tag in input components. So say I > have a TextField that mapps to the html placeholder="Enter Name">. How can I get wicket to add the placeholder tag > so that I can

RE: HTML5 and Bootstrap Input placeholder tag

2016-05-06 Thread Ricardo Roman Rodriguez SaldaƱa
Hi David, the most straightforward way i can think of is using a StringResourceModel in conjuntion with a AttributeModifier heres a basic example: //inside your page or panel:TextField myField = new TextField("myField")IModel mPlaceHolder = new StringResourceModel("myField.placeholder",this,

HTML5 and Bootstrap Input placeholder tag

2016-05-06 Thread David Beer
Hi Guys I am trying to utilise the placeholder tag in input components. So say I have a TextField that mapps to the html . How can I get wicket to add the placeholder tag so that I can populate via properties. Thanks David