Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
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 announce that, after

Re: Free Wicket guide now available!

2013-03-21 Thread Andrea Del Bene
, Bertrand On 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 Google

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

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.

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 an.delb

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

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

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

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. dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.19/version /dependency also

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

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: 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

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(span .../spanspan);

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

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

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: Wicket job market

2013-02-05 Thread Andrea Del Bene
vote for them. On Tue, Feb 5, 2013 at 12:39 PM, Andrea Del Bene an.delb...@gmail.comwrote: 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

Re: FormComponent markup

2013-02-03 Thread Andrea Del Bene
To clarify a bit more, you should end up writing something like: form wicket:id=form input type=text wicket:id=formcomponentA / textarea wicket:id=formcomponentB.../textarea /form and Java code Form form = new Form(form); form.add(new FormComponentA(formcomponentA)); form.add(new

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

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 input type=text/ and texarea.../textarea IMHO the second component should

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

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. ?xml version=1.0 encoding=UTF-8?ajax-response component id=galleryParent ![CDATA[span wicket:id=galleryParent id=galleryParent

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 StatelessFormVoid(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

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

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: Wicket jobs in Europe

2013-01-10 Thread Andrea Del Bene
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 andrea.on@libero.itwrote: 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

Re: Static image

2013-01-08 Thread Andrea Del Bene
(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 (IT) Tel. +39 0721 35425 Fax. +39 0721 32967 P.IVA

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:

Re: TinyMCE ImageUploadPlugin problem

2012-12-18 Thread Andrea Del Bene
. - 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 Associato

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

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

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,

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

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

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:

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:

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

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 mgrigo...@apache.orgwrote: 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

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 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: 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

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)

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: form wicket:id=uploadForm table wicket:id=formContainer tr thlabel[filename]/label/th thlabel[fileupload]/label/th th/ /tr

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

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 FormProduct { private FileUploadField photoField; public AddProductForm(String id, CompoundPropertyModelProduct model) {

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
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: 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,

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

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

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: {

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
model. Wicket version 1.5.7. Valery Gorbunov On Sat, Aug 11, 2012 at 12:12 AM, Andrea Del Bene an.delb...@gmail.comwrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

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

Re: Javascript in HTML body-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

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:

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

Re: Repeating TextFields

2012-08-02 Thread Andrea Del Bene
Hi, what kind of problem have you encountered with ListView? Hi, I have a ListString 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.

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: 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: 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

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 AjaxLinkFile(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:

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

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?? == html head titleWicket Examples -

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

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: +

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

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

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

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

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 RadioChoiceString(radioButton, new PropertyModelString(this, selected ),GENDER ).setSuffix()); Here I taken Gender as a list of values dynamically .

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

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

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)

Re: Prevent a fragment from rendering the outer tag

2012-05-12 Thread Andrea Del Bene
Hi, fragment.setRenderBodyOnly(true) I have following markup: ... div wicket:id=page h1.../h2 p.../p div wicket:id=info /div h2Foo/h2 /div div wicket:id=fragment-1 h2Bar/h2 ul.../ul /div ... When adding fragment-1 (instance of Fragment) to page, it renders using Wicket 1.4.* as: ...

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

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: 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

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: 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

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

Re: How to minimize window ?

2012-04-17 Thread Andrea Del Bene
|- |Andrea Del Bene | |adelb...@ciseonweb.it | | | | | | | |2012/04/17 下午 05:53

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Hi, already tried form setDefaultButton method (see JavaDoc)? I have a nested form that works as expected when it's submit button (an IndicatingAjaxButton) is pressed but not when the user presses the enter key when one of it's form fields is focused. Is it possible to capture this enter key

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Thanks, I just did and the flow is the one desired, but for some reason the nested form field models are not updated with the field inputs when the submit buttons onSubmit() is called. Is there something

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
It's like if JavaScript can't tell apart a form from another. Can you check the HTML generated for your page and see if forms have an unique id? On 04/11/2012 05:39 PM, Andrea Del Bene wrote: Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Sort of found

Re: RadioGroup selections after validation failure problem

2012-04-02 Thread Andrea Del Bene
HI, try giving a model to your RadioGroup: final RadioGroupPresentation group = new RadioGroupPresentation(presentationSingleSelectGroup, new ModelPresentation()); Hi All, My company has just started evaluating Wicket on an app that allows users to select and merge multiple PowerPoint

Re: POST parameters lost during InterceptException

2012-03-30 Thread Andrea Del Bene
Why not calling continueToOriginalDestination() after user has logged in? Do you think this could work? Hi, Try debugging at org.apache.wicket.RestartResponseAtInterceptPageException.InterceptData#set(). The post parameters should be preserved there and used later around line 200

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread Andrea Del Bene
Hi, what exactly is your problem? What problems are you having so far? I am new to wicket and also to webframeworks. i am creating an app, which has a homepage and when a link is clicked, it should display a form which takes two dates and a string as input and retrieves data from database.

Re: AjaxTabbedPanel - how to get at the tabs..?

2012-03-23 Thread Andrea Del Bene
Hi, you should use getTabs passing the index of the desired tab. in the debugger I see the tabs member of my AjaxTabbedPanel containing three items. but myTabPanel.get(2) returns null... What is the correct way to get a ref to a tab inside a tabbed panel? TIA -- View this message in context:

Palette and localization

2012-03-22 Thread Andrea Del Bene
Hi, working with Palette component I've noticed that each options is localized with the following instruction from AbstractOptions: displayString = getLocalizer().getString(displayString, this, displayString); Is there any way to disable localization? I have a list of thousands of

<    1   2   3   4   5   6   7   8   >