I see,
maybe you can generate a second representation of your constant values as
part of the build process. I could imaging slapping an annotation on your
interface/enum that defines your constants and using an annotation
processor to generate a different output format.
Then you place some
Hi all,
I would like to generate static html from a template that references static
java import values (or ones that can be calculated at compile time) for
like an About page or the like. I envisioned this as basically the UiBinder
template without the associated widget class being used
thks.
it worked!
It's very clear on the documentation how did I miss that?
Le dimanche 31 mai 2015 15:54:28 UTC-3, Jens a écrit :
h1ui:text from={txt.usersHeader} / /h1
should work I think.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web
Hello.
I have a UiBinder xml that starts like this:
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:b=
urn:import:org.gwtbootstrap3.client.ui xmlns:b.html=
urn:import:org.gwtbootstrap3.client.ui.html
xmlns:r
h1ui:text from={txt.usersHeader} / /h1
should work I think.
-- J.
--
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
Hi,
How to create a custom pieChart component, that we can use in a UiBinder
page ?
Thank you,
--
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
Hi Everyone,
Since yesterday, I'm not able to start any GWTTestCase using uibinder, I've
got the error below.
An idea ?
Unexpected exception occurred while parsing HTML snippet
org.xml.sax.SAXNotRecognizedException: Feature '
http://cyberneko.org/html/features/scanner/allow-selfclosing-tags
I am Using GWT UiBinder for creating custom component.Main class(Table
uibinder) will create custom component table with pager,See below code
*Table.ui.xml:*
ui:UiBinder xmlns:item=urn:import:com.example.ui.widgets.item
g:HTMLPanel
item:CustomGrid ui:field=table
Any Suggestion on this?
On Tuesday, April 28, 2015 at 6:06:11 PM UTC+5:30, Abdul wrote:
I am Using GWT UiBinder for creating custom component.Main class(Table
uibinder) will create custom component table with pager,See below code
*Table.ui.xml:*
ui:UiBinder xmlns:item
-tag so that my-webcomp becomes the immediate child tag of UiBinder.
However, that results in an error from the generator:
[INFO] Rebinding MyUiBinder
[INFO] Invoking generator
com.google.gwt.uibinder.rebind.UiBinderGenerator
[INFO] [ERROR] Illegal field name f_my
Java fields/variables must not contain hyphens so f_my-webcomp1 is invalid
Java syntax and causes the compile error.
As a workaround you could probably rename your web component to mywebcomp
or my_webcomp. The UiBinder generator needs to be adjusted to work with the
naming convention of web
I'm currently trying to setup a GWT 2.7 Dev-Environment.
I want to be able to use content assist for UIbinder xml files, and what
does work for me is when I type a and press Ctrl+Space (or wait for a
second there) I get a list of classes to choose from.
First problem is it starts
Hi,
I'm trying to create a container widget which can accept html within
uibinder files, without extending from HTMLPanel.
If I try to implement `HasHTML`, then I can only pass in HTML without being
able to pass any widgets.
If I try to extend from ComplexPanel and override the add(Widget
Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels
+ widgets?
HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing
HTML + Widgets possible, so yes it is kind of hardcoded.
-- J.
--
You received this message because you are subscribed
IMO that parser interface should be made external and it should allow any
widget that implements this interface to have html within UiBinder. I'm
surprised it wasn't done that way to begin with.
On Tue, Mar 24, 2015 at 9:11 PM, Jens jens.nehlme...@gmail.com wrote:
Surely UiBinder isn't hard
Hi all,
Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder?
I don't understand if I have to make a ClientBundle with some CssResources
interface
and use with the tag ui:with / inside a UiBinder.
Be CssResource ensureInjected() ?
Thanks
--
You received
at 3:38:37 PM UTC+1, Stefano Pulze wrote:
Hi all,
Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder?
I don't understand if I have to make a ClientBundle with some CssResources
interface
and use with the tag ui:with / inside a UiBinder.
Be CssResource
On Thursday, February 12, 2015 at 11:25:51 AM UTC+1, Thomas Broyer wrote:
On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote:
I have a maven layout, and the ui.xml file is in src/main/resources, in
the same package as the Java class. So I don't think that's the case here.
On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote:
I have a maven layout, and the ui.xml file is in src/main/resources, in
the same package as the Java class. So I don't think that's the case here.
Also the file does get picked up, it just requires an SDM restart to pick
Thomas,
As usual, you're right. I was using the maven plugin, and the resources
weren't being updated.
For the moment, I've just created a new run configuration in intellij for
running process-resources , and when I get this error, I just run that
config once, and it fixes the problem.
Still,
In same cases, you can accidentally include of ui.xml files in your build
that will make your regular compile work but SDM will not pick up the
changes. This happens if the ui.xml file is in the classpath but not
included as a resource in the gwt.xml file. I think if we notice that
during
I have a maven layout, and the ui.xml file is in src/main/resources, in the
same package as the Java class. So I don't think that's the case here.
Also the file does get picked up, it just requires an SDM restart to pick
up some of the changes.
On Thu, Feb 12, 2015 at 3:52 AM, 'Goktug Gokdogan'
Update: Seems like this issue applies to all changes made to ui.xml files.
If I have an existing foo.ui.xml file, and I made a change to it, such as
adding the text 'foo' anywhere inside a HtmlPanel, reloading doesn't pick
up the change. A full sdm restart is required.
--
You received this
I'm using the snapshot build, so it might be a recent issue. I'm not sure
if I could've done anything in my project to cause this, I just have a
regular ui binder file / class.
On Wed, Feb 11, 2015 at 4:50 PM, Jens jens.nehlme...@gmail.com wrote:
We are currently using a GWT trunk build from 5.
We are currently using a GWT trunk build from 5. Jan 2015 and don't see
this issue. So either a recent commit causes that behavior or your project
setup is broken.
-- J.
--
You received this message because you are subscribed to the Google Groups GWT
Contributors group.
To unsubscribe from
I'm using 2.8.0-SNAPSHOT. If I add any new ui-field=.. to a ui.xml file,
they aren't picked up either on refresh, or on clearing the SDM cache .
Instead, I have to restart SDM in order for these changes to be picked up.
Otherwise, I keep getting the error that there's no @UiField for the
Thanks Rogelio...
On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen
wrote:
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from UX/UI designer can i wrap the html directly into
uibinder in GWT?
- Is so,then how
this for
UiBinder:
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Simple_binding,
search gquery docs the gquery approach). Or simply use JSNI to add handlers.
- Yes, expect same output as html prototype. One difference you might see
will depend on the container panel/element that wil display
Any Suggestion on this?
On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen
wrote:
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from UX/UI designer can i wrap the html directly into
uibinder in GWT?
- Is so
Any Suggestion this?
On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen
wrote:
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from UX/UI designer can i wrap the html directly into
uibinder in GWT?
- Is so
You should start by reading the UiBinder documentation
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html.
That has a lot of good examples that you can follow.
In order to wrap just basic HTML, you should use an HTMLPanel widget.
g:HTMLPanel
pYour basic html goes inside the HTMLPanel
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from UX/UI designer can i wrap the html directly into
uibinder in GWT?
- Is so,then how to write event handler or validation for the component?
- Can i expect the same output (as looking
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from UX/UI designer can i wrap the html directly into
uibinder in GWT?
- Is so,then how to write event handler or validation for the component?
- Can i expect the same output (as looking
Hi Folks,
I am using GWT 2.6 to develop my web application.Since i am getting the
HTML prototype from designer can i wrap the html directly into uibinder in
GWT?Is so,then how to write event handler or validation for the
component?Please give me your valuable suggest?Thanks in advance
Hello,
Which part of GWT is responsible for the compilation UIBinder to JS?
Regards
--
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
UiBinderGenerator generates a Java class based on your interface that
extends UiBinder and the corresponding *.ui.xml file.
These generated classes are compiled to JS when you compile your whole app
to JS.
-- J.
--
You received this message because you are subscribed to the Google Groups
W dniu 19.12.2014 o 18:58, Jens pisze:
UiBinderGenerator generates a Java class based on your interface that
extends UiBinder and the corresponding *.ui.xml file.
These generated classes are compiled to JS when you compile your whole
app to JS.
I know that.
I'm looking for a way
you can do is
to replace them before/during compilation, but that is probably not what
you are looking for. If your app allows your customers to define their own
UIs at runtime of your app then you can not use UiBinder for these UIs.
-- J.
--
You received this message because you
Thx it works!
--
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
maxWidth2();
}
Julien
On Wednesday, December 10, 2014 5:48:12 PM UTC+1, Freddy Boucher wrote:
Hi,
I get an error when I want to bind a UiBinder with *gss* enable with my
Java CssResource interface *MyStyle*.
Even with *conversionMode* at *lenient* it doesn't work.
Is it possible
Hello,
UiBinder have modified to be a loaded from the database.
I just wonder where you keep your password and user to the database so
that it was a secure and flexible solution. Are there any configuration
files where GWT developer could keep your username and password?
Regards,
Łukasz
Hi,
I get an error when I want to bind a UiBinder with *gss* enable with my
Java CssResource interface *MyStyle*.
Even with *conversionMode* at *lenient* it doesn't work.
Is it possible in this state of art?
THX
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder
] Compiler returned false
[WARN] recompile failed
[WARN] continuing to serve previous version
public class OpportunityHeader extends Composite {
private static Binder uiBinder = GWT.create(Binder.class);
interface Binder extends UiBinderWidget, OpportunityHeader
Hi, I have been dealing with a problem which seems to me not having a clean
solution.
I have declared a SuggestBox in uibinder:
g:SuggestBox ui:field=suggestBox height=32px
width=550px/g:SuggestBox
Then, I can populate the already provided SuggestBox on the View
Use
@UiField(provided = true)
SuggestBox box;
and then instantiate the SuggestBox before you call initWidget() in your
constructor.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To unsubscribe from this group and stop receiving
yes, thanks Jens, (provided = true) made the difference in the solution 2
above.
It works now
:-)
--
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
I finally got it! The issue was that I need to ad a container/wrapper tag
around the child using the tagname specified in the @UiChild
so
aj:CustomParent
aj:myChild
aj:CustomChild ui:field=aChild/aj:CustomChild
/aj:myChild
/aj:CustomParent
I haven't checked but I believe GwtBootstrap3 just implements HasWidgets
(maybe extends ComplexPanel) and does some checks in addWidget and the like
to make sure you use the correct child widgets.
On Wednesday, December 3, 2014 2:31:05 PM UTC+1, AJ wrote:
I finally got it! The issue was that
That sort of helps, but now I can't get ui:field to be recognized in the
child.
For instance:
ParentComponent class has
@UiChild(tagname=ChildComponent)
public void add(ChildComponent c) {}
If the UiBinder has
g:HTMLPanel
aj:ChildComponent ui:field=child1/aj:ChildComponent
Then it works
ParentComponent class has
@UiChild(tagname=ChildComponent)
public void add(ChildComponent c) {}
If the UiBinder has
g:HTMLPanel
aj:ChildComponent ui:field=child1/aj:ChildComponent
Then it works
But if I have
g:HTMLPanel
aj:ParentComponent ui:field=parent1
aj:ChildComponent
Hello,
Does GWT license allows for the separation of functionality into a
separate library GWT?
Trying to separate UIBinder to a separate library with GWT 2.6.0 and
modify UiBinder but now I have this error:
Compiling module org.yournamehere.Main
Computing all possible rebind results
that is loaded by two
different ClassLoaders can not be cast to itself if both ClassLoaders are
involved. Since you have gwt-user.jar on class path and also your custom
library you now have several UiBinder related classes twice on class path.
If now HashWidgetsParser extends ElementParser has been
several UiBinder related
classes twice on class path.
If now HashWidgetsParser extends ElementParser has been loaded by
ClassLoader A and the ElementParser.class used in the cast statement
found in UiBinderWriter (see your stack trace) has been loaded by
ClassLoader B then you will get
I created an abstract cell using uibinder and UiRenderer. My datasource is
a list of a list. Lets say list of cars and each car has a list of models.
I adding the cells to a CellList. Each cell is like like a card with
forward and backward button on top(Im using arrow images and handling
Hello,
I am writing a library of widgets for our projects.
Some of the objects have certain requirements, such as can only contain
another custom elements.
I have seen threads mentioning patching GWT to add an anotation (from 2010)
but that did not seem to go anywhere.
I also see the threads
http://www.gwtproject.org/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html
In your @UiChild MyWidget.addMyCustomChildWidget() method you can do your
own runtime checks.
Compile time errors are not possible unless you start hacking UiBinder
implementation so you can register your own
Hi all,
currently GWT does not build with Java6 (not even the release build: ant
elemental dist), because of this change:
https://gwt-review.googlesource.com/#/c/9620/
@Colin, @Arthur can you guys take a look together with Julien?
-Daniel
--
You received this message because you are
The result looks good in both GWT desktop widget and the MGWT gray
background, and I have a consistent look across all my icons.
And even if MGWT's gray would not fit, since it is a font you can adjust
the font color using CSS.
-- J.
--
You received this message because you are
Thanks again, Jens, for your help on this issue. Font Awesome is a nice
package and I am very pleased with the results. I can use the icon directly
in UiBinder, but more importantly, I can set them in my code. I've created
a class that builds a static a JSONObject that matches a file MIME type
On Tuesday, September 23, 2014 11:36:59 PM UTC+2, Jens wrote:
You need to define the font using @font-face.
By default fontawesome.css contains
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
src:
();
@ClassName(fa-lg)
String large();
...
In my EntryPoint class, after setting the logging and window closing
handlers and injecting the global stylesheet (as in Showcase), I call
FontAwesomeBundle.INSTANCE.fa().ensureInjected();
To try this out, in my UiBinder file I put
@font-face{
font-family:'FontAwesome';
@url fawoff woff?v=4.2.0;
font-weight:normal;font-style:normal}
.fa{display:inline-block;font:normal ...
I guess it should be
@url fawoff woff;
@font-face {
font-family: 'FontAwesome'
src: fawoff format('woff') /* fawoff should be
add icons as needed from code or via UiBinder.
Interesting item: This change *did not work* at first when I simply stopped
and started SDM (Dev Mode Off, Dev Mode On). However I was desperate so I
stopped RunJettyRun in Eclipse and SDM in the terminal, and ran `gradle
clean jettyDraftWar
). I
would like to do things more the GWT way--UiBinder, ClientBundle, etc. I
feel I'm close, but it's not coming together.
I've tried it first in UiBinder. I just tried adding the FontAwesome CSS:
ui:style field=fonts src=../../fonts/fontAwesome.css /
...
i class={fonts.fa} {fonts.fa-camera
place them into the public folder so your web server sets
correct caching headers.
Once you have done that you should be able to use ui:with to import your
ClientBundle into UiBinder and use the icons (don't forget to call
ensureInjected()).
-- J.
--
You received this message because you
you can use this code
ui:image field=viewimage src=task/images/image.png /
g:PushButton
g:upFace image={viewimage} /
/g:PushButton
On Wednesday, October 6, 2010 7:54:29 AM UTC+7, mars wrote:
hi,
I tried to create a PushButton(with an image) in UiBinder but could
not get it work, here
Ah, that work, thanks!
On Friday, 1 August 2014 16:22:04 UTC+3, Juan Pablo Gardella wrote:
About center the dialog. Call the center method using scheduleDeferred
On Friday, 1 August 2014 16:22:04 UTC+3, Juan Pablo Gardella wrote:
About center the dialog. Call the center method using scheduleDeferred
Further testing revealed that a dialog shown that way cannot be closed in
IE11 if the call to hide comes in context of RestyGWT's MethodCallback
event. The dialog thinks it's not visible (isShowing returns false). But if
add a button to the dialog to close it, that works.
Needed a bit
Is there an easier way by now?
Am Mittwoch, 3. April 2013 01:10:52 UTC+2 schrieb Thomas Broyer:
On Wednesday, April 3, 2013 12:34:06 AM UTC+2, Pat wrote:
I found something that works, even though I think that should be possible
with less glue code...
It should be possible to create a
Hello,
I have a dialog class inherited from DialogBox and using UiBinder template
as the widget for it, which is set in the constructor
setWidget(uiBinder.createAndBindUi(this)). When the a dialog class instance
is shown using the center() method, the dialog is shown but it is not
properly
,
I have a dialog class inherited from DialogBox and using UiBinder template
as the widget for it, which is set in the constructor
setWidget(uiBinder.createAndBindUi(this)). When the a dialog class instance
is shown using the center() method, the dialog is shown but it is not
properly centered
Hi All,
I'm trying to use a UiBinder like this
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
ui:with field='logo' type='java.lang.String' /
ui:with field='name' type='java.lang.String' /
ui:with field='desc' type
On Monday, June 16, 2014 1:25:23 PM UTC+2, Zied Hamdi OneView wrote:
Hi All,
I'm trying to use a UiBinder like this
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
ui:with field='logo' type='java.lang.String
for uiBinder (example in UiRenderer): Indeed I've read that page, and
since it is somewhere in the resources, I skipped it. I know that in the
code it's related (UiBinder, UiRenderer, eventually ClientBundle), but
conceptually as a user I perceive those things as separate enough to be in
different
suggest to put it all together in a different documentation than the
one for uiBinder (example in UiRenderer): Indeed I've read that page, and
since it is somewhere in the resources, I skipped it. I know that in the
code it's related (UiBinder, UiRenderer, eventually ClientBundle
AFAICT, the differences between UiRenderer and UiBinder are that:
- widgets are not supported
- there's no owner class, which changes a few things:
- ui:with fields are provided by method arguments rather than
@UiField(provided=true)
- ui:field's are returned using getters
Hi
I'm trying to display smartGWT widgets in UIBinder mode.
I'm using https://code.google.com/p/uibinding-smartgwt/ to do this and I
had to modify the existing code to get the GWTDesigner to compile things
correctly.
Now I'm getting this error:
java.lang.AssertionError: This UIObject's
Hi,
I'm using Eclipse Kepler with GWT 2.6.1 and
GWT Designer for GPE (recommended)
WindowBuilder Core1.6.0.r43x201305211944
WindowBuilder XML Core (requires Eclipse WTP/WST)
1.6.0.r43x201306031653
I have no problem opening vanilla GWT UIBinder layouts, however when I try
the Java class
without the fields. Or you just talking about assuming the presence of the
annotation, since the Java field names have to match the ui:field
attributes in the xml anyway?
What I meant is that the factory you give to UiBinder would work the same
as a @UiFactory in your class
That's what I figured :)
On Tuesday, June 3, 2014 4:22:57 AM UTC-4, Thomas Broyer wrote:
What I meant is that the factory you give to UiBinder would work the same
as a @UiFactory in your class: no need for a @UiField/ui:field; if you have
a foo:MyWidget/ in your ui.xml, whether it has
Hi Thomas,
Yes it's funny you wrote that the proposed solution isn't convenient as an
answer to my proposal :-p
Then I don't get why you answered no for me patching GWT uiBinder even
though you were saying:
So let's move to PatchesWelcome as a signal that we're not opposed to
enhancing
For those us that might encounter this need for somewhat simple situations,
why not use a @UiFactory? That provides a reasonably clean solution that
separates the security aspects.
Provide a parameter like roles to the create method, which could parse a
comma-separated list of roles in a
On Monday, June 2, 2014 3:32:41 PM UTC+2, Steve C wrote:
It would be nice if the UiFactory methods could somehow be separated out
into their own class for reuse, but I don't think that's possible.
Cf. the discussion in
https://code.google.com/p/google-web-toolkit/issues/detail?id=6151
Yeah, that would be useful.
I'm kind of curious about the part: I'd like to see something a bit more
advanced where you don't need to declare the @UiFields. I may be
misinterpreting that, since I don't see how you could use the Java class
without the fields. Or you just talking about
Hi Steve,
I published an answer about the part you're curious about:
A UiBinder fork that does the job and a factory here
@ http://ziedhamdi.github.io/UiBinderAutho/
(more details in the issue discussion)
Le lundi 2 juin 2014 19:29:14 UTC+1, Steve C a écrit :
Yeah, that would be useful
Hello there! I am trying to use selenium with my GWT app and I have
noticed that it uses inappropriate css class selectors to find the widgets.
I did some research into this and it seems I need to use 'debugId'
attribute in my UiBinder xml template. I have added debugId attributes and
have
You must inherit com.google.gwt.user.Debug otherwise UIObject.ensureDebugId()
will be compiled out.
-- J.
--
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
with my GWT app and I have
noticed that it uses inappropriate css class selectors to find the widgets.
I did some research into this and it seems I need to use 'debugId'
attribute in my UiBinder xml template. I have added debugId attributes and
have also tried using the ensureDebugId method
understand it: those are evaluated by the
XML parser and (I believe, haven't checked) UiBinder doesn't see them; but
the cannot be output as is and must be escaped, contrary to ». I
believe you won't find raquo; in the generated code, but ».
On Wednesday, May 21, 2014 10:43:06 AM UTC+2, stuckagain
I have to revive this thread. I just stumbled on the same problem in my
UiBinder file. This really looks like a bug in GWT UiBinder.
I am using a different widget than Label (my own custom Button class that
extends HasHTML and HasSafeHtml).
I include the entity line:
!DOCTYPE ui:UiBinder
, stuckagain wrote:
I have to revive this thread. I just stumbled on the same problem in my
UiBinder file. This really looks like a bug in GWT UiBinder.
I am using a different widget than Label (my own custom Button class that
extends HasHTML and HasSafeHtml).
I include the entity line
understand it: those are evaluated by the
XML parser and (I believe, haven't checked) UiBinder doesn't see them; but
the cannot be output as is and must be escaped, contrary to ». I
believe you won't find raquo; in the generated code, but ».
On Wednesday, May 21, 2014 10:43:06 AM UTC+2, stuckagain
eagerly and conserved (this is the
job of the ClientFactory which indirectly delegates the call to the
UiBinder, so it is easy to invalidate widgets on logout, or completely
reload the page)
Thanks again for your answers
Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit :
Hi
I didn't have the time to answer to your comments yesterday.
*Instead of @RequireRole(superAdmin) you would then use
@RequirePermission(canMakePersonToAdmin) . *
It's pretty the same: my issue is that I cannot group widgets under the
same umbrella : nothing says that is a profile
What I was wondering is, if you do that permission thing inside GWT's
FieldWriter then isn't it annoying that you now must assume that all
security relevant @UiFields may be null? So you must do quite a bit of null
checks and deal with the fact that GWT developers normally think that a
need in authorization where I want to control if UiBinder
will create or not a widget (I could use visibility visible={roles.admin}
in my widgets but I want a smarter solution).
I'd like to use the info in ui:field at template parsing and decide
whether the field should be created
https://code.google.com/p/google-web-toolkit/issues/detail?id=8727thanks=8727ts=1400490147
Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit :
Hi all,
I have a special need in authorization where I want to control if UiBinder
will create or not a widget (I could use
with this
authorization issue and someone surely tried to solve it centrally.
Obviously it's not that common. When I'll have some time for fun I'll do
yet another open source for this purpose :)
As already said, it is far better do solve that problem without hacking
GWT. In fact UiBinder is pretty strict
Zied,
GWT is not JSP. In JSP you're rendering tiles/facets/pages on demand, so it
makes sense to add authorization restrictions directly into the tags.
However GWT code is compiled down before runtime, so there is no
foreknowledge of whether a user will meet the needed security roles at that
101 - 200 of 2730 matches
Mail list logo