1 2 Previous Next 15 Replies Latest reply on Jul 28, 2009 10:15 AM by vidda

    Bold seam text forces newline.

    tony.herstell1

      RF JIRA 5777


      I tried to pint this on RF but I think it may be Seam bug in newest GA seam.


        • 1. Re: Bold seam text forces newline.

          Tony Herstell wrote on Jan 21, 2009 09:16:


          RF JIRA 5777

          I tried to pint this on RF but I think it may be Seam bug in newest GA seam.




          Hi to all.


          I am using seam 2.1.0 SP1 and I have found this problem too. Please, can anyone confirm this bug or confirm other version of seam where this problem is fixed it? Thanks.


          I will explain this problem with and example. I'm using seam formattedText tag with a value obtained from database. With values containing bold tag (<b> or <strong>), the displaying result is one new line after end bold tag (</b> or </strong>). For example:




          <b>This is bold text</b>AndThisIsMoreText



          will display:




          This is bold text (with bold style)
          AndThisIsMoreText (in a new line)
          



          The new line should not appear. And with other HTML tags like italic (<i>) this problem doesn't happen. Please, can you give me any help?



          Thanks again. Sorry my level of English.

          • 2. Re: Bold seam text forces newline.
            tony.herstell1

            Go vote for the RF bug.


            Currently it's:


               Component/s:        None



               Affects Version/s:      3.3.0



               Fix Version/s:      Future


            So if you want it.. vote for it.


            • 3. Re: Bold seam text forces newline.

              Tony Herstell wrote on Jul 08, 2009 22:20:


              Go vote for the RF bug.

              Currently it's:

                 Component/s:        None


                 Affects Version/s:      3.3.0


                 Fix Version/s:      Future

              So if you want it.. vote for it.




              The question is that I think this is a bug of Seam. Because this strange behaviour only happens with html tags <b> and <strong> and this this is the only way to show bold text under Seam Text. Rich editor only put <b> tags when it finds bold text.


              The example on my previous answer tells about read value from database, not from rich editor. If I want to show bold text inside Seam Text, the only way I know is including <b> tag, and with <b> tag it happens the bug of the new line.



              Tony, which version of Jboss Seam where you was using when you saw this error? 2.1.0 SP1 too?

              • 4. Re: Bold seam text forces newline.
                mdesignz

                You may wish to try Richfaces 3.3.2-SNAPSHOT.  There are some issues with the TinyMCE component in RichFaces that look like they might be fixed in 3.3.2.CR1.  I haven't seen the issue you're describing, but have seen problems with font size and type.  They may be related.  In any case, today's SNAPHOT appears to have fixed my problems, but I haven't tested it very carefully.  Perhaps it may fix yours.


                Link to discussion about this on the Richfaces forum:  My Link

                • 5. Re: Bold seam text forces newline.
                  tony.herstell1

                  I concur.


                  I have had to use a bleeding edge version of RichFaces to overcome a problem with sorting multiple (upto 14 similar tables within a repeat loop!) RF tables on a single page (which they kindly prioritized) and since moving to the bleeding edge my problems with tinyMCE have reduced.


                  Enjoy.

                  • 6. Re: Bold seam text forces newline.

                    I will try this new SNAPSHOT to check if this behaviour is corrected :). But I expect not :(, because the mode to represent on Seam Text a single line with bold character is like this:



                    <b>bold text</b> and some normal text

                    And Seam Text shows it:


                    <b>bold text</b> (with bold style)
                    and some normal text



                    Look at this other explain from Alex.Kolonitsky on richfaces forum:


                    http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242634







                    The problem is (I think) with Seam Text, not with Richeditor. Or I am wrong and it exists another way to write on Seam Text a single line with bold character? If it exists another way and works, richeditor should change to this form and I will post a JIRA with this. But I need to known this way.



                    • 7. Re: Bold seam text forces newline.

                      David Herrera Alonso wrote on Jul 10, 2009 08:52:


                      I will try this new SNAPSHOT to check if this behaviour is corrected :). But I expect not :(, because the mode to represent on Seam Text a single line with bold character is like this:

                      <b>bold text</b> and some normal text

                      And Seam Text shows it:

                      <b>bold text</b> (with bold style)
                      and some normal text



                      Look at this other explain from Alex.Kolonitsky on richfaces forum:

                      http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242634







                      The problem is (I think) with Seam Text, not with Richeditor. Or I am wrong and it exists another way to write on Seam Text a single line with bold character? If it exists another way and works, richeditor should change to this form and I will post a JIRA with this. But I need to known this way.





                      I'm answer myself. With this code:



                      <p><b>bold text</b> and some normal text</p>


                      Seam Text process it well and show only one line :). I will go and comment this on richfaces thread.

                      • 8. Re: Bold seam text forces newline.
                        tony.herstell1

                        Here is some text I added using the richfaces component (grabbed from DB) just now and it fails (necessitates hack BD to fix):




                        =All classes are ungraded but run in  accordance with ESNZ Rules.
                        =All horses must be eligible to compete at  the level entered else they will have to ride HC (see - Rules of Dressage NZ  Effective 1st Aug Chapter IV Article 460 - Grading of Horses and Ponies)
                        <ul><li class="seamTextUnorderedListItem">   Level 0 Training
                        <ul><li class="seamTextUnorderedListItem">     non-graded only</li></ul></li><li class="seamTextUnorderedListItem">   Level 1 Grade
                        <ul><li class="seamTextUnorderedListItem">    Less than 30 points in level 2 or  above</li></ul></li></ul>
                        =All classes run on All Weather Arenas (0.3  and 1.3 will be held indoors).
                        =After closing date all entries <b>must </b>be paid.  Refund requests must be written, include Vet or Doctor certificate and be  received within 48 hours before the event. Refunds less<b> 20%</b> handling  charge.
                        =Start times will be posted on this web site  (www.selwynequestriancentre.co.nz) on <b>22JUL2009</b> (NO times will be sent by  post)
                        =Please take all droppings and litter home  with you.
                        = <b>No dogs allowed</b>.
                        =All riders ride at own risk.
                        =Organisers will not be responsible for  accidents and property damage.
                        =SEC reserves the right to refuse entries or  alter schedule as deemed necessary.









                        GIVES:
                        unexpected token: <
                        An error occurred during conversion seam text to html
                        line 1:262: unexpected token: <
                        NoViableAlt
                        ["<",<24>,line=1,col=262]
                        Component:org.richfaces.component.html.HtmlEditor@11099d9
                        Theme: advanced





                        • 9. Re: Bold seam text forces newline.
                          tony.herstell1

                          This bit (when shows in html in the RF editor) causes the problem.



                          • Level 0 Training

                            • non-graded only



                          • Level 1 Grade

                            • Less than 30 points in level 2 or above





                          Looks fine so I expect Seam is having the problem in this case.

                          • 10. Re: Bold seam text forces newline.
                            mdesignz

                            You should create a Seam PDF JIRA issue so it gets fixed.

                            • 11. Re: Bold seam text forces newline.

                              Robert Morse wrote on Jul 11, 2009 12:09:


                              You should create a Seam PDF JIRA issue so it gets fixed.


                              Yes, we need to create a Seam Jira, because it seems is a problem with Seam Text. Toni, can you create a Seam JIRA explaining both problem? You can copy my examples and yours. I tell you to create JIRA because it seems you have more level of English expression and maybe it will be helpful to seam developers. When it will be create, I'll post it all I think may be helpful.


                              If you cannot, tell me and I'll try to do it the best I can ;).

                              • 12. Re: Bold seam text forces newline.

                                I have created JIRA issue with the problem of Seam Text:


                                JBSEAM-4304 (https://jira.jboss.org/jira/browse/JBSEAM-4304)



                                I hope it will be helpful and they fix it :)

                                • 13. Re: Bold seam text forces newline.

                                  David Herrera Alonso wrote on Jul 15, 2009 09:20:


                                  I have created JIRA issue with the problem of Seam Text:

                                  JBSEAM-4304 (https://jira.jboss.org/jira/browse/JBSEAM-4304)


                                  I hope it will be helpful and they fix it :)



                                  How many time is needed to read and assign a new Seam JIRA? I posted this JIRA two weeks ago and I have zero news about it  :-(

                                  • 14. Re: Bold seam text forces newline.
                                    tony.herstell1

                                    Don't be too hard on Seamsters.
                                    They have been really busy with JSR299 and now they have to roll all that back into Seam core.
                                    Once all that is done I am sure the bug fixes will pick up.
                                    Just be patient.
                                    :)

                                    1 2 Previous Next