4 Replies Latest reply on May 15, 2007 3:36 AM by riket44

    Parsing error in forms

    riket44

      Hi,

      I made à first form in which there is :

       <f:facet name="header">
       <h:outputText value="Tracking Number: "/>
       </f:facet>
       <h:inputText
       value="#{var['tracking number']}"
       converter="javax.faces.Integer"
       converterMessage="The quantity must be numeric." >
       </h:inputText>
      


      In the following forms, i want to have a field in which the another user can see the value of "tracking number", so i did :

       <f:facet name="header">
       <h:outputText value="Tracking Number: "/>
       </f:facet>
       <h:inputText value="#{tracking number}" />
      


      But when i try it on the jbpm console, i have an error on the second form which say :


      /14/form.receive.xhtml @23,81 value="#{tracking number}" Error Parsing: #{tracking number}


      I don't find which parsing error i've done... Thanks a lot for your help and sorry for my very bad english!!

      R.

        • 1. Re: Parsing error in forms
          kukeltje

          have a good look at both examples you give... #{var['tracking number']} vs #{tracking number}

          • 2. Re: Parsing error in forms
            riket44

            In the "WebSale" example,

            the first user define the variable like that :

            value="#{var['varName']}"
            


            and get the value of this in another form like that:

            value="#{varName}"
            


            I don't understand...

            • 3. Re: Parsing error in forms
              kukeltje

              #{varName} does work, #{var Name} does not. The latter because the system interprets the space.

              #{var['varName']} and #{var['var Name']} both work because of the ''

              • 4. Re: Parsing error in forms
                riket44

                Ok, thank you.

                I succeded in doing what i wanted like that :

                 <h:inputText
                 value="#{var['tracking number']} readonly="true"
                 </h:inputText>
                


                It show the value of "tracking number" and it's only readable.

                Thanks and bye :)