You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Laccetti <mi...@s2g.ca> on 2008/06/09 17:46:28 UTC

FileUploadField, CSS, and empty form values

I'm trying to attach some CSS to the "browse" button in a FileUploadField. 
Rather, since this is actually impossible, I'm hiding the actual field, and
creating a pretty looking "fake" similar to what this page does:
http://www.quirksmode.org/dom/inputfile.html.  The issue is that when I
submit the form, even though the field seems to be populated in the browser,
the value doesn't make it to the form itself.  Is there some magic required
to get the field value to actually populate in the form?

-----
--
Michael Laccetti                                 (416)558-9718
S2G Limited                                       http://www.s2g.ca/
-- 
View this message in context: http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17735661.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField, CSS, and empty form values

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Yup thats nice:)

Michael Laccetti wrote:
> Took me a while to figure out how to get the "nice" looking stuff to properly
> hide the old-and-ugly implementation.  Once I got it worked out (woo
> Firebug), things moved along.  I just need to finalize the AJAX callback
> between the iframe and the parent page.
>
> Here's a sample of the "nice" looking file upload field:
> http://www.nihilist.ca/images/file_upload_css.jpg
>
>
> Nino.Martinez wrote:
>   
>> Ahh, yeah I remember something about that...
>>
>> Great to hear that you got it working. Whats the CSS issue(I've been 
>> thinking of doing a nice fileupload myself)?
>>     
>
>
> -----
> --
> Michael Laccetti                                 (416)558-9718
> S2G Limited                                       http://www.s2g.ca/
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField, CSS, and empty form values

Posted by Michael Laccetti <mi...@s2g.ca>.
Took me a while to figure out how to get the "nice" looking stuff to properly
hide the old-and-ugly implementation.  Once I got it worked out (woo
Firebug), things moved along.  I just need to finalize the AJAX callback
between the iframe and the parent page.

Here's a sample of the "nice" looking file upload field:
http://www.nihilist.ca/images/file_upload_css.jpg


Nino.Martinez wrote:
> Ahh, yeah I remember something about that...
> 
> Great to hear that you got it working. Whats the CSS issue(I've been 
> thinking of doing a nice fileupload myself)?


-----
--
Michael Laccetti                                 (416)558-9718
S2G Limited                                       http://www.s2g.ca/
-- 
View this message in context: http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17739810.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField, CSS, and empty form values

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Ahh, yeah I remember something about that...

Great to hear that you got it working. Whats the CSS issue(I've been 
thinking of doing a nice fileupload myself)?

Michael Laccetti wrote:
> Yeah, I have been doing so, and do not see the field contents going through. 
> I found an alternative, though, because I stupidly forgot that file upload +
> AJAX = no worky.  Instead, I've embedded an iframe, and got the form
> submission going on through there, and that seems to be doing the trick. 
> Though my CSS issues are still there, but that has nothing to do with Wicket
> itself.
>
>
> Nino.Martinez wrote:
>   
>> I'd suggest to use firebug to check if it actually works. There is no 
>> magic in this at least..:)
>>
>>     
>
>
> -----
> --
> Michael Laccetti                                 (416)558-9718
> S2G Limited                                       http://www.s2g.ca/
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField, CSS, and empty form values

Posted by Michael Laccetti <mi...@s2g.ca>.
Yeah, I have been doing so, and do not see the field contents going through. 
I found an alternative, though, because I stupidly forgot that file upload +
AJAX = no worky.  Instead, I've embedded an iframe, and got the form
submission going on through there, and that seems to be doing the trick. 
Though my CSS issues are still there, but that has nothing to do with Wicket
itself.


Nino.Martinez wrote:
> 
> I'd suggest to use firebug to check if it actually works. There is no 
> magic in this at least..:)
> 


-----
--
Michael Laccetti                                 (416)558-9718
S2G Limited                                       http://www.s2g.ca/
-- 
View this message in context: http://www.nabble.com/FileUploadField%2C-CSS%2C-and-empty-form-values-tp17735661p17737993.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: FileUploadField, CSS, and empty form values

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I'd suggest to use firebug to check if it actually works. There is no 
magic in this at least..:)

Michael Laccetti wrote:
> I'm trying to attach some CSS to the "browse" button in a FileUploadField. 
> Rather, since this is actually impossible, I'm hiding the actual field, and
> creating a pretty looking "fake" similar to what this page does:
> http://www.quirksmode.org/dom/inputfile.html.  The issue is that when I
> submit the form, even though the field seems to be populated in the browser,
> the value doesn't make it to the form itself.  Is there some magic required
> to get the field value to actually populate in the form?
>
> -----
> --
> Michael Laccetti                                 (416)558-9718
> S2G Limited                                       http://www.s2g.ca/
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org