[midPoint] Midpoint 4.0.1 - Issue with custom registration form
Gómez Martínez, Elsa
egomezm at minsait.com
Tue Feb 25 15:23:55 CET 2020
Hi Loïc,
I have this and it is working. Hope it helps.
<form xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resou
rce-schema-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
<name>Registration form</name>
<formDefinition>
<display>
<label>Please fill in required fields</label>
</display>
<formItems list="true">
<formFieldGroup>
<name>Login information</name>
<formItems list="true">
<formField>
<binding>
<c:path>name</c:path>
</binding>
<display>
<label>Login</label>
<help>Your login</help>
<minOccurs>1</minOccurs>
</display>
</formField>
<formField>
<binding>
<c:path>c:emailAddress</c:path>
</binding>
<display>
<label>Email Address</label>
<help>Is used to finish registration process</help>
<minOccurs>1</minOccurs>
</display>
</formField>
<formField>
<binding>
<c:path>c:credentials/password</c:path>
</binding>
<display>
<label> </label>
<help>minimal length 5, use of minimal unique
characters 3,...</help>
<minOccurs>1</minOccurs>
</display>
</formField>
</formItems>
</formFieldGroup>
<formFieldGroup>
<name>Personal information</name>
<formItems list="true">
<formField>
<binding>
<c:path>givenName</c:path>
</binding>
<display>
<label>First Name</label>
<minOccurs>1</minOccurs>
</display>
</formField>
<formField>
<binding>
<c:path>familyName</c:path>
</binding>
<display>
<label>Last Name</label>
<minOccurs>1</minOccurs>
</display>
</formField>
</formItems>
</formFieldGroup>
<formFieldGroup>
<name>Additional information</name>
<formItems list="true">
<formField>
<binding>
<c:path>c:organization</c:path>
</binding>
<display>
<label>Company/University</label>
</display>
</formField>
<formField>
<binding>
<c:path>c:organizationalUnit</c:path>
</binding>
<display>
<maxOccurs>1</maxOccurs>
</display>
</formField>
</formItems>
</formFieldGroup>
</formItems>
</formDefinition>
</form>
Elsa.
De: midPoint <midpoint-bounces at lists.evolveum.com> En nombre de Loïc
Schamber
Enviado el: martes, 25 de febrero de 2020 14:25
Para: midpoint at lists.evolveum.com
Asunto: [midPoint] Midpoint 4.0.1 - Issue with custom registration form
Hi everyone,
I tried to set up a custom registration form in midpoint but I have an issue
with the familyName attribute.
I used imported the exemple here:
<https://wiki.evolveum.com/display/midPoint/Custom+forms>
https://wiki.evolveum.com/display/midPoint/Custom+forms in my midpoint but
it is not working:
When I click on the Sign up button, there the following error:
[http-nio-8080-exec-2] WARN
(com.evolveum.midpoint.web.page.error.PageError): Creating error page for
code org.apache.wicket.markup.MarkupException, exception Unable to find
component with id 'contentArea' in [Form [Component id = mainForm]]
Expected: 'mainForm:contentArea'.
Found with similar names: '': {}
The error is only occurs when I am defining the familyName field or the
organization field with:
<formField>
<binding>
<c:path>c:familyName</c:path>
</binding>
<display>
<label>Last name</label>
<minOccurs>1</minOccurs>
</display>
</formField>
I tried on Midpoint 4.0 and it is working. So is there something that I
dont get or should I open an issue for this?
Regards,
Loïc Schamber | Junior IT Consultant
<https://www.serial.ch/>
<mailto:lschamber at serial.ch> lschamber at serial.ch |
<tel:+41%2022%20555%2027%2069> +41 22 555 27 69
Chemin du Pré-Fleuri 5 CH 1228 Plan-les-Ouates
<https://www.linkedin.com/company/redcactus-by-positivethinkingcompany>
<https://www.instagram.com/positivethinkingcompany>
Redcactus by SERIAL www.serial.ch
www.positivethinking.co
_____
Help save paper, do you really need to print this email?
The content of this email and any attachments are confidential and are
intended solely for the person and/or company to whom they are addressed.
The information may also be legally privileged. No employee or agent is
authorized to conclude any binding agreement on behalf of SERIAL with
another party by email without express written confirmation. If you have
received this email in error, any use, reproduction or dissemination of this
transmission is strictly prohibited. If you are not the intended recipient,
please immediately notify the sender by return E-mail and delete this
message, its attachments and all copies from your system. Internet
communications cannot be guaranteed to be timely, secure, error or
virus-free. The sender does not accept liability for any errors or
omissions. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200225/f4fd3e02/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6827 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200225/f4fd3e02/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 451 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200225/f4fd3e02/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1129 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200225/f4fd3e02/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6049 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200225/f4fd3e02/attachment.bin>
More information about the midPoint
mailing list