Hi

 

I’m trying to upgrade from 5.1 to 5.2. This includes moving from the
deprecated URLRewriting to LinkTransformer.

 

Igor’s blog post has mostly explained everything. But I couldn’t find out
about the forForm parameter, when creating a Link with
ComponentEventLinkEncoder.createComponentEventLink. I can’t get it neither
from ComponentEventRequestParameters nor from Link.

 

This is my code:

 

      public Link transformComponentEventLink(Link link,

                  ComponentEventRequestParameters parameters) {

            

            

            // TODO boolean forForm not set properly

            return componentEventLinkEncoder.createComponentEventLink(

                        new ComponentEventRequestParameters(

                                   activePageName,

                                   containingPageName == null ?
activePageName : containingPageName,

                                   nestedComponentId == null ? "" :
nestedComponentId,

                                   eventType == null ? "" : eventType,

                                   activationContext,

                                   eventContext),

                        ???

                        );

      }

 

Many thanks

Jens

 

-- 
Jens Reufsteck



 

Reply via email to