<input type="file" jwcid="upload1" name="upload1" accept="image/gif"/>

What you are doing above is right. But after rendering the page via web
container can you just open the source of the page displayed in your browser
and just copy the part generated by the upload component and paste it here.
We see why you are not able to achieve the same thing.

If upload component is writing the same html tag <input type="file" >  like
this you must be able to achieve the same behaviour. If writing some other
thing I will try to help you in an alternative approach if you are still
struggling with the same problem.




Muralidhar Y
Software Engineer,
Ad strum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Anjali Abraham [mailto:[EMAIL PROTECTED] 
Sent: 06 October 2005 15:50
To: Tapestry users
Subject: RE: Need help

Thanks Muralidhar for the response.
I have already mentioned in my html body take a component <at>Body. The body
code is below:
<body jwcid="@Body"  topmargin="0" leftmargin="0">

and the component jwcid=upload1 equavalent .page mapping is given below:
<component id="upload1" type="Upload">
        <binding name="file" value="file1"/>
</component> 

here as I mentioned in my html:
<input type="file" jwcid="upload1" name="upload1" accept="image/gif"/>

In general HTML scenario, if I give accept="image/gif", it should filter the
browse dialog box by default on gif files, but that is what I am not able to
achieve if I use Tapestry's component....

Need help on that, how to achieve the same....

Please respond with solution,
Thanks in advance,

Regards,
Anjali

-----Original Message-----
From: Muralidhar Y. [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 4:17 PM
To: 'Tapestry users'
Subject: RE: Need help

To enable java scripting first instaed of writing <body> in html use "Body"
component and then your components will be java script enabled.

If you can tell me jwcid="upload1"        to which component the upload1 is
mapped I may be able to help little bit.




Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Anjali Abraham [mailto:[EMAIL PROTECTED]
Sent: 06 October 2005 14:06
To: [email protected]
Subject: Need help

Hi All,
            I have a scenario wherein in my html, I have a code something
like this:
<input type="file" jwcid="upload1" name="upload1"/>
            
            I have a requirement of giving a filter to only .gif files can
be shown by default to the dialog box which get opened on click of "browse"
button of the type file. For that to do I need to modify my above html code
to something like this:
<input type="file" jwcid="upload1" name="upload1" accept="image/gif"/>
            But here there is a problem, as in my input tag I am using
jwcid, I ignores all the attributes particular to html's.
 
            That's the reason we need to enable javascripting for these
tags. How to do the same.......???????
 
            How can I achieve the same "accept" attribute functionality
through Tapestry4...????????
 
Please respond with reply,
Thanks in advance,
 
Regards,
Anjali
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to