Mobile InputSlider with ajax support

UI Components for JSF
Post Reply
StonedOne
Posts: 4
Joined: 12 Oct 2013, 13:34

12 Dec 2014, 04:08

Hello everyone,

you can find my used software versions in the signature. If anything is missing just ask.

I am try to archiv an InputSlider (pm:inputSlider) that is submitted on slideEnd. I know this is supported for desktop version but i can not attach an p:ajax to the mobile slider.

Tried to use the valueChangeListener but can not get it working with the slider. Other element like "selectOneMenu" is working as expected.

I got it working using the mobile version in an desktop browser while using a mouse. The commandlink is submitted on mouse up, but only when the cursor is still inside the slider.

Code: Select all

<p:commandLink process="@this">
   <p:outputLabel value="Volume #{renderer.status.volume}%" />
   <pm:inputSlider value="#{renderer.status.volume}" style="background-color: transparent; border: none;" />
</p:commandLink>
This behaviour is not only PF Version 5.1.6 it has been there since pm:inputSlider.

Is anyone using a slider as a volume or time control and has solved that issue?
Im open to any suggestions and can try them, posting the outcome here.

Greetings
Stoned
Using Primefaces 5.1.8
Running on Tomee-plus-1.7.1 (JSF 2.1) with Java 7

StonedOne
Posts: 4
Joined: 12 Oct 2013, 13:34

14 Dec 2014, 10:48

I also tried the solution from this post: http://forum.primefaces.org/viewtopic.php?f=8&t=37925

in a very simple way but the form is not submitting anything.

Code: Select all

            <pm:content>
                <h:form id="rendererForm">
                    <pm:field>
                        <p:outputLabel for="slider" value="Slider" />
                        <pm:inputSlider id="slider" value="#{renderer.status.volume}"
                                  valueChangeListener="#{renderer.changeVolume}"
                                  pt:onchange="submit();" immediate="true" />
                    </pm:field>
                </h:form>
            </pm:content>
The Bean function in the Backend (Volume is a String value).

Code: Select all

    public void changeVolume(ValueChangeEvent event) {
        log.log(Level.INFO, "volume [{0}]", event.getNewValue());
    }
Can anyone confirm this behavior?

Greetings
Stoned
Using Primefaces 5.1.8
Running on Tomee-plus-1.7.1 (JSF 2.1) with Java 7

StonedOne
Posts: 4
Joined: 12 Oct 2013, 13:34

16 Jan 2015, 17:30

Could anyone help me test this behaviour?

I went back to HTML 5 slider but it does not fit the Theme.
Using Primefaces 5.1.8
Running on Tomee-plus-1.7.1 (JSF 2.1) with Java 7

WillHolt
Posts: 1
Joined: 27 Jan 2015, 14:07

27 Jan 2015, 14:17

<p:dialog
header="Enter Last Name Search"
widgetVar="person-search-dialog"
onShow="setFocus('j_idt5:person-search-form:last-name-input')"
modal="true">
70-483
imran

facundomdiaz
Posts: 3
Joined: 08 Dec 2014, 21:36

24 Jul 2015, 19:21

Did you get any fix for that?
I need the same behavior you expect.

Thanks and regards,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests