Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Andrew Progash
Greenhorn
+ Follow
4
Posts
4
Threads
0
Cows
since Jul 16, 2013
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (4/100)
Number Threads Started (4/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (4/10)
Number Threads Started (4/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Andrew Progash
I want show arraylist on jasper report
Hi, I 'm a beginner.
I have arraylist code by the following:http://www.tutorialspoint.com/jsf/jsf_display_datatable.htm
and I want to show arraylist data on my jasper report but i don't know how to do it.
I try to do follow
http://siempredesdeelcurro.blogspot.com.es/2013/06/jasper-reports-crear-report-utilizando.html
but i can't.
Please help me. Thank you.
show more
10 years ago
Java in General
How to update commandlink from one page to other page?
I want to update disabled attribute of commandlink from one page to other page but i don't know how to do it.
For example:
page1
<p:commandButton actionListener="#{MyBean.checkLogin()}" id="login" value="Login">
<p:ajax listener="#{MyBean.enableButton}" update="b1"/>
</p>
page2
<p:commandLink actionListener="#{MyBean.goStep1}" id="b1" disabled="#{!Mybean.enabled_back}"><button id="default" type="button">Back</button></p:commandLink>
if click button in page, set disabled attribute of button in page2 and go to page2.
show more
10 years ago
JSF
How to set disable for p:commandLink with JavaScript?
How to set disable for p:commandLink with JavaScript?
If don't tick the box, I will not allow click button and redirect to other page.
I try to set disable by the following:
<script type="text/javascript"> function Agree() { var cb1 = document.getElementById('dataform:agree'); var b1 = document.getElementById('dataform:b1'); if (cb1.checked) { } else { jQuery('#b1').click().disabled()=true; document.getElementById('dataform:b1').click().disabled=true; document.getElementById('dataform:b1').onclick="return false"; document.getElementById('dataform:b1').disabled=true; b1.setAttribute('onclick', 'return false;'); b1.disabled=true; b1.readOnly=true; b1.setAttribute('disabled', "true"); b1.disabled="true"; document.getElementById('dataform:b1').onclick = function() { return false; }; } } </script> <table style="width: 100%; height: 25px; background-color:none" border="0" cellspacing="0" cellpadding="0"> <tr style="padding-lefy:20px;"> <td> <h:selectBooleanCheckbox value="agree" id="agree" onchange="Agree()" /> I agree. </td> </tr> <tr> <td height="25" style="background-image:none; padding-left:20px; padding-right:20px; padding-top:2px; padding-bottom:0px" align="left"> <p:commandLink actionListener="#{admissionMBean.goStep1}" id="b1" ><img src="#{request.contextPath}/images/button_previous.png" width="80" height="20" border="0" /></p:commandLink> </td> </tr> </table>
but not successful.
Thank you.
show more
10 years ago
JSF
I want to add and delete row of table
I want to add and delete row of table.
This is my code.
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" > <script type="text/javascript"> function deleteRow(row) { var i=row.parentNode.parentNode.rowIndex; document.getElementById('POITable').deleteRow(i); } function insRow() { console.log( 'hi'); var x=document.getElementById('POITable'); var new_row = x.rows[1].cloneNode(true); var len = x.rows.length; new_row.cells[0].innerHTML = len; var inp1 = new_row.cells[1].getElementsByTagName('input')[0]; inp1.id += len; inp1.value = ''; var inp2 = new_row.cells[2].getElementsByTagName('input')[0]; inp2.id += len; inp2.value = ''; x.appendChild( new_row ); } </script> <table id="POITable" width="100%" border="0" cellspacing="0" cellpadding="2" class="urLEmphField"> <tr> <td>No.</td> <td>Test Type</td> <td>Score</td> <td>Delete Row</td> <td>Add Row</td> </tr> <tr> <td>1</td> <td><input type="hidden" id='aa'> <p:selectOneMenu value="#{admissionMBean.testType}"> <f:selectItem itemValue="" itemLabel="----- Please Select -----" /> <f:selectItems value="#{admissionMBean.dropdown_testtype.entrySet()}" var="testtype" itemLabel="#{testtype.value}" itemValue="#{testtype.key}"/> </p:selectOneMenu> </input> </td> <td> <input type="hidden" id="bb" > <p:inputMask value="#{admissionMBean.testScore}" /> </input></td> <td><input type="button" value="Delete" onclick="deleteRow(this)" /></td> <td><input type="button" value="Add" onclick="insRow()" /></td> </tr> </table> </html>
Row No.2 cannot select data. Help me please.
show more
10 years ago
JSF