Is it consistently that you don't get it when it's
unchecked, but do get it when it's checked?

-- Adam


On 11/9/06, Piyush Hari <[EMAIL PROTECTED]> wrote:
I am using Sun's implementation of JSF here and not MyFaces, if that makes
any difference ?

-Piyush

----- Original Message -----
From: "Piyush Hari" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, November 09, 2006 2:25 PM
Subject: valueChangeListener of a selectBooleanCheckbox


>I run into a problem where my checkbox seems to lose its
>ValueChangeListener on a mobile browser like Pocket IE, IE Mobile.
> Here is what I have on my JSF page:
>
> <tr:form>
>    <tr:panelGroupLayout>
>    <tr:selectBooleanCheckbox text="selectBooleanCheckbox 1"
>                                               label="Label 1"
>
> valueChangeListener="#{bean.valueChange}"
>                                               id="check1"
>                                              autoSubmit="true"
>      />
> </tr:form>
>
> I have a backing bean 'Bean' in 'session' scope that looks like this:
>
> public class Bean {
>   public Bean() {    }
>   public void valueChange(ValueChangeEvent valueChangeEvent) {
>       // Add event code here...
>       System.out.println("valueChange event is being called !");
>  }
> }
>
> When the page first comes up, I click on the checkbox. I DON'T see the
> message "valueChange event is being called". But when
> I click again, the same ValueChangeListener gets invoked and displays the
> message "valueChange event is being called".
> Does anybody know what I did wrong?
>
> BTW, this works fine on Desktop applications. I am wondering why it does
> not for mobile browsers. Does valueChangeListener for a checkBox has a
> dependence on the type of Browser ?
>


Reply via email to