Re: wicket bench in eclipse

2010-01-27 Thread Peter Karich
Why not using the default configuration of the wicket archetype and let the htmls under main/java ? (configuration over convention ;-)) Then at least in IntelliJ and NetBeans the switch html--java works fine. Regards, Peter. Agree with Huake Ingmar. The functionality doesn't overlap at all.

Re: Page load after an action

2010-01-27 Thread Pedro Santos
It is natural: 1 - model load some data from some source 2 - that source was updated, changed, and the data loaded on the model no more reflect the data on that source 3 - detach the old loaded data on model 4 - next time any object require the data on model, it will no longer have the old data

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Pedro Santos
How can you make sure that contact_data references to the same data on your contact_form model? I guess that is why you having troubles. For instance, you are creating the text field using new RequiredTextFieldString(contact_id) it leads me guess you are using a CompoundPropertyModel on your

Nasty problem with component not found and images [solved]

2010-01-27 Thread Thomas Kappler
Earlier this month, there was a thread [1] about the component not found problem. I can't reply as I wasn't subscribed yet. [1] http://old.nabble.com/component-xxx:yyy:zzz-not-found-on-page-td27080437.html I had the same problem recently, and after banging my head against the wall for a

Re: Should Duration be deprecated?

2010-01-27 Thread Jonathan Locke
you're thinking of windows. Martijn Dashorst wrote: On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons My vote goes to Umpalumpa's shifting miniature pumpkins on scales Martijn -- Become a Wicket

RE: Should Duration be deprecated?

2010-01-27 Thread Chris Colman
While we're on the subject of 1's and 0's: Did you know this? There are only 10 types of people in the world: Those who understand binary, and those who don't. Back in my day we didn't need Tapestry, or Wicket or WebObjects, or even Servlets, or for that matter Java! We just coded in plain

images not under the context root directory

2010-01-27 Thread François Meillet
Hi Wicketers, I have a directory, /xxx/images with uploaded images, which is not under the application context root directory. How can I serve them as static images ? I tried the StaticImage class I found in the forum (http://old.nabble.com/Plain-IMG-src-urls-td21547371.html#a21547543 ) but it

Re: images not under the context root directory

2010-01-27 Thread Ernesto Reinaldo Barreiro
Just a couple of ideas... -Use a servlet to serve them? You don´t need Wicket for this... and combine this with simpleimage? -With Wicket mount a dynamic web-resource and combine this with simpleimage? Ernesto 2010/1/27 François Meillet fm...@meillet.com Hi Wicketers, I have a directory,

PasswordTextField not showing the value

2010-01-27 Thread Josh Kamau
I have would like to edit an existing user's properties including the password. However, all the other properties are appearing on their corresponding fields except the password field. How do i make it appear?. here is my component for editing users public class UserPanel extends Panel {

Re: PasswordTextField not showing the value

2010-01-27 Thread Marat Radchenko
You can't edit user password because you only store its hash. Don't you? 2010/1/27 Josh Kamau joshnet2...@gmail.com:  I have would like to edit an existing user's properties including the password. However, all the other properties are appearing on their corresponding fields except the

Re: PasswordTextField not showing the value

2010-01-27 Thread Jonas
Not sure if that is actually the problem, but have you noticed PasswordTextField#getResetPassword() ? Its default value is 'true', meaning the value is cleared on every rendering. cheers, Jonas On Wed, Jan 27, 2010 at 3:19 PM, Josh Kamau joshnet2...@gmail.com wrote:  I have would like to edit

Re: images not under the context root directory

2010-01-27 Thread Don Ferguson
I used this suggestion to serve images out of a database, and it worked very well: http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html On Jan 27, 2010, at 5:56 AM, Ernesto Reinaldo Barreiro wrote: Just a couple of ideas... -Use a servlet to serve them? You don´t

Serialization test

2010-01-27 Thread pieter claassen
I want to test the following: 1. Whether I have any private members stored on my pages that are not a primitive java type, or IModel 2. If they are IModels, that I do call onDetach() on them. Reflection helps me to answer the 1st question but the second one baffles me. Any tips on how to verify

Re: images not under the context root directory

2010-01-27 Thread Jonas
Have you tried the following: WebComponent image = new WebComponent(someWicketId); image.add(new SimpleAttributeModifier(src, http://.jpg;)); add(image); with markup img wicket:id=someWicketId / that should work just fine... if you cannot hardcode the image url, you can use the following

Re: Serialization test

2010-01-27 Thread Marat Radchenko
Force your servlet container to serialize sessions after each request and add non-serializable field to objects that you don't want to be serialized. 2010/1/27 pieter claassen pie...@claassen.co.uk: I want to test the following: 1. Whether I have any private members stored on my pages that are

Re: images not under the context root directory

2010-01-27 Thread Ernesto Reinaldo Barreiro
this trick with the alias... I has done it mounting a dynamic WebResource and streaming back the contents myself. Like in here http://code.google.com/p/antilia/source/browse/trunk/com.antilia.demo.manager/src/com/antilia/demo/manager/img/MyImageMountedFactory.java Best, Ernesto On Wed,

Re: Serialization test

2010-01-27 Thread Jonas
You can't verify for any IModel if it has been detached, but what works fine is e.g. checking all LoadableDetachableModel subclasses. You have to rely on specific IModel implementations that have some kind of API to check if they have been detached, just like LoadableDetachableModel#isAttached()

Re: images not under the context root directory

2010-01-27 Thread Ernesto Reinaldo Barreiro
nice trick with the alias... was what I intended to say. On Wed, Jan 27, 2010 at 4:00 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: this trick with the alias... I has done it mounting a dynamic WebResource and streaming back the contents myself. Like in here

Re: images not under the context root directory

2010-01-27 Thread Thomas Kappler
On 01/27/10 15:57, Jonas wrote: Have you tried the following: WebComponent image = new WebComponent(someWicketId); image.add(new SimpleAttributeModifier(src, http://.jpg;)); add(image); with markup img wicket:id=someWicketId / that should work just fine... if you cannot hardcode the

setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
Here's what I have in my code: TextFieldInteger lAdaptingHitCountThreshold = new TextFieldInteger( AdaptingHitCountThreshold, new PropertyModelInteger( lMcsConfig, Adapting.HitCountThreshold ) ); lForm.add( lAdaptingHitCountThreshold.setRequired( false ) ); But when I execute it, if I do not

Re: setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Johan Compagner
an int (primitive) is always required. We have to set it to something. cant be null if you want to be able to not require it (so null) make it an Integer not int On Wed, Jan 27, 2010 at 16:48, Thierry Leveque tleve...@gmail.com wrote: Here's what I have in my code: TextFieldInteger

Re: Nasty problem with component not found and images [solved]

2010-01-27 Thread Riyad Kalla
Thomas, as someone who frequently likes trying really dumb things -- I appreciate you giving a heads up on this issue. I was likely going to run into this at some point anyway ;) On Wed, Jan 27, 2010 at 3:46 AM, Thomas Kappler thomas.kapp...@isb-sib.chwrote: Earlier this month, there was a

Re: setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
Yes... Thanks, that what I tought The problem is that my Pojo object is in fact created by Castor (from an xsd), and Castor always create Integer even if we specify xs:int in the xsd... Castor add a method call has[name of the field] to replace the null value. I guess I will have to write my

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Anna Simbirtsev
I tried changing it to: System.out.println(Inside contact link's onError is called: + contact_form.getModelObject().getContactId()); It prints null.:( On Wed, Jan 27, 2010 at 5:28 AM, Pedro Santos pedros...@gmail.com wrote: How can you make sure that contact_data references to the same data on

Re: setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
Oups... always create int even if we specify xs:integer in the xsd... Of course!!! Thierry On Wed, Jan 27, 2010 at 10:55, Thierry Leveque tleve...@gmail.com wrote: Yes... Thanks, that what I tought The problem is that my Pojo object is in fact created by Castor (from an xsd), and

Re: PasswordTextField not showing the value

2010-01-27 Thread Josh Kamau
Thanks alot. The getResetPassword() did it. I am doing a trivial application so i have not encrypted the password. May be in a real application i will present a window for resetting password and a separate window for editing the rest of the user details. Regards. On Wed, Jan 27, 2010 at 5:34

starting tomcat in pre-integration-test haults build

2010-01-27 Thread Douglas Ferguson
If I start tomcat in the pre-integration-test the build hangs. Why is this? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: images not under the context root directory

2010-01-27 Thread François Meillet
Thank for yours posts. I try the solutions, but I can't figure out how to serve images as static images. F. Le 27 janv. 2010 à 16:10, Thomas Kappler a écrit : On 01/27/10 15:57, Jonas wrote: Have you tried the following: WebComponent image = new WebComponent(someWicketId); image.add(new

Re: Should Duration be deprecated?

2010-01-27 Thread nmelen...@getsense.com.ar
My keyboard on has 2 keys: 0 and 1. Thats all i need when i code :) NM On Wed, Jan 27, 2010 at 10:32 AM, Chris Colman chr...@stepaheadsoftware.com wrote: While we're on the subject of 1's and 0's: Did you know this? There are only 10 types of people in the world: Those who understand

AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Wayne Pope
Hello all, Ok I cannot figure this one out. I have a Page that contains a Form with a AjaxSubmitLink: AjaxSubmitLink submitLink= new AjaxSubmitLink(submitLink) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) {

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Josh Kamau
Just wondering; Isnt ajax supposed to update components on the same page? If you want to redirect to another page then you dont need an ajax link. Try with a normal link. Then try without setting response page but add the feedback panel on the same page. On Wed, Jan 27, 2010 at 9:15 PM, Wayne

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Igor Vaynberg
the problem is that there is a redirect between your calling info() and the feedback panel rendering. this is because thats the only way to do it in ajax - issue a window.location=... if you are doing feedback messages across requests then use getsession().info(...) -igor On Wed, Jan 27, 2010

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Riyad Kalla
Igor, will FeedbackPanel correctly consume the messages from the session scope and remove them -- or do you have to manually remove them once they've been rendered? On Wed, Jan 27, 2010 at 11:42 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the problem is that there is a redirect between your

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Igor Vaynberg
the former -igor On Wed, Jan 27, 2010 at 10:45 AM, Riyad Kalla rka...@gmail.com wrote: Igor, will FeedbackPanel correctly consume the messages from the session scope and remove them -- or do you have to manually remove them once they've been rendered? On Wed, Jan 27, 2010 at 11:42 AM, Igor

Re: images not under the context root directory

2010-01-27 Thread Ernesto Reinaldo Barreiro
Hi Francois, Following example works. 1-Create this class anywhere you want need. package com.antilia.demo.manager.img; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import

Re: images not under the context root directory

2010-01-27 Thread Riyad Kalla
This seems like adding a large amount of overhead to an image-heavy site (e.g. image blog or something), I thought I read in Wicket in Action that WicketFilter ignored HTTP requests for non-wicket resources now and passed them through to the underlying server to handle avoiding the need to remap

Re: Nasty problem with component not found and images [solved]

2010-01-27 Thread Steve Swinsburg
Thomas, Thanks for this. I may also have run into the multiple page load you say this might cause. Can you confirm if this is the case for any img src=# / and goes away when its just img / ? cheers, Steve On 28/01/2010, at 2:54 AM, Riyad Kalla wrote: Thomas, as someone who frequently likes

wicket osgi (not Pax)

2010-01-27 Thread Jan Juno
Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow

contributing components

2010-01-27 Thread Sam Barrow
I sent an email to this list the other day about releasing my wicket component toolkit. Anybody know how to go about this? I have some pretty interesting stuff, like a BeanPanel that displays a bean's properties in a nice looking key:value format, and another one that allows you to upload a file,

Re: contributing components

2010-01-27 Thread Igor Vaynberg
there is wicketstuff-minis... -igor On Wed, Jan 27, 2010 at 2:35 PM, Sam Barrow s...@sambarrow.com wrote: I sent an email to this list the other day about releasing my wicket component toolkit. Anybody know how to go about this? I have some pretty interesting stuff, like a BeanPanel that

Re: contributing components

2010-01-27 Thread Riyad Kalla
Sam, Sounds like some pretty nice new components. Thanks for kicking those back into the community. R On Jan 27, 2010 3:36 PM, Sam Barrow s...@sambarrow.com wrote: I sent an email to this list the other day about releasing my wicket component toolkit. Anybody know how to go about this? I have

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have a long road

Re: WicketByExample.com Contest

2010-01-27 Thread Andrew Lombardi
Hey guys! Hope everyone is having a wonderful time this week, and that you're able to do some Wicket coding (I always find that puts me in a good mood)! I'm committed to seeing content on the WicketByExample.com website grow, and in an effort to see that happen, we're going to hold a

Re: dynamically adding components to a ListView

2010-01-27 Thread zdmytriv
Yes, the problem was I had to create container and then on onClick() target.addComponent(newInteractivePanel); Thanks everybody RaBe wrote: looks as it has been solved here: http://stackoverflow.com/questions/2114351/dynamically-add-components-to-listview-in-wicket/ bert On Sun,

Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Hello guys; I have this enormous task of creating a web based UI for our ERP (the opensource Adempiere ERP). The UI is normally generated from the data store in the Database. It includes Windows, Tabs , grids, trees etc. I know windows , tabs and tree are not hard to generate. The problem i

Re: images not under the context root directory

2010-01-27 Thread Ernesto Reinaldo Barreiro
Sure it is overhead but he wanted to serve images from a folder not under application context root directory... Then, you have to serve them somehow? The options I see are 1-A dedicated servlet? 2-With Wicket... and thats what the code shows... and for sure it can be done in a simpler way... A

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Martin Makundi
Cannot see attachments.. link? ** Martin 2010/1/28 Josh Kamau joshnet2...@gmail.com: Hello guys;  I have this enormous task of  creating a web based UI for our ERP (the opensource Adempiere ERP). The UI is normally generated from the data store in the Database. It includes Windows, Tabs ,

Re: wicket osgi (not Pax)

2010-01-27 Thread Eelco Hillenius
Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have a long road

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Eelco Hillenius
The problem i have is adding components to the Window/tab because there is not existing markup. Use panels as place holders. They can contain anything you like at runtime including nothing at all. Rinse and repeat. Eelco - To

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Sorry . Here it is. I would like to generate such a screen. I have window properties , Number of tabs on the window, fields in each tab, position of the fields relative to each other e.g same line , field length, field type e.g button, textfield, text area, check box etc. Regards. On Thu,

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
Hi Eelco, Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Eelco; How do i layout components dynamically in panel? i.e, there is not markup like a table to determine the position? if i write myPanel.add(field1) and myPanel.add(field2) and i want the fields to be laid out a) side by side b) one below the other, how do i do it ? regards and thanks.

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Ernesto Reinaldo Barreiro
Hi Josh, How do i layout components dynamically in panel? i.e, there is not markup like a table to determine the position? Using repeaters? if i write myPanel.add(field1) and myPanel.add(field2) and i want the fields to be laid out a) side by side b) one below the other, how do i do it

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Ernesto two dimensional repeaters? Let me check that out. never thought of it. sounds like a good idea. Josh On Thu, Jan 28, 2010 at 8:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Josh, How do i layout components dynamically in panel? i.e, there is not markup like a

Re: wicket osgi (not Pax)

2010-01-27 Thread Ernesto Reinaldo Barreiro
I have seen OSGi successfully used with Wicket on production environments... With no problems with the serialization issues you mentioned. Best, Ernesto On Thu, Jan 28, 2010 at 1:08 AM, David Leangen wic...@leangen.net wrote: Is there a How-to for OSGI and wicket, not from pax I managed

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Adrian Wiesmann
Hi there On 1/28/10 6:18 AM, Josh Kamau wrote: How do i layout components dynamically in panel? i.e, there is not markup like a table to determine the position? if i write myPanel.add(field1) and myPanel.add(field2) and i want the fields to be laid out a) side by side b) one below the other,

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Ernesto Reinaldo Barreiro
There are several projects out there that use those techniques to dynamically build UIs. Here http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/crud http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/crudI

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Adrian; Thanks. I will check it out Josh On Thu, Jan 28, 2010 at 9:24 AM, Adrian Wiesmann awiesm...@somap.orgwrote: Hi there On 1/28/10 6:18 AM, Josh Kamau wrote: How do i layout components dynamically in panel? i.e, there is not markup like a table to determine the position? if i

Re: wicket osgi (not Pax)

2010-01-27 Thread Ernesto Reinaldo Barreiro
Take a look at http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Wayne Pope
thanks for the explanation. Works perfect now. much appreciated. On Wed, Jan 27, 2010 at 8:23 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the former -igor On Wed, Jan 27, 2010 at 10:45 AM, Riyad Kalla rka...@gmail.com wrote: Igor, will FeedbackPanel correctly consume the messages from

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
I have seen OSGi successfully used with Wicket on production environments... With no problems with the serialization issues you mentioned. Yes, I am using pax-wicket for this. What I meant was--as I understood from the original post--the person wanted to use wicket in OSGi without using a

Re: Dynamically Generated Wicket UI

2010-01-27 Thread Josh Kamau
Hi; I have looked at wicketwebbeans and it looks impressive. Does it support wicket 1.4.5 ? the currently available download at googlecode is dated April 2009 . On Thu, Jan 28, 2010 at 9:32 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: There are several projects out there that use