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

2013-06-10 Thread lucast
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 follow the live action link but it takes me to the

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 lucastol...@hotmail.com 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

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 front...@gmail.com 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

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 sh...@hotmail.com wrote: The problem is wicket:idfor example: Formjavanew RequiredTextField( companyName );WizardStepjavanew RequiredTextField(

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 per.new...@gmx.ch wrote: Found the solution already. I did it that way: public class FlyingSaucerPdfResource extends ByteArrayResource { public

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 lorenzoc...@live.it wrote: how I capture close windows event from user(from x in the upper right) -- View this message in context:

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 noven_...@yahoo.com 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

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

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: Wicket context menu component

2013-06-10 Thread Martin Grigorov
Hi Sebastien, On Mon, Jun 10, 2013 at 11:04 AM, Sebastien seb...@gmail.com wrote: Hi, Did you looked at the Menu implementation? I think it should be close to what you want to achieve:

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,

Re: Apache Wicket + Ace Editor

2013-06-10 Thread Martin Grigorov
Hi, On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao shengchehs...@gmail.comwrote: 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 -

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

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

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 andun...@gmail.com 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

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 s...@meiers.net 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: 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 mgrigo...@apache.orgwrote: Hi, On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao shengchehs...@gmail.com wrote: Hello Martin My project wants to implement java code editor on web, so

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,

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

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: 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 msc...@gmail.com wrote: Hi all, Is there any

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

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 an.delb...@gmail.comwrote: 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);

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,

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.

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

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 tropic...@gmail.com 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

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 an.delb...@gmail.comwrote: The code is quite simple as it's basically a prototype. Java code: @Override public void respond(Attributes attributes) { StringValue action =

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 not

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

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

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

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 matooanemoken...@gmail.com wrote: Thanks for the quick response Martin, I have tried to debug the

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 matooanemoken...@gmail.com 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

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 matooanemoken...@gmail.com wrote: The line at

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 =

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 gilberth...@gmail.com wrote: I'm trying to use wicket-cdi with Glassfish 4.0 and get the following exceptions.

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

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

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 PageableListViewProfile columnListView = new PageableListViewProfile( columnListView, secondLine, SearchPage.RESULTS / 2) { private static final long

Re: PageableListView with two rows

2013-06-10 Thread Dan Retzlaff
Hi Pierre, Associate your PageableListView with a div that wraps your two trs. Use item.setRenderBodyOnly(true) to prevent the div from being rendered so your table markup is still valid. Dan On Mon, Jun 10, 2013 at 12:49 PM, Pierre Goupil goupilpie...@gmail.comwrote: Good evening, Is

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: table class=large-space-centered-table align=center div wicket:id=columnListView tr wicket:id=separator td class=normal-text border-cell span

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); } }); table div