Another interesting piece of code with this Scala DSL

    // gender radio button
    val gender = radioGroup[String]("gender")
    gender.radio("male", Model.of("Male"))
    gender.radio("female", Model.of("Female"))
    gender.setRequired(true)

The HTML:

<div wicket:id="sexo">
<span>
<input wicket:id="male" id="male" class="field radio" type="radio" />
<label class="choice" for="male">Masculino</label>
</span>

<span>
<input wicket:id="female" id="female" class="field radio" type="radio" />
<label class="choice" for="female">Female</label>
</span>
</div>

This way, the HTMLis exactly the way the designer sent it to me.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099

Reply via email to