Something similar to ui:field that can appear multiple times

2011-08-08 Thread Ionuț G. Stan
Is there anything similar to ui:field that can appear multiple times 
inside a template? I have several SPAN placeholders inside the template 
and I'd like their innerText value to be the same on every update.


The only solution that I see (other than having different UI fields for 
what would otherwise be the same element) is to build a custom widget 
and have a UiFactory that would provide the same instance for all 
occurrences of the widget inside the template.


Any other suggestions?

Thanks!
--
Ionuț G. Stan  |  http://igstan.ro

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Jeff Chimene
On 08/08/2011 03:37 AM, Ionuț G. Stan wrote:
 Is there anything similar to ui:field that can appear multiple times
 inside a template? I have several SPAN placeholders inside the template
 and I'd like their innerText value to be the same on every update.
 
 The only solution that I see (other than having different UI fields for
 what would otherwise be the same element) is to build a custom widget
 and have a UiFactory that would provide the same instance for all
 occurrences of the widget inside the template.
 
 Any other suggestions?

Create your own entities

http://google-web-toolkit.googlecode.com/svn-history/r6913/trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

 Thanks!

You're welcome.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Ionuț G. Stan

On Aug/08/2011 19:31, Jeff Chimene wrote:


Create your own entities

http://google-web-toolkit.googlecode.com/svn-history/r6913/trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml


Unfortunately, entities are basically constants, and I need to update 
the value of these placeholders each time the user performs a certain 
action.


Nice to know it's possible though.

--
Ionuț G. Stan  |  http://igstan.ro

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Jeff Chimene
On 08/08/2011 09:36 AM, Ionuț G. Stan wrote:
 On Aug/08/2011 19:31, Jeff Chimene wrote:

 Create your own entities

 http://google-web-toolkit.googlecode.com/svn-history/r6913/trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

 
 Unfortunately, entities are basically constants, and I need to update
 the value of these placeholders each time the user performs a certain
 action.

Then consider gwtquery (jquery for gwt) and run a gwtquery function on
an event fired by whatever is doing the update.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Ionuț G. Stan

On Aug/08/2011 19:41, Jeff Chimene wrote:

Then consider gwtquery (jquery for gwt) and run a gwtquery function on
an event fired by whatever is doing the update.



Thanks. I'll think about this. For the moment I can stand a little 
duplicate code better than loading another library.


--
Ionuț G. Stan  |  http://igstan.ro

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.