append HTML to a page ONE time

2008-04-25 Thread Clay Lehman
I am making a component that has to have a DIV appended to the page to work properly, but the problem is, this DIV has to be appended exactly once, even if multiple objects of the component are added to the page. It actually needs to be added at the end of the page too, sort of like the opposite of

RE: append HTML to a page ONE time

2008-04-25 Thread Clay Lehman
nt: Friday, April 25, 2008 12:35 PM To: users@wicket.apache.org Subject: Re: append HTML to a page ONE time Can you elaborate on why you need to do this? Maybe it can be twisted a bit to fit in? Clay Lehman wrote: > I am making a component that has to have a DIV appended to the page to > wo

RE: append HTML to a page ONE time

2008-04-25 Thread Clay Lehman
That's Awesome!! Thanks Igor, that was exactly what I needed :) Clay Lehman Phone: (919) 882-2856 [EMAIL PROTECTED] -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, April 25, 2008 1:37 PM To: users@wicket.apache.org Subject: Re: append HTML to a pag

hasErrorMessage() for FormComponentPanel

2008-05-01 Thread Clay Lehman
Hey Everyone, I have made a FormComponentPanel that contains components in it. I add a custom validator to the inner component to validate the input. However, when I call hasErrorMessage on the FormComponentPanel, it always returns false, even if the custom validator found a problem. Is

RE: Footer Toolbar for DefaultDataTable (wicket 1.3.2)

2008-05-01 Thread Clay Lehman
Look at the source of DefaultDataTableit's your perfect example., just extend it and add another bottom toolbar. Clay Lehman Phone: (919) 882-2856 [EMAIL PROTECTED] -Original Message- From: standon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 01, 2008 2:46 PM To:

RE: Is wicketstuff-scriptaculous still active?

2008-01-11 Thread Clay Lehman
Is this project no longer going to support jdk 1.4? I was using a build from Sept. '07 from http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-scri ptaculous/ and it worked fine, but I just tried a build from January '08 and it was compiled with java 5, so I can't use it -Cl

DatePicker.enableMonthYearSelect

2008-01-15 Thread Clay Lehman
Hey Everyone, I was using 1.3-beta4 and I had overridden the DatePicker to enable the month and year to be selected by returning true from DatePicker.enableMonthYearSelect, and it was pretty cool. After upgrading to wicket-1.3 final last week, today I noticed that the component on my page is b

RE: DatePicker.enableMonthYearSelect

2008-01-15 Thread Clay Lehman
of the month/year selection. instead we are using the CalendarNavigator provided by yahoo. just move your mouse over the date in the header and click it. regards, gerolf On Jan 15, 2008 5:45 PM, Clay Lehman <[EMAIL PROTECTED]> wrote: > Hey Everyone, > > > > I was usin

RE: DatePicker.enableMonthYearSelect

2008-01-15 Thread Clay Lehman
**nods** -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 2:01 PM To: users@wicket.apache.org Subject: Re: DatePicker.enableMonthYearSelect yeah, not a very good ui choice by yahoo... :) -igor On Jan 15, 2008 11:00 AM, Clay Lehman

RE: DatePicker.enableMonthYearSelect

2008-01-15 Thread Clay Lehman
;) gerolf On Jan 15, 2008 8:38 PM, Clay Lehman <[EMAIL PROTECTED]> wrote: > **nods** > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 15, 2008 2:01 PM > To: users@wicket.apache.org > Subject: Re: DatePicker.enableMonthYear

RE: Dynamic DataTable columns

2008-01-29 Thread Clay Lehman
Can't you just create a new DataTable with the new list of columns in the ajax call when you want to add/remove a column, then repaint the container holding the Table? -Clay -Original Message- From: Timo Rantalaiho [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 10:26 PM To: u

DropDownChoice Question

2007-09-20 Thread Clay Lehman
Hey everyone, I am relatively new to using Wicket, and I have a question about using DropDownChoice's to put a select box on a form. I want to display choices which have specific ID values for each option (instead of indexed choices, like most examples I see), and I want to update a Strin

RE: DropDownChoice Question

2007-09-20 Thread Clay Lehman
, 2007 at 11:33:31AM -0400, Clay Lehman wrote: > And I want to be able to add a DropDownChoice to my form that is > something like this and have it automatically update Item.type in my > model: > > > > public class EditItemForm extends Form{ > >

FormComponentFeedbackIndicator usage

2007-09-24 Thread Clay Lehman
Hi, Can anyone point me to an example using FormComponentFeedbackIndicator? I have found examples using FormComponentFeedbackBorder, but they don't seem to have the same usage. From a post I saw on the old User's forum, I think a FormComponentFeedbackIndicator would better fit my needs, but I am

Form Feedback

2007-09-25 Thread Clay Lehman
Hey everyone, I am pretty new to Wicket, and I am having a hard time figuring out the best way to provide feedback if a form's validation fails. I want 2 things to be visible if there is a validation error: 1) list the validation error messages at the top of the form 2) red sta

RE: Form Feedback

2007-09-25 Thread Clay Lehman
)); FormComponentFeedbackIndicator inputIndicator = new FormComponentFeedbackIndicator("inputIndicator"); inputIndicator.setIndicatorFor(input); notice: the "*" between the span tags is not used as the actual output but rather for a preview if you open the .html file in a browser

DataTable question

