June 13, 2016 at 12:25 am #485709
env:MyEclipse Enterprise Workbench
Version: 2016 CI 3
Build id: 14.0.0-20160503
I am doing a j2ee project,when I enable live priview,I find that there are so mang “data-genuitec” attribute in all my jsp files.I guess you achieve the live preview by this attribute.But when I deploy the project.Tomcat throw a exception:
org.apache.jasper.JasperException: /index.jsp (line: 2, column: 0) Forward has invalid attribute: data-genuitec
And the index.jsp:
<%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>
<jsp:forward page=”/login_toLogin” data-genuitec=”wc1-70-4980″/>
It seems like that the ‘org.apache.jasper.compiler.JspUtil.checkAttributes’ can’t recognize the ‘data-genuitec’. Then I delete that attribute in this file.And this time,no exception throws.I notice that other jsp files also have this attribute,but no exception throws.Maybe ‘org.apache.jasper.compiler.JspUtil.checkAttributes’ can’t resolve <jsp:forward/> tag.
But then comes the second problem:encoding.
I am a programer from China.We use UTF-8 all the time.When I enable the live preview,the chinese in the jsp file genarated by MyEclipse when I deploy the project become unreadable code,like:����.
But I can’t find out where to solve the encoding problem.Is there somewhere I can config the encoding?
Then I disable the live preview.All things is OK!
I think live preview is very useful,so I don’t want to disable it.Can anyone help me? Thanks a lot!June 13, 2016 at 9:08 am #485777
Sorry that you are seeing issues with Live Preview. The issue with the data-genuitec attribute is a known one when namespaces are used in the top level element and the fix will be out soon with our next update.
I could replicate the issue with the encoding at my end. I have filed a bug with the dev team for further investigation. We will keep you posted about the fix soon.
Apologies for inconvenience caused.
MyEclipse SupportJune 13, 2016 at 10:47 pm #485915
It is alright.And thanks for developing such a amazing program.I am long for next update.June 29, 2016 at 2:28 am #487544
An update to MyEclipse 2016 CI is out with the fixes for the issues you reported. Can you please update to MyEclipse 2016 CI 4 from Help > Check for Updates and check how it works?
With the latest update, to use Live Preview, you will now need to turn on CodeLive per server, and then select the files you want to use CodeLive. The first time you view you web project in a browser, you can select the files that will utilize CodeLive. This change in Live Preview optimizes performance by injecting only the necessary files.
Here is the updated documentation for Live Preview using CodeLive : https://www.genuitec.com/products/webclipse/learning-center/using-live-preview/
Let us know how it works for you. Thank you for your patience.
MyEclipse SupportJune 29, 2016 at 8:33 am #487561
It works very well! Thank you very much.Now I can choose which file to have the live preview(code live) feature through the panel in my browser.It is very convenient.No more exception and no more encoding problems.It’s very useful,really.And I am expected for the next upgrade for the feature:”Hover on a element to see where it comes from in code” and other amazing features.
Thanks a lot again.
June 29, 2016 at 10:11 am #487573
Thank you for updating to MyEclipse 2016 CI 4. Glad that the issues are resolved. We appreciate your feedback.
Let us know if you see any issues.