tld-fragments.recaptcha-fragment.xml Maven / Gradle / Ivy
<fragment> <tag> <description>Renders a google recaptcha</description> <display-name>Misc</display-name> <name>recaptcha</name> <tag-class>com.jslsolucoes.tagria.tag.html.v4.tag.recaptcha.RecaptchaTag</tag-class> <body-content>scriptless</body-content> <attribute> <description>Indicates the site key available in google account developer for recaptcha</description> <name>siteKey</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the function after data sent on client side event</description> <name>dataCallback</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <description>Indicates the function after data expired on client side event</description> <name>expiredCallback</name> <rtexprvalue>true</rtexprvalue> <type>java.lang.String</type> </attribute> <example> <html:jsCode > function myJsFunction() { console.log('click'); } </html:jsCode> <html:recaptcha siteKey="yourapikey" dataCallback="myJsFunction" > </html:recaptcha> </example> </tag> </fragment>