Well, Insert is a terrible name :-)
There's already OutputText (for formatted output). Perhaps FormatText
would have been a better name in retrospect.
On Fri, Jun 27, 2008 at 10:06 AM, Don Ryan <[EMAIL PROTECTED]> wrote:
>
> On 26 Jun 2008, at 20:28, Howard Lewis Ship wrote:
>
>> There's some gaps waiting to be filled (not abandoned, just prioritized a
>> bit lower than more urgent bug fixes).
>
> That's great to hear. Thanks.
>
>> If you want to use T4 style, how about:
>>
>> <t:output value="property"/>
>>
>> public class Output {
>> @Parameter (required=true)
>> private String value;
>>
>> boolean beginRender(MarkupWriter writer) {
>> if (value != null) writer.write(value);
>>
>> return false; // skip body
>> }
>> }
>
> Thanks. I have a similar little component. As a total aside, I feel
> compelled to say that Output is a really terrible name for a component. Just
> about every component outputs something so the name is providing next-to-no
> information. (I called mine Text, by the way.)
>
> Regards,
>
> Don.
>
> This message has been scanned for content and viruses by the DIT Information
> Services E-Mail Scanning Service, and is believed to be clean.
> http://www.dit.ie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]