Skip to Content
author's profile photo Former Member
Former Member

HTMLB fileUpload

I am using the hbj:fileUpload tag in a JSP page.

I would like to initialize the input field of the tag, but could not find any documentation.

I tried following, but it seems not to work:

<hbj:fileUpload id="fileUpload" size ="50" >

<%fileUpload.setFile( uploadBean.getSource());%>

</hbj:fileUpload>

Method getSource() returns a valid IFileParam object.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2004 at 01:59 PM

    Hi Laurent,

    if I dont misinterpret, you want the inputfield to already contain a text when the page is rendered, dont you?

    I checked this and it seems there is really no "setText" method or anything like that.

    But nevertheless you could try to discover which HTML tag is used for this HtmlB component in the end and try to set the appropriate attribute (e.g. "value" for a <input type="button"......>) using javascript and dom. At least if you can be sure that javascript is admitted in the final environment.

    Salud

    Matthias

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.