Re: IE8, IE7 Ajax fails with Wicket 6?

2012-10-31 Thread T Ames
I tried this with the example and I got the JS errors when I used the X to close the window. When using the Show modal dialog with a page and then a close link that returns a response, the window closed fine. On Wed, Oct 31, 2012 at 3:22 PM, Jack Berg erki.pub...@gmail.com wrote: Hi, I'm

Re: DropDownChoice - how to select default item

2010-09-01 Thread T Ames
Mike may have been referring to the usage of this when he was talking about the constructor. I create drop downs in constructors with no issue, I have not however used a this with a property model. Wild guess: possibly java is in the process of constructing the object, but DropDownChoice cannot

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
In Eclipse I use the m2eclipse plugin. It works pretty good and I rarely use the command line. To start a Wicket project, I create a Maven project which is part of the m2eclipse plug in. I then bring in the org.apache.wicket quickstart archetype. This creates a web project. I then modify the

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
I have never used that option when developing with Tomcat and the m2eclipse plugin. I have my development Tomcat loaded on the same machine as Eclipse, so the dynamic updates to Tomcat just happen when I change a class. You see this down in the Servers tab. It will say [Started, Synchronized] or

Re: Wicket + Eclipse + Tomcat

2010-08-23 Thread T Ames
Hmmm. I would try a clean install of Eclipse (I am using 3.6.0) , the m2eclipse plugin that goes with that version and a fresh workspace. Create a Maven Project and then select a wicket archetype or the maven web archetype. I have used both archetypes and they should create web projects upon

Re: TextFieldInteger

2010-07-26 Thread T Ames
cast Long to Integer D/ On Jul 22, 2010, at 5:01 PM, Josh Glassman wrote: There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames tamesw...@gmail.com wrote: I think you have to use the setType(Integer.class) method

Re: TextFieldInteger

2010-07-26 Thread T Ames
If I take out the setType method, still no cast error, but the Integer checking is not done - feedback panel does not receive an error. On Mon, Jul 26, 2010 at 9:23 AM, T Ames tamesw...@gmail.com wrote: I just whipped up a test, this is working - at least on 1.4.1         FormVoid form = new

Re: TextFieldInteger

2010-07-22 Thread T Ames
I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread T Ames
Sadly in the corporate world these things move very, very slowly. We have vendor apps that require IE6 so we are at their mercy. Anyways, we use IE6 and DatePicker is working although I don't think I have tried in on a ModalWindow. On Thu, Apr 8, 2010 at 10:23 AM, Martijn Dashorst

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread T Ames
and closed the modal. On Thu, Apr 8, 2010 at 11:06 AM, Martin Asenov mase...@velti.com wrote: Hi, T Ames! The datepicker is not in a modal window, but in a page. I was saying that when a modal window is closed, the mask it creates is never removed. Anyway, we'll probably not support IE6 Best

Re: Wicket and Reverse Proxy

2010-03-26 Thread T Ames
on the AJAX response. On Mon, Feb 22, 2010 at 11:59 AM, T Ames tamesw...@gmail.com wrote: A while ago I sent a message ( at bottom) and received no responses. In that message I had thought that AJAX was not working, but I was mistaken. In the Ajax Debug screen, Wicket is responding back

Re: Wicket and Reverse Proxy

2010-03-26 Thread T Ames
renders what you tell it to. the filtering of duplicates happens on the client side where js knows whats is there and what is not. -igor On Fri, Mar 26, 2010 at 5:53 AM, T Ames tamesw...@gmail.com wrote: H... No responses. Maybe I can attack this little by little. When an AJAX response

Re: Where to put an application's configuration parameters?

2010-03-08 Thread T Ames
As an alternative, I place all my properties in an LDAP server. In the Application, I have a class that retrieves the properties. On Sun, Mar 7, 2010 at 8:33 PM, James Carman ja...@carmanconsulting.comwrote: And if you want live redeployment, you could use jrebel and their spring plugin. I

Re: W.: serializable problem

2010-02-26 Thread T Ames
Here was my response to your original post: Serialization gets tricky. You must be very careful about all of the class level fields/objects you use. They must all be serializable and each object that those objects use or refer to must be serializable. Instead of using class level fields, wherever

Re: serializable problem

2010-02-25 Thread T Ames
Serialization gets tricky. You must be very careful about all of the class level fields/objects you use. They must all be serializable and each object that those objects use or refer to must be serializable. Instead of using class level fields, wherever possible, pass objects around as parameters

Wicket and Reverse Proxy

2010-02-22 Thread T Ames
A while ago I sent a message ( at bottom) and received no responses. In that message I had thought that AJAX was not working, but I was mistaken. In the Ajax Debug screen, Wicket is responding back with a stream. Here is one of the issues that I found. I get this error. ERROR:

Re: beginning with Listview

2009-12-16 Thread T Ames
Hmmm. I have never put actual wicket Link objects as members of a List, so it looks a little confusing. Anyway, you have not added the Link itself. What you did was in effect override the a tag and made it a Label. The wicket Link object itself does not have a getAddress() method. The onClick()

Re: beginning with Listview

2009-12-16 Thread T Ames
oops, sorry, your html should look like this: div wicket:id=list a href=# wicket:id=linkspan wicket:id=linkLabellink span/a /div On Wed, Dec 16, 2009 at 9:59 AM, T Ames tamesw...@gmail.com wrote: Hmmm. I have never put actual wicket Link objects as members of a List, so it looks

Re: Query related to displaying ListView items in a particular way

2009-12-03 Thread T Ames
Would gridview also handle a vertical column approach rather than horizontal? For example each model item would be a checkbox and description. I want two columns of this set on each physical row. Layed out like a dictionary or phonebook. The x below is a checkbox with a description next to it.

Re: Calling IN TO Wicket from JSP

2009-11-12 Thread T Ames
We are actually doing this with the POST as suggested below. Our intranet portal is in JSP, and passes info from the portal to individual Wicket apps in this manner. For me, these POST parameters appeared in the Request.getParameterMap() On Thu, Nov 12, 2009 at 11:55 AM, Frank Silbermann

Re: LDAP Authentication

2009-11-05 Thread T Ames
I am using simple AuthenticatedWebApplication and AuthenticatedWebSession which through that you can assign roles. There are examples in wicket-examples. I wrote my own classes to verify credentials using javax.naming against AD. Although I don't use roles much, you could assign a role based on

Re: How do you achieve persistency

2009-10-06 Thread T Ames
I use a product called JPersist - no XML, just POJOs. Has built in pooling. I instantiate the DatabaseManager in the web application and use a getter. http://www.jpersist.org It has a list of tested databases, but I use Microsoft SQL. Haven't had too many issues with it. On Tue, Oct 6,

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread T Ames
Your question should be Is it possible to? I have not found a way. I have gotten used to it. On Mon, Oct 5, 2009 at 8:48 AM, David Chang david_q_zh...@yahoo.com wrote: Does anybody know the trick for this task? Thanks! --- On Sun, 10/4/09, David Chang david_q_zh...@yahoo.com wrote:

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread T Ames
I see several undefined objects: result requestFormModel it If these are defined at the class level, they must be serializable. If you have Logging set at Info, Wicket will give you the actual field that is not serializable, although from the error it looks like something to do with

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread T Ames
) { return requestService.findRequestByFileName(requestFormModel.getFileName()).iterator(); On Mon, Sep 28, 2009 at 9:08 AM, T Ames tamesw...@gmail.com wrote: I see several undefined objects: result requestFormModel it If these are defined at the class level, they must

Re: wicket menu

2009-09-22 Thread T Ames
!--[if lte IE 7] style type=text/css html .jquerycssmenu{height: 1%;} /*Holly Hack for IE7 and below*/ /style ![endif]-- /wicket:head /head to TestMenu page Can you check, please, if that fixes the problem? Best, Ernesto On Mon, Sep 21, 2009 at 5:41 PM, T Ames tamesw...@gmail.com

Re: wicket menu

2009-09-22 Thread T Ames
could try is making a static page using jquery-1.3.2.min.js and see if this is the issue... so that, we are sure it is not Wicket related. Best, Ernesto On Tue, Sep 22, 2009 at 2:49 PM, T Ames tamesw...@gmail.com wrote: Yes, I did try the holly hack with a wicket:head and tried

Re: wicket menu

2009-09-22 Thread T Ames
I downloaded jquery-1.2.6.min.js and replaced the ResourceReference with that. Set everything else back to original and now it is working. On Tue, Sep 22, 2009 at 9:25 AM, T Ames tamesw...@gmail.com wrote: Found it. Oddly enough, it is the jquery version. I removed the ResourceReference

Re: wicket menu

2009-09-21 Thread T Ames
I just downloaded and tried. Works good in FF 3.0.14 If you are using IE6, you will get a 4 pixel space on a secondary list. This causes issues when you slide the mouse in this tiny space. In the Test example, this is the list that would show when hovering over Two-2-1. For IE6, I can fix by

Re: wicket menu

2009-09-21 Thread T Ames
we should report this in here http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/ As I'm just building a wrapper for what they have done Best, Ernesto On Mon, Sep 21, 2009 at 4:32 PM, T Ames tamesw...@gmail.com wrote: I just downloaded and tried. Works

Re: How to access text fields in a data view

2009-09-18 Thread T Ames
What the example lacks is the Submit button processing for the entire form. There are probably lots of ways to handle this - ajax and non-ajax. Once you get the submit button you want to use defined, that is where you can access all the items in the repeater by visiting the children of the form

TextField and MinimumValidator

2009-08-26 Thread T Ames
I cannot seem to get a simple validation to work on a form. Using 1.4-rc5. TextFieldLong testLong = new TextFieldLong(testLong, new ModelLong(0)); testLong.add(new MinimumValidatorLong(0)); batchForm.add(testLong); I want the text field to be validated as a number, and

Re: TextField and MinimumValidator

2009-08-26 Thread T Ames
Great! Thanks! I know you guys are super busy. One thing to put on the list would be to update the wicket examples - FormInput.java This is still using the NumberValidator and all it's various forms which have been deprecated. I assume that I would have seen the setType() in there if it were

Custom WebSession and bind()

2009-08-20 Thread T Ames
I have read several posts about how to manually bind stateless pages in a custom WebSession object to the http session. In my custom WebSession, I would like to create some objects, but only if and when the WebSession actually binds as normal when a stateful page is called up. Is there a method

Re: Custom WebSession and bind()

2009-08-20 Thread T Ames
Yes, I had done that. I was hoping there may be a more efficient place to do this since the attach() method appears to be called several times during the session life-cycle. Thanks! On Thu, Aug 20, 2009 at 11:00 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: maybe something like this...

Date Validation - From - To Dates

2009-08-12 Thread T Ames
I have coded a simple Validator below that may help others out who are looking for a way to make sure that a from-date and a to-date on a form fall within a proper range of each other. Meaning that a from date cannot be greater than a to date. I did this based on an older post of the same

Re: How Wicket's big concepts/objects work together and in what order?

2009-08-06 Thread T Ames
I think for most people anyway, you learn by doing. I would think that by now you have a basic understanding to put together a really decent web application. There is quite a learning curve, but you do not have to understand all of the internals. I learn more about Wicket each time I do a web

Re: Alternate rows with different color

2009-08-05 Thread T Ames
Following Igor's example, you will need to override the newItem() method. It is inherited into DataView from RefreshingView. Something like: new DataView() { @Override protected item newItem(..) { return new OddEvenItem(...); } } On Wed, Aug 5, 2009 at 12:22 AM, arungupta

Set focus on a form field within a ModalWindow

2009-06-26 Thread T Ames
When doing this in regular html pages, I take the easy way and just use this below the form within the html ... /form script type=text/javascript document.forms[noteForm].noteField.focus(); /script Works fine with typical wicket WebPage and

Re: Ajax enabled pages are slow to load

2009-06-19 Thread T Ames
Thanks Igor for making me THINK! This was my issue. I instituted my own ConfigurationType. At the time I did not realize that the WebApplication.getConfigurationType() was being called at many points during the rendering phase. So each time this method was called it was thrashing about in LDAP -

Reverse Proxy and AJAX

2009-06-18 Thread T Ames
My company is going to start using a Juniper Reverse Proxy server for VPN access. We have a large mix of different web technologies in use. Wicket is one of them. What this product does is URL rewriting to make things work. I am having a problem with Wicket AJAX functions working properly. Below