You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Justin Stanczak <js...@vinu.edu> on 2004/12/13 02:35:49 UTC

Setting init property in visit?

I have an application that has a ticket like system. Each new visitor is 
assigned a ticket, and that ticket is stored in a property in the visit 
object. I get the ticket by accessing the global objects DAO's to 
retrieve it from the database then set it in the visit object. The 
global object keeps track of the sequence. What is the best way to 
initialize this in the visit and still be able to use the same process 
via, accessing global and setting the visit property.

-- 
Justin Stanczak, Web Manager
Vincennes University
812-888-5813


"All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Setting init property in visit?

Posted by Justin Stanczak <js...@vinu.edu>.
Thanks.

Justin Stanczak, Web Manager
Vincennes University
812-888-5813


"All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke



>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Setting init property in visit?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Dec 12, 2004, at 10:41 PM, Justin Stanczak wrote:
> Justin Stanczak wrote:
>
>> I have an application that has a ticket like system. Each new visitor 
>> is assigned a ticket, and that ticket is stored in a property in the 
>> visit object. I get the ticket by accessing the global objects DAO's 
>> to retrieve it from the database then set it in the visit object. The 
>> global object keeps track of the sequence. What is the best way to 
>> initialize this in the visit and still be able to use the same 
>> process via, accessing global and setting the visit property.
>>
> Oh, I think I figured it out. I'm going to extend the BaseEngine of 
> the application and override the createVisit method. Let me know if 
> this sounds wrong.

That is exactly the way to do it.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Setting init property in visit?

Posted by Justin Stanczak <js...@vinu.edu>.
Justin Stanczak wrote:

> I have an application that has a ticket like system. Each new visitor 
> is assigned a ticket, and that ticket is stored in a property in the 
> visit object. I get the ticket by accessing the global objects DAO's 
> to retrieve it from the database then set it in the visit object. The 
> global object keeps track of the sequence. What is the best way to 
> initialize this in the visit and still be able to use the same process 
> via, accessing global and setting the visit property.
>
Oh, I think I figured it out. I'm going to extend the BaseEngine of the 
application and override the createVisit method. Let me know if this 
sounds wrong.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org