Re: how to resolve jsessionid for the first time in the url

2008-03-28 Thread Nino Saturnino Martinez Vazquez Wael
I am not observing this behavior from tomcat. The only times when this happens are usually because tomcat is behind something like apache and it's setup wrongly, not allowing cookies to pass... Otherwise it should work. regards Nino C. Bergström wrote: On Thu, 2008-03-27 at 16:05 -0700,

Re: bypass required field during form processing

2008-03-28 Thread freak182
Thanks Igor. It worked for me. Nwei, for reference here is my code snippet: final RadioGroup rgrp = new RadioGroup(rGrp, new Model()){ @Override protected boolean wantOnSelectionChangedNotifications() { // TODO

Re: creating dynamic text in web page

2008-03-28 Thread Joel Halbert
OK, I figured it out.. I can add javascript like this using add(new StringHeaderContributor(insert my javascript here));: public class MyPage extends WebPage { public MyPage(long sessionKey, String uniqueUsername) { String js = script type='text/javascript' +

Re: creating dynamic text in web page

2008-03-28 Thread Gerolf Seitz
Or, if you need to parameterize a larger portion of javascript, you can use TextTemplates. (see DatePicker in wicket-datetime as an example) Gerolf On Fri, Mar 28, 2008 at 11:46 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Another option: add(new Label(js, script

Feature request: using @SpringBean outside Wicket request

2008-03-28 Thread Erik van Oosten
Hello, I love @SpringBean so much that I would like to use it outside Wicket requests as well. I am using Restlets and the native Restlet-Spring integration is very cumbersome. Unfortunately the WicketFilter does set the Application thread local variable for non wicket requests. Would it be

Re: Feature request: using @SpringBean outside Wicket request

2008-03-28 Thread James Carman
Spring has that feature built in. Look at their @Configurable annotation support. On Fri, Mar 28, 2008 at 7:33 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hello, I love @SpringBean so much that I would like to use it outside Wicket requests as well. I am using Restlets and the native

Re: Sometimes get Session expired when submitting forms with IE

2008-03-28 Thread Nino Saturnino Martinez Vazquez Wael
vico wrote: In my case, this problem happens when the user clicked on submit (not canceling), so it probably is due to our network (I can not do anything about it). However if the connection failed, how can the session expired page reach the client ? If there are huge bumps, the the user

Re: Sort/Rank List Component Suggestion

2008-03-28 Thread Ryan Sonnek
There's also a drag/drop reordering of lists available using the scriptaculous library: http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView On Fri, Mar 28, 2008 at 4:43 AM, Uwe Schäfer [EMAIL PROTECTED] wrote: Shelli D. Orton schrieb: hi shelli I'm

Re: DataView size() iterator() call order issue

2008-03-28 Thread Johan Compagner
i already mentioned detach() in my fist reply to this thread 2 days ago... and as i said before both variables that go into the iterator() are depending on the size call so the size() call really needs to happen first or we have to just guess those 2 variables completely johan On Fri, Mar 28,

Re: Inspecting AjaxRequestTarget

2008-03-28 Thread Federico Fanton
On Fri, 28 Mar 2008 12:56:44 +0100 Martijn Dashorst [EMAIL PROTECTED] wrote: You could replace the original ajax request target with a new one: AjaxRequestTarget newAjax = new AjaxRequestTarget(getPage()); getRequestCycle().setRequestTarget(newAjax); newAjax.addComponent(table); I see, but

RE: DataView size() iterator() call order issue

2008-03-28 Thread Hoover, William
I apologize that I missed the detach() portion of your email :o) I don't want to beat the issue on needing size before offset/count and waste anymore of anyone's time. In a legacy application we have I already accomplished this. So, I will just use some customization to the wicket components

ListView with a Set instead of a List

2008-03-28 Thread reikje
I have a rather specific question about a problem I am having. We have a domain object (OperatorSyncConfig) that we need to diplay in a page. That object contain a Set of FunctionSetting objects which I want to render in a ListView. For each ListItem (FunctionSetting) it should be possible to

Re: Inspecting AjaxRequestTarget

2008-03-28 Thread Johan Compagner
hmm So the problem is that AjaxRequestTargets gets a component that is already removed at the time it wants to render it. What is the harm in fixing that? That it just ignores such components (maybe with a warning in the log) johan On Fri, Mar 28, 2008 at 2:07 PM, Federico Fanton [EMAIL

Re: Referencing images in javascript - wicket 1.3.1

2008-03-28 Thread Igor Vaynberg
urlfor(new resourcereference(Panels.class, folder.gif)); -igor On Fri, Mar 28, 2008 at 1:11 AM, Andrew Moore [EMAIL PROTECTED] wrote: I'm using wicket 1.3.1 and have a javascript file which needs to reference some images. I'm using the following code in a panel to include the javascript

Re: Inspecting AjaxRequestTarget

2008-03-28 Thread Igor Vaynberg
fine by me -igor On Fri, Mar 28, 2008 at 6:55 AM, Johan Compagner [EMAIL PROTECTED] wrote: hmm So the problem is that AjaxRequestTargets gets a component that is already removed at the time it wants to render it. What is the harm in fixing that? That it just ignores such components

Re: TextField returning a null

2008-03-28 Thread Igor Vaynberg
TexField.setConvertEmptyInputStringToNull( true ) worked fine for me in a quickstart... -igor On Fri, Mar 28, 2008 at 8:25 AM, Eric Rotick [EMAIL PROTECTED] wrote: I've just been reading the section on Forms and validation in Wicket in Action and have tried AbstractValidator av = new

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

DateTimeField question

2008-03-28 Thread Pinger
So I am a noob with Wicket.. so I have a dumb question.. I have a DateTimeField I do this DateTimeField startField = new DateTimeField(starttime, new PropertyModel(properties, starttime)); form.add(startField); Ok I want to be able to set and get this field.. I can do that with

Re: TextField returning a null

2008-03-28 Thread Johan Compagner
Are you sure you dont have the type set? Is a converter used or is convertInput called? On 3/28/08, Eric Rotick [EMAIL PROTECTED] wrote: Hmm, it's not working for me. There's one other thing I spotted. The docs say that a TextField defaults to String.class even if it cannot work out the class

Re: Lazy load exception wicket and hibernate

2008-03-28 Thread cjlyth
I have been getting the same error. I feel like im missing something. Maybe I am doing something horibly wrong but I haven't been able to figure out what it is. I am using spring 2.5, Wicket 1.3.2, and I have put the OpenEntityManagerInViewFilter in my web xml. The filter is loading ok, im not

Re: Wicket in Action - 1.4 pending release

2008-03-28 Thread serban.balamaci
By the way Wicket is growing and changing i thought that the book would never been finished as one chapter was probably done, another would have to be refactored to keep it up to date with the API. Actually the only time when i had to rewrite code for switching to another version was from 1.2 to

newbie title attribute question

2008-03-28 Thread Andrew Broderick
Hi, I want to put a title attribute in a td tag. However, my markup would then look like this: td title=span wicket:id=title / blah blah /td Now, I know I could output the td with a label and set escaping to false, thus passing the markup through to the browser. However, that would mean

Re: newbie title attribute question

2008-03-28 Thread Igor Vaynberg
td wicket:id=td add(new webmarkupcontainer(td) { oncomponenttag(tag) { tag.getattributes().put(title,foo); }} -igor On Fri, Mar 28, 2008 at 1:14 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I want to put a title attribute in a td tag. However, my markup would then look like this:

RE: Sort/Rank List Component Suggestion

2008-03-28 Thread Shelli D. Orton
Hi, Thanks for the suggestions. I've looked at both and I don't think either are what I'm looking for; I may not have explained it well in my first email. What I have is a list of objects which have a rank attribute. What I would like to do is display the list in the order of the rank and then

RE: newbie title attribute question

2008-03-28 Thread Andrew Broderick
Thanks, but what does 'tag' in oncomponenttag(tag) refer to? My markup looks like this: wicket:fragment wicket:id=dayEventsCell td strongspan wicket:id=event1 //strong /td

RE: Sort/Rank List Component Suggestion

2008-03-28 Thread Shelli D. Orton
Just noticed a typo. using up/down error buttons should be using up/down arrow buttons. Shelli -Original Message- From: Shelli D. Orton [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 2:59 PM To: users@wicket.apache.org Subject: RE: Sort/Rank List Component Suggestion Hi,

Re: newbie title attribute question

2008-03-28 Thread Igor Vaynberg
oncomponenttag is a method you override...tag is the argument that the method gets passed into it -igor On Fri, Mar 28, 2008 at 2:04 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Thanks, but what does 'tag' in oncomponenttag(tag) refer to? My markup looks like this:

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 Igor Vaynberg
wicket is probably buffering the response, so you should try ((webresponse)getresponse).gethttpservletresponse().getoutputstream().write -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

RE: Writing directly to the HTTP Response object?

2008-03-28 Thread Michael Mehrle
Yeah, we actually talked about exactly that a few minutes ago. We suspected that it writes it to the object but is not actually streaming it out. I tried your code below and my text shows up when I call the page directly. So, it must be that [fill in explicit of your choice] JavaScript... oh joy.

RE: Writing directly to the HTTP Response object?

2008-03-28 Thread Michael Mehrle
Actually, your line throws IllegalStateException: STREAM I tried this, which seems to work as well and doesn't throw that exception: RequestCycle.get().setRequestTarget(new IRequestTarget() { public void respond(RequestCycle requestCycle) { Response rep =

setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread Timm Helbig
Hi, I have read several times in the mailing list, that it is bad to use setRespsonsePage(Page p). What is the backdraw compared to setResponsePage(Class c) ? In my case a Form Submit redirects to another Page, that needs some initial data given through the Constructor, e.g.

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
If you need to initialize the page instance in some way (by passing constructor params, for instance), you use the Page version. The other version just uses Class.newInstance() to instantiate the page object. On Fri, Mar 28, 2008 at 6:44 PM, Timm Helbig [EMAIL PROTECTED] wrote: Hi, I have

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
Oh, and redirect doesn't work with the Page version (at least in my tests it didn't). On Fri, Mar 28, 2008 at 7:13 PM, James Carman [EMAIL PROTECTED] wrote: If you need to initialize the page instance in some way (by passing constructor params, for instance), you use the Page version. The

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread Johan Compagner
what do you mean redirect does't work? 90% of the time if you do setResponsePage(new Page()) a redirect is done anyway. (for example if you do that in onSubmit) To go around for example the double post problem if you go back in history or refresh the page. johan On Sat, Mar 29, 2008 at 12:15 AM,

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
Well, I tried it with doing setResponsePage(new MyOtherPage()) and URL still looked like the link listener URL. But, when I did setResponsePage(MyOtherPage.class), the URL changed to whatever I mounted it to. I assumed that meant that the redirect wasn't happening. I could be wrong. On Fri,

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
Nevermind, I thought it was a link listener URL, but maybe it's not. Here's what I'm seeing. I have my home page (a quickstart app) set up to do a link to AnotherPage in two different ways: public HomePage() { add(new Link(link1) { public void onClick()

OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread cjlyth
I posted a reply to another post this afternoon expanding on a question the OP had about openEntityManagerInView. I want to ask in a different thread and a different way. I have a page that displays a ListOwner object. The ListOwner has a collection of lazy loaded ListEntry objects. I can NOT

Re: OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread James Carman
What kind of model are you using? Do you have some code you could share? On Fri, Mar 28, 2008 at 10:53 PM, cjlyth [EMAIL PROTECTED] wrote: I posted a reply to another post this afternoon expanding on a question the OP had about openEntityManagerInView. I want to ask in a different thread

JavaScript w/ Flash Player - Need guidance on to generate session-relative url's

2008-03-28 Thread jpswain
I have some JavaScript on my main page that contains a special Flash player that loads and starts playing a specific mp3 file for each associated link that the user clicks on. This currently works fine when I use mountSharedResource within my application subclass, then my JavaScript calls

Re: OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread Christopher Lyth
Here is a link to my other post: http://www.nabble.com/Re%3A-Lazy-load-exception-wicket-and-hibernate-p16361116.html I am using a LoadableDetachableModel On Fri, Mar 28, 2008 at 10:57 PM, James Carman [EMAIL PROTECTED] wrote: What kind of model are you using? Do you have some code you could

Re: OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread James Carman
Yes, I believe you need to have your OpenEntityManagerInViewFilter before WicketFilter (or use WicketServlet). If WicketFilter decides that the current request is its to take care of, it shouldn't be forwarding to the rest of the chain. Therefore, the OpenEntityManagerInViewFilter won't get a

Re: DateTimeField question

2008-03-28 Thread Martin Makundi
What is AM_PM? At least 1.3.1 does not have such feature. I would rather use java.util.Calendar to figure out internals of the startField.getModelObject() which should be a date. ** Martin 2008/3/28, Pinger [EMAIL PROTECTED]: So I am a noob with Wicket.. so I have a dumb question.. I have

Re: DateTimeField question

2008-03-28 Thread Martin Makundi
Sorry, got confused with DateTextField.. DateTimeField indeed has this AM_PM stuff. 2008/3/29, Martin Makundi [EMAIL PROTECTED]: What is AM_PM? At least 1.3.1 does not have such feature. I would rather use java.util.Calendar to figure out internals of the startField.getModelObject() which