[
https://issues.jboss.org/browse/JBIDE-21380?page=com.atlassian.jira.plugi...
]
Alexey Kazakov commented on JBIDE-21380:
----------------------------------------
Your project may be a plain Utility Module but it still can provide some java beans which
will be used by another JSF project. So we need a KB support enabled for such modules to
get them available in JSF project.
As a workaround I would recommend to disable EL Validation for your Utility or JPA
projects. You can do it in Preferences. Or you can add the corresponding suppress warning
annotation via a QuickFix.
EL syntax error: String is not closed with string concatenation
---------------------------------------------------------------
Key: JBIDE-21380
URL:
https://issues.jboss.org/browse/JBIDE-21380
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsf
Affects Versions: 4.3.x
Environment: Eclipse Mars.1 (4.5.1)
Reporter: Andrei Ivanov
Assignee: Viacheslav Kabanovich
Priority: Minor
Fix For: 4.4.x
I get a {{EL syntax error: String is not closed.}} warning when an expression is composed
using string concatenation:
{code:java}
String expression = "#{" + entry.getValue() + "}";
{code}
\\
\\
A different issue I think might be that when enabling the JSF support for the web module,
the JBoss Tools Knowledge Support is enabled for the other modules too, including the data
module.
This leads to {{EL syntax error: Expecting expression.}} for a JPA query with Spring EL
expressions:
{code:java}
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface FunctionsRepository extends PagingAndSortingRepository<Function,
Integer> {
@Query("SELECT DISTINCT r.workCenter.function"
+ " FROM StaffingAgreementDataRecord r"
+ " WHERE r.staffingAgreement.customer.id IN :customerIds"
+ " AND r.staffingAgreement.startDate <= :#{#interval.end}"
+ " AND r.staffingAgreement.endDate >= :#{#interval.start}")
List<Function> findByCustomersAndInterval(List<Integer> customerIds,
Interval interval);
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)