In our case we place all elements to be 'uploaded' in the same FormPanel as 
the file input element.
Then in our servlet we first retrieve all parts 
(HttpServletRequest#getParts) after which we use getParameter to read out 
the filled in form inputs.
The file itself is retrieved via a getPart(name of input here).

On Wednesday, 12 September 2018 12:25:16 UTC+2, Ousti Driss wrote:
>
> I founnd something similar, 
> On the client side I instanciated hidden objects,
> I gave them a name and for the value it's the one selected by the user,
> now, on the server side, when the result is parsed, I've got a list of 
> items, how can I check 
> that an item is the hidden one ?
>
> On Wednesday, September 12, 2018 at 12:17:54 PM UTC+2, Josselin B. wrote:
>>
>> Hi
>>
>> You can use the form input name to send informations for exemple 
>>
>> Le mer. 12 sept. 2018 à 11:59, Ousti Driss <[email protected]> a écrit :
>>
>>> Thank you for your answer Paul,
>>> Your solution seems logical,
>>> but in my case these other data, I need it from the first submit,
>>> these data are basically type of file ... 
>>> I need it to store correctly the file in the database,
>>> Moreover, on the client side a submit is not taken into account untill 
>>> all the other data are filled.
>>>
>>> On Wednesday, September 12, 2018 at 11:51:41 AM UTC+2, Paul Robinson 
>>> wrote:
>>>>
>>>> You can store the file on the server in a temporary area, returning a 
>>>> key to the UI. Then, when the user is ready to submit the lot, the UI 
>>>> sends 
>>>> the file's key to the server as well as the other data.
>>>>
>>>> The server can then move the file data to a permanent home, or mark it 
>>>> as permanent.
>>>>
>>>> Paul
>>>>
>>>>
>>>>
>>>> On Wed, 12 Sep 2018, 10:06 Ousti Driss, <[email protected]> wrote:
>>>>
>>>>> Hey guys,
>>>>>
>>>>> While browsing on the internet I found a way to upload a file in a gwt 
>>>>> app,
>>>>> I managed to reimplement the code and it works just fine using 
>>>>> formPanel,
>>>>> It just happens that this file needs to be stored in a mysql database,
>>>>> the problem is before the user selects the file he wants to upload, he 
>>>>> needs to pick up two elements from 
>>>>> 2 combobox,
>>>>> I need those informations so I can build my sql querry, How I can get 
>>>>> those fields selected by the user 
>>>>> in the  upload File servlet?
>>>>>
>>>>> Thanks a lot,  
>>>>>
>>>>>
>>>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to