I have a problem with the bootstrap element of dateTimePicker in my xpage application, and I suspect this is due to the way xPages generates the control id.
The following code works fine without the identifier of the inputText element.
<script type="text/javascript" src="/fPath/jquery-min.js"></script>
<script type="text/javascript" src="/fPath/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/RfPath/bootstrap-datetimepicker-3.0.0/js/moment.min.js"></script>
<script type="text/javascript" src="/fPath/bootstrap-datetimepicker-3.0.0/js/bootstrap-datetimepicker.min.js"></script>
<div class='input-group date' data-datetimepicker="true">
<xp:inputText styleClass="form-control timePicker">
<xp:this.converter>
<xp:convertDateTime type="time" timeStyle="short" />
</xp:this.converter>
</xp:inputText>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
As soon as I add the identifier back, I get the following error when I press the / button outside the control:
Error: syntax error, unrecognized expression: unsupported pseudo: _id1
the id should display the data back to the document, but I do not use it to attach the datetimepicker. I use for this class:
$('.timePicker').each(function(i,el){SHARED.timePickerOpen(el)})
SHARED = {
timePickerOpen: function(el){
$(el).datetimepicker({
pickDate: false,
pickTime: true,
useCurrent: true,
minuteStepping:5
});
}
}
UPDATE # 1:
It seems that there is a bit of misunderstanding, so I will try to explain further ...
- When testing, I wrote the code in pure html, specifying the ID field and it works fine.
- xpage ( domino
) , .
- ID , get
datetimepicker .
, datetimepicker . , ( id), datetimepicker, , , . Datetimepicker - . , , , , , .