Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-250

Provide an helper for SAXing a date or a calendar in raw format, a user, a text content and a JS escaped fragment

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.0M5
    • 1.1.8
    • None
    • None

      Everywhere we found the same SimpleDateFormat pattern just for SAXing a date/calendar.
      An helper would be very much welcome, and the raw format must be compatible with:

      • ExtJS for formatting date as we want ;
      • I18NTransformer for formatting date as we want.

      The timezone must be handled because international applications may depends on it.

      Another missing feature is to SAX user in a standard manner:

      <user login="ced">
         <email>ced@anwrt.com</email>
         <fullName>Cédric Damioli</fullName>
      </user>
      

      Sometimes we want to SAX a string and replace linefeeds with a proper tag (textearea):

      <text>mon texte<linebreak/>sur plusieurs lignes.</text>
      

      And, finally a way to SAX a value which will be injected into a JS string:

      <value>Mon caractère \' et son pendant \" avec un retour à la ligne\net la suite.</value>
      

      which can be used easily inject :

      alert("<xsl:value-of select="value"/>");
      

      will produce:

      alert("Mon caractère \' et son pendant \" avec un retour à la ligne\net la suite.");
      

          [RUNTIME-250] Provide an helper for SAXing a date or a calendar in raw format, a user, a text content and a JS escaped fragment

          There's many helper around here

          Cédric Damioli added a comment - There's many helper around here

            Unassigned Unassigned
            yabon Sébastien Launay (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: