Re: Paths not serializable

2018-06-13 Thread sorinev
Perfect, that worked. What's the side effect of this vs the other way, if any? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Paths not serializable

2018-06-13 Thread sorinev
I created a quickstart for this, but I imagine you're long since aware of it. But, what am I supposed to do about sun.nio.fs.UnixPath throwing a java.io.NotSerializableException (passed in to FileSystemResourceReference)? The page still works, but the server log gets really nasty, really quick,

Re: Debugging options

2018-06-07 Thread sorinev
Ok, so I found out what it appears to be. My full code for the DropDownChoice I'm setting up is this: selectedAccountDropdown = new DropDownChoice("selectedAccount", new PropertyModel(this, "selectedAccount"), accountList, new ChoiceRenderer("name", "id")); selectedAccountDropdown.add(new

Re: Debugging options

2018-06-07 Thread sorinev
It seems like nothing in that class is being called when I change the selection in the DropDownChoice. I'm setting it up like this: new DropDownChoice("account", new PropertyModel(this, "selectedAccount"), accountList, new ChoiceRenderer("name", "id")); But I've tried several other ways too,

Re: Debugging options

2018-06-07 Thread sorinev
I don't have an equals method for the class, and most of the classes I've come across in our code that are being used in Wicket components don't. Is a class supposed to? How does it work otherwise? Bit-by-bit comparison by the JVM? Anyhow, yeah debugging is what I've been doing but I've been

Debugging options

2018-06-06 Thread sorinev
I have some code that's not working like it should, and like it does in other projects. I made a quickstart, but it works there. What other debugging options do I have besides plain Java debugging (short of sharing my repo with a maintainer / expert, which I'm 100% open to)? I have a

Re: iframe on migration from 1.4.17 to 7.10.0

2018-05-11 Thread sorinev
Thanks, that was basically it, though I had to prefix with "/myApp/" instead. Is there a way to set this globally somewhere through Wicket itself, rather than making sure all my strings have that prefixed? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: iframe on migration from 1.4.17 to 7.10.0

2018-05-11 Thread sorinev
It's different for each page, but it returns a string that corresponds to the path in the "Help" folder to find the help page associated with the current page. The AtrributeModifier then replaces the src attribute of the help iframe so that when clicked, it slides up the help page relevant to the

iframe on migration from 1.4.17 to 7.10.0

2018-05-11 Thread sorinev
FYI: I did not write the original code; I'm just updating it. We have an application on 1.4.17 that we are /finally/ updating to 7 (like I've been saying is necessary for the last 3 years, but now a client wants us to do it and suddenly it's urgent...) and have things mostly sorted out. One of

Re: Force Model to use getter

2017-12-01 Thread sorinev
I added a setter for each property, but it's still not working (tried matching field types as well). I guess I'll just have to stick with the IModel route, even though I don't like it. I changed the Doubles to BigDecimal, thanks for the reminder. -- Sent from:

Force Model to use getter

2017-12-01 Thread sorinev
Wicket 7.9.0. I have a Java double that is linked to a Wicket Label. This double represents a dollar amount, so I want to work with it as a double for math purposes. When I display it on the page however, I want it to a be a currency formatted String. I figured I would just add a getter to my

Re: IndicatingAjaxButton onSubmit seems missing when deployed

2017-08-24 Thread sorinev
As it turns out, someone did modify this page, but it was earlier this year and not recently. This button is part of a row in a table, so each row has its own version of this button, and obviously the button is supposed to act on the data specific to that row. Well, they added a setMarkupId() to

IndicatingAjaxButton onSubmit seems missing when deployed

2017-08-24 Thread sorinev
I really don't know what to make of this. Hopefully I'm missing something simple. I'm using NetBeans to attach a debugging session to my wicket (1.4.17) application deployed on Wildfly. NetBeans keeps telling me that there is no executable code located at that line when I try to submit a

Re: Attach ajax/javascript to CheckBox, v1.4

2017-05-25 Thread sorinev
I've tried adding an AjaxEventBehavior to the regular CheckBox and to the AjaxCheckBox. I tried a few different things, the latest one is this: fooCheckBox.add(new AjaxEventBehavior("onbefore"){ @Override protected IAjaxCallDecorator getAjaxCallDecorator(){

Attach ajax/javascript to CheckBox, v1.4

2017-05-24 Thread sorinev
I have a version 7.x application where I have an Ajax component that I add some javascript to via this method: @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes);

Re: 7.3 : javascript attached to extended AjaxButton

2016-10-20 Thread sorinev
1. We extend AjaxButton. 2. In renderHead(), we do a JavaScriptReferenceHeaderItem with a JavaScriptResourceReference that has a javascript file that is local to our class. 3. Inside the javascript file there is a yahoo widget panel that does this: panel.setBody(" <\"images/ajax-loader.gif\"> ").

7.3 : javascript attached to extended AjaxButton

2016-10-06 Thread sorinev
We are upgrading from 1.4.17 to 7.3. A handful of runtime issues remain now that all the build errors are fixed. One of them is in regards to the AjaxButton, which we extended. In 1.4.17 this was the class The relevant javascript file is After upgrading to 7.3, the update class, to fix

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
Well it's still the same issue; the button does /function/ now, it's just not entirely right. The button has its own javascript file and something in this file is causing an exception in wicket when the button is loaded on a page. There is a gif associated with this button, but something is

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
I resolved the button not working issue. I had to change the package reference statements to JavaScriptReferenceHeaderItem instead of just JavaScriptHeaderItem and I had to put the four statements to load these references in the right order, it seems. New problem though is that one of those

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
It seems that no matter what I put in JavaScriptHeaderItem.forUrl(); it does not get added to the page when I look at it through the browser inspector. I tried simply the file name, I've tried a path relative to the webapp folder (i.e. ./src/main/webapp/) and it just does not want to get

Unexpected Invocation of #onSubmit()

2016-10-03 Thread sorinev
I'm in the middle of upgrading from 1.4.17 to 7.3 and one of many issues is with the AjaxButton class that we extended. We provided three constructors (id and form; id; id and model), an init function common to all three, and an override of getAjaxCallDecorator(). Init function did a few

Re: Migration from 1.4.17 to 7.3

2016-10-03 Thread sorinev
Since the previous way of doing it was never referenced, I figured I'd comment the new way out and see what happened. It works like it should. So I guess the previous class extension and overriding must have been something that was tried and later abandoned but not deleted. -- View this message

Re: Migration from 1.4.17 to 7.3

2016-10-03 Thread sorinev
Regarding #4, how do I redirect it to my https url then? The 1.4.17 class we extended built a new https url and set it on a response. This new method appears, yes, to do nothing. When I go to my login url now or try to type the https url for the login page directly, i stay on http and port 80

Migration from 1.4.17 to 7.3

2016-09-30 Thread sorinev
I'm updating the web portion of our server application from ancient 1.4.17 to shiny new 7.3. There are about 225 files and I've gotten through a lot of them (mass find/replace, woo hoo) but I've hit a few snags that are not only difficult to find information on in regards to upgrade, but that I

Re: Link - open modal on left click, new tab/window on right-click/context

2016-07-27 Thread sorinev
Changing the href worked. But it opens the page on both a left click and a right click -> new tab. This may be related to the second part having no effect (stopping the propagation), which may in turn be related to the third part. Since I don't really know javascript, I'm not sure what needs to go

Link - open modal on left click, new tab/window on right-click/context

2016-07-26 Thread sorinev
I have an AjaxLink on my page. and the modal side of it is: And this works just fine. When I click the link, a wicket modal window opens with the content of that modal being loaded from an external url. However, a request has been made to change the functionality slightly. When left

AjaxIndicatingButton

2015-12-04 Thread sorinev
I have a dialog with 3 AjaxIndicatingButtons on it. When I override onSubmit(), I can disable the 'this' component in real time (this.setEnabled(false)), but traditionally, any other component that gets modified has to do target.addComponent(comp) and then wait for the onSubmit() to return in

Re: AjaxIndicatingButton

