Hi Dreamer,

I'm quite new to Tapestry myself, but let's give it a try.. :)

> 1)
> I put a Direct component on my Home page,
> whenever i try to hit the link generated by Direct, a staleSession
> page shows up. i understand that this is caused by engine running in
> stateless mode and Direct by default requires a session.
> my question is:
> Is it possible to let the framework create a session when the home page is
> displayed?

I've encountered the same 'problem'. You can give Direct a parameter 
statefull parameter (field-pararameter Boolean.FALSE) to make it NOT require 
session. If your Direct really needs a session then obviously somebody would 
have to created it earlier and it should exist.

What comes to automagically create session.. The general main principle is to 
keep application stateless as long as possible. This added to previous; 
session creation should happen when it's really needed. This has impacts on 
application desing and flow. 

> 2)
> simple question:
> if I want to dynamically change the bgcolor attribute in a table cell
> eg. <td> tag, what's the best way to do it?
> I use [Any] component to generate <td> element and use the informal
> parameter to bind the value, it works. but is there any better solution?

Well.. I'm not that sure about this, but I'd make different CSSs and change 
class of the element dynamically (with method you described).

Cheers,

Kimmo


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to