RE: Question on Double Submit and rendering strategy

2015-01-14 Thread Bernard Bernard
JavaScript for double submit prevention. I have seen in production duplicate orders with JavaScript prevention. Regards, Bernard

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Bernard
this. Regards Bernard On Tue, 9 Jun 2009 17:53:42 +0200, you wrote: >[XXX] Yes release 1.4-rc5 > >On Tue, Jun 9, 2009 at 17:08, Jeremy Thomerson >wrote: > >> I've created a release for Wicket 1.4-rc5. Until it is officially >> released, you can download fro

URL Resolution Magic for Applets as for Images?

2009-06-26 Thread Bernard
uot; should have its value translated, too. I guess Wicket does not look into applet tags. I would be quite happy to write code for each tag to tell Wicket to translate the attribute and property that it does not cover automatically. Is there a Wicket way to do this? M

Re: URL Resolution Magic for Applets as for Images?

2009-06-26 Thread Bernard
elativeUrl(attrValue)); } } }); add(appletContainer); Bernard On Fri, 26 Jun 2009 08:06:16 -0700, you wrote: >see org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler > >-igor > >On Thu, Jun 25, 2009 at 9:28 PM, wrote: >> Hi, >

Re: AjaxFallbackLink Text

2009-06-27 Thread Bernard
Hi, I cannot find the purpose of the IModel constructor argument in AjaxFallbackLink(java.lang.String id, IModel model) as I was also trying to modify the anchor text via the IModel with AJAX. What is it? Many thanks. Bernard On Thu, 25 Jun 2009 12:11:37 -0500, you wrote: >Two ways come

Wicket NetBeans Users please vote for these Issues

2009-07-07 Thread Bernard
Deploy on Save reportedly does not work for HTML files http://www.netbeans.org/issues/showvotes.cgi?issue_id=153773 Unnecessary redeploys by "deploy on save" http://www.netbeans.org/issues/showvotes.cgi?issue_id=15 Thank

Wicket NetBeans Users please vote for these Issues

2009-07-08 Thread Bernard
found here http://plugins.netbeans.org/PluginPortal/faces/PluginListPage.jsp?search=wicket Thanks Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Wicket Development with NetBeans

2009-07-24 Thread Bernard
can be found here http://plugins.netbeans.org/PluginPortal/faces/PluginListPage.jsp?search=wicket Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Spring and Wicket - is it worth it?

2009-07-24 Thread Bernard
s and high user demands). Wicket is fun and easy. Business logic and all the persistence stuff are not issues that occupy my mind. What do you think about that? Bernard On Wed, 22 Jul 2009 18:40:19 -0700, you wrote: >Due to the fact that nearly every substantial sample Wicket app is >Spri

Re: sessionsize of requestlogger

2009-04-17 Thread Bernard
pass parameters between pages except via query strings which I try to avoid for various reasons? Or as Daniele asked: Is there "a way to recover the last Page in a non restful way"? Is there any jira issue that tracks this subject? Bernard On Wed, 15 Apr 2009 09:09:12 -0700, you wrote:

Re: sessionsize of requestlogger

2009-04-18 Thread Bernard
Igor, Thanks for referring to Page#getPageReference. Regarding the reload, I created my own error loading a page. >On Fri, Apr 17, 2009 at 5:49 PM, Bernard wrote: >> I prefer not to instantiate a page with a non-default constructor >> because it breaks if the user reloads it.

Re: Wicket-Guice: Inject into Session

2009-04-29 Thread Bernard
s as these are pooled resources that have a price. Many thanks, Bernard On Tue, 28 Apr 2009 23:42:02 -0700, you wrote: >there is absolutely nothing wrong with having authenticate() on >session. this kind of thinking is exactly what is wrong with the >current state of java technolog

set focus on a field when opening a ModalWindow

2010-04-16 Thread Bernard
e the iframe is not ready when my javascript is called. Does somebody knows how to set focus on my first form field in my modal window ? Best regards, Bernard -- View this message in context: http://n4.nabble.com/set-focus-on-a-field-when-opening-a-ModalWindow-tp1989918p1989918.html Sent from th

Re: Performance optimization

2012-02-23 Thread Bernard
If there are thousands of objects in a page then there is the question whether all of these objects actually represent state - state being the only reason why Wicket should serialize the page. In other words, is the page so complex that it requires 10MBytes to serialize itself in a manner that it

Re: reloading of HTML and classes

2012-04-07 Thread Bernard
copy most libraries (including Wicket) into the GlassFish domain's lib dir instead of copying them on every deployment. The "Deploy on Save" feature is only useful for mini applications - it is too slow. Bernard On Fri, 06 Apr 2012 16:48:11 +0200, you wrote: > >I've been

Wicket 6.4.0 sources?

2012-12-18 Thread Bernard
Hi, How can I get the sources? The 4MB apache-wicket-6.4.0.tar.gz is basically empty. It contains 142 KB of quickstart stuff - if I run mvn install then I am not getting any wicket source files copied into my m2 repository. I must be missing something. Many thanks Bernard

Re: Wicket 6.4.0 sources?

2012-12-18 Thread Bernard
c" so one can get started. Many thanks, Bernard README: ... The archive you just downloaded and unpacked contains the source code and the jars of the core projects of Wicket. If you are just starting out, you probably only need to include wicket-x.jar, where x stands for the version. As a

apache-wicket-6.4.0.tar.gz broken

2012-12-18 Thread Bernard
I checked several mirrors. It contains only a quickstart, no parent pom. README has contents which seems to reflect what the file should contain. I would use the zip file instead. This is not an authorised message, just an observation from a user. Kind Regards Bernard

Re: apache-wicket-6.4.0.tar.gz broken

2012-12-18 Thread Bernard
Hi, Apparently apache-wicket-6.4.0.tar.gz is broken in a version of WinZip not in 7-Zip so this looks like a file compatibility bug. Kind Regards, Bernard On Wed, 19 Dec 2012 13:56:34 +1300, you wrote: >I checked several mirrors. > >It contains only a quickstart, no parent pom. R

Passing IModel in Constructor of bookmarkable Page?

2013-01-20 Thread Bernard
expiring logout links (the primary driver of all this). In case of page expiry I can deal with the exceptional call of the default constructor from IPageSettings#getRecreateMountedPagesAfterExpiry() by responding with a bookmarkable page. Many thanks, Bernard

Re: Passing IModel in Constructor of bookmarkable Page?

2013-01-21 Thread Bernard
, Bernard On Mon, 21 Jan 2013 10:05:57 +0200, you wrote: >Hi, > >I think using Page#Page(IModel) constructor is not very useful. It appears >to be anti-pattern lately. >There were several tickets related to ModalWindow when a model is shared >between the page that contains the

Re: Passing IModel in Constructor of bookmarkable Page?

2013-01-21 Thread Bernard
Hi Martin, This is great. Thanks for the quick response. Bernard On Mon, 21 Jan 2013 10:57:19 +0200, you wrote: >You can pass the oldPageId as a request parameter too. Then use it: new >PageReference(oldPageId.toInt()).getPage() > > >On Mon, Jan 21, 2013 at 10:39 AM, Bernard

Re: Passing IModel in Constructor of bookmarkable Page?

2013-01-21 Thread Bernard
amwork is completely blind wrt to state even though the user can see the full state on the screen. Should I open a Jira issue to address this? Kind Regards, Bernard On Mon, 21 Jan 2013 10:05:57 +0200, you wrote: >Hi, > >I think using Page#Page(IModel) constructor is not very useful. I

Re: Passing IModel in Constructor of bookmarkable Page?

2013-01-22 Thread Bernard
links break after expiry. How do we get that? Kind Regards, Bernard On Tue, 22 Jan 2013 10:16:42 +0200, you wrote: >Hi, > >By default Wicket recognizes a page as bookmarkable if it has default >constructor or a constructor with PageParameters as a single parameter. > >Chec

Re: Wicket Session Expiration - Ajax interactions

2013-01-22 Thread Bernard
"stateless" wrt server state - which could become too complex to handle for the framework, better done with a custom component. Bernard On Mon, 21 Jan 2013 08:56:23 -0800 (PST), you wrote: >I'm currently in the process of evaluating frameworks. We are currently >using Wicket 1.4

Re: Wicket Session Expiration - Ajax interactions

2013-01-22 Thread Bernard
;Passing IModel in Constructor of bookmarkable Page?" where I am hoping to get feedback on a special non-AJAX case where behavior after session expiry could potentially be improved. Bernard On Tue, 22 Jan 2013 10:32:07 -0800 (PST), you wrote: >Hi Bernard, > >Would you care to share w

How to reload form page on PageExpiredException

2013-01-24 Thread Bernard
Hi all, How can I get Wicket 6 to respond with a refreshed stateful mounted form page that expired on submit? Just instead of showing an error page for the dreaded PageExpiredException, show the form page again with the user's values in it. Many thanks, Be

Can we use stateful pages for web sites?

2013-02-03 Thread Bernard
T-5008 We can't have all pages stateless because any standard Wicket AJAX needs server state. I think there is a major issue with org.apache.wicket.Component#urlFor() which handles pages as bookmarkable only if they are stateless. How are you dealing with this? R

Re: Wicket job market

2013-02-05 Thread Bernard
explain to them that a page expired while they can "prove" that they were still signed in? Bernard On Tue, 5 Feb 2013 19:52:18 +1100, you wrote: >>your loosing the focus pretended to be justify before: "marketing", >>not tech. and many people "first see",

Re: call the same page using setResponsePage()

2013-02-08 Thread Bernard
workaround code becomes very ugly. Are there any plans to fix this or is this a feature? Bernard On Fri, 8 Feb 2013 09:09:34 +0100, you wrote: >Hi, > >It is OK. >But you can also just update some field/model in the current page instance. > > >On Fri, Feb 8, 2013 at 7

Re: call the same page using setResponsePage()

2013-02-08 Thread Bernard
onent#onBeforeRender() and destects that the page is stateful. In both cases it just refreshes the page. So the corresponding code already exists in the framework, and it works to our advantage. Regards, Bernard On Fri, 8 Feb 2013 12:07:17 +0100, you wrote: >Hi, > > >On Fri, Feb 8,

How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
/page?0 Regards, Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
Thanks. This works. But it does not work with PackageMapper via WebApplication#mountPackage() with a Page constructor with IModel parameter. Would this be an expected behavior? Regards, Bernard On Sun, 17 Feb 2013 01:27:13 +0100, you wrote: >Have a look to MountedMapper >And also the

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
d you get nulls then I would suggest you pinpoint this with a quickstart. Regards, Bernard On Sun, 17 Feb 2013 06:05:52 +0100, you wrote: >IIRC, bookmarkable pages need PageParameters, which also makes sense - >it must be able to reconstruct the page just from URL. IModel is just >

Re: Redirect to relative URL

2013-02-22 Thread Bernard
You will find solutions under these subjects: redirect to an external non-Wicket page redirect to an external URL e.g. https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html Regards, Bernard On Fri, 22 Feb 2013 17:06:09 +0100, you wrote: >Hello, > >

What is the best strategy for non versioned pages?

2013-02-24 Thread Bernard
icket pages are stateless if they don't contain state, and that Wicket makes a page stateful as soon as it needs to e.g. when state is added. Does Wicket provide a strategy for a page to always have a unique non-versioned URL - stateless or not? Regards

Re: What is the best strategy for non versioned pages?

2013-02-25 Thread Bernard
/mypage?0 I am just asking what the strategy is because the documentation does not mention this rather common problem. Regards, Bernard On Mon, 25 Feb 2013 17:01:46 -0500, you wrote: >Is moutning the page what you're looking for? > >http://wicketinaction.com/2011/07/wicket-1-5-

