I a div popup where there is an input field
<apex:inputfield id="CommentDate" value="{!AModel.dateTimeofComment}"/>
<apex:commandButton action="{!AModel.saveComment}" value="Save" id="saveButton"/>
<input type="submit" value="Cancel" class="btn" onclick="window.reload(); return false;" />
Here what I want is to pass the value of dateTimeofComment to the controller on savebutton click, without binding the value to any object. I tried using a getter setter global valiable, but that is not working either. Any help would be appreciated.