From jbosstools-commits at lists.jboss.org Thu Feb 26 17:44:14 2009 Content-Type: multipart/mixed; boundary="===============6816843106062908715==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r13849 - trunk/birt/docs/en/modules. Date: Thu, 26 Feb 2009 17:44:14 -0500 Message-ID: --===============6816843106062908715== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-02-26 17:44:14 -0500 (Thu, 26 Feb 2009) New Revision: 13849 Modified: trunk/birt/docs/en/modules/birt_seam_web_project.xml Log: https://jira.jboss.org/jira/browse/JBDS-388 continuing writing the chapter = Modified: trunk/birt/docs/en/modules/birt_seam_web_project.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/docs/en/modules/birt_seam_web_project.xml 2009-02-26 22:42:3= 4 UTC (rev 13848) +++ trunk/birt/docs/en/modules/birt_seam_web_project.xml 2009-02-26 22:44:1= 4 UTC (rev 13849) @@ -81,7 +81,7 @@ =
Creating a web project - = + Follow the next steps to create a web project @@ -91,60 +91,250 @@ Choose the 2.0 version of the Seam facet - Add the "Birt Reporting Runtime Component"= facet + Add the "Birt Reporting Runtime Component"= facet - = +
- Adding "Birt Reporting Runtime Component" Fa= cet + Adding "Birt Reporting Runtime Component" Fac= et -
= - = + + - Or choose the "JBoss BIRT Integration Web Proje= ct" configuration + Or choose the "JBoss BIRT Integration Web Proje= ct" + configuration - = +
- Choosing "JBoss BIRT Integration Web Project "= ; Configuration + Choosing "JBoss BIRT Integration Web Project " + Configuration -
= - = + + - Create the birttests.xhtml, testbirt.xhtml and testb= irt1.xhtml pages as follows: + Create the birttests.xhtml, testbirt.xhtml and testb= irt1.xhtml pages as + follows: - Example: + birttests.xhtml: - = - = + + = + xmlns:s=3D"http://jboss.com/prod= ucts/seam/taglib" + xmlns:ui=3D"http://java.sun.com/= jsf/facelets" xmlns:f=3D"http://java.sun.com/jsf/core" = + xmlns:h=3D"http://java.sun.com/j= sf/html" = + xmlns:rich=3D"http://richfaces.o= rg/rich" = + template=3D"layout/template.xhtm= l"> + = = - = - Welcome to JBoss BIRT! = -
  • = -
  • =
  • = -
-]]>
+ = + Welcome to JBoss BIRT! = +
    +
  • = +
  • = +
+
= + + + ]]>
= -
+ = + + testbirt.xhtml: + + = + + = + + = + ]]> + = + + testbirt1.xhtml: + = + = + = + ]]> + = + = + + + Try the tests out by accessing http://localhost:8080= //birttests.seam with your web browser. + + + = +
+ Trying the tests out. First Page + + + + + +
+ = +
+ Trying the tests out. Second Page + + + + + +
+ = +
+ Trying the tests out. Third Page + + + + + +
+ = +
+ Trying the tests out. Forth Page + + + + + +
+ = + The birt tag recognizes most of the parameters described on = the BIRT Report Viewer Parameters page. The attributes= of the birt tag don't contain the "__" prefix. The param tag describes rep= ort parameters. It supports the following attributes: + + + name - the parameter name (required) + + + value - the parameter value (required) + + + isnull - specifies that a report parameter has a nul= l value (optional) + + + islocale - specifies whether the parameter is locali= zed (optional) + + + These tags are defined in the org.jboss.birt.core/resources/= jboss-seam-birt.jar library that contains source. + It is possible to embed a BIRT report in some Seam xhtml pag= e. For instance: + + + + Example: + + <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona= l//EN" = + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans= itional.dtd"> + +<ui:composition xmlns=3D"http://www.w3.org/1999/xhtml" + xmlns:s=3D"http://jboss.com/products/seam/taglib" + xmlns:ui=3D"http://java.sun.com/jsf/facelets" + xmlns:f=3D"http://java.sun.com/jsf/core" + xmlns:h=3D"http://java.sun.com/jsf/html" + xmlns:rich=3D"http://richfaces.org/rich" + xmlns:b=3D"http://jboss.com/products/seam/birt" = + template=3D"layout/template.xhtml"> + = +<ui:define name=3D"body"> = + <h:messages globalOnly=3D"true" styleClass=3D"message" id=3D"global= Messages"/> + = + <rich:panel> + <f:facet name=3D"header">Products</f:facet> + + <b:birt designType=3D"embed" + designName=3D"ProductCatalog.rptdesign" + embeddable=3D"true" + masterpage=3D"false"> + </b:birt> = + + = + <div style=3D"clear:both"/> + = + </rich:panel> + = + <div class=3D"actionButtons"> = + + <s:button view=3D"/ProductsEdit.xhtml" = + id=3D"edit" = + value=3D"Edit"/> + = + <s:button view=3D"/BirtProductsPdf.xhtml" = + id=3D"BirtProductPdf" = + value=3D"Product Catalog - PDF"/> + = + <s:button view=3D"/BirtProductsFrameset.xhtml" = + id=3D"BirtProductFrameset" = + value=3D"Product Catalog - Frameset"/> + = + <s:button view=3D"/BirtProductsEmbedded.xhtml" = + id=3D"BirtProductEmbedded" = + value=3D"Product Catalog - Embedded"/> + + <s:button view=3D"/TopSellingProducts.xhtml" = + id=3D"TopSellingProducts" = + value=3D"Top Selling Products"/> + = + <s:button view=3D"/#{empty productsFrom ? 'ProductsList' : prod= uctsFrom}.xhtml" + id=3D"done" + value=3D"Done"/> + + </div> + +</ui:define> + +</ui:composition> + = + + = +
+ Embeding BIRT Report in Seam xhtml Page. First Page</tit= le> + <mediaobject> + <imageobject> + <imagedata fileref=3D"images/BirtSeamProject/BirtRepor= tInSeamPage1.png"/> + </imageobject> + </mediaobject> + </figure> + + <figure> + <title>Embeding BIRT Report in Seam xhtml Page. Second Page</t= itle> + <mediaobject> + <imageobject> + <imagedata fileref=3D"images/BirtSeamProject/BirtRepor= tInSeamPage2.png"/> + </imageobject> + </mediaobject> + </figure> = + + +</section> + = + = </chapter> --===============6816843106062908715==--