Dynamic expression is required here inspection

Answered

Intellij Idea 2017.2 complains about such constructs: 

<h:outputText id="data" escape="false" binding="#{dataResponse.jsonOutput}" value="#{dataResponse.orgUnitsJson}" />

It says that dolar (deferred) syntax is required in attributes.

When I look at this question: What are the differences between ${} and #{}?

  1. They describe both syntaxes oppositely.
  2. It seems that they are interchangable

This code is legacy so even if the inspection is right I do not want to rewrite it completely. How can I stop this inspection? I have not found it in Inspections list.

0
3 comments
Avatar
Yaroslav Bedrov

Hello,

I couldn't reproduce the issue on my machine. Is it possible to provide sample project example for investigation?

 

0
Avatar
Permanently deleted user

I have minimum viable project with this issue. How can I upload the zip archive?

0
Avatar
Yaroslav Bedrov

You could use https://uploads.services.jetbrains.com/ or FTP: ftp://ftp.intellij.net/.uploads/ (anonymous login, .uploads directory has no permissions to list/download files, only for upload, so that other users will not be able to download your files).

0

Please sign in to leave a comment.