Hi,
I am trying to use a modalPanel as a form block to stop users from clicking buttons/links after having already done one while the page is loading. Every thing seems to be happy except for h:selectOneMenu which always has the first selectItem replace whatever was there originally leading to loss of selection.., the converter's attached to them never have the getAsObject method invoked.
Basic structure is
<h:form> <h:selectOneMenu value="#{bean.property}"> <f:selectItems value="#{refdatabean.selectitemsproperty}"/> </h:selectOneMenu> <h:commandButton action="#{doX}" id="btn"> <rich:componentControl for="bb" attachTo="btn" operation="show" event="onclick"/> </h:commandButton> </h:form>
Putting the componentControl onto the form with event as onsubmit has the same issue. Putting immediate as true on the selectOneMenu does nothing (tried just to see).
The modal panel is
<rich:modalPanel id="bb" width="300" height="50"> <f:facet name="header"> <h:panelGroup> <h:outputText value="Processing..."></h:outputText> </h:panelGroup> </f:facet> <h:outputText value="Please wait while your request is being processed."></h:outputText> <br/> </rich:modalPanel>
pretty simple.
So, I am using this appropriately, is there another way to universally block form and outputlinks?
regards,
ss
I found and used How to show a Please Wait box and block the input while the Ajax request is processed, which works after figuring out the missing part (... in the example).
Still, any reason why h:selects get boned?