Posts by Edson Cezar • 457 points
33 posts
-
0
votes2
answers678
viewsA: Convert an excel file (xls, xlsx) to PDF
After many tests, I was able to convince them that the first solution I used was correct: import java.io.FileInputStream; import java.io.*; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import…
-
0
votes2
answers678
viewsQ: Convert an excel file (xls, xlsx) to PDF
I have to convert an excel file (xls, xlsx) to PDF, however I am looking for a better way, however I am not sure if the following example is the best for me:…
-
0
votes0
answers2096
viewsQ: Upgrading Angular CLI to the latest version?
I started a new angular design, it works well for me when I use: npm start However, I’m trying to use ng serve So I tried that: npm uninstall --save-dev angular-cli npm install --save-dev…
-
1
votes1
answer653
viewsA: Block special characters in <input matInput
I found a solution: <input keypress="return String.fromCharCode(event.charCode).match(/[^a-zA-Z0-9]/g) === null"> ANSWER HERE…
-
1
votes1
answer653
viewsQ: Block special characters in <input matInput
How do I block special characters in: I tried this way, but it didn’t really work: Pattern=" [a-za-Z0-9]+$" Does anyone have any idea? Thanks in advance !
-
1
votes1
answer549
viewsA: SSLC0008E: Unable to initialize SSL Connection Websphere 8 error
The problem was the version of JDK, was using the 8, I had to go back to the same version 7, thus changing the eclipse.ini file.: -vm /Program Files/Java/jre1.7.0_80/bin/javaw.exe -startup…
-
0
votes1
answer549
viewsQ: SSLC0008E: Unable to initialize SSL Connection Websphere 8 error
I’m with the following error when I was climbing an application using WAS 8.0 and Eclipse Mars, I searched a lot of things on the internet, but I couldn’t find anything that would help, I even tried…
-
3
votes2
answers1090
viewsQ: Share cloud database (Postgresql)?
You can share a database (Postgresql) in the cloud, such as Dropbox, Google Drive? I want to share my database initially to access from different environments, just to start a new application. It is…
-
2
votes1
answer163
viewsQ: JAVACV with Ma Ven?
I made the JAVACV clone https://github.com/bytedeco/javacv I’m trying to run the project build: clean install But when I run I find the following error: Exception in thread "main"…
-
0
votes1
answer212
viewsQ: Automate deploy on Jboss by Jenkins?
What would be the best way to deploy Jboss EAP via Jenkins ? After the completion of the build, if it occurs successfully, I would like to deploy my application, would be better via plugin or create…
-
0
votes1
answer219
viewsA: How to simulate p:commandLink click effect?
I used: <p:effect type="clip" event="click" /> An example here: <h3 style="margin-top:0">Catalog</h3> <h:panelGrid columns="4" cellpadding="5"> <p:panel id="blind"…
-
0
votes1
answer219
viewsQ: How to simulate p:commandLink click effect?
On the buttons on the primefaces there is an effect, the user sees it being clicked (sink), the same does not occur when I click on commandLink: <p:commandLink id="logs" immediate="true"…
-
1
votes1
answer65
viewsQ: Generate merge and branch charts in GIT?
I would like a tool to document my activities in GIT, which generates a flow chart like this: What tool would generate a documentation of merges, branches, tags, releasses in GIT, i.e., documenting…
-
1
votes2
answers519
viewsA: Freeze background when calling Popup?
I did it in a very simple way, just checking when my modal was closed. As an example: var win = window.open('http://www.google.com', 'google','width=800,height=600,status=0,toolbar=0'); var timer =…
-
2
votes2
answers519
viewsQ: Freeze background when calling Popup?
What would be the best way to freeze background processing when a popup is called ? <h:link onclick="showModalPopUp(); return false;">link </h:link> The best way to pause screen…
-
0
votes0
answers202
viewsQ: RTSP protocol with primefaces?
I am trying to implement with primefaces to accept the RTSP protocol: <p:media value="rtsp://myUrl" width="190" height="250"> <f:param name="autoPlay" value="false" /> </p:media>…
-
1
votes1
answer64
viewsA: Reload multiple images using Jquery ? How to optimize?
I ended up that way: setInterval(function(){ $( ".image" ).each(function( index ) { var img = new Image(); img.src = $(this).attr('src'); console.log(img.complete); if(img.complete){…
-
0
votes1
answer156
viewsA: Differences in Jenkins build?
I was making two mistakes: 1 - I wasn’t specifying the correct branch in Jenkins 2 - For some reason, that I do not know exactly why, the pull was not running, I deleted my Workspace and recreated…
-
0
votes1
answer156
viewsQ: Differences in Jenkins build?
I set up Jenkins to "build" a project from a git repository, I’m using Maven: Warning: JAVA_HOME Environment variable is not set. Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;…
-
0
votes1
answer64
viewsQ: Reload multiple images using Jquery ? How to optimize?
I have a multi-image update using Jquery: window.onload = function() { setInterval(function(){ $( ".image" ).each(function( index ) { base_url = $(this).attr('src').split('?rand=')[0]; address =…
-
6
votes3
answers1311
viewsQ: How to place a upload image within a Javascript function?
I have this function below: function consultarOcorrencia(number, sequence){ form = document.forms[1]; form.number.value = number; form.sequencial.value = sequence; form.submit(); } After the submit,…
-
1
votes1
answer551
viewsQ: How to know which version of JSP is in a project
I have a project Java and would like to know what version of JSP that is being used in this project. Example, I have an old project, how can I get this information?
-
1
votes1
answer610
viewsA: Javascript upload image (GIF)?
I finished using some components of Richfaces, I created a new xthml "commandButton.xhtml": <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
0
votes1
answer610
viewsQ: Javascript upload image (GIF)?
I am trying to show a loading image on my pages using these functions: $(document).ready(function(){ $(".loading").hide(); $.unblockUI(); $(".menuLink").focus(function() {…
-
0
votes0
answers31
viewsQ: Javascript for monetary values?
I have this function for monetary values: function formatMonetary(v){ v = v.replace(/\D/g,""); v = v.replace(/(\d{1})(\d{15})$/,"$1.$2"); v = v.replace(/(\d{1})(\d{11})$/,"$1.$2"); v =…
javascriptasked Edson Cezar 457 -
0
votes1
answer139
viewsQ: How to install an old version of JDK in windows 7?
I already have some versions installed on the machine, 1.7 and 1.6. Now I need to install version 1.5, but when I try to install an error occurs, talking to uninstall the versions I have of java…
-
2
votes1
answer115
viewsQ: How to include current date in a generated Javadoc?
I’m using jAutodoc to automatically generate Javadocs, here an example: /** ## type: class|interface|enum * The ${e.getType().fu()} ${e}. * * * @author Edson * @version 1.0.0 * @date 11/09/2015 * */…
-
0
votes3
answers11115
viewsA: Javascript to remove accents and special characters does not work the same in all browsers ?
I finished using onkeypress onkeypress="if(event.which < 65 || event.which > 93 ) if(event.which < 97 || event.which > 122 ) if(event.which < 48 || event.which…
-
1
votes3
answers11115
viewsQ: Javascript to remove accents and special characters does not work the same in all browsers ?
I have the following Javascript: function validaCaracteres(strToReplace) { strSChar = "áàãâäéèêëíìîïóòõôöúùûüçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÖÔÚÙÛÜÇ"; strNoSChars =…
-
4
votes1
answer438
viewsQ: window.open() not working properly in Firefox and Chrome
I am using the following Javascript to hide the address bar in popup: oncomplete="window.open('lista_persist.xhtml', 'newwindow',…
javascriptasked Edson Cezar 457 -
1
votes1
answer2395
viewsQ: Calling a JSF popup from a Managed Bean
I use this Javascript to call a popup in JSF: function showMyPage() { window.open('./showMyPage.xhtml','mywindow', 'resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');…
-
2
votes2
answers2211
viewsQ: Primefaces p:datatable changing default message "No Records found."?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…
-
2
votes1
answer397
viewsQ: Primefaces p:datatable without the "No Records found" message?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…