I'm building an app at the moment that will have regular users and administrators. The part I am building atm is an intranet-like section that allows the admins to upload files to the blobstore (also using app engine), so that users can download them.
I have been using MVP with uibinder, so the FormPanel and FileUpload are baked into the UI. Obviously I only want the upload form to appear if it is an admin user looking at the page. Just wondering what the different approaches to this are, etc?
I am thinking about putting the panel that holds the form in the uibinder template, then programatically adding the FileUpload widget and the appropriate clickhandler and other logic. Is this the best way?
Thanks,
Drew
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Uy_dylP7NNwJ.
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