There might be a problem with Dynamic Block (caveat emptor).  Howard looked at 
it and recommended what is in my previous e-mail.

regards,

Mark


-----Original Message-----
From: Shing Hing Man [mailto:[EMAIL PROTECTED]
Sent: Fri 4/22/2005 9:26 AM
To: Tapestry users
Subject: Re: page/component design question
 
If you do not like using the Conditional component,
take a look at the Block component (if you  are not
awared of it already).
Also  Mike Henderson's blog on dynamic block might be
of interest to you.
http://www.behindthesite.com/blog/C1931765677/E1630021481/

Shing

--- "Zimmek, Jan" <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I am currently developing my first
> Tapestry-Application and got a
> design-issue.
> 
> Having a border-component containing a login-box at
> the bottom of the
> screen, I thought it would be very elegant to be
> able to dynamically
> toggle this box (login <-> logout). But when I start
> up my webapp I got
> some Tapestry-Messages in stdOut:
> 
> 22.04.2005 15:03:47
> org.apache.tapestry.BaseComponentTemplateLoader
> checkAllComponentsReferenced
> SCHWERWIEGEND: Template for component
> Home/border.authPaneLogin does not
> reference embedded components: login_username and
> login_password.
> 22.04.2005 15:03:47
> org.apache.tapestry.BaseComponentTemplateLoader
> checkAllComponentsReferenced
> SCHWERWIEGEND: Template for component Home/border
> does not reference
> embedded components: authPaneLogout and
> authPaneLogin.
> 
> 
> This occurs because I declare two components in my
> border-component-spec
> which will not be referenced directly in my
> border-template (it got
> referenced through a delegate).
> 
> Here is some source-code:
> 
> MainBorder.page
> ---------------
> <component-specification class="foo.MainBorder" ...>
>     <property-specification name="authPane"
> type="org.apache.tapestry.IComponent"
> persistent="no"/>
>     <bean name="delegate"
>
class="org.apache.tapestry.valid.ValidationDelegate"/>
>     <component id="authPaneLogin" type="LoginPane"/>
>     <component id="authPaneLogout"
> type="LogoutPane"/>
> </component-specification>
> 
> MainBorder.html
> ---------------
> <span jwcid="@Delegator" delegate="ognl:authPane"/>
> 
> 
> Is this the way to implement
> dynamic-content(components) in a
> component-template or is there another way to go ?
> I simply won't go back like in struts-time and do
> those dynamic-content
> using conditionals directly in the template.
> 
> 
> How can I get rid of of the above Tapestry-Messages,
> because nearly each
> of my pages contains a MainBorder-components and for
> each of my pages an
> Tapestry-Message is written.
> 
> 
> Any help would be very appreciated.
> 
> 
> 
> Jan Zimmek
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



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

Reply via email to