Re: Feedback within Form Weird Issue

2013-05-14 Thread Martin Grigorov
Try with binding the session. Maybe you run in stateless mode. Session session = getSession(); session.bind(); session.error(...); On Mon, May 13, 2013 at 11:08 PM, dhongyt davidhtr...@gmail.com wrote: Weird, it still does not show up. I do have a function that gets the session and register

Re: Server and client side validation

2013-05-14 Thread Martin Grigorov
Hi Gabriel, On Tue, May 14, 2013 at 12:43 AM, Gabriel Landon glan...@piti.pf wrote: Hi Martin, It does work with the following code: /return $('#%s').closest('form').parsley( 'validate' );/ Thank you very much. To find out whether the form is in a ModalWindow or not, I've used the

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
Hi Paul, Thanks for your suggestion, hadn't tried that, but I have now and it doesn't fix my problem. I use the idiom rather than simply calling Because: 1. depending on the situation it can lead to many setVisible calls in different parts of the page 2. it localises the visible setting to

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
Hi Paul, I was mistaken. I apologise. Previously I hadn't completely removed the onConfigure method from the form component and simply called the setVisible in the onUpdate method of the AjaxFormComponentUpdatingBehavior(onchange) / AFCUB(onchange). So your suggestion worked! Thank you very

Re: Deserialization InvalidClassException : no valid constructor

2013-05-14 Thread Jonas
This could only work if BufferedImage itself had a no-arg constructor. It is it the first non-serializable class in the hierarchy that needs to have it, not the first serializable one, like in your example. Besides, you would still lose all data stored in the BufferedImage's fields (i.e. the image

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
On Tue, May 14, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
On Tue, May 14, 2013 at 3:28 PM, vineet semwal vineetsemwa...@gmail.comwrote: also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. Agreed. We can pre-register all

Re: Feedback within Form Weird Issue

2013-05-14 Thread dhongyt
Thanks I will try both things. I believe my pages are stateful. Maybe its because I create an ErrorFeedback that extends the Feedback and didn't override some classes needed. -- View this message in context:

Component twice in markup while ajax refresh in Wicket 6.7 (migrated from 1.5.10)

2013-05-14 Thread Nico
Hi I migrated my application from Wicket 1.5.10 to 6.7 During testing I recognized that during an ajax update (replacement) of a component, the markup of the component is twice in the HTML markup (the old and the new markup). Thus the execution of javascript inside a component may fail due to

Re: Component twice in markup while ajax refresh in Wicket 6.7 (migrated from 1.5.10)

2013-05-14 Thread Sven Meier
Create a quickstart and attach it to a Jira issue please. Sven On 05/14/2013 04:37 PM, Nico wrote: Hi I migrated my application from Wicket 1.5.10 to 6.7 During testing I recognized that during an ajax update (replacement) of a component, the markup of the component is twice in the HTML

Re: Component twice in markup while ajax refresh in Wicket 6.7 (migrated from 1.5.10)

2013-05-14 Thread Martin Grigorov
Hi, We use https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L1617 because it is faster than jQuery#replaceWith(). So yes, there is a small period when both the old and the new are in the DOM. As Sven asked - please create a

Re: Call me page wicket from iframe in page.jsp

2013-05-14 Thread Alis
Thank you! Now, my problem is that there are two sessions (one in wicket application and another in jsp). How achievement maintain the values ​​existing in the request from wicket to return to interact in the page jsp. Example: page in wicket (Page.java) WebRequestCycle cycle =

Possible bug with AjaxLazyLoadPanel

2013-05-14 Thread Raul
Hello, I'm trying to get a component to update with Ajax from a AjaxLink, but always returns null, the access component is as follows. Component current = this.getPage().get(commentsPanel).get (modalPanel); Where commentsPanel is a AjaxLazyLoadPanel and modalPanel is of type Panel, If

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
i have just created issue https://issues.apache.org/jira/browse/WICKET-5189 thank you ! On Tue, May 14, 2013 at 7:15 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, May 14, 2013 at 3:28 PM, vineet semwal vineetsemwa...@gmail.com wrote: also why is well known tagnames getting

Re: Server and client side validation

2013-05-14 Thread Gabriel Landon
Martin, Thank you it was even easier than I though. /// starts parsley for this form (or the root form) final Form? form = (Form?) component; varResponse.render(OnDomReadyHeaderItem.forScript(String.format($('#%s').parsley();, form.getRootForm() .getMarkupId(;/

Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
I'm trying to create a typeahead component for Wicket that uses Bootstrap's Typeahead: To set this up though I need to provide the .typeahead method in JavaScript with a function that will return the results, given the query. What I'd like to do is attach that JavaScript function to a Java method

Re: Feedback within Form Weird Issue

2013-05-14 Thread dhongyt
I solved the issue. I was invalidating my session before it could display. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-within-Form-Weird-Issue-tp4658757p4658797.html Sent from the Users forum mailing list archive at Nabble.com.

AutoCompleteTextField issues

2013-05-14 Thread saty
I have used this before as a simple String model which works fine but with other types i have some isues going on any help would be appreciated. using: final AutoCompleteTextFieldXYZ something = new AutoCompleteTextFieldXYZ(code, xYZTypeModel, renderer) the options are displayed correctly

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Bas Gooren
Select2's wicket integration should provide you with some pointers [1]. It basically points down to implementing a listener interface, and providing the url to it to your javascript code. You can then return your data when the listener interface's method is called. [1]

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Don Ferguson
The following seems to work (using wicket 6.7 with the experimental bootstrap module). Basically, this ajax behavior is called on page load. At that point, it writes out the javascript to initialize the object with typeahead parameters. HTML: input wicket:id=typeahead type=text

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
@Bas Gooren that code you linked was very helpful. I have what I want up and working, but it's using a bunch of ugly jQuery ajax callbacks hacked into StringBuilders :-( @Don Ferguson I don't *think* this is what I'm looking for as I have thousands of options and I don't want them rendered at

Re: Retrieve a value of textField and set the property of the Model

2013-05-14 Thread Bruno Moura
Hi Paul, thanks very much for your help! I followed your suggestion but this peace of code doesn't compile unfortunately: IModel descriptionModel = new PropertyModel[Meeting](meeting, description)); I have tried val descriptionModel[IModel] = new PropertyModel[Meeting](meeting, description));

Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-14 Thread Bruno Moura
Hi For some weeks I'm trying to implement a simple combobox, DDC, and I'm struggling with this. I asked for some help several times but unfortunately I didn't archive my goal because I'm failing sometimes to understand scala with wicket, I have a little background with them at the moment.

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is