I create an empty XPage and add a button control, leaving the default “Label”. When I open the page from the browser, I see the string [| Label ].
The generated HTML for the button is:
[| Label ]
Instead, if I make the value computed, (#{javascript:“Label”}, it appears correctly
Subject: Can’t reproduce…
Hi,
I’m not seeing this. I tried Dragging and dropping the button onto the page and using the Create menu to add it on.
Is this happening for you with all databases or just one? Did you do anything else before adding the button?
What do you see in the source Tab after you drop the button on the Page?
Kind Regards,
Edel
Subject: It has to do with the database…
Thank you for your prompt answer.
I just click on “New XPage…” and after creation I drag the Button control.
In fact, it has to do with the database, it does not happen with a newly created one.
As yesterday we have upgraded the server from 8.5 to 8.5.1, I made a copy of the “buggy” database(created with v8.5), to see if it had to do with the server version, but it happens the same.
The source tab code is
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>
<xp:button value="Label" id="button1"></xp:button>
</xp:view>
Any suggestion ?
Best regards.
Subject: Have you localized this db?
Hi Hector,
I think this must be a database you have localized in 8.5?
There are some new options with the XPages localization in 8.5.1.
Open the application properties and select the XPages tab.
“The Merge source file changes into property files” option is not selected, correct?
If you check this checkbox it should merge your change to the db after you do a project clean.
Please make sure you have a backup of your properties files before you do a merge.
Kind Regards,
Edel
Subject: Yes, that was the reason
Hi Edel,
Thanks for your answer.
I have checked the “Merge source…” and the label appears correctly.
Unfortunately, there is no warning from IBM (poor documentation, as usual).
I will submit a link to the thread to the xpages blog site (xpagesblog.com), under the article “What’s New For XPages in 8.5.1”. It should appear under "Things you should be aware of when using designer 8.5.1 on a migrated database from 8.5.
Best Regards
Hector
Subject: Updated article
The article on the Localization Options has been updated for 8.5.1.XPages: How to use the localization options
When you were seeing the value [| Label ], there would have been a warning in the Problems view of Designer, indicating that there was an issue in your application, as in the screenshot at the end of that article.
In 8.5, if you had changed text in an XPage while property file changes were disabled,
it used to display the updated text in English, without any warning that the translations were out of date.
The idea is that when you see the [| ] appear now, at least you know that something is wrong.
Thanks for the feedback.