On Tue, Mar 9, 2021 at 6:57 AM Ivan Martinez <[email protected]>
wrote:

> I was expecting that these changes would allow me to add the debug
> parameter to all 3 child classes of the Entry class (using the
> DataBoundConstructor associated to the parent class). I am not sure if this
> is possible
>

While Jelly views are inherited, if the child provides its own
`config.jelly`, that will override the parent’s. It *is* possible to pick
up fragments from a parent, for example:

https://github.com/jenkinsci/credentials-plugin/blob/ba7c8ff7cd66d1393448d84635b16f3708d886bc/src/main/resources/com/cloudbees/plugins/credentials/impl/UsernamePasswordCredentialsImpl/credentials.jelly#L34

In your example, `Entry` should be `abstract`, and should have a
`protected` constructor which is *not* marked `@DataBoundConstructor` (that
annotation is only allowed on concrete types).

We probably need to expand `ui-samples` to include more varied idioms, and
clearly fence off the examples of low-level controls.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0Lr7EALpzuGgphRgFkypEosqaZvOOeT0y5ueBVzHxzug%40mail.gmail.com.

Reply via email to