Re: Ignoring requests already processed by other servlet (REST)

2013-03-03 Thread Bernard
See https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Ignoringpaths On Sun, 03 Mar 2013 10:35:17 +0100, you wrote: >Hi all, > >I have a wicket app at /* and REST API at /rest . >When REST returns 404 (e.g. to reqest for non-existent ID), Wicket >processes

Re: Processing form input at the start of a session?

2013-03-04 Thread Bernard
he effort one has to spend on testing and fixing the expiry behavior of every single page of a site. The effort can be enormous. Regards, Bernard > >Thanks! >Ondra > > > >On 03/04/2013 03:27 PM, Martin Grigorov wrote: >> Hi, >> >> Make the page stateless, i

Re: Wicket 6: AjaxFormComponentUpdatingBehavior on dropdown leads to page reload

2013-03-08 Thread Bernard
reconstructed it which could be surprising. See ListenerInterfaceRequestHandler#respond(). Regards Bernard On Fri, 8 Mar 2013 23:04:13 +0100, you wrote: >I've just spent several hours trying to debug a rather strange >effect with a dropdown and a AjaxFormComponentUpdatingBehavior. > >I

Re: lost session and error modal

2013-03-18 Thread Bernard
interested in if you would benefit from Wicket responding to your ajax call with the expected result even after session expiry: Optionally execute Callback Behavior on Re-construction after Expiry https://issues.apache.org/jira/browse/WICKET-5070 Regards, Bernard So , On Mon, 18 Mar 2013 09

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Bernard
hich would solve your performance problem if applicable to your use case. But that is theory until someone creates TableCellRenderer for Wicket. Kind Regards, Bernard On Tue, 26 Mar 2013 16:07:17 +0100, you wrote: >Hi, > >Lets say I have about ~100.000 of MarkupContainer objects that I w

Re: how to create a new Session

2013-03-27 Thread Bernard
Hi, Do you want to get rid of an existing session? Bernard On Wed, 27 Mar 2013 02:00:53 -0700 (PDT), you wrote: >hello. > >how can tell the wicket application to create and use a new session for >subsequent requests? >the problem to solve is: >the session keeps track o

Re: setDefaultFormProcessing and models

2013-04-08 Thread Bernard
Hi, Perhaps you can use a combination of what is avaliable in the javadoc of org.apache.wicket.markup.html.form.Form e.g. FormComponent#updateModel() Regards, Bernard On Sun, 7 Apr 2013 15:14:19 -0700 (PDT), you wrote: >Maybe I just need this explained to me a little clearer, but I

Panel replacement and "No Page found for component"

2013-04-25 Thread Bernard
want the page to be stateless with it in most cases but in other cases the page should become stateful. Any ideas? Many thanks, Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional comma

Re: Panel replacement and "No Page found for component"

2013-04-25 Thread Bernard
Thanks. Will do. On Thu, 25 Apr 2013 13:27:06 +0300, you wrote: >Hi, > >I don't see another solution but to copy/paste StatelessForm code in your >own class until Wicket 6.8.0 and use #findPage() instead of #getPage(). >File a ticket for improvement. > > >On Thu, Apr

Re: How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-06 Thread Bernard
is very powerful. Kind Regards, Bernard On Sat, 04 May 2013 15:35:37 +0200, you wrote: > >Am 03.05.2013 16:28, schrieb Bertrand Guay-Paquet: >>> Best solution I can imagine would be if there would be a callback or >>> overridable method which is called when the

Re: Interesting article from Zeroturnaround

2013-08-03 Thread Bernard
lifies the whole article. He would need to clarify what his "foundation" is and provide a scenario to back up his claim of "huge server resource consumption problem". I think it is quite difficult to rate Web frameworks, especially when they are based on different architectures,

Re: Stateful / versioned / bookmarkable

2013-10-27 Thread Bernard
will and policy. The Post-Redirect-Get pattern supports this, and I know that other frameworks support this, too. Regards, Bernard On Sun, 27 Oct 2013 05:26:07 -0700 (PDT), you wrote: >Afaik stateful pages are always versioned. I wonder about these two >questions: > >1. In this case l

Re: Components can no longer be added

2013-12-08 Thread Bernard
50% of these it was my fault not Wicket. Regards, Bernard On Mon, 9 Dec 2013 05:28:52 +, you wrote: >Wicketeers, > >I have another hard-to-track down issue. > >To make matters worse, I've actually taken this code/pattern, put it into a >quickstart - and what do y

Request for re-opening a Jira issue

2014-09-14 Thread Bernard
-opened. Many thanks. Bernard --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Request for re-opening a Jira issue

2014-09-16 Thread Bernard
afraid of getting into some hacking mode where my custom implementation gets broken and I would just waste your time. > > >I'll copy my response to the ticket for cross reference. > >Martin Grigorov >Wicket Training and Consulting >https://twitter.com/mtgrigorov > &

How to get FormComponent value outside Model

2015-06-08 Thread Bernard
depending on some entity type. BTW I feel that Wicket lets me handle this very well. Many thanks. Bernard

Re: How to get FormComponent value outside Model

2015-06-08 Thread Bernard
applicable Wicket pattern which is different from validation before #onSubmit(). Regards, Bernard On Mon, Jun 8, 2015 at 8:02 PM, Sven Meier wrote: > Hi, > > After Form#onSubmit(), without any error on the Wicket side, the service >> tier has a validation error that bel

Re: How to get FormComponent value outside Model

2015-06-08 Thread Bernard
our great support. Wicket 7 is the best release I have ever seen. I am impressed by the improved session expiry behavior, the best kept secret of this release. Regards, Bernard On Mon, Jun 8, 2015 at 9:22 PM, Sven Meier wrote: > Hi Bernard, > > > applicable Wicket pattern which is

Re: Form submit - button click

2015-09-03 Thread Bernard
Your feedback component is not contained in any AJAX target. You add the feedback component to the page which does not get refreshed after the form submit. AJAX is preferably used to avoid what you are expecting (page refresh). On Fri, Sep 4, 2015 at 5:45 PM, Mihir Chhaya wrote: > Hello, > > I

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Bernard Niset
the bean type. This type is indeed a container of a key element and of a bean element. I hope it helps, Bernard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Bernard Niset
nswering these questions!". Bernard. atul singh a écrit : Hello everyone, I feel bad that a vote thread has been converted to one of discussion... At this moment wicket is *for *creating custom components. If these custom component writing gets complicated we will not be able to apprecia

Re: [ANNOUNCE] Apache Wicket 1.3.4 is released!

2008-06-27 Thread Bernard Niset
Hi Martijn, Thanks for the release. I don't find how to build the javadoc. Apparently, mvn package doesn't do that anymore. BTW, it's a pity you don't provide the javadoc by default in the distribution. Kind Regards, Bernard. Martijn Dashorst a écrit : The Apache Wic

Re: [ANNOUNCE] Apache Wicket 1.3.4 is released!

2008-06-27 Thread Bernard Niset
Martijn Dashorst a écrit : On Fri, Jun 27, 2008 at 10:47 AM, Bernard Niset <[EMAIL PROTECTED]> wrote: Hi Martijn, Thanks for the release. I don't find how to build the javadoc. Apparently, mvn package doesn't do that anymore. Not by default: it took too long and too

RE: best approach for a criteria and result page

2009-11-18 Thread Bernard LUPIN
Thank you very much Igor for your answer. You're right, this is working even without any code in the onSubmit() method (in fact I just added one line to manage the visibility of my result WebMarkupContainer). Bernard -Message d'origine- De : Igor Vaynberg [mailto:

method assertWarningMessages

2009-11-18 Thread Bernard LUPIN
sages. Even googling 'wicket +assertWarnMessages' returns nothing. Am I missing something ? Many thanks, Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: method assertWarningMessages

2009-11-23 Thread Bernard Lupin
Hi again, This question seems to be simple, no ? Do I have to open a JIRA ? Bernard Bernard Lupin wrote: > > Hi all, > Components have 3 methods to put information in a feedback panel : info(), > warn() and error(). > > But in the WicketTester class, there are only 2

Re: Session timeout - AJAX-enabled controls

2009-12-01 Thread Bernard LUPIN
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root element", and for users nothing happens when clicking on AjaxLink's. Is it a way to solve this please ? Regards, Bernard --- En date de : Ven 20.11.09, Carlo Camerino a écrit : > De: Carlo Camerino > Objet: Re: S

Re: Session timeout - AJAX-enabled controls

2009-12-01 Thread Bernard Lupin
And I'm using wicket version 1.4.3... Bernard Lupin wrote: > > Hello, > > I also have a similar problem : when the session is over, debug shows me > that all my Ajax links receive an html response with my login page, > instead of an xml response, because I have a servle

Re: Session timeout - AJAX-enabled controls

2009-12-02 Thread Bernard Lupin
Thank you Igor. Does somebody have a short example of java code to check for wicket-Ajax header ? Or an example of what such a header looks like ? In the debug window, I can see wicket xml responses, bot no query... Bernard in your servlet filter you will have to check for Wicket-Ajax header

ModalWindow on Firefox plus IE tab

2009-12-02 Thread Bernard LUPIN
If some javascript expert can help me... Many thanks Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

close a ModalWindow when session expired

2009-12-03 Thread Bernard LUPIN
? Thanks a lot Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: close a ModalWindow when session expired

2009-12-04 Thread Bernard Lupin
#x27;s a good way to solve my problem ? Regards, Bernard Bernard Lupin wrote: > > Hi, > On my ModalWindow's close button, I only want to ... close the modal > window. It seems that myWindow.close(target) calls some Ajax request, > which is failing when session is expired. >

Re: ModalWindow on Firefox plus IE tab

2009-12-10 Thread Bernard Lupin
perhaps it can be easily > corrected with one more hack in modal.js file, around the > creation. If some javascript expert can help me... > > Many thanks > Bernard > > > > > > > - >

Re: close a ModalWindow when session expired

2009-12-14 Thread Bernard Lupin
ge, but I'm not able to find which javascript code is executed on this cross image. Regards Bernard Johan Compagner wrote: > > it could be that if you do that then in normal use > the serverside doesnt know that the modal window isnt shown anymore. > So i guess you should also try

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-12-15 Thread Bernard Lupin
: I'm using the iframe version of ModalWindows... Regards Bernard Antony Stubbs wrote: > > And here's a nicer version to add to your library: > > > /** > * Triggers an {...@link AjaxLazyLoadPanel} to fetch it's contents. > * > * @

handle resource with several formats (minified, gzipped,...)

2007-08-29 Thread David Bernard
Hi, To avoid runtime/on-the-fly compression (js minification/packing,... gzip compression) of static resources (!= dynamic), I do it at compile time (done via the yuicompressor-maven-plugin) and provide 3 formats (original, minified, minified+gzip) But I need to choose the right at runtime. i

Re: compressing javascript resources

2007-09-03 Thread David Bernard
Hi, I use a other approach for the same goal (http optimization), to avoid minification and compression at run-time do it at compile-time. It's what I try do, : * I first implement the yuicompressor-maven-plugin. * now I need to develop the ResourceSelector that choose the rigth file to return

Re: compressing javascript resources

2007-09-04 Thread David Bernard
Right to use it, you provide readers, writers, an ErrorReporter and options (line-break or not, munge or not, js warning or not,...). But as Julien (authors of YUI-Compressor) wrote : the compressor is resource consumming and not made to run on-fly. /David Johan Compagner wrote: thats a prett

Re: compressing javascript resources

2007-09-04 Thread David Bernard
Yes simpler and automatic if all run fine. I like to avoid late compilation/interpretation like JSP. Is it possible to do it at start-up time (force the compression and caching) of the webapp and to stop the start if something break ? Eelco Hillenius wrote: I use a other approach for the same

Re: compressing javascript resources

2007-09-04 Thread David Bernard
I agree. But currently using a custom compressor for javascript and CSS need to change the source and replace JavascriptResourceReference by CustomCompressedResourceReference (or somthing else). Except if support of CustomCompressor is integrated into existing core Resource. https://issues.apach

Re: compressing javascript resources

2007-09-04 Thread David Bernard
with wicket is that you don't know exactly where everything is coming from.. They could be in all kinds of jars so if you want compression it should be runtime else you need to go over all the jars and code you use and repackage them. On 9/4/07, David Bernard <[EMAIL PROTECTED]> wrote:

Re: compressing javascript resources

2007-09-04 Thread David Bernard
asily because the component will make ResourceReferences to its internal css and js files and will be outputted as shared resources. Then all those urls should also be redirected. johan On 9/4/07, David Bernard <[EMAIL PROTECTED]> wrote: An other solution (stupid ?) : * at build-time (of the

Re: compressing javascript resources

2007-09-04 Thread David Bernard
is mapped to wicket johan On 9/4/07, David Bernard <[EMAIL PROTECTED]> wrote: I didn't suggest to change the url of resources, in the code we always I want .js. And the url to request the resource is the same. I suggest to select the stream to return : * select form cache, cache di

Re: compressing javascript resources

2007-09-04 Thread David Bernard
Sorry I would say : I did a mistake. Oupss David Bernard wrote: I didn't a mistake, it's not "a possible advantage". But what is your opinion about a source stream selector ? /david Johan Compagner wrote: you where talking about Apache and serving it as static resources .

Re: Wicket problem with slf4j 1.4

2007-09-05 Thread David Bernard
Hi, The 'trace' log level is removed from the last version of slf4j. In my project, I replaced trace(...) and is isTraceEnabled() by debug(...) and isDebugEnabled(). I also use logback : * "successor" of log4j * slf4j native interface * allow configuration from xml * allow test and run configura

Re: Howto integrate wicket application into my website?

2007-09-05 Thread David Bernard
Per, To use apache as frontal, use the proxy mod of apache see http://jetty.mortbay.org/jetty5/faq/faq_s_200-General_t_apache.html Security tips : I suggest you to change the configuration of jetty to only accept request from apache. /david Per Newgro wrote: Hi *, is it possible to integrat

Re: Wicket problem with slf4j 1.4

2007-09-05 Thread David Bernard
Sorry, you're right, it's not removed. I said it was removed, because I used it and I take a compilation error, and eclipse no more find them. I don't understand. Sorry about the noice. /david Matej Knopp wrote: Removed? They added it in 1.4. -Matej On 9/5/07, David

Re: Wicket libraries

2007-09-05 Thread David Bernard
Hi, May be, a solution for your case would be to use ivy ant tasks to manage/list the dependencies of wicket. I don't use Ivy, but it could use maven's repositories and pom.xml. I'm not sur it help you, because I don't use it, like lot of, I like maven 2 (dependencies and conventions), and mor

Re: Simple CMS or Wiki

2007-09-08 Thread David Bernard
I started a wiki like application 2 month ago. Currently it's not ready for publish. But may be I could help you. What do you want exactly : * user write in wiki syntax or html (may be with a Wysiwyg) * for wiki syntax * a renderer (convert a wiki syntax to html) * which wiki syntax scope : i

Re: First Day Disgust!

2007-09-08 Thread David Bernard
Welcome, If you want to start a blank project, try: $ mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.0-beta3 -DgroupId=com.mycompany -DartifactId=myproject $ cd myproject $ more pom.xml t

Re: Calling Methods based on page parameters

2007-09-15 Thread David Bernard
Hi, First I suggest you to create a factory class in charge of converting string to instance : Panel MyFactory.newComponent(String panelType, String id); To implement the method, I see 2 ways: 1/ a list of if/else if ("up".equals(panelType)) { return new UserPanel(id); } if( "xx".equ

Re: Calling Methods based on page parameters

2007-09-16 Thread David Bernard
Hi, If you use if or switch, put at the top the most used. Using if/else could seem longer than reflection, but in the case of reflection you need to write 50+ properties. Regards. darrengreer wrote: I'm going to give it a go with the switch statement, thanks to both of you. I'll let you kno

Re: serving images from db - direct url access

2007-09-17 Thread David Bernard
Hi, You can mount with a coding strategy in Application.init, something like .. (I do it for attachment) mount(new MyMixedParamUrlCodingStrategy("/images", Page.class, new String[] { "id", "move" }) { @Override public IRequestTarget decode(RequestPara

Re: serving images from db - direct url access

2007-09-17 Thread David Bernard
SharedResourceRequestTargetUrlCodingStrategy. Regards. Leszek Gawron wrote: David Bernard wrote: Hi, You can mount with a coding strategy in Application.init, something like .. (I do it for attachment) mount(new MyMixedParamUrlCodingStrategy("/images", Page.class, new String[] { &

Re: Refresh a page from an AjaxButton?

2007-09-17 Thread David Bernard
Why not use a regular Button and the onSumit() method of the form if you want to reload the page ? /david UPBrandon wrote: I'm writing a Wicket app that makes pretty heavy use of the Wicket-Extensions ModalWindow to present what is basically a dialog box where the user can enter information in

Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread David Bernard
Why not add it to the wiki or the main site (and other presentations)? It's a good support for internal/customer "show". I suggest a list with the following information : * authors * original target (ex: javazone 2007), first presentation date * wicket version (1.3.0) * attachament (slides, src..

Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread David Bernard
Done, I added http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations . Xavier, could you check information. I create links to your presentations, but may do you prefer to convert to attachement (part of the wiki). /david Gerolf Seitz wrote: n 9/24/07, David Bernard

Re: Redirect to HTTPS?

2007-09-24 Thread David Bernard
Hi, In my previous project, it was done by configuring (rewrite rules) the http front-end (apache, lighttpd,...). It's an other solution, that avoid developper to deal certificate and all the ssl machinery. /david Daniel Frisk wrote: I'm trying to add a check to the constructor on one of our

Re: Questions about GWT, JSF and Wicket

2007-09-25 Thread David Bernard
Hi, A list of url, that could help you... About Wicket vs JSF, there is some articles : * http://ptrthomas.wordpress.com/2007/05/14/a-wicket-user-tries-jsf/ (from the author of JTrac) * a list of articles : http://cwiki.apache.org/WICKET/articles-about-wicket.html About widgets : * take a look

Re: Updating a Dynamic Image with AJAX (and JFreeChart)

2007-09-25 Thread David Bernard
Hi, Have you try to extend NonCachingImage instead of Image (and comments setHeaders(...))? /david Jason Mihalick wrote: I am integrating JFreeChart into my application and I've followed the JFreeChart example on the wiki. That works very nicely. I was impressed. What I want to do now is

Re: wicket 1.3 examples

2007-09-27 Thread David Bernard
Hi, What do you download exactly ? in the .zip or .tar.gz from http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ * the source of org.apache.wicket.examples in under apache-wicket-1.3.0-beta3/src/jdk-1.5/wicket-examples/src/main/java/ * the war under apache-wicket-1.3.0-beta3/lib /david

Re: Wicket, IDEA and Winstone...

2007-09-27 Thread David Bernard
If you want to use Winstone instead of Jetty'Start : you could do like me for wicketstuff-jquery-examples: extract from https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples/src/test/java/org/wicketstuff/RunWebApp.java public static void main(String

Re: Presented Wicket to my Company...

2007-09-27 Thread David Bernard
Short version of my experience, last year I created a project with Seam+Facelets+JSF+EJB3/JPA+jBPM. I was optimist JSF is a standard with 2+ years old, lot of providers,... * JSF : I tried to mixed components from several provider, Trinidad, ADT, MyFaces, Ajax4JSF,... it was a nightweird and ti

  1   2   >