GWT, UiBinder : "Attribute height is not allowed here" inside <table> and <tr> tags
GWT, UiBinder : "Attribute height is not allowed here" inside all <table> and <tr> tags.
Code inspection shows these errors in *ui.xml file.
TestHtmlTable.ui.xml:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<g:HTMLPanel width="100%" height="100%">
<table width="100%" height="200px">
<tr height="200px">
<td height="50%"></td>
</tr>
</table>
</g:HTMLPanel>
</ui:UiBinder>
TestHtmlTable.java:
package com.mySampleApplication.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
public class TestHtmlTable extends Composite {
interface TestHtmlTableUiBinder
extends UiBinder<HTMLPanel, TestHtmlTable> {
}
private static TestHtmlTableUiBinder ourUiBinder = GWT.create(TestHtmlTableUiBinder.class);
public TestHtmlTable() {
initWidget(ourUiBinder.createAndBindUi(this));
}
}
GWT 2.8.2
IntelliJ IDEA 2020.1.4 (Ultimate Edition)
Build #IU-201.8743.12, built on July 21, 2020
Licensed to **************************************
Subscription is active until August 16, 2020
Runtime version: 11.0.7+10-b765.65 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 7 6.1
GC: ParNew, ConcurrentMarkSweep
Memory: 2006M
Cores: 4
Non-Bundled Plugins: org.jetbrains.kotlin, cn.wuzhizhan.plugin.mybatis
Please sign in to leave a comment.
Please submit bug request in YouTrack with a sample project attached. https://youtrack.jetbrains.com/newIssue
It's been 8 months.... Any progress on this issue?
Please take your time and create sample gwt project and add 2 files I have listed above. I will see the issue.
Can't reproduce: https://i.imgur.com/rdcxIFB.jpg
Please share a sample project.
Ok.
Here is a test project.
https://disk.yandex.ru/d/NgqjlpvGOygMsQ
Still working fine. https://i.imgur.com/65ngSRG.png
Please try several troubleshooting steps:
1. Update IntelliJ IDEA to the latest version (2020.3.3)
2. Remove/rename .idea directory in the project's root and re-import the project.
3. Reset settings to default via File | Manage IDE Settings | Restore Default Settings
Let me know if it does not help.
I just tried it - nothing helped
May you show the screencast of the whole IDE window while reproducing the issue? Please start with "Help | About" screen.
Thank you.
I haven't tools for screencast on my work.
Here about screen info:
IntelliJ IDEA 2020.3.3 (Ultimate Edition)
Build #IU-203.7717.56, built on March 15, 2021
Licensed to *******************************************
Subscription is active until August 15, 2021.
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 7 6.1
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 4
Non-Bundled Plugins: com.intellij.gwt
Reproduced that finally and notified the responsible developer about that.
Please follow https://youtrack.jetbrains.com/issue/IDEA-246781 for updates.
See this article if you are not familiar with YouTrack.