If you are using the DSP Tag Library in developing your gears, you need to take precautions to avoid conflicts among multiple gear instances on the same page. To do so, observe the following guidelines:
Perform as much form-related functionality as possible on a full-page view. During the full-page view only one gear instance will be interacting with any request-scoped Nucleus component. Only on a shared view can you have more than one gear instance interact with the same request scoped component.
Session scoped Nucleus components will always be shared among all gear instances for the life of the user’s session.
All global scoped Nucleus components will be shared across all gear instances across all sessions.
When you need to use a form handler on a shared view page, don’t set any gear instance specific information in properties of the form handler using the
<dsp:setvalue>
tag. Instead, pass this information in hidden fields. If you usesetvalue
tags, then the lastsetvalue
on the page will overwrite previoussetvalue
tags.If you are performing anything related to the gear environment from a form handler, pass the environment-related parameters to the form handler in hidden fields and re-create the
GearEnvironment
object in your form handler using these parameters.