BUG in p:carousel .. pf.3.3-SNAPSHOT

UI Components for JSF
Post Reply
3man
Posts: 99
Joined: 16 Jun 2011, 16:13

09 Apr 2012, 19:52

Hello,

I have problem when using p:inputText in p:carousel ..
Code that work:

Code: Select all

      <p:dialog modal="true" id="test_dlg" widgetVar="zoom">
            <h:form id="hform" >
                <p:inputText id="test1" size="15" value="#{testBean.property1}">
                    <p:ajax event="keyup" listener="#{testBean.keyUp}" />
                </p:inputText>
             </h:form>
      </p:dialog>
Code that doesn't work:

Code: Select all

      <p:dialog modal="true" id="test_dlg" widgetVar="zoom">
            <h:form id="hform" >
                <p:carousel id="tabsCarousel" rows="1" >
                    <p:tab  title="tab1">
                         <p:inputText id="test1" size="15" value="#{testBean.property1}">
                             <p:ajax event="keyup" listener="#{testBean.keyUp}" />
                         </p:inputText>
                    </p:tab>
                </p:carousel>
            </h:form>
      </p:dialog>
Bean:

Code: Select all

    public void keyUp(){
        System.out.println("[keyUp] property1: "+property1);
    }
Can somebody help me with this ?
-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1

3man
Posts: 99
Joined: 16 Jun 2011, 16:13

10 Apr 2012, 11:24

Can someone confirm this is bug, so I can create issue?

Thank you.
-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1

3man
Posts: 99
Joined: 16 Jun 2011, 16:13

11 Apr 2012, 17:32

-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1

3man
Posts: 99
Joined: 16 Jun 2011, 16:13

12 Apr 2012, 02:17

Quick dirty, dirty workaround:

Page:

Code: Select all

      <p:dialog modal="true" id="test_dlg" widgetVar="zoom">
            <h:form id="hform" >

                <p:commandLink id="hiddenLink" global="false" actionListener="#{testBean.keyUp}" style="display:none"/>

                <p:carousel id="tabsCarousel" rows="1" >
                    <p:tab  title="tab1">
                         <p:inputText id="test1" size="15" autocomplete="off" value="#{testBean.property1}" onkeyup="$('a[id=\'hform_kontrolaRJ:hiddenLink\']').click();" />
                         </>
                    </p:tab>
                </p:carousel>
            </h:form>
      </p:dialog>

Bean:

Code: Select all

  ....
    String property1;
//Getter & Setter

    public void keyUp(){
        this.property1 = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("hform:tabsCarousel:test1");
        System.out.println("[keyUp] property1: "+property1);
    }
-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests