Table : <table id=”mytable”> {…} </table> Button : <a download=”file.xls” href=”#” class=”btn-print” data-name=”#{mytable}”> Download Excel File </a> JavaScript : <script> $(‘.btn-print’).on(‘click’, function() … More
Tag: jsf
Primefaces – What to do to not lose the values of the components when has some update ?
Often we need to update a form or a div and the component values are lost . To solve it … More
Java + Javascript : How to take a user location by browser ?
In this example when the user clicks anywhere inside this form his location will be obtained by the javascript function. … More
Primefaces : How to disabling retroactive dates in the calendar component?
A lot of times, you don’t want to allow to user can be selected a retroactive date. Below is a … More
JavaServer Faces: How to print the size of a list ?
If you are using a datatable or any other component of Primefaces or JSF and want to print the size of … More
Primefaces : The commandLink, commandButton, nothing was invoking my actions or my actionListeners in the backend. It happens only when I call inside of the my tree or treeTable . How resolve this ?
It’s easy ! You need set true the attribute expand of the yours nodes and parents. Example : public TreeNode … More
JavaServer Faces : java.lang.IllegalStateException: Component ID has already been found in the view. How resolve ?
Firstly you really need validate your code, because this error says that you have two components with the same ID … More