Primefaces upgrade to 14 : DefaultCommand with same scope and target. #3233
Unanswered
pradipt1505
asked this question in
PrimeFaces
Replies: 1 comment 3 replies
-
Can you create a PF test reproducer showing the issue? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
We are working on migrating PrimeFaces 11(jakarta) to PrimeFaces 14(jakarta). In our project, we are using multiple defaultCommand in the same form. This works completely fine in PrimeFaces 11. But after migration, we are observing following error:
![image](https://private-user-images.githubusercontent.com/44001757/396277359-f4d8e11a-8152-4b8a-9bd1-4868c863ee81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQzOTk5NjQsIm5iZiI6MTczNDM5OTY2NCwicGF0aCI6Ii80NDAwMTc1Ny8zOTYyNzczNTktZjRkOGUxMWEtODE1Mi00YjhhLTliZDEtNDg2OGM4NjNlZTgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjE3VDAxNDEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxY2ZhODlhNmVlMTU1NTVlOTY1NGQwNWQzZGFmMzk5YjkyODliM2E4ZTZmZWVkNjc2NTU3YjE3YjE3Yjk0M2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ApRmGdqY6PE93jdL1jGH7f7AggXtGfy2rFSQS0ka8Ts)
On further analysis we observed that it is happening when scope and target value is same for defaultCommand. The same logic works properly with Primefaces 11.
On checking the changes done from PrimeFaces 11 to PrimeFaces 14, we observed that there was change done 7 months ago in the same line. In the above case, this.jqTarget[0] is undefined due to which we are getting error.
Can you please review and provide your feedback?
Beta Was this translation helpful? Give feedback.
All reactions