Hi everybody!

Is there a possibility that '0,6' and '0.6' as value of '<h:inputtext>' or '<p:inputtext> are passed as a comma serperated value into the logic layer?

<h:inputtext for="number" value="#{data.val}"><f:convertnumber pattern="#0,0"/></h:inputtext> The '0,6' value is passed as '6'.

<p:inputtext for="number" value="#{data.val}"></p:inputtext> The '0,6' value is passed as '6'.

If I enforce the Comma with <p:inputmask mask="9,9" ...=""> '0,6' is still '6'.

tia daniel

asked 21.11.2013 at 15:45

danielf's gravatar image

accept rate: 0%

edited 21.11.2013 at 15:47

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦


if you just manipulate your data after passing it to the logic you could use a regex in a.e. a script step to make the separation of the values.

String str = str.replace("." , ",");

String[] array = str.split(",");


answered 21.11.2013 at 15:58

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 39%

Thanks a lot it works know. I thought I had to handle it inside the jsf.

Grüzi in die Schweiz!

(21.11.2013 at 16:33) danielf danielf's gravatar image

Glad I could help!

Au äs Grüäzi zrugg!

(21.11.2013 at 16:36) Daniel Oechslin Daniel%20Oechslin's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 21.11.2013 at 15:45

Seen: 5,524 times

Last updated: 21.11.2013 at 16:49