2 Replies Latest reply on Dec 2, 2009 6:28 PM by Jeff Haynes

    How To Post Seam tag examples to Forums?

    Jeff Haynes Newbie

      Ok, I don't get it - I've been trying for an hour (!) to post an answer to another forum post, but I have not been able to submit.


      I'm trying to post a sample usage of the rich:inplaceSelect tag with a4j:support, but I can't for the life of me figure out how to post samples of these tags with the opening and closing greater than/less than symbols.  The wiki editor keeps on telling me I have a formatting error when I try to drop code like <a4j:support event="onchange" /> into a code block. 


      The popup help does not address how to post HTML code within a code block, but obviously people do it all the time in this forum.  I searched for a topic that would tell me this, but to no avail - I don't have time to search through thousands of hits.


      Can somebody please point me in the right direction here?  And can we get this issue covered in a more conspicuous place, like in a link off the forum home page, a sticky topic, or maybe even in the help popup in the forum posting form?


      Thanks in advance...

        • 1. Re: How To Post Seam tag examples to Forums?
          Tim Evers Master

          Press the Help button and read carefully.





          Code Blocks


          A third option for embedding text that uses special characters is to use a code block, delimited by `backticks`. For example:




          `

          for (int i=0; i<100; i++) {

          log.info("Hello world!");

          }

          `


          Inside of the backticks (the key to the left of the number 1 key, just above Tab) you should/can type any html you want.


          <html>
              <body>
          You just need to make sure that you are copying code that does not contain any backticks.
          Because I can't seem to find a way to escape backticks inside backticks... weird!
          Just so you can see your code working in a code block, here it is.
          <a4j:support event="onchange" />
              </body>
          </html>
          

          • 2. Re: How To Post Seam tag examples to Forums?
            Jeff Haynes Newbie

            Ah yes, of course - I was not using backticks, I was using an apostrophe (beside the Enter key).  Thanks for clearing up the confusion for me Tim!