dynamically traverse editor form for security?

16 views
Skip to first unread message

Elhanan

unread,
Jul 10, 2011, 10:07:13 AM7/10/11
to google-we...@googlegroups.com
hi.. is it possible to use the EditorVisitor to get access to the editor's widgets  (textbox,date, etc..) and enable or disable according to security values i will set from the server?

Thomas Broyer

unread,
Jul 10, 2011, 12:46:24 PM7/10/11
to google-we...@googlegroups.com
Yes and no, but in most cases, no.

EditorVisitor gives you access to the Editors, and all "base" editor widgets in GWT implement IsEditor, not Editor. That is, with the EditorVisitor you'll get a ValueBoxEditor<String>, not the TextBox.

Elhanan Maayan

unread,
Jul 10, 2011, 4:05:52 PM7/10/11
to google-we...@googlegroups.com
is there another way to reflective recursive search in a form?

it's just occured to me, that won't solve my problem with buttons and things that are not editors.

it would the developer would have would have somehow "annotated" the element of the widget with something and i would have to create a visitor class for the form (assuming the form is a complex panel)

On Sun, Jul 10, 2011 at 7:46 PM, Thomas Broyer <t.br...@gmail.com> wrote:
Yes and no, but in most cases, no.

EditorVisitor gives you access to the Editors, and all "base" editor widgets in GWT implement IsEditor, not Editor. That is, with the EditorVisitor you'll get a ValueBoxEditor<String>, not the TextBox.

--
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/-/hAxauU8npZQJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages