WicketStuff Animator

2012-04-18 Thread Andrew Williams
Hi guys, I have just upgraded a large project from wicket 1.3 to 1.4(.18) and needed to update wicketstuff-animator. I now have a patch against the import-backup on github but have no idea how / where to contribute this. Should I fork the backup (weird) or can I start a new repo from the code

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-18 Thread dpmihai
I saw that the resolution for this bug(https://issues.apache.org/jira/browse/WICKET-4496) is Not a problem using getDefaultModelObject(). But it remains a question. If I have a DatetimeField and I want an AjaxFormComponentUpdatingBehavior so that if I click the button, or if I change the hours or

Message piggybacking vs polling

2012-04-18 Thread Jürgen Lind
Hi, I am currently evaluating my options for (semi) pro-active messages to the user. The first idea was to use an AjaxSelfUpdatingTimerBehavior to poll for new messages for the user. Since this might put quite some unnecessary load on the server, I was thinking about using the current request

Re: Message piggybacking vs polling

2012-04-18 Thread Martijn Dashorst
Reserve a hidden part of your pages to render the messages, and create some javascript kung fu to read those messages and display them in some way. Create an onEvent() handler that adds the messages container to the ajax request target, and calls your javascript kung fu master. See the wiki for

Re: Message piggybacking vs polling

2012-04-18 Thread Jürgen Lind
Hi Martin, thank you for the quick response. The onEvent Method was the part I was looking for... A quick check showed me that this should work as I would like it to... BTW: I think Wicket is a real great piece of Software... Cheers, J. On 18.04.2012 09:15, Martijn Dashorst wrote: Reserve

Re: Message piggybacking vs polling

2012-04-18 Thread Martin Grigorov
Hi, You can also check Wicket-Atmosphere integration for Wicket6. For now it is in a separate Git branch but if you find it useful for your use case then you can send your feedback. On Wed, Apr 18, 2012 at 10:33 AM, Jürgen Lind juergen.l...@iteratec.de wrote: Hi Martin, thank you for the

Re: wicktTester.getLastResponseAsString() returns strange result in starting a Component

2012-04-18 Thread Martin Grigorov
Hi, There is a bug. Please file a ticket with a simple quickstart. Thanks! On Wed, Apr 18, 2012 at 12:55 AM, carsten behring carsten.behr...@gmail.com wrote: Dear all, This following test : @Test public void test() throws Exception {  WicketTester tester=new WicketTester();  

Re: Wicket And Multi-threaded Business Object

2012-04-18 Thread Martin Grigorov
Hi, These objects should not be serialized is they are referenced only by the Application instance, so remove implements Serializable and all 'transient's from their fields. Hopefully this will show the problem why the timer doesn't re-schedule. On Tue, Apr 17, 2012 at 7:38 PM, cmagnollay

problem with page refresh

2012-04-18 Thread alezx
Hi guys, I ran into a problem lately, I have an instance variable in my panel and an ajax behaviour public final class ScrollLoader extends Panel implements IHeaderContributor { int number = 0; private AbstractDefaultAjaxBehavior b; .. //constructor public Scrolloader (...){ b

Re: problem with page refresh

2012-04-18 Thread Martin Grigorov
Hi, I see you use 1.4.x (implementing IHeaderContributor). Which url coding strategy is used for this page ? I'd recommend you to use HybridUrlCodingStrategy because it keeps the page id in the url (something like: my/page.4) This is the reason why urls for stateful pages in Wicket 1.5 also keep

Using @font-face css rules

2012-04-18 Thread Dirk Forchel
I have a problem loading my fonts defined in my css file with the @font-face css rule which allows me to download the fonts from my server. Initally I define the rules in my css file the following way: The css-file is references by a CssResourceReference and contributed to the header with a

Re: Using @font-face css rules

2012-04-18 Thread Martin Grigorov
Hi, The problem is that '..' escapes from the package name. See org.apache.wicket.settings.def.ResourceSettings#parentFolderPlaceholder Replace '..' with whatever you use for parentFolderPlaceholder On Wed, Apr 18, 2012 at 3:45 PM, Dirk Forchel dirk.forc...@exedio.com wrote: I have a problem

Re: Using @font-face css rules

2012-04-18 Thread Martin Grigorov
Another approach is to put the resources in an inner folder like /com/foo/wicket/behavior/res/css/font_face.css /com/foo/wicket/behavior/res/fonts/sansation_regular-webfont.eot /com/foo/wicket/behavior/res/FontFaceCssResourceReference.java On Wed, Apr 18, 2012 at 3:52 PM, Martin Grigorov

Re: problem with page refresh

2012-04-18 Thread Jonathan Tougas
Hi Ale. I had a very similar problem, and I was able to get the behavior I expected by changing the render strategy to ONE_PASS_RENDER in Application.init(). Have a look at this http://apache-wicket.1842946.n4.nabble.com/refresh-and-AjaxFallbackDefaultDataTable-td4384935.html On Wed, Apr 18,

Re: Using @font-face css rules

2012-04-18 Thread Dirk Forchel
Thanks. I go for the 2nd approach and it seems to be working except the access to static packages resources with an unknown file ending. What did you mean with The problem is that '..' escapes from the package name. See

Close Pop-up Window From Server?

2012-04-18 Thread eugenebalt
Maybe this isn't strictly a Wicket question, but I have a link from the main page which opens a pop-up window. The pop-up has a form handled by a servlet (in my case, a Wicket page mounted to a servlet-like URL). Upon completing the form in the pop-up, I need to close the pop-up window *from the

Re: Close Pop-up Window From Server?

2012-04-18 Thread Dominik Sandjaja
Hi, I am not sure if I understood it correctly, but my first idea would have been to add a javascript to the popup window which fires AJAX calls and if the response from your server contains some code the window will close itself. To be honest, I have never tried anything like that and have

How to prevent linebreaks after radio input ?

2012-04-18 Thread heikki
hello, Wicket inserts br / after radio input elements generated by RadioChoice. How can I prevent that ? My code: RadioChoiceString optionsRadioChoice = new RadioChoiceString(option, new PropertyModelString(this, option), optionsList); add(optionsRadioChoice ); This generates this HTML:

Re: How to prevent linebreaks after radio input ?

2012-04-18 Thread Martin Grigorov
org.apache.wicket.markup.html.form.RadioChoice#setPrefix , #setSuffix On Wed, Apr 18, 2012 at 6:48 PM, heikki tropic...@gmail.com wrote: hello, Wicket inserts br / after radio input elements generated by RadioChoice. How can I prevent that ? My code: RadioChoiceString optionsRadioChoice

AbstractAjaxBehavior and ModalWindow

2012-04-18 Thread Brian Mulholland
I have a page where I show a javascript widget. Based on events in said widget, I may fire one of five different ajax events. On some of them, I am required to show a modal window with a form in it. I am using, based on advice found while googling, AbstractAjaxBehavior to handle the ajax

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-18 Thread Heikki Uotinen
As expected KB2675157 fixed this IE9 issue, nice timing though. -Original Message- From: Heikki Uotinen [mailto:heikki.uoti...@syncrontech.com] Sent: 12. huhtikuuta 2012 10:18 To: users@wicket.apache.org Subject: RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5) Ok,

Re: Unable to find error during hello World

2012-04-18 Thread Marc Marc
Martin, thanks for your test. This allowed me to deduce that the cause is elsewhere: I found it now: I did not stopped the embedded Jetty server before trying my changes. Regards, Marc From: Marc Marc marc.m...@mail.be Sent: Sun Apr 15 08:47:21 CEST

AW: AbstractAjaxBehavior and ModalWindow

2012-04-18 Thread Hans Lesmeister
Hi, if you are inside an Ajax-Request you can simply do AjaxRequestTarget.get() cheers Hans -Ursprüngliche Nachricht- Von: Brian Mulholland [mailto:blmulholl...@gmail.com] Gesendet: Mittwoch, 18. April 2012 18:34 An: users@wicket.apache.org Betreff: AbstractAjaxBehavior and

Re: Help I need to understand page locking

2012-04-18 Thread jchappelle
I am having this same issue. Have you figured out what the issue was? Thanks, Josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-I-need-to-understand-page-locking-tp3543950p4568549.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!

2012-04-18 Thread kshitiz
Your guess is rightthank you for the help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4568555.html Sent from the Users forum mailing list archive at Nabble.com.

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread fachhoch
If a page is stuck with this error , is there any way I can identify this and throw a RestartResponseAtInterceptPageException exception to error page ? I am using wicket 1.4.12 -- View this message in context:

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread Martin Makundi
You can kill it in Session but killing a thread will leave it in unknown state. ** Martin 2012/4/18 fachhoch fachh...@gmail.com: If a page is stuck with this error , is there any way I can identify this and throw  a RestartResponseAtInterceptPageException exception to error page ? I am using

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread Igor Vaynberg
its a servlet container thread, probably not safe to kill... maybe we can have implement a hard-evict from the store, and some strategy to handle these cases. -igor On Wed, Apr 18, 2012 at 11:42 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You can kill it in Session but killing

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread Martin Makundi
We got some of these because of: - database deadlocks (unsorted race situation) - non-threadsafe access to hashmaps (hashmap/treemap has cool possibility to hang when used from multiple threads without synchronization) - excplicit lock bugs (reentrantlocks) I recommend to debug by displaying

behaviour and busy indicator

2012-04-18 Thread jasp
Hello, I'm trying get Ajax Indicator working for my form validating behaviour. Basically I have a thing that takes time to check on server. Meanwhile I'd like to show user a busy indicator. I tried to do following thing: *This is page class, with basic form input:* //...omitted some not

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread fachhoch
here is stack trace , with this please help me identify the thread causing the lock, my applciation is deployed in weblogic. I assume once the thread is identified I have to use weblogic admin console to kill this particular thread ? -- View this message in context:

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread Doug Leeper
There are a lot more threads that are running within a Weblogic container. The thread you are showing is not the thread that is creating the lock. It is the thread that is indicating the page map is locked. Also, I don't believe there is a way to kill a particular thread in weblogic. It only