Re: wicket conversation scope - weld integration

2013-10-29 Thread heapifyman
seam-wicket is outdated and has been replaced by wicket-cdi if I’m not mistaken. Also, this series of blog post probably contains all you need for setting up CDI in Wicket. It helped me: https://www.42lines.net/category/blog/software-engineering/full-stack-implementation/ Am 29.10.2013 um 16:5

Wicket 6 Portlet in JBoss GateIn

2013-07-12 Thread heapifyman
Hello, I'm trying to get a Wicket 6 app running as a Portlet in JBoss GateIn 3.6 using the wicketstuff-portlet lib ( https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/portlet-parent ). So far I have managed to get the Wicket quickstart app running, i.e. I can display simple things li

Re: wicket and JPA

2013-06-14 Thread heapifyman
Correct me if I'm wrong but I think as long as dbObject is still "managed" code like the following should persist the changes to dbObject, i.e. changes to dbObject will be saved once the transaction commits. beginTX() dbObject.setXXX(); dbObject.setYYY(); commitTX() If dbObject is "detached" you w

Re: Infinite Scrolling in Wicket 6

2013-02-28 Thread heapifyman
Is there some documentation or example available for wicket-bootstrap's InifiniteScrollingBehavior? 2013/2/27 Nick Pratt > Ive used Datatables (www.datatables.net) for similar features and it works > pretty well. > > N > > On Wed, Feb 27, 2013 at 4:58 AM, Martin Dietze wrote: > > > I will soon

Re: How to add Java Script Confirmation dialog to dropdown choice

