<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:panel style="height:126.0px">
<xp:button value="Get Value" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete" immediate="false" save="false">
<xp:this.action><![CDATA[#{javascript://sessionScope.f1 = getComponent("fileUpload1").filename;
}]]></xp:this.action>
<xp:this.script>
<xp:executeClientScript>
<xp:this.script><![CDATA[document.getElementById("#{id:inputText1}").value= document.getElementById("#{id:fileUpload1}").value;]]></xp:this.script>
</xp:executeClientScript>
</xp:this.script>
</xp:eventHandler>
</xp:button>
<xp:br></xp:br>
<xp:label value="#{javascript:sessionScope.f1}" id="label1"></xp:label>
<xp:br></xp:br>
<xp:fileUpload id="fileUpload1" value="#{sessionScope.fv}"
mimetype="text/html" immediate="true">
</xp:fileUpload>
<xp:br></xp:br>
<xp:br></xp:br>
<xp:inputText id="inputText1" value="#{applicationScope.FileName}"></xp:inputText>
<xp:br></xp:br>
</xp:panel>
</xp:view>
|