It's only 5 lines of xml.  We can't help if your boss is being unreasonable.
The solution is there if you want it - if not you can of course try to
create your own persistence layer using Spring.  Possibly using the existing
spring integration available as your starting point. ...but either way - if
you want to end your suffering just peak at it ..maybe the easy answer will
tempt you eventually:

<contribution configuration-id="tapestry.state.ApplicationObjects">
 <state-object name="registration-data" scope="session">
   <create-instance class="org.example.registration.RegistrationData"/>
 </state-object>
</contribution>



On 5/5/07, li li <[EMAIL PROTECTED]> wrote:

I want to use HttpSession,not SessionBean(EJB).  I don't want to use
httpRequest in my page class.It will make my class difficult to unit Test.




*离人网 *

------------------------------
From: *"王文楠" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" <users@tapestry.apache.org>*
To: *"Tapestry users" <users@tapestry.apache.org>*
Subject: *Re: I want to use httpSession,but don't use hivemind?*
Date: *Sat, 5 May 2007 23:06:02 +0800*
>you can try to use spring like this,define a bean with session scope
>,it's a
>new fiture in spring2.0.
>then you can use annotation @InjectObject to get the session bean
>controled
>by spring


------------------------------
请使用 MSN Messenger <http://g.msn.com/8HMACNCN/2728??PS=47575> 与联机的朋友进行交流
--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to