2013-02-25 Thread heapifyman
s.getAjaxCallListeners().add(listener); > } > > @Override public final void onEvent(AjaxRequestTarget) { > // never called > } > > protected boolean isDefaultAllowed() {return false;} > > abstract protected String getBeforeHandler(); > } > > The u

Re: How to add Java Script Confirmation dialog to dropdown choice

2013-02-25 Thread heapifyman
Care to share this precondition handling? 2013/2/25 Martin Grigorov > Hi, > > > On Mon, Feb 25, 2013 at 1:35 PM, heapifyman wrote: > > > mydropdownComponent.add(new AjaxFormComponentUpdatingBehavior("change") { > > @Override > > prote

Re: How to add Java Script Confirmation dialog to dropdown choice

2013-02-25 Thread heapifyman
mydropdownComponent.add(new AjaxFormComponentUpdatingBehavior("change") { @Override protected void onUpdate(AjaxRequestTarget target) { target.appendJavaScript("your javascript..."); } }); 2013/2/25 Ernesto Reinaldo Barreiro > Can you just register your "behavior" to on change? So

Re: get rid of LazyLoadException

2013-02-24 Thread heapifyman
I found this blog post (and the rest of the series) very helpful: https://www.42lines.net/2011/11/21/adding-jpahibernate-into-the-cdi-and-wicket-mix/ Or maybe try to use an EXTENDED EntityManager in your project to keep entities managed and get rid of LazyLoadException. Am 23.02.2013 um 19:22

Re: BeanValidation - IllegalStateException: Could not resolve Property from component

2013-01-07 Thread heapifyman
The PropertyValidator is added in the BeanValidationBorder. Unfortunately, I don't know what property the FormComponent is for, when BeanValidationBorder is created. So I guess, I have to get rid of CompoundPropertyModel and pass PropertyModels to my FormComponents' constructors. Interestingly, th

BeanValidation - IllegalStateException: Could not resolve Property from component

2013-01-04 Thread heapifyman
Hello, I switched from using net.ftlines.wicket-bean-validation to org.apache.wicket.wicket-bean-validation and now I get the exception mentioned in the subject when using a Form with CompoundPropertyModel.(see stack trace at the end of the message). My code looks like this: Form form = new Form(

Re: [ANNOUNCE] Apache Wicket 6.4.0 released

2013-01-03 Thread heapifyman
o, no, it is not a drop in replacement > and, yes, this code deprecates the net.ftlines code for wicket 6+ > > -igor > > On Thu, Jan 3, 2013 at 3:44 AM, heapifyman wrote: > > Hello, > > > > I've been using net.ftlines.wicket-bean-validation for a whi

Re: [ANNOUNCE] Apache Wicket 6.4.0 released

2013-01-03 Thread heapifyman
Hello, I've been using net.ftlines.wicket-bean-validation for a while now and I suppose that the new experimantal org.apache.wicket.wicket-bean-validation is based on the ftlines version and will eventually replace it (at least for wicket 6 and above)? Can I just replace the ftlines version with t

Re: How to handle failing calls to external systems within a Component without resorting to an error page?

2012-12-13 Thread heapifyman
Maybe an AjaxLazyLoadPanel could help? I think you could catch service exceptions in getLazyLoadComponent() and return an error panel instead of the real one. 2012/12/13 Stefan Renz > Hi, > > my searches didn't turn up anything, so I figured I ask on the mailing > list: > > Consider the followi

Re: wicket-bootstrap navbar - SEARCH button

2012-11-15 Thread heapifyman
As far as I know, wicket-bootstrap's Navbar currently does not support adding a search form out of the box because you can only add buttons/links to the Navbar. I have been advised to override Navbar and adapt the html markup according to my needs, which was pretty easy to do and works just fine.

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-11-01 Thread heapifyman
t 31, 2012 at 6:14 PM, heapifyman wrote: > > Ok, now I am kind of lost again. Sorry for the stupid question: > > Before I had > > - in WicketApplication: mount(new FileUploader("/fileupload")); > > - where FileUploader extends AbstractMapper and calls "return new &g

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
rtin Grigorov > Hi, > > As Andrea explained (and the ticket you mentioned yourself) the change > in MyApp#newWebRequest caused several problems, so better do not do it > there. > Move the code that creates the MultipartWebRequest in your own IResource > impl. > > On

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread heapifyman
o?p=** >>> wicket.git;a=commitdiff;h=**3355b5af68a238855a602f5161980d**65024a1e92<https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=3355b5af68a238855a602f5161980d65024a1e92> >>> >>> On Wed, Oct 31, 2012 at 12:49 PM, heapifyman >>

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

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

Wicket 6.2.0 and MultipartServletWebRequestImpl

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

Re: Wicket and file upload with blueimp jquery file upload

2012-10-24 Thread heapifyman
> // Handle upload any way you like, and replace stuff > in this ajax request > } > > } ); > > > Met vriendelijke groet, > Kind regards, > > Bas Gooren > > Op 16-10-2012 19:09, schreef heapifyman: > >>

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread heapifyman
andler then calls the ajax behavior with the > UUID parameter, which allows other components in the page to respond to the > upload. > > To prevent overflow in the uploader cache we use a map with a maximum size > which evicts old entries on overflow. > > Met vriendelijke groet, &g

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread heapifyman
the page ? > > On Tue, Oct 16, 2012 at 12:49 PM, heapifyman wrote: > > Hello, > > > > has anyone tried yet to integrate blueimp's jQuery File Upload > > http://blueimp.github.com/jQuery-File-Upload/ with Wicket FileUpload? > > Especially in combination wi

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread heapifyman
As far as I understood you have two possibilities: 1. Inject your EJB into a CDI component and inject that component into your wicket pages using @Inject annotation. That should solve the serialization problem but you will have an additional "layer". 2. Use javaee-inject from wicketstuff [1] to inj

Re: Wicket 6 + EJB

2012-09-24 Thread heapifyman
https://github.com/wicketstuff/core/wiki/Java-EE-Inject allows injecting EJBs, etc. in wicket-6 applications. 2012/9/24 Michael Zhavzharov > Hello Everyone. > > I have a question about how to include EJB into my wicket web application. > When I was looking for solution for this problem in goo

Re: Adding the same panel with different parameters...

2012-09-13 Thread heapifyman
Make CPanel extend GenericPanel. Then use cPanel.setModelObject() and pass it newObject or editObject depending on which button has been clicked. 2012/9/13 theivorykitty > Hey guys! First time post - > > So, I have a page that has two buttons (among other things) - one is to > create a new obj

Re: Wicket 6 and CDI

2012-09-07 Thread heapifyman
looks like org.jboss.weld.weld-core and org.jboss.weld.servlet.weld-servlet-core are there. though not in version 1.1.2.Final. wicket-cdi might have upgrade to at least 1.1.4.Final 2012/9/7 Martijn Dashorst > On Fri, Sep 7, 2012 at 4:00 PM, Martin Grigorov > wrote: > >>> There is a security ho

Re: Wicket 6 and CDI

2012-09-07 Thread heapifyman
Now that wicket 6 final is out, will there be a wicket 6 compatible "release" of wicket-cdi? Or is it already available on one of the maven repos? Or should I get the source from github and build it myself if I want to use wicket-cdi with wicket 6? 2012/7/16 Igor Vaynberg > just pushed the wick

Re: Apache wicket cookbook ch5 - Filtering form example

2012-09-07 Thread heapifyman
Turn the submit button into an AjaxButton: form.add(new AjaxButton("submit", form) {...} and in the button's onSubmit method add the table to the AjaxRequestTarget. I believe that should do it. 2012/9/7 lucast > Dear Forum, > For those of you familiar with the content of Apache wicket cook

Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to reset form

2012-08-07 Thread heapifyman
entity and set it as the model object again? > > > > > Thanks, > > -David Phillips > > > > -Original Message- > > From: heapifyman [mailto:heapify...@gmail.com] > > Sent: Tuesday, August 07, 2012 5:07 AM > > To: users@wicket.apache.org

Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to reset form

2012-08-07 Thread heapifyman
of processing and transfer. > > Bertrand > > > On 06/08/2012 12:33 PM, heapifyman wrote: > >> Hello, >> >> I've been struggling for a while now with a problem that a Cancel >> AjaxButton (with setDefaultFormProcessing(**false))

[1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to reset form

2012-08-06 Thread heapifyman
Hello, I've been struggling for a while now with a problem that a Cancel AjaxButton (with setDefaultFormProcessing(false)) calling form.clearInput() would not reset my form to original values. The problem seems to be that I have AjaxFormComponentUpdatingBehavior (onchange event) for validation add

Re: wicket-atmosphere NullPointerException at initialization

2012-06-13 Thread heapifyman
I think I had the same problem and was able to overcome it by adding atmosphere.xml file in src/main/webapp/META-INF and changing the web.xml. Both I took from the wicket examples. atmosphere.xml looks like this: web.xml defines atmosphere servlet instead of default wicket filter: Atmospher

Re: wicket & ajax push

2012-05-31 Thread heapifyman
If you are looking for examples, wicketstuff has a push module ( https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/push-parent), atmosphere examples also contain a wicket example ( https://github.com/Atmosphere/atmosphere/tree/master/samples) and the just released wicket 6 beta2 comes

Re: Loadable-detachable model for ListView

2012-05-10 Thread heapifyman
by examples page I meant: http://www.wicket-library.com/wicket-examples/repeater/ 2012/5/10 heapifyman > The examples page does not seem to be working: > HTTP Status 500 - > -- > > *type* Exception report > > *message*** > > *description*

Re: Loadable-detachable model for ListView

2012-05-10 Thread heapifyman
The examples page does not seem to be working: HTTP Status 500 - -- *type* Exception report *message*** *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: Filter exe

Cancelling form submit in ModalWindow causes validation errors in Form of underlying base page?

2012-01-12 Thread heapifyman
Hello everyone, first, sorry for the bad subject. I didn't know how to describe this problem in a short line. I have a page with a form with two AjaxButtons (Add and Delete) and an AjaxFallbackDefaultDataTable. The first button opens a ModalWindow with another form to add new entries to the table.

Re: Download file from ModalWindow problem

2011-12-20 Thread heapifyman
interested in that to see if it's a Chrome or a Wicket issue? If so, where should I put it? Thanks 2011/12/9 Ernesto Reinaldo Barreiro Can you please create a quick-start application that we can test? Ernesto On Fri, Dec 9, 2011 at 1:38 AM, heapifyman wrote: > I did and I still don'

Re: Download file from ModalWindow problem

2011-12-09 Thread heapifyman
that to see if it's a Chrome or a Wicket issue? If so, where should I put it? Thanks 2011/12/9 Ernesto Reinaldo Barreiro > Can you please create a quick-start application that we can test? > > Ernesto > > On Fri, Dec 9, 2011 at 1:38 AM, heapifyman wrote: > > > I did

Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
See ModalWindow's javadoc. It explains about the need of a form On Thu, Dec 8, 2011 at 8:24 PM, heapifyman wrote: You mean putting an additional form around the modal window like below? ... more buttons here ... where dataPanel is:

Re: Updating model object on AjaxFallbackDefaultDataTable page change

2011-12-08 Thread heapifyman
Hello Mark, did you manage to solve this? I'm facing the same problem and tried to implement my own navigation links (as AjaxSubmitLink) as Igor suggested. But still my checkgroup state is not preserved when changing the table pages. If you had some code example that would be a huge help. Thanks,

Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
Wicket, where the > modal windows markup is in between. > > This worked for me when I experienced a similar problem. > > Von meinem iPad gesendet > > Am 08.12.2011 um 14:12 schrieb heapifyman : > > > I believe it already is. My markup looks like this: > >

Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
I believe it already is. My markup looks like this: ... more buttons here ... where dataPanel is: 2011/12/8 Daniel Weidele > Have you tried to put modal itself inside of another form, too? > > > Am 08.12.2011 um 13:29 schrie

Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
o add it to the button on my page that opens the ModalWindow? Thanks in advance. 2011/12/7 heapifyman > Hello all, > > I have a problem with a file download from a ModalWindow. > The ModalWindow contains a form in which the user can specify some > parameters. When clicking submit

Download file from ModalWindow problem

2011-12-07 Thread heapifyman
Hello all, I have a problem with a file download from a ModalWindow. The ModalWindow contains a form in which the user can specify some parameters. When clicking submit I generate a PDF based on the chosen parameters and offer it for download. The ModalWindow is closed then. I followed the approac

Re: how to implement a Form with Ajax Paginated List of Checkboxes?

2011-12-06 Thread heapifyman
Hi, I have the same problem and I would appreciate if you could post a code example of how you solved your problem? Specifically what you put into the AjaxCheckBox' onUpdate() method? Thanks 2011/8/11 bad boy > AjaxFormChoiceComponentUpdatingBehavior did not work. For some reason ir > would o

Re: AjaxLazyLoadPanel question

2011-11-18 Thread heapifyman
Hm, looks like AjaxRequestTarget.get() is what I was looking for? 2011/11/18 heapifyman > Hello again, > > I have a follow-up question. Can I somehow update other components once > the AjaxLazyLoadPanel's getLazyLoadComponent() method has completed? > > I thought I c

Re: AjaxLazyLoadPanel question

2011-11-18 Thread heapifyman
et in the payload to add my changed components to it, right? And I don't really know how to get the AjaxRequestTarget in the getLazyLoadComponent() method. Thanks in advance for any hints, Philip 2011/11/18 heapifyman > Great, it's working. > Thanks for the quick response, >

Re: AjaxLazyLoadPanel question

2011-11-18 Thread heapifyman
Great, it's working. Thanks for the quick response, Philip 2011/11/17 Igor Vaynberg > you can replace the lazy load panel instance: > > //check other selections > myLazyLoadPanel=myLazyLoadPanel.replaceWith(new > MyLazyLoadPanel(myLazyLoadPanel.getId(), ..) > target.addComponent(myLazyLoadPan

Re: AjaxLazyLoadPanel question

2011-11-17 Thread heapifyman
Hello, I'm facing the same "problem" as the Matt above but honestly I must admit that I do not really understand Pedro's advice. Did you manage to implement his advice, Matt? Could I get a little more information about how this IAjaxCallDecorator might actually look like? That would be a great hel

Help with AjaxLazyLoadPanel

2011-11-16 Thread heapifyman
Hello everyone, I'm using an AjaxLazyLoadPanel in one of my pages to lazily load a datatable where the data is read in from some files, which might take a while. This is working fine so far. However, I also need to provide functionality to clear the whole table and read in the data from the files

AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread heapifyman
Hello, is there a default way to determine when a user switches between tabs in an AjaxTabbedPanel? I see onAjaxUpdate(final AjaxRequestTarget target) but that is called after the new tab has been set. I would like to add a confirmation dialog before the new tab is set in case the user had changed

AutoCompleteTextField problems

2011-10-09 Thread heapifyman
Hello everyone, I'm having problems with my AutoCompleteTextField. I would like to have one of my domain objects bound to the AutoCompleteTextField's model but in the autocomplete dropdown list I would like to see only the name property of that domain object, not the whole toString() resu

Re: Jump to specific page of AjaxFallbackDefaultDataTable

2011-10-06 Thread heapifyman
Am 06.10.2011 um 16:08 schrieb Hans Lesmeister 2: DataTable.setCurrentPage(int) Thanks. When would be the best moment to call that method if I wanted to accomplish the following: I add a new entry to the table and afterwards want to display the page where the new entry appears in the tabl

Jump to specific page of AjaxFallbackDefaultDataTable

2011-10-06 Thread heapifyman
Hello all, I would like to ask, if there is a built-in functionality to display a particular page of an AjaxFallbackDefaultDataTable when displaying the table, i.e. instead of page 1 of 5 I would like to have it display page 3 of 5 initially because an entry of interest is on that page? Thanks in

Re: Show feedback message from modal window in parent page

2011-10-04 Thread heapifyman
available for your close button callback response. > > A hacky solution might be including the page-level FeedbackPanel in the > onSubmit() response, and *not* in the close button callback response. > > Let us know if you come up with a better solution. > > On Mon, Oct 3, 2011

Re: Show feedback message from modal window in parent page

2011-10-03 Thread heapifyman
happening. The onSubmit request renders the feedback into the modal, then clears the messages from the session. Then in a separate close button callback request you're re-rendering the page-level FeedbackPanel but at that point the feedback messages are gone. On Mon, Oct 3, 2011 at 8:44

Re: Show feedback message from modal window in parent page

2011-10-03 Thread heapifyman
leared from the session and > won't be included in subsequent responses. Are you closing the modal in a > way that immediately generates a second request? > > Dan > > On Fri, Sep 30, 2011 at 9:02 AM, heapifyman wrote: > > > Hello, > > > > I have a page

Show feedback message from modal window in parent page

2011-09-30 Thread heapifyman
Hello, I have a page that contains a list of entries and a modal window opened from that page. The modal window contains a form to add new entries to the list on the parent page. Submitting the form in the modal window adds the new entry, closes the modal window and updates the list of entries in

Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-13 Thread heapifyman
Am 12.05.2011 15:41, schrieb Martin Grigorov: > I am not sure whether you solution actually works. > I think they will be always the same. it is working fine for me here. > On Thu, May 12, 2011 at 3:35 PM, heapifyman wrote: > >> Am 12.05.2011 15:17, schrieb Martin Grigorov:

Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread heapifyman
xes. Do you guys still think there's need for a ticket? Maybe this should at least be added to the documentation for the CheckGroup? > On Thu, May 12, 2011 at 1:44 PM, heapifyman wrote: > >> Hello, >> >> I have a CheckGroup and the CheckGroupSelector. Everythings wor

CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread heapifyman
Hello, I have a CheckGroup and the CheckGroupSelector. Everythings working fine so far except for one thing. If I check all checkboxes in the group (manually or through checking the CheckGroupSelector), save this to a database and reload the page, the individual checkboxes are correctly displayed

Re: wicket via websocket

2010-11-22 Thread heapifyman
wicket plus atmosphere framework might also be a possibility. one tutorial here: http://jfarcand.wordpress.com/2010/10/07/writing-websocket-application-using-apache-wicket/ On Sun, Nov 21, 2010 at 5:05 PM, kamiseq wrote: > ok, thanks, I will try that > > pozdrawiam > Paweł Kamiński > > kami...@g

Customizing URLs in Ajax-Forms, -buttons and -links

2010-07-19 Thread heapifyman
Hello all, I'm trying to kind of embed a wicket app into another web page, meaning that the wicket pages are loaded into a modal jQuery panel. All submits, links, buttons in the wicket pages are thus realised using wicket's ajax features. Unfortunately, the wicketSubmitFormById call in an Ajax f

Using absolute URLs in Ajax-Forms, -buttons and -links

2010-07-08 Thread heapifyman
Hello all, I'm trying to kind of embed a wicket app into another web page, meaning that the wicket pages are included as part of the other web page. All submits, links, buttons in the wicket pages are realised using wicket's ajax features. Unfortunately, the wicketSubmitFormById call in an Ajax

Re: Markup Inheritance example with Ajax?

2010-07-02 Thread heapifyman
inheritance. Then swap the panel in your link and add it to the ajax > response. You can make these bookmarkable through PageParameters. Thank you both. Panels are what I've been looking for. > > Jeremy Thomerson > > On Fri, Jun 25, 2010 at 12:29 PM, heapifyman wrote: >

Markup Inheritance example with Ajax?

2010-06-25 Thread heapifyman
Hello all, I would like to extend the Markup Inheritance example (http://wicket.apache.org/examplemarkupinheritance.html) by replacing the content part of the page (i.e. the wicket:child) using Ajax. I tried to replace the BookmarkablePageLink on the BasePage with an AjaxLink but this does not s