SV: Type Inference for Wicket 1.4
> Model 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 Model model = new Model<>(); Or use an IDE which automatically fills the second set of braces for you (I think most except Apple's XCode do
How to redirect to other page after downloading file
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: http://n4.nabble.com/How-to-redirect-to-other-page-after-downloading-fi
Re: MarkupComponentBorder and deprecation
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 wrote: > no, you c
Re: http://cwiki.apache.org/WICKET is down
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 wrote: > Any updates on when the reference site will be availa
AjaxSubmitLink javadocs
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 us
Re: Wicket Wiki
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
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 wrote: >
show ConfirmDialog in the middle of some action/function
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
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 f
Re: resources folder / package
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 css
Re: Type Inference for Wicket 1.4
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
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: http
Wicket + Spring 3 + Hibernate
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 creatin
Re: jqery not getting called after ajax refresh
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 at
Re: Wicket + Spring 3 + Hibernate
What error? Next time post the stack :) On Thu, Apr 15, 2010 at 5:47 PM, Steven Haines 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 exception on de
Re: Wicket + Spring 3 + Hibernate
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 t
Re: Wicket + Spring 3 + Hibernate
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 prob
Re: MarkupComponentBorder and deprecation
sure, you just have to build the render process yourself. -igor On Thu, Apr 15, 2010 at 2:08 AM, Antoine van Wel 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 which i is not possible wi
Re: jqery not getting called after ajax refresh
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 onc
Re: jqery not getting called after ajax refresh
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('Re: jqery not getting called after ajax refreshIt 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, e-mail
Adding attributes to child components in a behavior.
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 compo
Re: Adding attributes to child components in a behavior.
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 wrote: > Is there a way to add attributes to child components in a behavior that > is added to a page? I wa
Re: Wicket + Spring 3 + Hibernate
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 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 appeared when
Re: PackageResource that isn't tied to session; returns 302?
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, > "ima
Re: Adding attributes to child components in a behavior.
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, Se
Re: show ConfirmDialog in the middle of some action/function
Any ideas? On Thu, Apr 15, 2010 at 1:33 PM, Roman Ilin 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 is a lot of bu
RE: Adding attributes to child components in a behavior.
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 t
Re: show ConfirmDialog in the middle of some action/function
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 wrote: Hello dear Wicket Gurus, I'm currently rewrite one fat client java program to wicket one
Re: show ConfirmDialog in the middle of some action/function
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 wrote: > Hi Roman, > > you'd need continuations for modal dialogs, see: > > https://issues.apach
Re: Adding attributes to child components in a behavior.
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 the
Re: Adding attributes to child components in a behavior.
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 Abs
Re: Adding attributes to child components in a behavior.
... 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
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
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
@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 wrote: > hi, > thanks. > I know this, but my question was different. > I saw
Re: Adding attributes to child components in a behavior.
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 e
Re: Type Inference for Wicket 1.4
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
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.
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 bes