Re: Copenhagen wicket users meeting?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
super:) Flemming Boller wrote: done :-) On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Could more people signup if interested? We cant only be 3 guys in denmark interested in this.. I think the release of wicket 1.3 should be an excellent time to

Re: Displaying feedback

2007-11-12 Thread Roland Kaercher
Hello Joshua, if you just want to display the feedback in your default feedback panel all you have to do is add it to your page, there is no need to tell the form which feedback panel to use then. roland On Nov 12, 2007 8:25 AM, Joshua Jackson [EMAIL PROTECTED] wrote: Dear all, How do I

Re: Copenhagen wicket users meeting?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
We havent agreed on a actual date yet. I think we will be waiting for wicket 1.3 to get released so that Frank can participate.. I think 1.3 are somewhat neer a release at least somewhere before christmas. Murat Yücel wrote: When is the meeting? I have just signed up for the new wicket

Re: JPA best-practices?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
Do you know if theres any plans on making a maven2 archetype for qwicket? Evan Chooly wrote: There's also qwicket.sf.net that specifically uses JPA+spring. I'm finishing up updates now for 1.3 support and improved project setup. SVN is your best bet there but I'm hoping to put up the new

Re: Displaying feedback

2007-11-12 Thread Joshua Jackson
Thanks Roland, It worked. I didn't understand what's written on the wiki. Thanks alot. :) On 11/12/07, Roland Kaercher [EMAIL PROTECTED] wrote: Hello Joshua, if you just want to display the feedback in your default feedback panel all you have to do is add it to your page, there is no need

Re: Attempted summary of multiple wicket:child / thread

2007-11-12 Thread Eelco Hillenius
I hope people don't start thinking that this damn newbie comes and wants to change a proven framework without knowing it really. But as owner of the patch I am very interested in this discussion and probably even responsible for it - or maybe eelco was, when he said And hey, maybe some working

Re: How do others include their browser specific styles in Wicket?

2007-11-12 Thread Eelco Hillenius
On Nov 11, 2007 2:24 AM, Johan Compagner [EMAIL PROTECTED] wrote: Session.getClientInfo() ? See also the HelloBrowser example (http://wicketstuff.org/wicket13/hellobrowser/). Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Copenhagen wicket users meeting?

2007-11-12 Thread Flemming Boller
On Nov 9, 2007 1:54 PM, Murat Yücel [EMAIL PROTECTED] wrote: When is the meeting? I have just signed up for the new wicket mailing list. Maybe i should participate this time :). Flemming do you give a ride? of course :-) /Murat 2007/11/9, Flemming Boller [EMAIL PROTECTED]: done :-)

Re: Wicket runtime Exception

2007-11-12 Thread tbt
Hi Here is the code that uses RadioGroup public class RadioListView extends ListView { /** * */ private static final long serialVersionUID = 1L; //private static Logger log = Logger.getLogger(RadioListView.class.getName()); public

Wicket Portlets in Liferay

2007-11-12 Thread Thijs
I'm trying to get wicket portlets to work in Liferay. As fas as I can tell there are at least 2 issues at the moment: 1.) A nullpointer exception in WebResponse due to an issue in de Liferay code that returns null in the encodeRedirectUrl (see

Re: JPA best-practices?

2007-11-12 Thread Uwe Schäfer
Chris Colman schrieb: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about !? As

Re: {wicket 1.3 rc1} upgrading....

2007-11-12 Thread Johan Compagner
This is already fixed but it didn't make it into the RC as it seems It is because you use a BufferedWebResponse with your mock application if you make it a WebResponse then it works fine for now. /** * [EMAIL PROTECTED] org.apache.wicket.protocol.http.WebApplication#newWebResponse(

Re: {wicket 1.3 rc1} upgrading....

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
thanks for the quick answer... regards Nino Johan Compagner wrote: This is already fixed but it didn't make it into the RC as it seems It is because you use a BufferedWebResponse with your mock application if you make it a WebResponse then it works fine for now. /** * [EMAIL PROTECTED]

Re: How do others include their browser specific styles in Wicket?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
We dont, we have one css for them all. Thats. IE 6,7 FF 1.5,2 Safari for us. regards Nino Sjoerd Lohuis wrote: There are a few ways to include your browser specific styles in a project: - CSS hacks to target specific browsers - IE Conditional Comments - Server-side browsercheck I'm not

RE: How to migrate onAfterRender/onBeforeRender from wicket 1.2.6 to 1.3

2007-11-12 Thread Clay Lehman
You can also use onRender() @Override protected void onRender() { getResponse().write(StuffBeforeComponent); super.onRender(); getResponse().write(StuffAfterComponent); } But IComponentBorder will do all that for you... -Clay -Original Message- From: Johan Compagner

Examples of using detachable models?

2007-11-12 Thread Matthias Karlsson
Hi, I have recently started to use Wicket and I'm finally getting up to speed after getting my Dao-framework and Spring integrated nicely with it. However, I'm having problems figuring out how to implement detachable models. Let's take a simple example from my code base (I'm free-typing here

Re: JPA best-practices?

2007-11-12 Thread Evan Chooly
That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) On Nov 12, 2007 3:47 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Do you know if theres any plans on making a

Re: Examples of using detachable models?

2007-11-12 Thread Johan Compagner
LoadableDetachableModel ldm = new LoadableDetachableModel(movie) { load(){ reload the movie} } Form form = new Form(xx, new CompoundPropertyModel(ldm)); On Nov 12, 2007 2:46 PM, Matthias Karlsson [EMAIL PROTECTED] wrote: Hi, I have recently started to use Wicket and I'm finally getting up

Re: Examples of using detachable models?

2007-11-12 Thread Maurice Marrink
The trick is to let the models do the reloading by id part for you. If you take a look at LoadableDetachableModel you see it has an abstract load() method. A very common implementation would be this: public Object load() { return myDao.get(Movie.class,movieId); } of course you have to make the

Multi-file upload and ListView together

2007-11-12 Thread Franklin Antony
Dear Friends, I am having a problem with putting MultiFileUploadField inside a ListView. I am following the example, but somehow the uploads collection is not getting populated with the files. However when I directly add the MultiFileUploadField on a form everything seems to work. Could

RE: Examples of using detachable models?

2007-11-12 Thread Matthias Karlsson
Thanks (and to Johan as well). The simple solution of using a small anonymous implementation of LoadableDetachableModel will work just fine for my current needs. If I later feel that I need something more enterprisy I'll look into building something more complex. // Matthias Date: Mon, 12

Re: JPA best-practices?

2007-11-12 Thread n8han
Evan Chooly wrote: Do you know if theres any plans on making a maven2 archetype for qwicket? That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) Good luck! Archetypes are

Re: Wicket runtime Exception

2007-11-12 Thread Johan Compagner
is that a listview? do you have called setReuseItems() ? else the radio's are constantly replaced with new once and that could be the problem On Nov 12, 2007 10:31 AM, tbt [EMAIL PROTECTED] wrote: Hi Here is the code that uses RadioGroup public class RadioListView extends ListView {

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Anders Peterson
Thanks, everyone who contributed! Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How far away is Wicket 1.4? I have a small prototype application built using Wicket 1.2.6. I believe that little prototype may soon graduate to a real application, and when that happens I'd

Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Gwyn Evans
As I understand it, that's still the plan, but having said that, I'd not expect to see too much work on a 1.4 until we've got a reasonable amount of confidence that the released 1.3 is stable, so expect to see a 1.3.1 before 1.4. If we jump into 1.4 too quickly, we'll be back to dual-branch

Re: Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Anders Peterson
Gwyn Evans wrote: Does generification of the core make that much difference to a user of the API? I've been focused on JDK 1.4, so didn't have a change to look at Wicket 2 in practice. Don't want to exaggerate, but once you start using Java 5 you don't want to go back and you want all code

Re: Multi-file upload and ListView together

2007-11-12 Thread Igor Vaynberg
did you call listview.setreuseitems(true) it is usually easier if you provide a quickstart... -igor On Nov 12, 2007 7:28 AM, Franklin Antony [EMAIL PROTECTED] wrote: Dear Friends, I am having a problem with putting MultiFileUploadField inside a ListView. I am following the example, but

RE: How to migrate onAfterRender/onBeforeRender from wicket 1.2.6 to 1.3

