-
Notifications
You must be signed in to change notification settings - Fork 495
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
BUG: problem with passing Number and String data type to javascript function in thymeleaf looping th:each #989
Comments
Hello Coldyoyo100, Please bear in mind that Thymeleaf, via th:onclick, only produces text, it does not process Javascript code. I recommend two things here:
I guess the error you are seeing is a Javascript error, so it is probably related to Javascript infered types, not related to Thymeleaf. |
Hello, When you say that IJKL is the value of clientId, it does not seem to be the case because if clientId were not null, the output would contain a dash (-). I simply think that clientId is null in your example. Anyway, as I understand where you are coming from, the described problem is not a Thymeleaf issue. It is quite difficult to give you an actionable tip without seeing the full source code and data, I suggest to post it in a more general web development forum like Stack Overflow. |
BUGS:
hi, i'm struggle with passing parameter from th:each to javascript function with combination number and string. i think this is bug, because when i'm passing with same number param, the framework could read it properly but not otherwise with string.
here's the case, let say i got 3 variable :
test 1) when insert with both same number type of data, it's work
test 2) but when combine with Number and String param, it's not working and i got error
test 3) insert same variable, but i turn 1 variable to string with single quote ( ' ' )
test4) try different approach, with combination number and string, the framework could read the string data, but not for number type data
if anyone had any solution, please help me. thx
The text was updated successfully, but these errors were encountered: