What is incorrect? I get 2 in uppercase. 1:You can choose one of the followingIn your original proposal you had a misplace the / it should be before the sup What is incorrect? I get 2 in uppercase. 1:You can choose one of the followingIn your original proposal you had a misplace the / it should be before the sup
47500

JSF - (escape special chars)

Question:

I am trying set 1<sup>®</sup>2 in outputText:

<h:outputText value="1&lt;sup&gt;&#174;&lt;sup/&gt;2" escape="false"/>

What is incorrect? I get 2 in uppercase.

Answer1:

You can choose one of the following

In your original proposal you had a misplace the / it should be before the sup

<h:outputText value="1&lt;sup&gt;&#174;&lt;/sup&gt;2" escape="false"/>

You can also remove the sup completely (but than your (R) wont be small)

<h:outputText value="1&#174;2" escape="false"/>

Finally you can use it directly without escaping

<h:outputText value="1®2"/>

Recommend

  • Placeholder in resource bundles
  • How to pass an iterated parameter via ajax to a backing bean method
  • Regex “\\w” doesn't process utf-8 characters in Ruby 1.9.2
  • How to update a h:inputHidden with p:commandButton?
  • Best way to add DOM Element to Body with JavaScript
  • Getter and Setter conventions in go lang
  • Set period between lowercase letter followed by uppercase letter in Java
  • How to select all in PrimeFaces TreeTable?
  • Insert Path of a file with \\\\ in mysql using java
  • pandas parse csv with left and right quote chars
  • preg_replace
  • numpy 64bit support in PTVS and numpy System.Int64 casting
  • ng-repeat not working with table but works with list
  • Cordova Apache wrong module path
  • Correct implementation of List Iterator methods
  • SyntaxError: (irb):26: both block arg and actual block given
  • How do I display a dialog that asks the user multi-choice questıon using tkInter?
  • How do I open a C file with a relative path?
  • Scrapy recursive link crawler
  • How to rebase a series of branches?
  • Rearranging Cells in UITableView Bug & Saving Changes
  • Circular dependency while pushing http interceptor
  • Linker errors when using intrinsic function via function pointer
  • How to set the response of a form post action to a iframe source?
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Bitwise OR returns boolean when one of operands is nil
  • sending mail using smtp is too slow
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • reshape alternating columns in less time and using less memory
  • costura.fody for a dll that references another dll
  • Binding checkboxes to object values in AngularJs
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal