help with renderer implementation

View: New views
4 Messages — Rating Filter:   Alert me  

help with renderer implementation

by Michael Concini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm currently working on implementing the renderers for UIOutcomeTarget
for the JSF 2.0 spec and need some help in figuring out how the builder
is performing the code generation for other components so I can then
create my own.

So far, I've written the following classes for
org.apache.myfaces.shared_impl.renderkit.html to handle the
encoding/decoding:
HtmlOutcomeTargetRendererBase - parent class to handle common actions
for both buttons and links (e.g. calling into getBookmarkableURL, etc)
HtmlOutcomeTargetLinkRendererBase - bookmarable link renderer
HtmlOutcomeTargetButtonRendererBase - bookmarkable button renderer

What I need some assistance with is the builder plugin work.  I see
several potential places where I'd need to implement code, but its hard
to tell what is really necessary, what might be generated in addition to
the javax.faces.component.html classes, and what may be remnants of
older versions of myfaces.

There are builder xml files:
src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/html/Html<component>*.xml
src/main/resources/META-INF/maven-faces-plugin/renderers/javax/faces/html/Html<component>.xml

annotated impl files:
org.apache.myfaces.renderkit.html.Html<component>Renderer

and there are also tag related classes:
org.apache.myfaces.taglib.html.Html<component>Tag
org.pache.myfaces.shared_impl.taglib.html.Html<component>ELTagBase

Is there someone who has worked on this before who could help me out
with how to do this?  Is there a step by step documented somewhere?  I
did some searches on the myfaces wiki and was unable to find anything
that was much help. Any help would be much appreciated.

Thanks,
Mike

Re: help with renderer implementation

by Werner Punz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael Concini schrieb:

> Is there someone who has worked on this before who could help me out
> with how to do this?  Is there a step by step documented somewhere?  I
> did some searches on the myfaces wiki and was unable to find anything
> that was much help. Any help would be much appreciated.
>
My guess is leonardo is the correct person to approach, he has worked on
the builder plugins, afair!

Werner


Re: help with renderer implementation

by Leonardo Uribe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

The documentation of myfaces-builder-plugin, is available here:

http://myfaces.apache.org/build-tools/plugins/myfaces-builder-plugin/index.html

Let me know if there is something missing.

"build" module is not used anymore (belongs to maven-faces-plugin and it is not used anymore).

regards

Leonardo Uribe

2009/7/2 Werner Punz <werner.punz@...>
Michael Concini schrieb:


Is there someone who has worked on this before who could help me out with how to do this?  Is there a step by step documented somewhere?  I did some searches on the myfaces wiki and was unable to find anything that was much help. Any help would be much appreciated.

My guess is leonardo is the correct person to approach, he has worked on the builder plugins, afair!

Werner



Re: help with renderer implementation

by Michael Concini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the link.  I was looking for something like this in the wiki
instead of the main site.  I'll take a look through the linked pages and
let you know if I have any more questions or if I find any missing docs.

Leonardo Uribe wrote:

> Hi
>
> The documentation of myfaces-builder-plugin, is available here:
>
> http://myfaces.apache.org/build-tools/plugins/myfaces-builder-plugin/index.html
>
> Let me know if there is something missing.
>
> "build" module is not used anymore (belongs to maven-faces-plugin and
> it is not used anymore).
>
> regards
>
> Leonardo Uribe
>
> 2009/7/2 Werner Punz <werner.punz@...
> <mailto:werner.punz@...>>
>
>     Michael Concini schrieb:
>
>
>         Is there someone who has worked on this before who could help
>         me out with how to do this?  Is there a step by step
>         documented somewhere?  I did some searches on the myfaces wiki
>         and was unable to find anything that was much help. Any help
>         would be much appreciated.
>
>     My guess is leonardo is the correct person to approach, he has
>     worked on the builder plugins, afair!
>
>     Werner
>
>