SV: Question on close button of modal windows

2010-04-15 Thread Wilhelmsen Tor Iver
You could do it with JQuery directly, or implement WiQuery dialog. The latter is preferrable, because if you close a ModalWindow in the browser with no roundtrip then the server side state will not be notified that it is closed, and thus might reappear if the page is refreshed as a whole. -

SV: Type Inference for Wicket 1.4

2010-04-15 Thread Wilhelmsen Tor Iver
ModelMySuperLongNameForASimpleFooObject model = Model.newModel(); Go on a hike in the Greek islands for six months, when you come back download Java 1.7 where you can do neato stuff like ModelMySuperLongNameForASimpleFooObject model = new Model(); Or use an IDE which automatically fills the

How to redirect to other page after downloading file

2010-04-15 Thread meduolis
Hello, I download file by getRequestCycle().setRequestTarget(requestTarget); How can I redirect to other page after download? setResponsePage(MyPage.class); does not work Thanks in advance -- View this message in context:

Re: MarkupComponentBorder and deprecation

2010-04-15 Thread Antoine van Wel
hmm, interesting, that would be nice-to-have. now it would be even better if inside this behavior one could add other markup just like labels which i is not possible with a MarkupComponentBorder. is that somehow doable? Antoine On Wed, Apr 14, 2010 at 5:59 PM, Igor Vaynberg

Re: http://cwiki.apache.org/WICKET is down

2010-04-15 Thread Gwyn Evans
Not much - the last news was here - https://blogs.apache.org/infra/ - and it looks as if the CWiki system's being restored at present as some of the area's are there, but many aren't, yet. /Gwyn On 14 April 2010 23:26, Carl Sziebert car...@gmail.com wrote: Any updates on when the reference

AjaxSubmitLink javadocs

2010-04-15 Thread Xavier López
Hi, I'm a liitle confused about AjaxSubmitLink's JavaDoc, and the code inside it... I'm using Wicket 1.3.6: If/when javascript is turned off in the browser, or it doesn't support javascript, then the browser will not respond to the onclick event, using the href directly. Wicket will then use

Re: Wicket Wiki

2010-04-15 Thread Gwyn Evans
Not really, but it looks as if there's some progress and the machines restore is underway, although it's not got to the Wicket spaces yet. Note that Apache was attacked the CWiki machine was one of the ones open to compromise - see https://blogs.apache.org/infra/ - but while it looks as if it's

Re: Type Inference for Wicket 1.4

2010-04-15 Thread James Perry
I can sympathise with that. However I don't think it would be a maintenance nightmare if the constructors are set to private; but that would mean a dramatic API change for such convenience and I'm guessing you're not willing to do this. Best, James. On 14 April 2010 17:01, Igor Vaynberg

show ConfirmDialog in the middle of some action/function

2010-04-15 Thread Roman Ilin
Hello dear Wicket Gurus, I'm currently rewrite one fat client java program to wicket one. And I have to say that mostly this isn't a big issue but there is one thing that I really miss in wicket. In a program is a lot of business logic there and we used ConfirmDialogs to go through branches. For

resources folder / package

2010-04-15 Thread Eyal Golan
Hello to you all, it's been a very long time since I wrote here. I have a question regarding folder locations. I am working with WiQuery and it is unbelievable great. Also the support there (thanks indiana ;) ) In WiQuery there are 'themes' and the location of the CSS and images is in a separate

Re: resources folder / package

2010-04-15 Thread Sigmar Muuga
You can define packages and put all CSS / JS files into them. Note that there must be some class also along with them, it may be an empty class. Then you can reference these resources using that class declaration. Note that if your css uses images, then you have to put correct paths into that

Re: Type Inference for Wicket 1.4

2010-04-15 Thread Thomas Kappler
On 04/15/10 13:06, James Perry wrote: I can sympathise with that. However I don't think it would be a maintenance nightmare if the constructors are set to private; but that would mean a dramatic API change for such convenience and I'm guessing you're not willing to do this. Apart from the huge

Re: jqery not getting called after ajax refresh

2010-04-15 Thread fachhoch
My link is a static html link its not ajax link ,and this link resides in AjaxFallbackDefaultDataTable , the repaint of this table containing is handled by AjaxFallbackDefaultDataTable. Please tell me how can I add the java script in this case ? -- View this message in context:

Wicket + Spring 3 + Hibernate

2010-04-15 Thread Steven Haines
Hi, I am at a point where I need to upgrade my application from Spring 2.5.6 to Spring 3.0.1.RELEASE. I have a working application and when I update Spring, I see the following exception on deployment: Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error

Re: jqery not getting called after ajax refresh

2010-04-15 Thread robert.mcguinness
have you tried using jQuery 1.4 live/delegate handlers? they will attach events to elements even after initial dom load. -- View this message in context: http://n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p1896790.html Sent from the Wicket - User mailing list archive

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Sigmar Muuga
What error? Next time post the stack :) On Thu, Apr 15, 2010 at 5:47 PM, Steven Haines lyg...@yahoo.com wrote: Hi, I am at a point where I need to upgrade my application from Spring 2.5.6 to Spring 3.0.1.RELEASE. I have a working application and when I update Spring, I see the following

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Steven Haines
I posted a few lines from the error, but here is the complete stack trace. My initial searches on this pointed to a circular dependency caused by autowiring, which may or may not be the case - when I removed the default-autowire parameter from my beans node then the error changed to state that

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Steven Haines
Sorry for the spam, I found the root cause of the problem - I guess there is some kind of circular dependency in Spring/Hibernate that appeared when I integrated the app with Wicket... I dont full understand, but I changed application context XML file to wire by name instead of type and the

Re: MarkupComponentBorder and deprecation

2010-04-15 Thread Igor Vaynberg
sure, you just have to build the render process yourself. -igor On Thu, Apr 15, 2010 at 2:08 AM, Antoine van Wel antoine.van@gmail.com wrote: hmm, interesting, that would be nice-to-have. now it would be even better if inside this behavior one could add other markup just like labels

Re: jqery not getting called after ajax refresh

2010-04-15 Thread fachhoch
No , please tell more on usingjQuery 1.4 live/delegate, you have any example ? ok one more easy solution may be if I add the function in onclick attribute of the link , but I dont know to write jquery function in onclick attribute , please tell me how can I write the jquery function in

Re: jqery not getting called after ajax refresh

2010-04-15 Thread robert.mcguinness
hopefully this helps: We can bind a simple click handler to this element: $('.clickme').bind('click', function() { // Bound handler called. }); When the element is clicked, the handler is called. However, suppose that after this, another element is added: $('body').append('lt;div

Re: jqery not getting called after ajax refresh

2010-04-15 Thread fachhoch
It works thanks . -- View this message in context: http://n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p1908182.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,

Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
Is there a way to add attributes to child components in a behavior that is added to a page? I want to create a behavior that is added to a page that adds some js to the header and then adds some js in an onfocus attribute of each child form component on the page. I have the list of child form

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Cemal Bayramoglu
Warren, See MarkupContainer#visitChildren Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 18:44, Warren Bell warr...@clarksnutrition.com wrote: Is there a way to add attributes to child components in a behavior that

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Mauro Ciancio
Take out the 'default-autowire=byName' from your beans.xml and it will work. Cheers! On Thu, Apr 15, 2010 at 12:21 PM, Steven Haines lyg...@yahoo.com wrote: Sorry for the spam, I found the root cause of the problem - I guess there is some kind of circular dependency in Spring/Hibernate that

Re: PackageResource that isn't tied to session; returns 302?

2010-04-15 Thread Nikita Tovstoles
Answering my own question: use Resource Reference: new Image(img, new ResourceReference(Page2.class, image.png)); On Wed, Apr 14, 2010 at 3:23 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Correction: PackageResource packageResource = PackageResource.get(Page2.class, image.png);

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
I have that figured out, I just don't know how to add the attribute to each component. I can't add a behavior, since Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Can I even do this in a behavior? Cemal Bayramoglu wrote: Warren, See

Re: show ConfirmDialog in the middle of some action/function

2010-04-15 Thread Roman Ilin
Any ideas? On Thu, Apr 15, 2010 at 1:33 PM, Roman Ilin roman.i...@gmail.com wrote: Hello dear Wicket Gurus, I'm currently rewrite one fat client java program to wicket one. And I have to say that mostly this isn't a big issue but there is one thing that I really miss in wicket. In a program

RE: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
Sorry if this got double posted, I didn't see it up there. I have that figured out, I just don't know how to add the attribute to each component. I can't add a behavior, since Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Can I even do

Re: show ConfirmDialog in the middle of some action/function

2010-04-15 Thread Sven Meier
Hi Roman, you'd need continuations for modal dialogs, see: https://issues.apache.org/jira/browse/WICKET-598 Sven Roman Ilin wrote: Any ideas? On Thu, Apr 15, 2010 at 1:33 PM, Roman Ilin roman.i...@gmail.com wrote: Hello dear Wicket Gurus, I'm currently rewrite one fat client java

Re: show ConfirmDialog in the middle of some action/function

2010-04-15 Thread Roman Ilin
I use current stable wicket 1.4 on JBoss. Wicket application is only small part of our EE project. So Jetty continuations isn't an option for me. On Thu, Apr 15, 2010 at 10:08 PM, Sven Meier s...@meiers.net wrote: Hi Roman, you'd need continuations for modal dialogs, see:        

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Michael O'Cleirigh
Hi Warren, The way I normally handle this situation is to create a javascript emitting behaviour that is attached to the container. This behaviour will emit the necessary javascript method to do what you need to do. Then for each child component you can use an AttributeModifier to write

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Cemal Bayramoglu
I assume you were trying this in beforeRender of your behaviour, which as you say is too late. If you really need to use a behaviour encapsulate all this, try something like the following, but some may feel its a little politically incorrect to do this in bind. class MyBehaviour extends

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Cemal Bayramoglu
... and if you're not building your component tree before you add such an IBehaviour to the parent container you can instead override onBeforeRender on that container to do something like: @Override public void onBeforeRender() {

Re: resources folder / package

2010-04-15 Thread Eyal Golan
hi, thanks. I know this, but my question was different. I saw in some projects that the JS and CSS files are in the same hierarchy as the class that is used for their scope, but the main folder is different. Example: I have a Java class: com.myCompany.ResourceScope.java it is located under src. I

Re: resources folder / package

2010-04-15 Thread Cemal Bayramoglu
Eyal, This is not to do with Wickets resource loading. Its got to do with how you set up your build mechanism, and in particular, which files, from which folders you tell it to include in the creation of the target (folders or archives). In other words, you need to tell Maven or Ant or your IDE

Re: resources folder / package

2010-04-15 Thread Apple Grew
@Eyal Maybe you would like to have a look at this thread. http://n4.nabble.com/resource-css-loading-td1878209.html Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Fri, Apr 16, 2010 at 2:41 AM, Eyal Golan egola...@gmail.com wrote: hi, thanks. I know this, but my question was

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
I ended up doing it in bind of the behavior and it works fine. I just have to remember to add the behavior to the page after all the other components. Thanks I assume you were trying this in beforeRender of your behaviour, which as you say is too late. If you really need to use a behaviour

Re: Type Inference for Wicket 1.4

2010-04-15 Thread Jeremy Thomerson
This is the key - and it has been discussed before (in the many grueling 1.4 conversations). The short of it is that with private constructors there's a huge change and an inability to extend. And without the private constructors, the static methods are dumb and extraneous because you would need

Re: AjaxSubmitLink javadocs

2010-04-15 Thread Jeremy Thomerson
This appears to be an issue in the documentation of the AjaxSubmitLink. I just checked and the documentation is still the same in 1.4. I will try to verify this and fix it tomorrow. In the meantime, it would be helpful if you opened a JIRA issue to keep track of this (post the link back to this

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Jeremy Thomerson
Yes, this is risky. Why not add the appropriate onclick handler via JS on the client side? i.e., you could output javascript (jQuery in this example) that says: $('#myTableID tr').click(function() { // do whatever your onclick should do }); That's just another option - not necessarily the