The difference is the amount of coding that you have to do.
If you don't use ASOs you'll have to implement the code that puts your
object in session, the string constant that has the name of the session
attribute, in every page/component that you want to access the value you'll
have access the session again. Also, if you declare the state object in
hivemind you get all the goodies like dependency injection, etc...

Hope this helped,

Hugo

On 5/3/07, Yohan Yudanara <[EMAIL PROTECTED]> wrote:

What is the difference between accessing HttpSession directly using this
injection:
<inject property="request" object="service:
tapestry.globals.HttpServletRequest"/>

and using hivemodule.xml state-object like this:
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="cart" scope="session">
<create-instance class="java.util.ArrayList"/>
</state-object>
</contribution>

Is there any advantages and disadvantages?
Which one is recommended?

Thanks..









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to