You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2008/10/06 10:35:46 UTC
Re: Upload CSV throws java.lang.ClassCastException:java.nio.HeapByteBuffe
Thanks Bilgin,
I will change that
Jacques
From: "Bilgin Ibryam" <bi...@iguanait.com>
> On Tue, 2008-09-30 at 15:17 +0200, Jacques Le Roux wrote:
>> BTW I don't like much the way javascript is used there : when you clic
>> in the file name field it automatically opens the file search
>> dialog box.
>
> Me neither.
> Bilgin
>
Re: Upload CSV throws java.lang.ClassCastException:java.nio.HeapByteBuffe
Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes it's the same. See importAddressMatchMapCsv in addressMatchMap.ftl
Actually there is no specific javascript there too
Jacques
From: <bj...@free-man.net>
> unless I missed something on this thread,
> you can use the html upload also that is what I use.
> you have a field and a button.
> <form name="ImportSupplierInventory"method="post"
> enctype="multipart/form-data"
> action="<@o...@ofbizUrl>"
> style="margin: 0;">
> <tr>
> <td colspan="5" align="center">
> <input type="file" name="ImportSupplierInventoryFile"
> size="14" value="Productsimports.xls" class="inputBox"/>
> <input type="submit" value="${uiLabelMap.CommonUpload}
> supplierinventory.xls" class="smallSubmit"/>
> <div
> class="tabletext">${uiLabelMap.ImportSupplierInventory1}</span>
> </td>
> </tr>
> </form>
>
>
> Jacques Le Roux wrote:
>> I was presumptuous. This does depend of the browser.
>>
>> FF3 : show an input field with a button, clicking in field is the same
>> as clicking the button
>> IE7 and Opera 9.02 : show an input field with a button, clicking in
>> field does nothing and anyway both do not keep an history of selected
>> files so it's useless.
>> Chrome and Safari (hey, it works on Windows too now) : show only a
>> button, and an information on the selected file name at right
>>
>> So far the best impementations seems to be Chrome and Safari
>>
>> I found this (I used to test) http://www.quirksmode.org/dom/inputfile.html
>> And I gave up...
>>
>> Actually, my memory misleaded me. I was remembering how works "Working
>> with data files" in Webtools. It's another way of dealing with file
>> upload. I guess in the Adress Match Map case it's ok how it's done now.
>>
>> Jacques
>>
>> From: "Jacques Le Roux" <ja...@les7arts.com>
>>> Thanks Bilgin,
>>>
>>> I will change that
>>>
>>> Jacques
>>>
>>> From: "Bilgin Ibryam" <bi...@iguanait.com>
>>>> On Tue, 2008-09-30 at 15:17 +0200, Jacques Le Roux wrote:
>>>>> BTW I don't like much the way javascript is used there : when you clic
>>>>> in the file name field it automatically opens the file search dialog
>>>>> box.
>>>>
>>>> Me neither.
>>>> Bilgin
>>>>
>>>
>>
>>
>>
>
Re: Upload CSV throws java.lang.ClassCastException:java.nio.HeapByteBuffe
Posted by "bjfree@free-man.net" <bj...@free-man.net>.
unless I missed something on this thread,
you can use the html upload also that is what I use.
you have a field and a button.
<form name="ImportSupplierInventory"method="post"
enctype="multipart/form-data"
action="<@o...@ofbizUrl>"
style="margin: 0;">
<tr>
<td colspan="5" align="center">
<input type="file" name="ImportSupplierInventoryFile"
size="14" value="Productsimports.xls" class="inputBox"/>
<input type="submit" value="${uiLabelMap.CommonUpload}
supplierinventory.xls" class="smallSubmit"/>
<div
class="tabletext">${uiLabelMap.ImportSupplierInventory1}</span>
</td>
</tr>
</form>
Jacques Le Roux wrote:
> I was presumptuous. This does depend of the browser.
>
> FF3 : show an input field with a button, clicking in field is the same
> as clicking the button
> IE7 and Opera 9.02 : show an input field with a button, clicking in
> field does nothing and anyway both do not keep an history of selected
> files so it's useless.
> Chrome and Safari (hey, it works on Windows too now) : show only a
> button, and an information on the selected file name at right
>
> So far the best impementations seems to be Chrome and Safari
>
> I found this (I used to test) http://www.quirksmode.org/dom/inputfile.html
> And I gave up...
>
> Actually, my memory misleaded me. I was remembering how works "Working
> with data files" in Webtools. It's another way of dealing with file
> upload. I guess in the Adress Match Map case it's ok how it's done now.
>
> Jacques
>
> From: "Jacques Le Roux" <ja...@les7arts.com>
>> Thanks Bilgin,
>>
>> I will change that
>>
>> Jacques
>>
>> From: "Bilgin Ibryam" <bi...@iguanait.com>
>>> On Tue, 2008-09-30 at 15:17 +0200, Jacques Le Roux wrote:
>>>> BTW I don't like much the way javascript is used there : when you clic
>>>> in the file name field it automatically opens the file search dialog
>>>> box.
>>>
>>> Me neither.
>>> Bilgin
>>>
>>
>
>
>
Re: Upload CSV throws java.lang.ClassCastException:java.nio.HeapByteBuffe
Posted by Jacques Le Roux <ja...@les7arts.com>.
I was presumptuous. This does depend of the browser.
FF3 : show an input field with a button, clicking in field is the same as clicking the button
IE7 and Opera 9.02 : show an input field with a button, clicking in field does nothing and anyway both do not keep an history of
selected files so it's useless.
Chrome and Safari (hey, it works on Windows too now) : show only a button, and an information on the selected file name at right
So far the best impementations seems to be Chrome and Safari
I found this (I used to test) http://www.quirksmode.org/dom/inputfile.html
And I gave up...
Actually, my memory misleaded me. I was remembering how works "Working with data files" in Webtools.
It's another way of dealing with file upload. I guess in the Adress Match Map case it's ok how it's done now.
Jacques
From: "Jacques Le Roux" <ja...@les7arts.com>
> Thanks Bilgin,
>
> I will change that
>
> Jacques
>
> From: "Bilgin Ibryam" <bi...@iguanait.com>
>> On Tue, 2008-09-30 at 15:17 +0200, Jacques Le Roux wrote:
>>> BTW I don't like much the way javascript is used there : when you clic
>>> in the file name field it automatically opens the file search dialog box.
>>
>> Me neither.
>> Bilgin
>>
>