On Fri, Oct 25, 2019 at 6:06 PM Entropy <blmulholl...@gmail.com> wrote:

> I work on a government project and one of our rules is that all of our apps
> scrape the request object and log it so that everything that happens can be
> reviewed.  Partly this is for audit reasons, sometimes it comes in handy
> for
> lawsuits, but mostly it's handy for our L2 support team.
>
> But when a dev fails to provide an explicit name for something, we get
> things in the log like 'radio54' and the like.  Which is understandable as
> the dev failed to provide a name (bad dev! *swats dev with newspaper*).
>
> A recent lawsuit revealed yet another place where the unhelpful 'radio38'
> is
>

You, americans, are crazy with those law suits for everything and nothing!


> logged.  Our PM asked if we can help our devs out because this mistake is
> happening too often.  Can we disable wicket's natural tendency to generate
> these names and force an exception instead?  Thus, the mistake would be
> caught early.
>
> Wicket often exposes 'strategy' objects or other overrides to do this sort
> of thing, so I'm wondering if such a facility exists?  Even if it weren't
> an
> exception, but were some other kind of thing that drew the dev's attention
> it would be useful.
>

Like org.apache.wicket.IMarkupIdGenerator ?
See
org.apache.wicket.Component#getMarkupId(boolean)
and getApplication().getMarkupSettings().getMarkupIdGenerator()


>
> We're in Wicket 6.
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to