Re: getting img src of dynamic image

2009-11-23 Thread Jonas
Why don't you just pass your BufferedDynamicImageResource to an org.apache.wicket.markup.html.image.Image? That should work just fine if what you're generating in plotPolyGate.getResult().getImage() is 'static'. If it's not static, you can use the Image with an IModel containing the appropriate

Re: Session timeout - AJAX-enabled controls

2009-11-23 Thread David Matoušek
If it's implemented in 1.4 then it's enough for me, guess I will migrate to that version then. Thanks for help, everyone involved. David Matousek Carlo Camerino napsal(a): i have verified that this fix has already been implemented in 1.4 is there any chance that this would be backported

Re: Forms and detached JPA ( Hibernate) Objects

2009-11-23 Thread Bert
Thanks for the answers. Due to extreme pressure in the current project i will go with the option proposed by james and build 'shadow' copy of the object to edit in the form, hopefully finding time later to look into more generic solution. I just thought that most applications using wicket and

MockHttpServletResponse, status vs code

2009-11-23 Thread Marat Radchenko
MockHttpServletResponse has two fields, status and code, which is ambigious. sendError method changes code, while setStatus changes status field. I think these two should be merged to mimic servlet api (if one calls sendError, then error status is available via getStatus). If no objections,

Re: UploadWebRequest is actually a UploadWebRequest$MultipartRequest

2009-11-23 Thread Wayne Pope
ok where should I log it? On Fri, Nov 20, 2009 at 7:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: looks like a bug. -igor On Fri, Nov 20, 2009 at 8:55 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hello, we get the following warning in our logs:

wicketstuff-jwicket: disable link on drag and drop

2009-11-23 Thread Stefan Jozsa
How can be a link (IndicatingAjaxLink) disabled on drag-and-drop ? I have something like this: myLink = new IndicatingAjaxLink(id); myLink.add(new DraggableBehavior() { { setName(foo); setRevert(DraggableBehavior.DragRevertMode.ALWAYS);

wicketstuff-jwicket, drag-and-drop, Internet Explorer 7/8

2009-11-23 Thread Stefan Jozsa
I'm getting Javascript errors (unspecified error, object not found) using jwicket drag-and-drop on IE 7/8. After an error, IE disables Javascript (can be 'restored' just by page reload). Any help welcome, thanks in advance, Stefan

JWeekend

2009-11-23 Thread Giambalvo, Christian
i just wanna say sorry for not comming to the jweekend. But i am ill. I spewed the whole weekend. I tried to push myself with coffe at sturbucks next to foyles but it didn't helped much. So i decided to go back home. I regret this very much. Is there any recording of the jweekend available?

Re: How to hide wicket related information from URL

2009-11-23 Thread Jeremy Thomerson
If you use stateful components (i.e. a link, etc.) on a page, the page state has to be recorded into the URL. But I think you can use hybridurlencodingstrategy and it will at least look much nicer - without wicket:interface in it, etc. -- Jeremy Thomerson http://www.wickettraining.com On Mon,

Re: UploadWebRequest is actually a UploadWebRequest$MultipartRequest

2009-11-23 Thread Jeremy Thomerson
https://issues.apache.org/jira/browse/WICKET -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 23, 2009 at 3:53 AM, Wayne Pope waynemailingli...@googlemail.com wrote: ok where should I log it? On Fri, Nov 20, 2009 at 7:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

Can @SpringBeans be optional?

2009-11-23 Thread Anthony DePalma
Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to

setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Martin Makundi
What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
Sorry, this is from the jwicket-ui-dragdrop-1.4.1 project. org.wicketstuff.jwicket.ui.dragdrop.DraggableBehavior I don't know what is in it :-( This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears.

Re: ExternalLink takes IModelString for label

2009-11-23 Thread Peter Dotchev
https://issues.apache.org/jira/browse/WICKET-2588 igor.vaynberg wrote: yep, so we cant fix it in 1.4.x, but add an rfe for 1.5 -igor On Sun, Nov 22, 2009 at 2:24 PM, Peter Dotchev dotc...@gmail.com wrote: Hi Wicketeers, I just noticed that this constructor   public

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Martin Makundi
This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM,

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
Note that in the AjaxLink I create a new replacement panel, add a dragging behavior to it and then replace the old one with it (code below). My question is that even though I add a draggable behavior to the new panel and do the proper replacement, it stops working as soon as I start of with an

Re: Wicket datepicker disable weekdays

2009-11-23 Thread Muro Copenhagen
Hi Leo... Thanks... It helped me further on. I made it work, in a non-wicket purely javascript version. But something goes wrong in the wicket datepicker version. I override the getAdditionalJavascript method for the DatePicker with the following: @Override protected String

Re: wicket + jdbc template app

2009-11-23 Thread Ivan Dudko
Thank you! I have just implement it! I am using c3p0 and SQL DAO without Spring or any Persistent framework. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

RE: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Craig McIlwee
Last time I checked, and it's been a while, the setOutputMarkupPlaceholderTag behavior was to create an element like div id='wicketId' style='not visible' / and then when you set it back to visible you end up with the proper html: div id='wicketId'content here/div. I don't know anything about

RE: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Craig McIlwee
OK so I just read the entire thread now I see that you are adding the behavior to the new panel as well. So you can probably ignore my last post. -Original Message- From: Craig McIlwee [mailto:craig.mcil...@openroadsconsulting.com] Sent: Monday, November 23, 2009 9:17 AM To:

Wicket Form Resubmit

2009-11-23 Thread Rowe, Richard A (N-Onyx Government Services)
How do I allow my user to resubmit a form that was marked as invalid on the first attempt once the invalid fields have been corrected. Wicket appears to not resubmit the form. Thanks. Rick

Re: How to hide wicket related information from URL

2009-11-23 Thread sajid7
have a look at the following: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html This has what you're looking for -- View this message in context: http://old.nabble.com/How-to-hide-wicket-related-information-from-URL-tp26473196p26480233.html Sent from the Wicket

Re: How to hide wicket related information from URL

2009-11-23 Thread Vipresh Sharma
Thanks Buddy! you send me the right direction Vipresh On 2009-11-23, at 7:38 AM, sajid7 wrote: have a look at the following: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html This has what you're looking for -- View this message in context:

Reused Component with a form inside another form

2009-11-23 Thread Arnaud Garcia
Hello, Suppose that you have a simple one to one relationship for example: Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel

Re: Can @SpringBeans be optional?

2009-11-23 Thread Igor Vaynberg
not right now. you can always file an rfe to add something like @SpringBean(optional=true) -igor On Mon, Nov 23, 2009 at 3:46 AM, Anthony DePalma fatef...@gmail.com wrote: Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if

Re: Reused Component with a form inside another form

2009-11-23 Thread Igor Vaynberg
a) wicket supports embedded forms and will handle that for you. b) there is no need to have the form inside addresspanel, you can have formcomponents only and then put the addresspanel into a form. -igor On Mon, Nov 23, 2009 at 8:37 AM, Arnaud Garcia arn...@imagemed-87.com wrote: Hello,

Re: Can @SpringBeans be optional?

2009-11-23 Thread Martijn Dashorst
Define a getter for your service that returns null by default, and in your Spring enabled session return the injected bean. Martijn On Mon, Nov 23, 2009 at 12:46 PM, Anthony DePalma fatef...@gmail.com wrote: Often with spring I give some of my services extra features if they are configured in

RE: Reused Component with a form inside another form

2009-11-23 Thread Frank Silbermann
HTML doesn't like forms inside of forms. What don't you just create an address panel that belongs inside a form, but which does not provide its own form? -Original Message- From: Arnaud Garcia [mailto:arn...@imagemed-87.com] Sent: Monday, November 23, 2009 10:37 AM ...Patient has an

Re: method assertWarningMessages

2009-11-23 Thread Bernard Lupin
Hi again, This question seems to be simple, no ? Do I have to open a JIRA ? Bernard Bernard Lupin wrote: Hi all, Components have 3 methods to put information in a feedback panel : info(), warn() and error(). But in the WicketTester class, there are only 2 asserts available :

css not managed by wicket

2009-11-23 Thread Ilya German
Hello! I'm trying to make my web application to use a .css stylesheet. As far as I understood reading http://cwiki.apache.org/WICKET/including-css-resources.html and Wicket in Action book I should be able to make any html page to work in the following configuration: say, Base.html includes:

Re: css not managed by wicket

2009-11-23 Thread Martin Makundi
Just put /style.css Otherwise wicket is trying to guess the relative url. In most cases it guesses wrong so I have adopted the practice of using resource urls relative to the root of the domain. ** Martin 2009/11/23 Ilya German ilja.germ...@parex.lv: Hello! I'm trying to make my web

Re: css not managed by wicket

2009-11-23 Thread Nicolas Melendez
hi, consider use this annotations: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-merged-resources here a blog which explains the features it has: http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html#more-128 it will help i hope. bye On Mon,

Re: Reused Component with a form inside another form

2009-11-23 Thread Martijn Dashorst
Wicket supports nested forms since 1.3 transparently. Martijn On Monday, November 23, 2009, Frank Silbermann frank.silberm...@fedex.com wrote: HTML doesn't like forms inside of forms.  What don't you just create an address panel that belongs inside a form, but which does not provide its own

Re: javax.crypto.BadPaddingException on expired sessions using CryptedUrlWebRequestCodingStrategy

2009-11-23 Thread fatefree
fatefree wrote: Re: javax.crypto.BadPaddingException on expired sessions using CryptedUrlWebRequestCodingStrategy As it turned out this was not caused by the cryptedurl coding strategy as I thought, but rather my custom request cycle was overriding onRuntimeException and returning its

Custom error page interfering with page expired

2009-11-23 Thread Anthony DePalma
A while back I posted that I was having problems with what I thought was the CryptedUrlWebRequestCodingStrategy. I've learn since that my custom error handling was the problem, so I wanted to take a step back and ask how I should be doing this. I have a requirement that on an internal error

RE: Can @SpringBeans be optional?

2009-11-23 Thread Loritsch, Berin C.
Technically speaking from the Dependency Injection koolaid doctrine, the best way to solve the problem is to have a null implementation of your service that does nothing. The code you are writing doesn't have to have complex if/else logic as it's able to assume the service is always there. The

Re: Custom error page interfering with page expired

2009-11-23 Thread Igor Vaynberg
@Override public final Page onRuntimeException(final Page cause, final RuntimeException e) { Throwable t=e; while (t!=null) { if (t instanceof pageexpiredexception) { return super.onRuntimeException(cause, e); } t=t.getcause(); } return new

Re: Can @SpringBeans be optional?

2009-11-23 Thread James Carman
That's not a dependency injection thing. It's a design pattern called the Null Object pattern. On Mon, Nov 23, 2009 at 12:38 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: Technically speaking from the Dependency Injection koolaid doctrine, the best way to solve the problem is to have

WicketStuff JMX

2009-11-23 Thread rodrigo benenson
Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date.

Re: WicketStuff JMX

2009-11-23 Thread Igor Vaynberg
i guess its waiting for someone with time to bring it back up to speed. -igor On Mon, Nov 23, 2009 at 1:05 PM, rodrigo benenson rodrigo.benen...@gmail.com wrote: Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now

Re: WicketStuff JMX

2009-11-23 Thread Igor Vaynberg
i think it fell apart -igor On Mon, Nov 23, 2009 at 1:30 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Wasn't it integrated into wicket-jmx? Or did that fall apart with Gerolf going AWOL? Martijn On Mon, Nov 23, 2009 at 10:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i

Adding markup to ListView containing tag?

2009-11-23 Thread Loritsch, Berin C.
What I would like is to be able to have markup like this: div id=triage-items div id=triage-1fancy markup here/div div id=triage-2fancy markup here/div /div Along with this, to provide javascript effects on hover/focus for the individual items in the list. The problem is that I can't do

Re: Adding markup to ListView containing tag?

2009-11-23 Thread Igor Vaynberg
div id=triage-items div id=triage-1 wicket:id=listviewfancy markup here/div /div class mypage extends webpage implements iheadercontributor { public mypage() { add(new listview(listview,...) { protected item newitem(string id, int idx) { return new item(id, idx) {

Mapping image src and href in production

2009-11-23 Thread Alec Swan
I am relatively new to Wicket and currently using Wicket 1.4.2 with Tomcat 6.0. I would like to understand the recommended way of handling static images with Wicket in production. Suppose I have the following image: img src=/images/logo.gif alt=Company Logo / This image is static and do not

Re: Mapping image src and href in production

2009-11-23 Thread Igor Vaynberg
there is no best practices because there is no standard way of packaging images in webapps, and so there are many ways to solve the problem. if you are packing all your images under WEB-INF/images: you cannot serve images straight out of WEB-INF, so you will have to create a servlet. map it to

PageParameters an URLEncode

2009-11-23 Thread Anton Veretennikov
Hi! Sorry for simple question. Do we need URLEncode when we use new PageParameters(param=value1); -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: