Re: How to enable SSI in wicket framework.

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 8:05 AM, vaibhav228 vaibhav...@gmail.com wrote: Thanks for the reply Dan. We need to use only SSI, because these pages are getting generated from the CMS, and in the CMS we have done separate header, footer, menu htmls and while generating main page we are including

Re: IDataProvider#size()

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 4:59 AM, Dan Retzlaff dretzl...@gmail.com wrote: Hi all. Time to start a thread of my own. :) Many of Wicket's powerful repeaters depend on IDataProvider. This interface has a size() method which returns a non-null integer. This makes it easy to determine the total

Re: Wicket 1.5 - Generic JSON Response

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 7:38 AM, Ahijah darren.gr...@gmail.com wrote: Thanks for the tip, that definitely sounds like the way to go.  Quick follow-up, how does one mount an AbstractResource within the application. There doesn't appear to be an Abstract reference class to instantiate using

Re: How to enable SSI in wicket framework.

2012-04-12 Thread vaibhav228
Hi Martin, Thanks for the reply. I am new to wicket framework. Can you please elaborate more on how to do the setting that you have provided. It would be very helpful. My app is running at ROOT level. SSI is already enabled in the web.xml file by removing the SSI servlet tags

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Martin Grigorov
Hey Bertrand, This is not a complete answer. The complete answer is in the mail thread that led to WICKET-4488: Only the initial version of _stateful_ page is bookmarkable. I.e. only ?0 is really bookmarkable because in my session page1?3 could be created by clicking link1 then link2 while in the

Re: How to enable SSI in wicket framework.

2012-04-12 Thread Martin Grigorov
See filter-mapping and servlet-mapping elements in web.xsd On Thu, Apr 12, 2012 at 9:20 AM, vaibhav228 vaibhav...@gmail.com wrote: Hi Martin,           Thanks for the reply. I am new to wicket framework. Can you please elaborate more on how to do the setting that you have provided. It would

Re: JQuery and Wicket 1.5 question

2012-04-12 Thread Martin Grigorov
See https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution and the next paragraph On Wed, Apr 11, 2012 at 11:34 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I would like to use some visural wicket components so I need to

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Martin Grigorov
Hi, On Wed, Apr 11, 2012 at 10:54 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix. In certain cases when Wicket deserializes a Page containing a reference to a CDI bean, I get this exception: In what cases exactly ? Because

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Igor Vaynberg
whats happening is this user hits the page /foo goes to /foo?1 does a bunch of ajax stuff, staying on /foo?1 clicks refresh, so hits /foo?1 listview refreshes, changing hierarchy, creating page version 2 the ajax behavior's url is rendered as /foo?2:... the page is rendered, but not redirected to

RE: IE9 Memory leak when updating component with Ajax (Wicket 1.5.5)

2012-04-12 Thread Heikki Uotinen
Ok, it seems that time takes care of this problem and leak is not wicket-ajax problem: Tests with IE 10 (consumer preview) shows no leaking, gc seems to work and browser refresh clears the memory. There were no leaking with Opera, Firefox and Chrome. Furthermore previous JS debugging did

Re: tomcat deployment issues

2012-04-12 Thread Martin Grigorov
Hi, Can you put a breakpoint in WicketServlet#init() ? The only reason for that I see is this servlet to be initialized twice ... Even better set the breakpoint in Application#setName() and see who is calling it and how many times On Thu, Apr 12, 2012 at 4:41 AM, Alex Rass a...@itbsllc.com

AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Hi. I have a set of components C (anything you want Label, DateField, TextField, DropDownChoice ...) and another ChechBox inside a ListItem. I want to use the checkbox for enabling / disabling of all components C (when checkbox is selected I want to disable all C components): final

Re: AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 11:52 AM, dpmihai dpmi...@yahoo.com wrote: Hi. I have a set of components  C (anything you want Label, DateField, TextField, DropDownChoice ...) and another ChechBox inside a ListItem.  I want to use the checkbox for enabling / disabling of all components C (when

Re: AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Thanks a lot. I did not see it. Also my first error in Wicket Ajax Debug was because I had some invisible components in my ListItem. So after I checked also for visibility everything was ok. -- View this message in context:

Re: IDataProvider#size()

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 9:12 AM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, Apr 12, 2012 at 4:59 AM, Dan Retzlaff dretzl...@gmail.com wrote: Hi all. Time to start a thread of my own. :) Many of Wicket's powerful repeaters depend on IDataProvider. This interface has a size() method

RE: IDataProvider#size()

2012-04-12 Thread Michal Wegrzyn
That's the solution which I have used for the case, where count is not possible. It has only one slight disadvantage - if count == n*pageSize then the last page will be blank. Best regards, Michal Wegrzyn -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent:

Wicket 1.5.5, HtmlHandler markup without base tag problem

2012-04-12 Thread mjirkovsky
Hi, I have custom component (extends MarkupContainer implements IMarkupCacheKeyProvider, IMarkupResourceStreamProvider) which fetches its HTML markup from database. Following HTML markup: lt;img alt= src=img/supplier/supplier1.pnggt; lt;brgt;Some text lt;brgt;Some more text causes following

Re: Wicket 1.5.5, HtmlHandler markup without base tag problem

2012-04-12 Thread Martin Grigorov
Hi, Please create a ticket with a simple quickstart app that demonstrates the problem. Thanks! On Thu, Apr 12, 2012 at 12:55 PM, mjirkovsky mjirkov...@valconsystems.com wrote: Hi, I have custom component (extends MarkupContainer implements IMarkupCacheKeyProvider,

DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
I created a simple page with a DateField and an AjaxFormComponentUpdatingBehavior where I want to read the model. The following code does work in Wicket 1.4.16 (prints the selected date), but does not in Wicket 1.5.5 (prints null): public class DatePage extends WebPage { private

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
A stateless bean is injected into the home page class. Load the page in two tabs (so twice in the same session), then on the first tab, press the button. The error occurs every time in this scenario. On Thu, Apr 12, 2012 at 2:41 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Wed, Apr

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
I'm not familiar with the Wicketopia source, but doing a quick scan I can't find any EJBs in there. The problem in this case occurs if the FooStateless class is @Stateless. Changing this to @ApplicationScoped, the problem goes away. On Thu, Apr 12, 2012 at 8:28 AM, Jonathan Tougas

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Martin Grigorov
The difference is that scoped beans are represented by proxy. I guess there is no proxy for the stateless EJB. You can verify this by putting a breakpoint in your page's #onBeforeRender() and checking the type of the injected value. Later during deserialization the current class loader cannot

Re: Wicket 1.5 - Generic JSON Response

2012-04-12 Thread Ahijah
Martin Grigorov-4 wrote On Thu, Apr 12, 2012 at 7:38 AM, Ahijah lt;darren.greer@gt; wrote: mountResource(/Feed2, new MyResourceReference()); class MyResourceReference extends ResourceReference { public IResource getResource() { return new MyResource(); } } Thanks Martin! For

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
@Override protected void onBeforeRender() { System.out.println( foo ); System.out.println( foo.getClass() ); super.onBeforeRender(); } When using @Stateless, the output is : 08:52:35,027 INFO [stdout] (http--127.0.0.1-8080-1) Proxy for view class: com.foo.FooStateless of

[Conception] question about mixed entities and model

2012-04-12 Thread myrz
hi everybody,, I'm new into the forum and i'm french so i'm begging you to excuse my english. I have to create a panel which contains a ListView of a mixed entity object. A little example: public Person implements Serializable{ getName() } public Event implements Serializable{ getType() }

Re: Wicket 1.5 - Generic JSON Response

2012-04-12 Thread Andrew Geery
If you have a number of JSON end-points, the best architecture would probably be to use Spring MVC to do the JSON handling, and then map the Spring MVC paths into your web app using the Wicket filter ignore paths option (

RE: Built with Wicket: showcases for Wicket applications

2012-04-12 Thread Jeffrey Schneller
Thanks for the reminder. FYI... whoever built ZipGrocery - you are running your site with the ajax debugger still on. -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Thursday, April 12, 2012 5:49 AM To: users@wicket.apache.org Subject: Built

Re: How to enable SSI in wicket framework.

2012-04-12 Thread Dan Retzlaff
I think the challenge is getting content from a /ssi/footer request integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any component for that. It might be possible using servlet's forward capability from a custom Wicket component's onComponentTagBody. It seems to be used for

Re: How to enable SSI in wicket framework.

2012-04-12 Thread Martin Grigorov
See org.apache.wicket.markup.html.include.Include Maybe it will do the job On Thu, Apr 12, 2012 at 5:17 PM, Dan Retzlaff dretzl...@gmail.com wrote: I think the challenge is getting content from a /ssi/footer request integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread Francois Meillet
Hi, Should be better with a form private IModelDate date; public Test() { super(); add(new TestForm(form, date = new ModelDate(new Date(; } private class TestForm extends Form { public TestForm(String form, final IModelDate dateModel) {

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
Your second suggestion seems pretty solid, but I think people do make non-trivial component hierarchy changes in onBeforeRender. Why not just freeze the page version during rendering of reuseItems=false ListViews? You know the content will be thrown away so a new page version doesn't seem

Re: Wicket 1.5.5, HtmlHandler markup without base tag problem

2012-04-12 Thread mjirkovsky
Done: https://issues.apache.org/jira/browse/WICKET-4494 Michal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-5-HtmlHandler-markup-without-base-tag-problem-tp4551420p4552044.html Sent from the Users forum mailing list archive at Nabble.com.

Running thread + AJAX + page serialization

2012-04-12 Thread Martin Schayna
Hi, I have this scenario: - browser requests some time-expensive page - page renders lazy component (instead of regular component) and starts thread for computation data - lazy component use Behavior with AJAX callback, timed in seconds - user sees in browser indicator - when Behavior fires,

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
It does not matter. Your code (DateTextField instead DateField) does not work either in Wicket 1.5.5 It prints just the current date no matter what date I choose. -- View this message in context:

Re: component.isAuto - was: Wicket 1.5: The component(s) below failed to render (revisited)

2012-04-12 Thread Adrian Wiesmann
Hi Me again with a follow up to my isAuto() problem. Setting component.setAuto(true) is quite bad, since Wicket will remove all components in the detachChildren() method which have the Auto Flag and which are not an instance of InlineEnclosure. Which all of my components obviously are not...

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread Francois Meillet
Show me your code. full file class. Le 12 avr. 2012 à 16:41, dpmihai a écrit : It does not matter. Your code (DateTextField instead DateField) does not work either in Wicket 1.5.5 It prints just the current date no matter what date I choose. -- View this message in context:

Re: [Conception] question about mixed entities and model

2012-04-12 Thread Francois Meillet
Hi, using a fragment or a panel will help you public class MyMixedEntitiesPane extends Panel { public MyMixedEntitiesPanel(IModelUserDetails userDetails) { myMixedEntitiesPanel.add( new Label(x, ); myMixedEntitiesPanel.add( new Label(y, );

Re: Built with Wicket: showcases for Wicket applications

2012-04-12 Thread Josh Kamau
I built zipgrocery ... my client is still pointing the domain to the test server... will be fixed soon. Josh. On Thu, Apr 12, 2012 at 4:55 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Thanks for the reminder. FYI... whoever built ZipGrocery - you are running your site with the

Re: component.isAuto - was: Wicket 1.5: The component(s) below failed to render (revisited)

2012-04-12 Thread Martin Grigorov
Hi, On Thu, Apr 12, 2012 at 5:48 PM, Adrian Wiesmann awiesm...@somap.org wrote: Hi Me again with a follow up to my isAuto() problem. Setting component.setAuto(true) is quite bad, since Wicket will remove all components in the detachChildren() method which have the Auto Flag and which are

Re: Running thread + AJAX + page serialization

2012-04-12 Thread Dan Retzlaff
Hi, Martin. I don't think it's appropriate to have your background thread referencing page objects, especially not modifying them. In general, pages get deserialized from the page store, in which case the thread's changes won't even be seen. Maybe you are saved by an optimization that leaves the

Re: Running thread + AJAX + page serialization

2012-04-12 Thread Martin Grigorov
Hi, You can avoid this problem by using copy-on-write collections but this will just postpone seeing the bigger problem: showing stale data. Here is the scenario: - wicket serializes the page in the disk - your thread pushes data which is stored somehow in the page - a new ajax request comes and

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Alec Swan
Igor, The link I click ends with /mp/oid/123.9, where 123 is a product id. However, when the page is rendered its URL changes to end with /mp/oid/123.x where x is different every time. Moreover, the page is displaying the wrong product 379! So, it's not the wrong version of the page, but the

Re: IDataProvider#size()

2012-04-12 Thread Igor Vaynberg
but if you do not know how many results you have then that can happen using any approach... -igor On Thu, Apr 12, 2012 at 2:36 AM, Michal Wegrzyn michal.wegr...@onior.com wrote: That's the solution which I have used for the case, where count is not possible. It has only one slight

Re: [Conception] question about mixed entities and model

2012-04-12 Thread myrz
Thanks François for your reply. But my real question is. UserDetails is it a bean that you created by hand? How do you populate it? Thanks again -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-model-tp4551789p4552250.html

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Igor Vaynberg
weld doesnt wrap ejbs in serializable proxies. if you want to inject ejbs you should do it with wicket-jee module found in wicketstuff. -igor On Thu, Apr 12, 2012 at 5:55 AM, Jonathan Tougas jtou...@gmail.com wrote: @Override    protected void onBeforeRender() {    System.out.println( foo );

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Igor Vaynberg
On Thu, Apr 12, 2012 at 7:26 AM, Dan Retzlaff dretzl...@gmail.com wrote: Your second suggestion seems pretty solid, but I think people do make non-trivial component hierarchy changes in onBeforeRender. my point was that such changes are not worthy of a page version increment because they can be

Re: [Conception] question about mixed entities and model

2012-04-12 Thread Francois Meillet
This is just an idea public class UserDetails { public UserDetails( Person person, Event event, Mail mail ) { // here you use the properties you need this.firstName = person.getFirstName(); this.xxx = event.getXXX();

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote: Igor, The link I click ends with /mp/oid/123.9, where 123 is a product id. However, when the page is rendered its URL changes to end with /mp/oid/123.x where x is different every time. Moreover, the page is displaying the

AjaxEditableLabel Missing setConvertEmptyInputStringToNull(...)?

2012-04-12 Thread Aaron J . Garcia
I am wondering if AjaxEditableLabel is intentionally missing a setConvertEmptyInputStringToNull(...) method? I have a use case for it, and it seems like it would be reasonable to implement. For now, I have a work-around for this by overriding AjaxEditableLabel's newEditor(...) method. However,

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 6:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote: Igor, The link I click ends with /mp/oid/123.9, where 123 is a product id. However, when the page is rendered its URL changes to end with

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
I'll check it out thanks! On Thu, Apr 12, 2012 at 11:33 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: weld doesnt wrap ejbs in serializable proxies. if you want to inject ejbs you should do it with wicket-jee module found in wicketstuff. -igor On Thu, Apr 12, 2012 at 5:55 AM, Jonathan

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
On Thu, Apr 12, 2012 at 8:55 AM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, Apr 12, 2012 at 6:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote: Igor, The link I click ends with /mp/oid/123.9, where 123 is a

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Alec Swan
but because of the existence of a page with pageId 0 in the page store user sees page1, not page2 as user2 intended So, what is the page id in ../mp/oid/123.9 url? On Thu, Apr 12, 2012 at 9:58 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Thu, Apr 12, 2012 at 8:55 AM, Martin Grigorov

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Dan Retzlaff
I was thinking the same freeze pattern could be applied in the other repeaters configured to throw away their content. But the no action phase = no version increment rule is simpler to explain, and probably more fool-proof. On Thu, Apr 12, 2012 at 8:38 AM, Igor Vaynberg

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Bertrand Guay-Paquet
I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5, but based on what you observed (.x changes on every render), I would say the x is the page version. I re-read your emails and if I understand correctly, both product 379 and 123 use the same page class. If that is the

Markup parsing and caching

2012-04-12 Thread Ashoka Upadhya
In our case Markup for the component comes from CMS. We want to parse the markup and cache Markup object in memory. Parsing happens asynchronously (depending on the content change in CMS) in a separate thread from the request thread. We have custom MarkupParser that extends

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Martin Grigorov
On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5, but based on what you observed (.x changes on every render), I would say the x is the page version. I re-read your emails and if I

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
I looked into wicket-jee but this won't do for me. I don't think this problem is Wicket related in any event. Here are some links I came across. - https://community.jboss.org/thread/179757 - http://java.net/jira/browse/GLASSFISH-12599 -

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Alec Swan
And I see no way to detect such problem by having just the information encoded in the url This is VERY scary! How do I fix this? On Thu, Apr 12, 2012 at 11:39 AM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: I

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Dan Retzlaff
When re-rendering a page, can you parse the new request URL and make sure all the parameters are the same as those used at construction? I don't think Wicket saves the original parameters now, but maybe it should. On Thu, Apr 12, 2012 at 12:15 PM, Alec Swan alecs...@gmail.com wrote: And I see

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
On Thu, Apr 12, 2012 at 10:39 AM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5, but based on what you observed (.x changes on every render),

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Bertrand Guay-Paquet
you simply need to check what page class is mounted, and if the page retrieved by id is not of that class then dont render it but redirect to the bookmarkable url instead. -igor Both pages actually use the same MyPage.java class in this case. The only difference is the page parameter encoded in

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
in that case a bit of logic in the page that checks the product id in onconfigure() against one in the model, and if they are different redirects to the correct page... -igor On Thu, Apr 12, 2012 at 1:56 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: you simply need to check what page

Re: IDataProvider#size()

2012-04-12 Thread Eric Jablow
On Wed, Apr 11, 2012 at 9:59 PM, Dan Retzlaff dretzl...@gmail.com wrote: For SQL-based views, the application complexity comes from the need to construct a count(*) query with exactly the same criteria as the subsequent result query. In my experience, this pollutes DAO interfaces and

Group Select with Beans

2012-04-12 Thread William Speirs
I have 2 JavaBeans A B. A has 2 fields: String name, Integer b_id. B has 2 fields: Integer id, String display. I have a list of beans for B: 1, foo 2, bar I have a single A bean, where its b_id corresponds to an id in bean B (basically the beans represent 2 tables in a DB with the ids as