Re: DropDownChoice - how to select default item

2010-09-01 Thread andrea del bene
Hi drf! Have you checked the generated HTML? Is there any 'selected' attribute in your tags? I am having a problem that my DropDownChoice is not selecting the item I expect, only "Choose one". Here is the code: ... private List accountList = new ArrayList(); private Long selectedAccount; pub

Re: Radio buttons in modal window in IE6

2010-09-02 Thread Andrea Del Bene
> > Visually I can switch through radio buttons, but, when I submit form - it's > always the same value - Hi! Have you tried adding model to RadioGroup? es: RadioGroup choiseGroup = new RadioGroup("searchParam", new Model()); Grafas gmail.com> writes: -

Re: Radio buttons in modal window in IE6

2010-09-03 Thread Andrea Del Bene
Grafas gmail.com> writes: > > > Oh, yeah, sorry, the code sample doesn't show it... Sorry about that. > Yeah, RadioGroup has model set. Hi, I've tried to reproduce your case in my development environment. Here's the HTML I used for test --- Click me!

Re: java.lang.ClassNotFoundException: org.apache.wicket.protocol.http.WicketFilter

2010-09-03 Thread Andrea Del Bene
x-man googlemail.com> writes: > > > hi at all, > > at first sorry for my poor english. > > I`m a wicket beginner and have the following problem which i could not > solve: > > When i want so start my tomcat i get often the message i will post bellow. > In past it helped to delete the tomcat a

Re: image path problem

2010-09-06 Thread Andrea Del Bene
Zeldor gmail.com> writes: > > > Hi, > > I am trying to group all my images into one folder, but the problem is that > I cannot get them displayed - that is as long as that folder path is higher > in the hierarchy than my html files. > > So images/image.jpg works perfectly, but > /src/main/

Re: How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Andrea Del Bene
Joseph Pachod thomas-daily.de> writes: > When trying to reach this goal, I tried to run the init call through an > header contributor, but the call is then done before my content is put > on the page, making it useless: > public abstract class AbstractEditBehavior extends AbstractBehavior > { >

Re: Radio buttons in modal window in IE6

2010-09-07 Thread Andrea Del Bene
Grafas gmail.com> writes: > > >... > But every time I submit that form model object is NAME and in browser radio > button "jumps" from whatever I checked to the first one although I never > relaod the radio button part. Only search result container is added to a > target to display search resu

Re: Radio buttons in modal window in IE6

2010-09-07 Thread andrea del bene
On 09/07/2010 07:42 PM, Grafas wrote: Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are y

Re: How can I capture the data on one panel 1 when i click submit button on panel 2

2010-09-09 Thread Andrea Del Bene
Ben yahoo.com> writes: > Here is my panel1 >... > add(new ImageQualityForm("imageQualityForm", new > CompoundPropertyModel(imageQuality), aform)); > } > > private static class ImageQualityForm extends Form { > > public ImageQualityForm(String id, IModel model, WicketAnal

Wicket 1.5 M1 and Request class

2010-09-10 Thread Andrea Del Bene
Hi, I'd like to try new milestone release of Wicket. I've red migration document (https://cwiki.apache.org/WICKET/migration-to-wicket-15.html) which says that class org.apache.wicket.Request was moved to org.apache.wicket.request.Request but I can't find this class in distribution's jar. I've sea

Re: Wicket 1.5 M1 and Request class

2010-09-10 Thread Andrea Del Bene
Thank you Martin :)! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
MONZON Jose efgfp.com> writes: > > Hi there! > > I've been giving a Try to Wicket framework. But I have to admit that I'm > starting to get crazy! Some help appreciated. > > I'm using last Wicket distribution 1.4.11 > > And I'm trying to implement the Wicket Form (with ajax) example you can >

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
> > Hi Jose, > > I can confirm this bug. It works fine with Wicket version 1.4.8. I will open a > bug on Apache JIRA. > Sh**! Sorry, but know it seems to work also version 1.4.11. What jars have you inserted in your classpath to run test code? --

Re: Wicket 1.5 benchmarks?

2010-09-10 Thread Andrea Del Bene
nino martinez wael gmail.com> writes: > > Hi > > Has anyone run some comparison benchmarks between wicket 1.4 and 1.5.. > My feeling are that 1.5 are faster.. > > regards Nino > > - > To unsubscribe, e-mail: users-unsubscribe

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
Martin Grigorov apache.org> writes: > > Please create a minimal application (quickstart) and attach it to Jira > ticket. > > On Fri, Sep 10, 2010 at 2:45 PM, Predrag Spasojevic < > predrag.spasojevic gmail.com> wrote: > > > I have the same problem with AjaxButton, wicket 1.4.11 and FireFox 3.

Re: Javascript files not loading in IE6

2010-09-15 Thread Andrea Del Bene
Redo Cano, Xavier gencat.cat> writes: > > I'm sure that this is happening due to a bad configuration of my wicket > app, because the Ajax examples from wicket-stuff work are working > correctly with IE6 for me but I've checked the source code and I'm not > able to find the reason why my applicat

Re: Javascript files not loading in IE6

2010-09-15 Thread Andrea Del Bene
Redo Cano, Xavier gencat.cat> writes: > > Thank you for your response Andrea. I've just tried the 1.4.12 build and it didn't solve the problem. I don't > think it's a bug as long as in the wicket examples page this functionality is working fine with IE6. > > Ciao! > Hi, I've replaced file wic

ChoiceRender and many property expressions

2010-09-21 Thread Andrea Del Bene
Hi, I need to render options in a MultipleSelectList using more then one field from a POJO. Is possible to use ChoiceRender selecting more then one property (for example passing it more then one property expression)? Thank you, Andrea. -

Re: noob question

2010-09-23 Thread Andrea Del Bene
sonoerin yahoo.com> writes: > > > customerA.domain.com > customerB.domain.com > > So I am not sure if its best to just have multiple deployments each with > their own Wicket Application/homepage or if there is a way to bundle them > all into a single app that handles each request/response base

Re: automatically sizing modal window

2010-09-26 Thread andrea del bene
On 09/25/2010 02:30 PM, Fernando Wermus wrote: I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamau wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems

Re: automatically sizing modal window

2010-09-27 Thread andrea del bene
Hi Martin, what I'd like to have is a window that automatically adjusts its height and width in order to ensure that all its content it's always visible without scrollbars. I think it could be done with some JavaScript code. Do you think it's possible to implement such behavior? Thank you i

ModalWindow causes 'Submit Button not visible' exception

2010-10-01 Thread Andrea Del Bene
Hi everybody, I'm facing the following problem. I've got a page with a wicket form and just one submit button. When I press return key in a form field the form is submitted with no problem. Inside form I've one link that opens a ModalWindow via ajax. This window contains another wicket form which

Re: RadioChoice - what's wrong?

2010-10-10 Thread andrea del bene
Hello Zeldor, I've red your code and it seems that you define variable rc two times: the first time as form private field and the second time just below between braces. When onSubmit method calls rc.getModelObject() it uses private field rc which was not initialized and so triggers a NullPoin

Re: Dropdrown mapping from Object to string?

2010-10-21 Thread Andrea Del Bene
Hi Nino, what kind of Model are you using as backing model? You can try nesting models to extract string property from object For example: > See IChainingModel for further informations. Hi I have an dropdown which gets feed a Queue list, I have a custom renderer which then select the name p

Re: Modalwindow with confirm box on close button

2010-10-27 Thread Andrea Del Bene
Hi Marieke, some times ago I've solved a similar problem using JQuery and a plugin called jQuery AOP, but I don't know if exists a simpler solution. I used jQuery AOP with close button which is a standard anchor with class attribute set to 'w_close'. The following script will ask user to conf

Re: DropDownChoice

2010-11-01 Thread andrea del bene
Hi, you get this exception because you set as object model an Account object and not a Long one, which is the expected type for model. I suppose you should pass just Account id field as object model. I wonder if anyone can help with the following bug in my code. It relates to a Panel which con

Re: Send an object to page

2010-11-01 Thread andrea del bene
Passing objects to webpage via constructor is fine if you feel comfortable with it. If you wanna change URI you should take a look at Wicket URL Coding strategies: https://cwiki.apache.org/WICKET/url-coding-strategies.html. Using coding strategies you should be able to change URL as you prefer

Re: Nested forms onSubmit() question ...

2010-11-04 Thread Andrea Del Bene
Hi Armando, have you tried calling method visitChildren(Form.class, visitor) in the main onSubmit? Maybe this could help you to gather children's data before submit root form. Bye. Hey wicket ppl ... Is there any beforeSubmit() event like method available on Form. I need it cause I have

Re: Missing FeedbackPanel : Component-targetted feedback message was left unrendered

2010-11-16 Thread Andrea Del Bene
Hi, have you tried moving FeedbackPanel out of fragment? You could put it at the end of the form like this: ... and then you could add it directly to form: form.add(new RedFeedbackPanel("feedback")); My Problem is the correct display of a feedbackpanel. The feedbackpanel is defined in

Re: Wicketter with ModalWindow

2010-11-16 Thread Andrea Del Bene
Hi! What's your problem, exactly? Can you display modal window or it doesn't open at all? On 16/11/10 11:02, thobile wrote: I have a link that I click and new Modal window is poping up, I am having difficulties on testing my new Modal window components. Basically I a using Modal window popup

Re: Wicketter with ModalWindow

2010-11-17 Thread Andrea Del Bene
same error, path does not exists, is the anything that I miss or doing wrong please help me. Thank you On Tue, Nov 16, 2010 at 7:03 PM, Andrea Del Bene-2 [via Apache Wicket] wrote: Hi! What's your problem, exactly? Can you display modal window or it doesn't open at all? On 16/11/10

Re: Missing FeedbackPanel : Component-targetted feedback message was left unrendered

2010-11-17 Thread Andrea Del Bene
Thanks for sharing your solution! Bye. I got the solution! Just adding setReuseItems(true) to the ListView and it's working! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: u

Re: ModalWindow update size

2010-11-18 Thread andrea del bene
Hi meduolis, in order to resize modal window you could try to use some JavaScript. Wicket keeps track of modal window on client side with variable Wicket.Window.current. To resize modal window you could write something like: var targetWindow = Wicket.Window.current.window; var targetContent

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread Andrea Del Bene
Hi, take a look at file DefaultCssAutocompleteTextField.css. You could find it into Wicket source code in folder src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete. This file contains css elements you need. Bye.

Re: close tag not found error in markup

2010-11-23 Thread Andrea Del Bene
Hi Andrea, maybe have you just missed close tag for topToolbars component? In the last code snippet I see just one tag. I am very sorry, but it seems like a portion of the code I paste is being stripped when I post it. This is the code that's nested inside the thead tag < span wicket:id =

Re: close tag not found error in markup

2010-11-23 Thread Andrea Del Bene
Is there any code inside toolbar? Is just an empty component? I am very sorry, but it seems like a portion of the code I paste is being stripped when I post it. This is the code that's nested inside the thead tag < span wicket:id = "topToolbars"> < span wicket:id = "toolbar"> H

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
Hi, does form use PanelCart fields for validation? yes. it doesn't matter if i do: this.add(new FeedbackPanel("feedback", new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(this))); in PanelCart.class, panel still show message

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
Which version of Wicket are you using? I'm trying to reproducing the bug wit 1.4.17 but without success. at the moment o don't deal with form filter, i deal with problem how to filter in PanelCart messages not produced in PanelCart and how to set it in PanelCart -see below ;-) -Original Mes

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
I've practically made a carbon copy of your code, but everything seems work well (tested also with wicket 1.4.13). Can you attach the full code (markup included) of your panel and pages? hmm, stil no succes, still trying. again recap: public class PageBase extends WebPage { public PageB

Re: How to use lazy initialize ModalWindow's Panel

2011-09-29 Thread Andrea Del Bene
Hi, you can consider to access to checkout order not directly with a variable (i.e. coOrder or checkoutOrder) but using a Wicket IModel. Then you could initialize your panel using onInitialize method, when IModel contains the right CoOrder instance. in WebPage, add modalwindow when page ini

Re: Ajax : Modifying CallBackUrl in OnEvent()

2011-10-03 Thread Andrea Del Bene
Hi, when onEvent is triggered the callback script has been already executed, so it's too late to re-generate it. Maybe I didn't understand right your problem. Hi, I have an overridden the AbstractDefaultAjaxBehavior.getCallbackScript(boolean onlyTargetActivePage) method. I have also overridde

Re: AbstractTransformerBehavior does not support ajax in wicket 1.5.1

2011-10-03 Thread Andrea Del Bene
I confirm the problem. I'm opening an issue on jira. Hi, Using ajax to update a component that has an AbstractTransformerBehavior attached throws a ClassCastException (see below). I can only assume that this is not intentional? Root cause: java.lang.ClassCastException: org.apache.wicket.ajax.Aj

Re: Doubt about Pallete

2011-10-04 Thread Andrea Del Bene
Hi, can you give us some more details about what you need? Can you give an example of 'element clicked just one time'? Wicketers, Someone knows how get an exact element clicked just one time (single click) in a Pallete component? I read some examples about this, but no one solved this pr

Re: WicketTester#startComponentInPage and tester#assertModelValue

2011-10-05 Thread Andrea Del Bene
Hi, I agree with you, that's a little ambiguous. Why 'getComponentFromLastRenderedPage' uses 'startComponent'? Shouldn't be 'path' an absolute path to the component on the page? Hi, I have a rather strange behavior, and I don´t know what I´m doing wrong. Before I open a Bug, I would like to

Re: 1.5.1

2011-10-07 Thread Andrea Del Bene
Hi nino, XmlPullParser has became more "strict" in Wicket 1.5.1 in order to solve WICKET-3773. Now it complains about not balanced quotes of tag attributes. Maybe we could improve exception message. virtual ipod on its way to matt.. Dead on! thanks :) 2011/10/7 Matthias Keller: Hi Seems to

Re: SelectOption and DropDownChoice

2011-10-10 Thread Andrea Del Bene
Hi, you can take a look at method AbstractChoice.appendOptionHtml. You can manipulate HTML overriding it. But I think there's no way to access to single options. I solved a similar problem using some JavaScript... Hi. I need to add an attribute to an inside a dropdown. I'd rather have a Drop

OT: slides from JavaOne 2011 about web frameworks comparison

2011-10-11 Thread Andrea Del Bene
http://www.dzone.com/links/r/javaone_2011_comparing_java_web_frameworks_choosi.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: OT: slides from JavaOne 2011 about web frameworks comparison

2011-10-11 Thread Andrea Del Bene
other cons unfortunately is more correct... On Tue, Oct 11, 2011 at 2:42 PM, Andrea Del Bene wrote: I agree. IMHO another flaw of this presentation is Wicket users list which is too small and is missing some important companies like Wallmart, Norton, Intesa San Paolo (the biggest Italian bank

Re: OT: slides from JavaOne 2011 about web frameworks comparison

2011-10-12 Thread Andrea Del Bene
Hi Chris, Martijn is working on both website and examples style. You can follow him and give feedbacks at https://issues.apache.org/jira/browse/WICKET-3341 and https://issues.apache.org/jira/browse/WICKET-3435. Wicket is clearly the best framework as we all know :) but newcomers might not thi

Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Andrea Del Bene
Hi, can you attach the code you use to initialize ListView? Hi, Upgrading to wicket 1.5.1 from 1.4.18 my ajax updates stopped working. I have a page with a form. Inside the form there is a repetition (ListView) that among other things creates a text field for each item (ListItem). Each of th

Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Andrea Del Bene
I've tried to reproduce your condition in a quickstart. The Java code is the following: List itemList = Arrays.asList(new String[]{"red", "blue", "green", "yellow"}); final Label label; add(label = new Label("label", "")); label.setOutputMarkupId(true); ListVi

Re: ListChoice and it's renderer

2011-10-15 Thread Andrea Del Bene
Hi, take a look at method AbstractChoice.appendOptionHtml. You can override it and manipulate the HTML as you desire. Hi All, I want to extend a simple listchoice component to also include a "title" attribute in the generated html code. So basically I want the tag to be generated like this:

Re: Can not locate error messages from property messages

2011-10-15 Thread Andrea Del Bene
Hi, are you sure that code 'getClass().getSimpleName() + "." + errorKey' generates a valid key bundle? Hi; I am using a really simple property file, to display some validation errors, it used to work fine, but it stopped working, now I can't even get the simplest example to work. and I am re

Re: onInitialize or Constructor

2011-10-19 Thread Andrea Del Bene
Hi, when onInitialize is called, component has already been inserted into its hierarchy so you can call getParent() or getPage() safely. Hi wicketeers ; Which is the recommended way of initializing page components: onInitialize() or Constructor ? regards. Josh. ---

Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene
Looks good for me also. Tested under IE 8, Windows XP. Works OK for me. No JS errors. Tested with IE9 in different browser modes and document modes. Including Quirks. Is it possible that it is some IE setting ? On Thu, Oct 20, 2011 at 2:49 PM, Ann Baert wrote: A wicket autocomplete gives error

Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene
ooops, I was wrong. I got the same problem. I also see this error on the specified page with Internet Explorer 8 (WinXP SP3) It does not matter if I enable or disable the compatibility feature. Matt On 2011-10-20 13:54, Martin Grigorov wrote: Works OK for me. No JS errors. Tested with IE9 in

Re: reverse engineering a wicket application

2011-10-24 Thread Andrea Del Bene
Check WebApplication also for method getHomePage() or getSignInPageClass () to identify home and signin pages. Check the webApplication file you should be able to find the mounted pages there --Original Message-- From: roncking To: users@wicket.apache.org ReplyTo: users@wicket.apache.org

Re: Problem with Panel default model

2011-10-26 Thread Andrea Del Bene
Hi, does your page override onBeforeRender method? Can you show the code? Thank you. Upgrade to 1.5.2 did seem to resolve the issue with the last ajax request parameters being pushed onto the base url. However, testing that resolution exposed a further problem. I'm using a org.apache.wicket.m

Re: Modal Window with Ajax in Firefox

2011-10-26 Thread Andrea Del Bene
How do you close modal windows? Can you copy the code? mbinations and if combination is still available reservation process continue if not combination is removed from listview and user can choose another. If all combinations are not available than modal window is closed. This use case works fi

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Andrea Del Bene
You missed the funniest row: "UI programming on client-side". What does it mean "Java, Javascript" for GWT and Vaadin and just "Javascript" for Wicket? Does it mean that GWT and Vaadin run bytecode inside browser? Did they (re)invented applets :)? missing a green dot in "Framework extensions ar

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Andrea Del Bene
That's right but why they didn't include Java among languages you can use to program on client side with Wicket. It's a mystery! On Wed, Oct 26, 2011 at 10:02 PM, Andrea Del Bene wrote: You missed the funniest row: "UI programming on client-side". What does it mean &

Re: Modal Window with Ajax in Firefox

2011-10-26 Thread Andrea Del Bene
Hi, I've tried to reproduce your issue but without success. The modal window closes correctly. I've used the last version of Firefox, the 7. Java code for my test page is the following: public class HomePage extends BasePage { private static final long serialVersionUID = 1L; @Overrid

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-28 Thread Andrea Del Bene
That's why I don't like a statement like "UI programming on client-side with Java". You are just giving the impression of programming your GUI in Java, but in the end is a lot of JavaScript, and this doesn't help code maintenance as pointed out by Eelco . I know that GWT is good at "mimicking" d

Re: Handling form ajax submit on enter key in form field

2011-11-01 Thread Andrea Del Bene
Hi, if your form has just one submitting button, pressing enter key on a field should submit it by default. Anyway, I would solve this problem using a JavaScript library like JQuery rather then using a Wicket Ajax behavior. Can you give us more details about your AjaxFormSubmitBehavior? Are y

Re: How to clear PageMap in Wicket 1.5?

2011-11-02 Thread Andrea Del Bene
Have you tried session.invalidate()? If you have an AuthenticatedWebSession you can also use signOut() Hi Upon logging out we need to keep the current user's session to still display some information but we want to remove all previous pages from the PageMap (or however that is solved in Wicket

Re: Modal Window with Ajax in Firefox

2011-11-02 Thread Andrea Del Bene
window and it seems that javascript opens first window instead of new one. On 10/27/2011 12:36 AM, Andrea Del Bene wrote: Hi, I've tried to reproduce your issue but without success. The modal window closes correctly. I've used the last version of Firefox, the 7. Java code for my te

Re: Closing modal window with keyboard

2011-11-08 Thread Andrea Del Bene
I don't think there something ready-to-use to do this. You can try implementing this with JavaScript, intercepting the right keyPress event and closing the modal window. This last code can be obtained from method ModalWindow.getCloseJavacriptInternal Hi, Is there a way to close modal window wi

Re: Modal Window with Ajax in Firefox

2011-11-09 Thread Andrea Del Bene
}; //the same code Hope this could help you. Hi, I uploaded quickstart that reproduces error to github at https://github.com/iref/modaltest . 2011/11/2 Andrea Del Bene Hi, can you reproduce your problem in a separate project and upload it somewhere? It would help much to understand if th

Re: Dealing with 3 choice components

2011-11-16 Thread Andrea Del Bene
Hi, can you elaborate a little bit more what behavior you want to achieve? I mean, C becomes empty because A#onSelectionChanged sets its model to null. This should not be strange. I have a form with with 3 choice components: A) DropDownChoice B) DropDownChoice C) ListMultipleChoice The val

Re: Dealing with 3 choice components

2011-11-16 Thread Andrea Del Bene
wrote: On 11/16/2011 06:06 PM, Andrea Del Bene wrote: Hi, can you elaborate a little bit more what behavior you want to achieve? I mean, C becomes empty because A#onSelectionChanged sets its model to null. This should not be strange. Yes, sounds obvious to me too. But I found an examp

Re: Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread Andrea Del Bene
Profile the stalled server with Visual VM? It should detect existing deadlocks... Hi I have a very strange problem. At a customers site we have 2 servers with 1 Tomcat 7 installed each. One day on one of the servers our application just stalled after loading the sign in page, when you click the

Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Andrea Del Bene
On 17/11/11 16:44, Eric Kizaki wrote: Violates MVC: It smashes view and controller code into the same Java file. You have code that regulates page flow and code that changes css attributes in the same file. Even Spring MVC had better separation of concerns. JSP/Servlets with Spring MVC is bette

Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene
Hi Em, Hi Josh, thanks for your feedback! I already saw this Wiki-page yesterday. Well, the point is, that I want to include the markup *in* the markup (i.e. output it in some panel inside of a script-tag so that JavaScript is able to get the markup). So *while* you are rendering, you want to

Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene
On 11/27/2011 03:40 PM, Em wrote: Hi Andrea, thanks for sharing your information! My answers are in the content. Am 27.11.2011 14:52, schrieb Andrea Del Bene: I already saw this Wiki-page yesterday. Well, the point is, that I want to include the markup *in* the markup (i.e. output it in some

Re: "Link Visited" Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
Probably this is due to Wicket links which contain informations on page version (it should be an incremental id). So each time you return to the same page Wicket generate different values for href attribute because version id has been incremented. That's way they seem not visited. When you resta

Re: "Link Visited" Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
That's strange. BookmarkablePageLinks should generate a constant URL. Do you pass them any PageParameters in the constructor? Have you checked if links URL remains the same from a visit to your page to another? They are already BookmarkablePageLinks. -- View this message in context: http://apa

Re: Event or Notice when a ListView's Model changes

2011-12-04 Thread Andrea Del Bene
Hi, have you tried overriding onModelChanged()? You can fire event in this method. Hello, I have a Wicket ListView, who's Model is based on a select on a process-database. Users can initiate a (deploy-)process, and when the process is finished, a row is added in the database, and so also in th

Re: Event or Notice when a ListView's Model changes

2011-12-04 Thread Andrea Del Bene
If you override listview's onBeforeRender you could check if finished processes' list contains version displayed by label and if so, you could update it. I'm sorry if my writing is confusing. But there isn't a label that outputs the state, because the list shows /only/ finished processes. Maybe

Re: check all checkbox to select all in data table

2011-12-13 Thread Andrea Del Bene
See component CheckboxMultipleChoiceSelector Hi.. I have included a check box panel as a column in datatable.Now i want a checkAll/uncheckAll checkbox which will check/uncheck the checkbox column.Please provide me with some idea . -- View this message in context: http://apache-wicket.1842946

Re: Auto refresh a WebPage

2011-12-16 Thread Andrea Del Bene
Hi, excuse me but what do you mean with "cursor" and "class Second"? but the cursor is not coming to the class Second time after 1 min.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: Auto refresh a WebPage

2011-12-16 Thread Andrea Del Bene
You don't see anything appening inside "Wicket Ajax Debug" window? No request is performed after one minute? I mean while debugging I'm not at all getting the request to the class again -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-refresh-a-WebPage-tp4203984p

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
Hi, nested form should work fine. I mean something like this: _ | | Name:.. | Lastname:... | | | | | | item number:... | | item number:... | | | |__ | | |___ Do you have this forms layout? 'Add item but

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
This is strange end should not happened: https://cwiki.apache.org/WICKET/nested-forms.html. Maybe the problem is on code side. Can you show the initialization code for the two forms? Yes, I have this layout. Is the first I tested. The problem with this is that when I click Add Item buttom inf

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
I think this happens because you submit your forms with a simple HTML "submit" button, not mapped to a Wicket component. Try to explicitly add a submit component to the forms. I've added SubmitLink to both forms and forms are submitted as expected. HTML code: Java code: Form for

Re: Add items and then submit a form

2011-12-20 Thread Andrea Del Bene
This should not be a big deal. Wicket lets you put form submitting button outside form itself. All you have to do to make it work is to pass the form to component's constructor. HTML code: Java code: add(form1 = new Form("form1"){ @Override protected void onSub

Re: any idea where this error comes from?

2011-12-20 Thread Andrea Del Bene
On 20/12/11 09:38, cosmindumy wrote: Hi, I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton (path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible org.apache.wicket.WicketRuntimeExce

Re: ModalWindow does not close cleanly

2012-01-02 Thread Andrea Del Bene
On 01/03/2012 12:30 AM, Nelson Segura wrote: The "shown" flag is set up to false by window.close(), but it stays as true in the context of the parent page. This prevents the page from being opened a second time. Maybe something similar to how you cannot pass pages directly to a modal, but inst

Re: Serialize form for wicket ajax call

2012-01-13 Thread Andrea Del Bene
Hi, have a look at function Wicket.Form.doSerialize inside wicket-ajax.js. Try to debug it with your browser. I was trying to understand the wicket serialize method call. Does it serialize the entire form? Does it serialize fields that are NOT "blank"? I noticed that sometimes post body cont

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Hi, I think you need to build a CompoundPropertyModel inside the component itself. Override onInitialize method of AddressPanel and try with something like this: @Override protected void onInitialize() { super.onInitialize(); setDefaultModel(new CompoundPropertyModel(getDe

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Yes, I think you are doing it "the Wicket way", but your snippet and mine should work. Do you modify components' model somewhere else? Which model do you get if you call getDefaultModel() inside oninitialize? Thanks for your reply. I've tried it but it still gave the same error. However I also

Re: CompoundPropertyModel and FormComponent

2012-01-18 Thread Andrea Del Bene
At this point I would override/debug method updateModel() inside AddressPanel to see if model's object is modified by this method . Just my 2 cents... Yes, I think you are doing it "the Wicket way", but your snippet and mine should work. Do you modify components' model somewhere else? No, I don

Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Andrea Del Bene
Don't forget to look at this: /http://netbeans.org/kb/68/web/quickstart-webapps-wicket.html./ If i were you i would learn how to create a project with maven first. Josh On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshallwrote: The answer might depend in part upon which web server you want to use

Re: multiple forms on a panel, how to check for dirty?

2012-01-20 Thread Andrea Del Bene
What do you mean exactly with "dirty form"? I have multiple forms on a panel and checks for dirty are on form level. When I submit a form while others are still dirty, the panel is not treated as dirty. How to deal with that? -- View this message in context: http://apache-wicket.1842946.n4.nabb

Re: Execute Javascript after components of a certain type render

2012-01-23 Thread Andrea Del Bene
Why not make an abstract MyPanel and provide an implementation of renderHead method (from IHeaderContributor)? I mean something like: public abstract class MyPanel extends Panel{ public void renderHead(Component component, IHeaderResponse response) { response.renderO

Re: Execute Javascript after components of a certain type render

2012-01-23 Thread Andrea Del Bene
plish this? Thanks, Alec On Mon, Jan 23, 2012 at 3:41 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: Cannot detect ModalWindow cancel

2012-02-01 Thread Andrea Del Bene
Hi Jered, this is a known issue, you can find more informations here: https://issues.apache.org/jira/browse/WICKET-3809 I have a ModalWindow where I need to know if the user saved in the WindowClosedCallback or if they chose to click the X to close the window. To do this in Wicket 1.4, I just

Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
Hi, what is the best way to clean all sessions at once? I want to get rid of all sessions' data when I terminate Wicket application. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
org.apache.wicket.Application#internalDestroy() On Mon, Feb 6, 2012 at 5:11 PM, Andrea Del Bene wrote: Hi, what is the best way to clean all sessions at once? I want to get rid of all sessions' data when I terminate Wicket applic

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
It is exactly what I needed! Thank you! http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Across_Restarts - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: us

Re: WICKET AJAX QUESTION

2012-02-06 Thread Andrea Del Bene
How are you attempting to clean textbox? For example you could clear textbox setting model object to empty string and adding textbox to AjaxRequestTarget. Hi, i have one textbox. we send the value of text box to listchoice. On add button , we used ajax. But i am unable to clear the textbox v

  1   2   3   4   5   6   7   8   >