Hello,
I am wondering if this could be a an option. Actually we can extend a component in java, but we have to specify a brand new jwc file that must contain at least the specifications, assets from the origal component . Thus if we don't have the source code of the component we try to extend, this is like a nightmare!!! Would it be possible that for a component that extends an other one, to avoid specifying all the properties, assets of the previous one, and if we specify these, they would then be overridden by the new specification.
This has a true advantage, components become really object oriented. Even for asset, the original asset is kept if it is not overridden in the new jwc file.
I think it would be a nice addition.
This could be done during specification parsing, if the java class extends a java class that is a component, then load this component jwc as base specification and override the specification with the specification of the child.
This would be interesting for pages, also all the pages that deal with a certain number of common methods and properties, could be written in a central BasePage.jwc and have the logic in the BasePage.java, and those pages will extend BasePage.java and inherit all the properties specified in BasePage.jwc.
I don't know if my idea sounds weird, but it is actually something that i think could be useful: page class + jwc inheritance
Regards,
Numa
----------------------------------------------------------- Numa Schmeder
Euroconsumers SA EPFL Telecommunication & Software engineer
Email [EMAIL PROTECTED] Web http://euroconsumers.com Skype numaexxx AIM nschmeder MSN nschmeder Tel +41 (0) 79 538 30 01
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
