Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Alex Objelean
First of all, sorry for my previous comment. It was wrong judging you instead discussing the points addressed in your post. Nevertheless, nobody hates you for your opinion :). This kind of posts appears from time to time and there is nothing wrong with them as long as these address valid issues

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Alex Objelean
This is not an april fool's day, it is just an opinion of an http://www.linkedin.com/pub/eric-kizaki/30/2b1/1a4 inexperienced developer . Eric, if you have troubles in understanding wicket, you are definitely doing it wrong. Wicket is not a silver bullet, but it is a great tool when comparing to

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Alex Objelean
Serban, if you are using wro4j-maven-plugin, you can achieve the FilenameWithVersionResourceCachingStrategy feature by providing the http://code.google.com/p/wro4j/wiki/OutputNamingStrategy Resource Naming Strategy . -- View this message in context:

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Alex Objelean
It should be possible to include dynamically all resources in the page contained inside a servlet context folder (no need to know the exact name of the resource). -- View this message in context:

Re: Wicket resources (css, js and images)?

2010-12-15 Thread Alex Objelean
. Having a single resource (js and/or css) as a result of page rendering could have a dramatic page loading time improvement. Thanks! Alex Objelean -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-resources-css-js-and-images-tp1868800p3089781.html Sent from

Re: Wicket + GAE

2010-11-12 Thread Alex Objelean
Martin, are you sure you deployed the application using DEPLOYMENT mode and resourcePollFrequency is null? At least these are the only configurations needs to be updated (in wicket 1.4) in order to work with GAE. Alex -- View this message in context:

Re: Wicket 1.5 and GAE

2010-10-28 Thread Alex Objelean
Issue created: https://issues.apache.org/jira/browse/WICKET-3138 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-GAE-tp3016185p3016762.html Sent from the Users forum mailing list archive at Nabble.com.

Wicket 1.5 and GAE

2010-10-27 Thread Alex Objelean
Is there a way to make wicket-1.5 to work with Google App Engine? Thanks, Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-GAE-tp3016185p3016185.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 1.5 and GAE

2010-10-27 Thread Alex Objelean
I was expecting to have a PageStore already available, instead of implementing one from scratch. Is it possible to add one to the trunk? Thanks! Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-GAE-tp3016185p3016212.html Sent from the Users forum

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
No, it seems that if nothing is mount, it redirects to the following location: / - /wicket/bookmarkable/com.mycompany.page.HomePage What would I expect is to access the HomePage with /. -- View this message in context:

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
So you suggest to create something like CustomHomeMapper in order to be able to mount a page to root? If it is true, shouldn't it be possible to have this feature out of the box? -- View this message in context:

Re: Long running task with download

2010-10-20 Thread Alex Objelean
One small note about running a background thread is that inside that thread you cannot access the Application instance (Application.get()), because it is not an inheritable thread local. It may be a problem in some cases. Alex -- View this message in context:

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
Good to know, thanks! When a new milestone will be available? Thanks! Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mount-a-page-to-root-path-in-wicket-1-5-tp3003270p3003369.html Sent from the Users forum mailing list archive at Nabble.com.

Mount a page to root path in wicket 1.5

2010-10-19 Thread Alex Objelean
Hi! Is it possible to mount a page to root path (/) in latest wicket 1.5 branch? Thanks! Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mount-a-page-to-root-path-in-wicket-1-5-tp3003270p3003270.html Sent from the Users forum mailing list archive at

RE: Localizer in a new Thread

2010-07-30 Thread Alex Objelean
There was a long discussion about this. One of the proposal was to use InheritableThreadLocal which would solve this problem, but there was a lot of concerns about this approach. The solution I have found was this: If you create the thread with ExecutorService, you could do the following:

Re: Localizer in a new Thread

2010-07-30 Thread Alex Objelean
According to what you mentioned, could I solve this issue? thanks in advance. On Fri, Jul 30, 2010 at 5:46 AM, Alex Objelean [hidden email]http://user/SendEmail.jtp?type=nodenode=2308410i=0wrote: There was a long discussion about this. One of the proposal was to use

Re: Standard way to internationalize a website with /en, /de ?

2010-07-22 Thread Alex Objelean
There is a page on wiki describing how this can be done: https://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Standard-way-to-internationalize-a-website-with-en-de-tp2298300p2298625.html

Re: javascript message after ajax request

2010-07-01 Thread Alex Objelean
The best approach is to use AjaxCallDecorator: new AjaxLinkVoid(id) { @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { @Override public CharSequence decorateOnSuccessScript(CharSequence script) {

Re: Can I develop without recompiling/restarting after every change?

2010-05-30 Thread Alex Objelean
If you are using eclipse IDE for your development, I find the best tools the following: 1) Run-jetty-run plugin: http://code.google.com/p/run-jetty-run/ 2) jRebel With these two, you require absolutely no restart, no matter what you have changed in your wicket application (and not only

Re: Can I develop without recompiling/restarting after every change?

2010-05-30 Thread Alex Objelean
jRebel allows you to change the java code without restarting the server. Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-I-develop-without-recompiling-restarting-after-every-change-tp2226360p2236403.html Sent from the Wicket - User mailing list archive at

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
Here is the link of the component implementing this use case: http://pastebin.com/0GwGXkmr The usage is pretty simple: new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void execute() { //a business logic method which takes a lot time to

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
ITL = InheritableThreadLocal Here is the link of the component implementing this use case: http://pastebin.com/0GwGXkmr The usage is pretty simple: new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void execute() { //a business logic method

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
The problem is that injectedSpringBean won't work because it needs Application :)... Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2234639.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
The problem is not with the ProcessExecutorPanel component.. but with the way you execute it: because the client needs a reference to injectedSpringBean which cannot be resolved unless it is invoked from within a thread which can access Application, because @SpringBean needs it. -- View this

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
Yes, I see now. Thanks! The only drawback of this approach is that the client code is responsible for creating the Future. The initial purpose was to hide the implementation details related to thread creation. Alex -- View this message in context:

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Alex Objelean
I had the same results with tomcat 6... We could try to see what happens with other web servers with combination of different jdk versions. Until now, there was no prove of the memory leak. -- View this message in context:

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
The link you have found was a workaround to avoid the problem. You can see the actual problem in this example: http://pastebin.com/0GwGXkmr The usage example: @SpringBean private Service service; new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Alex Objelean
I'm not insisting on bringing it back, but I don't understand on what is based your conclusion that it doesn't work for the desired use-case (thread pools) ? Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2235138.html

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
There are two proposed solutions: 1) use the beforeExecute()/afterExecute() methods to set/clear the Application's ThreadLocal variable so that it's available during the execution of the task. 2) Let the client code to create the Future. Though it is a good approach, I don't like the fact that

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
Yes, I agree. I do prefer this solution too. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235166.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
No, it is about Sven Maier's solution: http://pastebin.com/NN58fiZx -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235168.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
The idea is that with the first solution you don't have to clutter up each task's code: 1) use the beforeExecute()/afterExecute() methods to set/clear the Application's ThreadLocal variable so that it's available during the execution of the task. -- View this message in context:

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
I don't understand why do you think that a component responsible for creating a thread and check its status does too much, is it really that complicated?? And also, pardon me, but what mess are you talking about? -- View this message in context:

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
Yes, the link is here: http://pastebin.com/TyDrCCCr Basically, you have to replace: final ExecutorService service = Executors.newSingleThreadScheduledExecutor(); with: final Application app = Application.get(); final ExecutorService service = new ScheduledThreadPoolExecutor(1) {

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Alex Objelean
Hi James! It would be a good idea to add this feature to next release, since the Application won't be stored in InheritableThreadLocal anymore. Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2233184.html Sent from

Re: [announce] Release Wicket 1.4.9

2010-05-25 Thread Alex Objelean
Hi Sven! See the task description details: https://issues.apache.org/jira/browse/WICKET-2846 Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229836.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: componentId and markupId

2010-05-25 Thread Alex Objelean
The componentId is a server-side identifier of the component used to build the component hierarchy, while markupId is a client-side (in the html markup). Ex: you can have a component with id 'panel' and markupId 'left-container'... with the following markup: div id=left-container'/div Alex

Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean
Hi Jeremy! Thanks for the effort put in this release. Though there is a lot of discussion around WICKET-2846, instead of deciding to revert it in the next release, I would rather suggest to take the chance for those who voted for reverting it to prove that it is indeed the issue. I am still

Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean
When comparing a small feature (but still feature) proven by an use case (limited but still an use case) and a NON problem proven only with theoretical presumption (with also very limited use case), would you still choose reverting it? Same question for all who voted against it... Alex -- View

Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean
I don't want to insist to much, I'm not absurd, but we are technical people. Don't you think that any theorem should be proven? The least we can achieve is to learn a new thing about how ITL are related to memory leaks. I know it isn't easy to prove, but aren't there enough tools to help us? Is

Re: CSS Templating

2010-05-08 Thread Alex Objelean
, etc). It integrates very easy in any j2ee application and is compatible with jdk-1.5 servlet-api-2.3. Alex Objelean -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-Templating-tp2135587p2136149.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
WebPage implements IAjaxIndicatorAware { //... @Override public String getAjaxIndicatorMarkupId() { return ajaxIndicator; } //... } That's all. Now ajaxIndicator DOM element to appear when ajax call will start and will disappear when it will complete. Hope this was helpful. Alex

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
when starting the operation, but when a certain sub-task is finished. Say, I iterate over a list in the operation, and after each cycle I'd like to display a jGrowl message ... -Tom Am 09.04.2010 09:05, schrieb Alex Objelean: That's all. Now ajaxIndicator DOM element to appear

Re: URL Encoding strategy

2010-04-09 Thread Alex Objelean
for each and every corner case, especially knowing that Wicket 1.5 will thoroughly improve URL handling. Regards, Erik. Alex Objelean wrote: Hi Eric! I've noticed that you have already posted the solution on your blog (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank

Re: URL Encoding strategy

2010-04-09 Thread Alex Objelean
Issue created: https://issues.apache.org/jira/browse/WICKET-2830 Alex Erik van Oosten wrote: Only Wicket comitters can do that. Please make a jira issue that refers to this discussion, for example with a nabble URL. Regards, Erik. Alex Objelean wrote: I see. But at least

Re: Javascript Compression not working.

2010-04-08 Thread Alex Objelean
? Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Wed, Apr 7, 2010 at 10:21 PM, Alex Objelean alex_objel...@yahoo.comwrote: Actually you don't have to access the resources. The wro filter just handles the request for static resources, there no wicket specific integration

Re: Javascript Compression not working.

2010-04-08 Thread Alex Objelean
of a scheme. I have clubed the css into groups with names as - themeName-all.css, eg. Classic-all.css, jazzy-all.css, etc. I will make sure wicket put correct css name in htmls. Can anyone point me as how to extend wiket:link tag or creat my own tag. On 4/8/10, Alex Objelean alex_objel...@yahoo.com

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Alex Objelean
The most simple way is to implement IAjaxIndicatorAware interface on the component wish to display the indicator. For instance, if your page implements this interface, you will have a generic indicator for all ajax requests inside your page. Also, you can be more specific by implementing this

Re: Javascript Compression not working.

2010-04-07 Thread Alex Objelean
You could take a look at wro4j: http://code.google.com/p/wro4j/ . It helps you keep you javascripts (and css) organized in a single location, merge and minimize them. It is also very easy configurable (http://code.google.com/p/wro4j/wiki/GettingStarted) and extensible (allow provide your own

Re: Javascript Compression not working.

2010-04-07 Thread Alex Objelean
. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Wed, Apr 7, 2010 at 8:20 PM, Alex Objelean alex_objel...@yahoo.comwrote: You could take a look at wro4j: http://code.google.com/p/wro4j/ . It helps you keep you javascripts (and css) organized in a single location, merge

Re: URL Encoding strategy

2010-04-07 Thread Alex Objelean
if there is a good use-case for extending it? Also, maybe you could add this contribution to wicket core or at least wicket-extension? Thank you! Alex Objelean Erik van Oosten wrote: Hi Nishant, This is tricky stuff. Here is some information: http://old.nabble.com/How-to-catch-unknown-%28not

Re: css resources location

2010-03-25 Thread Alex Objelean
You may want to consider a different approach: wro4j (http://code.google.com/p/wro4j/wiki/GettingStarted). It can help you to keep all you resources organized, minimized merged. Alex Objelean pochoclo wrote: Hi , i'm new to wicket . I been searching in the list archive for css

Re: Bug related to WICKET-2657 in 1.4.x branch

2010-02-17 Thread Alex Objelean
Issue created quickstart attached: https://issues.apache.org/jira/browse/WICKET-2751 martin-g wrote: On Wed, 2010-02-17 at 11:18 +0200, Objelean Alex wrote: I've tested my code with latest 1.4.x branch version in chrome, and apparently there is another problem with this: - if

Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-07 Thread Alex Objelean
I've noticed that WICKET-2491 is marked as resolved. But I checked against latest version from branch-1.4.x and it doesn't seem to be fixed. Is the tested version wrong? Or should the issue be reopened? Alex Objelean Alexandru Objelean wrote: The wicket-1.4.6 release contains a fix

Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-07 Thread Alex Objelean
Have you tried to use latest version from branch-1.4.x? vineet semwal wrote: afaik,it's working correctly after the fix(2717),atleast i can't reproduce the problem . On Sun, Feb 7, 2010 at 8:16 PM, Alex Objelean alex_objel...@yahoo.comwrote: I've noticed that WICKET-2717 is marked

Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-07 Thread Alex Objelean
Hmm... I didn't try your quickstart, I thought it was exactly the same as mine. It is very probable that there is another use-case which is broken.. I'll investigate it eventually post another quickstart. Alex Objelean vineet semwal wrote: yes i am using 1.4.x,do you still see the broken

Re: Bug with setResponsePage and PageParameters for wicket 1.4.6?

2010-02-06 Thread Alex Objelean
I think it is a know bug (http://issues.apache.org/jira/browse/WICKET-2717) and was is already fixed in trunk. Hopefully there will be a 1.4.7 release very soon. Alex Objelean fatefree wrote: I noticed something strange, I have a search panel on all pages that contains a single form like

Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Alex Objelean
into a single resource, thus limiting the number of requests and optimizing the response time. Regards, Alex Objelean Umanga wrote: Greetings, While playing around with wicket-stuffminis , I noticed that the Moontip load its CSS,JavaScript from the class path (wicketstuff-minis.jar) eg

Re: Wicket 1.4.5 : Spring integration problem?

2010-01-20 Thread Alex Objelean
You could try the wicket-spring library. It allows a very nice integration using a SpringBean annotation, similar to Autowired from spring. Alex Umanga wrote: Thanks Pierre, yes,that was a problem with web.xml , I forgot to change the filter setting : init-param

Re: [BUG] RequestUtils.toAbsolutePath() for ajax requests

2010-01-17 Thread Alex Objelean
I've noticed that this issue is still present in 1.4.5. There is also a jira issue which wasn't assigned yet: http://issues.apache.org/jira/browse/WICKET-2312 and it has a patch attached also. Is there any chance for this bug being fixed in 1.4.6? Thanks! Alex Objelean Alexandru Objelean

RE: Location of css and js files

2009-12-21 Thread Alex Objelean
Alex Objelean dale77 wrote: Hi Alex, I'm after best practice for css/img and js locations. I know there are many ways to do something, I'm after a recommendation as to what is the best way to do this in wicket. The way that allows the html markup to be opened by the web designer

Re: single-page, multi-panel, pretty URL webapp

2009-12-18 Thread Alex Objelean
There is no such thing like 'panel mounting'. All you can do, is to encode the state into url using PageParams restore the page based on those parameters. Alex Stefan Jozsa-2 wrote: My application is a single-page multiple-panel (heavy AJAX) webapp (except the login page). Part of page

Re: single-page, multi-panel, pretty URL webapp

2009-12-18 Thread Alex Objelean
! I can encode arguments as PageParameters, but after ? What you mean saying restore the page based on those params ? Thanks, Stefan --- On Fri, 12/18/09, Alex Objelean alex_objel...@yahoo.com wrote: From: Alex Objelean alex_objel...@yahoo.com Subject: Re: single-page, multi-panel, pretty

Re: Pretty URLs and sessions

2009-12-17 Thread Alex Objelean
examples as to how to implement it and do what I'm describing? Thanks again! -v On Tue, Dec 1, 2009 at 6:04 AM, Alex Objelean alex_objel...@yahoo.comwrote: You can mount your page with HybridUrlCodingStrategy. This way, even session relative url's will be SEO friendly. But you must

Re: Pretty URLs and sessions

2009-12-17 Thread Alex Objelean
in it. But...it looks like it's exactly what I need. Thanks! Alex R. - good point on tracking info internally. I think it'd be very useful but I'm dealing w/ the marketing dept. They're so wowed by GA, I doubt there's any turning back. Thanks guys. On Thu, Dec 17, 2009 at 12:08 PM, Alex Objelean

Re: Pretty URLs and sessions

2009-12-17 Thread Alex Objelean
=:com.myapp.UserAccount;); I could stick with that I guess, since it's trackable. It would have been nice to use the Hybrid approach consistently, though. -v On Thu, Dec 17, 2009 at 2:12 PM, Alex Objelean alex_objel...@yahoo.comwrote: Also, it could be useful to check this out: http://day-to-day

Re: Pretty URLs and sessions

2009-12-17 Thread Alex Objelean
redirecting from http to https. When I wrote this app, this was what everyone was recommending. Is there another way? On Thu, Dec 17, 2009 at 2:45 PM, Alex Objelean alex_objel...@yahoo.comwrote: You shouldn't have a code like this: getRequestCycle().setRedirect(false

Re: enclosure changes in 1.4.4

2009-12-12 Thread Alex Objelean
As far as I know, this the way it behaves in 1.4.4 is the correct behavior. I've used it only when specifying the child of enclosure, not any other component. Maybe there should be a vote about this. Alex igor.vaynberg wrote: hrm, already two people stumbled into this. i was of the mind

Re: button in one panel can change the components in other panel ?

2009-12-08 Thread Alex Objelean
/wicket-loose-coupling-of-componens-for-ajax-updates.html Alex Objelean Madhuri Garimella wrote: Hi, I need a help in wicket. I have a panel containing a button and another panel containing components. on click of the first panel button i want to change the second panel components

Re: Redirect after for submit, but not what you think

2009-12-08 Thread Alex Objelean
You don't have to expose your private panels. Just create a protected method which handles the form submission override it in inherited components. Alex Objelean rmoskal wrote: That's just what I don't want to do. My forms live as private classes on a panel (one form per one style

Re: Redirect after for submit, but not what you think

2009-12-08 Thread Alex Objelean
a class hierarchy for my Panel. I don't like my Page knowing so much about what goes on in my Panels either. Thanks! Robert ___ Robert Moskal Most Media Brooklyn, USA 347-529-4744 On Tue, Dec 8, 2009 at 12:44 PM, Alex Objelean alex_objel...@yahoo.comwrote: You don't

Re: Redirect after for submit, but not what you think

2009-12-08 Thread Alex Objelean
on it and will post if I come up a less obtrusive way to handle this. You have helped me focus my thoughts. Regards, Robert ___ Robert Moskal Most Media Brooklyn, USA 347-529-4744 On Tue, Dec 8, 2009 at 1:05 PM, Alex Objelean alex_objel...@yahoo.comwrote: You can define a default

Re: Redirect after for submit, but not what you think

2009-12-08 Thread Alex Objelean
Brooklyn, USA 347-529-4744 On Tue, Dec 8, 2009 at 2:12 PM, Alex Objelean alex_objel...@yahoo.comwrote: Wicket is unmanaged framework. I've never have seen a wicket code which would use instantiation of panels using spring. I don't know I understand it... do you have some special use-case

Re: InvalidUrlException considered evil?

2009-12-04 Thread Alex Objelean
That is why this Exception was created... you can override requestCycle handle this kind of exception whatever you like ... Alex Objelean Marat Radchenko-2 wrote: There some places in Wicket sources where it throws InvalidUrlException that causes exception logging and InternalErrorPage

Re: [RFE] AjaxLazyLoadPanel callback script rendering

2009-11-25 Thread Alex Objelean
? :) Regards, Alex Objelean Pedro H. O. dos Santos wrote: Hi Alex, don't you got the same impression than I, that it isn't an lazy load panel? Looks more like an triggered load panel. I have a few in my projects, and I using an strategy like have an page implementing IAjaxIndicatorAware

Re: SessionListeners and Wicket?

2009-11-25 Thread Alex Objelean
I've done something similar. Using the SessionListener seems to be the only one way to do the trick (only here you can access the session which is still valid). And of course you can access your wicket strongly type session from SessionListener: MySession.get().getUser(). Alex Objelean

Re: Posting A Form To NonWicket

2009-11-21 Thread Alex Objelean
You can use HttpClient for this. Alex Objelean chocba wrote: Thanks Igor. I'll give it a try. But the api doc says redirectrequesttarget will only redirect to an external url, but I would like to post the form, not just redirect. igor.vaynberg wrote: class myform extends form

Re: Bookmarkable images from db

2009-11-02 Thread Alex Objelean
you to use directly an Image component, while the second allows you to build the url of any resource by name.. Alex Objelean Peter Dotchev wrote: Hi Alex, I check SharedResources, but as I understand it I would have to add there a Resource object for each image. After checking again

Re: Bookmarkable images from db

2009-11-01 Thread Alex Objelean
Besides the servlet, there is also a wicket way of do it: - Use shared resource, which is stateless and bookmarkable If you need more informations about this approach, search on forum or just ask... and I'll provide you with some examples of how I do it.. Alex Objelean Peter Dotchev wrote

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread Alex Objelean
) is called... and wicket doesn't remove the parameters from the url and mess this up... The real problem is when you are trying to build an absolute url for a ResourceReference. If this is indeed the reason of the problem, we should raise a jira issue... Alex Objelean pieter claassen-2 wrote: Ok

Re: images not cached

2009-10-28 Thread Alex Objelean
You could add a shared resource to your application, like this: Application.get().getSharedResources().add(name, WebResource)... in the WebResource implementation you can control the response headers by adding expire headers or etag.. This is pretty clean approach. Alex Objelean Fernando

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread Alex Objelean
the mounted pages, the problem went away). Rgds, Pieter On Wed, Oct 28, 2009 at 7:31 AM, Alex Objelean alex_objel...@yahoo.comwrote: I am pretty sure, it is a bug. The reason why the urlFor(ResourceReference) is not working properly is because you are using

Re: urls with localization

2009-10-05 Thread Alex Objelean
It is indeed a simple decorator of the Request object... nothing special.. Alex Objelean Vytautas C(ivilis wrote: Question regarding your code in wiki page: RequestDecorator, this seems to be class in your package? Could it be posted too? Regards, Vytautas Alex Objelean wrote

Re: InvalidUrlException - how to show 404 page

2009-10-02 Thread Alex Objelean
Or you can update the settings in your Application class: getApplicationSettings().setInternalErrorPage(HomePage.class); Alex Objelean Thomas Singer-4 wrote: As I have reported a couple of weeks ago (but can't find the message any more for a follow-up), Wicket shows an ugly internal-error

Re: urls with localization

2009-10-02 Thread Alex Objelean
I've created a draft version of the page in wiki: http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs Now it will not expire ;). Alex Objelean Vytautas C(ivilis wrote: Hi, Alex. Could

Re: InvalidUrlException - how to show 404 page

2009-10-02 Thread Alex Objelean
404 page.. Alex Objelean Thomas Singer-4 wrote: Hi Linda, Alex and Jonas, Thank you for your answers. Just for the records: I'm now setting the internal error page in WebApplication.init() as Alex suggested and override WebApplication.newRequestCycle(Request, Response) to return

Re: exclude wicket:panel

2009-09-30 Thread Alex Objelean
In your Application class add the following line: getMarkupSettings().setStripWicketTags(true); Martin Letendre wrote: Don't display the wicket:panel tag 1- I am using a wicket panel to create a component here is the code. wicket:panel div ... some code /div

Re: Internal error parsing wicket:interface = :6

2009-08-19 Thread Alex Objelean
If they would bookmark these url, they would get SessionExpired page... I'm pretty sure they have tried to hack the url. Alex Objelean Thomas Singer-4 wrote: Thanks, Alex. So you are sure this is no problem of our web application, but rather users who change such URLs manually or have

Re: How To Kill Previous Page

2009-08-07 Thread Alex Objelean
getPage().getPageMap().remove(); ? Alex Objelean carlo c wrote: Hi, I would like to ask if it's possible to kill the previous page out of the pagestore. I have this requirement in which i have a view screen which can be able to delete or edit an entity. My problem is that when

Re: wicket rewriting name attributes in form

2009-08-06 Thread Alex Objelean
Override getInputName() method of each FormComponent.. Alex Objelean Bas Vroling wrote: I have written an wicket page that collects some user input and calculates values. These values need to be sent to an external python script that does something with this data and renders a results

Re: Can I send a parameter value to RequestCycle?

2009-08-06 Thread Alex Objelean
contain the itemId parameter appended.. Otherwise it will work only when javascript is disabled. Alex Objelean igor.vaynberg wrote: c.add(new abstractbehavior() { oncomponenttag(tag) { tag.put(href, tag.getattributes().get(href)+itemid=xxx); } } -igor On Thu, Aug 6, 2009 at 6

Re: Pretty Session URLs

2009-08-05 Thread Alex Objelean
Use HybridUrlCodingStrategy.. Alex Objelean randomaccessandy wrote: Sorry everyone if this question has been posted before (I've searched the mailing list and not found a definitive answer)... With the help of this list, I now have a good grasp of URL mounting/encoding - at least

Re: Processing GET requests

2009-08-05 Thread Alex Objelean
Why would you use wicket for this? The simplest approach is a plain servlet.. Alex Objelean arungupta wrote: I need to define couple of URLs in my app that return JSON data on GET request and are not tied to any view. Planning to use QueryStringUrlCodingStrategy and append the URL

Re: Stateless login form?

2009-08-02 Thread Alex Objelean
Jeremy Thomerson already gave you the hint: override isStateless and return true... thus you'll not get a session relative url. Alex. MartinM wrote: Login page is visible, but the form action=/?wicket:interface=:0:1 which is stateful. If my session dies I will definitely get an

Re: Wicket for non Web/AJAX developers?

2009-08-02 Thread Alex Objelean
a 'Behavior' suffix - each ajax related component or behavior has an 'Ajax' prefix Remove those two, and it will become easier to understand... Do you have other suggestions for naming convensions? Alex Objelean LazyBoy wrote: Much of the class design documentation assume knowledge

Re: Thanks Wicket-Team!

2009-07-28 Thread Alex Objelean
That's impressive! Nice concept, looks very good... I'll use it :). Alex okrohne wrote: Hi, Many thanks to the Wicket-Team for the great Framework and of course for the support I have received from the mailinglist. I started with zero-Wicket knowledge and now 4 month later we have

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Alex Objelean
This is the link of the RFE: https://issues.apache.org/jira/browse/WICKET-2307 Olger Warnier-2 wrote: On 26 jul 2009, at 22:59, Alex Objelean wrote: If you think this would help, then you could remove InvalidUrlException and invalidate the jira RFE created by me... I don't think

Re: urls with localization

2009-07-27 Thread Alex Objelean
There is another thread where I have posted a link with implementation (which is currently in production)... so, you can just reuse it: http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330 Alex Objelean Gatos wrote: Hello

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Alex Objelean
(Unauthorized) What to do with the other causes of the InvalidUrl then ? Kind Regards, Olger On 27 jul 2009, at 11:41, Alex Objelean wrote: This is the link of the RFE: https://issues.apache.org/jira/browse/WICKET-2307 Olger Warnier-2 wrote: On 26 jul 2009, at 22:59, Alex

Re: urls with localization

2009-07-27 Thread Alex Objelean
:05 PM, Alex Objelean alex_objel...@yahoo.comwrote: There is another thread where I have posted a link with implementation (which is currently in production)... so, you can just reuse it: http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs

  1   2   3   >