[TOBAGO] How to setup my own PageRenderer in 3.0.6

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[TOBAGO] How to setup my own PageRenderer in 3.0.6

Voß, Marko
Hello,

I need to setup my own PageRenderer in Tobago 3.0.6 as we need to setup custom Meta information. 4.0.0 is not yet released and we are in a hurry to get into production this month.

I tried this in faces-config.xml:

<render-kit>
       <renderer>
             <component-family>javax.faces.Form</component-family>
             <renderer-type>Page</renderer-type>
             <renderer-class>foo.bar.MyRenderer </renderer-class>
       </renderer>
</render-kit>

MyRenderer extends PageRenderer.

It does not work. MyRenderer is not being used.

Thank you very much.

Kind regards,
Marko
Reply | Threaded
Open this post in threaded view
|

Re: [TOBAGO] How to setup my own PageRenderer in 3.0.6

Udo Schnurpfeil-4
Hi Marko,

the voting for 4.0.0 ist just done. The release will be available via
the Maven repos very soon. Tomorrow the websites will be updated.

I'll check the configuration of own renderers, that should work.

Regards

Udo


Am 07.12.17 um 14:39 schrieb Voß, Marko:

> Hello,
>
> I need to setup my own PageRenderer in Tobago 3.0.6 as we need to setup custom Meta information. 4.0.0 is not yet released and we are in a hurry to get into production this month.
>
> I tried this in faces-config.xml:
>
> <render-kit>
>        <renderer>
>              <component-family>javax.faces.Form</component-family>
>              <renderer-type>Page</renderer-type>
>              <renderer-class>foo.bar.MyRenderer </renderer-class>
>        </renderer>
> </render-kit>
>
> MyRenderer extends PageRenderer.
>
> It does not work. MyRenderer is not being used.
>
> Thank you very much.
>
> Kind regards,
> Marko
>

Reply | Threaded
Open this post in threaded view
|

Re: [TOBAGO] How to setup my own PageRenderer in 3.0.6

Udo Schnurpfeil-4
Hi,

I've testet it, and I found 2 additional points in the faces-config.xml:
You need to define the render-kit-it:

<render-kit>
  <render-kit-id>tobago</render-kit-id>
  <renderer>
    <component-family>javax.faces.Form</component-family>
    <renderer-type>Page</renderer-type>
    <renderer-class>org.apache.myfaces.tobago.example.demo.DemoPageRenderer</renderer-class>
  </renderer>
</render-kit>

and you should define an ordering, to select reliablely the double
defined renderer:

<ordering>

  <after>
    <name>tobago_core</name>
  </after>
</ordering>

Regards,

Udo

Am 07.12.17 um 23:02 schrieb Udo Schnurpfeil:

> Hi Marko,
>
> the voting for 4.0.0 ist just done. The release will be available via
> the Maven repos very soon. Tomorrow the websites will be updated.
>
> I'll check the configuration of own renderers, that should work.
>
> Regards
>
> Udo
>
>
> Am 07.12.17 um 14:39 schrieb Voß, Marko:
>> Hello,
>>
>> I need to setup my own PageRenderer in Tobago 3.0.6 as we need to setup custom Meta information. 4.0.0 is not yet released and we are in a hurry to get into production this month.
>>
>> I tried this in faces-config.xml:
>>
>> <render-kit>
>>        <renderer>
>>              <component-family>javax.faces.Form</component-family>
>>              <renderer-type>Page</renderer-type>
>>              <renderer-class>foo.bar.MyRenderer </renderer-class>
>>        </renderer>
>> </render-kit>
>>
>> MyRenderer extends PageRenderer.
>>
>> It does not work. MyRenderer is not being used.
>>
>> Thank you very much.
>>
>> Kind regards,
>> Marko
>>

Reply | Threaded
Open this post in threaded view
|

AW: [TOBAGO] How to setup my own PageRenderer in 3.0.6

Voß, Marko
Hi Udo,

thank you very much for your help. Your suggestion works.

Have a nice weekend.


Regards,
Marko

-----Ursprüngliche Nachricht-----
Von: Udo Schnurpfeil [mailto:[hidden email]]
Gesendet: Freitag, 8. Dezember 2017 11:40
An: [hidden email]
Betreff: Re: [TOBAGO] How to setup my own PageRenderer in 3.0.6

Hi,

I've testet it, and I found 2 additional points in the faces-config.xml:
You need to define the render-kit-it:

<render-kit>
  <render-kit-id>tobago</render-kit-id>
  <renderer>
    <component-family>javax.faces.Form</component-family>
    <renderer-type>Page</renderer-type>
    <renderer-class>org.apache.myfaces.tobago.example.demo.DemoPageRenderer</renderer-class>
  </renderer>
</render-kit>

and you should define an ordering, to select reliablely the double defined renderer:

<ordering>

  <after>
    <name>tobago_core</name>
  </after>
</ordering>

Regards,

Udo

Am 07.12.17 um 23:02 schrieb Udo Schnurpfeil:

> Hi Marko,
>
> the voting for 4.0.0 ist just done. The release will be available via
> the Maven repos very soon. Tomorrow the websites will be updated.
>
> I'll check the configuration of own renderers, that should work.
>
> Regards
>
> Udo
>
>
> Am 07.12.17 um 14:39 schrieb Voß, Marko:
>> Hello,
>>
>> I need to setup my own PageRenderer in Tobago 3.0.6 as we need to setup custom Meta information. 4.0.0 is not yet released and we are in a hurry to get into production this month.
>>
>> I tried this in faces-config.xml:
>>
>> <render-kit>
>>        <renderer>
>>              <component-family>javax.faces.Form</component-family>
>>              <renderer-type>Page</renderer-type>
>>              <renderer-class>foo.bar.MyRenderer </renderer-class>
>>        </renderer>
>> </render-kit>
>>
>> MyRenderer extends PageRenderer.
>>
>> It does not work. MyRenderer is not being used.
>>
>> Thank you very much.
>>
>> Kind regards,
>> Marko
>>

Reply | Threaded
Open this post in threaded view
|

Re: [TOBAGO] How to setup my own PageRenderer in 3.0.6

James Youngseok Kim
unsubscribe

On 8 December 2017 at 16:08, Voß, Marko <[hidden email]> wrote:

> Hi Udo,
>
> thank you very much for your help. Your suggestion works.
>
> Have a nice weekend.
>
>
> Regards,
> Marko
>
> -----Ursprüngliche Nachricht-----
> Von: Udo Schnurpfeil [mailto:[hidden email]]
> Gesendet: Freitag, 8. Dezember 2017 11:40
> An: [hidden email]
> Betreff: Re: [TOBAGO] How to setup my own PageRenderer in 3.0.6
>
> Hi,
>
> I've testet it, and I found 2 additional points in the faces-config.xml:
> You need to define the render-kit-it:
>
> <render-kit>
>   <render-kit-id>tobago</render-kit-id>
>   <renderer>
>     <component-family>javax.faces.Form</component-family>
>     <renderer-type>Page</renderer-type>
>     <renderer-class>org.apache.myfaces.tobago.example.demo.
> DemoPageRenderer</renderer-class>
>   </renderer>
> </render-kit>
>
> and you should define an ordering, to select reliablely the double defined
> renderer:
>
> <ordering>
>
>   <after>
>     <name>tobago_core</name>
>   </after>
> </ordering>
>
> Regards,
>
> Udo
>
> Am 07.12.17 um 23:02 schrieb Udo Schnurpfeil:
> > Hi Marko,
> >
> > the voting for 4.0.0 ist just done. The release will be available via
> > the Maven repos very soon. Tomorrow the websites will be updated.
> >
> > I'll check the configuration of own renderers, that should work.
> >
> > Regards
> >
> > Udo
> >
> >
> > Am 07.12.17 um 14:39 schrieb Voß, Marko:
> >> Hello,
> >>
> >> I need to setup my own PageRenderer in Tobago 3.0.6 as we need to setup
> custom Meta information. 4.0.0 is not yet released and we are in a hurry to
> get into production this month.
> >>
> >> I tried this in faces-config.xml:
> >>
> >> <render-kit>
> >>        <renderer>
> >>              <component-family>javax.faces.Form</component-family>
> >>              <renderer-type>Page</renderer-type>
> >>              <renderer-class>foo.bar.MyRenderer </renderer-class>
> >>        </renderer>
> >> </render-kit>
> >>
> >> MyRenderer extends PageRenderer.
> >>
> >> It does not work. MyRenderer is not being used.
> >>
> >> Thank you very much.
> >>
> >> Kind regards,
> >> Marko
> >>
>
>