You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jones <da...@murieston.com> on 2009/12/04 16:08:57 UTC
T5 - MarkupWriterListener
How do I register my implementation with the framework? I've tried a number
of things in AppModule which didn't work.
Many Thanks,
Daniel
public class XHTMLListener implements MarkupWriterListener {
public void elementDidEnd(Element pArg0) {
System.out.println("ELEMENT DID END");
}
public void elementDidStart(Element pArg0) {
System.out.println("ELEMENT DID START");
}
}
--
View this message in context: http://old.nabble.com/T5---MarkupWriterListener-tp26635916p26635916.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 - MarkupWriterListener
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Sat, 05 Dec 2009 10:55:57 -0200, Daniel Jones <da...@murieston.com>
escreveu:
> Thanks for your reply Thiago.
You're welcome!
> The mixin method would work I guess but what I'm trying to do is remove
> the 'name' attribute generated by the Form component (because it is not
> valid in the Strict Doctype).
You can decorate and advise the MarkupWriterFactory service to do that.
Anyway, I don't know if there's a JIRA for that alrady. If not, please
post one.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 - MarkupWriterListener
Posted by Daniel Jones <da...@murieston.com>.
Thanks for your reply Thiago.
The mixin method would work I guess but what I'm trying to do is remove the
'name' attribute generated by the Form component (because it is not valid in
the Strict Doctype). I don't want to add a mixin to every form in my
application. Is there any way that I can register this with the framework
when the application starts? I.e. get hold of the MarkupWriter so that I
can call its setListener method?
Daniel
Thiago H. de Paula Figueiredo wrote:
>
> Em Fri, 04 Dec 2009 13:08:57 -0200, Daniel Jones <da...@murieston.com>
> escreveu:
>
>> How do I register my implementation with the framework? I've tried a
>> number of things in AppModule which didn't work.
>
> Try creating a mixin that adds your MarkupWriterListener to the
> MarkupWriter in ints setupRender() method.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/T5---MarkupWriterListener-tp26635916p26655420.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 - MarkupWriterListener
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Fri, 04 Dec 2009 13:08:57 -0200, Daniel Jones <da...@murieston.com>
escreveu:
> How do I register my implementation with the framework? I've tried a
> number of things in AppModule which didn't work.
Try creating a mixin that adds your MarkupWriterListener to the
MarkupWriter in ints setupRender() method.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org