2012-07-05 62 views
0

我想使用ace:fileEntry组件将图像上传到我的数据库,但现在,我想更改我的情况下按钮“浏览”的名称“Seleccionar archivo”但我不知道名称的存储位置。更改默认按钮名称浏览ace:FileEntry

    <ace:fileEntry id="ImageFileEntry" 
            fileEntryListener="#{usuarioBean.sampleListener}" 
            useSessionSubdir="true"> 

        </ace:fileEntry> 
        <h:commandButton id="submit" value="subir"></h:commandButton> 

我附上截图

http://i.stack.imgur.com/8b817.png

感谢

回答

3

ace:fileEntry将呈现一个<input type="file">元素,在此按钮上的文本总是被你的浏览器/浏览器的语言定义。这是不可能改变它,看看这篇文章的更多信息和一些解决方法:Change default text in input type="file"?