This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var problemCount = [[${tawDto.problemCount}]]; | |
var warningCount = [[${tawDto.warningCount}]]; | |
var notReviewCount = [[${tawDto.notReviewCount}]]; | |
$(document).ready(function() { | |
var browsersChart = Morris.Donut({ | |
element: 'donut-example', | |
data: [ | |
{label: "Problem", value: problemCount}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://datatables.net/extensions/buttons/examples/html5/excelAutoFilter.html */ | |
... | |
$(document).ready( function() { | |
$('#example').DataTable( { | |
dom: 'Bfrtip', | |
buttons: [ { | |
extend: 'excelHtml5', | |
autoFilter: true, | |
sheetName: 'Exported data' | |
} ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
/*https://stackoverflow.com/questions/15131582/jsf-file-download-doesnt-work*/ | |
<h:commandButton value="download" action="#{myBean.download()}" /> | |
<f:ajax disabled="true"/> | |
</h:commandButton> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340 --> | |
<properties> | |
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> | |
</properties> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext(); | |
HttpServletResponse response = (HttpServletResponse) ectx.getResponse(); | |
OutputStream out = response.getOutputStream(); | |
response.setContentType("application/vnd.ms-excel"); | |
String filename = "Failed_Users_"+ dateFormat.format(date).toString() + ".xls"; | |
String attachmentName = "attachment; filename=\"" + filename + "\""; | |
response.setHeader("Content-disposition", attachmentName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false"> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.table').dataTable({ | |
bAutoWidth: false, | |
aoColumns : [ | |
{ sWidth: '15%' }, | |
{ sWidth: '15%' }, | |
{ sWidth: '15%' }, | |
{ sWidth: '15%' }, | |
{ sWidth: '15%' }, | |
{ sWidth: '15%' }, | |
{ sWidth: '10%' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The : is a special character in CSS identifiers, | |
it represents the start of a pseudo class selector like :hover, :first-child, etc. You would need to escape it. | |
*/ | |
#phoneForm\:phoneTable { | |
background: pink; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<context-param> | |
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name> | |
<param-value>true</param-value> | |
</context-param> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#theField').on('keypress input', function() { | |
var value = $(this).val(); | |
value = value.replace(/\D+/, ''); // removes any non-number char | |
$(this).val(value); | |
}) |