AliasContribution is gone from 5.3, so i change baseURLservice to following,
seems not working, not got called, Am I missing something here? THanks.

@Contribute(ServiceOverride.class)
   public static void contributeAlias(MappedConfiguration<Class, Object>
configuration, @Value("${domainname}") final String
           domain_name) {
       BaseURLSource source = new BaseURLSource() {
           public String getBaseURL(boolean secure) {
            
               String protocol = secure ? "https" : "http";
               int port = secure ? 8443 : 8080;
               return String.format("%s://www.%s", protocol, domain_name);
           }
       };

       //  configuration.add(AliasContribution.create(BaseURLSource.class,
source));
       configuration.add(BaseURLSource.class, source);
   }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t5-3-upgrade-tp5051120p5051120.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to