2007-11-12 Thread rtow
Thanks! cblehman wrote: You can also use onRender() @Override protected void onRender() { getResponse().write(StuffBeforeComponent); super.onRender(); getResponse().write(StuffAfterComponent); } But IComponentBorder will do all that for you... -Clay

Re: Component.wrap and IChainingModel

2007-11-12 Thread ChuckDeal
Dmitry Kandalov wrote: On Thursday 08 November 2007 23:28:40 ChuckDeal wrote: Perhaps I didn't get the explanation but why can't you wrap models in this order? AppendingListModel(     SortingModel(         HibernateListModel()     ) ) In that order the list would be

Re: JPA best-practices?

2007-11-12 Thread Al Maw
Uwe Schäfer wrote: i plan to use JPA together with Wicket. Are there any battle-proven best-practices out there of how to handle EnityManagers and Transactions? What do other people use (no, not the spring crowd ;) ? One EntityManager per Request seems to be the obvious idea and a guice

RE: CAPTCHA clarity in post 1.2.6 releaes

2007-11-12 Thread Jonathan Locke
there are no questions. the kittens are merged into an image that functions like an image map. the robot would be guessing co-ordinates, not combinations. the idea is that the robot is going to have to actually recognize kittens in the image (from among other animals) and send the server

Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Matej Knopp
If the page is stateless, why are you using hybrid url coding strategy for it? You should just mount it. Also, even more important thing, is the page really stateless? Stateless pages don't have versions. Link is not a stateless component so if you use it on a page, it will make it statefull. As

Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Sebastiaan van Erk
Hi, Thanks for the reply! Actually, in some cases the page is not stateless all the time (which is why I use that strategy), i.e. it starts out on a stateless form. Another reason why I use it on non-stateless pages is because the URL looks so much better. ;-) Anyway, I do use Link, so yes

RE: CAPTCHA clarity in post 1.2.6 releaes

2007-11-12 Thread Jonathan Locke
http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/CA4A74A0-820C-4FDF-BF65-F4C14754D13E.html Chris Colman wrote: The trouble is that the answers to the kitten questions usually have a small number of possible combinations: 1 - 5 roughly so on average a robot may be successful 20%

Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
Hi, I have a Label who's model maight come with markup for bold italic, bullets, etc. (e.g. bThis/b is a iMessage/i) Obviously I get bThis/b is a iMessage/i rendered. Is there a way to get the label to render: *This* is a *Message* thanks, f(t)

Re: Label: Render HTML content from String

2007-11-12 Thread Martijn Dashorst
this should get what you want: add(new Label(foo, text.replaceAll(b, *) .replaceAll(/b, *) .replaceAll(i, *) .replaceAll(/i, *))); Martijn On 11/12/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi, I have a Label who's model maight come with markup for bold italic,

Re: Wicket Portlets in Liferay

2007-11-12 Thread Ate Douma
Thijs wrote: I'm trying to get wicket portlets to work in Liferay. As fas as I can tell there are at least 2 issues at the moment: 1.) A nullpointer exception in WebResponse due to an issue in de Liferay code that returns null in the encodeRedirectUrl (see

Re: Label: Render HTML content from String

2007-11-12 Thread Sebastiaan van Erk
Hehe, nasty! :-) I suggest doing it in one replaceAll though: text.replaceAll([^]*, *) This has the added benefit of correctly treating unexpected and as yet unknown tags, and thus is more future proof! Regards, Sebastiaan Martijn Dashorst wrote: this should get what you want: add(new

Re: Label: Render HTML content from String

2007-11-12 Thread Dmitry Kandalov
On Monday 12 November 2007 23:40:51 Francisco Diaz Trepat - gmail wrote: Hi, I have a Label who's model maight come with markup for bold italic, bullets, etc. (e.g. bThis/b is a iMessage/i) Obviously I get bThis/b is a iMessage/i rendered. Is there a way to get the label to render: *This*

Re: Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
It seams the formatted message I set didn't show well. I want to (as the subject says) Render HTML content from the String. Is there a way to get the label to render: *This* is a *Message* [this line here and in the original message is formatted with bold and italics] On Nov 12, 2007 5:02 PM,

Re: Label: Render HTML content from String

2007-11-12 Thread Francisco Diaz Trepat - gmail
Bolshoi Spasiba Gaspadin On Nov 12, 2007 5:11 PM, Dmitry Kandalov [EMAIL PROTECTED] wrote: On Monday 12 November 2007 23:40:51 Francisco Diaz Trepat - gmail wrote: Hi, I have a Label who's model maight come with markup for bold italic, bullets, etc. (e.g. bThis/b is a iMessage/i)

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Johan Compagner
yes after 1.3 there will be a java 5 version. Still not really know what we will call it (1.4,1.5 or 2.0) First finish the 1.3 release then there could be a first alpha/beta version with generircs pretty fast. johan On Nov 12, 2007 5:35 PM, Anders Peterson [EMAIL PROTECTED] wrote: Thanks,

Re: Wicket Portlets in Liferay

2007-11-12 Thread Thijs
Ate, your the man :) I'll try to dive into the parameter problem this week. Thnx Thijs Ate Douma wrote: Thijs wrote: I'm trying to get wicket portlets to work in Liferay. As fas as I can tell there are at least 2 issues at the moment: 1.) A nullpointer exception in WebResponse due to an

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread mathias axelsson
Mmmm... Generics Thanks alot for a great framework! On Nov 12, 2007 7:33 PM, Johan Compagner [EMAIL PROTECTED] wrote: yes after 1.3 there will be a java 5 version. Still not really know what we will call it (1.4,1.5 or 2.0) First finish the 1.3 release then there could be a first

RE: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread William Hoover
+1 GENERICS!!! -Original Message- From: mathias axelsson [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:35 PM To: users@wicket.apache.org Subject: Re: Apache Wicket 1.3.0-rc1 released! Mmmm... Generics Thanks alot for a great framework! On Nov 12, 2007 7:33 PM, Johan

RE: JPA best-practices?

2007-11-12 Thread Chris Colman
Chris Colman schrieb: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about

RE: JPA best-practices?

2007-11-12 Thread Chris Colman
Evan Chooly wrote: Do you know if theres any plans on making a maven2 archetype for qwicket? That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) Good luck! Archetypes

Re: Autocomplete on a modal window

