You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by armandoxxx <ar...@dropchop.com> on 2014/12/04 10:55:48 UTC

Production deployment ajax problem

Hey guys .. 

I've got problem with AjaxFallbackLink in production deployment ... 


for example :



  SettingsComponent.this.hideAll(); << hides all panels (sets visibility to
false)
SettingsComponent.this.infoComponent.setVisible(true); << sets desired panel
to visible 
ajaxRequestTarget.add(SettingsComponent.this.panelWrapper); << refreshes the
panel wrapper ... 


and the problem is .. that AJAX request is executed, data returned (html and
javascripts are returned from server - I can see it all in development
window) ... and nothing happens .. if I press F5 to refresh the page .. the
correct panel is displayed ... 
in development deployment everything works fine ... 

any ideas? and suggestions ... 

regards

Armando



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
vanish

On Thu, Dec 4, 2014 at 1:22 PM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> replace wicket container by a div. In production it will banish.
>
> On Thu, Dec 4, 2014 at 1:10 PM, armandoxxx <ar...@dropchop.com>
> wrote:
>
>> removed it ;)
>>
>> btw ...
>> HTML code
>>
>>
>> wicket:container gets ID  "id7c" on first load .. NOW I PRESS BUTTON to
>> show
>> another panel
>>
>> in response I get
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668624.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards - Ernesto Reinaldo Barreiro

Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
it's been a while since I've read the 

https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket'sXHTMLtags-Elementwicket:container

thank you for your help 

Regards

Armando

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/SOLVED-Production-deployment-ajax-problem-tp4668611p4668630.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
It works now !!!!

replaced wicket:container with div and it works

regards

Armando
PS: FML 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668629.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
trying ... thank you !

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668627.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
replace wicket container by a div. In production it will banish.

On Thu, Dec 4, 2014 at 1:10 PM, armandoxxx <ar...@dropchop.com> wrote:

> removed it ;)
>
> btw ...
> HTML code
>
>
> wicket:container gets ID  "id7c" on first load .. NOW I PRESS BUTTON to
> show
> another panel
>
> in response I get
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668624.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
removed it ;)

btw ... 
HTML code


wicket:container gets ID  "id7c" on first load .. NOW I PRESS BUTTON to show
another panel 

in response I get 




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668624.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Martin Grigorov <mg...@apache.org>.
and

this.aboutComponent.setOutputMarkupId(true);
        this.accountComponent.setOutputMarkupId(true);
        this.alertsComponent.setOutputMarkupId(true);
        this.infoComponent.setOutputMarkupId(true);

are not really needed


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Dec 4, 2014 at 2:03 PM, armandoxxx <ar...@dropchop.com> wrote:

> this is all the code I have for this panels ...
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668618.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
this is all the code I have for this panels ... 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668618.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
checking it out ...

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668622.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Martin Grigorov <mg...@apache.org>.
Then fire the browser debugger and check what id the old id of the wrapper
and what is the id for the <component> element in the ajax response.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Dec 4, 2014 at 1:59 PM, armandoxxx <ar...@dropchop.com> wrote:

> This ...
>
>
>  ... does not help ... and to tell you the truth I don't want these panels
> to show in markup ...
>
> I just want my panelWrapper to have content replaced with the new panel
> (which should be visible)
>
> Regards
>
> Armando
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668617.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
tried it .. does not help ... 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668621.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

panelWrapper is the one that needs .setOutputMarkupPlaceholderTag(true)

On Thu, Dec 4, 2014 at 12:59 PM, armandoxxx <ar...@dropchop.com>
wrote:

> This ...
>
>
>  ... does not help ... and to tell you the truth I don't want these panels
> to show in markup ...
>
> I just want my panelWrapper to have content replaced with the new panel
> (which should be visible)
>
> Regards
>
> Armando
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668617.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: Production deployment ajax problem

Posted by armandoxxx <ar...@dropchop.com>.
This ... 


 ... does not help ... and to tell you the truth I don't want these panels
to show in markup ... 

I just want my panelWrapper to have content replaced with the new panel
(which should be visible)

Regards

Armando


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668617.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Production deployment ajax problem

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

You need to call component.setOutputMarkupPlaceholderTag(true) for all
components which are hidden and should be shown with Ajax.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Dec 4, 2014 at 10:55 AM, armandoxxx <ar...@dropchop.com>
wrote:

> Hey guys ..
>
> I've got problem with AjaxFallbackLink in production deployment ...
>
>
> for example :
>
>
>
>   SettingsComponent.this.hideAll(); << hides all panels (sets visibility to
> false)
> SettingsComponent.this.infoComponent.setVisible(true); << sets desired
> panel
> to visible
> ajaxRequestTarget.add(SettingsComponent.this.panelWrapper); << refreshes
> the
> panel wrapper ...
>
>
> and the problem is .. that AJAX request is executed, data returned (html
> and
> javascripts are returned from server - I can see it all in development
> window) ... and nothing happens .. if I press F5 to refresh the page .. the
> correct panel is displayed ...
> in development deployment everything works fine ...
>
> any ideas? and suggestions ...
>
> regards
>
> Armando
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>