editor submits <br/> on empty input

UI Components for JSF
Post Reply
n0weak
Posts: 9
Joined: 28 Nov 2011, 17:42

29 Feb 2012, 00:14

When no text is entered into the editor, "<br/>" is submitted instead of empty string. This leads to inability to apply not-blank constraints without manually checking whether input is "<br/>.

Steps to reproduce the problem:
1. Open labs showcase: http://www.primefaces.org/showcase-labs/ui/editor.jsf
2. Open "Network" tab in development tool for your browser
3. Enter any text into editor, delete all text entered and click submit button.
4. Verify that form:editor_input parameter with value <br/> was sent to the server.
Primefaces 3.2.RC1
MyFaces 2.1.6
Jetty 6.1.26

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests