[ 
https://issues.apache.org/jira/browse/WICKET-5576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-5576.
-------------------------------------

    Resolution: Won't Fix

You can add a Behavior to all components that sets an attribute with any value.
The behavior will look more or less like 
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledAttributeLinkBehavior.java
And you can register it to all components with IComponentInstantiationListener 
- see 
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java#L160

> Change wicketpath for all components with application setting
> -------------------------------------------------------------
>
>                 Key: WICKET-5576
>                 URL: https://issues.apache.org/jira/browse/WICKET-5576
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Marieke Vandamme
>
> Hello, 
> We would like to use the wicketpath for selenium testing, but would like to 
> change it with something else (like checksum or something) because now it's 
> too long. 
> I've looked into the code, and don't think it's possible, because now in 
> Component the function getPageRelativePath is used. This function can even 
> not be overridden for one specific component, because it's final, and can not 
> be changed by default for all components also. 
> Would it be possible to change it to a provider or something, that can be set 
> on application level? Don't think that wicketpath is used in wicket 
> internally, because it's switched off by default.
> Thanks! Kind Regards, Marieke



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to