I can&#39;t find a reference to pageEventClass or the initPageEvent() method in any of the Seam source code that I have on my machine (which is most Seam versions). Are you sure this wasn&#39;t a patch you or your team was maintaining? If not, please point to the SVN URL of the UIDocument class when it had this method. Then we can get to the bottom of it. If it is a new feature -&gt; JIRA.<br>
<br>-Dan<br><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 4:47 PM, Kenneth Christensen <span dir="ltr">&lt;<a href="mailto:kec@mediatorsystems.com">kec@mediatorsystems.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Maybe someone could explain me why the &quot;pageEventClass&quot; have been<br>
removed from the UIDocument and why is it not supported by Seam PDF<br>
anymore?<br>
<br>
JBoss Seam 2.0.3:<br>
<br>
     @Override<br>
     public void encodeBegin(FacesContext context)<br>
         throws IOException<br>
     {<br>
         super.encodeBegin(context);<br>
<br>
         stream = new ByteArrayOutputStream();<br>
<br>
         try {<br>
             writer = createWriterForStream(stream);<br>
<br>
             initMetaData(context);<br>
             initPageEvent(writer);<br>
             processHeaders();<br>
<br>
             document.open();<br>
         } catch (DocumentException e) {<br>
             throw new RuntimeException(e);<br>
         }<br>
     }<br>
<br>
     protected void initPageEvent(DocWriter writer) {<br>
         if (pageEventClass != null &amp;&amp; writer instanceof PdfWriter) {<br>
             try {<br>
                 PdfPageEvent event = (PdfPageEvent)<br>
Class.forName(pageEventClass).getConstructor().newInstance();<br>
                 ((PdfWriter) writer).setPageEvent(event);<br>
             } catch (Exception e) {<br>
                 throw new RuntimeException(e);<br>
             }<br>
         }<br>
     }<br>
<br>
JBoss Seam 2.2.0:<br>
<br>
    @Override<br>
    public void encodeBegin(FacesContext context) throws IOException<br>
    {<br>
       super.encodeBegin(context);<br>
<br>
       stream = new ByteArrayOutputStream();<br>
<br>
       try<br>
       {<br>
          writer = createWriterForStream(stream);<br>
<br>
          initMetaData(context);<br>
          processHeaders();<br>
<br>
          document.open();<br>
       }<br>
       catch (DocumentException e)<br>
       {<br>
          throw new RuntimeException(e);<br>
       }<br>
    }<br>
<br>
Best regards<br>
<br>
Kenneth Christensen<br>
<br>
_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>