5 Replies Latest reply on Jun 5, 2008 5:11 PM by bgregory

    InplaceInput support

      I'm guessing that since InplaceInput is a relatively new richfaces control, that there isn't support for it yet.

      Brian

        • 1. Re: InplaceInput support

          FYI: It seems that RichFacesClient.setInputNumberSpinner() works fine for inplace input controls.

          Brian

          • 2. Re: InplaceInput support

            Actually my previous comment is wrong, there is a slight modification required to support inplace-input.
            I wrote this new function to be added to RichFacesClient:

            public void setInputInplace(String componentID, String value)
             throws SAXException, IOException
             {
             String clientID = client.getClientIDs().findClientID(componentID);
             Element docElement = client.getUpdatedDOM().getDocumentElement();
             // Here is the only difference from setInputNumberSpinner()
             Element input = DOMUtil.findElementWithAttribValue("name", clientID+"value", docElement);
             input.setAttribute("value", value);
             refreshPageFromDOM();
             }
            


            The only difference is the name of the element into which the value is placed ("value" added to the end of the clientID)

            • 3. Re: InplaceInput support

              Apparenlty this isn't completely correct either - It works in one case, but not the other darnit. I'll post more information later today.

              • 4. Re: InplaceInput support
                ssilvert

                I don't expect that this will work until we finish with the HtmlUnit integration. Stay tuned.

                Stan

                • 5. Re: InplaceInput support

                  I've found that the above code does work. I had forgotten to do the ajaxSubmit() on the ajax support control in order to ensure my action listener was called.

                  Brian