-
1. Re: rich:inplaceSelect not working in RF4
ppitonak Jul 21, 2014 3:48 AM (in response to kishi_kiran)Hi,
I don't understand your use-case but there are several problems:
- rich:inplaceSelect doesn't have parameter onviewactivation so it doesn't do anything
- why does a4j:ajax have event="onviewactived"? BTW, in RF, events shoud omit "on" so you should use e.g. "change" instead of "onchange"
- a4j:ajax doesn't have ajaxSingle parameter, you should use execute="@this" instead
Regards,
Pavol
-
2. Re: rich:inplaceSelect not working in RF4
kishi_kiran Jul 21, 2014 5:18 AM (in response to ppitonak)yes Pavol,
thats true, there is no attribute onviewactivation in RF4, (it was working on RF3.3)
and am in the course of migating RF3.3 to RF4, but i dont find the alternative attribute for that in RF4.
I have tried with the change event, still it is not working, the update method is not called when I change the value from selection list.
this isthe code whic i have changed
<rich:column id = "nTypeClmn">
<f:facet name = "header">
<h:outputText id = "NotificationsHeder" value = "#{messagesRefdata['admin.alertprofiles.notification']}"/>
</f:facet>
<rich:inplaceSelect id="notificationselect" value = "#{ntc.notification}" showControls = "true"
defaultLabel = "Click to add Notification"
openOnEdit = "true" saveOnSelect="true" onchange="old=event.memo.oldValue">
<f:selectItems value = "#{notificationConfigurationBean.listOfNotifications()}"/>
<a4j:ajax action = "#{notificationConfigurationBean.update(ntc)}"
ajaxSingle = "true" event = "change" execute="@this"
onbeforesubmit="if (event.memo.value == old) {return false;}"
render="notificationsModelPanel">
<f:param name = "partyId" value = "#{param['partyId']}"/>
</a4j:ajax>
</rich:inplaceSelect>
</rich:column>
and one more problem when i use the showControls = "true" attribute, the OK and cancel buttons are appearing and disappearing(just flashing) , i am unable to click the ok or cancel buttons.
can you help me on this why the update method, is not getting called is it need any extra from or buttons to call?
-
3. Re: rich:inplaceSelect not working in RF4
ppitonak Jul 21, 2014 7:00 AM (in response to kishi_kiran)Can you create a minimal xhtml and bean for me to try it out?