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 202702 - [71cat] rename on JSF page
Summary: [71cat] rename on JSF page
Status: RESOLVED DUPLICATE of bug 202658
Alias: None
Product: web
Classification: Unclassified
Component: Editing infrastructure (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 21:52 UTC by muellermi
Modified: 2011-11-16 16:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (88.81 KB, image/png)
2011-09-26 21:53 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-09-26 21:52:17 UTC
Product Version = NetBeans IDE 7.1 Beta (Build 201109222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17

### new issue,because former one closed as WORKSFORME

Given this page:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                >

    <ui:define name="content">
        <h:form>

            <h:dataTable  styleClass="marginElement" headerClass="list-header" value="..." 
                          var="p" width="100%" rowClasses="row1, row2" columnClasses="colId, colValue">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="ID"/>
                    </f:facet>
                    <h:commandLink action="..." value="#{p.id}" immediate="true"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Name"/>
                    </f:facet>
                    <h:commandLink action="..." value="#{p.name}" immediate="true"/>
                </h:column>

            </h:dataTable>
        </h:form>
    </ui:define>

</ui:composition>

Now place mouse over "p" (of var="p") and press ctrl-r

NB displays a rename box somewhere abve "h:datatable" and below "     </h"

This bug may be watched in the attached screenshot.
Same proble whilst using WinXP 32, as reported before.
Comment 1 muellermi 2011-09-26 21:53:30 UTC
Created attachment 111208 [details]
screenshot
Comment 2 Marek Fukala 2011-09-27 08:17:29 UTC
There's definitively a problem with the tag name instant rename - the end region is incorrectly placed.

However I reckon you do complain about not having rename refactoring for the "p" variable. That is what the issue 202658 is about AFAIR. I've asked you to add some explanation there already.

btw what issue do you mean by "### new issue,because former one closed as WORKSFORME"?
Comment 3 Marek Fukala 2011-09-27 11:59:59 UTC
changeset:   203009:3609c801ff9d
summary:     #202702 - [71cat] rename on JSF page - fixing the wrong html instant rename regions issue
Comment 4 Marek Fukala 2011-09-27 12:02:07 UTC
closing the issue as duplicate of issue 202658 after fixing the html instant rename regions issue.

*** This bug has been marked as a duplicate of bug 202658 ***
Comment 5 Quality Engineering 2011-09-28 14:01:27 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3609c801ff9d
User: Marek Fukala <mfukala@netbeans.org>
Log: #202702 - [71cat] rename on JSF page - fixing the wrong html instant rename regions issue