简体   繁体   English

Eclipse(Mars)jsf el表达式(jboss工具)

[英]Eclipse(mars) jsf el expression (jboss tools)

i have problem with el expression in jsf. 我在jsf中遇到el表达问题。

I installed jboss tools to have suggestions for properties on managed beans, and that works just fine. 我安装了jboss工具,以提供有关托管bean的属性的建议,并且效果很好。

The problem is when i open xhtml file in jboss tool html editor, or any other editor in eclipse, el expression is treated as plain text, a simple string. 问题是当我在jboss工具html编辑器或Eclipse中的任何其他编辑器中打开xhtml文件时,el表达式被视为纯文本,即简单字符串。

So for example if i have value="#{textManagedBean.field1}" and i want to double click on field1 so i can select ONLY field1 i get whole string selected (from " to "). 因此,例如,如果我有value =“#{textManagedBean.field1}”并且我想双击field1,那么我只能选择field1,我会选择整个字符串(从“到”)。

On top of that in value="#{textManagedBean.field1}" i would like for textManagedBean.field1 to be in black and not blue... 最重要的是在value =“#{textManagedBean.field1}”中,我希望textManagedBean.field1为黑色而不是蓝色...

http://imgur.com/fF6ffyl http://imgur.com/fF6ffyl

I want it to behave same as in Netbeans, there it's acting as a peace of code, it gets black and all... 我希望它的行为与Netbeans中的行为相同,在那里它起到了代码和平的作用,它变黑了……

Can anyone help with this? 有人能帮忙吗? Thanks in advance! 提前致谢! :D :D

AFAIK you can change color for Attribute values (Preferences->Web->HTML Files->Editor->Syntax Coloring->Attribute Values), but that's not exactly what you want I guess. AFAIK,您可以更改属性值的颜色(首选项-> Web-> HTML文件->编辑器->语法着色->属性值),但这并不是我想要的。 You can log an feature request in JBoss Tools issue tracker here: issues.jboss.org (project "JBIDE", component "jsf"). 您可以在JBoss Tools问题跟踪器中记录功能请求:issue.jboss.org(项目“ JBIDE”,组件“ jsf”)。 Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM