Enabling compoents based on Wicket URI path?

2008-07-02 Thread Michael Mehrle
I need to hide a textfield based on the URI path of the page that's being visited. For instance: http://www.mysite.com/app/foo (hide the field) http://www.mysite.com/app/bar (hide the field) http://www.mysite.com/app/* (any other path, show the field). I don't want to use the HTTP URI

RE: Enabling compoents based on Wicket URI path?

2008-07-02 Thread Michael Mehrle
Anybody? I couldn't find anything digging around in the archives... -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 11:13 AM To: users@wicket.apache.org Subject: Enabling compoents based on Wicket URI path? I need to hide a textfield

RE: Enabling compoents based on Wicket URI path?

2008-07-02 Thread Michael Mehrle
show or hide a component, right? Just use an IndexedParamCodingStrategy. Does that make sense, or do you need more details? On Wed, 2008-07-02 at 11:12 -0700, Michael Mehrle wrote: I need to hide a textfield based on the URI path of the page that's being visited. For instance: http

RE: Enabling compoents based on Wicket URI path?

2008-07-03 Thread Michael Mehrle
Not to come across snide but of course I know how to set a component to invisible. I need to know how to get the current page URL/URI as the page loads - remember that the navigator is only a panel and can be inside of many pages. Is this more clear? Thanks for trying to help. Michael

RE: Enabling compoents based on Wicket URI path?

2008-07-03 Thread Michael Mehrle
() -igor On Thu, Jul 3, 2008 at 7:13 AM, Michael Mehrle [EMAIL PROTECTED] wrote: Not to come across snide but of course I know how to set a component to invisible. I need to know how to get the current page URL/URI as the page loads - remember that the navigator is only a panel and can be inside

Hiding table columns in DataViews?

2008-07-11 Thread Michael Mehrle
I build a table like this: table width=100% cellpadding=0 cellspacing=0 border=0 tr td class=pad5 bldwicket:message key=dateTitle//td tdwicket:message key=timeTitle//td tdwicket:message

RE: Hiding table columns in DataViews?

2008-07-14 Thread Michael Mehrle
and friends. Martijn On Sat, Jul 12, 2008 at 4:19 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I build a table like this: table width=100% cellpadding=0 cellspacing=0 border=0 tr td class=pad5 bldwicket:message key=dateTitle//td

Non breaking spaces in ListView

2008-07-14 Thread Michael Mehrle
I have a ListView which I have populate a table. Now, some columns are sometimes empty and I'm trying to set the Label that occupies it with an non-breaking space (nbsp;). However, for some reason the Label prints it verbose . If I set the Label to empty the column gets skipped altogether, messing

RE: Non breaking spaces in ListView

2008-07-14 Thread Michael Mehrle
-igor On Mon, Jul 14, 2008 at 11:04 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a ListView which I have populate a table. Now, some columns are sometimes empty and I'm trying to set the Label that occupies it with an non-breaking space (nbsp;). However, for some reason the Label prints

RE: Hiding table columns in DataViews?

2008-07-14 Thread Michael Mehrle
: Hiding table columns in DataViews? http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage via http://www.google.com/search?q=wicket+datatable+example On Mon, Jul 14, 2008 at 1:26 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Okay

RE: Hiding table columns in DataViews?

2008-07-14 Thread Michael Mehrle
it to the list. So if I did not want to show Cell Phone, I would simply not add the PropertyColum(new Model(Cell Phone), cellPhone) to columns. On Mon, Jul 14, 2008 at 2:31 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not to be thick, but where does this show me how to hide table headers? All I see

Update problem with AutoCompleteTextField

2008-01-28 Thread Michael Mehrle
Hi guys - started working with Wicket a few weeks ago and I'm new to this list. BTW, I haven't had that much fun coding client/server stuff in a long time - never liked JSP/JSTL, etc. much. Anyway, I'm running into a little update problem with AutoCompleteTextField - for some reason when I

Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
This is a simple question - I have do make an http call to an external website inside my DAO - it's like a webservice call. The resulting XML then needs to be parsed and used to populate my Wicket form. I was thinking of using the Jakarta Commons HttpClient to retrieve the XML, but was wondering

RE: Update problem with AutoCompleteTextField

2008-01-28 Thread Michael Mehrle
Never mind guys, I screwed up feeding the data - it's working perfectly now. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 1:57 PM To: users@wicket.apache.org Subject: Update problem with AutoCompleteTextField Hi guys - started

RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
). Martijn On 1/29/08, Michael Mehrle [EMAIL PROTECTED] wrote: Yeah, that's my plan - turn the XML into a value bean and use it as my form model. However, my question is more related to what happens before that: Make an HTTP call to the external website, retrieve the XML and *then* parse it. Again

RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
(http, webservice, whatever) returns some kind of business object, it'll be very easy to bind it to form values. MyObject object = service.find(); add(new TextField(name, new PropertyModel(object, name)); make sense? On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED] wrote

RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
that without any knowledge of said library). Martijn On 1/29/08, Michael Mehrle [EMAIL PROTECTED] wrote: Yeah, that's my plan - turn the XML into a value bean and use it as my form model. However, my question is more related to what happens before that: Make an HTTP call to the external

Passing list of POJOs to AutoCompleteTextField?

2008-01-29 Thread Michael Mehrle
I have a working test page containing an AutoCompleteTextField. Thus far the data feeding it has been an Iterator of strings which is being passed to its overridden getChoices method. So far so good. What I need to do now is to pass in an Iterator of POJOs instead and have the

RE: Passing list of POJOs to AutoCompleteTextField?

2008-01-29 Thread Michael Mehrle
AM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a working test page containing an AutoCompleteTextField. Thus far the data feeding it has been an Iterator of strings which is being passed to its overridden getChoices method. So far so good. What I need to do now is to pass in an Iterator

AJAX: form components not being updated

2008-01-29 Thread Michael Mehrle
I've got something similar to this call: myAutoCompleteTextField.add(new AjaxFormSubmitBehavior(form, onchange) { protected void onSubmit(AjaxRequestTarget target) { String selection = myAutoCompleteTextField.getModelObjectAsString(); MyPOJO backingModel =

RE: AJAX: form components not being updated

2008-01-29 Thread Michael Mehrle
Anyone? All I need to know is how to assign a generated model to my form components. The original (empty) one is a CompoundPropertyModel. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 3:58 PM To: users@wicket.apache.org Subject

RE: AJAX: form components not being updated

2008-01-30 Thread Michael Mehrle
getModel().setObject(foo); on the component that is housing the CompoundPropertyModel instance... -igor On Jan 29, 2008 5:01 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Anyone? All I need to know is how to assign a generated model to my form components. The original (empty) one

Delaying AutoCompleteTextField by n characters?

2008-02-04 Thread Michael Mehrle
What is the preferred way of delaying the Javascript call to getChoices() until a certain amount of characters have been types in? I guess I could just put in some kind of if condition that checks the input string's length, but I was wondering if there's a more elegant way of doing this. Thanks!

RE: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Michael Mehrle
Anybody? Was hoping for a tip or two ;-) Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 3:55 PM To: users@wicket.apache.org Subject: Delaying AutoCompleteTextField by n characters? What is the preferred way of delaying

RE: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Michael Mehrle
on time not on number of characthers, for that you need to roll your own javascript -igor On Feb 4, 2008 3:54 PM, Michael Mehrle [EMAIL PROTECTED] wrote: What is the preferred way of delaying the Javascript call to getChoices() until a certain amount of characters have been types in? I guess I

RE: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Michael Mehrle
Barnum 360 Works http://www.360works.com 415.865.0952 On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote: shouldnt the pojo be availble from getmodelobject()? -igor On Jan 29, 2008 11:55 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I could - if it was a simple matter of extracting

RE: Passing list of POJOs to AutoCompleteTextField?

2008-02-06 Thread Michael Mehrle
into jira for this. -igor On Feb 5, 2008 4:38 PM, Michael Mehrle [EMAIL PROTECTED] wrote: That's exactly what I wound up doing. I wrote my custom renderer that grabs the name field of my POJO for rendering. Of course that is what I'm getting back from getModelObjectAsString(). It's a work-around

TabbedPanel tab names

2008-02-11 Thread Michael Mehrle
Assuming the typical tabbed panel example below - is there a good way to grab the tab name from the page's properties file? What I need to do is to internationalize the tab name. I guess I could do my own call to grab it from the classpath + the property file name. Was hoping List tabs = new

StringResourceModel - how to pass method call instead of bean

2008-02-11 Thread Michael Mehrle
:59 AM, James Carman [EMAIL PROTECTED] wrote: Have you tried StringResourceModel? On 2/11/08, Michael Mehrle [EMAIL PROTECTED] wrote: Assuming the typical tabbed panel example below - is there a good way to grab the tab name from the page's properties file? What I need to do

RE: TabbedPanel tab names

2008-02-11 Thread Michael Mehrle
StringResourceModel? On 2/11/08, Michael Mehrle [EMAIL PROTECTED] wrote: Assuming the typical tabbed panel example below - is there a good way to grab the tab name from the page's properties file? What I need to do is to internationalize the tab name. I guess I could do my own call to grab

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
- how to pass method call instead of bean Michael Mehrle wrote: One more question - what do you refer to with 'late binding' - I assume the value would be computed 'late' in the process? Please elaborate or send me a pointer. ... Alternatively, I you need late binding put new

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
Well, the reason why was I didn't know that call existed ;-) Of course I looked at the JavaDoc, but the examples there didn't show this scenario. Thanks a LOT for your reply - this addresses exactly what I'm looking for :-) One more question - what do you refer to with 'late binding' - I assume

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Michael Mehrle
Didn't see a response - does anyone know how to do this? -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:53 PM To: users@wicket.apache.org Subject: StringResourceModel - how to pass method call instead of bean I actually have a follow

Tab switching events?

2008-02-20 Thread Michael Mehrle
I have a TabbedPanel (a) that contains two panels which in turn each contain one TabbedPanel (b) and (c). When I switch a tab in (b) or (c) I need to retain the tab selection of (a) in their link logic. I am currently overriding newLink() for all panels using IndexedParamUrlCodingStrategy. One

div close tag error

2008-02-28 Thread Michael Mehrle
I have div like this: div wicket:id=somePanel a wicket:id=someModal wicket:message key=label.link / /a /div My code is: SomePanel somePanel - new SomePanel(somePanel, someModel); .. somePanel.add(new AjaxLink(openModal) { .. } I keep getting an error

RE: div close tag error

2008-02-28 Thread Michael Mehrle
=someModal is missing a Michael Mehrle wrote: I have div like this: div wicket:id=somePanel a wicket:id=someModal wicket:message key=label.link / /a /div My code is: SomePanel somePanel - new SomePanel(somePanel, someModel); .. somePanel.add(new AjaxLink(openModal

RE: Resource keys for custom Validators?

2008-03-04 Thread Michael Mehrle
file. That makes it the app-level default. Yuesong -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 1:53 PM To: users@wicket.apache.org Subject: Resource keys for custom Validators? If I write my own MyValidator for a field I can place my

Sort order in DataView with ListDataProvider

2008-03-07 Thread Michael Mehrle
I'm passing a ListDataProvider when creating a DataView that shows rows of comments. Each comment has a name, a date, and a message. I am creating the ListDataProvider with an ArrayList, which also has been sorted with a Comparator on the date. For whatever reason on the final page my comments

RE: Sort order in DataView with ListDataProvider

2008-03-07 Thread Michael Mehrle
with ListDataProvider paste your code -igor On Fri, Mar 7, 2008 at 2:03 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm passing a ListDataProvider when creating a DataView that shows rows of comments. Each comment has a name, a date, and a message. I am creating the ListDataProvider

RE: Sort order in DataView with ListDataProvider

2008-03-08 Thread Michael Mehrle
Any idea as to why my sort order is out of whack? Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 2:44 PM To: users@wicket.apache.org Subject: RE: Sort order in DataView with ListDataProvider Okay - some needed input first

The old setOutputMarkupId() problem

2008-03-08 Thread Michael Mehrle
I'm getting that error although all my panels that are being updated have the id set. I assume I don't have to add call setOutputMarkupId() on any components inside of the parent panel that I am updating? This stuff keeps happening often and is a huge timesink - wished there was a more elegant

getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
I've got a custom TextArea which overrides getConverter(), however for some reason that method never gets called. getConverter() returns an implementation of IConverter - it all looks pretty basic. Is there anything special I have to do for getConverter() to be called? By the way I added the

RE: getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
] Sent: Thursday, March 13, 2008 12:12 PM To: users@wicket.apache.org Subject: Re: getConverter() in TextArea not being called you have to set the type either via constructor arg or a call to settype -igor On Thu, Mar 13, 2008 at 12:08 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a custom

Converter gets called before Validator?

2008-03-13 Thread Michael Mehrle
I read the update docs and at this time assume that my component's Validator gets called AFTER the Converter. Is that correct for 1.3? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
,model,mytype.class); yes, alternatvely you can override convertvalue() -igor On Thu, Mar 13, 2008 at 12:22 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Thanks for help (again), Igor :-) However, I'm not sure I understand - could you please give me a code fragment? BTW, I just dug around

RE: How to pre-select a DropDownChoice

2008-03-14 Thread Michael Mehrle
a DropDownChoice Set the model of the DDC to the value you want to have selected. On Thu, Mar 13, 2008 at 7:53 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I feel silly asking this, but I can't figure it out. I need to set my DropDownChoice component to the id I'm passing into my page via

Linking radio buttons to textfield model update

2008-03-17 Thread Michael Mehrle
I've got a group of seven radio buttons, some of which are supposed to be correlated with a textfield. Meaning, when I select a particular radio button the textfield on its right side is supposed to get a cursor focus. Similarly, whenever I change my radio button selection, I need any previously

RE: Linking radio buttons to textfield model update

2008-03-18 Thread Michael Mehrle
Anyone? I also forgot to mention that three of the radio buttons are associated with a textbox, but two are not (radio buttons without textfields). Would love to know how to build this and properly assign the model. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED

Linking radio buttons to textfield model update

2008-03-19 Thread Michael Mehrle
to textfield model update RadioChoice supports wantOnSelectionChangedNotification() you can use that to get a callback whenever a new option is selected, then call clearinput() on whatever textbox needs to be made blank -igor On Tue, Mar 18, 2008 at 1:36 PM, Michael Mehrle [EMAIL PROTECTED] wrote

RE: Linking radio buttons to textfield model update

2008-03-19 Thread Michael Mehrle
Hello? Anyone? -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 12:48 PM To: users@wicket.apache.org Subject: Linking radio buttons to textfield model update Okay, this helps, but how do I link different components to each radio button

Linking radio buttons to textfield model update

2008-03-19 Thread Michael Mehrle
to textfield model update RadioChoice supports wantOnSelectionChangedNotification() you can use that to get a callback whenever a new option is selected, then call clearinput() on whatever textbox needs to be made blank -igor On Tue, Mar 18, 2008 at 1:36 PM, Michael Mehrle [EMAIL PROTECTED] wrote

AjaxEventBehavior never being called

2008-03-20 Thread Michael Mehrle
I've got an inner subclass of Radio: private class FooRadio extends Radio { public FooRadio (String id, IModel model) { super(id, model); setOutputMarkupId(true); add(new AjaxEventBehavior(new

RE: AjaxEventBehavior never being called

2008-03-20 Thread Michael Mehrle
Never mind - not sure what I was thinking needed to name the JS event properly. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:06 PM To: users@wicket.apache.org Subject: AjaxEventBehavior never being called I've got

How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
I have a WMC that I added an AjaxEventBehavior(onclick) to. Inside I want to set the focus to a particular textfield - how would I do that? I have seen some techniques on how to do this on page load, but this is AJAX so I need something dynamic. Anyone solved this problem before? Michael

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
] Sent: Thursday, March 20, 2008 3:28 PM To: users@wicket.apache.org Subject: Re: How to set focus to a textfield inside AJAX why cant you do this with javascript without ajax?? seems like a huge waste to have a server callback just to set focus -igor On Thu, Mar 20, 2008 at 3:14 PM, Michael Mehrle

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
('+textfield.getmarkupid()+').focus();})); -igor On Thu, Mar 20, 2008 at 3:51 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Well, it doesn't necessarily have to happen in there. What I need to do is to bind a Radio component to a TextField component. When the Radio gets clicked I want the focus in it's

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
textfield.setoutputmarkupid(true); radio.add(new behavior() { oncomponenttag(tag) { tag.put(onclick, getelementbyid('+textfield.getmarkupid()+').focus();})); -igor On Thu, Mar 20, 2008 at 3:51 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Well, it doesn't necessarily have to happen in there. What I need

RE: No AjaxRadioChoice?

2008-03-21 Thread Michael Mehrle
@wicket.apache.org Subject: Re: No AjaxRadioChoice? On Thu, 20 Mar 2008, Michael Mehrle wrote: How come there is no AjaxRadioChoice? I would like to have my form updated cleared when one of my radio buttons is selected. What's the best way of doing this? Add a suitable AjaxBehavior

File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
According to this old threat, the use of a file upload field inside a wicket Ajax modal was not possible: http://tinyurl.com/3e4z35 Has anyone found a work-around to this (besides placing the field into a regular page ;-) ? Thanks! Michael

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
upload is not possible i think. Or do you have examples where they do that? On Mon, Mar 24, 2008 at 6:08 PM, Michael Mehrle [EMAIL PROTECTED] wrote: According to this old threat, the use of a file upload field inside a wicket Ajax modal was not possible: http://tinyurl.com/3e4z35 Has anyone

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
Subject: Re: File upload field inside of a modal? usually it is done with a hidden iframe which does the POST -igor On Mon, Mar 24, 2008 at 12:05 PM, Michael Mehrle [EMAIL PROTECTED] wrote: No, I don't have an example - looking for a way to make it work... Michael -Original Message

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
of a modal? via javascript: form.submit(); -igor On Mon, Mar 24, 2008 at 2:03 PM, Michael Mehrle [EMAIL PROTECTED] wrote: That sounds worthwhile exploring. How do I trigger a POST request in an iFrame from within a Wicket modal window? Thanks again for your input. Michael

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
://www.phpletter.com/Demo/AjaxFileUpload-Demo/ we cannot use jquery in wicket core projects directly because it is not properly namespaced... -igor On Mon, Mar 24, 2008 at 2:12 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Right - the old fashioned way. Igor strikes again - I'll give that a shot

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
Never mind - found it, but it's PHP. Well, might help to structure things properly. Thanks, Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:24 PM To: users@wicket.apache.org Subject: RE: File upload field inside of a modal? What

Emedding Javascript into render head?

2008-03-24 Thread Michael Mehrle
, 2008 at 4:04 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I was actually trying something close with overriding renderHead(IHeaderResponse iHeaderResponse). Didn't seem to stick though... Just for the record - would the above method be an alternative to making this work? Thanks a bunch

Adding JS onclick behavior to button?

2008-03-27 Thread Michael Mehrle
I guess I could just do something like this: button.add(new AttributeModifier(onClick, return jsMethod();)); but I remember there's a standard way of doing that... Michael

RE: Adding JS onclick behavior to button?

2008-03-27 Thread Michael Mehrle
OR, even simpler via a wicket:message: button wicket:id=fooButton wicket:message=onclick:fooMethod What I don't like about this is that the JS call would actually wind up in my properties file. -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27

RE: Adding JS onclick behavior to button?

2008-03-28 Thread Michael Mehrle
Yup, that is a lot cleaner - thanks :) Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 4:54 PM To: users@wicket.apache.org Subject: Re: Adding JS onclick behavior to button? override oncomponenttag and do it there -igor

Writing directly to the HTTP Response object?

2008-03-28 Thread Michael Mehrle
I have a non-Wicket AJAX request call a Wicket page to process some data (it's that jQuery file uploader I was working on). Now, the PHP example that came with that jQuery based file uploader writes out some status information to the AJAX JS script via HTTP Response like this (I'm no PHP coder):

RE: Writing directly to the HTTP Response object?

2008-03-28 Thread Michael Mehrle
, so you should try ((webresponse)getresponse).gethttpservletresponse().getoutputstream().wr ite -igor On Fri, Mar 28, 2008 at 2:16 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a non-Wicket AJAX request call a Wicket page to process some data (it's that jQuery file uploader I was working

RE: Writing directly to the HTTP Response object?

2008-03-28 Thread Michael Mehrle
, so you should try ((webresponse)getresponse).gethttpservletresponse().getoutputstream().wr ite -igor On Fri, Mar 28, 2008 at 2:16 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a non-Wicket AJAX request call a Wicket page to process some data (it's that jQuery file uploader I was working

Accessing non-Wicket JavaScript variables inside Wicket

2008-03-31 Thread Michael Mehrle
I wrote a file uploader that works inside a Wicket modal window based on jQuery. Here's the original PHP based framework I based my work on: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ It's up and running (took some tweaking to say the least), but I am still facing one hurdle: The file

Accessing non-Wicket JavaScript variables inside Wicket

2008-04-01 Thread Michael Mehrle
I wrote a file uploader that works inside a Wicket modal window based on jQuery. Here's the original PHP based framework I based my work on: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ It's up and running (took some tweaking to say the least), but I am still facing one hurdle: The file

IllegalStateException closing my modal

2008-04-01 Thread Michael Mehrle
When closing my modal (modal.close()) I get this: IllegalStateException: ServletRequest does not contain multipart content Multipart is not set on my form, so I'm not sure why this is happening... Any ideas? I'm kind of stuck on this one. Michael

Setting wicket field component model via JavaScript

2008-04-02 Thread Michael Mehrle
Simple scenario: I've got a hidden wicket field which I'm setting with JavaScript to a value like this: hiddenField.value = data.msg; When I pop up a JS alert it seems the value is set. However, back on the Java side I'm trying to log the field's value in my onClose() method as part of a

RE: Setting wicket field component model via JavaScript

2008-04-02 Thread Michael Mehrle
Anyone? Could use a pointer... -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 11:42 AM To: users@wicket.apache.org Subject: Setting wicket field component model via JavaScript Simple scenario: I've got a hidden wicket field which I'm

How to grab field value in setWindowClosedCallback?

2008-04-02 Thread Michael Mehrle
Still fiddling with that same problem. I set my outputmarkup and added my field as a target. However, when trying to grab the model as a string it's always empty. Is there anything special I have to do when grabbing a field's value inside an AjaxButton's onSubmit (which contains my

RE: Setting wicket field component model via JavaScript

2008-04-02 Thread Michael Mehrle
? Then you should be able to get the field's value using field.getModelObject(). Maurice On Wed, Apr 2, 2008 at 11:22 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Anyone? Could use a pointer... -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02

RE: Setting wicket field component model via JavaScript

2008-04-02 Thread Michael Mehrle
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Wednesday, April 02, 2008 4:27 PM To: users@wicket.apache.org Subject: Re: Setting wicket field component model via JavaScript new PropertyModel(this, photoId) On 4/2/08, Michael Mehrle [EMAIL PROTECTED

Default selection in radio group?

2008-04-03 Thread Michael Mehrle
I created a RadioGroup with three radios attached. For some reason the form is being drawn with the last radio pre-selected, which I don't want. How can I pre-select a default radio and also how can I set the group to nothing selected? Thanks, Michael

RE: Default selection in radio group?

2008-04-04 Thread Michael Mehrle
Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 8:49 PM To: users@wicket.apache.org Subject: Default selection in radio group? I created a RadioGroup with three radios attached. For some reason the form is being drawn with the last radio pre

Best way to tie a link to a checkbox?

2008-04-08 Thread Michael Mehrle
I need to sync a link to a checkbox. Meaning, that clicking on the checkbox or clicking on the link should select/deselect the checkbox. I was thinking on adding an AbstractBehavior to the link and then do it manually with Javascript in the onComponentTag method. Alternatively, I might be able to

RE: A few Wicket Questions

2008-04-08 Thread Michael Mehrle
Regarding the debugging: Debugging is very easy in Wicket since most of the meat is in Java (instead of tags). What do you mean by setting breakpoints in templates? I assume that it 'might' be possible to debug the component tag rendering process, but then one would have to skip the jars and load

Setting Ajax throttle behavior on a modal's closed callback

2008-04-10 Thread Michael Mehrle
I'm getting some strange 'Channel busy - postponing' errors in my AJAX in Safari. Read up on it and I think the solution might be to throttle the AJAX call (especially since it works fine in Firefox). The call I dug up is 'setThrottleDelay(...)' - but I only see that as part of an

Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
I need to build a TabbedPanel with three tabs which are part of one form - the selected tab will contain form components which need to be submitted by that one form. It seems FormComponentPanel is the way to go: are there any good examples of this? Also, would this be the recommended approach?

RE: Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
, April 11, 2008 4:52 PM To: users@wicket.apache.org Subject: Re: Good example for FormComponentPanel? It seems that a simple panel would be the best approach. On Sat, Apr 12, 2008 at 1:37 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I need to build a TabbedPanel with three tabs which are part

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
TabbedPanel extends Panel --- it extends the panel { ... } Am I wrong? :) On Sat, Apr 12, 2008 at 2:11 AM, Michael Mehrle [EMAIL PROTECTED] wrote: Yes, I agree, Vitaly - but unfortunately the design decision is out of my hand. It's got to have tabs. Of course it is possible to do the tabbing

RE: ReCaptcha Panel

2008-04-14 Thread Michael Mehrle
Not sure if anyone cares about this - but I hear that ALL captchas out there have been broken. Not really much of a hurdle anymore. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 11:08 AM To: users@wicket.apache.org Subject: ReCaptcha Panel

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
for FormComponentPanel? if you replace tabbedpanel links to submitlink it will -igor On Mon, Apr 14, 2008 at 12:51 PM, Michael Mehrle [EMAIL PROTECTED] wrote: So, a form CAN contain a panel? Meaning, I am able to add a tabbedpanel to a form and it'll work? Michael -Original Message- From

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
instead. -igor On Mon, Apr 14, 2008 at 3:28 PM, Michael Mehrle [EMAIL PROTECTED] wrote: You mean the links that select/toggle each panel? Not sure what you mean though - can you please elaborate? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent

RE: Good example for FormComponentPanel?

2008-04-14 Thread Michael Mehrle
for FormComponentPanel? On Mon, Apr 14, 2008 at 3:52 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Oh, I think you misunderstood no, i didnt. instead of all this theorizing why dont you try to implement this and see what the problems with it are. you will find that since tabbed panel uses are regular links any

Wicket div component?

2008-04-16 Thread Michael Mehrle
I need to create a div in my template that is being set to a different css class before it gets drawn. So, a regular non-wicket div HTML tag is out. How can I create a simple div tag without using a wicket panel? (I'm inside a form, so I don't want to use a panel). Thanks, Michael

RE: Wicket div component?

2008-04-16 Thread Michael Mehrle
component? You can attach WebMarkupContainer to it. Vitek Michael Mehrle wrote: I need to create a div in my template that is being set to a different css class before it gets drawn. So, a regular non-wicket div HTML tag is out. How can I create a simple div tag without using a wicket panel? (I'm

Selecting a radio programmatically?

2008-04-16 Thread Michael Mehrle
Simple actually - I need to select a radio in a group programmatically (without user interaction). Is this done via setting the model of the radio to a true Boolean? Michael

RE: Selecting a radio programmatically?

2008-04-17 Thread Michael Mehrle
Subject: Re: Selecting a radio programmatically? Radio objects can have values other than boolean. On Wed, Apr 16, 2008 at 8:53 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Simple actually - I need to select a radio in a group programmatically (without user interaction). Is this done via setting

Strange ClassCastException with DropDownChoice

2008-04-17 Thread Michael Mehrle
I'm creating my own DropDownChoice: private class WeekdayChoice extends DropDownChoice { public WeekdayChoice(String id, IModel model) { super(id, model, new Model(new DateFormatSymbols().getWeekdays()));

Integer models for textfields?

2008-04-21 Thread Michael Mehrle
Do, I have to set up a converter for textfields that use integers as models? Or is that being converted implicitly? Michael

PropertyModel of textfield not being updated

2008-04-21 Thread Michael Mehrle
I got a textfield: add(fooTextField = new TextField(foo, new PropertyModel(eventSchedule, foo), Integer.class)); eventSchedule is a bean that has a foo field which is an integer. For some reason it's never being updated, although the field picks it up when I programmatically call

RE: Integer models for textfields?

2008-04-21 Thread Michael Mehrle
To: users@wicket.apache.org Subject: Re: Integer models for textfields? You can do new TextField(id, model,Integer.class) and the textfield will automatically convert everything to integers. Maurice On Mon, Apr 21, 2008 at 8:25 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Do, I have to set up

RE: PropertyModel of textfield not being updated

2008-04-21 Thread Michael Mehrle
that code as well? -- Edvin Michael Mehrle skrev: Sure: saveButton.add(ajaxSaveBehavior = new AjaxEventBehavior(JavaScriptUtil.CLICK) { @Override protected void onEvent(AjaxRequestTarget target) { modalWindow.setWindowClosedCallback(new

  1   2   3   >