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));
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
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;));
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
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
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
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.
@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
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) {
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
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:
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.
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
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.
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
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()){
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();
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
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.
Hi here is my code:
JAVA:
final RadioGroup radioGroup = new RadioGroup(radioGroup);
final Radio selectable = new
Radio(selectable, new
Model(Boolean.FALSE));
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
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
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:
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
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,
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) {
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
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.
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
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
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
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
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
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
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.
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.
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.
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.
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);
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.
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:
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
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.
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
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.
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.
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.
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.
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
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.
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
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
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.
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:
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
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:
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:
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:
58 matches
Mail list logo