CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Container Names and Includes

Print topic Send  topic

Author Message
datadoit
Posted: 01/31/2011, 7:52 AM

Should you have a page that has more than one includable page within it,
make certain that the containers that are on those includes have
different names.

Example:

MyPage1
- IncludablePage1 <- Parent Container
- SearchForm <- Container Name
- ResultsGrid
- AddEditRecord
- IncludablePage2
- SearchForm
- ResultsGrid
- AddEditRecord

If you use the above naming structure for your containers, you'll find
that your page containers/components will not function properly.
Particularly, you'll find that only the LAST declared includable page
will work as expected. To avoid this, use a unique naming structure for
your containers on those includable pages.

Example:

MyPage1
- IncludablePage1
- IncludablePage1SearchForm
- IncludablePage1ResultsGrid
- IncludablePage1AddEditRecord
- IncludablePage2
- IncludablePage2SearchForm
- IncludablePage2ResultsGrid
- IncludablePage2AddEditRecord

Sharing names of components within those containers are perfectly
acceptable and don't appear to pose a problem at this time.

Example:

MyPage1
- IncludablePage1 <- Parent Container
- IncludablePage1SearchForm <- Container Name
- Button_Search <- Component Name
- Button_Clear
- IncludablePage1ResultsGrid
- Button_Cancel
- IncludablePage1AddEditRecord
- Button_Submit
- Button_Cancel
- IncludablePage2
- IncludablePage2SearchForm
- Button_Search
- Button_Clear
- IncludablePage2ResultsGrid
- Button_Cancel
- IncludablePage2AddEditRecord
- Button_Submit
- Button_Cancel


This one cost me several hours on a page/project, and had me pulling my
hair out trying to figure out what was going on. It also 'explains'
some things when now thinking back on other projects and pages. You can
do a whole lot of magic with includable pages and the Hide/Show
Component action, particularly wrapping your entire site around a single
index page. Just make sure you follow the above guideline to save your
time and sanity.
TamMeza

Posts: 1
Posted: 04/20/2012, 8:29 AM

Quote datadoit:
Should you have a page that has more than one includable page within it,
make certain that the containers that are on those includes have
different names.

Example:

MyPage1
- IncludablePage1 <- Parent Container
- SearchForm <- Container Name
- ResultsGrid
- AddEditRecord
- IncludablePage2
- SearchForm
- ResultsGrid
- AddEditRecord

If you use the above naming structure for your containers, you'll find
that your page containers/components will not function properly.
Particularly, you'll find that only the LAST declared includable page
will work as expected. To avoid this, use a unique naming structure for
your containers on those includable pages.

Example:

MyPage1
- IncludablePage1
- IncludablePage1SearchForm
- IncludablePage1ResultsGrid
- IncludablePage1AddEditRecord
- IncludablePage2
- IncludablePage2SearchForm
- IncludablePage2ResultsGrid
- IncludablePage2AddEditRecord

Sharing names of components within those containers are perfectly
acceptable and don't appear to pose a problem at this time.

Example:

MyPage1
- IncludablePage1 <- Parent Container
- IncludablePage1SearchForm <- Container Name
- Button_Search <- Component Name
- Button_Clear
- IncludablePage1ResultsGrid
- Button_Cancel
- IncludablePage1AddEditRecord
- Button_Submit
- Button_Cancel
- IncludablePage2
- IncludablePage2SearchForm
- Button_Search
- Button_Clear
- IncludablePage2ResultsGrid
- Button_Cancel
- IncludablePage2AddEditRecord
- Button_Submit
- Button_Cancel


This one cost me several hours on a page/project, and had me pulling my
hair out trying to figure out what was going on. It also 'explains'
some things when now thinking back on other projects and pages. You can
do a whole lot of magic with includable pages and the Hide/Show
Component action, particularly wrapping your entire site around a single
index page. Just make sure you follow the above guideline to save your
time and sanity.

Hi I am using trial version to generate the code for my JSP project. May i know what kind of framework it is and it's name? Since its just using JSP and HTML would it be secure? Please let me know. Thanks.


________________________________________________________

http://www.usdvdsale.com

_________________
xTam Meza
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.