LoginWindow modifications

Hello,

I need to add some elements inex-loginWindow.xml. Unfortunately any modification that I made in loginWrapper is rejected and the elements under loginWrapper (loginMainBox etc) does not appear in xml file.
image

There is any way to edit this window and see the Subscribe options?

Another case: even the new ement ex.(vbox) appears in xml, when I run the application is rejected.
image
image
image
image

Of course that I can totally replace the (login) screen but I wonder if this is the normal approach.

Hi @neutrino .
In the 12th release for extended screens, saving occurs by going to the Text tab. In the 13th release, this will be fixed.
Check the contents of xml. Are there those elements that you expect to see?
In the 12th release, the following code works for me:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd" messagesPack="com.company.demo.web.screens"
        extends="/com/haulmont/cuba/web/app/login/login-screen.xml">
    <layout>
        <vbox id="loginWrapper">
            <hbox id="additionalActions" align="TOP_CENTER" spacing="true">
                <linkButton id="registerBtn" caption="Register"/>
                <linkButton id="registerPasswordBtn" caption="Restore password"/>
            </hbox>
        </vbox>
    </layout>
</window>

Yes there are. But after close/start (run) the itellij idea, they are not displayed on the screen, even are present in xml (see below added vbox). You can check by yourself.


 <layout>
        <vbox id="loginWrapper">
            <vbox id="loginMainBox">
                <vbox id="loginForm">
                    <vbox margin="true" spacing="true" ext:index="2"/>
                </vbox>
            </vbox>
        </vbox>
    </layout>

The only approach (that actually works) is to place the new elements apart of loginWrapper or replace the whole login page.
However I saw that all default elements are under green text. Why?
If you want to show something new, everything should be in white. Why?
image
image

Your xml contains no components to display. You only have a container, it does not have a visual display. Put a component there, such as a button.

<vbox id="loginWrapper">
            <vbox id="loginMainBox">
                <vbox id="loginForm">
                    <vbox spacing="true" ext:index="2">
                        <linkButton id="registerBtn" caption="Register"/>
                        <linkButton id="registerPasswordBtn" caption="Restore password"/>
                    </vbox>
                </vbox>
            </vbox>
        </vbox>

image

Gree - Inherited element without changed properties.
Yellow - Inherited element with changed properties.
White - new items added by you

1 Like