[Wicket-user] Model for form with variable number of fields

2007-08-04 Thread Tauren Mills
Hello, I have a process that reads a CSV data file. The data contains lists of people, but the number of fields, the order and the type of fields can vary from one CSV to another. Because the data in each column is unknown, a form is displayed with a preview of the data in a table. The table co

Re: [Wicket-user] Refreshing hibernate models

2007-07-11 Thread Tauren Mills
modification into Service (maybe you could do a partial > refresh if you extract computed property into an > encapsulated object (with it's own cache rule) > * or don't use formula, and do a direct JDBC query into getCoutnReports() > and getAvgQuestions1(). > > R

Re: [Wicket-user] Wicket get together at O'Reilly Open Source convention? (Portland Oregon USA)

2007-07-10 Thread Tauren Mills
That sounds great! All the action is overseas, lets get some here on the west coast! Planning it might be the hard part... Lets see... juggling 3 wicket projects right now.. can I find time to go to Seattle? :) I'm sure everyone else is in the same boat... Tauren On 7/10/07, Eelco Hillenius

[Wicket-user] Refreshing hibernate models

2007-07-10 Thread Tauren Mills
I'm working on a site that allows people to rate services. There is a Services entity that contains a set of Report entities. Users can add new services and submit reports on those services. The reports have questions that users rate from 1 to 5 stars. I am using hibernate properties with formu

Re: [Wicket-user] Wicket get together at O'Reilly Open Source convention? (Portland Oregon USA)

2007-07-10 Thread Tauren Mills
Sean, I'm in Portland too, but I may not be in town that week. Still working out the details. It does sound like a great idea. I got a friend here in town into wicket, so he might be interested as well. Tauren On 6/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Are there any Wicket pe

[Wicket-user] Pages vs. Panels

2007-07-10 Thread Tauren Mills
I'm interested in how others typically build a web application in regards to using many Pages or very few Pages with Panels for different "web pages" of content. I'm not referring to using smaller reusable panels within pages/panels, but main Panels that encompass the majority of the content of a

Re: [Wicket-user] Getting compoundpropertymodel from a parent

2007-07-09 Thread Tauren Mills
Perfect! Thanks Igor... Tauren On 7/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > So what is the correct way to access that property? > > StarDisplay.this.getModelObject() > > -igor - This SF.net email is sponsored by

Re: [Wicket-user] Getting compoundpropertymodel from a parent

2007-07-09 Thread Tauren Mills
s that property? Thanks again, Tauren On 7/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > On 7/9/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > Component.initModel() calls getParent() and it returns null. I guess > > that makes sense because the child hasn'

Re: [Wicket-user] Getting compoundpropertymodel from a parent

2007-07-09 Thread Tauren Mills
> On 7/9/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > I'm confused on how to access a CompoundPropertyModel from within a > > child Panel. I set a CompountPropertyModel in a parent panel. But > > doing a getModel() in the child panel returns null. I

[Wicket-user] Getting compoundpropertymodel from a parent

2007-07-09 Thread Tauren Mills
I'm confused on how to access a CompoundPropertyModel from within a child Panel. I set a CompountPropertyModel in a parent panel. But doing a getModel() in the child panel returns null. I thought that wicket would hunt back up the component tree to find an appropriate CompountPropertyModel. How

Re: [Wicket-user] Advice needed on custom star rating control

2007-07-03 Thread Tauren Mills
t;[EMAIL PROTECTED]> wrote: > > On 7/3/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > The Wicket rating control doesn't include the mouse rollover support: > http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage &

Re: [Wicket-user] Advice needed on custom star rating control

2007-07-03 Thread Tauren Mills
ackLink, and then if it is an ajax request, do > target.addComponent(wholeStarPanel) to repaint the updated panel (if you > have recalculated the star rating, etc). > > Hope this helps a little. Sorry I didn't have more time for a better > example. > > Jeremy Thomerson > > > On

[Wicket-user] Advice needed on custom star rating control

2007-07-03 Thread Tauren Mills
I need to allow users to rate things on a site, but as far as I can tell, none of the star rating controls I've seen do everything I want. I'd like the following: 1. Should have CSS or Javascript rollover support to highlight stars as mouse rolls over them. 2. Must be able to fallback to regula

Re: [Wicket-user] AJAX version of OrderByBorder?

2007-06-27 Thread Tauren Mills
Igor to the rescue again... Thanks! Tauren On 6/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > see ajaxfallbackorderbyborder > > -igor > > > > On 6/27/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > I'd like to refresh a DataView with Ord

Re: [Wicket-user] Customizing ModalWindow CSS

2007-06-27 Thread Tauren Mills
ote: > > search through the mail-list, this topic was discussed in details > > > > Tauren Mills wrote: > > > What is the best way to customize the CSS styles of a ModalWindow in > > > 1.2.6? > > > > > -- > > Andrew Klochkov --

[Wicket-user] AJAX version of OrderByBorder?

2007-06-27 Thread Tauren Mills
I'd like to refresh a DataView with OrderByBorder column headers without doing a full page refresh. In other words, when a column header is clicked to sort the DataView, the DataView refreshes via ajax. Pagination can be done via ajax, but I haven't seen a way to do sorting via ajax. Does it exis

[Wicket-user] Customizing ModalWindow CSS

2007-06-27 Thread Tauren Mills
What is the best way to customize the CSS styles of a ModalWindow in 1.2.6? The blue and grey borders do not go well with my site's color scheme. It looks like setCssClassName only selects from the blue or grey in modal.css. So how do I use my own stylesheet? Should I extend ModalWindow and copy

[Wicket-user] Consistent layouts - markup inheritance or borders?

2007-06-26 Thread Tauren Mills
It seems that there are two primary ways of having consistent layouts across all pages: 1. Use markup inheritance: http://cwiki.apache.org/WICKET/markup-inheritance.html 2. Use Borders: http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html I personally have used markup inher

Re: [Wicket-user] Refresh page after form submit within ModalWindow

2007-06-26 Thread Tauren Mills
lp! Tauren On 6/26/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > Timo, > > Good idea, but that doesn't work either. The Ajax Debug window in > MyPage shows nothing being sent to do. Note this is in Wicket 1.2.6. > > INFO: > INFO: Initiating Ajax GET request o

Re: [Wicket-user] Refresh page after form submit within ModalWindow

2007-06-26 Thread Tauren Mills
;t have to do with the dataview/dataprovider, should it? Any other ideas? Tauren On 6/26/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Tue, 26 Jun 2007, Tauren Mills wrote: > > 2. Use AJAX to refresh just MyDataView > > Have you tried adding a placeholder container aro

[Wicket-user] Refresh page after form submit within ModalWindow

2007-06-26 Thread Tauren Mills
I have the following hierarchy: MyPage MyDataView ModalWindow (containing a MyModalPage) MyModalPage MyModalForm AjaxSubmitLink The modal window is used to add new items to MyDataView. If there are errors when the form is submitted, the modal window should stay open with fe

Re: [Wicket-user] Interrupt page constructor and redirect to another page

2007-06-26 Thread Tauren Mills
Igor, Thanks, that works perfectly. Tauren On 6/25/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/25/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > > I have a page constructor that adds several components. However, > > tho

[Wicket-user] Interrupt page constructor and redirect to another page

2007-06-25 Thread Tauren Mills
Hi everyone, I have a page constructor that adds several components. However, those components are reliant on the existence of an object in the session. I'd like to test if that object is null, and if it is, redirect the user to a different page where they can make a selection that adds a valid

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Tauren Mills
r the help! Tauren On 6/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/24/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > Igor, > > > > Thanks for the solution! I'll go that route for now. > > > > However, I'm not convinced that support

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Tauren Mills
wn, it isn't hard to implement my own IHeaderContributor. I just wasn't sure how to go about it, and now I am. So perhaps you are right in that it is best left out of core. Thanks again! Tauren On 6/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/23/07, Tauren Mi

[Wicket-user] Updating link attributes from HeaderContributor

2007-06-23 Thread Tauren Mills
I am creating an application that utilizes alternate stylesheets. A javascript library also needs each stylesheet to have a title. The output format should be something like this: Using HeaderContributor, I can get this output: Note that I need to add "alternate" to the "rel" attribute and

Re: [Wicket-user] State selection from imagemap

2007-06-22 Thread Tauren Mills
ke this. I would be happy to post this information on the wiki, but I don't want to do it if there are better solutions. So any advice would be appreciated. Thanks, Tauren > Eelco > > > On 6/19/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > I'm wondering if

[Wicket-user] State selection from imagemap

2007-06-19 Thread Tauren Mills
I'm wondering if I should "wicketize" this form, or leave it as a basic html form and would like to hear your thoughts. I have a map of the USA with an imagemap. Clicking onto a state goes to another page that displays a list of metro areas in the state. ... I did this by using a bo

Re: [Wicket-user] Customer management of site after development is completed

2007-06-18 Thread Tauren Mills
Eelco and RĂ¼diger, Thanks for your responses. I must admit I was hoping to hear that others had solved similar problems with a more robust solution. I was starting to wonder if what I wanted to do was possible, and it sounds like it would be very difficult if even possible. I've already designe

[Wicket-user] Customer management of site after development is completed

2007-06-18 Thread Tauren Mills
Earlier I asked how to relocate html, css, and other resources away from the Java code and Al Maw gave me some good help in IRC. In our conversation, he helped me to realize that the approach I was planning would not work the way I had desired. I'd like to find out how others on the list have han

[Wicket-user] Location of css, images, js files

2007-06-15 Thread Tauren Mills
Hello, For a wicket 1.2 app, I've located my html files in a different location than the class files, as decribed here: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html This works fine. But I'm finding that css, images, and js files are not being located unless I put

Re: [Wicket-user] Remote Address

2007-05-07 Thread Tauren Mills
Personally, I rarely use the IP address of the guest in my app, but I like to log it in case I need to track something down later. I've seen certain use cases where you want to let the user know where they are coming from and that the app is logging their actions. For these reasons, it might be n

Re: [Wicket-user] Remote Address

2007-05-07 Thread Tauren Mills
I do this: log.info(" RemoteAddr: " + ((WebRequest)getRequest()).getHttpServletRequest().getRemoteAddr()); Works for me in 1.2.5. Will be upgrading to 1.2.6 soon, so I hope it still works. Tauren On 5/7/07, mathias axelsson <[EMAIL PROTECTED]> wrote: > ((WebRequest) (WebR

Re: [Wicket-user] Checkbox onchange event differences between IE and FF

2007-05-05 Thread Tauren Mills
Duh! Thanks! On 5/5/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > use onclick instead of onchange. > > -Matej > > On 5/5/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > I have numerous ajax calls throughout my app, and they work fine in > > both FF and

Re: [Wicket-user] Strange behavior when calling a function in appendJavascript

2007-05-05 Thread Tauren Mills
ipt had a parse error causing the interpreter to > barf and not load the rest of the script. > > best, > jim > > > On 5/5/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > I'm having a strange problem executing javascript functio

[Wicket-user] Checkbox onchange event differences between IE and FF

2007-05-05 Thread Tauren Mills
I have numerous ajax calls throughout my app, and they work fine in both FF and IE. However, there is one that behaves differently in IE and FF. It seems that the "onchange" behavior of a checkbox happens at different times between the browsers. With FF, the event is sent as soon as the checkbox

[Wicket-user] Strange behavior when calling a function in appendJavascript

2007-05-05 Thread Tauren Mills
I'm having a strange problem executing javascript functions from ajax. Some scripts work and some don't. I've got this java code: target.appendJavascript("toggleSelection(document.getElementById('"+getComponent().getMarkupId()+"'))"); And in the html I'v

[Wicket-user] Updating textfield model in ajax onchange

2007-05-04 Thread Tauren Mills
I have a text field called 'dateField' on a form that has an associated DatePicker control. When someone selects a date in the picker, I want to do an ajax call to refresh another component on the page. I need the dateField model to be updated in the ajax call. I originally assumed the model wou

Re: [Wicket-user] Adding extra row to table in ListView

2007-05-03 Thread Tauren Mills
doing this in a jsp is easier because > the jsp renders top-down, but in my experience they are few and far in > between. and more importantly we have solutions to make them work. > > -igor > > > > > On 5/3/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > >

Re: [Wicket-user] Adding extra row to table in ListView

2007-05-03 Thread Tauren Mills
Vaynberg <[EMAIL PROTECTED]> wrote: > you can still have only one list. then have an imodel implementation that > filters that list on the fly. > > -igor > > > > On 5/3/07, Tauren Mills < [EMAIL PROTECTED]> wrote: > > Igor, > > > > Yes, that mak

Re: [Wicket-user] Adding extra row to table in ListView

2007-05-03 Thread Tauren Mills
rote: > what you need is a lsitview in a listview > > the first outputs the date row, and then a listview that outputs rows for > that date. > > makes sense? > > -igor > > > > On 5/2/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > I'm

[Wicket-user] Adding extra row to table in ListView

2007-05-02 Thread Tauren Mills
I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to "group" rows of data in the table. Thus, there would be a groupRow that specifies a date, then ma

Re: [Wicket-user] Forgot password feature

2007-05-01 Thread Tauren Mills
Geez, thanks Nathan. Not sure how I could have been using Base64 and not noticed Base64UrlSafe. I figured there was an easy solution. Tauren On 4/30/07, n8han <[EMAIL PROTECTED]> wrote: There's org.apache.wicket.util.crypt.Base64UrlSafe Tauren Mills-2 wrote: > > Is the

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
ere a different solution? Perhaps using something besides Base64, but I don't know what would be good to use. Thanks, Tauren On 4/30/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > Igor, > > Thanks so much! > > Tauren > > > On 4/30/07, Igor Vaynberg <[EMAIL P

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
resetpage.urlfor(key) should return something like /context/reset/yourkey > and you can email that to the user > > -igor > > > > On 4/30/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > I'm considering different ways to implement a "Forgot Passw

[Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
I'm considering different ways to implement a "Forgot Password" feature. I normally see it done one of two ways. 1. On registration, get a Question and Answer from user. Ask them this question when they forget their password. On correct answer, let them change password. I don't have any quest

Re: [Wicket-user] Different JS 'this' object using ajax

2007-04-30 Thread Tauren Mills
lementById('"+item.getMarkuipId()+"')"); > > -Matej > > On 4/29/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > Hi, > > > > It appears that the javascript "this" object is different when I > > hardcode the javascript into the html vs. using

[Wicket-user] Different JS 'this' object using ajax

2007-04-29 Thread Tauren Mills
Hi, It appears that the javascript "this" object is different when I hardcode the javascript into the html vs. using an AjaxEventBehavior and appendJavascript. For instance, the "this" in this refers to the TR which is correct and the selectRow functions works properly: But if I use th

[Wicket-user] Different JS 'this' object using ajax

2007-04-29 Thread Tauren Mills
Hi, It appears that the javascript "this" object is different when I hardcode the javascript into the html vs. using an AjaxEventBehavior and appendJavascript. For instance, the "this" in this refers to the TR which is correct and the selectRow functions works properly: But if I use th