Re: Super Dev Mode in Firefox, Breakpoints not being hit
That seems to have helped, so it breaks on the GWT.Debugger() but the breakpoints still seem not to work. At least I have a workaround cheers. On Tuesday, 4 March 2014 18:19:59 UTC, Brian Slesinsky wrote: In my testing they do sometimes work but it is certainly flaky. I recommend adding a GWT.debugger() call and recompiling; that should always work, unless something is really wrong. - Brian On Monday, March 3, 2014 12:44:06 PM UTC-8, Ben Hegarty wrote: Hi, I was wondering if anyone is seeing issues using super dev mode in firefox, I've tried it in chrome and it works perfectly, but in firefox the breakpoints aren't being hit, i've even rolled back to using a basic project just to test it and still with no luck. Is anyone else seeing this issue? Or is a special way that firefox enables breakpoints? Regards Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Super Dev Mode in Firefox, Breakpoints not being hit
Hi, I was wondering if anyone is seeing issues using super dev mode in firefox, I've tried it in chrome and it works perfectly, but in firefox the breakpoints aren't being hit, i've even rolled back to using a basic project just to test it and still with no luck. Is anyone else seeing this issue? Or is a special way that firefox enables breakpoints? Regards Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Newbie listbox with Uibinder issue
I've been having a problem using the Listbox with the UIbinder but I can't seem to figure out why the following code doesn't populate the listbox on startup? public class RegistrationViewImpl extends Composite implements RegistrationView { private static RegistrationViewUiBinder uiBinder = GWT.create(RegistrationViewUiBinder.class); @UiField Button register; @UiField Button postcodeLookup; @UiField TextBox tbxFirstName; @UiField TextBox tbxSurname; @UiField TextBox tbxEmail; @UiField(provided=true) ListBox lbxDay; @UiField(provided=true) ListBox lbxMonth; @UiField(provided=true) ListBox lbxYear; @UiField(provided=true) ListBox lbxGender; @UiField(provided=true) ListBox lbxInterestedIn; @UiField TextBox tbxPostcode; @UiField ListBox lbxAddress; @UiField TextBox tbxUsername; @UiField PasswordTextBox tbxPassword; @UiField PasswordTextBox tbxCfmPassword; private Presenter presenter; @UiTemplate(RegistrationViewImpl.ui.xml) interface RegistrationViewUiBinder extends UiBinderWidget, RegistrationView { } public RegistrationViewImpl() { lbxDay = new ListBox(false); lbxMonth = new ListBox(false); lbxYear = new ListBox(false); lbxGender = new ListBox(false); lbxInterestedIn = new ListBox(false); populateListBoxes(); initWidget(uiBinder.createAndBindUi(this)); } private void populateListBoxes() { for (Integer day = 1; day = 31; day++ ){ lbxDay.addItem(day.toString()); } lbxDay.setVisibleItemCount(1); lbxMonth.addItem(January); lbxMonth.addItem(February); lbxMonth.addItem(March); lbxMonth.addItem(April); lbxMonth.addItem(May); lbxMonth.addItem(June); lbxMonth.addItem(July); lbxMonth.addItem(August); lbxMonth.addItem(September); lbxMonth.addItem(October); lbxMonth.addItem(November); lbxMonth.addItem(December); lbxMonth.setVisibleItemCount(1); int currentYear = DateUtil.getYearAsInt(new Date()); for (Integer year = 1900; year=currentYear; year++){ lbxYear.addItem(year.toString()); } lbxYear.setVisibleItemCount(1); lbxGender.addItem(Gender.Man.toString()); lbxGender.addItem(Gender.Woman.toString()); lbxInterestedIn.addItem(Gender.Man.toString()); lbxInterestedIn.addItem(Gender.Woman.toString()); } @UiHandler(register) void onRegisterClick(ClickEvent event) { if (!tbxPassword.getText().equals(tbxCfmPassword.getText())) { Window.alert(Passwords do not match.); } User user = new User(tbxUsername.getText(),tbxEmail.getText()); user.firstName = tbxFirstName.getText(); user.lastName = tbxSurname.getText(); DateTimeFormat fmt = DateTimeFormat.getFormat(.MM.dd); String day = lbxDay.getItemText(lbxDay.getSelectedIndex()); String month = lbxMonth.getItemText(lbxMonth.getSelectedIndex()); String year = lbxYear.getItemText(lbxYear.getSelectedIndex()); user.dob = fmt.parse(year + + month + . + day); user.gender = Gender.valueOf(lbxGender.getItemText(lbxGender.getSelectedIndex())); user.interestedIn = Gender.valueOf(lbxInterestedIn.getItemText(lbxInterestedIn.getSelectedIndex())); user.address.postcode = tbxPostcode.getText(); user.address.houseNumber = lbxAddress.getItemText(lbxAddress.getSelectedIndex()); presenter.onRegisterUser(user, tbxPassword.getText()); } @UiHandler(postcodeLookup) void onPostcodeLookupClick(ClickEvent event) { } @Override public void setPresenter(Presenter presenter) { this.presenter = presenter; } } and the XML.. !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:p1=urn:import:com.google.gwt.user.datepicker.client ui:style .important { font-weight: bold; } /ui:style g:HTMLPanel g:LayoutPanel width=527px height=515px g:layer left=144px width=73px top=11px height=18px g:Label text=First Name:/ /g:layer g:layer left=223px width=186px top=4px height=25px g:TextBox name=tbxFirstName ui:field=tbxFirstName/ /g:layer g:layer left=157px width=60px top=42px height=18px g:Label text=Surname:/ /g:layer g:layer left=223px width=186px top=35px height=25px g:TextBox name=tbxSurname ui:field=tbxSurname/ /g:layer g:layer left=171px width=46px top=73px