Re: Re: Re: Re: Re: Image from upload not displaying

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Image-from-upload-not-displaying-tp2965704p3008082.html

oxf.xforms.state-handling should almost never be set to "client" as
the Ajax traffic involved becomes very large, and caching suffers a
lot in that mode too.

So the only option is to find a way to solve that session issue.

If you keep oxf.xforms.state-handling should to "server", are you
saying that any Ajax request fails?

-Erik

On Thu, Oct 21, 2010 at 12:17 PM, yemlef <[hidden email]> wrote:

>
> one EAR
>
>
> Erik Bruchez wrote:
>>
>> Do you have one EAR or two EARs?
>>
>> -Erik
>>
>> On Mon, Oct 18, 2010 at 11:12 AM, yemlef <[hidden email]> wrote:
>>>
>>>
>>> Erik Bruchez wrote:
>>>>
>>>> Jon,
>>>>
>>>> Dynamic images do require the session, as the mapping between the
>>>> image URL hash and the actual image is stored in the session.
>>>>
>>>> What does your setup look like?
>>>>
>>>> -Erik
>>>>
>>>>
>>>
>>>
>>> Erik,
>>>
>>> I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the
>>> orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set
>>> up
>>> the servlet filters.  I have a seperate deployment in my own application
>>> as
>>> an ear file.
>>>
>>> Here are the relevant parts of my form:
>>>
>>> Below is all of the relevant information from my form:
>>>
>>>
>>> <xforms:model>
>>>            <xforms:instance id="my-instance">
>>>                <data xmlns="">
>>>                   ...
>>>                   <imgBytes fileName=""/>
>>>                   ...
>>>                </data>
>>>               </xforms:instance>
>>>               <xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
>>> <xforms:model>
>>>
>>> ....
>>>             <xhtml:tr>
>>>                <xhtml:td>
>>>                    <xforms:output ref="imgBytes" mediatype="image/*"/>
>>>                </xhtml:td>
>>>            </xhtml:tr>
>>>            <xhtml:tr>
>>>                <xhtml:td>
>>>                    <xforms:upload ref="imgBytes">
>>>                        <xforms:filename ref="@fileName"/>
>>>                        <xforms:label>Attach Diagram image</xforms:label>
>>>                        <xforms:hint>Please upload an image</xforms:hint>
>>>                    </xforms:upload>
>>>                </xhtml:td>
>>>            </xhtml:tr>
>>>
>>> And here are my two session/cache configuration settings as I have them
>>> now:
>>> <property as="xs:string"  name="oxf.http.state" value="none"/>
>>> <property as="xs:string" name="oxf.xforms.state-handling"
>>> value="client"/>
>>>
>>> Changing those to anything else causes a Session Timeout to occur the
>>> next
>>> time Orbeon goes back to the server
>>>
>>> Thanks,
>>> Jon
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3000759.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-from-upload-not-displaying-tp2965704p3006136.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws