-
Notifications
You must be signed in to change notification settings - Fork 9
Description
AFAIK p:message was introduced as an easier and more flexible way to send messages to the console, as a replacement/enhancement of the standard message attribute.
Currently the spec says for p:message: the result of evaluating the select option is serialized and made available
Serialization of a string value means: putting quotes around it. So if I say:
<p:message select="Starting computation at {current-dateTime()}"/>I get my "Starting computation ..." message quoted on the console. That's not what I want and I also think that's not what was intended.
So I think we should change/modify the spec a little to get the messages come out as just strings. Something like (this is just a proposal):
the result is all items in the select option turned into a string and concatenated
Items that can't be turned into a string result in an error
Or:
Items that can't be turned into a string are serialized implementation-defined
What I mean with "turned into a string" is the using the string() function on them. But probably there is a better way of expressing this.