Re: GWT-like

2009-04-29 Thread Vladimir K
Igor, I believe it is not so bad idea to embed third-party JS components with ease (those who are capable to wrap existing div tag). 1. Wicket applications can be leveraged by many well designed and tested JS components 2. It reduces hardware requirements and imroves scalability due to smaller nu

Re: ModalWindows...

2009-04-29 Thread Vladimir K
put the following into the section of your page: jQuery(document).ready(function(){ if (typeof Wicket != 'undefined' && Wicket.Window) Wicket.Window.unloadConfirmation = false;

Re: ModalWindows...

2009-04-29 Thread Enrique Rodriguez
There's a good write-up here: http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup Enrique On Wed, Apr 29, 2009 at 4:17 PM, Warren Bell wrote: > I am not sure this is what you are looking for. Check > setWindowClosedCallback > >       yourModalWindow.setWindowClose

Re: ModalWindows...

2009-04-29 Thread Warren Bell
I am not sure this is what you are looking for. Check setWindowClosedCallback yourModalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { // do what you need to do

Re: wicket + jbpm

2009-04-29 Thread freak182
yes, that one from JBoss. nino martinez wael wrote: > > this one : http://www.jboss.com/products/jbpm/ ? > > > > 2009/4/29 Eman Nollase : >> Hello, >> >> Is there a wicket + jBPM integration? Thanks a lot. Cheers. >> > > -

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Martijn Dashorst
Our current stack: - maven - Java 6 - hibernate - spring - Wicket - svn - hudson - artifactory (though we might switch to another one) [ - sonar (icing on the cake) ] Wendy Smoak taught me an valuable lesson: use a company repository manager for maven, and a local one on your machine. This

Need to Understand CheckGroup and Check

2009-04-29 Thread Fang Lin
The examples at http://wicketstuff.org/wicket13/compref/;jsessionid=2AF2BC5B8195BE6BA0EFADE26E35292F?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.CheckGroupPage and http://cwiki.apache.org/WICKET/listview-with-checkboxes.html provided some help, but don't have enough details, such a

Re: ModalWindows...

2009-04-29 Thread Vidhya Kailash
For issue 1: Just google: "are you sure you want to navigate away from this page" 2: Here is the OnSubmit method:     form.add(new Button("search") {         public void onSubmit() {             Volunteer volunteer = (Volunteer) getForm().getModelObject();             logger.info("@@@ Voluntee

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Per Lundholm
+1 for that book but we are reaching beyond the scope of the question. I would prefer that designers and programmers stepped on each others toes all the time rather than working on separate branches. The former is more agile. /Per On Wed, Apr 29, 2009 at 10:21 PM, Brill Pappin wrote: > Heres an

Re: GWT-like

2009-04-29 Thread Per Lundholm
Yeah but I have a really bad experience with GWT. If the number of objects that are on a page goes up, performance decreases drastically due to the use of Javascript. No wonder Google wrote a browser of their own. Take a look at AjaxLazyLoadPanel if it might do the trick for your heavier parts. J

Re: How to test AjaxFormChoiceComponentUpdatingBehavior for Radio Button

2009-04-29 Thread Schwame
I have the same question as the below reader. I scoured the mailing lists, wiki and the javadoc. I have attached a quick-start application that shows the problem. When I run the application the AjaxFormChoiceComponentUpdatingBehavior works as expected! However, when I run the unit test and us

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin
Heres another book for you. This is actually one of my favorites, particularly if you working with existing code. http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052 - Brill Pappin On 29-Apr-09, at 4:11 PM, Dane Laverty wrote: Thanks again to everyone for all

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin
Your unable to use a repo like Archiva? You should be able to package up your customer components and maintain versions by deploying to archiva... we do the same thing, and its a life saver, particularly when you have legacy projects that use older versions of a component. Our archiva repo

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin
+1 Thats almost exactly our preferred setup. - svn (instead of cvs) - maven (check the quickstart project on the wicket page) - archiva (your own maven repository) - hudson (continous integration build system) Kind regards Florian Sperber --

Re: ModalWindows...

2009-04-29 Thread Manuel Corrales
Can you give us more information? 1. I am not familiar with any popup when you are closing a modal window. Can you be more specific or show some code? 2. What's your code inside the onSubmit method? Regards. On Wed, Apr 29, 2009 at 1:12 PM, Vidhya Kailash wrote: > I am newbie and apologize if th

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Dane Laverty
Thanks again to everyone for all the feedback. I'm reading through Design Patterns and Wicket in Action, but I've never heard of Effective Java. The Amazon reviews for that book are also amazing. I've got it ordered now and am excited to see what it will bring. On Wed, Apr 29, 2009 at 12:37 PM, Sc

Weird DatePicker / DateTextField off by one hour

2009-04-29 Thread Ryan LaHue
I have a DateTextField to which I am adding a DatePicker. The Display works fine: if I select 4/1/2009 using the DatePicker and I save the form data to my database, then populate the form again from values in the database, I am seeing 4/1/2009. But when I look at my database I see that the stored

Re: Null model with CheckGroup

2009-04-29 Thread Igor Vaynberg
just like with any choice component in wicket, items are checked if they are contained in the same collection model they would be put in on submit, so in your case if the collection that is the model object of the checkgroup contains the same value as the check's model object the check is checked.

Re: Null model with CheckGroup

2009-04-29 Thread OjO
With CheckBox, I can pass in the Boolean value. But with Check, how do I let it know the item should be displayed as checked initially? OjO wrote: > > How does the Check object determine if the checkbox should be tagged as > checked? > > > > igor.vaynberg wrote: >> >> in the example checkgro

Re: Null model with CheckGroup

2009-04-29 Thread OjO
How does the Check object determine if the checkbox should be tagged as checked? igor.vaynberg wrote: > > in the example checkgroup inherits a property of the > compoundpropertymodel as its model. i suggest you read the models wiki > page. > > -igor > > On Fri, May 23, 2008 at 8:36 AM, seanb

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Scott Swank
I agree with Jeremy, that tech books are probably far more important than project management books for a first Java project. Basics -Effective Java, Joshua Block -Wicket in Action, Dashorst & Hillenius -one more on jdbc or hibernate or ibatis -- your persistence api Design (language agnostic) -De

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Jeremy Thomerson
I would HIGHLY recommend that each of you get a copy of Joshua Bloch's Effective Java, now in it's second edition. It's not really project management, but since your team as a whole is not mature with Java, it will offer some good advice. Of course, make sure everyone is familiar with Wicket in A

Re: GWT-like

2009-04-29 Thread Igor Vaynberg
dont try to make wicket into gwt. if you want a fat client then use gwt, if you want a server-side app then use wicket. -igor On Wed, Apr 29, 2009 at 8:06 AM, kan wrote: > Is there any easy way to make wicket applications like GWT? I mean to > make a "heavy client side", so it will allow easy ma

Re: GWT-like

2009-04-29 Thread kan
Yes, I thought about jQuery, and even have found a WickeXt project. But it doesn't give a flexibility - so I cannot easily mix and manage pre-load/cache strategies. And I don't know easy way to make AJAX requests cached, only by explicit javascript, and it eliminates Wicket advantages. 2009/4/29 J

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread TahitianGabriel
With Ajax you should use (instead of onSelectionChanged) : myDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(final AjaxRequestTarget varTarget) { /* do you stuff here... */ if (varTarget != null) {

Processing.js

2009-04-29 Thread Paul Logasa Bogen II
I've been looking at a really slick visualization library called Processing.js (http://processingjs.org) and I'm thinking about writing a Wicket component the embeds it. Before I go stumble off blindly in that direction, I wanted to check if anyone else was already working on one or if anyone

TreeTable and column issues

2009-04-29 Thread Karen Schaper
Hi, I need help with an issue I am having with the org.apache.wicket.extensions.markup.html.tree.table.TreeTable component. Is there anyway to have the column widths adjust to the data that is in the table? If the columns are not wide enough the data does not appear. The customer has comp

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Conrad Hesse
Hi Dane, > At my previous job, we used CVS for managing code contribution and Ant for > deployment. Is that still a good solution, or should I be looking at other > tools? Also, how do you coordinate the designer's work with the > programmers' > work? > > Although I would choose SVN you probably

RE: Tools for Managing a Wicket Project

2009-04-29 Thread Stefan Droog
I can also recommend O'Reilly Java Power Tools book: See http://oreilly.com/catalog/9780596527938/ Regards, Stefan Van: Dane Laverty [danelave...@gmail.com] Verzonden: woensdag 29 april 2009 18:43 Aan: users@wicket.apache.org Onderwerp: Re: Tools for Mana

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Carlo Camerino
try mercurial instead of subversion. (we're starting migration to mercurial) We are on our way to migrate there. Hudson is very easy to configure. Try eclipse and maven 2 also. one thing that i'd like to have though is a way to track common custom components. We have developed a lot of common comp

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Per Lundholm
Hi Have you seen the Maven guide? http://www.sonatype.com/books/maven-book/reference/ It presents Nexus instead of Archiva which we use at my current contract. We also use Hudson and it was really easy to setup. You can try it with a simple click on the webstart button here: http://wiki.hudson-c

Re: encoding URLs with jsessionid

2009-04-29 Thread Igor Vaynberg
you can google "wicket HttpServletResponse", i bet the first hit will get you what you want. -igor On Wed, Apr 29, 2009 at 9:45 AM, Adam Wenocur wrote: > I'm running Wicket under a Tomcat daemon configured to have session > management disabled for cookies.  All of the links Wicket generates have

encoding URLs with jsessionid

2009-04-29 Thread Adam Wenocur
I'm running Wicket under a Tomcat daemon configured to have session management disabled for cookies. All of the links Wicket generates have the proper encoding of the jsessionid. I have a URL string I would like to encode, as I would normally do in a servlet by invoking the encodeURL() met

Re: Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-29 Thread Jeremy Thomerson
Yes - I hate m2eclipse. I just run mvn eclipse:eclipse from the command line and refresh my sources in Eclipse. Add the -DdownloadSources=true and -DdownloadJavadocs=true - it works great. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 29, 2009 at 5:26 AM, Ryan Norris wrote:

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Dane Laverty
Thanks for the suggestions of Continuum, Hudson, and Archiva. I'm not familiar with any of them, so that at least gives me some direction. Also, is there a book or website you would recommend that explains some best practices for Java project management? I would love to get a team training course

Re: Wicket-Guice: Inject into Session

2009-04-29 Thread Igor Vaynberg
i dont know how fdiotalevi works. you can do it however you want as long as you either dont add a serializable field to the session or you do add a field but it contains some sort of serialization-safe proxy. -igor On Wed, Apr 29, 2009 at 1:18 AM, wrote: > This sounds good, Igor. > > But I hav

Re: GWT-like

2009-04-29 Thread Jeremy Thomerson
That's the main difference between GWT and Wicket - so if you really NEED it all client-side, then use GWT. As far as your tab problem - sure, you can do this with Wicket. The default (I believe - it's been a while since I used the tabbed panel) is to load the other tab via ajax. But if you want

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread Michael O'Cleirigh
I remember reading that to make AJAX work in a ModalWindow you need to use a PageCreator (and add the panel into the page) instead of just adding the panel. This is how we do it and AJAX works properly; I think its because window content is actually through an IFRAME to the created page. T

ModalWindows...

2009-04-29 Thread Vidhya Kailash
I am newbie and apologize if this has been answered multiple times... but googling didnt help! have a few questions with the modalwindow: 1. How do I disable the popup that comes on click inside the modal window: "Are you sure you want to navigate away from this page"? 2. Submit from a Form insid

Re: Wicket-Guice: Inject into Session

2009-04-29 Thread Bernard
This sounds good, Igor. But I have a question. If I only use EJB 3.0/JPA with http://code.google.com/p/fdiotalevi/ (no Spring, no Guice, no Salve), then how would I let a session object hold on to references to services and yet remain lightweight? Is there any information about best Wicket pract

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Jeremy Thomerson
I'd definitely suggest SVN over CVS and Maven over Ant. Maven truly manages dependencies. Ant does not. I'd suggest Continuum rather than Hudson simply because it is quick and easy to set up and it is built to build Maven projects - so it will be easier for your inexperienced team to do so. And

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Florian Sperber
Hi Dane, Dane Laverty schrieb: My goal is to find a few tools that - work well with Wicket - make it easy for programmers to check code in and out - manage project dependencies - are easy to set up - are easy to use - are free I appreciate any and all suggestions. Thanks for your help! what

Tools for Managing a Wicket Project

2009-04-29 Thread Dane Laverty
My boss has asked me to manage development for a Java project. I'm going to be working with two other programmers and one designer. This is the first time that our organization has tried to formally coordinate several programmers on a project together, and it is also the first Java project we've d

GWT-like

2009-04-29 Thread kan
Is there any easy way to make wicket applications like GWT? I mean to make a "heavy client side", so it will allow easy manage data pre-loading and requests (AJAX too) caching. The aim is to minimize amount of web-server requests. Say, I have several tabs on a page. Some tabs should have all data p

Re: wicket + jbpm

2009-04-29 Thread nino martinez wael
this one : http://www.jboss.com/products/jbpm/ ? 2009/4/29 Eman Nollase : > Hello, > > Is there a wicket + jBPM integration? Thanks a lot. Cheers. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional c

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread nino martinez wael
Yeah but you still need to tell the modal window to not care about updates, otherwise you will get notifications (confirm dialogs) 2009/4/29 Serkan Camurcuoglu : > |maybe using new AjaxFormComponentUpdatingBehavior("onchange") instead of > onSelectionChanged would make a difference.. like the exam

Re: Which repeater to use for my case?

2009-04-29 Thread Rodrigo De Castro
I have a similar view with a Ajax paginator, but I am using DataView. This view, which is also pageable, takes a data provider (IDataProvider) and is a good option for database queries. On Wed, Apr 29, 2009 at 4:49 AM, Linda van der Pal < lvd...@heritageagenturen.nl> wrote: > I don't see why you

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread Serkan Camurcuoglu
|maybe using new AjaxFormComponentUpdatingBehavior("onchange") instead of onSelectionChanged would make a difference.. like the example at http://www.wicket-library.com/wicket-examples/ajax/choice.0| nino martinez wael wrote: You need to tell the modal not to care about changes and make the

wicket + jbpm

2009-04-29 Thread Eman Nollase
Hello, Is there a wicket + jBPM integration? Thanks a lot. Cheers.

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread nino martinez wael
You need to tell the modal not to care about changes and make the ddc submit via ajax.. Cant remember the exact setting... might be one of below.. But there are some settup you can do something with.. http://www.nabble.com/forum/Search.jtp?query=modal+nino&local=y&forum=25133&daterange=0&startda

Re: Why I'm getting NPE?

2009-04-29 Thread nino martinez wael
Short answer, group is set but the list are null? 2009/4/29 nino martinez wael : > Hmm I have something similar, though not getting npe (from 1.3 project) : > > > > /** >  * >  * >  */ > public class SortableSearchDataProvider extends SortableDataProvider { > >        private SearchParameters sear

Re: Why I'm getting NPE?

2009-04-29 Thread nino martinez wael
Hmm I have something similar, though not getting npe (from 1.3 project) : /** * * */ public class SortableSearchDataProvider extends SortableDataProvider { private SearchParameters searchParameters; /** * constructor */ public SortableSearchDataProvi

Re: Goldlock - launched

2009-04-29 Thread nino martinez wael
Hi Alex A few comments: If you care about beautiful urls you should change the mount point (filter) to something different. (https://www.gold-lock.com/app/page/HomePage/products/0) And something seems to be messing up cookies, since urlrewrite are in action, https://www.gold-lock.com/app/page/D

Goldlock - launched

2009-04-29 Thread Objelean Alex
Hello everybody! I am happy to announce that a new web application using Wicket has been launched today! Here is the link: www.gold-lock.com I would like to help the community for help and core developers for creating such a great framework! Alex Objelean

Re: Which repeater to use for my case?

2009-04-29 Thread Linda van der Pal
I don't see why you should change from PageableListView (unless it is for entirely different reasons, like the size of your list). I have in fact just programmed such functionality with a PageableListView. (Although I didn't use a modal window, but a tabbedpanel to show the details.) Regards,

Which repeater to use for my case?

2009-04-29 Thread HHB
Hey, I'm using a PageableListView with Ajax-enabled paginator. My team leader asked me to add two buttons in front of each row: Edit and Delete button. Edit will bring a ModalWindow to edit the contact. Delete will delete the record from the backend. For this functionality, which repeater do you su

Re: AW: AW: Tabbed Panel with bookmarkable links

2009-04-29 Thread Vladimir K
But it is also a bug in the TabbedPanel which should work well without tabs. Christian Helmbold-2 wrote: > > >> > What if you use two different tabbed panels on the same page? > >> >> Good point! It doesn't work with two panels on the same page! I don't >> know why >> and how to fix it. >

Re: Why I'm getting NPE?

2009-04-29 Thread HHB
Actually, thats what I'm doing (you can check my code). The NPE is regarding the Group object instance, not Spring bean. Willis Blackburn wrote: > > Hi, > > The @SpringBean annotation is only resolved by Component and its > subclasses. (Actually it's resolved by SpringComponentInjector--but

Re: Wicket-Guice: Inject into Session

2009-04-29 Thread Jan Torben Heuer
Jeremy Thomerson wrote: > You shouldn't be using database connections. Use a service from your > service layer. Inject the service with wicket-ioc / wicket-guice - it > will insert a serializable proxy. It is a controller class that hides the database implementation details and it is injected

Re: Why I'm getting NPE?

2009-04-29 Thread Willis Blackburn
Hi, The @SpringBean annotation is only resolved by Component and its subclasses. (Actually it's resolved by SpringComponentInjector--but that only works with components.) You can call InjectorHolder.getInjector().inject(whatever) to resolve @SpringBean annotations in the whatever object.

Why I'm getting NPE?

2009-04-29 Thread HHB
Hey, I'm trying to employ DataTable in our application. * public class SortableContactDataProvider extends SortableDataProvider { @SpringBean private Service service; private Group group; public SortableContactDataProvider(Group group) { if (g

Re: Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-29 Thread Ryan Norris
Wow. Nice catch. Lesson learned - be cautious with the m2eclipse plugin and the WTP when attching Javadocs to the library. Thanks. On Apr 28, 2009, at 10:55 PM, Jeremy Thomerson wrote: You have the javadocs jar in your classpath. It shouldn't be. That should fix the error page so that y

ChoiceFilteredPropertyColumn and FilterToolbar examples

2009-04-29 Thread Linda van der Pal
Are there any good examples out there that show how to use ChoiceFilteredPropertyColumn and FilterToolbar? I've already looked at wicket-phonebook, ut for some reason the FilterToolbar they use doesn't require the FilterForm as an argument, whereas that is required. They probably use an older v

Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread Steve Flasby
Chaps, struggling a bit with this one. I want a ModalWindow containing a search form plus a table of results. I would like the results to be updated using Ajax as I change the search criteria. One of the search criteria is a DropDownChoice. So, to handle a selection change I would normally use:

Wicket meeting in Amsterdam?

2009-04-29 Thread Linda van der Pal
Who would be interested in a meeting in Amsterdam? We talked about it before in several discussions, but I thought it might attract more notice in it's own thread. And also what kind of meeting would you like it to be? (Social, unconference, sessions, code reviews, something else entirely?) R

Re: How to erase model values?

2009-04-29 Thread nino martinez wael
Hi Sure, just do this in your onsubmit of the form, compoundPropertyModel.setModlObject(new Contact()); OR one of the million other ways, it's just java :) 2009/4/28 HHB : > Hey, > Usually, I set the model for a form like this: > > final Form form = new Form("form", >        new CompoundProperty

Re: Possible to retrieve previous page from PageMap

2009-04-29 Thread Vladimir K
The requirements are inconsistent. It is impossible to bookmark the link today and come to the page tomorrow. Unless it shoud be considered as a long running transaction, in which case only page parameter works. pixologe wrote: > > In our current case we would need to display a specific info on

wicket talk in Paris tonight

2009-04-29 Thread Martijn Dashorst
Last chance to register for free for the wicket event tonight in paris. Http://wicket.eventbrite.com Many thanks to Zenika for making this event possible! Martijn Dashorst -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: htt

Re: Maintenance of session in SpringWebApplication of Wicket

2009-04-29 Thread Igor Vaynberg
the wiki also has a great models page. -igor On Wed, Apr 29, 2009 at 12:04 AM, Jeremy Thomerson wrote: > It's because you only used half the code I gave you.  How is the dropdown > storing it's data in the session? You give it an empty model to store it's > data in.  You need to give it the pr

RE: Maintenance of session in SpringWebApplication of Wicket

2009-04-29 Thread Jeremy Thomerson
It's because you only used half the code I gave you. How is the dropdown storing it's data in the session? You give it an empty model to store it's data in. You need to give it the property model instead. You would be greatly benefited by reading all about models in Wicket in Action (or a tra