Re: Form.setMultiPart(true) and setResponsePage(...) in Wicket 1.4.7

2010-03-11 Thread t3_chris
igor.vaynberg wrote: open a bug, attach a quickstart Thanks, igor! Just created a quickstart, with a file upload field, multi-part form and a setResponsePage() call. Unfortunately (fortunately?) in my quickstart example everything works. So I'am a litte bit helpless now. I won't open a

Re: DatePicker onblur

2010-03-11 Thread Arnaud Garcia
thanks it helps me ! 2010/3/10 Vit Rozkovec rozkovec...@email.cz Hi, this may help you: I am using DateTextField from the package org.apache.wicket.datetime.markup.html.form; In the panel where I add this field, you can do: @Override protected void onBeforeRender() {

Re: DatePicker onblur

2010-03-11 Thread Arnaud Garcia
;-), sure !! 2010/3/10 Martin Makundi martin.maku...@koodaripalvelut.com ONCHANGE! 2010/3/10 Arnaud Garcia arn...@imagemed-87.com: Hi list ! I add an AjaxFormComponentUpdatingBehavior on my DateTextField to update my model on the fly... The updating behavior is based on the

icons as checkboxes

2010-03-11 Thread Eyal Golan
Hi, How can I make a Component to act as a checkbox, but to show an icon instead? I want to show an icon (image) when not selected, and if the user clicks on it, it will be selected = selected icon. The model to use is a Boolean. I guess this is easy, but please provide some code / explanation.

Re: icons as checkboxes

2010-03-11 Thread reiern70
Hi Eyal, I do something similar here http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/beantable/ToggleSelectRowButton.java It is just a Panel with and AjaxLink and an image. When user click link a round-trip to the server toggles boolean state and

Re: icons as checkboxes

2010-03-11 Thread Eyal Golan
thanks. i'll look into it and tell you what i've made :) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Mar 11, 2010 at 12:06 PM, reiern70

Re: jquery/qtip integration troubles - ajax post stopped

2010-03-11 Thread Antoine van Wel
Alright, I got this to work in a clean way. The problem was that the QTip jQuery plugin *cloned* the panel / form. This was causing trouble for the form submission. Simply adding a .remove() which removed the original DOM tree fixed the issue. I ended up with replacing .append(

Application#get in WicketSessionFilter

2010-03-11 Thread Jonas
Hi all, we're using WicketSessionFilter in our product to access our custom WebSession, which works fine. Now we've tried to also access the org.apache.wicket.Application (e.g. using Session#getApplication or Application#get), which doesn't seem to work, because the application isn't bound to the

Ad: Re: Generic solution for tabindex?

2010-03-11 Thread espen . pedersen
Thanks a lot Scott :) I've been thinking of something similar, but I don't like the idea of subclassing every component, that needs to be indexed. I've been playing with the thought of going through the components on a page and modify / add the tabindex attribute on the components in the page.

Re: modal window problem

2010-03-11 Thread Fernando Wermus
The link is no more functional. Could you show the code? On Thu, Mar 11, 2010 at 5:55 AM, Martin Asenov mase...@velti.com wrote: Please, anyone give some support on this one? Thank you, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Monday, March

RE: modal window problem

2010-03-11 Thread Martin Asenov
Hi, Fernando, Тhe code's too big , about 500 lines, and the html is another 62 lines. I can paste it anyway, but is this problem related to the code itself? The string http://:/; , which Matthias mentioned about is not present anywhere in the page sources, as I view the pages that cause the

A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
Yesterday I was looking at the page Migrating to Wicket 1.4 http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html Regarding SpringWebApplication, it says: SpringWebApplication has been deprecated in favor of SpringBean annotation. See SpringWebApplication javadoc for how to setup

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread James Carman
yes On Thu, Mar 11, 2010 at 8:56 AM, David Chang david_q_zh...@yahoo.com wrote: Yesterday I was looking at the page Migrating to Wicket 1.4 http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html Regarding SpringWebApplication, it says: SpringWebApplication has been deprecated in favor

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
James, thanks for quick reply. I guess I am a little confused is that in the init method, I use addComponentInstantiationListener(new SpringComponentInjector(this)); instead of add(new SpringComponentInjector(this)); as Migrating guide specified. The Guide-specified approach actually

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread Matthias Keller
Hi David addComponentInstantiationListener(new SpringComponentInjector(this)); is correct, as there is no add() method in Application. Matt On 2010-03-11 15:14, David Chang wrote: James, thanks for quick reply. I guess I am a little confused is that in the init method, I use

Interaction behavior / site

2010-03-11 Thread Thorsten
Hi, my site has two labels. One shows a total amount. If the user clicks on the other label, a tooltip shows up, where the user can increase the total amount with help of different links: +--- + a href=???increase by 1/a+ + a href=???increase by 2/a+ + a

Re: Interaction behavior / site

2010-03-11 Thread Michael O'Cleirigh
Hi Thorsten, The content of the tooltip should be a panel. The panel's model can contain the ListInteger of the increases you want offered and then it can use a repeater or ListView to render each option. If the links were AjaxLink subclasses you could set their model to be the particular

Re: modal window problem

2010-03-11 Thread Igor Vaynberg
view page source in the browser will not have any additions that came via ajax. -igor 2010/3/11 Martin Asenov mase...@velti.com: Hi, Fernando, Тhe code's too big , about 500 lines, and the html is another 62 lines. I can paste it anyway, but is this problem related to the code itself? The

jwicket question

2010-03-11 Thread Josh Chappelle
Hi, Lately I've noticed more comments about jwicket. At my company we have a couple of pages that use the wicketstuff-dojo wiper effect. However, since that project is no longer being maintenanced(and I don't' think I will have the time to maintain it) I am thinking about adopting another

RE: jwicket question

2010-03-11 Thread Stefan Lindner
Hi Josh, I was a former user of wicketstuff-dojo and faced the same problem as you: There was no maintainer for this project 2 years ago and there was a problem with drag and drop after Ajax Updates. The initial goal for jWicket was a robust and clean implementation of a drag and drop

Re: How to access ListItem from ListView from AjaxLink?

2010-03-11 Thread prati
Hi I have got a refreshing view ,it contains list of links.I need to highlight the link when i click on that link. It works properly but if i click the next item in the list,the previous text remains highlighted. wicket:extend table cellspacing=0 class=dataview tr

Re: How to access ListItem from ListView from AjaxLink?

2010-03-11 Thread Cemal Bayramoglu
Prati, This is because you are only re-rendering the most recently selected label. One solution is keep track of the previous current selection (probably in your RefreshingView implementation - eg declare Component currentSelection;), which you update in your Link's onClick (ie currentSelecton =

RE: jwicket question

2010-03-11 Thread Josh Chappelle
Thanks Stefan I will. I will download jwicket and see how easy it is to phase out my wicketstuff-dojo components and replace them with jwicket. Josh -Original Message- From: Stefan Lindner [mailto:lind...@visionet.de] Sent: Thursday, March 11, 2010 11:34 AM To: users@wicket.apache.org

RE: jwicket question

2010-03-11 Thread Martin Grigorov
Josh, What are the problems with wicketstuff-dojo ? Is it only that it uses Dojo 1.1 ? I think it wont be to hard to upgrade it to 1.4.x. Do you use declarative way to create dijits or it is too slow you ? The declarative approach is very easy to integrate with Wicket and if you parse only the

Re: Submit form with ajax on enter

2010-03-11 Thread cbchhaya
John, Is the fix in 1.4.7? John Patterson wrote: MattyDE wrote: Any other hints for this right now? I want to submit an ajax-Form by hiting enter in Textfield, but i want wicket to call the same Method as i defiend in AjaxButton ... any ideas? Thanks a lot in Advance If

RE: jwicket question

2010-03-11 Thread Josh Chappelle
Martin, The wicketstuff-dojo jar that we are using is named wicketstuff-dojo-1.3.0 which I believe is a different and older project than the wicketstuff-dojo-1.1. In fact I don't see it in the svn repository at all in the wicketstuff trunk. My main problem with it is that we are getting ready

AW: Re: Don't increment the Session.pageIdCounter for stateless pages?

2010-03-11 Thread martin . grotzke
From my basic understanding I'd say that for stateless pages nothing should depend on the pageId. What do you think about incrementing the pageId when it's first accessed? I'd like to create a patch for it to see if this works. Cheers, Martin -- Urspr. Mitt. -- Betreff: Re: Don't increment

Re: Interaction behavior / site

2010-03-11 Thread Thorsten
On Thu, 11 Mar 2010, Michael O'Cleirigh wrote: Hi Michael, The content of the tooltip should be a panel. The panel's model can contain the ListInteger of the increases you want offered and then it can use a repeater or ListView to render each option. If the links were AjaxLink subclasses

Re: How to access ListItem from ListView from AjaxLink?

2010-03-11 Thread prati
Hi Cemal, Thanks for replying me,but the list gets rendered only once,and i am able to capture previous value on click but then how to move further. Regards P jWeekend wrote: Prati, This is because you are only re-rendering the most recently selected label. One solution is keep

Field highlighting on error in Modal window

2010-03-11 Thread Anna Simbirtsev
Hi, I implemented LondonWicket-FormsWithFlair.pdf on my main windows, but on Modal windows it does not work, since it uses Ajax to submit the form. Do I have to check each field manually and manually highlight it in Modal windows? Thanks, Anna

Re: Ajax paging navigation link exception

2010-03-11 Thread bferr
Hi, I am getting a similar error on wicket 1.4.5 when the user clicks an ajax link and then clicks a different ajax link on the same page before the first response is received by the browser. I am not using the PagingNavigator, just simple AjaxLinks in a ListView. kent lai wrote: Hi,

Re: component xxx:yyy:zzz not found on page

2010-03-11 Thread bferr
I saw this on our website when the user clicked an AjaxLink that ran long and then clicked another AjaxLink before the response was received. We added a DIV overlay to the ajax spinner and implemented IAjaxIndicatorAware on our page so that all AjaxRequests would have the overlay with a

Re: How to access ListItem from ListView from AjaxLink?

2010-03-11 Thread Cemal Bayramoglu
Prati, I'm not sure what you mean. Here's a couple of lines of code implementing what I described: if(currentSelection != null){ // you should remove existing behaviours on // currentSelection here or, // use an AtrributeModifier added, just once, to all your

Re: How to access ListItem from ListView from AjaxLink?

2010-03-11 Thread Cemal Bayramoglu
if(currentSelection != null){ // you should remove existing behaviours on // currentSelection here or, // use an AtrributeModifier added, just once, to all your // labels with a model that has logic // checking against currentSelection to // calculate

Re: Re: Don't increment the Session.pageIdCounter for stateless pages?

2010-03-11 Thread Igor Vaynberg
patches are always welcome. -igor On Thu, Mar 11, 2010 at 1:23 PM, martin.grot...@javakaffee.de wrote: From my basic understanding I'd say that for stateless pages nothing should depend on the pageId. What do you think about incrementing the pageId when it's first accessed? I'd like to

IE trouble with WebClientInfo

2010-03-11 Thread tubin gen
here is the little code I use to check the browser java script is enbled. WebClientInfo clientInfo = (WebClientInfo)WebRequestCycle.get().getClientInfo(); if(!clientInfo.getProperties().isJavaEnabled()){ throw new RestartResponseAtInterceptPageException(WrongBrowserPage.class); } but IE is

LDM, Forms, and Ajax

2010-03-11 Thread Matthew Welch
I'm experimenting with a domain model that extremely interconnected. It's being persisted using a graph database which handles this high degree of interconnectivity with aplomb, however because my each of my domain objects is so tighly tied to the others, I have to be very careful to always use

Re: LDM, Forms, and Ajax

2010-03-11 Thread Jeremy Thomerson
Have you tried AjaxFormComponentUpdatingBehavior? -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 11, 2010 at 8:47 PM, Matthew Welch matt...@welchkin.net wrote: I'm experimenting with a domain model that extremely interconnected. It's being persisted using a graph database

FormTester - submitting more than once

2010-03-11 Thread Tony Wu
I'm trying to write a unit test for a form. I have a form with 2 submit buttons. The 1st submit button is an AjaxSubmitButton which allows the user to enter a ID, that then shows all the products associated with that ID (it requires validators to run which is why it's a submit button). The 2nd