I tried what Pau suggeste i.e. setting the modal property to false and use on setEnabled(true). I still cant edit. All my edit boxes are disabled. Any ideas?
Oh and I am using GWT 2.0.4 On Sep 28, 7:05 am, Paul Stockley <[email protected]> wrote: > Just use the glass panel. Don't set it modal. The modal option doesn't > work for all browsers/input types. > > On Sep 28, 12:43 am, melody <[email protected]> wrote: > > > > > I have a modal dialog that I want to be modal so I have set the modal > > property thus: > > > DialogBox dlg = new DialogBox(); > > dlg.setModal(true); > > dlg.setGlassEnabled(true); > > > Now this dialog contains variaous widgets that include input elements > > like TextBox and ListBox's. > > > I use a widget constructed from HTMLPanel contain a bunch of Input > > Elements thus. > > > <code> > > > <g:HTMLPanel width='450px' styleName='{style.outer}'> <!-- > > ui:field='m_outer_panel'>--> > > <div class='{style.top}'> > > <div class='{style.inputpanel}'> > > <div class='{style.ordertype}'> > > <progeny:DefaultLabel > > ui:field='m_ordertype_label' text='Order Type' > > styleName='{style.prompt}'/> > > <div class='{style.editboxC}'> > > <g:ListBox ui:field='m_ordertype_dd' > > addStyleNames='{style.textbox}' tabIndex='1' height='100%' > > width='100%'/> > > </div> > > </div> > > </div> > > <div class='{style.buttons}'> > > <g:Button text='Search' ui:field='m_save_button' > > addStyleNames='{style.save}' tabIndex='10' height='auto'/> > > </div> > > </div> > > > <div class='{style.fields}'> > > <g:FlowPanel styleName='{style.fields-container}'> > > <g:FlowPanel styleName='{style.fields-left}' > > ui:field='m_fields_panel'> > > </g:FlowPanel> > > </g:FlowPanel> > > </div> > > </g:HTMLPanel> > > </ui:UiBinder> > > > </code> > > > PROBLEM: > > 1. If I use the dialog with no glasspanel it is never modal which is > > annoying > > 2 When I use glasspanel (setGlassEnabled) it becomes modal but then > > disables all input elements including the ones inside the dialog > > itself > > > What to do? > > > Thanks for your ideas. > > > Melody -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
