Display default text on dropdown with default value
Hi,
I've created a drop down selection field in dialog and provided it some default value with property key defaultValue and assigned some value it which is getting displayed when I open the dialog box. What I want is to display some default text with the default value in interger format.
Requirement is, this is optional field in my dialog and when I create json for this page(created our own json generator), it displays in json like:
{ linktarget : "--Please select text--" }which I don't want. And, can't put check if this value(defaultValue) i.e if this comes, don't add in json object bcz if due to some reason name gets changed then again it'd be a java change which I can't afford. So, rather than that, if could provide defaultValue some interger(say, 0) which we'll remain same every time if no property get choosen, no matter what text we display.
Thanks,
Himanshu
