Re: Wicket in Action: problem with redirection

2011-03-15 Thread Jim Pinkham
I think I've got the same situation happening. It's a login link on my home page, whose onClick uses the usual: throw new RestartResponseAtInterceptPageException( AuctionApplication.get().getSignInPageClass()); I've stepped thru this a bit, and I find a problem

Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-03-15 Thread Martin Grigorov
Well, wicketstuff is hosted at GitHub and any user can contribute. If you have some time and willing to share your work with the community you can do it yourself. Otherwise just create a ticket in wicketstuff's issue tracking system and someone of us will do it when we have some time. Thanks for t

Re: mountSharedResource() on huge amount of images

2011-03-15 Thread Bas Gooren
Well, exactly. It's usually a debate where both parties have solid arguments and it boils down to preference. I work with both options in medium-sized installations and in the end see the benefits of both options, but prefer disk-based file storage. For most applications though, a CDN or someth

Re: wicket 1.5-rc2 and aggregate jar for osgi

2011-03-15 Thread Eike Kettner
Hi Martin, thanks for your response and no need to apologize! It's good to have rcX candidate releases to play with so issues can be found. For me a wicket-osgi dependency would be great! And I really don't care about where to download :) I don't think that providing it from wicketstuff would bot

Re: Set FormComponent Type and EmailValidator

2011-03-15 Thread Martin Grigorov
On behalf of Pedro Sans: Are u using the Wicket 1.4? I think it is related to https://issues.apache.org/jira/browse/WICKET-3269 We improved text components to respect the convertEmptyInputStringToNull property regardless of the form component type in 1.5 On Tue, Mar 15, 2011 at 2:40 PM, vov wrot

Re: wicket 1.5-rc2 and aggregate jar for osgi

2011-03-15 Thread Martin Grigorov
Hi Eike, Sorry that we broke OSGi support again. The problem was that many users wanted -sources and -javadoc for the aggregate .jar and it became a bit complex and confusing. I think we can add wicket-osgi project in wicketstuff/core repository that will do the same we did initially in WICKET-30

Re: [1.5RC2] image..

2011-03-15 Thread Martin Grigorov
Why do you put the image in the AjaxRequestTarget if you don't want to repaint it ? On Tue, Mar 15, 2011 at 7:33 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi > > I had a problem where Image always added the anticache on ajax calls, in my > case we actually wanted the picture

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Sjoerd Smeets
Hi Pedro, I've created a quickstart and put it in a ticket. https://issues.apache.org/jira/browse/WICKET-3538 Thanks for your help, Sjoerd On Tue, Mar 15, 2011 at 1:12 PM, Pedro Santos wrote: > double check the Location hash/equals implementat

[1.5RC2] image..

2011-03-15 Thread nino martinez wael
Hi I had a problem where Image always added the anticache on ajax calls, in my case we actually wanted the pictures to be read from cache (that way we can avoid flickering). However it is not possible with Image to specify that you do not want the anti cache appended.. Could we either have an opti

Re: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
No offense Bas but that seems like a major hassle, especially considering with an ORM its a simple update/delete/find. When it comes time to build out new servers now you have to shuffle around 300k photos instead of simply replicating a database. Also sounds like it would make debugging more

Re: mountSharedResource() on huge amount of images

2011-03-15 Thread Bas Gooren
Now you're talking about rendering them, which is a different topic than mounting a resource which serves said images. You'll only need to mount a single shared resource which serves all the images. However, given the amount of images you can consider allowing your front-end (e.g. apache httd)

RE: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
For that many photos I would suggest storing them in a database. Storing that many images on the file system is cumbersome and inefficient in my opinion. You might run into many headaches especially around backups, deploys, upgrades, performance, file names, storage space, etc... From: "

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Sjoerd Smeets
Hi Pedro, Thanks for all your help so far. locationsInput.listAsSet() indeed returns the data that is persisted. To try something else, I have created an IModel class called LocationsModel as below and I've changed the concerning bit to: listChoice.setDefaultModel(new LocationsModel(new Model(det

RE: mountSharedResource() on huge amount of images

2011-03-15 Thread Ladislav DANKO
Imagine this situation: users have accounts on photo album where they upload images. System from uploaded images create thumbnails. Users can browse their photo - there is combo "show 25", "show 50"... "show all" images. On page I render thumbnails on a page which are shadowbox clickable images. Al

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Pedro Santos
Hi Sjoerd, double check the listChoice. If you want it presenting the persisted data, you should use an model containg it, does the locationsInput.listAsSet() give you that? change listChoice.setDefaultModel(new CompoundPropertyModel(locationsInput)); listChoice.setModelObject(locationsInput.list

Re: update label using (Ajax)Link

2011-03-15 Thread Hans Lesmeister 2
Ernesto Reinaldo Barreiro-4 wrote: > > Yes you are right... but I think new PropertyModel(this, > "selectedEintrag.vorname") will work I guess. > I guess you are right. That will work, but it is not very elegant to put a reference to the page or panel into the model. He probably should not over

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Sjoerd Smeets
Hi Pedro, I've changed the code as you suggested and the result is the same. The data is persisted correctly (as it was in previous cases as well), however the check boxes are not checked when the page is reopened. Just to be clear, the locations variable of LocationsInput is set properly when f

Re: Modalwindow showing content from external URL

2011-03-15 Thread Pedro Santos
ops, u saind external link, yes, just put an iframe is fine On Tue, Mar 15, 2011 at 12:24 PM, Pedro Santos wrote: > You can use an ModalWindow.PageCreator see: > > http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#setPageCreator(org.apache.

Re: Modalwindow showing content from external URL

2011-03-15 Thread Pedro Santos
You can use an ModalWindow.PageCreator see: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#setPageCreator(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.PageCreator)

Re: update label using (Ajax)Link

2011-03-15 Thread Ernesto Reinaldo Barreiro
Yes you are right... but I think new PropertyModel(this, "selectedEintrag.vorname") will work I guess. Ernesto On Tue, Mar 15, 2011 at 3:30 PM, Hans Lesmeister 2 wrote: > > Ernesto Reinaldo Barreiro-4 wrote: >> >> final Label vorname = new Label( "Vorname", new >> PropertyModel(selectedEintrag,

Modalwindow showing content from external URL

2011-03-15 Thread Marieke Vandamme
Hello, Is there a way to open an external page inside a modalwindow? The reason why I ask is to avoid popup-blokkers... Or should i just put an iframe on my modalwindow? Thanks, Marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modalwindow-showing-co

Re: update label using (Ajax)Link

2011-03-15 Thread hrbaer
Sorry @ all, I just forgot to restart the server so the approach with the AbstractReadOnlyModel is working! Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/update-label-using-Ajax-Link-tp3356575p3356773.html Sent from the Users forum mailing list archive at N

Re: update label using (Ajax)Link

2011-03-15 Thread hrbaer
Thanks Ernesto for you quick reply. Unfortunatelly this is not working :( But if I debug within the onClick method of my AjaxLink item.getModelObject() returns null? Any idea why this happens? Or is this just a problem with my debugging configuration of eclipse? I would expect I can access "Eintr

Re: update label using (Ajax)Link

2011-03-15 Thread Hans Lesmeister 2
Ernesto Reinaldo Barreiro-4 wrote: > > final Label vorname = new Label( "Vorname", new > PropertyModel(selectedEintrag, "vorname")); > This option will not work because: > selectedEintrag = item.getModelObject(); > The reference "selectedEintrag" is overwritten. - -- Regards, Hans

Re: WiQuery DatePicker and Ajax Request

2011-03-15 Thread Alexander Monakhov
Thanks for this fast reply! Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: WiQuery DatePicker and Ajax Request

2011-03-15 Thread julien roche AKA indiana_jules
Hi, This is typically a jquery ui problem. Indeed, it creates a div element after the input field So, each time you refresh the input, a new div will be inserted. The "best" workaround is to wrap the input into a div / span element which will be used to refresh the input. With this approach, we fl

WiQuery DatePicker and Ajax Request

2011-03-15 Thread Alexander Monakhov
Hi, guys. Here is a problem I met today: When I use DatePicker and I change it's model when ajax request received, on client side date picker's button image doubles. It happens because on every request date picker is initialized again and renders new image every time, but old one doesn't disappear

wicket 1.5-rc2 and aggregate jar for osgi

2011-03-15 Thread Eike Kettner
Hi, I'm using wicket 1.5-RC1 in an OSGi container. There was an issue when upgrading related to package names (https://issues.apache.org/jira/browse/WICKET-3088) Now I tried upgrading to 1.5-rc2 and found that there is no aggregate jar file anymore. I then read the discussion-thread "[discuss] Ho

Re: update label using (Ajax)Link

2011-03-15 Thread Ernesto Reinaldo Barreiro
I think you label model is never "updated".Can you try final Label vorname = new Label( "Vorname", new AbstractReadOnlyModel() { private static final long serialVersionUID = 1L; public String getObject() { return sele

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Sjoerd Smeets
Hi Pedro, Thanks for your reply. I'm not sure if I understand what you mean with "use nested components id as property expressions". The persisting part works fine with this code, however checking the correct boxes when the details page opens does not work. I have tried the following: setDefa

Set FormComponent Type and EmailValidator

2011-03-15 Thread vov
After submitting a form: add(new Form("form") // .add(new TextField("text", new Model(), String.class) // .add(EmailAddressValidator.getInstance( with empty field the fallowing error occur:('' is not a valid email address.) Without setting type for TextField - all fine

update label using (Ajax)Link

2011-03-15 Thread hrbaer
Hi, I try to update a component ("vorname" within my example) once the user click on a link within a table. (In fact it doesn't matter if it is an ajax link or a "normal" one. My example is using an ajax link.) This im my JAVA code: public class Test extends WebPage

Re: Wicket Wizard Step iComplete and Validation

2011-03-15 Thread Pedro Santos
Hi, while validators are being tested the form is not fully processed, so it is not a good place to test if the wizard step is complete. On Wed, Mar 9, 2011 at 3:20 PM, xFlasH wrote: > Hi everyone, > > In a quite complex wizard Wicket based application, I have filled a > WizardModel with many st

Re: Checking the checkboxes of CheckBoxMultipleChoice

2011-03-15 Thread Pedro Santos
Hi, this code is weird: listChoice.setDefaultModel(new CompoundPropertyModel(locationsInput)); listChoice.setModelObject(locationsInput.listAsSet()); because CompoundPropertyModel is useful to use nested components id as property expressions If details in form submit code is an Locations

Re: New Wicket tutorial series

2011-03-15 Thread Igor Racic
Hi, Thank you for tutorials. Someone with less knowledge (like me :-) can find them useful. I think it would be easier to follow tutorials if it were made by something like wink (especially where you have longer code with 6-7 points that are referenced) But, I can understand that it would be much

Re: Saving data in interim states of IWizard

2011-03-15 Thread xFlasH
Hi Why not do thé job in applyState() method ? Le lundi 14 mars 2011, tech7 [via Apache Wicket] a écrit : > > > I have couple of steps in my IWizard application. > > I have Save button on my interim steps. I have to save the object in this > state before the confirmation step but I do