This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 3, 2011, 2:57 PM
7 Posts

Re: FYI : buttons and onClick event: two different things

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: button,events,onClick,All properties
  • Replies: 3
The reason why the update is not made via "all properties", is because this is not the same thing:
- when add an onclick event via the Events tab, you actually create an <xp:eventHandler> child property for the button, which has an <xp:this.action> tag that contains your code.
- when you edit the onClick event of the button in All Properties, you add an <xp:this.onlick> property to the button
 
have a look at the source code of the XPage to see what I mean. 
 
You can edit the code of the event handler via All Properties, but you need to navigate to the "Event Handler" under the button in the Outline view, and NOT to the button itself. Then, you will see that the "action" property has the right, up-to-date value. 
 
May 4, 2011, 1:17 PM
25 Posts
Re: FYI : buttons and onClick event: two different things
 Agreed... because of this I've started working more in the source rather than the UI. However I think this needs to be more obvious in the UI. There are so many people that have encountered this and had trouble with it, especially those just starting to learn XPages.
 
Keith 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal