Re: Free Wicket guide now available!

2013-03-27 Thread Andrea Del Bene
with the addition - https://svn.apache.org/repos/asf/wicket/common/site/trunk/learn/books On Thu, Mar 21, 2013 at 5:51 PM, Andrea Del Bene wrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published m

Re: jQuery Treeview Context menu in wicket

2013-03-27 Thread Andrea Del Bene
Hi, I didn't clearly understand what you want to build. Dou you want a treeview like this http://jquery.bassistance.de/treeview/demo/? Hi, How to implement jQuery Tree View with Context Menu in wicket. Please provide a sample code or example Thanks in advance Regards G.Lenin -- View thi

Re: Free Wicket guide now available!

2013-03-23 Thread Andrea Del Bene
Thank you for you kind attention! That's exactly what we need to improve the guide. P.S.: I've taken the liberty to post a defect on google code for a couple of typos. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache

Re: Free Wicket guide now available!

2013-03-22 Thread Andrea Del Bene
t very familiar with the tools available for working with pdf files. By the way, I don't want to rush you or demand the source! I'm just asking to help out if possible :) On 21/03/2013 4:04 PM, Andrea Del Bene wrote: Hi Bertrand, no, at the moment there is no source for documen

Re: Adding to the existing AjaxBehavior of a component

2013-03-21 Thread Andrea Del Bene
Can you show some code or (better) can you replicate your problem in a quickstart application? In your opinion which are the behaviors in conflict? For example, the Panel was showing/hiding some components inside itself, based on the selection in those components; that was working correctly. Rig

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
Thank you sauli! Let's see how things evolve... :) Based on a quick browse, this seems to be a great and a very comprehensive quide to Wicket. I think documentation is the weakest part of Wicket and I have been waiting for something like this. None of the books I've read about Wicket so far expla

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
n 21/03/2013 11:51 AM, Andrea Del Bene wrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published my free guide to Wicket! You can find it at https://code.google.com/p/wicket-guide/. I've chosen to use

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
x27;d like to correct any typos I may find along the way to do my part and I think that a patch would be way more useful than sending an email with page numbers and descriptions. Regards, Bertrand On 21/03/2013 11:51 AM, Andrea Del Bene wrote: Dear Wicketers, I'm really excited to annou

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
Yes you are right. I've omitted the version because is reported in the introduction of the guide. But since there are few books around based on Wicket 6, I think I will follow your advice. version (major) the book is covering. I guess it's wicket 6.x --

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
the websocket part is covered... You have a some typo in the chapter 19 title (Test Driven Develomnet) Respect for this huge job!! ;) Sebastien. On Thu, Mar 21, 2013 at 4:51 PM, Andrea Del Bene wrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (i

Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published my free guide to Wicket! You can find it at https://code.google.com/p/wicket-guide/. I've chosen to use Google Project because many of us have a gmail account tha

Re: Adding to the existing AjaxBehavior of a component

2013-03-21 Thread Andrea Del Bene
Hi, how does the additional behavior break the existing one? We have a large panel containing components with multiple Ajax behaviors. In one context where this panel is used, we need to augment (add) the existing AjaxBehavior of a certain component by adding extra functionality to it. It seems

Re: RSS

2013-03-13 Thread Andrea Del Bene
I've published an article on JavaLobby about it... http://java.dzone.com/articles/how-implement-rss-feeds-custom Both very helpful. Thank you! ___ Stephen Walsh | http://connectwithawalsh.com On Tue, Mar 12, 2013 at 5:06 AM, Andrea Del Bene wrote:

Re: RSS

2013-03-12 Thread Andrea Del Bene
You can take a look at the very basic RSS feeds producer that I've implemented for my Wicket guide: https://github.com/bitstorm/Wicket-tutorial-examples/blob/master/CustomResourceMounting/src/main/java/org/wicketTutorial/RSSProducerResource.java I've used directly Rome framework to produce RSS,

Re: Change visibility of a component before onSubmit

2013-03-08 Thread Andrea Del Bene
Which version of Wicket are you using? Maybe you can do what you want with an AJAX listener. Hello, I would like to react on the onSubmit-method of an AjaxButton or normal Button. The problem is, I would like to make a panel (a customized progressbar) visible and after this there should be int

Re: JS execution order problem

2013-03-06 Thread Andrea Del Bene
Replacing OnDomReadyHeaderItem with OnLoadHeaderItem (class DatatablesBehavior) seems to solve your problem. It's likely that your script (the one from DatatablesBehavior) depends on some other code and it must wait for it to be loaded before being executed. Im having a problem with Javascript

Another question on stateless/bookmarkable pages

2013-03-05 Thread Andrea Del Bene
Hi, I still have a little doubt about stateless and bookmarkable pages. if i have understood well a stateless page must respect the following requirements: -all its children components and behaviors must be stateless -the page must be instantiated with a constructor with no argument o

Re: Error with Hidden Field and its enum value

2013-03-01 Thread Andrea Del Bene
The error occurs because Wicket convert your enum to a string when the form is rendered, then it tries to do the opposite converting the string to your enum. And here we have the problem. Wicket doesn't fin a valid converter (see JAvaDoc of FormComponent.convertInput) to obtain your enum from i

Re: TinyMCE.

2013-02-24 Thread Andrea Del Bene
The code should be contentTextArea.add(new TinyMceBehavior(new TinyMCESettings(TinyMCESettings.Theme.advanced))); If you still get an error can you show your pom.xml file? Yes, fails to execute. code: TextArea contentTextArea = new TextArea("content"); contentTextArea.add(new

Re: TinyMCE.

2013-02-22 Thread Andrea Del Bene
Do you get the error running your project from Maven? I've built a quickstart project with Wicket 1.4.19 and TinyMCE but it works fine. I use wicket 1.4.19. org.wicketstuff tinymce 1.4.19 also gives me the same error with visural wicket. -- View this message in cont

Re: [Blog] How to replace component with animation

2013-02-21 Thread Andrea Del Bene
Just for curiosity, have you considered also to do this using global AJAX listeners (using handlers for '/dom/node/removing' and '/dom/node/adding')? Hi, While fixing WICKET-5039 I've created an application that demonstrates how to replace a component with animation effect and blogged about it

Re: TinyMCE.

2013-02-21 Thread Andrea Del Bene
It seems that your application is missing the jar TinyMCE integration. You can find it at http://mvnrepository.com/artifact/org.wicketstuff/wicketstuff-tinymce/6.5.0 HI. when i execute my page with a textArea(with TinyMCE).java.lang.NoClassDefFoundError: wicket/contrib/tinymce/TinyMceBehavior T

Re: How to modify markup?

2013-02-20 Thread Andrea Del Bene
The first solution that comes in my mind is to overwrite method onComponentTagBody. Maybe this could work : add(new Link("helloMessage"){ @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) { getResponse().write(""); //write

Re: Unit-Testing JavaScript

2013-02-20 Thread Andrea Del Bene
Hi, maybe this article can give you some useful hints on what you wanna do: http://wicketinaction.com/2012/11/javascript-based-functional-testing/ From time to time we have to do some JavaScript-heavylifting in conjunction with the Wicket-JS-API. To make it short: What are you doing to Unit-Te

Re: Redirect to the HomePage on newSession

2013-02-14 Thread Andrea Del Bene
Hi, try using session listener interface ISessionListener. This entity defines method onCreated called after a new session ahas been created. To register a custom session listener use the following code in application class: public void init(){ super.init(); ISessionListener myListe

Re: a "loading ..." something ...

2013-02-13 Thread Andrea Del Bene
If you are using Wicket 6.x you can take a look at my project hosted at https://github.com/bitstorm/Wicket-tutorial-examples/tree/master/CustomAjaxListenerExample. There you can find a custom Ajax listener that displays a custom activity indicator for the whole duration of an Ajax request There

Re: Wicket job market

2013-02-05 Thread Andrea Del Bene
people can vote for them. On Tue, Feb 5, 2013 at 12:39 PM, Andrea Del Bene wrote: Reading the mails sent so far, I think Wicket should improve two aspects: -Its "promotion" -Support for stateless usage. The second point has already been indicated as a target for Wicket 7. The

Re: Wicket job market

2013-02-05 Thread Andrea Del Bene
Reading the mails sent so far, I think Wicket should improve two aspects: -Its "promotion" -Support for stateless usage. The second point has already been indicated as a target for Wicket 7. The "promotion" stuff is probably the most challenging because many of Wicket supporters has technical

Re: FormComponent markup

2013-02-03 Thread Andrea Del Bene
ok, I think I've figured out what you need. If you want to group two or more form fields in your custom form component you should extend class FormComponentPanel instead of FormComponent. This class combines the features of both a Panel (it has it's own markup file) and a FormComponent (it is a

Re: FormComponent markup

2013-02-03 Thread Andrea Del Bene
To clarify a bit more, you should end up writing something like: ... and Java code Form form = new Form("form"); form.add(new FormComponentA("formcomponentA")); form.add(new FormComponentB("formcomponentB")); In data sabato 2 febbraio 2013 22:28:11, Lucio Crusca ha scritto: Does tha

Re: FormComponent markup

2013-02-02 Thread Andrea Del Bene
Hi, if you are planning to subclass a FormComponent (let's say a TextField for the id and a TextArea for the description) you don't need to use panels and you will bind your custom components to standard form's tags and ... IMHO the second component should uses both models: IModel as main mo

Re: [6.5] testing Ajax stuff

2013-01-31 Thread Andrea Del Bene
I think you should extract the HTML from CDATA section. I've run a test with the response you wrote in your email and if I get rid of outer tags it works fine. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: [6.5] testing Ajax stuff

2013-01-31 Thread Andrea Del Bene
Hi, I haven't tested it but I think you could get the last response from WicketTester (with getLastResponse or getLastResponseAsString), then you should be able to search your attributes inside the response. Good afternoon, I'd like to test an Ajax response. More precisely, I'd like to get th

Re: How to prevent form input appended as URL parameters ?

2013-01-28 Thread Andrea Del Bene
Page parameters always contribute to the final URL of the page (in your example with parameter "txt"). You can avoid this passing the value with a different technique, for example passing the textfield model via constructor. Something like: StatelessForm form = new StatelessForm("myForm") {

Re: Load Image in IE fails

2013-01-26 Thread Andrea Del Bene
Hi. Which version of Wicket are you using? And what versions of IE have you tested? Hello, Im struggling with a very strange problem. Im loading the images from the file system using NonCachingImage or Image classes and everything work fine in FF but in IE it fails to load the images randomly

Re: documentation

2013-01-24 Thread Andrea Del Bene
For what it's worth :) I'm about to finish a free reference document for Wicket 6. I've started to write it almost one and a half years ago and it should be ready by the end of February. The example code used in the document are hosted here https://github.com/bitstorm/Wicket-tutorial-examples T

Re: Wicket HTML Cache

2013-01-17 Thread Andrea Del Bene
...or MarkupFactory.get().getMarkupCache().clear(); You need org.apache.wicket.settings.IMarkupSettings#getMarkupFactory().getMarkupCache().clear(); On Thu, Jan 17, 2013 at 5:58 PM, Tom Norton < tomwnorton.mailing.li...@gmail.com> wrote: --

Re: Ajax request stopped because of precondition check

2013-01-14 Thread Andrea Del Bene
1.8.23. Thanks, Oliver -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro (IT) Tel. +39 0721 35425 Fax. +39 0721 32967 P.IVA 00933130411 Associato AssoProvider CISCO Systems Partner PREMIER Certified ABANET is associated to RIPE (AS 12468) Http://www.abanet.it Questa

Re: Wicket jobs in Europe

2013-01-10 Thread Andrea Del Bene
still get email notifications when new jobs related to Wicket appear on Spain. Not many of them unfortunately... On Thu, Jan 10, 2013 at 7:44 PM, Andrea Del Bene wrote: Hi everybody! I know this is not a technical topic, but I'd like to know if anybody knows a good job search engine for Wicket-

Wicket jobs in Europe

2013-01-10 Thread Andrea Del Bene
Hi everybody! I know this is not a technical topic, but I'd like to know if anybody knows a good job search engine for Wicket-related positions in Europe. I've already seen the wiki page about Wicket Employers, but maybe there are other sources I don't know yet :). Thank you. --

Re: Static image

2013-01-08 Thread Andrea Del Bene
. I just found val img = new Image("img", new UrlResourceReference(new Url(listOfStrings, Charset.defaultCharset( Is the last example the preferred way of achieving this? Thanks in advance, René -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro

Re: Attempting to establish session for static resources in Wicket 6

2012-12-23 Thread Andrea Del Bene
I don't remember quite well how it used to work with 1.5, but looking at your stacktrace I see you used some kind of redirection policy that involves class RestartResponseAtInterceptPageException. This class needs to build a permanent session as you can see in its method InterceptData.set: pub

Re: TinyMCE ImageUploadPlugin problem

2012-12-18 Thread Andrea Del Bene
e.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro (IT) Tel. +39 0721 35425 Fax. +39 0721 32967 P.IVA 00933130411 Asso

Re: TinyMCE ImageUploadPlugin problem

2012-12-10 Thread Andrea Del Bene
I think that the missing button is a bug while uploaded images are placed into temp dir. I don't know if there is a way to configure this path. Hi, I have a form with a textarea TinyMceBehavior attached. I would like to provide users to upload and include images in their articles. I did the foll

Re: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Andrea Del Bene
Can you open an issue with a quickstart project? I'm using the latest from git as of about 12 hours ago. I just did another git pull and it says it's still up to date so I've got the latest master source and I'm building the wicket jars from that. -Original Message- From: Sven Meier [ma

Re: Is wicket-cdi native to Wicket 6.1 and upwards?

2012-11-26 Thread Andrea Del Bene
Hi, If you are using Wicket with a Tomcat-based server like TomEE maybe you could find helpful my example project on integrating OpenEJB and Wicket: https://github.com/bitstorm/Wicket-tutorial-examples/tree/master/CdiInjectionExample. Hey, http://devlearnings.wordpress.com/2011/05/15/apach

Re: adding swing Jframe inside Wicket webpage

2012-11-22 Thread Andrea Del Bene
No, there's no way to get what you are asking for. Hi , In my application, am using one open source tool to compare xml documents, this tool returns JtextPanes as a result , right now am putting these text panes in a Jframe and displaying Jframe. Now i want to show this Jframe inside wicket resp

Re: AJAX not working after migrating from wicket 1.5.5 to 6.3.0

2012-11-21 Thread Andrea Del Bene
What exactly is the problem with the new version of Wicket? Is the behavior not executed at all? I have a wicket application that implements a Form with multiple fields. AJAX form updating behavior onChange() is implemented so that a value change in one field will trigger reset of some other fiel

Re: How to load javascript file in apache wicket?

2012-11-19 Thread Andrea Del Bene
Hi, which version of Wicket are you using? I think you should handle your js file as package resource or shared resource... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-

Re: Access to markup

2012-11-16 Thread Andrea Del Bene
Take a look at Component's method onComponentTagBody. One of its parameters is MarkupStream which provides access to previous tags (it has method getPreviousTag()). Is it possible to get access to the markup of preceding elements in a Component's rendering? Im wondering if I can detect the prese

Re: any book about wicket 6?

2012-11-16 Thread Andrea Del Bene
I didn't write an article on tree components yet :) , but I've built a very basic example for NestedTree. The code is quite simple and it uses both nodes and model from Swing package (like the old Tree component). You can find it here: https://github.com/bitstorm/Wicket-tutorial-examples/tree/

Re: any book about wicket 6?

2012-11-14 Thread Andrea Del Bene
What topics would you like to find in a hypothetical book on Wicket 6 :-)? On Tue, Nov 13, 2012 at 10:27 PM, Martin Grigorov wrote: > Hi, > > I'm not aware of such. > But that doesn't mean that someone doesn't write one in stealth mode. > > > On Tue, Nov 13, 2012 at 9:29 PM, Djalma Silva Junior <

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 = supe

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 elabora

Re: Sort ListChoice component

2012-10-29 Thread Andrea Del Bene
Take a look at component Palette. It has something similar to sort selected options. Hi all, how can I sort ListChoice elements with moveUp and moveDown button? Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 085911

Re: How to know the country of the user

2012-10-28 Thread Andrea Del Bene
You should try Session.get().getLocale(). By default Session returns the locale of the underlying HttpServletRequest. How can I know the country of the user that is connected to my wicket page? I only suppose to check the IP address with: String ipAddress = ((ServletWebRequest) RequestCycle.ge

Re: Reseting a textField of an upload form

2012-10-04 Thread Andrea Del Bene
The problem seems related to the HTML. I've tried to put the table inside the form and it works. Like this: [filename] [fileupload] type="submit" value="add"/>

Re: Reseting a textField of an upload form

2012-10-03 Thread Andrea Del Bene
Hi, can you show the code you use to clear the model object of the textfield? Hello, I have an upload form with a TextField and a FileUploadField. When the user fill the form and press an AjaxButton, it refreshes the RefreshingView listing the files already uploaded. What I would like to do is

Re: multipart form problem - form validation fails

2012-09-20 Thread Andrea Del Bene
also with version 1.5.7 I couldn't reproduce your error. I get an error because during form submission Wicket doesn't find field 'photo' of class Product, but that's perfectly normal. The following is the code I used for the test: public class HomePage extends WebPage { private static fi

Re: multipart form problem - form validation fails

2012-09-19 Thread Andrea Del Bene
Which version of Wicket are you using? I've tested your code enabling file upload but it worked fine with both version 1.5.8 and 6.0.0 class AddProductForm extends Form { private FileUploadField photoField; public AddProductForm(String id, CompoundPropertyModel model) { super

JavaDoc for Wicket 6

2012-09-12 Thread Andrea Del Bene
I've seen that version 6.0.0 has adopted also a new structure for its distribution archives. So far I didn't find where the JavaDoc for this version can be downloaded . Are they available only online? - To unsubscribe, e-mail:

Re: read html file to string...

2012-09-11 Thread Andrea Del Bene
...but if you don't like using your html file as a package resource you can place it in a web app folder and use ContextRelativeResource Hi, you can place HTML file next to page class, then use PackageTextTemplate PackageTextTemplate textTemplate = new PackageTextTemplate(pageClass, "yourHTML

Re: read html file to string...

2012-09-11 Thread Andrea Del Bene
Hi, you can place HTML file next to page class, then use PackageTextTemplate PackageTextTemplate textTemplate = new PackageTextTemplate(pageClass, "yourHTMLfile.html"); textTemplate.getString() ; I have a fancy wicket app... I have a textarea on a page... I have an HTML file full of text.. I

Re: Nested form submit problem

2012-08-28 Thread Andrea Del Bene
I'm not 100% sure, but I think your inner form is submitted by the AjaxFormValidatingBehavior attached to textfield ertek. Try to remove it to see if the form is still submitted. Hi, I have the following use case. I have some questionnaires and a couple of questions belong to every questionnair

Re: Read POST based request from external site

2012-08-16 Thread Andrea Del Bene
I think there's a bug with class WebApplication which doesn't create a MultipartServletWebRequestImpl when the original request is multipart. In the meantime a possible workaround is to override method newWebRequest of your application class and put the following code inside it: { Ser

Re: Read POST based request from external site

2012-08-16 Thread Andrea Del Bene
Hi, try getRequestParameters() instead of getPostParameters(). This method returns all request parameters. I don't know why getPostParameters() return an empty result, maybe it is an issue... I was looking up all available threads, but did not find an answer. I have an app deployed to a mobil

Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread Andrea Del Bene
Try this: ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest() Hi, I need to get the HttpServletRequest object in My Application class. In the WebPage we can get from ((HttpServletRequest) ((ServletWebRequest) getRequest()).getContainerRequest()) but its not working in

Re: RadioGroup

2012-08-11 Thread Andrea Del Bene
ing phase it reading data from model. Wicket version 1.5.7. Valery Gorbunov On Sat, Aug 11, 2012 at 12:12 AM, Andrea Del Bene wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: RadioGroup

2012-08-10 Thread Andrea Del Bene
Hi and welcome to this mailing list! it's not clear to me the purpose of the ListView in your code. Why do you need it and what is the relation between this component and RadioGroup? Hello there, mighty developers. I'm quite new in Wicket, so beforehand sorry if my question is stupid. So what i

Re: Javascript in HTML -ta not working when Panel is used within a Wicket ModalWindow

2012-08-09 Thread Andrea Del Bene
On 08/09/2012 04:20 PM, Michael M wrote: Hmm I really just tried this several times.. how can it be that different people get a different quick-start behavior? I created that quick start form scratch, added the wicket-extensions dependency, my classes, the 'media' folder with all the CSS and JS f

Re: Values got lost from Property model or compound property model on ajax call

2012-08-05 Thread Andrea Del Bene
Hi, can you provide some more details? Can you attach the code of ajax link? Please help me i have page and using compound property model i am showing the values on clicking ajax link values got lost from the model -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/

Re: Repeating TextFields

2012-08-02 Thread Andrea Del Bene
Hi, what kind of problem have you encountered with ListView? Hi, I have a List that I want to represent with TextFields. I need to be able to dynamically add and remove them via AJAX. From what I’ve read online (and experienced firsthand) ListViews do not seem to be designed for this. What i

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-02 Thread Andrea Del Bene
yes, using stateless pages when it's possible will definitely reduce your session size. Wicket offers a stateless version for those components which by default have a stateful nature, like forms and links. As general rule you can implement a stateless page when the page doesn't need to keep it

Re: Nested external components in custom component

2012-07-18 Thread Andrea Del Bene
Hi, check class org.apache.wicket.markup.html.border.Border. It should be more appropriate than a simple panel for what you are trying to do. Hi, i'm trying to nest a formcomponent into a custom component of my own: What I want is to have additional markup around my various form components.

Re: Wicket and Versioning

2012-07-18 Thread Andrea Del Bene
Hi, you could try with the following solution: - Mount a stateless page on your desired path (let's say "/home") - This page should do nothing but redirect user to your stateful page, but instead of creating a new instance of it each time, it will save into session your stateful page to use it

Re: Form Submission problem

2012-07-17 Thread Andrea Del Bene
Hi, can you post the code of your custom filter? Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View t

Re: wicket 1.5 confirmation ajaxbutton

2012-07-13 Thread Andrea Del Bene
Hi, I've tried your code with Wicket 1.5.7 and it seems to work. What kind of error are you getting? add(new AjaxLink("delete") { @Override public void onClick(AjaxRequestTarget target) { }

Re: wicket 1.5 confirmation ajaxbutton

2012-07-12 Thread Andrea Del Bene
Please try to reattach the code. I can't read it neither in the mail nor on line. I used confirmation for onclick of ajax button in 1.4 it worked when I try the same with 1.5 it does not work. here is the code -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-

Re: how to connect elements - label and input (checkbox)

2012-06-30 Thread Andrea Del Bene
Hi, what do you mean exactly with "connect" the two component? Hi, is there any easy way, how can I connect label and input(checkbox) in repeater? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304.html Sent

Re: Ajax hide/show does not work

2012-06-27 Thread Andrea Del Bene
Hi, try setOutputMarkupPlaceholderTag instead of setOutputMarkupId. I do not understand this. I made a panel that must be hidden on click or show up on another Hiding works the first time then never again. SHow never works What do i wrong?? == Wicket Examples - upload

Re: Ajax does not update my webcontainer

2012-06-27 Thread Andrea Del Bene
Component corresponding to id=bestaandeGebruiker is not enabled or is invisible. That's why you get message "behavior not enabled" I have a screen with a part for existings users and a part for new users. One can switch by clicking a link 3 in the existingUserthere is a link for changing to newUs

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Sorry, I've missed an important step. You should call clearInput() on the outer form. You could try with something like this: cmodel.setObject(e); ((Form)form.getParent()).clearInput(); art.add(cont); Hi, Tried but did not work for me :( . info("saved file: " + uploa

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Hi, looking at your code I've noticed these two lines at the end of onSubmit of AjaxButton: setModel(new CompoundPropertyModel(e)); modelChanged(); here you are changing the button's model and not the one of the parent form (the variable cmodeldefined above ), hence its components won't dis

Re: Back button is troubling session management...

2012-06-09 Thread Andrea Del Bene
Hi, where did you pu the logic to check if user has already signed in (onInitialize, onBeforeRender, etc...)? Could you show your code? Hi, After I log in that application, I am not suppose to see login page of the app when I press back button. Though I am not able to go to login url as I am c

Re: Conditional validation without overriding isRequired

2012-06-06 Thread Andrea Del Bene
Hi, you can consider to override form's process() method. Before calling the super version you can check for the radio value and set the other fields as required if the specific value was chosen. Thanks for your reply, Argh, confused setVisible() with setRequired, my bad ;-) But nevertheless

Re: IllegalArgumentException at loading page the first time

2012-05-27 Thread Andrea Del Bene
Hi, there must be something wrong when you populate your class Acceptati (which I guess it's a sublcass of ListView). Check how you generate the id for children components of Acceptati. Hello, When I make a change to my database through my application and then I load a different page to see th

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Your solution should work the way it is. It's likely that you have a problem with form's submission. Are you sure that when you press 'save' button the form is submitted? And are you sure that radioButton has been added to the form that should be submitted by 'save' button? how can i set the p

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Property 'selected' is not setted according to the selected GENDER? Does property 'selected' remains null when you press 'save' button ? add( new RadioChoice("radioButton", new PropertyModel(this, "selected" ),GENDER ).setSuffix("")); Here I taken Gender as a list of values dynamically . The fi

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Hi, can you show the code you use to build radio buttons? Hi, I am new to Apache wicket. Can you please help me how to get the selected radio choice option in wicket.I have to save the some recruitment form with some fileds which we have to give dynamically .I have a static dropdown with list of

Re: add feedback message a to new panel.

2012-05-16 Thread Andrea Del Bene
Hi, calling error() on your new panel should work. Obviously you must have a FeedbackPanel somewhere on your page ;) I have a Button, which replaces parent panel with a new panel. In the new panel I want to display an error/warn/info, but I can't seem to figure out how. I've tried with getSessi

Re: Feedback panel inside form

2012-05-14 Thread Andrea Del Bene
Hi, it's absolutely ok to insert a feedback panel into its form. Every example of feedback panel I have seen places the feedback panel outside the form element. I have some markup from a client that has some Javascript doing client side validation with a styled feedback panel (a div) inside

Re: Prevent a fragment from rendering the outer tag

2012-05-12 Thread Andrea Del Bene
Hi, fragment.setRenderBodyOnly(true) I have following markup: ... ... ... Foo Bar ... ... When adding "fragment-1" (instance of Fragment) to "page", it renders using Wicket 1.4.* as: ... ... ... Bar ... Foo ... How can I make the Fragment not to render the div-tag around

Re: problem with ChoiceRenderer

2012-05-11 Thread Andrea Del Bene
Hi, the type of the model and of the renderer must be the same chosen for the DropDownChoice (Vyrobok in your case). In the first version of your code this was not true for your model because it pointed to a String field (named "kluc"). Your second version works fine because you don't provide

Re: Field with OnChangeAjaxBehavior Not updating.

2012-05-04 Thread Andrea Del Bene
Try calling form.clearInput() after you have updated the value of the models. I am having a bit of trouble making a required form field update from an ajax button. The field is marked required and has an OnChangeAjaxBehavior. The user deletes the contents of the field Presses an AjaxButton (tod

Re: Submitting multiple forms with one button

2012-05-03 Thread Andrea Del Bene
Hi, don't know if you can do it, but I think you should first investigate how to do this with JavaScript. This blog seems interesting: http://yogendrakrsingh.blogspot.it/2010/03/javascript-trick-submitting-multiple.html Sorry for this I know that this topic already been discused but I didn't

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread Andrea Del Bene
Hi, what are you using to change form's values when user clicks on table (an Ajax behavior ?) ? Hi, In my application, I'm developing a dynamic page with a table of currencies per dates and on the side I have a form with a 'from' date and 'to' date. Clicking on a cell of the table changes the

Re: Inputing string instead of a double value in junit test case throws NumberFormatException

2012-05-02 Thread Andrea Del Bene
At first sight I would say that your problem could be related to a different Locale used during unit test. You should compare the output of 'myData.getAmount()' when is called during testing and when is called running on Jetty server. I have a integration test case: FormTester for

Re: Wicket 1.5 - new browser window support & detection

2012-04-24 Thread Andrea Del Bene
AFAIK multi tabs/windows support is enabled by default, you don't need to do anything to enable it. Hi, I have a question about multi window (mutli tab) support in Wicket 1.5+. Many things changed .. like concept of IDs and versions... these are now only simple IDs, etc. My quetion is how do I e

Re: How to minimize window ?

2012-04-17 Thread Andrea Del Bene
requirment > > > > > |-----> > |Andrea Del Bene | > | | > | | > | | > |

Re: How to minimize window ?

2012-04-17 Thread Andrea Del Bene
Hi, can you be more specific? What kind of window are you trying to minimize? A modal window? PS: btw, the corporate site of tsmc is built with Wicket :)? Dear All: I want to add a JS code into the following method to minimize the window, but it doesn't work.. Could anyone give me som

<    1   2   3   4   5   6   7   8   >