Re: Custom CSS for Feedback message is broken in 1.5

2012-10-31 Thread Sven Meier
Hi, the CSS class could be changed in Wicket 7 only. Until you've migrated you can easily just use your own feedback component. Best regards Sven On 10/30/2012 11:24 PM, Sebastien wrote: Hi, I also agree with Martin's points. Having no css-class on the span is the best solution from my

Re: Call Wicket repeatedly from JQplot (Jquery based) graphing framework

2012-10-31 Thread baguahsingi
Hi Sebastien, Thanks for the reply. I neglected to say that the buildChart method is a javaScript method which I call from Wicket, it builds the chart with the javaScript charting framework JQplot. So it's not a Wicket id I'm passing to it but a div id (which contains the chart). It is also

Get keycode from Wicket 6.2.0

2012-10-31 Thread dunekey
Hi, I have a textfield and add AjaxFormComponentUpdatingBehavior on it. I would like to press enter to search data. I override the updateAjaxAttributes and get keycode from Wicket.Event.keyCode(event) It fails in Firefox but it works fine in Chrome and IE. Is it wicket's bug? @Override

Re: Get keycode from Wicket 6.2.0

2012-10-31 Thread Martin Grigorov
Hi, On Wed, Oct 31, 2012 at 11:34 AM, dunekey dunekey2...@yahoo.com.tw wrote: Hi, I have a textfield and add AjaxFormComponentUpdatingBehavior on it. I would like to press enter to search data. I override the updateAjaxAttributes and get keycode from Wicket.Event.keyCode(event) It fails in

Re: Call Wicket repeatedly from JQplot (Jquery based) graphing framework

2012-10-31 Thread Pointbreak
With that code the javascript should be added to the markup (which is easy to check if you view the source form your browser). Your problem is that the generated javascript is incorrect: you have no closing ['] after the url. That would have shown up if you opened the page in Firebug with Scripts

Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
Hello, Just updated from 6.1.1 to 6.2.0 and now I'm having a problem with file uploads. I have a public class FileUploadRequestHandler implements IRequestHandler that handles jquery fileupload requests. In its respond() method I call Request request = requestCycle.getRequest(); which in

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Martin Grigorov
https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=3355b5af68a238855a602f5161980d65024a1e92 On Wed, Oct 31, 2012 at 12:49 PM, heapifyman heapify...@gmail.com wrote: Hello, Just updated from 6.1.1 to 6.2.0 and now I'm having a problem with file uploads. I have a

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
Sorry, could you elaborate a bit on that? I don't see the connection... :( 2012/10/31 Martin Grigorov mgrigo...@apache.org https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=3355b5af68a238855a602f5161980d65024a1e92 On Wed, Oct 31, 2012 at 12:49 PM, heapifyman

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Andrea Del Bene
Hi, the change introduced by WICKET-4752 caused some other problems so it was reverted in 6.2.0. If you want to obtain the old behavior you should use in our application class the code that has been removed from WebApplication class (see the diff indicated by Martin) Sorry, could you

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
Hello, after a second closer look I figured I should override newWebRequest in my WicketApplication extends WebApplication, right? So now I have: @Override public WebRequest newWebRequest(HttpServletRequest servletRequest, String filterPath) { WebRequest webRequest =

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Andrea Del Bene
Yes it should be enough. Hello, after a second closer look I figured I should override newWebRequest in my WicketApplication extends WebApplication, right? So now I have: @Override public WebRequest newWebRequest(HttpServletRequest servletRequest, String filterPath) { WebRequest webRequest =

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Martin Grigorov
Hi, As Andrea explained (and the ticket you mentioned yourself) the change in MyApp#newWebRequest caused several problems, so better do not do it there. Move the code that creates the MultipartWebRequest in your own IResource impl. On Wed, Oct 31, 2012 at 1:55 PM, heapifyman heapify...@gmail.com

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Benedikt Schlegel
I'm getting a little tired of working with the models, seems I have some serious understanding problems. The view is NOT up to date by just having jQuery move some elements back and forth. The element IDs of the ListItems stay the same, so when I resort the same (n-th) element twice, there are

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Ernesto Reinaldo Barreiro
Just create a quickstart and put it somewhere so that others could have a look at it;-) On Wed, Oct 31, 2012 at 3:20 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: I'm getting a little tired of working with the models, seems I have some serious understanding problems. The view

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Benedikt Schlegel
I have no maven installed, so I can't create a quickstart. Instead, I zipped my project directory (an eclipse project) and uploaded it here: http://uploaded.net/file/d2zahfva Don't worry about the file size, all dependent libraries are in the WEB-INF/lib directory. The project itself is actually

Re: How to set Javascript error handler for Wicket Ajax error

2012-10-31 Thread Istvan Jozsa
I'm using Wicket-1.5. Figured out that an AjaxCallDecorator with failure handler almost solves my problem. What parameters are passed to failure handler of an Ajax call decorator ? (to be able to figure out type of failure) stefan

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
Ok, now I am kind of lost again. Sorry for the stupid question: Before I had - in WicketApplication: mount(new FileUploader(/fileupload)); - where FileUploader extends AbstractMapper and calls return new FileUploadRequestHandler(); in mapRequest(Request request) - FileUploadRequestHandler

Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
We are using a JS library to veil our forms after the user clicks Submit. (This is done to show a busy status, and prevent the user from doing anything else until it's done.) The veil is not a Wicket veil -- rather, we are using a separate jQuery library. It's working fine. We have 2 apps, one

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Ernesto Reinaldo Barreiro
We're sorry but all of our available download slots are busy currently, please try again within a few minutes. Can you e-mail it to me directly? On Wed, Oct 31, 2012 at 4:17 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: I have no maven installed, so I can't create a quickstart.

Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread eugenebalt
Is there a way to tell, just by looking at the rendered HTML, whether the component was a Wicket AjaxButton or a Wicket Button? (All buttons may have various JavaScript appended to them, so you can't just see if onClick is empty or not. For instance, a Button might have a Confirm popup appended

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
I guess what I'm asking is, is there a common Post-Constructor place that could be generically called in Wicket, where I could iterate through all components and append a JavaScript modifier to selective ones (Button and Link types)? -- View this message in context:

Re: Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread Thomas Götz
What is your usecase, why do you need to know this by looking at the generated HTML? -Tom On 31.10.2012, at 18:24, eugenebalt eugeneb...@yahoo.com wrote: Is there a way to tell, just by looking at the rendered HTML, whether the component was a Wicket AjaxButton or a Wicket Button?

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread Nick Pratt
Maybe you could add a Component Visitor to a Base Page (assuming you have a BasePage) and then inspect all the components that way. IVisitorComponent, Void Then based on the type of the Component being visited, attach a Behavior. N On Wed, Oct 31, 2012 at 1:57 PM, eugenebalt

Re: Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread eugenebalt
To see my usecase, look at the thread above this one, Append JavaScript to all Buttons/Links in App. We need to generically append a JS reference to all buttons throughout our app. We can do it either on the Wicket side or the JavaScript side. - On the JavaScript side, we'd need to distinguish

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
Hi Nick, In the BasePage, we haven't created any of our components yet. We create them in the Page. I need a *POST*-constructor of some kind, by which points all the components will be created. If I do anything in the BasePage, no components exist there yet. -- View this message in context:

IE8, IE7 Ajax fails with Wicket 6?

2012-10-31 Thread Jack Berg
Hi, I'm having problem with javascript in IE8 and IE7. I am getting a flood of SCRIPT5007: Unable to get value of the property 'jQuery17209514285345432955': object is null or undefined jquery-ver-1348220874405.js, line 3405 character 3 errors to the console or an SCRIPT438: Object doesn't

Re: IE8, IE7 Ajax fails with Wicket 6?

2012-10-31 Thread T Ames
I tried this with the example and I got the JS errors when I used the X to close the window. When using the Show modal dialog with a page and then a close link that returns a response, the window closed fine. On Wed, Oct 31, 2012 at 3:22 PM, Jack Berg erki.pub...@gmail.com wrote: Hi, I'm

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread Nick Pratt
I would expect the Visitor to run after Page construction, so all Components should be ready. I use a similar technique for Form components (to add error behaviors etc) - I dont see why the IVisitor approach wouldnt work at the BasePage level as well though. N On Wed, Oct 31, 2012 at 2:50 PM,

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread Igor Vaynberg
if you do a type search for o.a.w.I*Listener you will see a bunch of interesting ones, especially: IComponentInstantiationListener and IComponentInitializationListener -igor On Wed, Oct 31, 2012 at 10:57 AM, eugenebalt eugeneb...@yahoo.com wrote: I guess what I'm asking is, is there a common

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-31 Thread Alec Swan
I suggest that instead of overriding CSS class on the span you APPEND it to existing CSS classes. This will allow the user to specify their own span CSS class in newMessageDisplayComponent(..) AND will support backward compatibility. Sounds like a win-win to me. Thoughts? Thanks, Alec On Wed,

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-31 Thread Alec Swan
So, the patch can be applied to 1.5.8 and will replace label.add(levelModifier); with label.add(new AttributeAppender(class, replacementModel)) You may want to add AttributeAppender to li as well. Alec On Wed, Oct 31, 2012 at 4:33 PM, Alec Swan alecs...@gmail.com wrote: I suggest that instead

wicketstuff poms still depend on wicketstuff repo which no longer exists

2012-10-31 Thread Steve Swinsburg
Hi, Some artifacts in wicketstuff still mention the old wicketstuff repo, i.e.: http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom And on Maven2 that is causing the build to fail: Downloading:

Re: form with arbitrary number of fields

2012-10-31 Thread Steve Swinsburg
Hi, Thanks, I have a repeater already and have the form components, but the part I am unsure about is how those form components map to a model. So when the person clicks submit, how do I get the arbitrary number of fields of data that were submitted? Is there an example of this? cheers,

Re: form with arbitrary number of fields

2012-10-31 Thread Igor Vaynberg
this should get you most of the way there http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ -igor On Wed, Oct 31, 2012 at 4:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi, Thanks, I have a repeater already and have the form components, but the part I am

AjaxCheckbox javascript with onUpdate together

2012-10-31 Thread steven.li
hi al Is it possible to call onUpdate method and at the same time set javascript for the ajaxcheckbox component with add(new AttributeModifier(onclick, xxx)) ? as I have lots of logic implemented in javascript, but right now ,I need to use the onUpdate method to keep the checkbox state from