Hi, I built the UI of my gwt app through java code, but now I want to
add an NCBO widget in order to use the bioportal services. The usual
way to add this component (as it is explained on
http://www.bioontology.org/wiki/index.php/NCBO_Widgets#Term-selection_field_on_a_form)
would be:

Store the form_complete.js file in my server ,and add it to the
hearder of the page.

Next the widget is declared like this:

<input type="text" name="a" class="bp_form_complete-1353-uri"
size="100"/>

I have no experience with javascript, and looking for a way to solve
it, I came across with UIBinder. So this is how I did:

In App.html I add the following line in the header section:
<script type="text/javascript" language="javascript" src="js/
form_complete.js"></script>

I created a UIBinder:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder">
        <ui:style>
                .important {
                        font-weight: bold;
                }
        </ui:style>
        <div>
                <br/>
                        <input ui:field="bioPortalText" type="text" name="a"
class="bp_form_complete-1353-uri" size="100"/>
                </div>
</ui:UiBinder>

The java class associated with the UIBinder extends from widget, so I
create an instance of it and I add to my UI.
The new component  (a text box)  appears in the web app but its
javascript functionality seems to have dissapeared. I suppose this is
not the  correct way to deal with an already done javascript widget in
gwt, but I really don't know how to deal with it.
Any help will be valued.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to