Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

g:item Error #320

Open
swallace21 opened this issue Jan 16, 2013 · 4 comments
Open

g:item Error #320

swallace21 opened this issue Jan 16, 2013 · 4 comments
Milestone

Comments

@swallace21
Copy link

First off, thank you so much for making this!

My project compiles but produces this error when you go to view it:

[ERROR] [customplaceservice] - No class matching "item" in urn:import:com.google.gwt.user.client.ui: <g:item> (:40)

I am using <g:item> as part of a ListBox just like in the example in Showcase. If I use just it works just fine.

Thanks!

@soundTricker
Copy link
Member

Hi @swallace21
Could you show me your ui.xml code?

@swallace21
Copy link
Author

Here is the code: (I am using mvp4g for the project, I know there were some issues with gwtp) THANKS!

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
    xmlns:bb="urn:import:com.github.gwtbootstrap.client.ui.base" xmlns:c="urn:import:com.google.gwt.user.cellview.client">
    <g:HTMLPanel>
        <b:Column size="8">
            <b:Form type="HORIZONTAL">
                <b:Fieldset>
                    <b:ControlGroup>
                        <b:ControlLabel for="firstName">First Name</b:ControlLabel>
                        <b:Controls>
                            <b:TextBox b:id="firstName" ui:field="firstName"></b:TextBox>
                        </b:Controls>
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel for="middleName">Middle Name</b:ControlLabel>
                        <b:Controls>
                            <b:TextBox ui:field="middleName"></b:TextBox>
                        </b:Controls>   
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel for="lastName">Last Name</b:ControlLabel>
                        <b:Controls>
                            <b:TextBox ui:field="lastName"></b:TextBox>
                        </b:Controls>   
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel>Gender</b:ControlLabel>
                        <b:Controls>
                            <b:RadioButton name="gender">Male</b:RadioButton>
                            <b:RadioButton name="gender">Female</b:RadioButton>
                            <b:RadioButton name="gender">Other</b:RadioButton>
                        </b:Controls>
                    </b:ControlGroup>               
                    <b:ControlGroup>
                        <b:ControlLabel for="race">Race/Ethnicity</b:ControlLabel>
                        <b:HelpBlock><i>(check all that apply)</i></b:HelpBlock>
                        <b:Controls>
                            <b:CheckBox ui:field="race">
                                <g:item>American Indian or Alaskan Native</g:item>
                                <g:item>Asian</g:item>
                                <g:item>Black or African American</g:item>
                                <g:item>Hispanic or Latino</g:item>
                                <g:item>Native Hawaiian or Other Pacific Islander</g:item>
                                <g:item>White</g:item>
                                <g:item>Decline to report race/ethnicity</g:item>
                            </b:CheckBox>   
                        </b:Controls>
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel for="email">Email</b:ControlLabel>
                        <b:Controls>
                            <b:TextBox ui:field="email">Email</b:TextBox>
                        </b:Controls>   
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel for="password">Password</b:ControlLabel>
                        <b:Controls>
                            <b:TextBox ui:field="password">Password</b:TextBox>
                        </b:Controls>   
                    </b:ControlGroup>
                    <b:ControlGroup>
                        <b:ControlLabel for="save">Submit</b:ControlLabel>
                        <b:Controls>
                            <b:SubmitButton addStyleNames="btn" ui:field="submit">Submit</b:SubmitButton>
                        </b:Controls>   
                    </b:ControlGroup>
                </b:Fieldset>
            </b:Form>
        </b:Column> 
    </g:HTMLPanel>
</ui:UiBinder> 

@soundTricker
Copy link
Member

? right now ,the g:item's parent are b:CheckBox on this xml. it have to be <b:ListBox>.

@soundTricker
Copy link
Member

Move 2 backlog

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants