[Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Edward Yakop
Hi, I'm one of the maintainer of ops4j-pax-wicket. Atm, I'm trying to migrate pax-wicket to wicket-2.0 that can be found at (https://scm.ops4j.org/repos/ops4j/branches/pax/wicket-2.0). One of the problem that I found during migration is the fact that WicketFilter uses reflection to instantiate ap

[Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread tooy li(Gmail)
I find echo2 have more components and more ajax support. and also support html layout. so what's the advantage of wicket ? or some one can tell me the disadvantage of echo? - Take Surveys. Earn Cash. Influence the Future of

Re: [Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Johan Compagner
We will remove the warnings about the deprication when we will release 1.3 /2.0 for now we want to point people as much as possible to the wicket filter. The wicket servlet will still be there. So you just want a factory method in wicket servlet where you can make the wicket filter? can you add

Re: [Wicket-user] Modal Window Bug (important)

2007-01-30 Thread Matej Knopp
You don't need to remove the line. The bug is very difficult to reproduce, I can't even describe how to trigger it. The default behavior in newer version will be setCookieName(null), so the window position will not be persisted. Unless you manually call setCookieName(); -Matej Carfield Yim wr

Re: [Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Edward Yakop
Hi, Done. https://issues.apache.org/jira/browse/WICKET-245 Regards, Edward Yakop On 1/30/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > We will remove the warnings about the deprication when we will release > 1.3/2.0 > for now we want to point people as much as possible to the wicket filter. >

[Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
My boss like me to add some script to detect browser dimensions and set better height / width to modalwindow, there is some site telling me how to get the dimensions. The only way I know is adding hidden fields to webpages and update those fields using javascript. However, if something changed at

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread Igor Vaynberg
the biggest differences afaik are: echo2 is ajax only - ie your site doesnt work without javascript echo2 uses swing-like layout managers not html -igor On 1/30/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote: I find echo2 have more components and more ajax support. and also support html layou

[Wicket-user] IndicatingAjaxSubmitButton

2007-01-30 Thread Ayodeji Aladejebi
I would suggest that the Button be set to disabled mode onClick just to discourage a user from clicking again and a long transaction situation. ? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Te

Re: [Wicket-user] Problem restarting application in Tomcat

2007-01-30 Thread Johan Compagner
i dont think that null pointer is fixed for 1.2.x at least i didn't do that check. Maybe we should? johan On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: try the code from the latest 1.2.x branch -igor On 1/29/07, Luis Pablo Gallo <[EMAIL PROTECTED] > wrote: > > I tried in both modes

Re: [Wicket-user] Problem restarting application in Tomcat

2007-01-30 Thread Johan Compagner
ahh you already checked in the same thing i guess :) On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: looks like the npe was hiding the real exception, i just checked in a change that should fix that. update from svn wicket-1.2.x branch and deploy that, then look for the exception in the lo

Re: [Wicket-user] ui framework choice

2007-01-30 Thread Andrew Klochkov
Scott Swank wrote: > "The stylesheet is not very simple though." -- Yup, that's that stage > we're > at. :) > It's much easier to change modal window markup by overriding javascript function Wicket.Window.getMarkup. -- Andrew Klochkov ---

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread nilo.de.roock
This looks -very- cool ! http://demo.nextapp.com/Demo/app -nilo tooy li(Gmail) wrote: > > I find echo2 have more components and more ajax support. and also support > html layout. so what's the advantage of wicket ? or some one can tell me > the disadvantage of echo? > ---

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread nilo.de.roock
Although it looks very cool it seems to me that Echo2 sites can't be indexed by Google or Snap. And that's why Flash didn't take off. - nilo tooy li(Gmail) wrote: > > I find echo2 have more components and more ajax support. and also support > html layout. so what's the advantage of wicket ? or

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread Johan Compagner
Echo2 (or GWT) are really meant for building Swing like desktop application in the browser So not really for (dynamic) websites. So it is just a matter what you want to build. johan On 1/30/07, nilo.de.roock <[EMAIL PROTECTED]> wrote: Although it looks very cool it seems to me that Echo2 si

Re: [Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Erik van Oosten
I wrote the following component, it can be attached to a submit button. I edited it a bit so it probably won't compile as it is. Use it as you will. Regards, Erik. package nl.amsterdam.rbrb.web.component; import nl.amsterdam.rbrb.util.StringHelper; import nl.amsterdam.rbrb.web.RbrbApplica

[Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Flavia Paganelli
Hi! I'm working on a page that provides ajax behavior but also supports simple request-response without javascript. I realized I need a component that provides the behavior of both AjaxFallbackLink and AjaxSubmitLink at the same time. On one hand I need it to be a submit link, because on click

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-30 Thread Nathan Hamblen
I'm interested in this too, btw. I was looking into Groovy before but stopped when it appeared that 1.0 wouldn't support annotations well enough for Hibernate Annotations. Then I thought about stealing Grails' ActiveRecord clone, but I don't really like ActiveRecord any better than HA so I deci

Re: [Wicket-user] ui framework choice

2007-01-30 Thread Scott Swank
Very kind, thank you. On 1/29/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: Sounds very smart. I firmly believe that Wicket can peform and scale as well as being productive and maintainable. Let me know if you run into a need for consulting help in this arena (or any other). Scott Swank w

Re: [Wicket-user] ui framework choice

2007-01-30 Thread Scott Swank
Interesting, I'll dig into that a bit. (Or more accurately, I'll pass this on to the fellow who's actually working on the ModalWindow & DatePicker css for our demo). Cheers, Scott On 1/30/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote: Scott Swank wrote: > "The stylesheet is not very simple th

Re: [Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Igor Vaynberg
you say you want it to work even if javascript is disabled, but then you cannot submit the form using a link! so you have to user a button to submit it, and that is easy then, just look at the sourcecode from AjaxFallbackLink and add the ajax behavior to a button instead of a link. -igor On 1/3

Re: [Wicket-user] How do you load an external image?

2007-01-30 Thread Scott Swank
I went back to this last night and it just worked the way it should have in the first place without any changes. I imagine that we had something mucked up in our app's resource stream locator. Thanks again. On 1/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: ah, so the image doesnt even rend

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread Igor Vaynberg
also compare the different styles of custom component creation: here is a tutorial for echo2 http://wiki.nextapp.com/echowiki/WritingYourOwnComponentPeersPart1 another point to consider is that development is much easier with echostudio, but it costs money. -igor On 1/30/07, tooy li(Gmail) <[

[Wicket-user] Fwd: [pax-wicket] Support for wicket 2.0

2007-01-30 Thread Eelco Hillenius
FYI, Eelco -- Forwarded message -- From: Edward Yakop <[EMAIL PROTECTED]> Date: Jan 30, 2007 12:37 AM Subject: [pax-wicket] Support for wicket 2.0 To: General OPS4J Hi, Pax-wicket now supports wicket-2.0. The code is lightly tested via pax-wicket-example and it is running succ

Re: [Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Eelco Hillenius
Just FYI, in case you need to know whether your client supports JavaScript, can be determined with: ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled() which works (best) when you do: getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your application's i

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Igor Vaynberg
wicket does this for you pasted from eelco's reply to another thread === Just FYI, in case you need to know whether your client supports JavaScript, can be determined with: ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled() which works (best) when you do: ge

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
Yep. You can take a look at wicket.examples.hellobrowser to see it in action. You can customize this by overriding wicket.RequestCycle#newClientInfo() (which would obviously have to be in a custom request cycle). Take a look at wicket.markup.html.pages.BrowserInfoPage to see how it all works in cas

[Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
Hi, I need to change the number of column in a table upon the client page size. How do I get the size of the browser page? Consider that I receive a request from a simple search form and I have to compute the number of column after that request. Is there a "wicket" way to get the size of the page

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg
pasted from eelco's reply to another thread === Just FYI, in case you need to know whether your client supports JavaScript, can be determined with: ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled() which works (best) when you do: getRequestCycleSettings().se

[Wicket-user] target.addComponent() & setOutputMarkupId(true)

2007-01-30 Thread Scott Swank
If you add a component as an Ajax target, but you have not called setOutputMarkupId(true) on the component then the ajax call will never find its target and will silently fail. Should this raise a runtime exception or is there a use case where we would want the Ajax call to silently fail? Thank

Re: [Wicket-user] target.addComponent() & setOutputMarkupId(true)

2007-01-30 Thread Nick Heudecker
The Ajax debug window tells you that it couldn't find a component with the relevant id. It's available in development mode. On 1/30/07, Scott Swank <[EMAIL PROTECTED]> wrote: If you add a component as an Ajax target, but you have not called setOutputMarkupId(true) on the component then the aja

Re: [Wicket-user] target.addComponent() & setOutputMarkupId(true)

2007-01-30 Thread Scott Swank
Good point, thank you. Still, should it raise a Java exception or are there cases where one would want it to fail? On 1/30/07, Nick Heudecker <[EMAIL PROTECTED]> wrote: The Ajax debug window tells you that it couldn't find a component with the relevant id. It's available in development mode.

Re: [Wicket-user] target.addComponent() & setOutputMarkupId(true)

2007-01-30 Thread Igor Vaynberg
it does in 1.3 and 2.0 -igor On 1/30/07, Scott Swank <[EMAIL PROTECTED]> wrote: Good point, thank you. Still, should it raise a Java exception or are there cases where one would want it to fail? On 1/30/07, Nick Heudecker < [EMAIL PROTECTED]> wrote: > > The Ajax debug window tells you that

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-30 Thread nilo.de.roock
I am going ahead with Groovy. ( It's seem to be a love / hate thing with Groovy, but that only proves that it has a strong 'personality' ). I'll keep the list posted. ( Off-topic: this is a blog article about Groovy and Hibernate: http://jroller.com/page/mohanradhakrishnan?entry=prototyping_w

Re: [Wicket-user] target.addComponent() & setOutputMarkupId(true)

2007-01-30 Thread Scott Swank
Sweet. On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: it does in 1.3 and 2.0 -igor On 1/30/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > Good point, thank you. Still, should it raise a Java exception or are > there cases where one would want it to fail? > > On 1/30/07, Nick Heudecker

Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2007-01-30 Thread dukejansen
I have tried the suggestion, and am still having trouble. In my base page component, I have the following code at the end of the constructor: setVersioned(false); In addition, I have the following code in my extension of WebApplication.init: getSessionSettings().setMaxPageMaps(

Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2007-01-30 Thread Igor Vaynberg
hmm getSessionSettings().setPageMapEvictionStrategy(new IPageMapEvictionStrategy() { public void evict(IPageMap pageMap) { syncrhonized (Session.get()) {pageMap.clear();} } } -igor On 1/30/07, dukejansen <[EMAIL PROTECTED]> wrote: I have tried the suggestion, and am still having trouble.

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
thanks for quick reply. With this method I receive just the desktop window size and bit depth (i.e. 1280*800*24 for me) but what I need is the size of the browser window. On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > pasted from eelco's reply to another thread === > Just FYI, in

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
to be complete, this are the info i receive with java 1.5 under ubuntu linux, running under maven 2 jetty plugin (6.1) and with firefox 2.0.0.1 On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > thanks for quick reply. > > With this method I receive just the desktop window size and bit de

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg
hmm thought we already had that, guess we need to add it feel free to file a jira issue for this, and def feel free to create a patch :) -igor On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: thanks for quick reply. With this method I receive just the desktop window size and bit de

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
I will be very happy to do that but I need some help cause I am really a wicket newbie. I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init() that, I suppose, get all the info we should need. First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the #init() and so far i

[Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Conny Kühne
Hi, my scenario is as follows: I have a registration form (non ajax) and want to add a link that checks the availability of the username (i.e., if it has already been taken) via ajax. So I need a way to get the value of a form field without submitting the form. Ideally the value of the form fie

Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Igor Vaynberg
see ajaxformcomponentupdatingbehavior -igor On 1/30/07, Conny Kühne <[EMAIL PROTECTED]> wrote: Hi, my scenario is as follows: I have a registration form (non ajax) and want to add a link that checks the availability of the username (i.e., if it has already been taken) via ajax. So I need a

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
I added the functionality, see: http://issues.apache.org/jira/browse/WICKET-248 You can use the example 'hellobrowser' from wicket-examples to track what is going on and test whether it works for you. Eelco On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > I will be very happy to do t

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
Note, btw, that this polling is only done the first time you request for the client properties object. You should use ClientProperties with care, and if you really need to depend on the client window dimensions (think twice about whether that is what you really want as well), you may consider polli

[Wicket-user] Editable DataView - Spreadsheet like

2007-01-30 Thread Wolfgang Gehner
Hi there, I"ve been combing DataView with AjaxEditableLabel to make a dataview editable. This seems to have problems when the dataview has lotsa lines, like in a spreadsheet - creating too many (X x Y) components. Has someone created a spreadsheet-like wicket component that doesn't have that probl

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
great! of course the change is only in the trunk. I see on jira that you marked it for 1.3 as well as for 2.0. As far as i know, trunk will go in 2.0. There will be a 1.3? My options right now are to build trunk and try to port my app from 1.2 to 2.0. But if exists a 1.3 branch I guess it should

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg
https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.x i believe -igor On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: great! of course the change is only in the trunk. I see on jira that you marked it for 1.3 as well as for 2.0. As far as i know, trunk will go in 2

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
> of course the change is only in the trunk. Trunk and wicket-1.x. > I see on jira that you > marked it for 1.3 as well as for 2.0. > As far as i know, trunk will go in 2.0. There will be a 1.3? Yeah, 1.3 is actually the version that is most heavily under development right now. It is basically 1

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
I can get the SCREEN_HEIGHT value using http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT but this is kind of hard to work with in my case as I need to guess the height of the browsing area of the browser. Can I get the body element height? I found some

[Wicket-user] [wicket-1.x, wicket-2.0] ServletWebRequest#getRelativeURL()

2007-01-30 Thread Edward Yakop
Hi, I have a small bug to fix for ServletWebRequest#getRelativeURL(). For some odd reason, for resources (images, css etcs) to be displayed for Felix http service, ServletWebRequest#getServletPath() and #getContextPath() must be swapped. Due to getRelativeURL() uses httpServletRequest.getServletPa

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Igor Vaynberg
this has been added in svn today see the wicket-1.x branch -igor On 1/30/07, Carfield Yim <[EMAIL PROTECTED]> wrote: I can get the SCREEN_HEIGHT value using http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT but this is kind of hard to work with i

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
Thanks a lot, however for now I use the following code to get the screen height: final ClientProperties prop = ((WebClientInfo)modal.getSession().getClientInfo()).getProperties(); final int screenHeight = prop.getInt(ClientProperties.SCREEN_HEIGHT, 800); However it just return 800 for all

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
It's probably null, in which case it returns 800 (the second parameter you provide which is the default value in case the property wasn't found. You probably still have to do: getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your application's init method. Also, note the section

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
On 1/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > It's probably null, in which case it returns 800 (the second parameter > you provide which is the default value in case the property wasn't > found. > > You probably still have to do: > > getRequestCycleSettings().setGatherExtendedBrowserInfo

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
> You probably still have to do: > > getRequestCycleSettings().setGatherExtendedBrowserInfo(true); > > in your application's init method. Maybe a little explanation wouldn't hurt here :) By default, IRequestCycleSettings gatherExtendedBrowserInfo setting is false, resulting in the ClientPropertie

[Wicket-user] Invitation from Md Mozammel Haque

2007-01-30 Thread Md Mozammel Haque
Hello, Md Mozammel Haque (mozammel) is building his online friends network on : http://en.facebox.com Accept this friendship request and join Facebox! http://en.facebox.com/go/register/id=866609107&i=t71 Create a personal Facebox web page with - Blog - Photo album - Guestbook - Friends network

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
> > You probably still have to do: > > > > getRequestCycleSettings().setGatherExtendedBrowserInfo(true); > > > > in your application's init method. > > > > I've do that already. However, I've my custom IRequestCycleFactory, > may be I need to do something special for my IRequestCycleFactory? Nope,