Lessons from Wicket Cookbook

2012-05-13 Thread Clint Checketts
While clearing out my drafts folder I found this. While reading through the Wicket cookbook by Igor ( http://www.packtpub.com/apache-wicket-cookbook/book) I noticed that I was learning a ton of new interesting stuff about the Wicket way of doing things, so I kept notes. This draft is from over a

Re: AjaxPayload equivalent in Wicket 1.4

2011-11-30 Thread Clint Checketts
ss#update(AjaxRequestTarget) so you can do: > AnotherClass#onEvent(ART t) {...; parent.update(t);...} > > On Wed, Nov 30, 2011 at 7:51 AM, Clint Checketts > wrote: > > I want to create a parent panel that will have several child panels. I'm > > making it so the pare

AjaxPayload equivalent in Wicket 1.4

2011-11-29 Thread Clint Checketts
nce the planned upgrade to 1.5 is a ways away for this project. Is there a solution without overriding anything in the application class? If it isn't possible, what is the minimum application class changes required? (WebRequestCycleProcessor?) Thanks, -Clint Checketts

Re: Can't Reset Form After DropDownChoice OnChange Handled

2011-11-21 Thread Clint Checketts
Yes, you can reset the form quite easily, with or without Ajax. I haven't read the rest of the thread, but if you just reset the object that the form is referencing all the fields would stay in sync and be 'reset'. -Clint On Mon, Nov 21, 2011 at 3:30 PM, Richard W. Adams wrote: > I've been doin

Re: How to build a hudson/jenkins like live log viewer?

2011-11-20 Thread Clint Checketts
I'd need to look at Tailer to see how it operates. But here is how I'd try it (it is quick and I don't like the markup, but we'll optimize it later: Create a panel that looks like so (we'll call it LoggingPanel): log contents next log call Add a self updating timer behavior so the panel check

Re: What is the difference between Model , PropertyModel,CompoundPropertyModel?

2011-11-10 Thread Clint Checketts
Model is like a box. It is just a container. Put your object in and get it back out. PropertyModel lets you put an object in the box and always lookup a value on that object, and set that value CompoundPropertyModel merely removes the string setting which value is pointing to the object and uses th

Re: Orders of CSS files

2011-11-04 Thread Clint Checketts
You can manually add in the autocomplete's CSS file yourself, and wicket won't re-add it in. That way you can add in your custom CSS after it. -Clint On Thu, Nov 3, 2011 at 9:43 AM, Илья Нарыжный wrote: > Hello, > > Is there some way to specify "final" CSS file which will be used by > browsers

Re: Community tools

2011-10-07 Thread Clint Checketts
So what is the best way (official? permanent?) to link to a previous response? In 6 months when someone has a similar question, what is the official way to link to previous answers? Equally, what is the best way to improve those answers if the answer 6 months back worked at that time, but now is i

Re: Display HTML in Label with validation

2011-09-16 Thread Clint Checketts
Add your own html header and footer tags when validating, () but don't include them when outputting the fragment. On Fri, Sep 16, 2011 at 6:05 AM, manuelbarzi wrote: > sure, but you can try customizing it. inside it you can find > interesting things like HtmlDocumentParser, which you can modify

Re: Ultra strange behaviour AjaxButton - Form

2011-09-04 Thread Clint Checketts
Are you using a custom object? A converter could be failing to do the conversion. As in you have a 'User' object tied to your field and Wicket doesn't know by default how to convert the text 'Bob' into a new User object. On Fri, Sep 2, 2011 at 11:02 AM, wrote: > > > > Thanks, this is the case. >

Re: CheckGroup updateModel + setrequired (Bug?)

2011-08-11 Thread Clint Checketts
Even if you can't upgrade the production version its worth testing it against the newer version of Wicket to see if the bug is resolved. On Thu, Aug 11, 2011 at 12:43 PM, delta wrote: > I can't, we must work with this version, because of the company. > > -- > View this message in context: > http

Re: dynamic DataTable

2011-08-07 Thread Clint Checketts
Sorry for taking 2 weeks. Here is a quick and dirty implementation: https://github.com/checketts/wicket-datasource-table It needs a bit of cleanup. 2 points that I like to note is 1) the use of a datasource instead of a java.sql.Connection will allow automatically opening and closing connections (

Re: RFC: Ten things every Wicket programmer must know?

2011-07-27 Thread Clint Checketts
My Top 10 (some already mentioned): 1. Use LoadableDetachableModels 2. DefaultModels get detached otherwise you need to detach your model manually (as Dan mentioned) 3. Setup components to pull in their data and state, typically via models. This includes pulling in a components isV

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Clint Checketts
Show the code for savedReportsDropDownList. I suspect you aren't using a Model. Also a couple of tweaks to your code. Your calls to 'setChoices' indicate a 'pushing data' approach. Like you are setting the lists in those components instead of using models there to. I think that is where you are hi

Re: Avoid doing lot of Ajax request

2011-07-23 Thread Clint Checketts
I'm not sure I understood your response. Are you saying you don't want to set the throttle for every link you do? If so, sub-class it and reuse your special subclass that always throttles. On Sat, Jul 23, 2011 at 2:06 AM, coincoinfou wrote: > But I have to throttle delay for a set of same type li

Re: Avoid doing lot of Ajax request

2011-07-22 Thread Clint Checketts
You can throttle events. See setThrottleDelay() on your behavior. On Fri, Jul 22, 2011 at 1:31 PM, coincoinfou wrote: > I have alot of "onmouseover" ajax request in one panel. How to avoid > queuing > all request when mouse move is too fast and ideally only do the last ? I > tried with a thread

Re: AjaxEventBehavior("onchange) and AjaxFormComponentUpdatingBehavior("onchange") on same DropDownChoice

2011-07-22 Thread Clint Checketts
Why not put everything in the AjaxFormComponentUpdatingBehavior? As in: dropDownChoice.add(new AjaxFormComponentUpdatingBehavior("onchange") { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug("New updated value: " + this.getCompo

Re: Forward to Bookmarkable

2011-07-21 Thread Clint Checketts
What do you mean by 'hide the url'? Do you mean obfuscate the URL? BybridUrlEncodingStrategy will let you display a bookmarkable URL that is stateful (so it isn't the actual bookmarkable page) For example: /mayapp/welcome.0 Note the .0 on the end. If the user's session expires, I believe it will

Re: AjaxLink onclick being called twice

2011-07-19 Thread Clint Checketts
So you click the link and the modal displays, you dismiss the modal, click the link again and nothing happens? Is the behavior consistent across browsers? -Clint On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com < wic...@geofflancaster.com> wrote: > Has anyone had any problems using an

Re: How to change the tag proceduced by

2011-07-17 Thread Clint Checketts
Mount your page to give it a custom URL. Not sure if you wanted an answer to your email subject since this email isn't related to the email subject(maybe I'm missing some previous messages and context?) -Clint On Sun, Jul 17, 2011 at 9:44 AM, mrblobby wrote: > I cant get this to work. The mav

Re: introducing wicket:for attribute

2011-07-08 Thread Clint Checketts
Great! Thanks for doing this! On Fri, Jul 8, 2011 at 11:22 PM, Igor Vaynberg wrote: > just implemented the wicket:for attribute. check out the javadoc here: > > > http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.ja

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Clint Checketts
I seem to recall the Maven guys recommending against periods in artifactIds. Can't find the link for the info though... maybe it was just soething they mentioned in the class. The purpose was to reduce confusion between artifactIds and groupIds. -Clint On Thu, Jun 30, 2011 at 11:14 AM, Igor Vayn

Re: WicketStuff artifacts naming strategy

2011-06-28 Thread Clint Checketts
gt; wicketstuff or wicket ? > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Tue, Jun 28, 2011 at 6:39 PM, Clint Checketts >wrote: > > > Why not just just use wicket- as the prefix? The groupId shows that it is > > org.wicketstuff. &

Re: WicketStuff artifacts naming strategy

2011-06-28 Thread Clint Checketts
Why not just just use wicket- as the prefix? The groupId shows that it is org.wicketstuff. -Clint On Tue, Jun 28, 2011 at 4:27 PM, Bruno Borges wrote: > I started to modify all JAR poms to have the wicketstuff- preffix. > > Is anybody against this? Why? > > :-) > > *Bruno Borges* > www.brunoborg

Re: Wickettester testing a given WizardStep

2011-06-22 Thread Clint Checketts
A wizard is a component, so you should be able to use startComponent for it. On Wed, Jun 22, 2011 at 4:00 AM, datazuul wrote: > I have a RegistrationPage containing a Wizard with 5 steps. > Now I want to write a WicketTester test for ONE specific WizardStep, let's > say step 4. > > How? > (I cou

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-15 Thread Clint Checketts
gt; > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > > > > On Tue, Jun 14, 2011 at 11:27 AM, James Carman > > wrote: > > > >> On Tue, Jun 14, 2011 at 11:25 AM, Clint Checketts > >> wrote: > >> > Is there a good reason (besides backwar

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread Clint Checketts
Is there a good reason (besides backwards compatiblity) that the objectautocomplete hasn't replaced the broken string based one in wicket-extensions? It seems like AutoComplete should behave as similarly to DropDownChoice as possible. As it currently is, IChoiceRenderer feels broken with it. -Cli

Re: CompoundPropertyModel for label?

2011-06-12 Thread Clint Checketts
You need to set the CompoundPropertyModel on the parent object. In your example the page. Try the following code: customer = new Customer(); customer.setFirstName("Jimmy"); customer.setLastName("Dean"); customer.getAddress().setStreet("123 Easy Street");

Re: FormComponent convertInput for children FormComponets

2011-06-02 Thread Clint Checketts
rst > glance it seems rather strange to have a form inside a > formcomponentpanel > > -igor > > On Wed, Jun 1, 2011 at 6:56 PM, Clint Checketts > wrote: > > I finally had a chance to create a quickstart and play with it. The issue > > happens when my FormCo

Re: FormComponent convertInput for children FormComponets

2011-06-01 Thread Clint Checketts
2011 at 11:16 AM, Clint Checketts wrote: > I'll validate my code again. It is running on Wicket 1.4.1 so maybe it was > linked to the older version. > > Thanks everyone for the help, its good to know that it is working correctly > for others. > > -Clint > > On Thu

Re: the html pages showing traces that we used wicket, is it a problem

2011-05-22 Thread Clint Checketts
You can override the RequestCycleProcessor to swap that out. Not the simplest change, but the hook is there. I'd say that you don't really have anything to worry about though. -Clint On Sun, May 22, 2011 at 5:53 AM, meduolis wrote: > hariharansrc do not worry about those traces of wicket usage

Re: Customize Validator Message based on Dynamic Variable

2011-05-20 Thread Clint Checketts
You could override the variablesMap() method to add in your values that the message in the properties file contains: Similar to the message: '${input}' isn't a valid widget. -Clint On Fri, May 20, 2011 at 2:34 PM, eugenebalt wrote: > In the Validators we override the method getResourceKey() t

Re: FormComponent convertInput for children FormComponets

2011-05-19 Thread Clint Checketts
Foo foo = a_object.getConvertedInput(); >if (foo != null) { >fooList.add(foo); >} >} >}); >setConvertedInput(fooList); > } > > All the children validators are called and their con

Re: FormComponent convertInput for children FormComponets

2011-05-17 Thread Clint Checketts
est regards > Sven > > > On 05/16/2011 11:35 PM, Clint Checketts wrote: > >> I have a FormComponentPanel that contains multiple child formcomponent. >> The purpose of this panel is to be able to add in several cihldren >> dynamically. The end model is supposed to b

Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread Clint Checketts
If the ChoiceRenderer ID isn't unique or it has trouble matching it with the selected value, you could get this problem. On Mon, May 16, 2011 at 2:21 PM, lucast wrote: > Dear Forum, > I have yet another question about PropertyModel not binding to an object > field but this time using DropDownCh

FormComponent convertInput for children FormComponets

2011-05-16 Thread Clint Checketts
I have a FormComponentPanel that contains multiple child formcomponent. The purpose of this panel is to be able to add in several cihldren dynamically. The end model is supposed to be the list from all the children component. I get the value in my convertInput() method by iterating over all the c

Re: MarkupNotFoundException strange behavior

2011-05-16 Thread Clint Checketts
This happens because you don't have an HTML file for your page. (Assuming you are extending WebPage). You'll need to tell more about your setup and when you are extending to really pinpoint the issue. EmployeeDedicationLoad extends WebPage, right? -Clint On Mon, May 16, 2011 at 1:24 PM, Tito

Re: URL

2011-05-16 Thread Clint Checketts
Mount it with HybridUrlCodingStrategy On Monday, May 16, 2011, Abid K. wrote: > I have a page that's mounted and when accessing the page the url is: > http://www.something.com/admin/userAdd > > When posting a form the url changes to: > http://www.something.com/admin/userAdd/wicket:interface/:3:da

Re: Create Datatable with empty columns and rows

2011-05-15 Thread Clint Checketts
I'd recommend using a listview and use CSS to lay it out as you mentioned. A data table is really useful when dealing with columnar data that needs pagination and sorting. On Saturday, May 14, 2011, malebu wrote: > http://apache-wicket.1842946.n4.nabble.com/file/n3523546/Screen_shot_2011-05-14_at

Re: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-14 Thread Clint Checketts
You could try a helper method that allows indexed access. As in: userAccount. *membershipsAsList*.0.acceptedTerms I haven't tried it and guaranteeing the ordering would need to be accounted for. But its a potential direction. -Clint On Fri, May 13, 2011 at 3:04 PM, Sven Meier wrote: > A set

Re: TextField not getting the value after a validation eror

2011-05-13 Thread Clint Checketts
I'm not sure I understand the steps that cause the problem. Case 1 1- A user opens the page 2- The user click the link, updating the value textfield 3- User submits the form, no validation error occurs, all is well. Case 2- 1- user opens page 2- user submits form 3- required error apears, field

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Clint Checketts
Try a HybridUrlEncodingStrategy for your mount On Wednesday, May 11, 2011, Carlo Camerino wrote: > Hi There, > > I'm mounting bookmarkable pages in the Wicket Application. For example, > > mount("index", IndexPage.class); > mount("confirmPage", ConfirmPage.class); > > I'm quite successful when us

Re: Separate log files (tomcat, hibernate, wicket, etc)

2011-05-06 Thread Clint Checketts
A hint to direct you: setup different 'categories' based on package you want to split it out on, then setup a separate appender for each of those categories to go to your separate files. I don't have an example for you though. Maybe this: https://wiki.base22.com/display/btg/How+to+setup+Log4j+in+

Re: Initializing new thread in WicketApplication.init()

2011-05-03 Thread Clint Checketts
Also be sure to kill your thread in the application's onDestroy() otherwise old threads will hang around if you do redeploys, but don't bounce the JVM. You probably already thought of that. My scars are still fresh... -Clint On Tue, May 3, 2011 at 3:37 PM, Henrique Boregio wrote: > Thanks Mar

Re: DataTable's view does not always update

2011-05-02 Thread Clint Checketts
The reason for the 404 is the Websphere is checking for a file, then intending to filter before and after serving up the file. Since it finds no file to serve, it returns the 404. -Clint On Mon, May 2, 2011 at 9:33 AM, D D wrote: > FYI. I added the index.htm file to my project and everything no

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Clint Checketts
dity (even manually running validators if you like) and still log your own feedback messages. -Clint -- Clint Checketts Sent with Sparrow On Monday, May 2, 2011 at 1:47 PM, Alec Swan wrote: > Igor, we would like have access to the Wicket page model while > processing the custom form subm

Re: How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Clint Checketts
s, availableSetsList, > targettedSetsList); >} > >@Override >protected void onError(AjaxRequestTarget target, Form form) { > } > }; > > addBtn.setOutputMarkupId(true); > > add(addBtn); > > > -Original Message- > From: Clint Checketts

Re: DataTable's view does not always update

2011-05-01 Thread Clint Checketts
Make sure that sendredirect.compatibility property is set to false or deleted. It causes problems. You didn't say if it had originally be set or not though, lets make sure it didn't get left on at some point. Watch the URL, if you typed in http://localhost/myApp and it renders as http://localhost/

Re: How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Clint Checketts
> > I thought validation would only occur when the user submits the form but it > appears to be fired off whenever the user presses the 'add' button. Is this > to be expected? > > > -Original Message- > From: Clint Checketts [mailto:checke...@gmail.com] > Sen

Re: How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Clint Checketts
Lets see the code about 'adding elements by pressing on a button'. The 'getValue()' method is returning the value from the list box's HTTP submitted values, if the add button is submitting values via ajax or some other means then it may need a different approach. -Clint On Sun, May 1, 2011 at 8:

Re: Running Wicket under WebSphere

2011-05-01 Thread Clint Checketts
I heard that Webspere gets confused with a filter as the endpoint. Try WicketServlet. I think there also is a patch for more recent Websphere versions. On Sunday, May 1, 2011, drf wrote: > I should add that we are using Spring 3, which uses ContextLoaderListener, > not ContextLoaderServlet > -- >

Re: Can't get Javascript filtering to work

2011-04-29 Thread Clint Checketts
I've seen folks get a misconfigure like this when they make the call in the application's constructor instead of the init() method. On Friday, April 29, 2011, Martin Grigorov wrote: > Hi, > > On Thu, Apr 28, 2011 at 9:50 PM, Alec Swan wrote: >> Thanks, Andrea. I was running in DEVELOPMENT mode a

Re: DataTable's view does not always update

2011-04-29 Thread Clint Checketts
he only 2 things in the panel are the AjaxFallbackLink and > Label) > > Clicking on the link would not update the counter. > > > > How do I get to to that "Wicket debug panel"? - I'm pretty new to Wicket. > > Since I'm not using a form I assume that f

Re: Customized AjaxPagingNavigator to highlight selected page number

2011-04-28 Thread Clint Checketts
bclass the AjaxPagingNavigator and override the newPagingNavigationLink() method. In there you could add a behavior to do your custom styling or set the setBeforeDisabledLink() and setAfterDisabledLink() methods to insert in the markup you require. -Clint -- Clint Checketts Sent with Sparrow On Wednesday, Apri

Re: DataTable's view does not always update

2011-04-28 Thread Clint Checketts
m updating underlying models (you would have still seen the onBeforeRender called in this case). You'd notice this behavior if the console had a message about 'unrendered feedback message' -Clint -- Clint Checketts Sent with Sparrow On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro

Re: POST path via Ajax erratically invalid when used with #

2011-04-28 Thread Clint Checketts
I don't know which method, but I am curious which browser you are seeing it in. On Thu, Apr 28, 2011 at 4:59 PM, Jeremy Levy wrote: > I've noticed that in 1.4.17 in some circumstances when using Wicket to POST > data over AJAX the path it's POSTing to tries to include the value after # > in the

Re: Specific redirect after session timeout

2011-04-25 Thread Clint Checketts
Have you tried a HybridUrlEncodingStrategy? That one is pretty resilient to session restarts. -Clint On Mon, Apr 25, 2011 at 2:51 AM, Peter Karich wrote: > Hi there, > > is it possible to grab the parameters (and the path) of the url and > redirect the > user automatically back to that page i

Re: Forcing parent CSS to be contributed after all child CSS

2011-04-23 Thread Clint Checketts
I recall reading an article once noting that you could contribute the CSS file noted in the parent class again in the child component and Wicket is smart enough to not duplicate the contribution, but it still forces the CSS file to appear later. You also may consider changing the parent CSS rules

Re: org.apache.wicket.WicketRuntimeException: No get method defined for class: class java.lang.String expression: userName;

2011-04-18 Thread Clint Checketts
The error is in the model you gave your form. Since you aren't explicitly stating a model for the DDC, it is assuming a CompoundPropertyModel on the parent form. I suspect your form declaration is something like new Form("form",new CompoundPropertyModel(getUserName())) It should be something li

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-18 Thread Clint Checketts
Your issue with the generics is you need to tell it that 'T extends Indetifiable', or take it out entirely if you are going to explicitly tell it that you are using the Parent class. Also feel free to make the argument match what your load method requires. The article could be referencing code tha

Re: Mixing static with dynamic items in the same list

2011-04-17 Thread Clint Checketts
First of all, avoid using a label to generate html. Put the repeater on the LI element and add a link. Looks like you want an ExternalLink. HTML -- > > --- > > >First static item > > >Second static item >

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-17 Thread Clint Checketts
The 'implicit super constructor' warning means that in your constructor you need to call 'super()' The 'complains on type T' part I'd need a little more info. Feel free to post the exact lines of code. -Clint On Sat, Apr 16, 2011 at 2:21 AM, lucast wrote: > However, when I try to extend the Ab

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-13 Thread Clint Checketts
Have you tried explicitly calling .detach() on the LDM? The net getObject() call should force the load() method to get called again. -Clint On Wed, Apr 13, 2011 at 7:16 AM, lucast wrote: > Hi there, > I have a problem reloading/refreshing Parent object P from inside an Ajax > call. > > The con

Re: ModalWindow detach/serialize crashes wicket app

2011-04-01 Thread Clint Checketts
Do you have a propetymodel with the session as its object? On Friday, April 1, 2011, Pedro Santos wrote: > looks like your page is referencing session or pagemap somehow > > On Fri, Apr 1, 2011 at 4:15 PM, Russell Morrisey < > russell.morri...@missionse.com> wrote: > >> Guys, >> >> I'm having an

Re: StatelessForm redirect

2011-03-29 Thread Clint Checketts
The remaining stack trace seems strange. But ignoring that and focusing on setting the 'action' attribute, in the webmarkup container that you use (in stead of a form component) Do something like: @Override onComponentTag(...){ tag.put("action",RequestCycle.get().urlFor(SearchResultspage.class)

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Ah, the trouble is in your NPE: java.lang.NullPointerException at index.AbcPage.validateParams( AbcPage.java:258) As long as that exception remains unhandled, the pages won't hand off. The Form has to resubmit back to the page the form lives on since that is where the form listener is wait

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Wicket uses a 2 step render : http://wicket.apache.org/apidocs/1.4/org/apache/wicket/settings/IRequestCycleSettings.html Have you tried using setRenderStrategy(ONE_PASS_RENDER ONE_PASS_RENDER) in your application? -Clint On Mon, Mar 28, 2011 at 7:37 PM, lovewicket wrote: > Yes. I have the fol

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Do you get the same error when mounting the page using a QueryStringEncodingStrategy? On Monday, March 28, 2011, lovewicket wrote: > It looks like onSubmit, request first comes to the current page and then it > gets forwarded to the results page. I am not sure why this is the case. In > stateless

Re: Set all form fields to output markup id automatically

2011-03-27 Thread Clint Checketts
If this is specific to a particular form you could use A formcompoment visitor to iterate over each child and call setOutputMarkupId On Sunday, March 27, 2011, Bruno Borges wrote: > I was looking for a better way (optimized too) to achieve this, considering > that I'm using Scala. > > I admit I'm

Re: Page to select something and use the selection in another page

2011-03-27 Thread Clint Checketts
Could the second page be a modal window? Or do you require that it is a separate browser window? On Sunday, March 27, 2011, fernandospr wrote: > Hi, > > > I need to build a page (1) where the user will have a form and one of the > inputs will have a button that will open another page (2) where he

Wicket Cookbook Questions - ConversionExceptions (pg 30)

2011-03-26 Thread Clint Checketts
I'm really enjoying Igor's Wicket Cookbook(hooray for ebooks and instant delivery!) Instead of asking Igor directly, I figure this mailing list is a better forum. There is an example (page 30) like the following: ConversionException e

Wicket mentioned at Server Side Symposium

2011-03-21 Thread Clint Checketts
Take the following with a grain of salt since I was told by a friend, of a friend that attended the Server Side Symposium last week. I don't have any of the details either so bear with me. Apparently in a session related to 'corporations using open source' the speaker asked if any companies were u

Re: Replacing markup generated by a Behavior

2010-10-28 Thread Clint Checketts
, Oct 28, 2010 at 5:28 PM, Jeremy Thomerson wrote: > On Thu, Oct 28, 2010 at 5:19 PM, Clint Checketts >wrote: > > > I have a Visitor that iterates through my forms and adds a Behavior that > > writes out to the Response a and any feedback messages that belong > to > > t

Replacing markup generated by a Behavior

2010-10-28 Thread Clint Checketts
I have a Visitor that iterates through my forms and adds a Behavior that writes out to the Response a and any feedback messages that belong to that component. This is really great because it gives me inline feedback panels. Here is the problem: if the component is ever updated via ajax, the compon

Re: How can I reload HTML in app engine?

2010-10-21 Thread Clint Checketts
The instructions that I followed were here: http://agilewombat.blogspot.com/2010/01/wicket-on-google-app-engine.html Snippet from that post below. Note how he creates his own RequestCycle that enables modification watching when in DevelopmentMode: class MyWebRequestCycle extends WebRequestCycle {

Conditional Validation (Save versus Submit)

2010-09-15 Thread Clint Checketts
I have a form with 2 buttons: Save and Submit. If the user hits Save I want to bypass my validations, but still update the underlying model objects so i can persist them in a partially completed state, then have the full validation run when the Submit button is clicked. If I call setDefaultFormPro

Re: AJAX error on IE8 & Win 7

2010-08-31 Thread Clint Checketts
I'm currently wrestling with a similar sounding bug with AjaxChoiceComponentUpdatingBehaviors and Radio boxes and IE7. I'll try to get it simplified down to a quickstart. -Clint On Tue, Aug 31, 2010 at 10:42 AM, Igor Vaynberg wrote: > most likely you have a problem with your markup, eg a div in

Re: Extending RequestLogger

2010-05-23 Thread Clint Checketts
0 at 2:24 PM, Igor Vaynberg wrote: > yeah, its strange that an interface depends on an inner, albeit public > static class of another concrete class. please add a jira issue. > > -igor > > On Fri, May 21, 2010 at 10:47 AM, Clint Checketts > wrote: > > I'm trying

Extending RequestLogger

2010-05-21 Thread Clint Checketts
I'm trying to implement my own RequestLogger but have hit a snag. As an initial implementation i just copied the existing RequestLogger completely (instead of extending it) and am editting it to do what I need. There are 2 snags that I have run into: 1) SessionData and RequestData are inner class

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Clint Checketts
I use the AjaxEditableLabel and related components and I've subclassed them overriding the onBeforeRender adding a call that checks if it should be in edit mode, then its just a matter of setEnabled(false) to keep the AjaxEditableLabel as a label. -Clint On Wed, Dec 2, 2009 at 3:24 AM, Pieter D

Re: wicket + jdbc template app

2009-11-19 Thread Clint Checketts
My Wicket app I maintain only uses the JdbcTemplate class from Spring. We don't use any hibernate or other ORM framework. I don't have any code I can give, but I can answer any questions. How far have you gotten? -Clint On Thu, Nov 19, 2009 at 7:23 AM, James Carman wrote: > Are you saying you

Re: WebRequestCycle is creating a HTTP 400/Bad request

2009-10-21 Thread Clint Checketts
I've been hitting a similar bug with MixedParamUrlCodingStrategy and Stateless forms. I haven't had a chance to create a sample yet so I just changed encoding strategies for the time being. I believe your bug is similar to the one I''m hitting. I'm using Wicket version 1.3.7. I'll try to post a si

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Clint Checketts
I'm guessing they are trying to limit users from taking a test in one window and seeing the previous answers in another. -Clint On Tue, Sep 29, 2009 at 12:29 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > could'nt he just have a page map with a size of 0? Of course reloads > wou