[jboss-cvs] jboss-seam/examples/itext/view ...

Norman Richards norman.richards at jboss.com
Thu Jun 28 21:09:19 EDT 2007


  User: nrichards
  Date: 07/06/28 21:09:19

  Modified:    examples/itext/view  chartimage.xhtml
  Log:
  use ajax4jsf
  
  Revision  Changes    Path
  1.5       +39 -25    jboss-seam/examples/itext/view/chartimage.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: chartimage.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/itext/view/chartimage.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- chartimage.xhtml	29 Jun 2007 00:54:59 -0000	1.4
  +++ chartimage.xhtml	29 Jun 2007 01:09:19 -0000	1.5
  @@ -3,7 +3,8 @@
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:f="http://java.sun.com/jsf/core"
  -      xmlns:h="http://java.sun.com/jsf/html">
  +      xmlns:h="http://java.sun.com/jsf/html"
  +      xmlns:a="https://ajax4jsf.dev.java.net/ajax">
   <head>
       <title>Seam PDF</title>
   </head>
  @@ -19,20 +20,32 @@
   
       <h:form>
           <s:validateAll>
  -        Title: <h:inputText value="#{chart.title}" /> <br />
  +        Title: <h:inputText value="#{chart.title}">
  +            <a:support  event="onchange" reRender="chart" />
  +        </h:inputText>
  +        <br />
  +
           Height: <h:inputText value="#{chart.height}" /> 
           Width: <h:inputText value="#{chart.width}" /> <br />
           Category Label: <h:inputText value="#{chart.categoryAxisLabel}" /> 
           Value Label: <h:inputText value="#{chart.valueAxisLabel}" />  <br />
   
   
  -        3D: <h:selectBooleanCheckbox value="#{chart.is3d}" /> 
  -        Legend: <h:selectBooleanCheckbox value="#{chart.legend}" /> <br />
  -        </s:validateAll>
   
  -        <h:commandButton value="change" />
  +
  +        3D: <h:selectBooleanCheckbox value="#{chart.is3d}">
  +                <a:support  event="onchange" reRender="chart" />
  +            </h:selectBooleanCheckbox>
  +
  +        Legend: <h:selectBooleanCheckbox value="#{chart.legend}">
  +                <a:support  event="onchange" reRender="chart" />
  +            </h:selectBooleanCheckbox>
  +        <br />
  +
  +        </s:validateAll>
       </h:form>
   
  +    <a:outputPanel id="chart">
       <p:barchart title="#{chart.title}"  orientation="vertical"
                   is3D="#{chart.is3d}"   legend="#{chart.legend}" 
                   width="#{chart.width}" height="#{chart.height}" 
  @@ -52,6 +65,7 @@
               </ui:repeat>
           </p:series>
       </p:barchart>
  +    </a:outputPanel>
       
   </body>
   </html>
  
  
  



More information about the jboss-cvs-commits mailing list