2007-09-28 Thread Clay Lehman
Hey everyone, I am looking at examples on using DataTables and Repeaters, and I have a question... It looks like they insert default classes "headers" "even" and "odd" into the table header and rows, but I was wondering if there is an easy way for me to either set a property or create a sub

Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
by using a FormComponentPanel? Thanks for any advice!! -Clay Lehman

RE: Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
riginal Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 11:13 AM To: users@wicket.apache.org Subject: Re: Adding a label when I add a FormComponent. see icomponentborder -igor On 10/4/07, Clay Lehman <[EMAIL PROTECTED]> wrote: > > Hey Eve

RE: Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 2:09 PM To: users@wicket.apache.org Subject: Re: Adding a label when I add a FormComponent. put a container around your component and update that via ajax instead -igor On 10/4/07, Clay Lehman <[EMAIL PROTECTED]> wrote: > I implemented

Form.onComponentTagBody()

2007-10-05 Thread Clay Lehman
I want to create a subclass of Form and add and nested inside of the form. I tried onComponentTagBody(), but Form adds a hidden field at the top of a form, and when I put that inside my table, I get a NullPointerException in some cases. Does anyone have a suggest for how to insert a tag a

Customizing RadioChoice

2007-10-05 Thread Clay Lehman
I am trying to customize RadioChoice so that it puts the options into a nice table. I found setPrefix and setSuffix, but I cant just do setSuffix(" ") because I want to have a differenct prefix & suffix based on the index (for example create a new row in a table for every 4th option). getPrefi

RE: Customizing RadioChoice

2007-10-08 Thread Clay Lehman
Thanks for the suggestions Martijn! For now I will look into using the RadioGroup, but I like the idea removing final from the get*fix methods. =) This way someone could make MyRadioGroup, and have an option for topdown (default) lists or table-style lists, where they customize the width/shape

RE: Customizing RadioChoice

2007-10-08 Thread Clay Lehman
Actually, it looks like CheckBoxMultipleChoice already is this way -- it only has final on the set*fix() and not on the get*fix() methods -Clay >+1 - and please consider the same for the CheckBoxMultipleChoice. :-) > >Best regards, --- Jan. --

RE: Example source code?

2007-10-09 Thread Clay Lehman
SVN is super easy to use -- 1) Download TortoiseSVN (http://tortoisesvn.net/downloads) 2) make a folder (mine is "wicket-svn") 3) right click in the folder and go to SVN Checkout... 4) then put in the path to SVN and you will have all the code It's probably quicker and easier than any HTTP downlo

AutoCompleteTextField / combobox

2007-10-25 Thread Clay Lehman
Hey everyone, I need a combobox, where a user types in part of the entry, and the possible choices are looked up and presented for the user to select. The AutoCompleteTextField looks like it is close to what I want, but I was hoping there is a way to have an object behind the component's mod

RE: Link text

2007-11-08 Thread Clay Lehman
You might want to look at IComponentBorder -Clay -Original Message- From: Sam Hough [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 07, 2007 5:47 AM To: users@wicket.apache.org Subject: Re: Link text Anything similar for spitting something out _after_ the tag that the component is

RE: How to migrate onAfterRender/onBeforeRender from wicket 1.2.6 to 1.3

2007-11-12 Thread Clay Lehman
You can also use onRender() @Override protected void onRender() { getResponse().write("StuffBeforeComponent"); super.onRender(); getResponse().write("StuffAfterComponent"); } But IComponentBorder will do all that for you... -Clay -Original Message- From: Johan Compagner [mai

AbstractAjaxTimerBehavior question

2007-11-13 Thread Clay Lehman
I have a page with an AbstractAjaxTimerBehavior that I only use between button clicks. (The work after a button click takes a while and I use this behavior to update a progress bar while the work is happening) I was wondering if either a) Is there a way to restart a timer behavior afte

RE: how to call a javascript function?

2007-11-15 Thread Clay Lehman
Or you can just use an attribute modifier: yourform.add(new AttributeModifier("onsubmit", true, new Model("return youCoolFunction()"))); -Original Message- From: Dipu Seminlal [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 10:27 AM To: users@wicket.apache.org Subject: Re: ho

ModalWindow Positioning

2007-11-26 Thread Clay Lehman
Hey everyone, I was wondering if there is a way to specify ModalWindow's initial positioning. I have left the cookie name as null, so the postion is not remembered, but I would like to be able to set a nice default. I have tried postion:absolute, and setting TOP and LEFt, but it always seems

RE: What kind of link could I use?

2007-11-27 Thread Clay Lehman
You probably want to check out DownloadLink http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/marku p/html/link/DownloadLink.html -Clay -Original Message- From: yadubi [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 3:14 AM To: users@wicket.apache.org Subject

RE: JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink

2007-12-11 Thread Clay Lehman
I had a similar problem with showing a file download dialog from an ajax event, I got around it by doing target.appendJavascript(getMarkupId()+".submit()"); which submits the form, and then forwarding the user to the file in the onSubmit() method of the form. Hope this helps... -Clay -Origi

RE: Creating a form submit listener using IBehavior

2007-12-11 Thread Clay Lehman
Are you trying to submit the form from within an ajax event? If so you can simply do: target.appendJavascript(getForm().getMarkupId()+".submit()");//get the markupId for the form and append javascript to submit it In any case, it seems like form.submit() might do what you are looking for? -Cla