You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by françois facon <fr...@gmail.com> on 2014/09/01 17:10:26 UTC
Re: [tapestry5-jquery] jquery.palette bug in production mode
Hi
I tried to reproduce the problem without success on the 3.4.1-snapshot.
Have you tested this version?
please post you comments to
https://github.com/got5/tapestry5-jquery/issues/335
François
2014-08-30 21:25 GMT+02:00 TNO <tn...@free.fr>:
> Hi,
>
> I'm using
>
> * tapestry 5.3.7
> * tapestry5-jquery 3.3.7
> * a simple form (login, password and list of role), a jquery.palette
> is used to choose the roles.
>
> It works when PRODUCTION_MODE is set to false, but my role list is always
> null when PRODUCTION_MODE = true.
>
> Using Firebug, I saw
>
> * When PRODUCTION_MODE=true and I select an item, the value of hidden
> pallette-value doesn't fill with it
>
> |<input id="palette-values" type="hidden" name="palette-values" value="[]">
> |
>
> * So in Pallette java, parameterValue is always null
>
> | @Override
> protected void processSubmission(String controlName)
> {
> String parameterValue = request.getParameter(controlName +
> "-values");
> |
>
> But when PRODUCTION_MODE=false, it's OK
>
> Another problem in production mode, when I click on plus arrow, a submit
> is launched...
>
>
> thanks for any help, Thomas
>
>
Re: [tapestry5-jquery] jquery.palette bug in production mode
Posted by TNO <tn...@free.fr>.
Hi,
I found the problem !
When I start using tapestry5-jquery, I replace all my
|@Import(library = {"classpath:org/.../jquery.js"})
|
with
|@Import(library = {"${jquery.core.path}"})
|
No problem in dev mode, but in production mode, problem with palette
(and may be others...)
So I remove all ${jquery.core.path} and it works !
Thnaks, Thomas
Le 01/09/2014 17:10, françois facon a écrit :
> Hi
> I tried to reproduce the problem without success on the 3.4.1-snapshot.
> Have you tested this version?
> please post you comments to
> https://github.com/got5/tapestry5-jquery/issues/335
>
> François
>
>
> 2014-08-30 21:25 GMT+02:00 TNO <tn...@free.fr>:
>
>> Hi,
>>
>> I'm using
>>
>> * tapestry 5.3.7
>> * tapestry5-jquery 3.3.7
>> * a simple form (login, password and list of role), a jquery.palette
>> is used to choose the roles.
>>
>> It works when PRODUCTION_MODE is set to false, but my role list is always
>> null when PRODUCTION_MODE = true.
>>
>> Using Firebug, I saw
>>
>> * When PRODUCTION_MODE=true and I select an item, the value of hidden
>> pallette-value doesn't fill with it
>>
>> |<input id="palette-values" type="hidden" name="palette-values" value="[]">
>> |
>>
>> * So in Pallette java, parameterValue is always null
>>
>> | @Override
>> protected void processSubmission(String controlName)
>> {
>> String parameterValue = request.getParameter(controlName +
>> "-values");
>> |
>>
>> But when PRODUCTION_MODE=false, it's OK
>>
>> Another problem in production mode, when I click on plus arrow, a submit
>> is launched...
>>
>>
>> thanks for any help, Thomas
>>
>>