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 147276 - Group Panel layout broken
Summary: Group Panel layout broken
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 15:01 UTC by britsp
Modified: 2008-12-10 22:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
View in Netbeans designer (5.01 KB, text/plain)
2008-09-15 15:04 UTC, britsp
Details
Browser window view (1.04 KB, text/plain)
2008-09-15 15:05 UTC, britsp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description britsp 2008-09-15 15:01:09 UTC
The WYSIWYG editor is not working correctly for "Group Panel" containers. Any components inside a group panel appear in
flow layout. There is an attribute layout="block", which when set, should make the Group Panel render as a DIV element.
However anything inside the DIV that effects layout, e.g. <br/> tags are ignored.

When you actually run the application it renders correctly -- so it is purely a problem with the visual editor.

Example code:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1">
                    <webuijsf:form id="form1">
                        <h:panelGroup id="groupPanel1" layout="block">
                            <h:outputText id="outputText1" value="Field 1:"/>
                            <br/>
                            <h:inputText id="textField1"/>
                            <br/>
                            <h:outputText id="outputText2" value="Field 2:"/>
                            <br/>
                            <h:inputText id="textField2"/>
                        </h:panelGroup>
                        <br/>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
Comment 1 britsp 2008-09-15 15:04:37 UTC
Created attachment 69874 [details]
View in Netbeans designer
Comment 2 britsp 2008-09-15 15:05:33 UTC
Created attachment 69876 [details]
Browser window view
Comment 3 Peter Zavadsky 2008-09-15 17:55:53 UTC
Yes, it is there. Needs to investigate it.
Comment 4 Peter Zavadsky 2008-09-15 22:07:27 UTC
The problem seems to be that the group panel designtime renderer excludes the <br/> element (when it's inside it), thus
causing the issue.
Passing to the components.
Comment 5 Peter Zavadsky 2008-12-10 22:29:27 UTC
No current plan to resolve it. Moving to 'later'.