Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Component/s: bootstrap
    • Labels:
      None

      Description

      Create a page as in:

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:s="http://jboss.org/schema/seam/taglib"
            xmlns:a="http://richfaces.org/a4j"
            xmlns:b="http://richfaces.org/sandbox/bootstrap"
            xmlns:rich="http://richfaces.org/rich"
            xml:lang="en" lang="en">
      
      <f:view>
          <h:head></h:head>
          <h:body>
              <h:outputStylesheet>
                  .outhello {
                      font-weight: bold;
                  }
              </h:outputStylesheet>
              <h:form>
                  <h:panelGrid columns="3">
                      <h:outputText value="Name:" />
                      <h:inputText value="#{bean.value}" />
                      <a:commandButton value="Say Hello" render="out" execute="@form" />
                  </h:panelGrid>
              </h:form>
              <br />
              <a:outputPanel id="out">
                  <h:outputText value="Hello #{bean.value} !" rendered="#{not empty bean.value}" styleClass="outhello" />
              </a:outputPanel>
      
              <br /><br /><br />
      
              <b:pickList value="#{listSelectBean.selectedCapitals}" sourceCaption="Available cities" targetCaption="Selected cities" orderable="true">
                  <f:selectItems value="#{listSelectBean.capitals}" var="capital" itemValue="#{capital}" itemLabel="#{capital.name}" />
                  <f:converter converterId="CapitalsConverter" />
              </b:pickList>
          </h:body>
      </f:view>
      </html>
      

      and drop it into the bootstrap demo.

      On inputting a name vaule, the javascript error is thrown:

      Uncaught Error: type property can't be changed jquery.js.jsf:477

      This is exactly the jquery issue: http://bugs.jquery.com/ticket/1957, but only manifests itself when the pickLiscomponent is re-rendered.

      And is probably caused by the LoCs:
      https://github.com/richfaces/sandbox/blob/develop/bootstrap/ui/src/main/resources/META-INF/resources/org.richfaces/widget/pickList.js#L55
      and
      https://github.com/richfaces/sandbox/blob/develop/bootstrap/ui/src/main/resources/META-INF/resources/org.richfaces/bridge/pickList.js#L19

      We'll need to be more careful about how we create the input elements, possibly using an html snippet, rather than the builder pattern.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bleathem Brian Leathem
                Reporter:
                bleathem Brian Leathem
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: