Re: Need help with AutoCompleteTextField

2008-08-25 Thread jnorris
and minutes TextFields. I've tried also adding the DateTimeField and the DateTextFields to the target but that doesn't change anything. Jim jnorris wrote: > > Hi All, > > I have an AutoCompleteTextField on a form along with 2 DateTimeFields used > to provide a start a

Need help with AutoCompleteTextField

2008-08-25 Thread jnorris
Hi All, I have an AutoCompleteTextField on a form along with 2 DateTimeFields used to provide a start and end date range that is to be used by the autocomplete field to limit the number of choices returned by the getChoices() method. The problem is that the date values are always the original va

Re: DateTimeField validation

2008-08-20 Thread jnorris
people use a 24 hour clock. Jim jnorris wrote: > > The DateTimeField validation message for hours for a 12-hour format > indicates that the date must be between 0 and 12. Shouldn't this be > between 1 and 12? The validator has the following: > > protected Map

DateTimeField validation

2008-08-20 Thread jnorris
The DateTimeField validation message for hours for a 12-hour format indicates that the date must be between 0 and 12. Shouldn't this be between 1 and 12? The validator has the following: protected Map variablesMap(IValidatable validatable) { final Map map = super.variablesMap(validatabl

Re: Problem getting value from DateTimeField

2008-08-18 Thread jnorris
I was passing the dates (and some other fields) in parameters so they could be restored when returning back to the page. I just came across a different technique for doing this in Wicket In Action (listing 6.7) so it is no longer an issue for me. Thanks WIA! Great book - has helped me numerous

Problem getting value from DateTimeField

2008-08-18 Thread jnorris
Hi All, I have a couple of DateTimeField components on a form on a page that has a Link that opens another page. In the onClick() method for the Link I need to get the values for the dates to put into a PageParameters object. However I can't seem to get the modified values for the dates. I've

Re: Help with ModalWindow

2008-08-05 Thread jnorris
confirm the operation. If the user clicks Yes update the DB, add a message to be displayed to page parameters and set the response page to the user list page. If the user clicks no just reopen the user list page. Jim jnorris wrote: > > Hi All, > > I'm trying to use a Modal

Help with ModalWindow

2008-08-05 Thread jnorris
Hi All, I'm trying to use a ModalWindow for a confirmation dialog. Based on the button clicked I'm setting a value in in a hidden field that has an AjaxFormComponentUpdatingBehavior that I'm trying to use to invoke an action method based on the user selection. I want to reuse this for pages th

Re: help with RadioGroup in Table

2008-06-25 Thread jnorris
Hi Thomas, Using the row model worked. I changed the value of the text box with data from the domain object in the row model, and set that as the target and bingo! Thank you for your help. Jim -- View this message in context: http://www.nabble.com/help-with-RadioGroup-in-Table-tp18036005p181

Re: help with RadioGroup in Table

2008-06-24 Thread jnorris
This problem is a real show-stopper for me so I really need some help if anyone has done something similiar. I added AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup as mentioned in another post and it hits onUpdate every time a radio button is selected. However, I can't figure out 1) h

Re: Including wicket in JSPs?

2008-06-23 Thread jnorris
Hi Jan, I have a legacy home-grown jsp application where I'm showing wicket pages in the content area using an inframe tag. Initially I had a problem that turned out to be caused by not using the closing tag for the iframe. Here's an example that works in IE6/7: ifram

help with RadioGroup in Table

2008-06-20 Thread jnorris
Hi All, I have a requirement for a radio button column in a data table. When a row is selected data from one of the columns needs to be placed in a text box on the form. The problem is how to get the selected row to update the text box. I've searched the forums and googled and haven't found a

Re: Dynamic updating of property file

2008-03-19 Thread jnorris
emoApp.get().getServletContext().getRealPath( "/WEB-INF/classes/" + propsPath )); String absPath = file.getAbsolutePath(); StringBuffer sbuf = // create the xml Writer out = new BufferedWriter( new OutputStreamWriter( new FileOutputStream( absPath ), "UTF8" )); out.wri

Dynamic updating of property file

2008-03-19 Thread jnorris
Hi all, Does anyone know if it is possible to dynamically modify a property file or overwrite it using Wicket? The property files are all in .xml format and the keys are taken from a database when a tree is dynamically built based on the values read in. The keys are used in a StringResourceMode

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread jnorris
[X] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 -- View this message in context: http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16096362.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Quickstart TestHomePage exception with AuthWebSession

2008-03-17 Thread jnorris
Thank you Igor, that resolved the problem with the exception. Jim igor.vaynberg wrote: > > public void setUp() > { > tester = new WicketTester(new MyApplication()); > } > > -igor > > On Fri, Mar 14, 2008 at 11:27 AM, jnorris <[EMAI

Quickstart TestHomePage exception with AuthWebSession

2008-03-14 Thread jnorris
Hi everyone, The TestHomePage test class that is created by the wicket quickstart archetype is throwing a ClassCastException when AuthenticatedWebSession is extended: Caused by: java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession at org.apache.wicket.authentication.A

Page redirect behavior

2008-03-13 Thread jnorris
Hi All, I have different behavior when using a RedirectPage which I'm trying to understand. I have a web page which has a Tree. In one case when a tree node is clicked, in the onNodeClicked() method this.setResponsePage( new RedirectPage( http.)) is called and the URL opens in the same brow

Re: AjaxFallbackDefaultDataTable and DropDownChoice

2008-03-11 Thread jnorris
Thanks Martijn! Adding the ddc to a panel worked. Jim Martijn Dashorst wrote: > > Instead of directly adding the DDC to the column, add a panel or > fragment containing the DDC. > > Martijn > > On 3/10/08, jnorris <[EMAIL PROTECTED]> wrote: >> >>

AjaxFallbackDefaultDataTable and DropDownChoice

2008-03-10 Thread jnorris
Hi All, I have implemented an AjaxFallbackDefaultDataTable and would like to put a DropDownChoice in one of the columns to list values. For example in a table of users a roles column would show the roles assigned to the user as a dropdown list. I haven't been able to find any examples of doing

Re: Checkbox problem

2008-01-18 Thread jnorris
Hi Timo, I was in the process of renaming MyModel to UserPageModel when I cut and pasted the code. Anyway I feel a bit stupid after you pointed out that I was using a Link instead of a Button and forgot that onClick() doesn't submit the form. I'm pretty much a newbie when it comes to web apps b

Re: Checkbox problem

2008-01-17 Thread jnorris
Hi Igor, I thought the problem would be simple enough to not include code but here it is. BTW if I de-select the checkbox and click on the select link in the table the checkbox becomes selected again. The debug stmt I threw in always prints "true" I'll be giving a presentation/demo in a couple

Checkbox problem

2008-01-17 Thread jnorris
I have a table implemented using the example AjaxFallbackDefaultDataTable which works like a charm. I also have a checkbox on the page that is created with an instance of a class that extends AbstractCheckBoxModel. The issue I am having is that the model state never changes. I have breakpoints