Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/IDE    [ Add a report in this area ]  
Report #:  109516   Status: Reported
HTML5 Builder pages can't be named the same
Project:  HTML5 Builder Build #:  5.0.961.870
Version:    5.0 Submitted By:   Mike Myhre
Report Type:  Feature Specification issue Date Reported:  10/14/2012 12:58:40 PM
Severity:    Extreme corner case Last Updated: 10/16/2012 3:08:14 AM
Platform:    All platforms Internal Tracking #:  
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If you have multiple .PHP files with the same Page name, they will conflict and show content from the wrong page.
Steps to Reproduce:
1. Create a new HTML5 client project.
2. Add two Forms First.php and Second.php.
3. Leave the page name the default in both (Page1).
4. Add content to the first.php module (a label that says "FirstPage").
5. Add content to the second.php module (a label that says "SecondPage").
6. Put links on each page to allow navigation to the other page.
7. Run the project.
8. No matter what page you are on, you will always see the same content.
Workarounds
Give each page a unique name.
Attachment
None
Comments

Tomohiro Takahashi at 10/15/2012 3:21:07 AM -
> 3. Leave the page name the default in both (Page1).
Page's class name is also used for SESSION management(e..g, Form data and component status etc...).
So, it must be unique.

Mike Myhre at 10/15/2012 8:23:06 AM -
If the page names must be unique, then they should automatically be created as unique. I didn't name all the pages Page1, the IDE did. There are no warnings either. This results in much wasted time by the developer before they figure out why the content on new pages isn't what they designed. Even once you figure it out, adding new pages requires you to remember to change the name from Page1 to something else.

Server Response from: ETNACODE01