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

b:inputText not working in Chrome #1079

Closed
jaberu opened this issue Jun 6, 2019 · 1 comment · Fixed by #1083
Closed

b:inputText not working in Chrome #1079

jaberu opened this issue Jun 6, 2019 · 1 comment · Fixed by #1083
Assignees
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Milestone

Comments

@jaberu
Copy link

jaberu commented Jun 6, 2019

I'm trying to write multiple tags to a managed bean, but the value is always an empty string.
My InputText looks like:

<b:inputText id="dataTypeProcedures" value="#{dataTypeBean.tags}" placeholder="Verfahren" tags="true" typeahead="true" typeahead-values="#{dataTypeBean.avaliableProcedures}" tiny-screen="full-width" />

I think Problem is, that the input field is rendererd twice with the same name in html, why Chrome sents two values back to server, one empty, one with correct. However the empty value is set to the backing bean.
image
I'm using Chrome Version 70.0.3538.77 , Bootsfaces 1.4.1

@jaberu
Copy link
Author

jaberu commented Jun 7, 2019

Supplement:
Problem seems to occur because, two input elements are rendered in html (both with component id as name).
When removing the tags="true" option, only one input element is rendered as expected

pkelbert pushed a commit to pkelbert/BootsFaces-OSP that referenced this issue Jun 12, 2019
Tagsinput clones InputText 'input' HTML element and keeps both original
and newly created elements with 'name' attribute.

This commit removes duplicated 'name' attribute on newly created HTML
'input' element via inline JavaScript for each InputText component with
tags enabled.

Fix TheCoder4eu#1079
@stephanrauh stephanrauh self-assigned this Aug 2, 2019
@stephanrauh stephanrauh added this to the v1.5.0 milestone Aug 2, 2019
stephanrauh pushed a commit that referenced this issue Aug 2, 2019
Tagsinput clones InputText 'input' HTML element and keeps both original
and newly created elements with 'name' attribute.

This commit removes duplicated 'name' attribute on newly created HTML
'input' element via inline JavaScript for each InputText component with
tags enabled.

Fix #1079
@TheCoder4eu TheCoder4eu modified the milestones: v1.5.0, v1.4.2 Aug 28, 2019
@TheCoder4eu TheCoder4eu added the Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation. label Aug 28, 2019
geopossachs added a commit to geopossachs/BootsFaces-OSP that referenced this issue Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants