[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

Re: [Wicket-user] Refreshing hibernate models

2007-07-11 Thread Tauren Mills
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(). Regards Tauren Mills wrote: I'm working on a site that allows people

[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] 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

[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

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] 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] Getting compoundpropertymodel from a parent

2007-07-09 Thread Tauren Mills
, 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 thought that wicket would hunt back up the component tree to find

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

2007-07-09 Thread Tauren Mills
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't been added to the parent yet. That happens after the child constructor has finished. that makes sense So how

[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

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

2007-07-03 Thread Tauren Mills
) 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 7/3/07, Tauren Mills [EMAIL PROTECTED] wrote: I need to allow users to rate things on a site, but as far as I can

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

2007-07-03 Thread Tauren Mills
: 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 Before I go and start creating yet another star rating

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

2007-06-27 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

[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

[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

Re: [Wicket-user] Customizing ModalWindow CSS

2007-06-27 Thread Tauren Mills
, 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 - This SF.net email is sponsored by DB2 Express Download DB2

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 OrderByBorder column headers without doing a full page refresh

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, those components are reliant on the existence of an object

[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

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

2007-06-26 Thread Tauren Mills
response to do, then the problem shouldn'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

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

2007-06-26 Thread Tauren Mills
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 on /db/app?wicket:interface=:6:newService

[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
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 Mills [EMAIL PROTECTED] wrote: I am creating

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

2007-06-24 Thread Tauren Mills
! 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 supporting alternate stylesheets is outside the scope of wicket core. Mozilla

[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: link rel=alternate stylesheet type=text/css href=large.css title=large / Using HeaderContributor, I can get this

Re: [Wicket-user] State selection from imagemap

2007-06-22 Thread Tauren Mills
imagemap like 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 I should wicketize this form, or leave

[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. img src=img/map.png usemap=#map border=0

[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

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

[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
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)

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

[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've

[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

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

2007-05-05 Thread Tauren Mills
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 functions from ajax. Some scripts work and some don't. I've got this java code: target.appendJavascript(toggleSelection

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 IE. However, there is one that behaves differently in IE

[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

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

2007-05-03 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

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

2007-05-03 Thread Tauren Mills
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 using a custom ListView to generate a table. The content of the table consists of four columns

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

2007-05-03 Thread Tauren Mills
that list on the fly. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL

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

2007-05-03 Thread Tauren Mills
/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Upon further thought, how can a ListView inside a ListView solve this? Wouldn't the hierarchy cause the html to be messed up? I can't have TRs within TRs. The inner listview isn't putting child data inside of the TR, it needs to make TRs

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

2007-04-30 Thread Tauren Mills
/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 an AjaxEventBehavior and appendJavascript. For instance, the this in this refers to the TR which is correct and the selectRow

[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

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
that to the user -igor On 4/30/07, Tauren Mills [EMAIL PROTECTED] wrote: 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

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
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 PROTECTED] wrote: class resetpage extends webpage { public

[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: tr

[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: tr