This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124884 - "preview in browser..." different from actual rendering
Summary: "preview in browser..." different from actual rendering
Status: RESOLVED INCOMPLETE
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-08 13:40 UTC by autozoom
Modified: 2008-01-11 01:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Installer build 6.0.1 designer view (210.32 KB, text/plain)
2008-01-08 19:55 UTC, _ krystyna
Details
Installer build 601 preview (129.55 KB, text/plain)
2008-01-08 19:57 UTC, _ krystyna
Details
messages log (56.68 KB, text/plain)
2008-01-08 22:11 UTC, _ krystyna
Details
re-output designer view (160.41 KB, text/plain)
2008-01-08 22:11 UTC, _ krystyna
Details
re-output designer.JPG (160.41 KB, image/jpeg)
2008-01-08 22:13 UTC, _ krystyna
Details
re-output preview.JPG (84.73 KB, image/jpeg)
2008-01-08 22:14 UTC, _ krystyna
Details
actual rendering in firefox (144.13 KB, text/plain)
2008-01-09 09:09 UTC, autozoom
Details
preview in firefox (147.99 KB, text/plain)
2008-01-09 09:09 UTC, autozoom
Details
actual rendering in IE7 (162.32 KB, text/plain)
2008-01-09 09:10 UTC, autozoom
Details
firefox actual rendering (144.13 KB, image/jpeg)
2008-01-10 08:38 UTC, autozoom
Details
firefox preview (147.99 KB, image/jpeg)
2008-01-10 08:38 UTC, autozoom
Details
ie7 actual rendering (162.32 KB, image/jpeg)
2008-01-10 08:39 UTC, autozoom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description autozoom 2008-01-08 13:40:10 UTC
when using Woodstock 4.1.1 components, preview in browser actually uses different CSS style than actual rendering
Comment 1 camucci 2008-01-08 19:30:57 UTC
I tried previewing the 4.1.1 components using a firefox browser and did not see any style sheet differences.  Can you
please elaborate which components were affected and what browser you are using? 

Comment 2 _ krystyna 2008-01-08 19:43:00 UTC
I have seen this in latest installer build 6.0.1 with 4.1.1 componnents however I did not 
see this when only woodstock nbms were applied to nb6.0 FCS with patch1. Attaching a screenshot
of what I see with build 6.0.1.
Comment 3 _ krystyna 2008-01-08 19:55:48 UTC
Created attachment 54833 [details]
Installer build 6.0.1 designer view
Comment 4 _ krystyna 2008-01-08 19:57:35 UTC
Created attachment 54834 [details]
Installer build 601 preview
Comment 5 _ krystyna 2008-01-08 20:19:16 UTC
I just re-executed 6.0.1 with a clean userdir the problem does not occur, designer/preview/runtime match:
WinXP, JDK1.6.0_04

When I duplicated it, I had been using a NB6.0 userdir which happened to include additional plugins
such as WoodstockThemeBuilder for 6.0, Interactive UI Gesture Collector et al. perhaps there is some
interaction.

Reporter autozoom: can you confirm your IDE version? i.e. how did you upgrade to 4.1.1 components.
Comment 6 Peter Zavadsky 2008-01-08 21:01:25 UTC
The preview is now in insync, passing there.

The images are attached badly (probably like binaries - that is wrong), I can't see them here, please fix it.

Can also anybody reproduce it?

Also provide log file when it happens, thanks.
Comment 7 _ krystyna 2008-01-08 22:09:46 UTC
Looks like only submitter and I have reproduced thus far.
Re-outputting the .jpg files and attaching messages.log file.
I suspect that I corrupted the userdir -- as I said before -- this
does not occur with fresh userdir.
Comment 8 _ krystyna 2008-01-08 22:11:17 UTC
Created attachment 54842 [details]
messages log
Comment 9 _ krystyna 2008-01-08 22:11:51 UTC
Created attachment 54843 [details]
re-output designer view
Comment 10 _ krystyna 2008-01-08 22:13:10 UTC
Created attachment 54844 [details]
re-output designer.JPG
Comment 11 _ krystyna 2008-01-08 22:14:54 UTC
Created attachment 54845 [details]
re-output preview.JPG
Comment 12 _ krystyna 2008-01-09 01:28:25 UTC
Sandip and Winston did some evaluation at my workstation.
I reproduced the issue using a migrated 6.0 userdir (which also included
migrated userdir from 5.5 and 5.5.1) and we examined the userdir var\cache\dojo101jar 
directory to find it empty. 

They asked me to take from "good" clean/fresh userdir's var\cache\dojo101jar
contents and port them to the bad one above, but I found that var\cache\dojo101jar empty
as well!

Until further evaluation, we currently have a workaround to use a clean userdir if 
anyone should run into this.


Comment 13 autozoom 2008-01-09 09:03:08 UTC
Here are my screenshots: actual rendering in Firefox 2.0.0.11, preview in Firefox 2.0.0.11 and actual in IE7
What is weird is that actual rendering in IE7 is different from Firefox, and the same actual rendering in IE7 is more
compliant to design editor in Netbeans (look at the "data" text field in the upper left corner).

Even stranger, the same HTML element uses different styles in Firefox actual and preview rendering:

actual rendering:
<select dojoattachpoint="listContainer" id="form1:tabSet1:inserisciTab:layoutPanel1:luogoDropDown_list"
name="form1:tabSet1:inserisciTab:layoutPanel1:luogoDropDown_list" class="undefined"><option class="undefined"
dojoattachpoint="optionNode" value="1">presso utente</option><option class="undefined" dojoattachpoint="optionNode"
value="2">sportello</option><option class="undefined" dojoattachpoint="optionNode" value="3">struttura
esterna</option></select>

preview:
<select size="1" onchange="webui.suntheme.dropDown.changed('form1:tabSet1:inserisciTab:layoutPanel1:luogoDropDown'); 
return false;" name="form1:tabSet1:inserisciTab:layoutPanel1:luogoDropDown_list"
id="form1:tabSet1:inserisciTab:layoutPanel1:luogoDropDown_list" class="MnuStd_sun4">
Comment 14 autozoom 2008-01-09 09:07:28 UTC
I forgot to mention that I am using a new installation of 

Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1252; it_IT (nb)
Userdir: C:\Documents and Settings\mauro\.netbeans\6.0

I upgraded the Woodstock components to 4.1.1 as explained in
http://wiki.netbeans.org/wiki/view/UpdatingWoodstockLibraryInNetBeans6
Comment 15 autozoom 2008-01-09 09:09:02 UTC
Created attachment 54853 [details]
actual rendering in firefox
Comment 16 autozoom 2008-01-09 09:09:37 UTC
Created attachment 54854 [details]
preview in firefox
Comment 17 autozoom 2008-01-09 09:10:00 UTC
Created attachment 54855 [details]
actual rendering in IE7
Comment 18 _ krystyna 2008-01-09 18:51:15 UTC
HI autozoom, could you please re-output your attachments. You have to set the mime type explicitly. 
I ran into the same problem myself yesterday! 
Comment 19 autozoom 2008-01-10 08:38:17 UTC
Created attachment 54902 [details]
firefox actual rendering
Comment 20 autozoom 2008-01-10 08:38:43 UTC
Created attachment 54903 [details]
firefox preview
Comment 21 autozoom 2008-01-10 08:39:06 UTC
Created attachment 54904 [details]
ie7 actual rendering
Comment 22 _ krystyna 2008-01-11 01:09:59 UTC
Autozoom, now that I see your output, I see that your issue is different than what I experienced,
which was severe corruption in preview browser. So, I will be moving my issue out of here and into a
separate issue which belongs in insync. I will reassign this issue back to designer to make the final
determination and evaluation, but I think this issue can be closed.

It is true: our preview browser does use different rendering(html) than actual runtime rendering. 
Second, you will find some differences between browser implementations. Third, we do not evaluate bound 
components in the preview browser, so auto-sized components such as the dropdown, textfield, will not
look their actual size. 

If you have issues with the component's runtime rendering, you can file a woodstock bug (http://woodstock.dev.java.net)