mardi 2 avril 2019

How should I initialize f:selectOneRadioButton component?

I think this is low hanging fruit, but my coworkers and I have discussions daily of things such as this.

So I have multiple radio buttons on my view, around 10...

Should I initialize the radio button labels and values as a Map in the constructor directly, create an encapsulating method and call it from the constructor, build the list in the static initialization block, or should I hard code it in the view? There are many ways to accomplish the goal but I don’t know what is best practice

Aucun commentaire:

Enregistrer un commentaire