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

Combobox (<b:selectOneMenu>) with readonly="true" #828

Closed
matasci opened this issue Jul 27, 2017 · 3 comments
Closed

Combobox (<b:selectOneMenu>) with readonly="true" #828

matasci opened this issue Jul 27, 2017 · 3 comments
Assignees
Milestone

Comments

@matasci
Copy link

matasci commented Jul 27, 2017

The selectOneMenu with readonly="true" it does not block changes.

<b:row>
	<b:selectOneMenu label="Test-selectOneMenu" readonly="true">
		<f:selectItem itemLabel="Test1" itemValue="1" />
		<f:selectItem itemLabel="Test2" itemValue="2" />
		<f:selectItem itemLabel="Test3" itemValue="2" />
	</b:selectOneMenu>
</b:row>
@matasci matasci changed the title Combobox (<b:selectOneMenu>) Combobox (<b:selectOneMenu>) with readonly="true" Jul 27, 2017
@stephanrauh stephanrauh self-assigned this Jul 30, 2017
@stephanrauh stephanrauh added this to the v1.2.0 milestone Jul 30, 2017
@stephanrauh
Copy link
Collaborator

Interesting find. The good news is that the input is rejected by the backend, so little harm is done (apart from displaying a confusing UI, which is bad enough).

@stephanrauh
Copy link
Collaborator

Also, see https://stackoverflow.com/questions/32846865/twitter-bootstrap-select-readonly-still-able-to-change-options. Apparently, there's no readonly attribute in standard HTML.

stephanrauh added a commit that referenced this issue Jul 30, 2017
…r disabled field. Plus, don't generate options that can't be selected because the b:selectOne is disabled or readonly.
@stephanrauh
Copy link
Collaborator

Now <b:selectOneMenu readonly="true" /> renders more or less the same code as <b:selectOneMenu disabled="true" />.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants