Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MYFACES-4679 / PH63238 in JSF (Ajax Invokes Actions Unintentionally) #29648

Open
volosied opened this issue Sep 13, 2024 · 0 comments
Open
Assignees
Labels
in:Web Components regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty team:Sirius

Comments

@volosied
Copy link
Member

volosied commented Sep 13, 2024

Describe the bug
Ajax Events Can Trigger Button Actions Unintentionally

Steps to Reproduce
If some element is ajax-enabled and specifies an event, it may trigger the action of the encompassing element.

For example, the blur event would trigger the bean.confirm action:

<h:commandButton id="confirm2" value="listener" action="#{bean.confirm()}" >
 <f:ajax event="blur" listener="#{bean.listener()}"/> 
</h:commandButton>

Expected behavior
The ajax enabled tag should not invoke any actions other than the listener, if specified.

Diagnostic information:

  • OpenLiberty Version: Since 24.0.0.1
  • Affected feature(s): jsf-2.2, jsf-2.3, faces-3.0, faces-4.0
  • Java Version: N/A
  • server.xml configuration (WITHOUT sensitive information like passwords)
  • If it would be useful, upload the messages.log file found in $WLP_OUTPUT_DIR/messages.log

Additional context
Add any other context about the problem here.

@volosied volosied added regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty labels Sep 13, 2024
@volosied volosied changed the title Fix MYFACES-4679 Fix MYFACES-4679 / PH63238 in JSF Sep 13, 2024
@volosied volosied changed the title Fix MYFACES-4679 / PH63238 in JSF Fix MYFACES-4679 / PH63238 in JSF (Ajax Invokes Actions Unintentionally) Sep 13, 2024
@volosied volosied self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components regression This bug is for something that worked in a past release, but no longer does release bug This bug is present in a released version of Open Liberty team:Sirius
Projects
Status: General Issues
Development

No branches or pull requests

1 participant