Re: CSS not loading on WebMarkupContainer refresh
absolutely. I have tried two things and they both work the same way. first using a wicket id add(new StyleSheetReference(stylesheet, CustomerPanel.class, jquery.tooltip.css)); link rel=stylesheet type=text/css wicket:id=stylesheet / and straight html link rel=stylesheet type=text/css href=css/jquery.tooltip.css / What I have found through looking at the code is that the WebMarkupContainer is not being shown in the view page source. So when the page first loads I look at the page source and everything is showing up just like it should. The listview is empty so it is hidden. I then click the ajaxlink that open up a modal that allows me to add data to the list view. When the modal is closed the listview which is inside the webmarkupcontainer is refreshed and the new data is shown on the screen. I then hover over the new data and the hover over works but the css formatting is not there. I view the page source again and it still shows that the listview is empty. If I refresh the page then the hover over works perfect with the css. My guess is that the refreshed listview and the css do not know that each other exist. Maybe I am refreshing the webmarkupcontainer wrong or maybe I should add the css to it instead of the entire html page. Any ideas? Thanks T -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2020630.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CSS not loading on WebMarkupContainer refresh
ok I just added a label outside of the webmarkupcontainer and added the tooltip stuff to it and it works perfectly. So the problem is the webmarkupcontainer. Everytime it is refreshed through ajax instead of refreshing the entire page, I lose the connection between the css and the html inside the container. I am sure I have to add something to link these together but I am not sure what that is. Any ideas would be greatly appreciated. T -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2020666.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CSS not loading on WebMarkupContainer refresh
Why don't you use something like add(CSSPackageResource.getHeaderContribution(CSS); on the constructor of the panel you are using. Here CSS is CSS = new ResourceReference(...). Wicket will take care of the rest. By the way the only reference I could find to class StyleSheetReference on core and extension (on 1.4.7) is on Palette component protected StyleSheetReference getStyleSheet() { return new StyleSheetReference(paletteCSS, getClass(), palette.css); } and method getStyleSheet() is not called from withing Palette. Is class StyleSheetReference some kind of deprecated way to reference a resource? Best, Ernesto On Thu, Apr 22, 2010 at 4:38 PM, taygolf taylor.a.yo...@gmail.com wrote: absolutely. I have tried two things and they both work the same way. first using a wicket id add(new StyleSheetReference(stylesheet, CustomerPanel.class, jquery.tooltip.css)); link rel=stylesheet type=text/css wicket:id=stylesheet / and straight html link rel=stylesheet type=text/css href=css/jquery.tooltip.css / What I have found through looking at the code is that the WebMarkupContainer is not being shown in the view page source. So when the page first loads I look at the page source and everything is showing up just like it should. The listview is empty so it is hidden. I then click the ajaxlink that open up a modal that allows me to add data to the list view. When the modal is closed the listview which is inside the webmarkupcontainer is refreshed and the new data is shown on the screen. I then hover over the new data and the hover over works but the css formatting is not there. I view the page source again and it still shows that the listview is empty. If I refresh the page then the hover over works perfect with the css. My guess is that the refreshed listview and the css do not know that each other exist. Maybe I am refreshing the webmarkupcontainer wrong or maybe I should add the css to it instead of the entire html page. Any ideas? Thanks T -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2020630.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CSS not loading on WebMarkupContainer refresh
I am using wicket 1.3.7 currently so I can not use the CSSPackageResource. Is there a way to just use PackageResource? I know that I need to upgrade but right now that is not possible. Also why can't I just add the CSS file to my html with a link and be done with it like this: link rel=stylesheet type=text/css href=css/jquery.tooltip.css / Why does the markupcontainer not pick it up? If I move the data out of the markup container then everything works fine but of course I need to have the ability to allow the user to add data without having to refresh the page all the time. Thanks T -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2020736.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
CSS not loading on WebMarkupContainer refresh
Hey guys. I have a page that contains 4 panels. In one of these panels I have a listview that is inside a WebMarkupContainer. The user click on an ajax link which opens up a modal. The user fills out the form and clicks submit. On submit the new information is added to the list view and the WebMarkupContainer is refreshed and the new information is displayed in the panel All of this is working just fine. The problem that I am running into now is that I want to add a tooltip to the data that is in the listview. I have done this by adding a AttributeModifier to my code and then adding the css file to my html code. FOr some reason this will not work unless I refresh the entire page. So when the new data is added to the listview the css does not work. After I click the page refresh button it works prefectly. How can I get it to work when the WebMarkupContainer is refreshed? Thanks T -- View this message in context: http://n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2019665.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CSS not loading on WebMarkupContainer refresh
Hi T, Can you show the code you use to add the additional css file? Ernesto On Wed, Apr 21, 2010 at 10:52 PM, taygolf taylor.a.yo...@gmail.com wrote: Hey guys. I have a page that contains 4 panels. In one of these panels I have a listview that is inside a WebMarkupContainer. The user click on an ajax link which opens up a modal. The user fills out the form and clicks submit. On submit the new information is added to the list view and the WebMarkupContainer is refreshed and the new information is displayed in the panel All of this is working just fine. The problem that I am running into now is that I want to add a tooltip to the data that is in the listview. I have done this by adding a AttributeModifier to my code and then adding the css file to my html code. FOr some reason this will not work unless I refresh the entire page. So when the new data is added to the listview the css does not work. After I click the page refresh button it works prefectly. How can I get it to work when the WebMarkupContainer is refreshed? Thanks T -- View this message in context: http://n4.nabble.com/CSS-not-loading-on-WebMarkupContainer-refresh-tp2019665p2019665.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org