Encoding issue in screenFop
---------------------------

                 Key: OFBIZ-2183
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2183
             Project: OFBiz
          Issue Type: Bug
          Components: ALL COMPONENTS
    Affects Versions: SVN trunk
            Reporter: Jacques Le Roux


Here is an example of the result as it's rendered (order view). 
ScreenFopViewHandler.render() does not support HTML encoded special chars
Obviously we need either to step in called fo.ftl files or to change 
ScreenFopViewHandler.render. I tried the 2d as it seamed more general, but did 
not succeed and I run out of time now

{code}
<!-- Begin Screen 
component://order/widget/ordermgr/OrderPrintScreens.xml#OrderPDF -->
<!-- Begin Screen component://common/widget/CommonScreens.xml#FoReportDecorator 
-->
<!-- Begin Template component://common/webcommon/includes/reportTemplate.fo.ftl 
-->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
    
>
    <fo:layout-master-set>
        <fo:simple-page-master master-name="main-page"
              page-width="8.5in" page-height="11in"
              margin-top="0.4in" margin-bottom="0.4in"
              margin-left="0.6in" margin-right="0.4in">
            <fo:region-body margin-top="1.2in" margin-bottom="0.4in"/>
            <fo:region-before extent="1.2in"/>
            <fo:region-after extent="0.4in"/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name="main-page-landscape"
              page-width="11in" page-height="8.5in"
              margin-top="0.4in" margin-bottom="0.4in"
              margin-left="0.6in" margin-right="0.4in">
            <fo:region-body margin-top="1.2in" margin-bottom="0.4in"/>
            <fo:region-before extent="1.2in"/>
            <fo:region-after extent="0.4in"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
  
    <fo:page-sequence master-reference="main-page">

        <fo:static-content flow-name="xsl-region-before">
            <fo:table>
                <fo:table-column column-number="1" 
column-width="proportional-column-width(50)"/>
                <fo:table-column column-number="2" 
column-width="proportional-column-width(50)"/>
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
<!-- Begin Section Widget  -->
<!-- Begin Screen 
component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo -->
<!-- Begin Template 
component://order/webapp/ordermgr/order/companyHeader.fo.ftl -->

<fo:block text-align="left">
    <fo:external-graphic 
src="http&amp;#58;&amp;#47;&amp;#47;ofbiz.apache.org&amp;#47;images&amp;#47;ofbiz_logo.jpg"
 overflow="hidden" height="40px" content-height="scale-to-fit"/>
</fo:block>

<fo:block font-size="8pt">
    <fo:block>Your Company Name Here</fo:block>
            <fo:block>2003 Open Blvd</fo:block>
            
            <fo:block>Open City, CA 999999, United States</fo:block>
 
</fo:block>
<!-- End Template component://order/webapp/ordermgr/order/companyHeader.fo.ftl 
-->
<!-- End Screen 
component://order/widget/ordermgr/OrderPrintScreens.xml#CompanyLogo -->
<!-- End Section Widget  -->

                        </fo:table-cell>
                        <fo:table-cell>
<!-- Begin Section Widget  -->
<!-- Begin Template 
component://order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl -->
                  <fo:table>
                    <fo:table-column column-width="1.5in"/>
                    <fo:table-column column-width="1.5in"/>
                    <fo:table-body>
                    <fo:table-row>
                      <fo:table-cell>
                         <fo:block number-columns-spanned="2" 
font-weight="bold">Ventes</fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                    
                    <fo:table-row>
                      <fo:table-cell><fo:block>Date 
command&amp;eacute;e</fo:block></fo:table-cell>
                      <fo:table-cell><fo:block>23 avril 
2008</fo:block></fo:table-cell>
                    </fo:table-row>
                                  
                    <fo:table-row>
                      <fo:table-cell><fo:block>Commande 
#</fo:block></fo:table-cell>
                      
<fo:table-cell><fo:block>DEMO10090</fo:block></fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                      <fo:table-cell><fo:block>Statut 
Actuel</fo:block></fo:table-cell>
                      <fo:table-cell><fo:block 
font-weight="bold">Approuv&amp;eacute;</fo:block></fo:table-cell>
                    </fo:table-row>
                  </fo:table-body>
                </fo:table>
<!-- End Template 
component://order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl -->
<!-- End Section Widget  -->

                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:static-content>

        <fo:static-content flow-name="xsl-region-after">
            <fo:block font-size="10pt" text-align="center" space-before="10pt">
                Page <fo:page-number/> de <fo:page-number-citation 
ref-id="theEnd"/>
            </fo:block>
        </fo:static-content>

        <fo:flow flow-name="xsl-region-body">