2015-12-04 Thread sorinev
> > I might be wrong in my suggestion as your scenario needs more details for > better understanding. > > -Mihir. > > On Fri, Dec 4, 2015 at 3:28 PM, sorinev > sorinev@ > wrote: > >> I have a dialog with 3 AjaxIndicatingButtons on it. Whe

Re: AjaxIndicatingButton

2015-12-04 Thread sorinev
I gave that a shot but it didn't seem to work. It still did the disabling after onSubmit() returned. I'm not going to worry about it at this point, I just thought it'd be better to do it. Thanks for your assistance mihir. mihir wrote > You could something like below: > >final

Re: TextField - AjaxEventBehavior-onBlur - onEvent

2015-06-16 Thread sorinev
I don't have the code at hand this very moment, but it goes something like this. The TextField above the table does the onblur like: tf.add(new AjaxEventBehavior(onBlur, {override onEvent here along with a target.addComponent(table)} ... Then for the table, there is a DataView with a populate

Re: TextField - AjaxEventBehavior-onBlur - onEvent

2015-06-16 Thread sorinev
How would I accomplish that? I've tried this https://cwiki.apache.org/confluence/display/WICKET/Markup+inheritance https://cwiki.apache.org/confluence/display/WICKET/Markup+inheritance and this https://cwiki.apache.org/confluence/display/WICKET/Adding+Javascript+or+CSS+using+a+Resource

Re: TextField - AjaxEventBehavior-onBlur - onEvent

2015-06-16 Thread sorinev
False alarm, I had some kinks to work out. It works great now, thanks for your help with this, I appreciate it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-AjaxEventBehavior-onBlur-onEvent-tp4671150p4671204.html Sent from the Users forum mailing list

CompoundPropertyModel: override method or catch exception

2015-06-16 Thread sorinev
To go with my other thread http://apache-wicket.1842946.n4.nabble.com/TextField-AjaxEventBehavior-onBlur-onEvent-tp4671150.html about the same form page, I have an issue with the CompoundPropertyModel. There is a TextField in a form on this page, and the corresponding setter in the model can

Re: TextField - AjaxEventBehavior-onBlur - onEvent

2015-06-15 Thread sorinev
I decoupled the submit buttons from the table, which was easy on the Java side but a HUGE pain on the HTML side. However, I now have a new problem (well it always existed, but it's next on the agenda). This form has a TextField and a table. The table has some rows on it, and each row has a

TextField - AjaxEventBehavior-onBlur - onEvent

2015-06-12 Thread sorinev
Wicket v1.4.17 I have a Form with a TextField and, among other things, two submit buttons. One is a typical submit button, the other is a submit button that acts as a cancel (closes stuff out and goes to the previous page). This TextField has an AjaxEventBehavior of onBlur added to it, and

Override automatic default Form style

2014-07-15 Thread sorinev
http://apache-wicket.1842946.n4.nabble.com/file/n417/form.jpg I have a page with a form on it, created by: /Form addContactForm = new Form(AddContactForm, new CompoundPropertyModel(contact));/ and it automatically inserts this crazy hidden styling: /div

item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I'm using the Wicket Quickstart (latest as of yesterday) as a base and I'm trying to do a very simple loop through data I've grabbed from a database (Hibernate, MySQL, no Spring). I'm following the various DataView, ListView, etc examples to the letter and every time I restart the server and

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I'm not even sure HOW to get into a debuggable environment. The wicket framework and whole environment is so bizzare and unfamiliar, i'm not sure how (it took me 2 days to get the environment set up to even begin programming). I current develop it in IntelliJ IDEA. When I'm ready, I hit rebuild

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
Ok, that was simple enough (running in Jetty for debug purposes). It shows the objects as: /contactList = {java.util.ArrayList@3397} size = 4/ and then each element in the list is shown as /java.lang.Object/ So I guess I need to get some converting going on for the list and/or it's elements.

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I found a way to do it. I just had to change the line from /ListContact contactList = session.createSQLQuery(select * from wicket.contacts).list();/ to /ListContact contactList = session.createSQLQuery(select * from wicket.contacts).addEntity(Contact.class).list();/ meaning the only thing