You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mihai Dinca <dp...@yahoo.com> on 2010/02/09 10:51:02 UTC

FileUploadField selection event

Is there any way to see when user selects a file through the browse button?
I want that after selection , to get the text from text field.

Mike



      


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


Re: FileUploadField selection event

Posted by Andrew Lombardi <an...@mysticcoders.com>.
I do believe in the latest versions of wicket 1.4 Ajax and  
fileuploadfield works via a hidden iframe

Sent from my iPhone

On Feb 10, 2010, at 12:01 AM, dpmihai <dp...@yahoo.com> wrote:

>
> Thanks for this tip.
>
> I wonder if there is a possibility to create a behavior and add this  
> to it.
> I know that FileUploadField does not work with Ajax , so writing  an
> AjaxFormComponentUpdatingBehavior does not work.
> Does anyone know a solution to this?
>
>
> ananthakumaran wrote:
>>
>> <form>
>> <input id="test" type="file" onchange="
>> document.getElementById('secondBox').value =
>> document.getElementById('test').value;
>> "></input>
>> <input id="secondBox" type="text" />
>> </form>
>>
>> On Tue, Feb 9, 2010 at 3:22 AM, dpmihai <dp...@yahoo.com> wrote:
>>
>>>
>>> What I really want is that after file selection automatically set  
>>> the
>>> text
>>> of
>>> another TextField (inside my form) with a string derived from  
>>> selected
>>> file
>>> name.
>>>
>>>
>>>
>>>
>>>
>>> --- 
>>> ------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.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
>>>
>>>
>>
>>
>> -- 
>> ----
>> Anantha Kumaran
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/FileUploadField-selection-event-tp27512780p27527078.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
>

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


Re: FileUploadField selection event

Posted by dpmihai <dp...@yahoo.com>.
Thanks for this tip.

I wonder if there is a possibility to create a behavior and add this to it.
I know that FileUploadField does not work with Ajax , so writing  an
AjaxFormComponentUpdatingBehavior does not work.
Does anyone know a solution to this?


ananthakumaran wrote:
> 
> <form>
> <input id="test" type="file" onchange="
> document.getElementById('secondBox').value =
> document.getElementById('test').value;
> "></input>
> <input id="secondBox" type="text" />
> </form>
> 
> On Tue, Feb 9, 2010 at 3:22 AM, dpmihai <dp...@yahoo.com> wrote:
> 
>>
>> What I really want is that after file selection automatically set the
>> text
>> of
>> another TextField (inside my form) with a string derived from selected
>> file
>> name.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.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
>>
>>
> 
> 
> -- 
> ----
> Anantha Kumaran
> 
> 

-- 
View this message in context: http://old.nabble.com/FileUploadField-selection-event-tp27512780p27527078.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 selection event

Posted by Anantha Kumaran <an...@gmail.com>.
<form>
<input id="test" type="file" onchange="
document.getElementById('secondBox').value =
document.getElementById('test').value;
"></input>
<input id="secondBox" type="text" />
</form>

On Tue, Feb 9, 2010 at 3:22 AM, dpmihai <dp...@yahoo.com> wrote:

>
> What I really want is that after file selection automatically set the text
> of
> another TextField (inside my form) with a string derived from selected file
> name.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.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
>
>


-- 
----
Anantha Kumaran

Re: FileUploadField selection event

Posted by dpmihai <dp...@yahoo.com>.
What I really want is that after file selection automatically set the text of
another TextField (inside my form) with a string derived from selected file
name.





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




-- 
View this message in context: http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.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 selection event

Posted by Anantha Kumaran <an...@gmail.com>.
This may help

http://old.nabble.com/Where-is-the-full-client-filename-during-FileUpload--p27439835.html


On Tue, Feb 9, 2010 at 1:51 AM, Mihai Dinca <dp...@yahoo.com> wrote:

> Is there any way to see when user selects a file through the browse button?
> I want that after selection , to get the text from text field.
>
> Mike
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
----
Anantha Kumaran