Re: Wicket mail and pdf

2013-06-10 Thread Martin Grigorov
Hi, At http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/?0 you can see an example of rendering the markup for a page, a panel and a resource. At http://markmail.org/message/em4wqtsxhetu4skj you can see how to create PDF out of the produced HTML. On Tue, Jun 11, 2013 at 9:39 AM, P

Re: change cursor while ajaxRequest

2013-06-10 Thread Ernesto Reinaldo Barreiro
Cursor depends on element you are placed at... It might be better to show some "spinning wheel" or busy indicator. See e.g. 1- https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html 2- http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-li

Re: change cursor while ajaxRequest

2013-06-10 Thread Martin Grigorov
Hi, The simplest solution is to use IndicatingAjaxButton. Every Ajax component/behavior can have IAjaxCallListener. You can use it to show an indicator in 'beforeSend' and hide it in 'complete' handler. There are also global Ajax listeners which you can use if you want to do something on every Aja

Re: Wicket mail and pdf

2013-06-10 Thread Piratenvisier
Does anybody know some example example code to start with concerning email and pdf Thanks in advance Heiner Braun Am 10.06.2013 10:34, schrieb Martin Grigorov: Hi, If you use Wicket 6.7.0+ then you can use ComponentRenderer class to get the markup of any Wicket Page/Panel/Component. Then you ca

change cursor while ajaxRequest

2013-06-10 Thread Christoph.Manig
Hello, there is an AjaxButton in my application. This button starts a sql-statement. I want to change the cursor while this statement is executed. How can I do this with wicket? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Trav

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
Maybe I just don't understand your requirements. I thought you want two rows for each Profile. So: add(new PageableListView("profile", profiles) { populateItem(item) { item.add(new Label("row1column1")); item.add(new Label("row2column1")); item.setRenderBodyOnly(true); } });

Re: PageableListView with two rows

2013-06-10 Thread Pierre Goupil
I'm sorry, but I don't understand what you mean. I've tried this: final PageableListView columnListView = new PageableListView(

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
Hi Pierre, Associate your PageableListView with a that wraps your two s. Use item.setRenderBodyOnly(true) to prevent the from being rendered so your table markup is still valid. Dan On Mon, Jun 10, 2013 at 12:49 PM, Pierre Goupil wrote: > Good evening, > > Is there a way to have a PageableLi

PageableListView with two rows

