Hi,

Thanks for the help Nillehammer, here is the code:

/*JAVA*/
public class ModalPage {

   @Parameter(value="null", defaultPrefix = BindingConstants.LITERAL)
    private String boxParams;

    @AfterRenderBody
    public void afterRenderTemplateLink() {

       String comando = String.format("new ModalPage('"
+ element.getClientId() + "', " + braceWithQuotes(boxParams) + ");");

            renderSupport.addScript(comando);
    }

private String braceWithQuotes(String value) {
return value.equals("null") ? value : "'"+value+"'";
}

}


/*TML*/

<div class="row">
<t:actionLink t:id="myLink" id="myLink" title="${message:listendpoint}"
t:mixins="condorTapestryLib/ModalPage"
t:boxParams="width:50%,opacity:0.7,escKey:true,overlayClose:false">

${message:endpoints}
</t:actionLink>
</div>


Error:

java.lang.LinkageError
loader constraint violation: when resolving method
"ar.com.condortech.lib.condorTapestryLib.utils.NavigationObject.getCurrentPage()Lar/com/condortech/lib/condorTapestryLib/pages/AbstractPage;"
the class loader (instance of
org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl$PackageAwareLoader)
of the current class,
ar/com/condortech/lib/condorTapestryLib/pages/AbstractPage, and the class
loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for resolved
class, ar/com/condortech/lib/condorTapestryLib/utils/NavigationObject, have
different Class objects for the type
ar/com/condortech/lib/condorTapestryLib/pages/AbstractPage used in the
signature


On Mon, Jul 4, 2011 at 8:18 PM, Nillehammer <
tapestry.nilleham...@winfonet.eu> wrote:

> Hi kado,
>
>
>   Also I don't think that the problem is the word "width" because when I
>> send
>>  width:800px, it works fine. The problem is when I try sending the width
>> or
>>  height in % instead of px
>>
>
> I have tried to reproduce your error using a String parameter in a
> component that generates an <a href="...?boxparams=width:80%, height100%,
> opacity"> (with % and spaces). I did not get any error. Could you please
> post the java code and tml of your mixin for further investigation.
>
> Cheers nillehammer
>
> --
> http://www.winfonet.eu
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to