0

Method setIdentity not found for class org.zkoss.zul.impl.MessageboxDlg$Button

asked 2024-03-14 19:19:02 +0800

Worsik gravatar image Worsik
1

I am trying to upgrade our application from 8.5.1 to 10.0.0 and after some troubles I succeeded with running application. But when I try to open Messagebox modal window (we have custom ZUL template), there is this error: Method setIdentity not found for class org.zkoss.zul.impl.MessageboxDlg$Button I realize it's connected to our custom template where we use elements like this one:

<button identity="${arg.CANCEL}" sclass="btn btn-orion btn-orion-grey z-messagebox-button z-messagebox-button-cancel" use="org.zkoss.zul.impl.MessageboxDlg$Button"
    if="${!empty arg.CANCEL}"/>

I cannot find any "new" approach to messagebox customization without "identity" attribute. I found one ZK Fiddle: sample/308os75/3-multiline-messagebox-with-atodisable-button#source-2 and found out that this error starts with ZK 10. (I needed to remove dynamic attribute from style, but when I use latest ZK 9, there is no error, when I start that with ZK 10, error occures.

Thank you for your help, I am expecting much more troubles on the way to adopt ZK 10 with no error at all.

Petr

delete flag offensive retag edit

Comments

I found default messagebox.zul and after few changes everything works perfectly. But it would be nice to know about this breaking change. I didnt find any notice about that

Worsik ( 2024-03-14 20:26:03 +0800 )edit

Glad to know you are upgrading to ZK 10, we hope you like the new features. We have cleaned up many deprecated methods, please refer to: https://www.zkoss.org/wiki/SmallTalks/2024/February/NewFeaturesofZK10.0.0/RemovedAPI We will make it more clear in our release note.

jeanher ( 2024-03-18 09:18:06 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2024-03-14 19:19:02 +0800

Seen: 2 times

Last updated: Mar 14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More