2013-06-10 Thread Pierre Goupil
Good evening, Is there a way to have a PageableListView with two rows? Here is my code: final PageableListView columnListView = new PageableListView( "columnListView", secondLine, SearchPage.RESULTS / 2) { private static final long serialVersionUID = 1L;

Re: CDI WELD-000070 Simple bean cannot be a non-static inner class

2013-06-10 Thread Martin Grigorov
As far as I see the problem is caused by IComponentInstantiationListener provided by wicket-cdi: > org.apache.wicket.cdi.NonContextualManager.inject( NonContextualManager.java:54) > ~[wicket-cdi-6.9.0-SNAPSHOT.jar:6.9.0-SNAPSHOT] > at > org.apache.wicket.cdi.AbstractInjector.inject(Abstra

Re: CDI WELD-000070 Simple bean cannot be a non-static inner class

2013-06-10 Thread Phil
I'm not injecting anything yet, it seems to be triggered by the inclusion of the DebugBar on my page. If I remove the DebugBar it works fine. Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-70 Simple bean [EnhancedAnnotatedTypeImpl] class org.apache.wicket.devutils.debugba

Re: CDI WELD-000070 Simple bean cannot be a non-static inner class

2013-06-10 Thread Igor Vaynberg
you cannot inject non-static classes... class org.apache.wicket.markup.html.pages.ExceptionErrorPage$1 cannot be a non-static inner class -igor On Mon, Jun 10, 2013 at 8:32 AM, Phill wrote: > I'm trying to use wicket-cdi with Glassfish 4.0 and get the following > exceptions. > Should wicket-cdi

CDI WELD-000070 Simple bean cannot be a non-static inner class

2013-06-10 Thread Phill
I'm trying to use wicket-cdi with Glassfish 4.0 and get the following exceptions. Should wicket-cdi work with soon-to-be-released Java EE 7 / CDI 1.1 ? 2013-06-10 17:12:34,351 [http-listener-2(2)] DEBUG o.apache.wicket.MarkupContainer - Add markupHighlight to [Page class = org.apache.wicket.ma

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Joseph Mokenela
Thanks a lot Martin, I had an earlier version of wicket-extensions indeed. That solved it, Thanks again. Let me debug and I will feedback on the original error. Regards, On Mon, Jun 10, 2013 at 4:33 PM, Joseph Mokenela wrote: > The line at com.mmjmicrosystems.radarmarketing.Start.main(Star

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Martin Grigorov
Hi, On Mon, Jun 10, 2013 at 5:26 PM, Joseph Mokenela wrote: > Thanks for the quick response Martin, > > I have tried to debug the application but without success, I am using jetty > server and i keep getting the following stacktrace on jetty. I am using > Wicket 6.8.0 > > INFO - RequestListene

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Joseph Mokenela
The line at com.mmjmicrosystems.radarmarketing.Start.main(Start.java:66) is simply the call to server.start(); on the jetty server instance. On Mon, Jun 10, 2013 at 4:26 PM, Joseph Mokenela wrote: > Thanks for the quick response Martin, > > I have tried to debug the application but without su

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Joseph Mokenela
Thanks for the quick response Martin, I have tried to debug the application but without success, I am using jetty server and i keep getting the following stacktrace on jetty. I am using Wicket 6.8.0 INFO - RequestListenerInterface - registered listener interface [RequestListenerInterface name=

Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

2013-06-10 Thread Martin Grigorov
On Mon, Jun 10, 2013 at 4:30 PM, harmoniaa < edvard.fons...@nitorcreations.com> wrote: > Good point. Anyway, that still leaves me the issue with ListView... > Please create a ticket with a quickstart for this. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.c

Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

2013-06-10 Thread harmoniaa
Good point. Anyway, that still leaves me the issue with ListView... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-i-display-a-WepPage-in-a-PDF-How-to-get-the-rendered-markup-tp4659290p4659354.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

2013-06-10 Thread Martin Grigorov
Hi Edvard, Thank you for the feedback. ComponentRenderer (CR) just asks Wicket to render a component. The rendering process uses all the application settings so if the wicket tags/attributes cause any problems then the application can turn them off before using CR and turn on after. So I think CR

Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

2013-06-10 Thread harmoniaa
FYI: I had a problem using ComponentRenderer with ListView (it was complaining the there was no markup for wicket-id "my-wicket-id"). Additionally, ITextRenderer (or xerces actually) was not able to parse XML from the markup with Wicket tags ("The prefix "wicket" for element "wicket:container" is

Re: Resource that produces JSON and JQuery

2013-06-10 Thread Andrea Del Bene
On 06/10/2013 02:17 PM, Martin Grigorov wrote: On Mon, Jun 10, 2013 at 3:11 PM, Andrea Del Bene wrote: The code is quite simple as it's basically a prototype. Java code: @Override public void respond(Attributes attributes) { StringValue action = attributes.getParameters().**get(S

Re: AjaxEditableMultiLineLabel inside Link

2013-06-10 Thread Martin Grigorov
Hi, You should read about JavaScript event propagation and event.stopPropagation() On Mon, Jun 10, 2013 at 3:25 PM, heikki wrote: > hello, > > I have a Link, used in a menu to go to a different page. When a content > editor is logged in, the link's text is rendered by an > AjaxEditableMultiLin

Re: Wicket context menu component

2013-06-10 Thread Sebastien
Hi, I think what is missing you is the AjaxBehavior / Event / jQuery event binding. Basically, your ContextMenuBehavior (CMB) should embed an ajax behavior (JQueryAjaxBehavior, let's say AB). A common Event object (E) should be shared between CMB & AB. Note that CMB should implement IJQueryAjaxAw

AjaxEditableMultiLineLabel inside Link

2013-06-10 Thread heikki
hello, I have a Link, used in a menu to go to a different page. When a content editor is logged in, the link's text is rendered by an AjaxEditableMultiLineLabel. In that case, when you click on the link, the AjaxEditableMultiLineLabel opens an input textarea with the current value selected. Updat

Re: Wicket context menu component

2013-06-10 Thread Sebastien
Hi Martin, Thanks for the tips! Actually, the way how the wicket-jquery-ui Menu works can a little bit be compared to the Tree implementation in wicket-extensions. In my case, I think the markup is easier to use, considering there is a recursive loop for sub-menus... Thanks again & best regards,

Re: Resource that produces JSON and JQuery

2013-06-10 Thread Martin Grigorov
On Mon, Jun 10, 2013 at 3:11 PM, Andrea Del Bene wrote: > The code is quite simple as it's basically a prototype. Java code: > > @Override > public void respond(Attributes attributes) { > StringValue action = attributes.getParameters().**get(SEGMENT); > attributes.getResponse()

Re: Resource that produces JSON and JQuery

2013-06-10 Thread Andrea Del Bene
The code is quite simple as it's basically a prototype. Java code: @Override public void respond(Attributes attributes) { StringValue action = attributes.getParameters().get(SEGMENT); attributes.getResponse().write(calculateResponse(action, attributes)); } private S

Re: Reusing behaviors across components

2013-06-10 Thread Martin Grigorov
Hi, You can reuse instances of simple behaviors. You cannot reuse behaviors which can work with only one component like Ajax behaviors because they need the component to create the callback url. On Mon, Jun 10, 2013 at 2:25 PM, Marios Skounakis wrote: > Hi all, > > Is there any obvious reason

Reusing behaviors across components

2013-06-10 Thread Marios Skounakis
Hi all, Is there any obvious reason why adding the same behavior instance that implements onBeforeRender and onAfterRender cannot be used on multiple components on the same form? Thanks Marios

Re: Resource that produces JSON and JQuery

2013-06-10 Thread Martin Grigorov
Hi Andrea, I guess your problem is related to jQuery's validation of the response. To parse the text response to JSON jQuery needs 1) correct response content-type header 2) valid JSON - make sure the keys are in double quotes Show us your code and the produced response for more help. On Mon, J

Resource that produces JSON and JQuery

2013-06-10 Thread Andrea Del Bene
Hi, can anybody point me to some code that illustrates how to produce a JSON valid text with a mounted resource? My goal is to load it via AJAX in a page with JQuery function getJSON. I've tried to directly write JSON into the response object without any success.

Re: Wicket context menu component

2013-06-10 Thread bronius
Hi, Yes I checked it. I also was reading this: http://code.google.com/p/wicket-jquery-ui/wiki/HowToCreatePlugin2. However context menu plug in was not standard here is jquery example: $(function(){ $.contextMenu({ selector: '.context-menu-one', callback: function(key, options)

Re: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
Hi Martin Thanks for your help, I'll check it out! On Mon, Jun 10, 2013 at 4:26 PM, Martin Grigorov wrote: > Hi, > > > On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao >wrote: > > > Hello Martin > > > > My project wants to implement java code editor on web, so I need an > > "lined-textarea" to

Re: "Connecting..." in Firefox's tab title

2013-06-10 Thread Guillaume Smet
Hi Sven, On Fri, Jun 7, 2013 at 10:36 PM, Sven Meier wrote: > Yes please. And don't forget to add the collected information to it. Done: https://issues.apache.org/jira/browse/WICKET-5222 Quickstart and patch attached: it fixes the problem for us. Thanks. -- Guillaume ---

Re: How I get the internal html content of a dynamically updated div tag using Apache Wicket

2013-06-10 Thread Martin Grigorov
Hi, On Mon, Jun 3, 2013 at 10:35 PM, Andun Sameera wrote: > Hi All, > > I have tried further with AjaxEditableLabel in following way to get the > cotent of div tag. > > String value="Type."; > AjaxEditableLabel ajaxEditableLabel=new > AjaxEditableLabel("editorArea",new Model

Re: Wicket mail and pdf

2013-06-10 Thread Martin Grigorov
Hi, If you use Wicket 6.7.0+ then you can use ComponentRenderer class to get the markup of any Wicket Page/Panel/Component. Then you can use the generated markup for mails and PDF creation. For PDF creation you can check https://github.com/flyingsaucerproject/flyingsaucer. There is a mail in the u

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Martin Grigorov
Hi, I think your setup should be enough. You can put a breakpoint in org.apache.wicket.core.util.file.WebApplicationPath#find() method and see what happens. On Mon, Jun 10, 2013 at 11:23 AM, Joseph Mokenela < matooanemoken...@gmail.com> wrote: > Hi, > > I need help with Wicket. > > > I am worki

Re: Apache Wicket + Ace Editor

2013-06-10 Thread Martin Grigorov
Hi, On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao wrote: > Hello Martin > > My project wants to implement java code editor on web, so I need an > "lined-textarea" to show line number. First , I used Edit-Area > (http://www.cdolivet.com/editarea/) (Demo -> http://140.122.76.89), but > It just

404 error when calling getResourceSettings().getResourceFinders()

2013-06-10 Thread Joseph Mokenela
Hi, I need help with Wicket. I am working on an application of which I am using Wicket framework for my front end. I have a folder named "*markup*" inside the root of webapp which i want to put all the markup files in, the problem is that, when I call the following line, *getResourceSettings()

Re: Wicket context menu component

2013-06-10 Thread Martin Grigorov
Hi Sebastien, On Mon, Jun 10, 2013 at 11:04 AM, Sebastien wrote: > Hi, > > Did you looked at the Menu implementation? I think it should be close to > what you want to achieve: > > https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/

Re: Wicket context menu component

2013-06-10 Thread Sebastien
Hi, Did you looked at the Menu implementation? I think it should be close to what you want to achieve: https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/widget/menu/MenuBehavior.java Here, the way to retrieve the menu-item id is

Re: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
Hello Martin My project wants to implement java code editor on web, so I need an "lined-textarea" to show line number. First , I used Edit-Area (http://www.cdolivet.com/editarea/) (Demo -> http://140.122.76.89), but It just enable at first time, when I submit the form code-area dissappeard. An

Re: wicket-guice HttpServletRequest

2013-06-10 Thread Martin Grigorov
Hi, To be able to do this you have to know Guice internals. HttpServletRequest is @Request scoped and since there is no http request in unit/wicketTester tests Guice cannot provide it for you. I guess that you can bind it manually in your TestModule so it will have a global scope as workaround.

Re: How to create a crosstab repeater

2013-06-10 Thread Martin Grigorov
Hi, The image is not loadable and we cannot see what you need. Can you upload it somewhere ? On Wed, Jun 5, 2013 at 9:33 PM, Noven wrote: > Hi all, > > I wonder how to use wicket to repeat things like cross tab (like the one > that have on jasper report palette). > > Example of what I want ach

Re: session event

2013-06-10 Thread Martin Grigorov
Hi, There is JavaScript event named "beforeunload" that is fired when the user leaves a page. On Fri, Jun 7, 2013 at 8:27 PM, lc991 wrote: > how I capture close windows event from user(from x in the upper right) > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabb

Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

2013-06-10 Thread Martin Grigorov
Hi, Since Wicket 6.7.0 there is ComponentRenderer class which does exactly the same. On Sat, Jun 8, 2013 at 12:01 AM, Per Newgro wrote: > Found the solution already. I did it that way: > > public class FlyingSaucerPdfResource extends ByteArrayResource { > > public FlyingSaucerPdfResource()

Re: reuse Form Panel code for WizardStep?

2013-06-10 Thread Martin Grigorov
Hi, You should (re-)use your panel in the wizard: step.add(new MyFormPanel("someId")); On Sun, Jun 9, 2013 at 4:14 AM, always_rick wrote: > The problem is wicket:idfor example: Formjavanew RequiredTextField( > "companyName" );WizardStepjavanew RequiredTextField( "company.companyName" > ); > >

Re: Apache Wicket + Ace Editor

2013-06-10 Thread Martin Grigorov
Hi, What kind of problems you faced ? On Mon, Jun 10, 2013 at 8:51 AM, Shengche Hsiao wrote: > Hello everyone > > I want to integrate ace editor into my wicket project, but after gooogled I > failed to do it. > Is anyone give my some advise? > > > > - > We do this not because it is easy. W

Re: http://wicket.apache.org/learn/examples/ still linking to wicket 5 examples

2013-06-10 Thread Martin Grigorov
Fixed. Thanks! On Mon, Jun 10, 2013 at 9:35 AM, lucast wrote: > Dear forum, > I am sure someone has already noticed this but I thought of pointing it > out. > I'm trying to get to the latest wicket examples page. My first port of call > was to go to http://wicket.apache.org/learn/examples/ and