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 102557 - When Page Handler returns null, PFE fails to re-assign link
Summary: When Page Handler returns null, PFE fails to re-assign link
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ deva
URL:
Keywords:
Depends on:
Blocks: 100628
  Show dependency tree
 
Reported: 2007-04-26 00:01 UTC by Joanne Lau
Modified: 2007-04-30 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-04-26 00:01:53 UTC
NB: 0704250000

- Create 2 VW pages
- Add a button to each page via the page flow editor
- Create links from Page1-> Page2, Page2->Page1
- Select Page1 -> Open (to the designer view)
- modify button name to "Next"
- Add a static component, fill in "Page1"
- Click faces-config.xml tab, select Page2 -> Open
- Modify button name to "Home"
- Deploy and run the app

Nothing happens when clicking at the button in Page1

- This case is working if the buttons are created in the Designer, the app
   will run
Comment 1 _ krystyna 2007-04-26 02:46:35 UTC
Cannot reproduce this using a later build --0704251200 -- buttons added via page
flow , button text edited later in designer, work ok for navigation at 
runtime. 1.4 and ee5 project alike.
Comment 2 Joanne Lau 2007-04-26 05:30:39 UTC
I've downloaded the latest build 200704251200, and the issue is reproducible.
Comment 3 Joanne Lau 2007-04-26 06:26:08 UTC
Hyperlink does not have problem, able to navigate.
Comment 4 Joanne Lau 2007-04-26 16:41:41 UTC
Issue is reproducible in build 200704260000.
Comment 5 Joelle Lam 2007-04-26 18:55:15 UTC
I see, I missed the deployment part.  Checking into it.
Comment 6 Joanne Lau 2007-04-26 23:01:29 UTC
The underline problem is renaming the button after the button is created via
the pageflow editor.  
Without the button renaming, navigation works. 

The JSP code for the button has been misplaced where it should be under form:

<webuijsf:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
                    <webuijsf:button actionExpression="#{Page1.button1_action}"
binding="#{Page1.button1}" id="button1"
                        style="left: 167px; top: 192px; position: absolute"
text="Next"/>
                    <webuijsf:form binding="#{Page1.form1}" id="form1">
                        <webuijsf:staticText binding="#{Page1.staticText1}"
id="staticText1" style="position: absolute; left: 264px; top: 24px" text="Page 1"/>
                    </webuijsf:form>
                </webuijsf:body>
Comment 7 Joelle Lam 2007-04-27 00:31:33 UTC
Sorry Deva.
Comment 8 Joelle Lam 2007-04-27 07:14:31 UTC
After further discussion with Krys, we have determined that one source of this
issue is when the Handler is created before creating a link in the PFE.  The PFE
failed to rename the case in the link appropriately.  A separate issue (in which
the button exists outside the form) may need to be pursued, but we do need to
obtain a reproducible case.  I am will submit a fix for the renaming null
handlers, but QE may want to submit a separate bug for the other.  Please see
Krys, Deva, or I for details.
Comment 9 Joelle Lam 2007-04-27 07:27:23 UTC
IDE:-------------------------------------------------
IDE: [4/26/07 11:17 PM] Committing "Navigation Support" started
Checking in VWPContentModel.java;
/cvs/visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java,v
 <--  VWPContentModel.java
new revision: 1.5.2.1; previous revision: 1.5
done
IDE: [4/26/07 11:17 PM] Committing "Navigation Support" finished
Comment 10 Joelle Lam 2007-04-27 07:39:16 UTC
I take that back. I can't commit without following the High Resistance Process.
 Will do so in the morning.
Comment 11 Joelle Lam 2007-04-28 08:21:11 UTC
This was fixed earlier today.  The secondary issue regarding a button not being
placed inside a form, Joanne has found to be a designer problem. 
Comment 12 Joanne Lau 2007-04-30 21:09:06 UTC
Fix verified in M9 070430