Closed grantnorman closed 10 years ago
Apologies if some of the context is lost as this was resolved over a number of emails, but the best summary is below:
"You are correct that partial refresh will not change a xp:button label but I am a little concerned as to why you would want to do this?
I would not recommend this pattern as this could become a maintenance issue! (I do not know your app so there are exceptions to the rule) I would recommend having the partial refresh update a container div (xp:panel) and then within the div have buttons labeled appropriately that do specific things and use rendered property (hide/when) triggered by the sessionScope entry. These will then be updated and also your code will reflect that each button does a specific job.
If you do absolutely need to do this then you can use our controls and use something like:
Edited email from a customer:
"Be aware that we are new to xpages so that might account for some of the problems.
We have tested on ipad and iphone running IOS 7 and the up to date unplugged app from the store.
We have also tested this on the pc simulator and it works just fine.
The problem is we need to have a control that can run server side scripts and partial refresh itself and/or other controls.
After doing experiments, we have found that you can only partial refresh divs and divs cannot have server side scripts onclick."
I have an nsf from the customer, if required