You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tim <ko...@gmail.com> on 2012/02/01 23:13:02 UTC

Component that lowercases the first letter of the body

I've been looking at making a component that can convert the first 
letter of its body to lower case.

I suspect I might need to provide a beforeRenderBody or afterRenderBody 
method with a MarkupWriter.  I can write with the MarkupWriter, but how 
do I actually get the body so I can do the transformation on it?

Thanks.

--
Tim Koop

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


Re: Component that lowercases the first letter of the body

Posted by Tim <ko...@gmail.com>.
Thanks Chris.  I knew about the css text-transform, but not about 
"first-letter".  I think this will work nicely.

--
Tim


On 01/02/2012 4:18 PM, Chris Mylonas wrote:
> couldn't you do it in CSS?
> https://drupal.org/node/222543#comment-732983
>
> "...first-letter css pseudo-element instead"
>
>
> On 02/02/2012, at 9:13 AM, Tim wrote:
>
>> I've been looking at making a component that can convert the first letter of its body to lower case.
>>
>> I suspect I might need to provide a beforeRenderBody or afterRenderBody method with a MarkupWriter.  I can write with the MarkupWriter, but how do I actually get the body so I can do the transformation on it?
>>
>> Thanks.
>>
>> --
>> Tim Koop
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: Component that lowercases the first letter of the body

Posted by Chris Mylonas <ch...@opencsta.org>.
couldn't you do it in CSS?
https://drupal.org/node/222543#comment-732983

"...first-letter css pseudo-element instead"


On 02/02/2012, at 9:13 AM, Tim wrote:

> I've been looking at making a component that can convert the first letter of its body to lower case.
> 
> I suspect I might need to provide a beforeRenderBody or afterRenderBody method with a MarkupWriter.  I can write with the MarkupWriter, but how do I actually get the body so I can do the transformation on it?
> 
> Thanks.
> 
> --
> Tim Koop
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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