Re: Error no application attached to current thread main with AnnotApplicationContextMock

2010-08-02 Thread Sam Grönblom
On 07/29/2010 06:21 PM, Igor Vaynberg wrote: what version of wicket? -igor On Thu, Jul 29, 2010 at 1:54 AM, Sam Grönblomsam.gronb...@eficode.fi wrote: Getting this error when trying to use AnnotApplicationContextMock. Judging by the example shown in the latest javadocs:

Re: Error no application attached to current thread main with AnnotApplicationContextMock

2010-08-02 Thread david_
I receive this exception also on method Application.get(); It happens on Tomcat after a redeploy. When I remove the work directory of Tomcat, and do a restart, the error is gone. 2010/8/2 Sam Grönblom [via Apache Wicket]

member variables, thread safety

2010-08-02 Thread Emmanouil Batsis
Apologies for the dumb question but I'm rather new to wicket and was wondering if it is safe to use member variables within components (i.e. compared to servlets, struts1 actions etc). Many thanks, Manos -- Manos Batsis, Chief Technologist ___ _/ /_ (_)_

SV: member variables, thread safety

2010-08-02 Thread Wilhelmsen Tor Iver
Apologies for the dumb question but I'm rather new to wicket and was wondering if it is safe to use member variables within components (i.e. compared to servlets, struts1 actions etc). Mostly yes: The component instances are tied to the user's session via the pagemap. But be wary of excessive

Re: String not serializable exception coming for interned strings from Model with JRockit/Weblogic

2010-08-02 Thread Daniel Peters
Hello Janos, i have the excactlty the same problem with Wicket and JRockit R28. The only way to fix it, was to go back to JRockit R27. Hopefully they will fix it soon, the new R28.0.1 still has the problem. A collegue of mine will do a post in the Oracle forums now. regards Daniel On

Re: How to Update contents of a child component?

2010-08-02 Thread Nivedan Nadaraj
Thanks guys for the input. Will give a yell when I have resolved it, thanks for the time. Reg Niv On Fri, Jul 30, 2010 at 7:54 PM, vov vov...@mail.ru wrote: Do not forgot about setOutputMarkupPlaceholderTag(true) for your components that initially as invisible. And use AJAX...:) -- View

Error Hypothesis...

2010-08-02 Thread James Carman
I have a theory about what is causing this issue. Just wanted to run it by you guys. In my log files, I first see this: org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by:

Re: Error Hypothesis...

2010-08-02 Thread Johan Compagner
yes that is most likely the case. On Mon, Aug 2, 2010 at 16:17, James Carman ja...@carmanconsulting.com wrote: I have a theory about what is causing this issue.  Just wanted to run it by you guys.  In my log files, I first see this:

Re: Error Hypothesis...

2010-08-02 Thread Johan Compagner
maybe do the actual upload through and iframe or something that has its own pagemap? Or block the ui in the browser as long as the upload is in progress (but then user can still do F5, but they should know that they should wait for it) You can also for example use a flash uploader to a servlet

Re: Error Hypothesis...

2010-08-02 Thread James Carman
Thanks! I guess it's now a matter of telling the user if you want to do stupid stuff like this, it's going to cost you X for us to code around it. I'm sure that should get them to stop what they're doing. :) On Mon, Aug 2, 2010 at 10:35 AM, Johan Compagner jcompag...@gmail.comwrote: maybe do

Re: Form Component Border - on Submit

2010-08-02 Thread gmail
On the submit link's onclick event you must iterate the form fields and run the same script you do on the field's onblur event. kjarbr On 02.08.10 16.33, cresc md.naz...@gmail.com wrote: I have implemented form component border to validate and show the error messages inline just below

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
Yes, the code is designed to be thread safe. On Mon, 2010-08-02 at 07:15 -0700, fachhoch wrote: I was looking into cometd , I tried the example it worked for me.I havea new requirement , I have to update a panel in my page if a job running seperately in a thread has finished processing.

Re: using cometd with threads

2010-08-02 Thread fachhoch
but is it write to use web api in my service classes ? My job is in service layer as its a thread and web has nothing to do with , now I have to call web api (cometd api ) inside my service classes is this write ? -- View this message in context:

Re: WicketTester and Palette component

2010-08-02 Thread loic
Hi Kent, thanks a lot i will take a look a this Regards, Loic -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2310424.html Sent from the Wicket - User mailing list archive at Nabble.com.

How to access div on wicket modal dialog

2010-08-02 Thread zoran
Hi, I'm using a wicket modal dialog with the panel that contains a div container like div id=slider/div I want to access it from jQuery to create a jQuery UI slider like $(#slider).slider(); For some reason, this doesn't work. Is there some reason related to wicket that prevents this to find

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
How are you getting the Bayeux service? It is alright to think of the Bayeux service as a messaging api, that jumps across your various layers (from the service to the javascript client). As long as you remember you can't trust the javascript clients (malicious users), you are fine. On Mon,

Re: using cometd with threads

2010-08-02 Thread fachhoch
Please suggest me how to get Bayeux service in service layer , right now I have in subclass of org.apache.wicket.protocol.http.Application -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2310715.html Sent from the Wicket -

Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Problem: Encrypt sensitive form fields (ie ssn) on client (javascript) Solution: Create behavior which fires javascript to hash field value and replace original value (###-##-) This sounds simple enough, but since the length of the hashed string will be considerably longer than the

Re: Encrypt Form Fields Using JS

2010-08-02 Thread Craig McIlwee
Why not use a password field to keep the value hidden and SSL to make sure there are no man in the middle attacks. Seems like you are making it too hard? - Original Message - From: mzem...@osc.state.ny.us To: users@wicket.apache.org Sent: Mon, 02 Aug 2010 15:00:55 -0400 Subject: Encrypt

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
I totally agree, seems like double-duty that accomplishes very little, and actually adds overhead. But this is another debate and the feature has been requested and must be implemented as I described... Craig McIlwee craig.mcil...@openroadsconsulting.com 08/02/2010 03:06 PM Please respond

Re: Encrypt Form Fields Using JS

2010-08-02 Thread Igor Vaynberg
override getinputasarray() on the field and decrypt it there, that way wicket sees the decrypted value -igor On Mon, Aug 2, 2010 at 12:14 PM, mzem...@osc.state.ny.us wrote: I totally agree, seems like double-duty that accomplishes very little, and actually adds overhead.  But this is another

Re: How to access div on wicket modal dialog

2010-08-02 Thread Igor Vaynberg
if you open a page inside modal then the markup is in a different window so you have to make sure your jquery script executes in the right window. if you are using a panel and the markup is rendered in the same window it means your script is probably running too early. -igor On Mon, Aug 2, 2010

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Thanks for the reply, that would work however per our business rules the encryption must be one-way and will not be decrypted... Igor Vaynberg igor.vaynb...@gmail.com 08/02/2010 03:23 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Encrypt Form

Re: Error Hypothesis...

2010-08-02 Thread Martijn Dashorst
In Wicket Extensions we have an ajax upload field iirc. That should not block the pagemap... Martijn On Mon, Aug 2, 2010 at 4:35 PM, Johan Compagner jcompag...@gmail.com wrote: maybe do the actual upload through and iframe or something that has its own pagemap? Or block the ui in the browser

Re: Encrypt Form Fields Using JS

2010-08-02 Thread Igor Vaynberg
so how do you expect to validate on server side??? -igor On Mon, Aug 2, 2010 at 12:29 PM, mzem...@osc.state.ny.us wrote: Thanks for the reply, that would work however per our business rules the encryption must be one-way and will not be decrypted... Igor Vaynberg igor.vaynb...@gmail.com

Re: How to access div on wicket modal dialog

2010-08-02 Thread zoran
Igor, You save my life :) if you are using a panel and the markup is rendered in the same window it means your script is probably running too early. That is exactly what was the problem. I added response.renderOnDomReadyJavascript(js); In AbstractBehavior RenderHead method, and

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
The only thing I've come up with to meet all the requirements is to set the hashed value to a hidden field, and replace the original value (123-45-6789) with all nines (999-99-). This would allow the validator to pass but puts a requirement on the js to validate the original value, ie it

Re: How to access div on wicket modal dialog

2010-08-02 Thread Igor Vaynberg
thats what i do...save lives :) -igor On Mon, Aug 2, 2010 at 12:50 PM, zoran jeremy...@gmail.com wrote: Igor, You save my life :) if you are using a panel and the markup is rendered in the same window it means your script is probably running too early. That is exactly what was the

using breadcrumbs in Wicket 1.4.9

2010-08-02 Thread Lawrence Sewell
My first Wicket application uses Wicket 1.4.9 and breadcrumbs where I need to go from: panel A / panel B / panel C to: panel A / panel B / panel D by selecting a submit button on a form in panel C, e.g. replace panel C (after processing the form) with panel D as the active

Re: Encrypt Form Fields Using JS

2010-08-02 Thread James Carman
Then it's not encryption. Encrypted data should be readable to those who have the key. On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote: Thanks for the reply, that would work however per our business rules the encryption must be one-way and will not be decrypted... Igor

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
You can get it from the ServletContext: getServletContext().getAttribute(BayeuxServer.ATTRIBUTE); On Mon, 2010-08-02 at 11:18 -0700, fachhoch wrote: Please suggest me how to get Bayeux service in service layer , right now I have in subclass of org.apache.wicket.protocol.http.Application

KonaKart shopping cart integration

2010-08-02 Thread Steve Coughlan
I've been looking for a shopping cart solution that I can properly integrate with wicket. There's been a few threads on this list where people have indicated they were building one but as far as I know nothing has ever eventuated. I don't really want to build to whole engine from scratch so