There is an example on 
 how to inject a property into an Application State
Object at 

http://lombok.demon.co.uk/tapestry4Demo/Inject.html


Shing

--- "Giaccone, Anthony CTR DTIC-A"
<[EMAIL PROTECTED]> wrote:

> 
> 
> Here's what I want to do..
> 
> I have a form that holds a variety of data, which
> the user will use to
> generate a query.  The query data is persistent at
> the session. This
> wayIf they wander down a path, eventually they'll
> return to the "main"
> page, and the query data will be returned from the
> "session" and they'll
> be ready to query based on the data that was last
> entered. 
> 
> This all works fine and dandy. 
> 
> What I want to do now, is set a value in this
> persistent object when the
> object is created. To provide a default value for
> one (or more) of the
> query parameters. 
> 
> Imagine for instance that you want to search a queue
> of beans for those
> beans that are in state "Pending"  as the intial
> state of the query
> page.
> 
> This seems like a perfect place to use Hivemind. The
> query data is
> already constructed by Hivemind. 
> 
> Here's the XML for the query data in the
> hivemind.xml
> 
> <module id="mil.dtic.mipr" version="1.0.0">
>       <contribution
>
configuration-id="tapestry.state.ApplicationObjects">
>       
>               <state-object name="queryData" scope="session"> 
>                       <create-instance 
>       
>
class="mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem"
> />
>               </state-object>
>       </contribution>
> </module>
> 
> So my question is.. How do I convince Hivemind to
> set the property
> status on the object MiprQueryItem to the value of
> "Pending". 
> 
> 
> 
> 





      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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

Reply via email to