1 Reply Latest reply on Apr 24, 2007 9:51 AM by konikoni

    Encoding

    konikoni

      I do add ajax4jsf to application.
      Befor, i just add <?xml version="1.0" encoding="ISO-8859-1"?> to a page and works,

      now i load a page with aj4:include the page begin with <s:div and <?xml version="1.0" encoding="ISO-8859-1"?> doesn`t work. What can i use instead?

        • 1. Re: Encoding
          konikoni

           

          <?xml version="1.0" encoding="ISO-8859-1"?>
          <s:div style="margin-top:5px" xmlns="http://www.w3.org/1999/xhtml"
           xmlns:s="http://jboss.com/products/seam/taglib"
           xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:c="http://java.sun.com/jstl/core"
           xmlns:rich="http://richfaces.ajax4jsf.org/rich"
           xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
          
           <a4j:form>
           <rich:panel>
           <h:outputText value="Fahrzeugdaten: "/>
           <h:panelGrid columns="2">
           <h:outputText value="FNr: "/> <h:outputText value="#{kfz.id}"/>
           <h:outputText value="Fabrikat: "/><h:outputText value="#{kfz.hersteller.bezeichnung}"/>
           <h:outputText value="Modell: "/><h:outputText value="#{kfz.kfzmodel.bezeichnung}"/>
           <h:outputText value="Kategorie: "/><h:outputText value="#{kfz.category}"/>
           <h:outputText value="Leistung (KW): " /> <h:outputText value="#{kfz.leistung}" />
           <h:outputText value="Getriebe: "/> <h:outputText value="#{kfz.getriebe}"/>
           <h:outputText value="Kraftstoffart: "/> <h:outputText value="#{kfz.kraftstoffart}"/>
           <h:outputText value="Feinstaubplakette: "/><h:outputText value="#{kfz.fsplakette}" />
           </h:panelGrid>
          
          
           </rich:panel>
          
           <rich:panel style="margin-top:5px">
          
           <h:panelGrid columns="3">
           <h:outputText value="Standort: "/> <h:outputText value="#{kfz.filliale.plz}"/> <h:outputText value="#{kfz.filliale.ort}"/>
           </h:panelGrid>
          
          
           </rich:panel>
          
           <rich:panel style="margin-top:5px">
           <h:outputText id="catsel1" value="Ausstattungdetails: "/>
           <h:panelGrid columns="6">
           <h:selectBooleanCheckbox title="AHK" value="#{kfz.ahk}" disabled="true" /><h:outputText value="AHK"/>
           <h:selectBooleanCheckbox title="Allradantrieb" value="#{kfz.allradantrieb}" disabled="true" /><h:outputText value="Allradantrieb"/>
           <h:selectBooleanCheckbox title="Einparkhilfe" value="#{kfz.einparkhilfe}" disabled="true" /><h:outputText value="Einparkhilfe"/>
           <h:selectBooleanCheckbox title="klimaanlage" value="#{kfz.klimaanlage}" disabled="true" /><h:outputText value="Klimaanlage"/>
           <h:selectBooleanCheckbox title="Klimaautomatik" value="#{kfz.klimaautomatik}" disabled="true"/><h:outputText value="Klimaautomatik"/>
           <h:selectBooleanCheckbox title="Navigationssystem" value="#{kfz.navi}" disabled="true" /><h:outputText value="Navigationssystem"/>
           <h:selectBooleanCheckbox title="Schiebedach" value="#{kfz.schiebedach}" disabled="true" /><h:outputText value="Schiebedach"/>
           <h:selectBooleanCheckbox title="Sitzheizung" value="#{kfz.sitzheizung}" disabled="true" /><h:outputText value="Sitzheizung"/>
           <h:selectBooleanCheckbox title="Standheizung" value="#{kfz.standheizung}" disabled="true" /><h:outputText value="Standheizung"/>
           <h:selectBooleanCheckbox title="Telefonfreisprechanlage" value="#{kfz.tanlage}" disabled="true"/><h:outputText value="Telefonfreisprechanlage"/>
           <h:selectBooleanCheckbox title="Tempomat" value="#{kfz.tempomat}" disabled="true"/><h:outputText value="Tempomat"/>
           </h:panelGrid>
           </rich:panel>
          
           <rich:panel style="margin-top:5px">
           <h:outputText id="catsel2" value="Sonderausstattung: "/>
           <h:panelGrid columns="6">
           <h:selectBooleanCheckbox title="behindertengerecht" value="#{kfz.bgerecht}" disabled="true" /><h:outputText value="behindertengerecht"/>
           <h:selectBooleanCheckbox title="Fahrschulausrüstung" value="#{kfz.fsausruestung}" disabled="true" /><h:outputText value="Fahrschulausrüstung"/>
           <h:selectBooleanCheckbox title="krankentransportgeeignet" value="#{kfz.krankentrg}" disabled="true" /><h:outputText value="krankentransportgeeignet"/>
           <h:selectBooleanCheckbox title="Taxiausrüstung" value="#{kfz.taxi}" disabled="true"/><h:outputText value="Taxiausrüstung"/>
           </h:panelGrid>
           </rich:panel>
           <rich:panel style="margin-top:5px">
           <h:outputText value="Kontakt: "/>
           <h:panelGrid columns="4">
           <h:outputText value="Firma: "/> <h:outputText value="#{kfz.usr.firma}"/>
           <h:outputText value="Telefon: "/> <h:outputText value="#{kfz.usr.tel}"/>
           <h:outputText value="Fax: "/> <h:outputText value="#{kfz.usr.fax}"/>
           <h:outputText value="Email: "/> <h:outputText value="#{kfz.usr.email}"/>
           </h:panelGrid>
           </rich:panel>
          
           <rich:panel style="margin-top:5px" rendered="#{not empty kfz.beschreibung}">
           <h:panelGrid columns="1">
           <h:outputText value="Individuelle Beschreibung: "/>
           <h:inputTextarea id="ta"
           rows="3" cols="100"
           value="#{kfz.beschreibung}" readonly="true"/>
           </h:panelGrid>
           <h:message for="ta" />
           </rich:panel>
           <s:div style="margin-top:5px">
           <s:button value="Zurueck" action="#{bearbkfz.bfD()}" />
           </s:div >
           </a4j:form>
          </s:div>



          This is included by <a4j:include tag, i get follow exception:


          XML-Verarbeitungsfehler: Undefinierte Entität
          Adresse: http://localhost:8080/rentform/kfzdetailsbearb.seam?cid=4&clr=true
          Zeile Nr. 34, Spalte 7:<td>gr&uuml;n</td>
          ------^