Hi Rahat.

As you should expect, Howard's replies are usually insightful. ;-)
Here however, his idea (which he beat me to) probably relies on you
knowing all about parameters:
http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.components.formal

In short, the style parameter in the template is an informal parameter.
If your component also generates a style parameter (via .page file etc)
it overrides the template. That's how you can make it visible in the app.

Cheers,
Nick.


Rahat wrote:
Many thanks For reply Howard.

But this will not be visible in the application too. I want something that
will be visible in the application but not in the Static Mocks. For example:

in "foobar.html" I have a "Direclink" component like this:

 < a jwcid="[EMAIL PROTECTED]" listener="ognl:listeners.dothis"
parameters="ognl: id"> My Link
  < /a>

When I open the static html mocks(Tomcat is not running, just open
"foobar.html" page in a browser)
this link shows up. Although as a non working Item. But I dont want to show
it in my static mocks. your previous Idea hides it from Static Html but also from the application.
thanks in advance.



Howard Lewis Ship wrote:

So ... you want the Block to be invisible when previewing.  How about:

<div jwcid="[EMAIL PROTECTED]" style="display:none;">

...

</div>

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

Reply via email to