You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Amaris Nieves <da...@gmail.com> on 2008/10/17 21:39:22 UTC
[TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
I have the following block of code:
<tr:selectBooleanCheckbox id="same"
autoSubmit="true"
value="#{orderForm.samePostalAddress}"
label="#{msgBundle['address.label.samePostal']}"
valueChangeListener="#{orderForm.doAssignPostalAddress}" />
<tr:subform>
<tr:panelFormLayout>
<tr:selectOneRadio id="paSubType"
required="true" partialTriggers="::same"
value="#{orderForm.order.postalAddress.addressSubtype}">
<tr:forEach var="aType"
items="#{orderForm.postalAddressSubtypeList}">
<f:selectItem
itemLabel="#{aType.fieldName}"
itemValue="#{aType.fieldCode}" />
</tr:forEach>
</tr:selectOneRadio>
</tr:panelFormLayout>
</tr:subform>
I don't know if I'm doing something wrong but when you click on the checkbox
isn't the radio (id=paSubType) supossed to be repainted?
Thanks.
Re: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
Posted by Rafa Pérez <ra...@gmail.com>.
Try adding the partialTriggers to the panelFormLayout.
HTH,
--Rafa
On Sat, Oct 18, 2008 at 10:33 PM, Amaris Nieves <da...@gmail.com> wrote:
> No, there's no message in the server. I'm going to try
> the addPartialTarget().
> Thanks.
>
> On Fri, Oct 17, 2008 at 11:57 PM, dushyant agarwal
> <ag...@yahoo.co.in> wrote:
>>
>> Does the server show any warning on clicking on the check box?
>> Have you tried using addPartialTarget() in the valuechangelistener?
>>
>> -Dushyant
>>
>>
>> --- On Sat, 18/10/08, Amaris Nieves <da...@gmail.com> wrote:
>>
>> > From: Amaris Nieves <da...@gmail.com>
>> > Subject: [TRINIDAD] Problem with PPR using autoSubmit and
>> > ValueChangeListener
>> > To: "MyFaces Discussion" <us...@myfaces.apache.org>
>> > Date: Saturday, 18 October, 2008, 1:09 AM
>> > I have the following block of code:
>> >
>> > <tr:selectBooleanCheckbox
>> > id="same"
>> > autoSubmit="true"
>> >
>> > value="#{orderForm.samePostalAddress}"
>> >
>> > label="#{msgBundle['address.label.samePostal']}"
>> >
>> > valueChangeListener="#{orderForm.doAssignPostalAddress}"
>> > />
>> > <tr:subform>
>> > <tr:panelFormLayout>
>> > <tr:selectOneRadio
>> > id="paSubType"
>> > required="true"
>> > partialTriggers="::same"
>> >
>> > value="#{orderForm.order.postalAddress.addressSubtype}">
>> > <tr:forEach
>> > var="aType"
>> > items="#{orderForm.postalAddressSubtypeList}">
>> >
>> > <f:selectItem
>> > itemLabel="#{aType.fieldName}"
>> >
>> > itemValue="#{aType.fieldCode}" />
>> > </tr:forEach>
>> >
>> > </tr:selectOneRadio>
>> > </tr:panelFormLayout>
>> > </tr:subform>
>> >
>> > I don't know if I'm doing something wrong but when
>> > you click on the checkbox
>> > isn't the radio (id=paSubType) supossed to be
>> > repainted?
>> >
>> > Thanks.
>>
>> Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
>> Download Now! http://messenger.yahoo.com/download.php
>
>
Re: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
Posted by Amaris Nieves <da...@gmail.com>.
No, there's no message in the server. I'm going to try the
addPartialTarget().
Thanks.
On Fri, Oct 17, 2008 at 11:57 PM, dushyant agarwal <
agarwal_dushyant@yahoo.co.in> wrote:
> Does the server show any warning on clicking on the check box?
> Have you tried using addPartialTarget() in the valuechangelistener?
>
> -Dushyant
>
>
> --- On Sat, 18/10/08, Amaris Nieves <da...@gmail.com> wrote:
>
> > From: Amaris Nieves <da...@gmail.com>
> > Subject: [TRINIDAD] Problem with PPR using autoSubmit and
> ValueChangeListener
> > To: "MyFaces Discussion" <us...@myfaces.apache.org>
> > Date: Saturday, 18 October, 2008, 1:09 AM
> > I have the following block of code:
> >
> > <tr:selectBooleanCheckbox
> > id="same"
> > autoSubmit="true"
> >
> > value="#{orderForm.samePostalAddress}"
> >
> > label="#{msgBundle['address.label.samePostal']}"
> >
> > valueChangeListener="#{orderForm.doAssignPostalAddress}"
> > />
> > <tr:subform>
> > <tr:panelFormLayout>
> > <tr:selectOneRadio
> > id="paSubType"
> > required="true"
> > partialTriggers="::same"
> >
> > value="#{orderForm.order.postalAddress.addressSubtype}">
> > <tr:forEach
> > var="aType"
> > items="#{orderForm.postalAddressSubtypeList}">
> >
> > <f:selectItem
> > itemLabel="#{aType.fieldName}"
> >
> > itemValue="#{aType.fieldCode}" />
> > </tr:forEach>
> >
> > </tr:selectOneRadio>
> > </tr:panelFormLayout>
> > </tr:subform>
> >
> > I don't know if I'm doing something wrong but when
> > you click on the checkbox
> > isn't the radio (id=paSubType) supossed to be
> > repainted?
> >
> > Thanks.
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
> Download Now! http://messenger.yahoo.com/download.php
>
Re: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
Posted by dushyant agarwal <ag...@yahoo.co.in>.
Does the server show any warning on clicking on the check box?
Have you tried using addPartialTarget() in the valuechangelistener?
-Dushyant
--- On Sat, 18/10/08, Amaris Nieves <da...@gmail.com> wrote:
> From: Amaris Nieves <da...@gmail.com>
> Subject: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> Date: Saturday, 18 October, 2008, 1:09 AM
> I have the following block of code:
>
> <tr:selectBooleanCheckbox
> id="same"
> autoSubmit="true"
>
> value="#{orderForm.samePostalAddress}"
>
> label="#{msgBundle['address.label.samePostal']}"
>
> valueChangeListener="#{orderForm.doAssignPostalAddress}"
> />
> <tr:subform>
> <tr:panelFormLayout>
> <tr:selectOneRadio
> id="paSubType"
> required="true"
> partialTriggers="::same"
>
> value="#{orderForm.order.postalAddress.addressSubtype}">
> <tr:forEach
> var="aType"
> items="#{orderForm.postalAddressSubtypeList}">
>
> <f:selectItem
> itemLabel="#{aType.fieldName}"
>
> itemValue="#{aType.fieldCode}" />
> </tr:forEach>
>
> </tr:selectOneRadio>
> </tr:panelFormLayout>
> </tr:subform>
>
> I don't know if I'm doing something wrong but when
> you click on the checkbox
> isn't the radio (id=paSubType) supossed to be
> repainted?
>
> Thanks.
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php