<!-- Begin Section Widget  -->
<!-- Begin Template 
component://order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl -->
       <fo:table border-spacing="3pt">
          <fo:table-column column-width="3.75in"/>
          <fo:table-column column-width="3.75in"/>
          <fo:table-body>
            <fo:table-row>                 
               <fo:table-cell>
                 <fo:block font-weight="bold">Adresse de facturation:</fo:block>
                   <fo:block>Demo Customer</fo:block>
                   
                   <fo:block>2004 Factory Blvd</fo:block>
                   
                   <fo:block>Orem, UT 84057</fo:block>
               </fo:table-cell>
               <fo:table-cell>
                 <fo:block font-weight="bold">Adresse de livraison:</fo:block>
                   <fo:block>Demo Customer</fo:block>
                   
                   <fo:block>2004 Factory Blvd</fo:block>
                   
                   <fo:block>Orem, UT 84057</fo:block>
               </fo:table-cell>
            </fo:table-row>
         </fo:table-body>
       </fo:table>
       <fo:block white-space-collapse="false"> </fo:block> 
       
       <fo:table border-spacing="3pt">
          <fo:table-column column-width="1.75in"/>
          <fo:table-column column-width="4.25in"/>
          
          <fo:table-body>
            <fo:table-row>
                <fo:table-cell><fo:block font-weight="bold">Information sur le 
paiement:</fo:block></fo:table-cell>
                <fo:table-cell><fo:block>
                             Visa 1111 02&amp;#47;2011
                      </fo:block>
                 </fo:table-cell>
            </fo:table-row>
        
            <fo:table-row>
               <fo:table-cell><fo:block font-weight="bold">Informations sur le 
contenu de l&amp;#39;exp&amp;eacute;dition:</fo:block></fo:table-cell>
                  <fo:table-cell>
                        <fo:block>
                      NEXT_DAY
                     </fo:block>
               </fo:table-cell>
             </fo:table-row>
             <fo:table-row>
               <fo:table-cell><fo:block font-weight="bold">Conditions de 
commande: </fo:block></fo:table-cell>
               <fo:table-cell white-space-collapse="false"></fo:table-cell>
             </fo:table-row>
          </fo:table-body>
       </fo:table>

<fo:block space-after="10pt"/>
<!-- End Template 
component://order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl -->
<!-- Begin Template 
component://order/webapp/ordermgr/order/orderReportBody.fo.ftl -->
        <fo:table border-spacing="3pt">

       <fo:table-column column-width="3.5in"/>
       <fo:table-column column-width="1in"/>
       <fo:table-column column-width="1in"/>
       <fo:table-column column-width="1in"/>
  
       <fo:table-header>
           <fo:table-row>
               <fo:table-cell><fo:block 
font-weight="bold">Article</fo:block></fo:table-cell>
               <fo:table-cell text-align="center"><fo:block 
font-weight="bold">Quantit&amp;eacute;</fo:block></fo:table-cell>
               <fo:table-cell text-align="center"><fo:block 
font-weight="bold">Unit&amp;eacute; &amp;#47; Liste</fo:block></fo:table-cell>
               <fo:table-cell text-align="center"><fo:block 
font-weight="bold">Sous-total</fo:block></fo:table-cell>
           </fo:table-row>        
       </fo:table-header>
        
            <fo:table-body>
                  <fo:table-row>
                        <fo:table-cell>
                            <fo:block>
                                GZ-2644 - Round Gizmo
                               </fo:block>
                          </fo:table-cell>
                              <fo:table-cell 
text-align="right"><fo:block>1</fo:block></fo:table-cell>            
                            <fo:table-cell text-align="right"><fo:block>38,40 
$</fo:block></fo:table-cell>
                            <fo:table-cell text-align="right"><fo:block>
0,00 $</fo:block></fo:table-cell>
                       </fo:table-row>
                       <fo:table-row>
                        <fo:table-cell 
number-columns-spanned="2"><fo:block><fo:inline 
font-style="italic">Ajustements</fo:inline>: -38,40 $</fo:block></fo:table-cell>
                    </fo:table-row>
            <fo:table-row>
               <fo:table-cell></fo:table-cell>
               <fo:table-cell number-columns-spanned="2"><fo:block 
font-weight="bold">Port et emballage :  </fo:block></fo:table-cell>
               <fo:table-cell text-align="right"><fo:block>12,45 
$</fo:block></fo:table-cell>
            </fo:table-row>

                    <fo:table-row>
                        <fo:table-cell></fo:table-cell>
                        <fo:table-cell number-columns-spanned="2"><fo:block 
font-weight="bold">Sous-total articles</fo:block></fo:table-cell>
                        <fo:table-cell text-align="right"><fo:block>0,00 
$</fo:block></fo:table-cell>
                    </fo:table-row>
                    <fo:table-row>
                        <fo:table-cell></fo:table-cell>
                        <fo:table-cell number-columns-spanned="2"><fo:block 
font-...
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to