Re: renderHead() / wicket:head page / component order
On Monday 30 July 2012 18:18:46 Pierre Goiffon wrote: But one more question though : why rendering wicket:head (in the markup file) contributions before renderHead() (in the java file) contributions ? Seems to me that what you'll put in wicket:head will certainly be some king of static code, like the css in my problem (so like this : .myclass{ padding: 0;} or $(document).ready(function(){ $(#login).focus();});). This code could need some library (JQuery for exemple), and you'll serve that resource using a ResourceReference so using renderHead() right ? If wicket:head is served before renderHead() then you'll have a problem... With these things you just have to make a decision. Both orders are equally valid. You use wicket:head for minor adjustments in styling, others use wicket:head to contribute the css files and do the adjustments in renderHead. The idea was, that with this order, it is always possible to override any static wicket:head contribution from the Java code. Personally, I try to avoid wicket:head as much as possible and render everything from renderHead. This gives you the most flexibility. Best regards, Emond - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormTester - wicket 1.6
Show us some code. On Tue, Jul 31, 2012 at 1:50 AM, Douglas Ferguson the...@gmail.com wrote: We are trying to write some tests using FormTester. We are setting values on a text field and then submitting the form. The form is erroring out because the field is required. Does anybody have any ideas why the value is not getting set properly? Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable's accessibility use of the id and headers attributes to table cells so screen readers can identify the cells that relate to the headers for blind people
Hi, Most of the default components do not support well ARIA or similar accessibility specifications. Patches are welcome, as always! On Tue, Jul 31, 2012 at 1:57 AM, Paul Bors p...@bors.ws wrote: Hey guys, I've noticed during a scan of our webapp in http://achecker.ca that the Wicket DataTables do not quite support accessibility when it comes to mapping its table cells to the table headers via the TD element's ID and HEADERS attributes. Is that true or am I using the wrong component? I'm just asking before I start overriding methods from the DataTable to implement this. And if I do this, shouldn't I submit a patch back to you guys? To see what I'm talking about, simply take any of the HTML source code of a Wicket DataTable with more than one row in it and with a HeadersToolbar and then scan it via http://achecker.ca and notice the errors and suggestions given: http://achecker.ca/checker/suggestion.php?id=245 ~ Thanks in advance, Paul Bors -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Editing list in Dataview
Hi, Right now I am using listview but I am considering to look after dataview where data is fetched from database everytime you change page. So, do we have to modify our query to get the required data to be displayed in the page? I mean right now I am retrieving all data from database. Also, will it be possible for me to update the list being displayed in a page like deleting a content or rearranging them? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Editing-list-in-Dataview-tp4650885.html Sent from the Users forum 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: Link is disabled after Ajax request
Hi, On Mon, Jul 30, 2012 at 5:09 PM, tmaus loum...@yahoo.com wrote: Hi there .. Setup a panel that covers both, a facebook-login button and a user state sensitive link. The link should be disabled unless we find a user in the session. The Ajax FB link looks like: AjaxLink fbLink = new AjaxLink(fb) { public void onClick(AjaxRequestTarget target) { getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(new RedirectRequestHandler(http://www.facebook.com/login.php?api_key=; + pcs.getFbApiKey() + v=1.0)); } }; add(fbLink).setEnabled(session.getAttribute(user) == null); It works like a charm. The link looks like: adminPageLink = new Link(adminLink,model) { public void onClick() { setResponsePage(new HomeAdminPage()); } protected void onConfigure() { LOG.debug(onConfigure); Is this debug statement logged after FB returns ? Also add the value of session.getAttribute(user) in the log message. setVisible(session.getAttribute(user) != null); } }; add(adminPageLink); When you update an invisible component in an Ajax request you should also do: invisibleComponent.setOutputMarkupPlaceholder(true) Check the javadoc of this method for more details. But I think the second render (after FB returns) the request is not Ajax anymore, so this shouldn't be necessary. This link is properly rendered as long as the FB login page has not been called and returned. Once the user is properly logged into FB, the adminLink is not clickable (no tag is rendered) Im still quite new to Wicket and any help your be appreciated. Best regards Thorsten -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-is-disabled-after-Ajax-request-tp4650870.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link is disabled after Ajax request
Thanks for your response, Martin ... I have tried to tweak things a bit, replace the Link by an AjaxLink, overrode internal methods and did some things things. The fb login button as well as the link to me admin area belong to a panel. The fb login button fires an async call to fb. The link is always visible on first page rendering. The link is always disabled after response from fb. This must be related to the Panel where both components reside in. No matter if the fb button is a simple Link or an AjaxLink, the callback from fb somehow disables the link within the panel. An outside of the Panel located Link is not disabled. Any hint why this happens or any links to docs that explain this behavior are much appreciated .. Regards Thorsten -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-is-disabled-after-Ajax-request-tp4650870p4650890.html Sent from the Users forum 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: Link is disabled after Ajax request
Do you see the log statements logged after successful authentication with FB ? Do you re-render the whole page after authentication or just some components (AjaxRequestTarget#add(aComponent)) ? On Tue, Jul 31, 2012 at 12:01 PM, tmaus loum...@yahoo.com wrote: Thanks for your response, Martin ... I have tried to tweak things a bit, replace the Link by an AjaxLink, overrode internal methods and did some things things. The fb login button as well as the link to me admin area belong to a panel. The fb login button fires an async call to fb. The link is always visible on first page rendering. The link is always disabled after response from fb. This must be related to the Panel where both components reside in. No matter if the fb button is a simple Link or an AjaxLink, the callback from fb somehow disables the link within the panel. An outside of the Panel located Link is not disabled. Any hint why this happens or any links to docs that explain this behavior are much appreciated .. Regards Thorsten -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-is-disabled-after-Ajax-request-tp4650870p4650890.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link is disabled after Ajax request
I see all log statements. All methods are properly accessed. I tested it both ways: 1. A static link = complete rerendering of the page 2. AjaxLink = partially rerendering of the page In both occasions the outcome is the same. Initial call renders link properly Successive call renders link as label The funny thing about it is, that my FB button properly switches between the states: public class MenuBarPanel extends Panel ... public MenuBarPanel(String id,Page page, IModel model) { super(id); this.page = page; final Session session = page.getSession(); setOutputMarkupId(true); AjaxLink fbLink = new AjaxLink(fb) { public void onClick(AjaxRequestTarget target) { LOG.debug(button clicked); getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(new RedirectRequestHandler(http://www.facebook.com/login.php?api_key=; + pcs.getFbApiKey() + v=1.0)); } }; add(fbLink).setEnabled(session.getAttribute(user) == null); String fbImage = null; if(session.getAttribute(user)!=null){ fbImage = new StringBuilder(https://graph.facebook.com/;) .append( ((User) page.getSession().getAttribute(user)).getFacebookId()) .append(/picture) .toString(); }else{ fbImage = http://www.lamptechs.com/svcimg/login.png;; } fbLink.add(new StaticImage(image, new Model(fbImage))); adminPageLink = new AdminLink(adminLink, model); adminPageLink.setOutputMarkupId(true); add(adminPageLink); private class AdminLink extends AjaxLinkHomeAdminPage{ private IModel model; public AdminLink(String id, IModel model) { super(id, model); } public void onClick(AjaxRequestTarget target) { setResponsePage(new HomeAdminPage()); } } On initial call, login button is rendered. On the successive call it properly renders my picture. The AdminLink however is merely properly rendered on the initial call. Im pretty sure it is a typical beginners bug but I did not find any answer in any forum so far .. thanks for your help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-is-disabled-after-Ajax-request-tp4650870p4650893.html Sent from the Users forum 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: FormTester - wicket 1.6
I got it to work using this: tester.startComponentInPage(tester.getComponentFromLastRenderedPage(myPanel)); Does this ring any bells? Martin do you want to see the test code or the app code as well? The app code uses alot of custom components, so I'd prolly want to figure out tease things out and figure out what's causing the problem before dumping all that in your lap. Douglas On Jul 31, 2012, at 2:17 AM, Martin Grigorov mgrigo...@apache.org wrote: Show us some code. On Tue, Jul 31, 2012 at 1:50 AM, Douglas Ferguson the...@gmail.com wrote: We are trying to write some tests using FormTester. We are setting values on a text field and then submitting the form. The form is erroring out because the field is required. Does anybody have any ideas why the value is not getting set properly? Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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
ComponentNotFoundException when replace a fragment
Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child class. The parent create an AbstractAjaxTimerBehavior and call in it the fragment with the child class. In the child class there is also an AbstractAjaxTimerBehavior to process some data to show. When I replace in the parent class ajax callback function the fragment, I get the follow exception ComponentNotFoundException. I think the child ajax request search for the right component, but the component is replaced. How can I tell wicket that the component is no more valid or something else. My stack trace: Best regards Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-tp4650898.html Sent from the Users forum 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: ComponentNotFoundException when replace a fragment
Hi Alex, Your stack trace did not show up on the mailing list. Please also show a snippet showing what throws the exception. Bertrand On 31/07/2012 10:44 AM, Alex66955 wrote: Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child class. The parent create an AbstractAjaxTimerBehavior and call in it the fragment with the child class. In the child class there is also an AbstractAjaxTimerBehavior to process some data to show. When I replace in the parent class ajax callback function the fragment, I get the follow exception ComponentNotFoundException. I think the child ajax request search for the right component, but the component is replaced. How can I tell wicket that the component is no more valid or something else. My stack trace: Best regards Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-tp4650898.html Sent from the Users forum 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: FormTester - wicket 1.6
Hi, On Tue, Jul 31, 2012 at 5:26 PM, Douglas Ferguson the...@gmail.com wrote: I got it to work using this: tester.startComponentInPage(tester.getComponentFromLastRenderedPage(myPanel)); Does this ring any bells? No. This just starts a panel, i.e. render it. There is nothing about form submittion in this line of code. Martin do you want to see the test code or the app code as well? The app code uses alot of custom components, so I'd prolly want to figure out tease things out and figure out what's causing the problem before dumping all that in your lap. I'm interested in the test code. Douglas On Jul 31, 2012, at 2:17 AM, Martin Grigorov mgrigo...@apache.org wrote: Show us some code. On Tue, Jul 31, 2012 at 1:50 AM, Douglas Ferguson the...@gmail.com wrote: We are trying to write some tests using FormTester. We are setting values on a text field and then submitting the form. The form is erroring out because the field is required. Does anybody have any ideas why the value is not getting set properly? Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ComponentNotFoundException when replace a fragment
Sorry. In the wicket user forum the stack trace is shown (perhaps the RAW-TAG). I use wicket 6.0.0-beta3 trace: Last cause: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage org.apache.wicket.core.request.handler.ComponentNotFoundException: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage at org.apache.wicket.core.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:182) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:90) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:231) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:722) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-with-ajax-tp4650898p4650902.html Sent from the Users forum 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: Where to add javascript in html pages which follow inheritance relationship.
Please help me out here...for a child page..how would I add javascript in its head. I have tried out wicket:head with head tag in base page but it is not working out... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Where-to-add-javascript-in-html-pages-which-follow-inheritance-relationship-tp4650855p4650903.html Sent from the Users forum 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: ComponentNotFoundException when replace a fragment
With the stack trace, I can only see that the listener (the object responsible for handling a request) componentmainContentFragmens:eagrPanel is not found in the current page. Perhaps someone else can answer with only this but I would need code snippets showing how you manipulate your component tree. On 31/07/2012 12:12 PM, Alex66955 wrote: Sorry. In the wicket user forum the stack trace is shown (perhaps the RAW-TAG). I use wicket 6.0.0-beta3 trace: Last cause: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage org.apache.wicket.core.request.handler.ComponentNotFoundException: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage at org.apache.wicket.core.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:182) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:90) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:231) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:722) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-with-ajax-tp4650898p4650902.html Sent from the Users forum 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: Where to add javascript in html pages which follow inheritance relationship.
Try the following and let us know what happens when Page 2 is rendered by Wicket. Page1: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head alert(Hello!); /head body wicket:extend / /body /html Page2: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body wicket:child / /body /html On Tue, Jul 31, 2012 at 10:38 AM, kshitiz k.agarw...@gmail.com wrote: Please help me out here...for a child page..how would I add javascript in its head. I have tried out wicket:head with head tag in base page but it is not working out... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Where-to-add-javascript-in-html-pages-which-follow-inheritance-relationship-tp4650855p4650903.html Sent from the Users forum 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: Where to add javascript in html pages which follow inheritance relationship.
From what I remember wicket:head/ is the way to go! https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtag s-Elementwicket%253Ahead I believe this tag will appends what its surrounding to the bottom of already existing head tag contents on the page. For your child page you should not define another head html tag inside wicket:head. View your page source and start troubleshooting from there. And if you didn't define another head html tag, then post your code so we can better help you better :) -Original Message- From: kshitiz [mailto:k.agarw...@gmail.com] Sent: Tuesday, July 31, 2012 12:38 PM To: users@wicket.apache.org Subject: Re: Where to add javascript in html pages which follow inheritance relationship. Please help me out here...for a child page..how would I add javascript in its head. I have tried out wicket:head with head tag in base page but it is not working out... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Where-to-add-javascript-in-html-p ages-which-follow-inheritance-relationship-tp4650855p4650903.html Sent from the Users forum 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