]
waleed _ commented on RF-12482:
-------------------------------
i fix it by
<script>
function resetClear(id)
{
var container = id;
for (var i = 0; i!=1; i++) {
var child = container.childNodes[i];
if(child.childNodes[0]!=null)
{
var childChild = child.childNodes[0];
childChild.childNodes[0].style.display ='inherit';
}
}
}
</script>
and then i wil call this function on onclear event in fileUpload such as :
<rich:fileUpload onclear="resetClear(this);"/>
and all things are done !!!!!!!!!!!
rich:fileUpload, the upload button disappeared after deleting a
uploaded file
-----------------------------------------------------------------------------
Key: RF-12482
URL:
https://issues.jboss.org/browse/RF-12482
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-input
Affects Versions: 4.2.0.Final
Environment: IDE: eclipse 3.7.1
plugin: jboss plugin
richface ver: 4.2.0
System: windows 7
Browser: IE 8
Reporter: Janli Lee
Assignee: Brian Leathem
Priority: Critical
Fix For: 4.3-Tracking
{code}
<h:form prependId="false">
<rich:fileUpload/>
</h:form>
{code}
code is too easy, isn't it~~
the steps below show my problem.
# Choose "Add", select file1.txt, and then click "Upload". After
uploaded, i can see a "Clear" link label for this file.
# Choose "Add" again, select file2.txt, and then click the "Clear"
link label for file1.txt created in the first step (Not the Clear All on top right).
# After these, the "Upload" button disappeared.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: