Re: How to deal with IE bug/feature 'return form submit' in Wicket?

2009-02-26 Thread Wayne Pope
Hi Jeremy, thanks very much for helping. I went with the first suggestion which seems to work fine. The code is essentially now: = new Form() { add(new AjaxButton() { void onSubmit() { if(!form.isSubmitted()) { onSubmit(); } } void onSubmit() {

Re: How to deal with IE bug/feature 'return form submit' in Wicket?

2009-02-26 Thread Wayne Pope
Just looking through some of our forms and this isn;t going to work where we have 2 ajaxbuttons in the same form. I suppose we'll need to separate the forms or something now. On Thu, Feb 26, 2009 at 9:06 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi Jeremy, thanks very much for

How to send serialize/byteArrayOutput stream from wicket page

2009-02-26 Thread freak182
Hello, How can i send a serialize object using byteArrayOutput stream in wicket page. here is my code: public class BridgeIndex extends WebPage { public BridgeIndex() { final HttpServletResponse response = getWebRequestCycle().getWebResponse().getHttpServletResponse();

Re: Quickstart for jar

2009-02-26 Thread Martijn Dashorst
Nope, but it is really easy to modify the default quickstart archetype to do your bidding: packagingwar/packaging - packagingjar/packaging Martijn On Thu, Feb 26, 2009 at 6:04 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hi, Do we have jar quickstart with resources filter added

Re: How to send serialize/byteArrayOutput stream from wicket page

2009-02-26 Thread Jonas
I think the wicket way to do this is using a org.apache.wicket.markup.html.WebResource (or any of its subclasses) instead of a WebPage On Thu, Feb 26, 2009 at 10:45 AM, freak182 eman.noll...@gmail.com wrote: Hello, How can i send a serialize object using byteArrayOutput stream in wicket

Re: How to send serialize/byteArrayOutput stream from wicket page

2009-02-26 Thread Johan Compagner
you cant do it like that look at ResourceStreamRequestTarget what you want is a combination of that and AbstractRestartResponseException so you must set the RequestTarget in the RequestCycle and then throw an AbstractRestartResponseException (just like RestartResponseException works) johan On

WebMarkupContainer and AjaxSelfUpdatingTimerBehavior

2009-02-26 Thread Fabien D.
Hi, I want to refresh every 5s my 4 listviews. So I have use AjaxSelfUpdatingTimerBehavior with them. But it was not working, the solution that I have found here, is to put their in a WebMarkupContainer. Now it's working for resfreshing... But every 5 secondes I have 4 new listviews adding to

exception on opening a new window

2009-02-26 Thread Vlad Carcu
hi, i have this exception when i open my application in a new tab on my browser: java.lang.ClassCastException: cannot assign instance of org.apache.wicket.proxy.$Proxy17 to field com.asf.crm.portal.gui.AdvancedSearchPanel.crmPortalService of type com.asf.crm.portal.service.CrmPortalService in

Re: GSoC ideas for 09

2009-02-26 Thread C. Bergström
btw.. are any of the core devs interested or willing to mentor? Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. ./C

Re: GSoC ideas for 09

2009-02-26 Thread Martijn Dashorst
It seems like a lame proposition to coerce us to do your bidding just because you think it is a good idea. You're not the one to tell us how to spend our personal time, or whether the choices we make on how to spend our own time is lame or not. There's a Wicket Stuff project where anyone can

Re: GSoC ideas for 09

2009-02-26 Thread C. Bergström
Martijn Dashorst wrote: Martijn Thanks Martijn.. You've shown me what a good catalyst and community leader you finally are.. It's not about my bidding.. I push for gsoc.. my points are valid.. others have brought up other good points.. and yet when I push in general you make it personal.

Re: Wicket + iframe Session Question

2009-02-26 Thread nino martinez wael
Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with nabble 2009/2/26 freak182 eman.noll...@gmail.com Hello, How can I get the session from my main application to the application in the iframe? here is the scenario: 1. I have a

Feedback message on AJAX submit setResponsePage()

2009-02-26 Thread Conrad Hesse
Hi, I have the following use case: A form contains an AJAX submit button. The onSubmit() looks like this: public void onSubmit(AjaxRequestTarget target, Form? inviteForm) { if (..some case...) { info(This does not show up); setResponsePage(getPage()); } else {

Re: GSoC ideas for 09

2009-02-26 Thread Jeroen Steenbeeke
Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. I've found that the best way to convince people does not involve insulting the person you're trying

Re: Wicket + iframe Session Question

2009-02-26 Thread Ernesto Reinaldo Barreiro
I think InlineFrame is the guy... On Thu, Feb 26, 2009 at 12:47 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with nabble 2009/2/26 freak182 eman.noll...@gmail.com

[AjaxTabbedPanel] Switching between form and result tab

2009-02-26 Thread valery . chhoa
Hi, I have an AjacTabbedPanel with two tabs. The first tab is a form which, when submitted, show the result on the second tabs. So far, everything's fine. I want to keep the input from the form after the submit so that the user can come back to the first tab and have a look at what the

Re: WebMarkupContainer and AjaxSelfUpdatingTimerBehavior

2009-02-26 Thread Fabien D.
I really need your help. I have replaced the WebMarkupContainer by a Panel. I use the methode addOrReplace (Component child) in my panel. When I arrived in the page, everybody is fine but when it refreshs it, It adds one time in more the panel in the top of my page!! My Page :

Re: GSoC ideas for 09

2009-02-26 Thread Richard Allen
I did some reading and found that a mentoring organization for the GSoC is considered A group running an active free/open source software project. That seems to imply a core committer would need to be involved. See:

Re: GSoC ideas for 09

2009-02-26 Thread Richard Allen
The words of C. Bergstrom may have been poorly chosen, but he seems to have the same goal of wanting Wicket to succeed and grow in popularity. Providing harsh responses to users that, despite poor communication, are otherwise excited about your project does not help to grow your community or get

Re: AjaxSelfUpdatingTimerBehavior and ModalWindow

2009-02-26 Thread dtoffe
I post my solution just in case someone else finds it useful. I've created a copy of AbstractAjaxTimerBehavior and added the methods in AjaxSelfUpdatingTimerBehavior. Then I added a start method: public final void start(final AjaxRequestTarget target) { stopped = false;

Re: GSoC ideas for 09

2009-02-26 Thread Martijn Dashorst
While I am perfectly capable of working on Wicket in my spare time without being rewarded, I find it way out of line to characterize the way I spend my own time as lame when such that doesn't fit the criteria of anyone. Being characterized as lame because we are engaged in other things, such as

Re: Application.CONFIGURATION

2009-02-26 Thread Brill Pappin
But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after testing. Anyway, I'm sure it works :) - Brill On 24-Feb-09, at 12:26 PM,

Wicket Portlets on WAS 7.5

2009-02-26 Thread suneeelu
Hi, We are trying to run the echo wicket example application as a wicket portlet on WAS 7.5. We are able to load the echo application as a portlet but when we enter any text and submit the form, the form doesn't gets submitted and the page always gets loaded with the default echo text. We are

Re: What IDE best fits with Wicket?

2009-02-26 Thread Brill Pappin
I don't think we're talking about the same plugin then (although you seem to be calling it the same thing)... I'm referring to: http://m2eclipse.codehaus.org/ It's the *only* one I've found that *actually works* properly, particularly for larger projects... although I run the dev

LocaleDropDown does not switch locale anymore when deployed on server

2009-02-26 Thread Roman Zechner
Hi, we are using the LocaleDropDown component mentioned in Wicket in Action. While it works on the local machine, it does not when deployed on our server. We need to switch between German and English. German works on my local machine, on the server it doesn't. Any ideas? Roman

Re: What IDE best fits with Wicket?

2009-02-26 Thread Brill Pappin
you can mix Ant and Maven easily with the antrun plugin. another option is to use the inline maven goal for the war plugin which I think will allow you to edit the HTML in place. Your issue it certainly not a new one... most of the very good designers i know don't even want to know how to run

need some help with why a setResponsePage renders twice in a custom component

2009-02-26 Thread Brill Pappin
I've got a custom component based on the TabPanel where instead of updating the panel content it actually calls a setResponsePage(Page). However after setting the first tab, a click on any other tab renders the new page just fine except that the page for tab 0 is also rendered, and I mean

Re: need some help with why a setResponsePage renders twice in a custom component

2009-02-26 Thread Brill Pappin
Of course, no sooner do I post this, i find the problem. Since I dumped code on you folks, here is the working replacement in case anyone has a need for this. - Brill On 26-Feb-09, at 11:38 AM, Brill Pappin wrote: I've got a custom component based on the TabPanel where instead of

Re: Wicket Security Question

2009-02-26 Thread Philippe Laflamme
FYI: it's not clear what will happen with the wicket-security package. The original maintainer sadly passed away last year and no-one has officially taken the torch. We've used both packages (auth-roles and swarm), but neither with spring-security. We'd like to move to using spring-security

Wicket ResourceReferences Fail (invalid url) portal-container on GlassFish

2009-02-26 Thread Francisco Diaz Trepat - gmail
Hi guys, I've received the news that our application could need portlet support. We turned to wicket 1.4rc2 and OpenPortal portal-container which runs on glassfish v3 (just to choose one portal, has netbeans support). With that we started playing around with it, and get to know it. After endless

Re: Wicket Security Question

2009-02-26 Thread Nino Martinez
I might pick it up (But since it's not something I need right now, it has low priority).. But was hoping that Wayne Pope would get back and tell whats state it is in.. Philippe Laflamme wrote: FYI: it's not clear what will happen with the wicket-security package. The original maintainer sadly

Re: Application.CONFIGURATION

2009-02-26 Thread James Carman
On Thu, Feb 26, 2009 at 11:11 AM, Brill Pappin br...@pappin.ca wrote: But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after

Re: inmethod datagrid, ajax interactions between cells

2009-02-26 Thread jcgarciam
I haven't used inmethod datagrid yet but i guess i wont be different with another Wicket model component, so just clear the property of your Underlying model, that should be enough. Will Jaynes-4 wrote: I'm working with the inmethod datagrid. I would like to set up some ajax interactions

Re: inmethod datagrid, ajax interactions between cells

2009-02-26 Thread Will Jaynes
Yes. That would addresses the specific example I sited, but not the general question I have. Suppose I wanted the other cell to turn yellow, or change it to a dropdown, or anything that affects the component, not necessarily the model. On Thu, Feb 26, 2009 at 2:40 PM, jcgarciam

Re: Application.CONFIGURATION

2009-02-26 Thread Brill Pappin
chuckle so have I, as I think most developers have... :) - Brill On 26-Feb-09, at 2:18 PM, James Carman wrote: On Thu, Feb 26, 2009 at 11:11 AM, Brill Pappin br...@pappin.ca wrote: But don't you run the risk of deploying a development version to production by mistake? If you simple start

using a model with DropDownChoice

2009-02-26 Thread Brill Pappin
For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill

Re: Wicket + iframe Session Question

2009-02-26 Thread freak182
Hello, It is an InlineFrame reiern70 wrote: I think InlineFrame is the guy... On Thu, Feb 26, 2009 at 12:47 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with

Re: using a model with DropDownChoice

2009-02-26 Thread Kaspar Fischer
On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with

Re: Depricated HeaderContributor.forJavaScript?

2009-02-26 Thread Daniel Ferreira Castro
Another doubt about this subject. I have overriden the addHeaders method like below. How should I do to make wicket write the charset property/attribute? @Override protected void addHeaders() { add(JavascriptPackageResource.getHeaderContribution(Index.class,./javascript/jquery.js));

Re: using a model with DropDownChoice

2009-02-26 Thread Brill Pappin
Roughly what I'm doing is: class TypeA{} class TypeAModel extends LoadableDetachableModel ListTypeA { public ListTypeA load(){ ... do the load ... return ... } } TypeAModel model = new TypeAModel(); DropDownChoice TypeA ddc = new

Re: using a model with DropDownChoice

2009-02-26 Thread Jeremy Thomerson
This is what I was commenting on last week on the list (or earlier this week). One expects List? extends Foo while the other expects ListFoo. I'm not fully convinced yet that the ? extends is the better option. Either way, I think they should be the same. -- Jeremy Thomerson

Re: using a model with DropDownChoice

2009-02-26 Thread Igor Vaynberg
? extends Foo collections are read only, it would be too inconvenient to make the model collection read only :) -igor On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This is what I was commenting on last week on the list (or earlier this week).  One expects

Re: using a model with DropDownChoice

2009-02-26 Thread Brill Pappin
Do you mean that I should do something to make the list read only or that it should have the same generic definition? IMO they should all work the same way... so I'm +1 for the ListFoo. syntax. Also, I'm not sure that they mean read only. AFAIK it just means that the unknown object must

Re: GSoC ideas for 09

2009-02-26 Thread nino martinez wael
I'll be happy to mentor, what does it require?. I do have a life besides Wicket/Wicketstuff as Martijn has :) regards Nino 2009/2/26 Martijn Dashorst martijn.dasho...@gmail.com While I am perfectly capable of working on Wicket in my spare time without being rewarded, I find it way out of

Re: Wicket Security Question

2009-02-26 Thread Wayne Pope
Hi, In terms of SWARM etc its in the pre-generics stage. It didn't take much to get it working with the latest wicket version mind. It works fine, however it wan't what we needed in the end - we went with the wicket.aurthorization package and rolled our own dynamic acl-list/roles etc. I had some

Re: What IDE best fits with Wicket?

2009-02-26 Thread Emond Papegaaij
That is the plugin Martijn is talking about, and I am one of the co-workers he mentioned. I tried the m2eclipse plugin and used it for a day. The plugin (version 0.9.7.200902090947) was able to checkout the project from svn and create eclipse projects for all modules, so far so good, although