-
Notifications
You must be signed in to change notification settings - Fork 102
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
bootsfaces script fails if id attribute contains - (hyphen) #441
Comments
BootsFaces is intended to be HTML5 conform within the limits of JSF. That means ids may consists of letters, digit, underscores and hyphens, but nothing else (see http://stackoverflow.com/questions/5972433/what-are-the-rules-for-a-jsf-id). However, I believe your question aims at something different. I take it you're talking about the widget variable of b:dataTable? And you want us to convert the kebab-case id to a camelCase widget variable? |
I am impressed by your prompt replies :) |
Just by the way: congratulations Stephan, you've contributed the project's 1000th commit! ;) |
Whow! |
Done and documented. Actually, this bug was pretty simple to fix. All I had to do is to call a method that's already there. I've uploaded a developer snapshot of BootsFaces 0.9.0 to Maven Central. See #369 on how to get it. |
Closing it was to early I think. I do not get any script errors but the whole search thing does not appear. the function is called snakeCaseToCamelCase so my assumption is now that it's only a cosmetic thing rather than taking care of the validity of a variable name. How about including my kepab? or adding a wiki that only underscores are allowed in bootsfaces but that would be poor wouldn't it? |
Well, I did test it, but I tested the wrong thing... :) It should be better now. I've uploaded another snapshot to Maven Central. |
It works! |
Currently, the data table is the only component that has a publicly exposed widgetVar. But of course, it's possible that we've used the clientId to define a variable in one of our 66 components. BTW, I didn't know the "hooray" emoji yet :). |
I will have an eye on the "others" :) |
Hi again,
I am not sure but shall bootsfaces be html5 conform?
the javascript is failing because I am using an id attribute like 'form-databable'. A widgetvar is created which then contains also a dash.That makes the script fail.
See https://www.w3.org/TR/html5/dom.html#the-id-attribute.
I have this problem with a b:dataTable in an h:form.
Kind regards,
Susanne
The text was updated successfully, but these errors were encountered: