Ok I didn't manage to reproduce my problem on playground:
http://playground.xwiki.org/xwiki/bin/view/Sandbox/MyClass

It is probably in my messy code: I will check  it again.
 thanks you

--------------------------------------------
En date de : Lun 9.3.15, Eduard Moraru <[email protected]> a écrit :

 Objet: Re: [xwiki-users] Xwiki Appli: how can I remove bold in view mode?
 À: "Pascal BASTIEN" <[email protected]>
 Cc: "XWiki Users" <[email protected]>
 Date: Lundi 9 mars 2015, 14h10
 
 Hi,
 
 Perhaps I do not understand properly your
 issue. Is it a rendering issue? Can you reproduce it on the
 page content of a document instead of doing it in a property
 of an object? Can you give a complete example (copy/paste or
 xar export) where this is happening so we can reproduce
 it?
 
 Thanks,
 Eduard
 
 On Mon, Mar 9, 2015 at 2:31
 PM, Pascal BASTIEN <[email protected]>
 wrote:
 Nope it
 is not the cause of the problem.
 
 By default, in view mode,  $doc.display($prop.getName())
 displayed between strong tag.
 
 
 
 Keep looking...
 
 
 
 --------------------------------------------
 
 En date de : Sam 7.3.15, Eduard Moraru <[email protected]>
 a écrit :
 
 
 
  Objet: Re: [xwiki-users] Xwiki Appli: how can I remove
 bold in view mode?
 
  À: "Pascal BASTIEN" <[email protected]>,
 "XWiki Users" <[email protected]>
 
  Date: Samedi 7 mars 2015, 21h08
 
 
 
  Hi,
 
 
 
  You have probably entered the bold
 
  styling by mistake. Have a look at the stored content
 of
 
  that property ($doc.getValue($fieldName)) and you will
 
  probably notice that there are instructions
 (**something**)
 
  in it to make it bold. If this is true, edit the
 property
 
  accordingly... select all the text, bold it and then
 un-bold
 
  it again in an effort to get rid of all traces of bold
 
  styling in your content.
 
 
 
  Hope this helps,
 
  Eduard
 
 
 
  On Fri, Mar 6, 2015 at
 
  12:41 PM, Pascal BASTIEN <[email protected]>
 
  wrote:
 
  Hello,
 
 
 
  In my XWiki application, I have a Sheet + Class with a
 
  property with textArea/wysiwyg type.
 
 
 
  I use public String display(String fieldname, String
 
  mode)
 
 
 
  
http://maven.xwiki.org/site/docs/xwiki-javadoc-5.0.x/com/xpn/xwiki/api/Document.html#display%28java.lang.String,%20java.lang.String%29
 
 
 
 
 
 
 
  Unfortunaly in view mode all values are rendering
 between
 
  <strong> </strong>.
 
 
 
  How can I remove them?
 
 
 
 
 
 
 
  An example, in edit mode, in my  textArea/wysiwyg, I
 
  have
 
 
 
  -----------------
 
 
 
  Some text bold
 
 
 
 
 
 
 
     1. first
 
 
 
     2. second
 
 
 
  -----------------
 
 
 
 
 
 
 
  In view mode I obtein:
 
 
 
  Some text bold
 
 
 
 
 
 
 
    2. first
 
 
 
    3. second
 
 
 
  (I must reinit counter list too)
 
 
 
 
 
 
 
  HTML code:
 
 
 
  <strong></strong>
 
 
 
  <p>
 
 
 
  <strong>
 
 
 
  Some text
 
 
 
  <strong>bold</strong>
 
 
 
  </strong>
 
 
 
  </p>
 
 
 
  <ol>
 
 
 
  <li style="list-style-type: none">
 
 
 
  <strong></strong>
 
 
 
  </li>
 
 
 
  <li>
 
 
 
  <strong>first</strong>
 
 
 
  </li>
 
 
 
  <li>
 
 
 
  </ol>
 
 
 
  Of course i cannot remove <strong></strong>
 or
 
  modify style because I want to keep this one:
 
  <strong>bold</strong>
 
 
 
 
 
 
 
  Thxs for any help
 
 
 
 
 
 
 
 
 
 
 
  Pascal B
 
 
 
 
 
 
 
  _______________________________________________
 
 
 
  users mailing list
 
 
 
  [email protected]
 
 
 
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 
 
 
 
 
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to