Hi Guys,
I got a requirement to add a button ‘reset password’ to the login window. I think document about extend screen is quite clear. But the requirement is quite odd, the customer wants this button next to ‘remember me’. I tried to use an HBOX to wrap origin ‘remember me’ checkbox and add a new linked button next to it as below:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/window.xsd"
class="org.kuroro2121.uidemo.web.demo.ExtAppLoginWindow"
extends="/com/haulmont/cuba/web/app/loginwindow/loginwindow.xml"
messagesPack="org.kuroro2121.uidemo.web.demo"
xmlns:ext="http://schemas.haulmont.com/cuba/window-ext.xsd">
<layout>
<vbox id="loginWrapper">
<vbox id="loginMainBox">
<grid id="loginFormLayout">
<columns>
<column id="loginFormCaptionColumn"/>
<column id="loginFormFieldColumn"/>
</columns>
<rows>
<row id="rememberMeRow" ext:index="3">
<hbox ext:index="1">
<checkBox id="rememberMeCheckBox"
align="MIDDLE_CENTER"
caption="mainMsg://loginWindow.rememberMe"/>
<linkButton align="MIDDLE_CENTER"
caption="msg://forgetPassword"/>
</hbox>
</row>
</rows>
</grid>
</vbox>
</vbox>
</layout>
</window>
I can use the studio to generate this code, but I can’t reopen and edit it. And platform raised an error ‘Grid column count is less than number of components in grid row’, obviously, it treats my HBOX as a new column not override it. Do I miss anything? Can you please help me to make this work?