Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
i used this: @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(CssHeaderItem.forUrl(//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css)); response.render(JavaScriptHeaderItem.forUrl(//code.jquery.com/jquery-1.10.2.js));

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
Hi Martin, Did the changes as you had said. getting the following error: TypeError: $(...).accordion is not a function $('#accordion').accordion(); @Override public void renderHead(IHeaderResponse response) { // add jQuery library

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
Used firebug. I get the following error: ReferenceError: $ is not defined @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(CssHeaderItem.forUrl(https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css;));

Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
My Java code: @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference())); // set focus to the username on load - check

Accordion using jquery and wicket 6

2015-01-29 Thread avchavan
Hi, i am using wicket 6.13.0 and i am trying to implement the accordion functionality using jquery. Java Code: package com.digid.wicket.usability; import org.apache.wicket.markup.head.CssReferenceHeaderItem; import org.apache.wicket.markup.head.IHeaderResponse; import

Wicket 6.13 link onclick behavior not working with ajax onclick row select

2015-01-12 Thread avchavan
Hi, I have recently upgraded to Wicket 6.13 from Wicket 1.5.11 After the upgrade i am facing an issue with onclick behavior of a link. We have a clickable row which contains few columns (one of which is a link to new page). now, if we click on the link then we are taken to new page and we click

Re: Wicket 6.13 link onclick behavior not working with ajax onclick row select

2015-01-13 Thread avchavan
Thanks. Worked for me :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-13-link-onclick-behavior-not-working-with-ajax-onclick-row-select-tp4668995p4669001.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 6 onmouseover and onclick event misbehavior

2015-02-11 Thread avchavan
@Sven Meier I didnt get the Why don't you use a :hover pseudo class? Also, i had one more question regarding the onmouseover event, it gets called up the whole time i have the cursor over that component. Is there a way to use it properly so that it doesnt get called everytime...as in it should be

Wicket 6 onmouseover and onclick event misbehavior

2015-02-10 Thread avchavan
Hi, I am having a component with both onmouseover and onclick behavior. onmouseover behavior works but the onclick event never gets triggered. If i just keep the onclick event then it works. Code: firstContainer2.add(new AjaxEventBehavior(onclick) {

Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
This is what i have tried so far: --HomePage class--- package com.proj.wicket.ui; import java.util.ArrayList; import java.util.List; import org.apache.wicket.Component; import org.apache.wicket.ajax.AjaxEventBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import

Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
I have checked that already. but i am not allowed to use it. Hence had write the entire code for accordion. Is it possible to just add the toggle effect? Thanks. -- View this message in context:

Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
Not allowed to have dependency. :/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669905.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Accordion folding unfolding smoothly

2015-03-09 Thread avchavan
any workaround possible? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669891.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: adding component Dynamically

2015-03-09 Thread avchavan
I've checked browser console and the onclick call never gets triggered when i click on the more link. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-component-Dynamically-tp4669838p4669892.html Sent from the Users forum mailing list archive at Nabble.com.

Adding new data to existing ListView

2015-03-13 Thread avchavan
Is it possible to add data to an existing ListView for which data is already loaded? Basically what i want is if say i have 10 records already present then add 10 more records to the existing ListView, so we get 20 records. I tried but the ListView gets refreshed if i try to set the new list to

Issues with multiple FeedbackPanels

2015-03-25 Thread avchavan
Hi, I have 2 FeedbackPanels on my screen and whenever i try to set error it gets added to both the FeedbackPanels. final FeedbackPanel panel1 = new FeedbackPanel(panel1); final FeedbackPanel panel2 = new FeedbackPanel(panel2); //vdp gdp are some dataproviders i have if (vdp.hasError()){

Re: Issues with multiple FeedbackPanels

2015-03-26 Thread avchavan
Thsnk. That worked. Now have a different problem. I have an AjaxLink on its click based on some conditioned i have to show same message using feedbackMessage. if(session.getMyList().size() == 0){ myListView.getFeedbackMessages().clear();

Re: Radio button select not selecting

2015-03-02 Thread avchavan
Yes, accordion is adding listView to target. Tried using AjaxFormChoiceComponentUpdatingBehavior but it is throwing following exception at runtime: org.apache.wicket.WicketRuntimeException: Behavior {className} can only be added to an instance of a FormComponent code: selectable.add(new

Re: Radio button select not selecting

2015-03-03 Thread avchavan
Tried that as well but did not change in behavior. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-button-select-not-selecting-tp4669792p4669803.html Sent from the Users forum mailing list archive at Nabble.com.

Radio button select not selecting

2015-03-02 Thread avchavan
Hi here is my code: JAVA: final RadioGroup radioGroup = new RadioGroup(radioGroup); final Radio selectable = new Radio(selectable, new Model(Boolean.FALSE));

Re: Radio button select not selecting

2015-03-02 Thread avchavan
changed java code to: final Radio selectable = new Radio(selectable, new Model(Boolean.FALSE)); selectable.setOutputMarkupPlaceholderTag(true); /*selectable.add(new AttributeAppender(onclick, new Model(if

adding component Dynamically

2015-03-04 Thread avchavan
Hi, I want to add a link to my html dynamically via wicket. I have written code for that which works as far as displaying the link is concerned. But the onclick of the link doesnt work. final WebMarkupContainer more = new WebMarkupContainer(more); final String

Detecting if javascript is disabled

2015-02-25 Thread avchavan
Is there a way in which i can check if the JavaScript of the browser is disabled or not and take appropriate action? I have a requirement wherein i need to show all the data which i'll be hiding by default in case the JavaScript is enabled. Thanks. -- View this message in context:

Re: Dropdown choice with wicket 6.19.0

2015-02-25 Thread avchavan
Ahh...got it working. There was a problem with Form.java that we were using, i had forgotten to update that file. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dropdown-choice-with-wicket-6-19-0-tp4669757p4669760.html Sent from the Users forum mailing list archive

Dropdown choice with wicket 6.19.0

2015-02-25 Thread avchavan
Code: private DropDownChoiceSomeModel reportsChoice; final ChoiceRendererString renderer = new ChoiceRendererString(value, key); ListReport reports = getAllReports(); final RapportChoices reportsChoices = new RapportChoices(reports); this.reportsChoice = new DropDownChoiceSomeModel(rapportChoice,

Re: anchor tag for a dynamic text

2015-04-07 Thread avchavan
i did something like this: Message in the properties file -- 123= Here's the link!! //get message from properties file String someTextMessage = getMessage(123); Lable message = new Lable(messageLable, someTextMessage); message.setEscapeModelStrings(true); Link printLink = new Link(printLink) {

anchor tag for a dynamic text

2015-04-06 Thread avchavan
Hi, i would like to know if its possible to have a clickable link for a dynamic text. I have tried by using the anchor tag with some wicket id and adding an onclick behavior to it, i could see the text with link on my screen but the onclick call of t he link was never triggered. What could

Re: anchor tag for a dynamic text

2015-04-07 Thread avchavan
Actual text message is something like this: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/anchor-tag-for-a-dynamic-text-tp4670190p4670199.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Change state of component after page rendering

2015-05-27 Thread avchavan
Tried it...but did not work. It still didn't load the javascript file. Can you give an example if you have of such an implementation? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-state-of-component-after-page-rendering-tp4670900p4670964.html Sent from the

Loading Javascript for wicket component

2015-05-25 Thread avchavan
Hi, I am using a custom .js file as a datepicker. the datepicket is visible when i click on the edit button. what happens is the datepicker icon doesnt show up after clicking on edit button. but if i refresh the page the icon shows up. What could possibly the issue and resolution for such

Re: Loading Javascript for wicket component

2015-05-25 Thread avchavan
Modal Window Java code: package com.mycompany; import java.text.SimpleDateFormat; import org.apache.wicket.ajax.AjaxEventBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxFallbackLink; import

Re: Loading Javascript for wicket component

2015-05-25 Thread avchavan
The entire code written in javascript and it works. If i just keep the HTML pages then it loads the datepicker at startup but in my case the datpicker.js is not being picked up when the modal window opens...if i refresh the page then it gets loaded and everything works fine after that. So, is

Re: Loading Javascript for wicket component

2015-05-25 Thread avchavan
Martin, i get your point. But would this work if my .js file is not being loaded unless i refresh? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-Javascript-for-wicket-component-tp4670871p4670881.html Sent from the Users forum mailing list archive at

Re: Loading Javascript for wicket component

2015-05-25 Thread avchavan
file uploaded. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-Javascript-for-wicket-component-tp4670871p4670883.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Loading Javascript for wicket component

2015-05-25 Thread avchavan
DatePicker javascript this is what i have. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-Javascript-for-wicket-component-tp4670871p4670885.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
Ernesto, I have a javascript file which is not loaded if the component is not visible. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-state-of-component-after-page-rendering-tp4670900p4670904.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
Its a div that i am toggling, so i dont feel it'll break the application behavior. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-state-of-component-after-page-rendering-tp4670900p4670905.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
Hi Ernesto, Cant i toggle the visibility after page load? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-state-of-component-after-page-rendering-tp4670900p4670908.html Sent from the Users forum mailing list archive at Nabble.com.

Change state of component after page rendering

2015-05-26 Thread avchavan
Hi, Is it possible to change the visibility of a component after page is rendered? Like when the page is loaded. I tried with: @Override public void onAfterRender(){ super.onAfterRender(); this.myComponent.setVisible(false);

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
I have to show the datepicker inside a modal window. The modal window is hidden by default unless someone clicks on the link which makes the modal window visible. Because of the initial invisibility the javascript file doesnt load and that in turn makes the datepicker functionality to not work.

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
I am not using Wicket's ModalWindow implementaion. I have written a custom div based implementation. You can find the here: http://apache-wicket.1842946.n4.nabble.com/Loading-Javascript-for-wicket-component-tp4670871p4670875.html -- View this message in context:

Re: Change state of component after page rendering

2015-05-26 Thread avchavan
Hi Ernesto, http://apache-wicket.1842946.n4.nabble.com/Loading-Javascript-for-wicket-component-td4670871.html Please have a look at this issue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-state-of-component-after-page-rendering-tp4670900p4670911.html Sent

Re: onBeforeRender getting called twice

2015-07-10 Thread avchavan
Yes, It is getting called twice. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-getting-called-twice-tp4671575p4671577.html Sent from the Users forum mailing list archive at Nabble.com.

onBeforeRender getting called twice

2015-07-10 Thread avchavan
Hi, I am experiencing a weird scenario wherein the onBeforeRender method gets called twice (request is coming as a HTTP request via a standalone API through webService). I am using a Wizard. Same code is used in regular application as well which works without a problem. What could be a possible

Re: onBeforeRender getting called twice

2015-07-10 Thread avchavan
Is there a way to check why it is being called twice? Or from where the second call is being made? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onBeforeRender-getting-called-twice-tp4671575p4671579.html Sent from the Users forum mailing list archive at Nabble.com.

Adding Document title in the titlebar instead of filename

2015-09-07 Thread avchavan
I would like to know whether its possible to use the document title in the titlebar when the PDF is opened instead of the filename appearing in it? If yes, then how to achieve it? Here's the code i tried & it shows list.pdf in the titlebar of the PDF reader (Adobe) instead of the document's title.

Re: Adding Document title in the titlebar instead of filename

2015-09-07 Thread avchavan
Extremely Sorry. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Document-title-in-the-titlebar-instead-of-filename-tp4671906p4671908.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
We don't have time to upgrade and do a full cycle of testing of the entire application again :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672062.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
not working. I added alerts inside the method to see if it gets called, but in vein. I hope my changes are correct, here's what i changed: Wicket.Event.add(window, "unload", function() { var WTH = Wicket.TimerHandles; if (WTH) { for (var th

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
so, call timer.stop() before download finishes? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672071.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
The counter doesn't stop now, but i can see javascript errors in firebug: ReferenceError: Wicket is not defined Wicket.Class = { , TypeError: Wicket.Throttler is not a constructor throttler: new Wicket.Throttler(true), & TypeError: Wicket.Ajax.DebugWindow is undefined

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
I dont see setWicketJQueryReference, but there is setJQueryReference. I hope you meant setJQueryReference only :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672070.html Sent from the Users forum mailing list archive at

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
This is what i get from view page source. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672067.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
The problem is we have to deliver tomorrow and the application is BIG, so testing it wont be possible and we wont get a go ahead. is there any alternative apart from upgrade (even a dirty one would do for time being). -- View this message in context:

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
or may be if there is a way to discard wicket-ajax-jquery.js used by wicket and use a duplicate (with the unload event)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672066.html Sent from the Users forum mailing list

Re: Overriding wicket-ajax-jquery.js

2015-10-01 Thread avchavan
What's happening now is the custom js is being loaded first hence i am getting reference error. Is there a way that the ajax js gets loaded after wicket's jquery and event js? -- View this message in context:

Overriding wicket-ajax-jquery.js

2015-09-28 Thread avchavan
Hi, I am using AjaxSelfUpdatingTimerBehavior in my application which is for session timeout kinda functionality. Also i have a Download functionality using DownloadLink. The AjaxSelfUpdatingTimerBehavior doesnt work after i download a file. I saw a JIRA created for similar issue:

Re: Overriding wicket-ajax-jquery.js

2015-09-28 Thread avchavan
I am not too good with Javascript. What i did is made a duplicate file locally for wicket-ajax-jquery.js and modified "beforeunload" to "unload". Imported this duplicate file at the end (just before the Head tag closes). But it doesn't work. -- View this message in context: