Re: bootstrap affix onload not executed
Hi Carlos, thanks a lot for the hint and the info, works now as expected. Kind regards David On 21.06.2016 19:29, Carlos Montero Canabal wrote: Hi, In Tapestry 5.4.X versions "$(window).on('load', function ()" is never call it for requireJs. So you can create a module as: my-affix-module.js (into META-INF/modules folder) with the code define([“jquery”, “bootstrap/affix"], function($) { return function(){ $('#myAffix').affix({ options... }); } }); And require it on .java void afterRender() { _javaScriptSupport.require(“my-affix-module”); } I think it works Regards Carlos Montero El 21/6/2016, a las 13:29, D.R.escribió: Hi, i try this example: http://www.w3schools.com/bootstrap/bootstrap_affix.asp with void afterRender() { _javaScriptSupport.require("bootstrap/affix"); } in a T5.4.1 environment, and the affix.js is loaded, require.js and jquery.js do some initialization, but the $(window).on('load', function () is never executed. The js debugger never stops inside that function. Any hint what to do in order to get that working? Kind regards David - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry5.4.0 'ProgressiveDisplay' ajax call fails to render page on IE 11
Upate: I have found the issue here. First of all I want to thank Chris for the quick response and pointing me to the right direction. It was indeed an issue with IE document mode. It seems the iframe is being forced to use the old document mode instead of the standard mode by it's parent window which is using legacy code and using the old document mode. The page rendering was failing inside the iframe and also javascript( such as palette ) also was not working. In our tapestry page we do set the document mode as standard as: void setupRender(final MarkupWriter writer) { writer.writeRaw(""); } But since it's inside an iframe the document mode is being set by it's parent window which uses old mode. I haven't figured out yet how to set up IE to load iframe content in standard mode without changing it's parent window's mode since parent window uses legacy code. For anyone who has similar issue: https://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx Thank you all again. On Tue, Jun 21, 2016 at 12:16 PM, sheikh hossainwrote: > Thanks a lot Chris ! I have just now tried with compatibility mode after > you have pointed out. > Didn't work though. I will look into this compatibility mode thing more to > see if I can find anything more. > > Thanks again. > > On Tue, Jun 21, 2016 at 11:36 AM, Chris Poulsen > wrote: > >> Hi, >> >> Sounds like IE is to blame - for once... >> >> Could it be something with compatibility mode that is acting up? >> https://msdn.microsoft.com/en-us/library/ff955410(v=vs.85).aspx >> >> -- >> Chris >> >> On Tue, Jun 21, 2016 at 4:29 PM, sheikh hossain >> wrote: >> >> > I wonder if there's any issue with ProgressiveDisplay component on IE11. >> > >> > One of our pages doesn't load entirely showing only 'Loading ...' >> message >> > when being tested on QA server which has IE11 and Jboss wildfly 10.0.0. >> > This page works when we test it locally on IE11 with Jboss wildfly >> 10.0.0. >> > >> > But when we deploy on our QA server the page doesn't load the table >> list. >> > Our tapestry project is part of an existing project which uses other >> > platforms like Struts. Every tapestry page gets loaded within an >> 'iframe' >> > when clicking on an menu link. >> > >> > The .tml file has 'ProgressiveDisplay' component as follows. >> > >> > >> > >> > - - - - - - - >> > - - - - - - - >> > >> > > > update="show"> >> > > > rowsPerPage="20" t:add="${editColumns}" t:exclude="rowid,saved"> >> > >> > > > t:mixins="common/blockingClick">${zone.name} >> > >> > - - - - - - - - - >> > - - - - - - - - - >> > >> > >> > >> > >> > and the java page file >> > >> > @Property >> > private TaxZone zone; // just a pojo >> > - - -- - - - - >> > - - - - - - - >> > @Persist >> > @Property >> > private CollectionGridDataSource gridDataSource; >> > >> > @InjectComponent >> > private Grid2 grid2; // implements GridModel >> > >> > void onActivate() { >> > final String clientName = request.getParameter("clientName"); >> > if (clientName != null) { >> > componentResources.discardPersistentFieldChanges(); >> > } >> > } >> > >> > >> > Object onProgressiveDisplayFromShowZones() throws >> ClassNotFoundException, >> > SQLException, IOException { >> > if (theZones != null) { >> > return null; >> > } >> > try { >> > - - - - - - - - >> > - - - - - - - - - >> > // Get the list of zones from the database. >> > // Populate the TreeSet >> > theZones = new TreeSet(zones); >> >- - - - - -- >> > } >> > return null; >> >} >> > >> > On our QA server the flow never calls this >> > 'onProgressiveDisplayFromShowZones' method. >> > >> > The flow goes through the 'onActivate' method. It then calls Tapestry's >> > 'ProgressiveDisplay.beginRender(). Where it invokes the >> > 'deferredZoneUpdate' from 'zone.js' and from there calls 'onActivate' >> again >> > and shows the empty page. >> > >> > The page does work on our local machine which is being tested only with >> the >> > tapestry related projects and not with the entire projects. >> > >> > On QA server I have noticed in the IE browser debug mode that 'zone.js' >> is >> > not getting loaded and also all other t5/core js files such as >> 'ajax.js' >> > and 'jquery.js'. don't get loaded. >> > >> > I wonder if our Struts application which has the .jsp page and which >> > contains the 'iframe' having any effect on loading the >> progressivedisplay >> > ajax call. Although the tapestry projects are in separate .war file and >> it >> > shouldn't conflict with classloaders of other struts .war files. >> > Or there could be an issue with IE11. Although it works locally on IE. >> > >> > The page also works on chrome and firefox on QA. >> > >> > I would really greatly appreciate any suggestion or advice as to how to >> > research more on this progressivedisplay ajax call or IE related issues >> if
Re: bootstrap affix onload not executed
Hi, In Tapestry 5.4.X versions "$(window).on('load', function ()" is never call it for requireJs. So you can create a module as: my-affix-module.js (into META-INF/modules folder) with the code define([“jquery”, “bootstrap/affix"], function($) { return function(){ $('#myAffix').affix({ options... }); } }); And require it on .java void afterRender() { _javaScriptSupport.require(“my-affix-module”); } I think it works Regards Carlos Montero > El 21/6/2016, a las 13:29, D.R.escribió: > > Hi, > > i try this example: > http://www.w3schools.com/bootstrap/bootstrap_affix.asp > > with >void afterRender() { >_javaScriptSupport.require("bootstrap/affix"); >} > > in a T5.4.1 environment, and the affix.js is loaded, require.js and jquery.js > do some initialization, but the > $(window).on('load', function () > is never executed. The js debugger never stops inside that function. > > Any hint what to do in order to get that working? > > > Kind regards > David > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
Re: Tapestry5.4.0 'ProgressiveDisplay' ajax call fails to render page on IE 11
Thanks a lot Chris ! I have just now tried with compatibility mode after you have pointed out. Didn't work though. I will look into this compatibility mode thing more to see if I can find anything more. Thanks again. On Tue, Jun 21, 2016 at 11:36 AM, Chris Poulsenwrote: > Hi, > > Sounds like IE is to blame - for once... > > Could it be something with compatibility mode that is acting up? > https://msdn.microsoft.com/en-us/library/ff955410(v=vs.85).aspx > > -- > Chris > > On Tue, Jun 21, 2016 at 4:29 PM, sheikh hossain > wrote: > > > I wonder if there's any issue with ProgressiveDisplay component on IE11. > > > > One of our pages doesn't load entirely showing only 'Loading ...' message > > when being tested on QA server which has IE11 and Jboss wildfly 10.0.0. > > This page works when we test it locally on IE11 with Jboss wildfly > 10.0.0. > > > > But when we deploy on our QA server the page doesn't load the table > list. > > Our tapestry project is part of an existing project which uses other > > platforms like Struts. Every tapestry page gets loaded within an 'iframe' > > when clicking on an menu link. > > > > The .tml file has 'ProgressiveDisplay' component as follows. > > > > > > > > - - - - - - - > > - - - - - - - > > > > > update="show"> > > > rowsPerPage="20" t:add="${editColumns}" t:exclude="rowid,saved"> > > > > > t:mixins="common/blockingClick">${zone.name} > > > > - - - - - - - - - > > - - - - - - - - - > > > > > > > > > > and the java page file > > > > @Property > > private TaxZone zone; // just a pojo > > - - -- - - - - > > - - - - - - - > > @Persist > > @Property > > private CollectionGridDataSource gridDataSource; > > > > @InjectComponent > > private Grid2 grid2; // implements GridModel > > > > void onActivate() { > > final String clientName = request.getParameter("clientName"); > > if (clientName != null) { > > componentResources.discardPersistentFieldChanges(); > > } > > } > > > > > > Object onProgressiveDisplayFromShowZones() throws ClassNotFoundException, > > SQLException, IOException { > > if (theZones != null) { > > return null; > > } > > try { > > - - - - - - - - > > - - - - - - - - - > > // Get the list of zones from the database. > > // Populate the TreeSet > > theZones = new TreeSet(zones); > >- - - - - -- > > } > > return null; > >} > > > > On our QA server the flow never calls this > > 'onProgressiveDisplayFromShowZones' method. > > > > The flow goes through the 'onActivate' method. It then calls Tapestry's > > 'ProgressiveDisplay.beginRender(). Where it invokes the > > 'deferredZoneUpdate' from 'zone.js' and from there calls 'onActivate' > again > > and shows the empty page. > > > > The page does work on our local machine which is being tested only with > the > > tapestry related projects and not with the entire projects. > > > > On QA server I have noticed in the IE browser debug mode that 'zone.js' > is > > not getting loaded and also all other t5/core js files such as 'ajax.js' > > and 'jquery.js'. don't get loaded. > > > > I wonder if our Struts application which has the .jsp page and which > > contains the 'iframe' having any effect on loading the progressivedisplay > > ajax call. Although the tapestry projects are in separate .war file and > it > > shouldn't conflict with classloaders of other struts .war files. > > Or there could be an issue with IE11. Although it works locally on IE. > > > > The page also works on chrome and firefox on QA. > > > > I would really greatly appreciate any suggestion or advice as to how to > > research more on this progressivedisplay ajax call or IE related issues > if > > any or how to fix this issue. > > > > Thank you all. > > >
Re: Tapestry5.4.0 'ProgressiveDisplay' ajax call fails to render page on IE 11
Hi, Sounds like IE is to blame - for once... Could it be something with compatibility mode that is acting up? https://msdn.microsoft.com/en-us/library/ff955410(v=vs.85).aspx -- Chris On Tue, Jun 21, 2016 at 4:29 PM, sheikh hossainwrote: > I wonder if there's any issue with ProgressiveDisplay component on IE11. > > One of our pages doesn't load entirely showing only 'Loading ...' message > when being tested on QA server which has IE11 and Jboss wildfly 10.0.0. > This page works when we test it locally on IE11 with Jboss wildfly 10.0.0. > > But when we deploy on our QA server the page doesn't load the table list. > Our tapestry project is part of an existing project which uses other > platforms like Struts. Every tapestry page gets loaded within an 'iframe' > when clicking on an menu link. > > The .tml file has 'ProgressiveDisplay' component as follows. > > > > - - - - - - - > - - - - - - - > > update="show"> > rowsPerPage="20" t:add="${editColumns}" t:exclude="rowid,saved"> > > t:mixins="common/blockingClick">${zone.name} > > - - - - - - - - - > - - - - - - - - - > > > > > and the java page file > > @Property > private TaxZone zone; // just a pojo > - - -- - - - - > - - - - - - - > @Persist > @Property > private CollectionGridDataSource gridDataSource; > > @InjectComponent > private Grid2 grid2; // implements GridModel > > void onActivate() { > final String clientName = request.getParameter("clientName"); > if (clientName != null) { > componentResources.discardPersistentFieldChanges(); > } > } > > > Object onProgressiveDisplayFromShowZones() throws ClassNotFoundException, > SQLException, IOException { > if (theZones != null) { > return null; > } > try { > - - - - - - - - > - - - - - - - - - > // Get the list of zones from the database. > // Populate the TreeSet > theZones = new TreeSet(zones); >- - - - - -- > } > return null; >} > > On our QA server the flow never calls this > 'onProgressiveDisplayFromShowZones' method. > > The flow goes through the 'onActivate' method. It then calls Tapestry's > 'ProgressiveDisplay.beginRender(). Where it invokes the > 'deferredZoneUpdate' from 'zone.js' and from there calls 'onActivate' again > and shows the empty page. > > The page does work on our local machine which is being tested only with the > tapestry related projects and not with the entire projects. > > On QA server I have noticed in the IE browser debug mode that 'zone.js' is > not getting loaded and also all other t5/core js files such as 'ajax.js' > and 'jquery.js'. don't get loaded. > > I wonder if our Struts application which has the .jsp page and which > contains the 'iframe' having any effect on loading the progressivedisplay > ajax call. Although the tapestry projects are in separate .war file and it > shouldn't conflict with classloaders of other struts .war files. > Or there could be an issue with IE11. Although it works locally on IE. > > The page also works on chrome and firefox on QA. > > I would really greatly appreciate any suggestion or advice as to how to > research more on this progressivedisplay ajax call or IE related issues if > any or how to fix this issue. > > Thank you all. >
Tapestry5.4.0 'ProgressiveDisplay' ajax call fails to render page on IE 11
I wonder if there's any issue with ProgressiveDisplay component on IE11. One of our pages doesn't load entirely showing only 'Loading ...' message when being tested on QA server which has IE11 and Jboss wildfly 10.0.0. This page works when we test it locally on IE11 with Jboss wildfly 10.0.0. But when we deploy on our QA server the page doesn't load the table list. Our tapestry project is part of an existing project which uses other platforms like Struts. Every tapestry page gets loaded within an 'iframe' when clicking on an menu link. The .tml file has 'ProgressiveDisplay' component as follows. - - - - - - - - - - - - - - ${zone.name} - - - - - - - - - - - - - - - - - - and the java page file @Property private TaxZone zone; // just a pojo - - -- - - - - - - - - - - - @Persist @Property private CollectionGridDataSource gridDataSource; @InjectComponent private Grid2 grid2; // implements GridModel void onActivate() { final String clientName = request.getParameter("clientName"); if (clientName != null) { componentResources.discardPersistentFieldChanges(); } } Object onProgressiveDisplayFromShowZones() throws ClassNotFoundException, SQLException, IOException { if (theZones != null) { return null; } try { - - - - - - - - - - - - - - - - - // Get the list of zones from the database. // Populate the TreeSet theZones = new TreeSet(zones); - - - - - -- } return null; } On our QA server the flow never calls this 'onProgressiveDisplayFromShowZones' method. The flow goes through the 'onActivate' method. It then calls Tapestry's 'ProgressiveDisplay.beginRender(). Where it invokes the 'deferredZoneUpdate' from 'zone.js' and from there calls 'onActivate' again and shows the empty page. The page does work on our local machine which is being tested only with the tapestry related projects and not with the entire projects. On QA server I have noticed in the IE browser debug mode that 'zone.js' is not getting loaded and also all other t5/core js files such as 'ajax.js' and 'jquery.js'. don't get loaded. I wonder if our Struts application which has the .jsp page and which contains the 'iframe' having any effect on loading the progressivedisplay ajax call. Although the tapestry projects are in separate .war file and it shouldn't conflict with classloaders of other struts .war files. Or there could be an issue with IE11. Although it works locally on IE. The page also works on chrome and firefox on QA. I would really greatly appreciate any suggestion or advice as to how to research more on this progressivedisplay ajax call or IE related issues if any or how to fix this issue. Thank you all.
bootstrap affix onload not executed
Hi, i try this example: http://www.w3schools.com/bootstrap/bootstrap_affix.asp with void afterRender() { _javaScriptSupport.require("bootstrap/affix"); } in a T5.4.1 environment, and the affix.js is loaded, require.js and jquery.js do some initialization, but the $(window).on('load', function () is never executed. The js debugger never stops inside that function. Any hint what to do in order to get that working? Kind regards David - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org