Solved
How to limit the tags widget selecting a single value?
We want the user only select one tag from the tags widget, how to config that?
thx
We want the user only select one tag from the tags widget, how to config that?
thx
Well I think in this case, what you would do is just to see if there is any tags added at all and the just pick the first one from the array:
String[] tags = this.properties.get(TAGS_PROPERTY_NAME, new String[0]); String tag= ""; if(tags.length == 0){ //no tags have been added ! }else{ tag = tags[0]; } //Do something nice with your tagEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.