Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by ChristianGorbach:
http://wiki.apache.org/tapestry/Tapestry5HowToXhtml

New page:
Step 1:

create your own implementation of MarkupWriterFactory:
{{{
public class XhtmlMarkupWriterFactoryImpl implements MarkupWriterFactory {

    private final MarkupModel xmlModel = new XMLMarkupModel();

    public MarkupWriter newMarkupWriter(ContentType contentType) {
        return new MarkupWriterImpl(xmlModel, 
contentType.getParameter("charset"));
    }

}}}

Step 2:
Add an alias override to your module:
{{{
    public static void contributeAlias(Configuration<AliasContribution> 
configuration) {
        configuration.add(AliasContribution.create(MarkupWriterFactory.class, 
new XhtmlMarkupWriterFactoryImpl()));
    }
}}}


That's it. Now: validate!




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

Reply via email to