The strange part is that the same code works in a new jsp page that does not contain the HTML decorations, but with full debug of myfaces I cannot identify the error. The java code is OK and it works with a siplier page.
The error is in page display when rendering the body of the page. the strange part is that myfaces does not log anything at all..... an exception will come very handy in such cases. I remeber that I had previous problems with commandButton and not width commandLink.
now i'm hunting the error..... I remove any element and isolate the begus one.
About the 4k Oracle limitation I have no workaround at this time becouse I'm using hibernate for database abstraction layer. I'm recomanding this tool to anyone. It is not working with Oracle BLOB becouse you always get ClassCastException whec casting
(OracleBLOG)myBlob
this is where I stopped with the Oracle testing.
Best regards,
Alecs
On Thu, 2004-11-18 at 10:52, Nicolas Arni-Bloch wrote:
I'm using oracle to with blob and I know this *&%& 4kb limitation,
can you send the java code and maybe some error ?
Le 18 nov. 04, à 09:42, Martin Marinschek a écrit :
> strange... I don't have any problems with file-upload, using it every
> day...
>
> just to tell you: the 4kB restriction in oracle is something you can
> work around, if need be
>
> regards,
>
> Martin
>
>
> On Thu, 18 Nov 2004 09:41:21 +0200, Alecsandru Chirosca
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Here are the informations you requested.
>>
>>
>> The 4k limitation to fileupload is due Oracle BLOB handling
>> limitation.
>>
>> Here are the relevant parts of web.xml :
>> <filter>
>> <filter-name>multipartFilter</filter-name>
>>
>> <filter-
>> class>net.sourceforge.myfaces.custom.fileupload.MultipartFilter</
>> filter-class>
>> <init-param>
>> <param-name>maxFileSize</param-name>
>> <param-value>4k</param-value>
>> <description>limita de upload la fisiere</description>
>> </init-param>
>> </filter>
>> ......
>> <filter-mapping>
>> <filter-name>multipartFilter</filter-name>
>> <url-pattern>*.jsp</url-pattern>
>> </filter-mapping>
>>
>>
>> and from our jsp page :
>> .....
>> <jh:form id="form1" name="form1"
>> enctype="multipart/form-data">
>> <jh:panelGrid id="pg1"
>> cellspacing="0px" columns="1"
>> styleClass="bodyClass"
>> columnClasses="bodyTDLeft,bodyTDright">
>> <jc:facet name="header">
>> <jh:graphicImage
>> url=""
>> alt="imagine indisponibila"/>
>> <!-- this is an image display servlet -->
>> </jc:facet>
>> <je:inputFileUpload id="aUpload"
>> value="#{editorSigla.siglaNoua}"
>> storage="file"
>> accept="image/*"/>
>> <jc:facet name="footer">
>> <jh:commandButton id="trimiteimaginea"
>> value="trimite" action=""
>> </jc:facet>
>> </jh:panelGrid>
>> </jh:form>
>> .....
>>
>>
>> The problem is that the procedure editorSigla.modifica does not get
>> called
>> at all when using multipart/form-data encoding.
>>
>>
>> Best regards,
>> Alecs
>>
>>
>>
>> On Wed, 2004-11-17 at 17:58, Nicolas Arni-Bloch wrote:
>> Are sure that the multipartFilter is enable ? Normally you must
>> havesome
>> think like this in your web.xml (and uncommented)
>>
>>
>> <filter>
>> <filter-name>multipartFilter</filter-name>
>>
>> <filter-
>> class>net.sourceforge.myfaces.custom.fileupload.MultipartFilter</
>> filter-class>
>> <init-param>
>> <param-name>maxFileSize</param-name>
>> <param-value>10m</param-value>
>> <description>Set the size limit for uploaded files.
>> Format: 10 - 10 bytes
>> 10k - 10 KB
>> 10m - 10 MB
>> </description>
>> </init-param>
>> </filter>
>>
>> and if you doesn't put multipart/form-data in you form it's
>> normalthat you
>> have a null value because the multipartFilter is not calledto.
>>
>> Le 17 nov. 04, à 16:41, Alecsandru Chirosca a écrit :
>>
>>
>> Hi list,
>>
>>
>> I have a problem width the fileUpload component, when I
>> usemultipart/form-data my form does noting (the button that connects
>> tothe
>> upload() function from my bean does nothing. When I remove
>> themultipart/form-data encoduing declaration from the h:form element
>> theupload() function gets called but I hane null value in
>> theupploadedFile
>> property.
>>
>>
>> Anyone had this problem?
>> the page is quite large and includes a lot of HTML code.
>>
>> Any ideea will be apreciated.
>>
>>
>> Best regards,
>> Alecs
>>
>> --
>> Nicolas Arni-Bloch
>> Groupe MATIS-Bd, Centre Universitaire d'Informatique
>> 24 rue General-Dufour
>> CH-1205 Genève
>> eMail : [EMAIL PROTECTED]
>> phone : +41 22 379 76 80
>> fax : +41 22 379 77 80
>
>
--
Nicolas Arni-Bloch
Groupe MATIS-Bd, Centre Universitaire d'Informatique
24 rue General-Dufour
CH-1205 Genève
eMail : [EMAIL PROTECTED]
phone : +41 22 379 76 80
fax : +41 22 379 77 80

