7 Replies Latest reply on Aug 24, 2009 3:29 AM by ilya_shaikovsky

    rich:inplaceInput and LoadScriptStrategy=ALL?

    leolo

      Hi,

      I'm using RichFaces 3.3.1.Beta3.

      I created a <rich:dataTable> with <rich:inplaceInput>-elements in each row.

      The performance is quite nasty, so I tried a bit around. I switched
      org.richfaces.LoadScriptStrategy to ALL.

      After that the rendered <rich:inplaceInput>-elements are broken.
      the value of the element is written two times and stuff.

      Is there any known problem?

      Regards, LeoLo

        • 1. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
          ilya_shaikovsky

          yes.. it's known. and solved in 3.3.1 GA.

          • 2. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
            leolo

             

            "ilya_shaikovsky" wrote:
            yes.. it's known. and solved in 3.3.1 GA.


            Hi Ilya,

            thanks for the information. I updated to 3.3.1.GA but my <rich:inplaceInput>-elements still are broken! (Firefox 3.0.13 and IE 7.0.5730.13)

            But I realised, that the problem is not setting org.richfaces.LoadScriptStrategy=ALL, the cause is org.richfaces.LoadStyleStrategy=ALL
            (org.richfaces.LoadStyleStrategy=DEFAULT works fine).

            Any idea about this one?

            Could you give me a link to the JIRA-Issue, that's solved in 3.3.1.GA regarding the inplaceInput?


            Regards, LeoLo

            • 3. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
              nbelaevski

              Hi LeoLo,

              Do you have any custom CSS on the page? How does it look like?

              • 4. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
                leolo

                Hi!

                "nbelaevski" wrote:
                Hi LeoLo,

                Do you have any custom CSS on the page? How does it look like?


                No, no custom CSS.

                I created a minimal "problem-setup". I've two pages A.xhtml and B.xhtml (code appended) on a JBoss Portal 2.7.2, Bridge 1.0.0.CR2 and RichFaces 3.3.1.GA.

                Page B has an inplaceInput, that is broken, if I invoke Page B by executing an action on Page A.

                If I invoke Page B directly (e.g. setting as start-page for the portlet), the inplaceInput is not broken.

                To sum up:
                - direct invocation of page B, inplaceInput *works*
                - invocation of page A, click on <a4j:commandLink>, JSF navigates to page B, voila, the inplaceInput on Page B does *not* work.

                I dunno, what's happening here...

                Regards, LeoLo

                Here come the pages:

                Page A:
                =====
                <?xml version="1.0" encoding="UTF-8"?>
                <ui:composition xmlns="...">
                 <h:form>
                 <rich:dataTable value="#{controllerBean.lists}" var="list" rows="20" rowKeyVar="row" id="table">
                 <rich:column>
                 <a4j:commandLink ajaxSingle="true" id="editlink" action="edit">AAA</a4j:commandLink>
                 </rich:column>
                 </rich:dataTable>
                 </h:form>
                </ui:composition>
                



                Page B:
                =====
                <?xml version="1.0" encoding="UTF-8"?>
                <ui:composition xmlns="...">
                 <h:form>
                 <rich:dataTable value="#{controllerBean.selectedList}" var="element" rowKeyVar="row">
                 <rich:column>
                 <rich:inplaceInput value="#{element.value}" />
                 </rich:column>
                 </rich:dataTable>
                 </h:form>
                </ui:composition>
                


                • 5. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
                  leolo

                  ...the inplaceInput is only broken, if I set the parameter org.richfaces.LoadStyleStrategy=ALL!

                  • 6. Re: rich:inplaceInput and LoadScriptStrategy=ALL?
                    leolo

                    Maybe someone is able to reproduce this issue?