Tuesday, November 30, 2010

Re: MVP *without* UiBinder

hi Christian,

Thank you for the reply, here is some clarification to the questions I
have:

** no wyswug viewer & GWT Designer
I have tried the GWT Designer, and I was referring by calling it
Window Builder in my previous post. I know I can get the wyswug
viewer, but seems like it only work if the gui is created thru GWT
Designer. And by do so GWT Designer actually generate Java code
instead of generating the UiBinder files. And I have not been able to
see how to get it work on a set of UiBinder files. Please correct me
if I am doing it wrong.

** no event click navigation from the ui.xml file
This is a direct comparison between the UiBinder way and the GWT
Designer. In GWT Designer, I can view the gui and use the mouse the
navigate to associated event codes for any widgets. However, if I am
working on the ui.xml file, I can't seem to easily bring up a list of
event handler code thats associated with a particular field. I have to
actually take the uifield name, open the java view implementation
manually and look for the field there, and then do a text search to
look for the method that is marked with @UiHandler("fieldname").
Which is cumbersome compare to GWT Designer.

Please let me know if I am not utilizing the GWT eclipse plugin
correctly or there is some secret settings that I need to set to make
GWT Designer work with ui.xml files. I would love to easily bring the
editor up and assign & edit css styles with ease thru GWT Designer.

And thank you for the pointers to the other declarative technologies,
like everybody else in this field, I will look at them when I get the
time.

Thanks,
Joseph

On Nov 30, 8:54 pm, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:
> > no code completion support
>
> If you're using Google plugin ecplise, you have it.
>
>  no event click navigation from the ui.xml file
>
> don't know what you mean.
>
>  no wyswug viewer
>
> Have you tried GWT designer ?
>
> assosociated java editor in eclipse all highlighting
>
> Shouldn't happen using GPE.
>
>  Using UIBinder to write what Stephen wrote:
> <g:FlowPanel>
>   <g:TextBox ui:Field="a" />
>   <g:TextBox ui:Field="b" />
> </g:FlowPanel>
>
> The the java file:
>
> @UiField
> TextBox a;
> @UiField
> TextBox b;
>
>   @Inject
>   public AdminGeneralView(final Binder uiBinder) {
>     initWidget(uiBinder.createAndBindUi(this));
>   }
>
> Well to me, it feels right. It feels web. Have you ever took a look into
> MXML ? XAML ? Well, declarative Ui style is the modern way to write Ui and
> with Gwt Designer getting better and better every day, there's no reason to
> back off from learning how to use UiBinder.
>
> Cheers,
>
>
>
>
>
>
>
>
>
> On Tue, Nov 30, 2010 at 7:36 PM, JosephLi <joseph.l...@gmail.com> wrote:
> > Hi Jeff,
>
> > Is there some special tools u are using to build utilize the UiBinder
> > way to easily build gui?
> > I tried it, but I also tried Google's latest offering on the Window's
> > Builder, which in gives me the impression that it is way more
> > efficient to build gui with. The tools directly support event click
> > code navigation right under eclipse, supports css styling directly
> > with code completion,it event supports reparsing the source to
> > regenerate the dev view in the tool in case the tool crashed and so
> > far it worked pretty good.
>
> > However when I go the UiBinder way, I got no code completion support,
> > no event click navigation from the ui.xml file, no wyswug viewer
> > without deploying the code to see what it looks like. And worst of
> > all, the assosociated java editor in eclipse all highlighting the
> > uibinder fields are not found in the ui.xml file. All these makes the
> > whole thing feel disconnected and not so well tooled compared to the
> > GWT Windows Builder. So I am wonder if I am missing something when u
> > say it helps u being productive?
>
> > Thanks
> > Joseph
>
> > On Nov 30, 5:18 pm, Jeff Larsen <larse...@gmail.com> wrote:
> > > UiBinder is at least 2-3x faster to develop with once you get the hang
> > > of it (it really isn't hard). Take the time to learn it, your code
> > > will be infinitely more readable, maintainable and manageable.
>
> > > On Nov 30, 3:52 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> > > wrote:
>
> > > > Well... UiBinder is almost only made of HTML sementics, I don't see why
> > you
> > > > can't take 1 hours to learn it...
>
> > > > I made the switch 3 months after gwt 2.0 release and now, I can't live
> > > > without. It's easier, faster than it ever was before to build Ui.
>
> > > > Cheers,
>
> > > > On Tue, Nov 30, 2010 at 4:33 PM, cri <chuck.irvine...@gmail.com>
> > wrote:
> > > > > I'm in the process of trying to learn GWT 2.1 MVP. At this point we
> > > > > don't have very good knowledge of UiBinder and we're not sure that we
> > > > > want to learn and use it. I'm having trouble understanding the sample
> > > > > Hello/Goodbye application (at the GWT docs site) since it relies on
> > > > > UiBinder. More specifically, I don't know what alternate methods I
> > > > > need to use that will take the place of UiBinder functionality. Would
> > > > > someone that understands this stuff summarize what alternative
> > classes/
> > > > > methods/patterns need to be utilized that would take the place of
> > > > > UiBinder functionality used in the Hello/Goodbye sample application?
> > > > > (or in some other way clue me in?). Thanks!
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > google-web-toolkit@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com><google-web-toolkit%2Bunsubs
> > cribe@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > Christian Goudreauwww.arcbees.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

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

No comments:

Post a Comment