How can you skip UiBinder tags without binding to them to make XFBML work?

I have an application developed using GWT and UiBinder. Now we are trying to set up a login via facebook. I have included a script to run javascript fb in my HTML application and I am trying to get the facebook login button.

Login.ui.xml contains the facebook login tag:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g="urn:import:com.google.gwt.user.client.ui" > <g:HTMLPanel addStyleNames="login"> <h2>Login Using Your Account</h2> <g:TextBox ui:field="username"/> <g:PasswordTextBox ui:field="password"/> <g:Button ui:field="loginButton">Login</g:Button> <fb:login-button/> </g:HTMLPanel> </ui:UiBinder> 

UiBinder will not allow this to pass through HTML because it is trying to associate it with something. I'm not sure how to tell UiBinder to ignore this tag, and let it go through insincerity.

How can I either: a) allow ignoring fb: login-button or b) define an xmlns: fb tag that allows you to define a tag without GWT?

+4
source share
1 answer

Turns out it was as simple as adding xmlns: fb = "http://www.facebook.com/2008/fbml". It appears as an error in the editor for IntelliJ, but compiles and includes the tag.

+3
source

All Articles