6 Replies Latest reply on Aug 27, 2007 9:54 PM by tony.herstell1

    Seam Text

    tony.herstell1

       

      entity_user_password_hint=password *must* be between 5 and 15 letters\/numbers long and be one word.
      


      1. letters\/numbers: is supposed to be escaped so this it comes out as letters/numbers when pushed out as formatted text... but it doesn't. Am I dont something wrong?

      2. Can we have a special cahracter that gets translated into a newline? as you can see I am using messages.properties to hold my text and I want a multi line message but we cant do that using seamtext easilly.

      Cheers.

        • 1. Re: Seam Text
          tony.herstell1

          Aha... for 1 I get this int eh server log:

          11:36:18,687 ERROR [STDERR] line 1:74: expecting SLASH, found '?'
          


          • 2. Re: Seam Text
            tony.herstell1

            for NO.2. I nearly cracked it:


            entity_user_email_hint=#a valid email where you wish to be contacted. #This will be used as your username. #Your email will be used to keep in touch with you by the on-line booking and events management capabilities of this site. #This will *not* be shown on the site.


            I get the startings of a list rendered but then it goes wrong and I get this in the server log:

            12:25:28,656 ERROR [STDERR] line 1:48: unexpected token: #
            12:25:28,656 ERROR [STDERR] line 1:49: unexpected token: This
            12:25:28,656 ERROR [STDERR] line 1:85: unexpected token: #
            12:25:28,656 ERROR [STDERR] line 1:208: unexpected token: #


            pretty much the same problem for "=" (unordered list) as well... has it been another character for a list this hack would have worked.

            Darn... almost!

            • 3. Re: Seam Text
              tony.herstell1

              No.2.

              DOH!
              Sing the muppet song!

              entity_user_email_hint=<br/>a valid email where you wish to be contacted. <br/>This will be used as your username. <br/>Your email will be used to keep in touch with you by the on-line booking and events management capabilities of this site. <br/>This will *not* be shown on the site.
              


              Use 's!

              • 4. Re: Seam Text
                shane.bryzak

                letters\/numbers works for me, what gets rendered when you try it?

                • 5. Re: Seam Text
                  tony.herstell1

                  Is your text being read from a properties file for inl8 messages.. I think it's not a problem with Seam but rather cus I am using the java properties mechanism (via seam via FSF messages!)...

                  e.g.

                  <s:formattedText value="#{messages.captcha_hint}" />
                  


                  If there is a way to push it just father than anyone imaged then I will find it ;)

                  :/

                  • 6. Re: Seam Text
                    tony.herstell1

                    I was trying to add it into the edit.xhtml for ease (as every output field uses it) but can't ..

                     <span class="edit_template_hint_area">
                     <ui:insert name="hint"/>
                     </span>
                    


                    you can't do this:
                     <span class="edit_template_hint_area">
                     <s:formattedText>
                     <ui:insert name="hint"/>
                     </s:formattedText>
                     </span>
                    



                    Bummer!