0
我使用王牌:FileEntry的,并有2个问题:ICEfaces的FileEntry的
我试图改变样式,以便输入文件(该文件名是提交)的面积会更大。我怎样才能做到这一点?
我的组件工作正常,但是组件fileEntryListener上有错误消息,为什么?
我使用王牌:FileEntry的,并有2个问题:ICEfaces的FileEntry的
我试图改变样式,以便输入文件(该文件名是提交)的面积会更大。我怎样才能做到这一点?
我的组件工作正常,但是组件fileEntryListener上有错误消息,为什么?
我发现如何改变大小。
ICEfaces的忘了添加“大小”属性王牌:FileEntry的组件,
,所以我们必须使用JavaScript插入。
function openFilePanel()
{
// find the component in the document
var nodeList = document.getElementsByTagName("input");
for(var i=0 ; i< nodeList.length;i++)
{
var item = nodeList[i];
if(item.getAttribute("type") == "file")
{ // create and set the 'size' attribute
item.setAttribute("size", "70");
}
}
}
如果您使用多于一个ace:fileEntry组件,则必须找到它以不同方式创建的“输入”。