inline and sub components

Description

component { this.a="Main"; function mainTest() { return "main<br>"; } function mainTestx2() { return "maimaninxccd"; } } // sub component component name="MySub" { this.b="Sub"; function subTest() { return "sub1<br>"; } function subTestx() { return "subsub2"; } } // inline cfc = new component { this.b="Sub"; function subTest() { return "sub2<br>"; } function subTestx() { return "subsub2"; } }

amongst other things, this will be quite useful for single file, i.e. trycf examples

https://dev.lucee.org/t/inline-components-in-lucee-6/8499

Attachments

1

relates to

Activity

Pothys - MitrahSoft 
2 May 2023 at 14:19
(edited)

I've checked this ticket with lucee fixed version 6.0.0.382-SNAPSHOT and above mentioned 2 issues is resolved https://luceeserver.atlassian.net/browse/LDEV-4125?focusedCommentId=52982
Now when updating a sub-component, it doesn't needs to restart to pick up the code change. Also, I can able access the static scope in the sub-component using :: notation

Michael Offner 
2 May 2023 at 12:22

with the latest commit in version 6.0.0.382 i have addressed this 2 issues and they work now for me as expected.

Please give it another try and create/enable 2 test cases for this.

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 3 August 2022 at 15:48
Updated 5 May 2023 at 12:52
Resolved 5 May 2023 at 07:43