0
votes

We are working with Domino 8.5.3 and we noticed an issue with xpages validation messages being displayed on the server console.

Here is a simple xpage we created to re-create the issue:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">

    <xp:inputText id="inputText1" required="true">
        <xp:this.validators>
            <xp:validateRequired message="Value is required."></xp:validateRequired>
        </xp:this.validators>
    </xp:inputText>

    <xp:messages id="messages1"></xp:messages>
</xp:view>

Even though we have a xp:messages on the page and we are able to see those error messages on the xpage, we also see them displayed on the server console! Has anyone else noticed this?

Any help would be appreciated.

2
Do you have 'disableClientSideValidation' set to true? I am unclear from the question if the xp:messages is showing messages. You definitely want that set to true for the xp:messages to work.Steve Zavocki
I just played with this in my latest app, and the client side validation has no effect on writing to the server console. It does prevent messages from being shown in the xp:messages. I have never heard of those messages being written to the server console. Sorry to ask the obvious, but do you have a print() or System.out.println() in the code somewhere?Steve Zavocki
Another thing on what triggers the update, is it set to 'Do not validate or update data' or 'Process data without validation'? --- BTW: Earlier when I commented, I didn't see in your question title that indeed the users weren't seeing the messages, which is what I was assuming anyway.Steve Zavocki
Hi Steve, many thanks for a prompt response, we don't have disableClientSideValidation set to true, as a matter of fact, we don't use it. We have turned off client side validation at the application level through xsp properties. My apologies for not being clear, the users are seeing the message, but it's printed on the server console as well. No we don't have print or System.out.println anywhere. We don't even have a submit button on the xpage as you can see from the source listed above, all we are doing is pressing enter in that field to submit the data.pipalia
Wild guess: In the XSP properties, try changing "Client Validation" from "Off" to "Server Default" and then make sure it is turned off in the edit control.Steve Zavocki

2 Answers

2
votes

A server side error triggers a log event. Depending on the logger settings this gets written to the console and/or log/trace files. When you check the settings in data/workspace/.config/rcpinstall.properties you find multiple entries like:

   com.ibm.esupport.client.product.SSC4TNF.utils.level=INFO

that determine what gets logged in what detail (it is always .level=SOMEUPPERCASEVALUE). Nothing to be concerned about.

-1
votes

Your message control has no reference to your input field.

<xp:messages id="messages1" for="inputText1"></xp:messages>

I think this can be work.