2007-11-12 Thread Cristi Manole
thank you both for your answers, but there are still problems... I already tried what Don suggested, but that only allows for the autocomplete text to be displayed correctly in IE, but not in FF (at least not in 2.0.0.9). I really cannot figure out why. On Nov 9, 2007 7:21 PM, Don Hass [EMAIL

Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread mfs
Hi Guys, Another question relating to the serialization of pages, so lets say we have multiple instance of an application deployed in a load-balancing environment, now lets stay in case of wizard type use-case if subsequent requests get forwarded to different server (based on load sharing),

Problem with DefaultDataTable filtering?

2007-11-12 Thread Nick Heudecker
Since updating to Wicket 1.3RC1 it appears that updates to the filter columns aren't getting set. For instance, if enter a first name into a text field filter column, the value I enter isn't passed through to the DataProvider implementation. Is anyone else seeing odd behavior in the

Re: Problem with DefaultDataTable filtering?

2007-11-12 Thread Nick Heudecker
Found the problem - I had two FilterToolbars associated with the same FilterForm. The second FilterToolbar was clobbering the value set by the first. Removing the second FilterToolbar corrected the problem. On Nov 12, 2007 7:34 PM, Nick Heudecker [EMAIL PROTECTED] wrote: Since updating to

Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread mfs
I am talking of the scenario where the old page instances (and their model) are serialized to the disk ? how would those be synchronised on the other machine/server in the cluster ? Farhan. igor.vaynberg wrote: wicket stores its pages in session, so if your sessions are replicated within

Re: Problem with DefaultDataTable filtering?

2007-11-12 Thread anita nichols
Please unsubscribe

Re: Wicket runtime Exception

2007-11-12 Thread tbt
Hi It is a ListView But I haven't called setReuseItems() The radio buttons are dynamic and replaced each time the page is loaded but this exception is thrown rarely. Johan Compagner wrote: is that a listview? do you have called setReuseItems() ? else the radio's are constantly replaced

Search Form and Search List on one page

2007-11-12 Thread Joshua Jackson
Dear all, Is it possible to have a Page with Search Form and Search List on the same Page? It seems that the List object that is retrieved from onSubmit() is not updated to my DataView that lies inside the Page constructor. Or is there anyway I can have something like afterRender after the

Re: Enable and Disable using Ajax

2007-11-12 Thread Timo Rantalaiho
On Thu, 08 Nov 2007, Toscano wrote: IModel regionModelChoices = new AbstractReadOnlyModel() { public Object getObject(Component component) { if (professionalInfo.getCountryWork()!=null) regions =

Re: Enable and Disable using Ajax

2007-11-12 Thread Toscano
Hi again, That works fine for me! Now I understand how it should be. Thank you very very much, Oskar Dmitry Kandalov wrote: On Friday 09 November 2007 12:24:12 Dmitry Kandalov wrote: Probably that is because this component is already rendered. I mean the component has been already

Re: Change css-class of form on validation

2007-11-12 Thread Timo Rantalaiho
On Fri, 09 Nov 2007, BatiB80 wrote: example: myfield.add(new AttributeModifier(class, getClassValue()); myfield.add(new RedIfInvalid(myfield)); public class RedIfInvalid extends AttributeModifier() { private final FormComponent component; public RedIfInvalid(FormComponent component) {

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-12 Thread Timo Rantalaiho
On Fri, 09 Nov 2007, Pills wrote: public void edit(MyClass l) { [...] shops.modelChanging(); formTarget.setShops(l.getShops()); shops.modelChanged(); [...] What's the point of this method? And why is it calling modelChanging and modelChanged? I think that normally

isVisible called before onBeforeRender

2007-11-12 Thread cwilkes
I had code in onAttach() that set a field that was read in isVisible(). Now with onAttach removed I put this code in the onBeforeRender() method. However internalBeforeRender() calls isVisible() before onBeforeRender(). The fix was pretty easy -- move that code into isVisible(). However I'm

Re: isVisible called before onBeforeRender

2007-11-12 Thread Timo Rantalaiho
On Mon, 12 Nov 2007, cwilkes wrote: However I'm not sure if internalBeforeRender() should call isVisible() before onBeforeRender(), or at least there should be a note in the javadoc that isVisible() is called very early on in the game and not just in the render() method. This was discussed

Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 6:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: afaik the current pagestore will save the page to disk after its been replicated...or was that another pagestore subclass you were working on matej? Also see

Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 9:23 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Nov 12, 2007 6:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: afaik the current pagestore will save the page to disk after its been replicated...or was that another pagestore subclass you were working on matej? Also see

Re: Problem with DefaultDataTable filtering?

2007-11-12 Thread Eelco Hillenius
On Nov 12, 2007 6:33 PM, anita nichols [EMAIL PROTECTED] wrote: Please unsubscribe Nah. Nick is a good guy. Let's keep him around ;-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Philip A. Chapman
I think that by now, everybody knows where I stand. :-) +1 GENERICS! On Mon, 2007-11-12 at 18:02 -0500, William Hoover wrote: +1 GENERICS!!! -Original Message- From: mathias axelsson [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:35 PM To:

Re: Component.wrap and IChainingModel

2007-11-12 Thread Dmitry Kandalov
On Monday 12 November 2007 22:13:33 ChuckDeal wrote: You're right. But if you were not using List you could return SortedSet from SortingModel and it would work :) But then I'd be using a Set instead of a List.  DropDownChoice (via AbstractChoice) expects the choices model to represent a

DataProvider.size() problem

2007-11-12 Thread Kevin Liu
Hi! guys I have a defaultDataTable in a form, and the dataTable uses SortableDataProvider, when the submit button clicked, the selected rows will be deleted. The problem is the sortableDataProvider.size() excute before button.submit() as a result the total

Re: Multi-file upload and ListView together

2007-11-12 Thread Franklin Antony
Thanks Igor but it doesnt seem to work still. Just some more hints: I have the listview on a form and the form is on the page. The uploads collection object is on the form. It keeps telling me that there is no such uploads object on the page and so I changed the call from MultiFileUploadField

Re: Search Form and Search List on one page

2007-11-12 Thread Maurice Marrink
In general you don't let the filterbar provide the list of results but have it update a filter bean. This filter is then used inside your dataprovider to get the list of results. Maurice On Nov 13, 2007 4:16 AM, Joshua Jackson [EMAIL PROTECTED] wrote: Dear all, Is it possible to have a Page