thanks Robert, that it what i needed.

jm.


Robert Zeigler wrote:
> 
> <t:delegate to="block"/>
> 
> .java:
> 
> @Inject
> private Block b1;
> 
> @Inject
> private Block b2;
> 
> public Bock getBlock() {
>    if(true) {
>      return b1;
>    } else {
>      return b2;
>    }
> }
> 
> Robert
> 
> On Jun 9, 2008, at 6/95:51 AM , Janko Muzykant wrote:
> 
>>
>> hiding the blocks would be easy (excatly as you wrote - it's just  
>> html :),
>> but i would like one of the blocks to be _visible_ at the beginning.
>> unfortunately as for now they are even not rendered so there is no  
>> option to
>> change their styles. sorry for a little bit missleading topic.
>>
>> jm.
>>
>>
>>
>>
>> nicholas Krul wrote:
>>>
>>> style="display:none"
>>>
>>> its just html / css
>>>
>>> On Mon, Jun 9, 2008 at 11:27 AM, Janko Muzykant <[EMAIL PROTECTED]>  
>>> wrote:
>>>
>>>>
>>>> hi, i have a couple of t:block components on my page:
>>>>
>>>> <t:block t:id="b1"> .. </t:block>
>>>> <t:block t:id="b2"> .. </t:block>
>>>>
>>>> and i would like initially block "b1" to be visible. how may I do  
>>>> it?
>>>>
>>>> thanks,
>>>> jm.
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/T5-invisible-t%3Ablock-component-tp17730085p17730085.html
>>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/T5-invisible-t%3Ablock-component-tp17730085p17730368.html
>> Sent from the Tapestry - User mailing list archive at Nabble.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-invisible-t%3Ablock-component-tp17730085p17730625.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to