Aw: Re: Re: Automatically insert generated html IDs in other places in html file

2022-07-08 Thread Daniel Radünz
I just wanted to know ahead of that if somebody has solved this problem in a more elegant way before and I would maybe not have to reinvent the wheel. Thank you for your time and kind regards Daniel Radünz Gesendet: Sonntag, 03. Juli 2022 um 22:36 Uhr Von: "Martin Grigorov" An: u

Aw: Re: Automatically insert generated html IDs in other places in html file

2022-06-30 Thread Daniel Radünz
regards, Daniel  Gesendet: Mittwoch, 29. Juni 2022 um 15:40 Uhr Von: "Martin Grigorov" An: users@wicket.apache.org Betreff: Re: Automatically insert generated html IDs in other places in html file Hi, The easiest way I could imagine is with a short jQuery function that is called o

Automatically insert generated html IDs in other places in html file

2022-06-29 Thread Daniel Radünz
somebody can push me in the right direction, how I could accomplish this with Wicket, if it's possible at all. Kind regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: Problem with MetaData when detaching Component

2021-04-13 Thread Daniel Radünz
Thanks for the response! I switched to using the RequestCycle to store the component related data, which solved the specific problem for me. :) Nevertheless I have created a bug reported with a quickstart attached as requested. (WICKET-6877) Regards, Daniel Am 12.04.2021 um 12:24 schrieb

Problem with MetaData when detaching Component

2021-04-12 Thread Daniel Radünz
I'm just using it the wrong way or if I should rather save the information in a different way, like for example in a map (Component mapped to value) in the RequestCycle object. Thanks for your help Daniel - To unsubsc

Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot

2021-01-13 Thread Daniel Weiss
works :) https://github.com/geramaya/wicket-spring-boot-simple thx for help Am 13.01.2021 um 20:19 schrieb Martin Grigorov: In that case you should report it at https://github.com/MarcGiffing/wicket-spring-boot/issues On Wed, Jan 13, 2021 at 5:28 PM Daniel Weiss wrote: Hey all, I've

Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot

2021-01-13 Thread Daniel Weiss
https://github.com/MarcGiffing/wicket-spring-boot/issues/174 Done. Thx for your help :) Am 13.01.2021 um 20:19 schrieb Martin Grigorov: In that case you should report it at https://github.com/MarcGiffing/wicket-spring-boot/issues On Wed, Jan 13, 2021 at 5:28 PM Daniel Weiss wrote: Hey all

Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot

2021-01-13 Thread Daniel Weiss
13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot

Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot

2021-01-13 Thread Daniel Weiss
Thx :) I have found this, but it doesn't work with my app. My next should step is to use a clean small spring boot app and spring boot with the wicket-spring-boot to exclude own bugs with my wonderful program :D Thx Daniel Am 13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing

Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot

2021-01-13 Thread Daniel Weiss
with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Component.getPage() and Exception Handling

2020-08-25 Thread Daniel Weiss
Hey all, after few hours of debugging, clean the inheritance structure and the right call of "onBeforeRender" vs "add;addOrReplace" > it works! :) Yeah ... was hard stuff and a better code review will make something simplier. Thx for your help/motivation :) Greets D

Component.getPage() and Exception Handling

2020-08-24 Thread Daniel Weiss
this to handle anonymous implementations. My first thoughts about this was "what the hell ... why ... and whats the benefit of it?" :) Please explain or link a reason,documentation etc. to handle it and the reason for it. Thx in advance! Daniel https://issues.apache.org/jira/browse/W

Re: FilenameWithVersionResourceCachingStrategy accepts (almost) any string as a version

2020-05-26 Thread Daniel Stoch
Wicket application is serving such files as if indeed such old copies were available. So I'm only loudly thinking is it really no problem that we serve files with any text attached on the end of file name. -- Daniel pon., 25 maj 2020 o 21:14 Carl-Eric Menzel napisał(a): > > Sorry, didn't mean to

FilenameWithVersionResourceCachingStrategy accepts (almost) any string as a version

2020-05-25 Thread Daniel Stoch
dVersion)) { response.setCacheDurationToMaximum(); response.setCacheScope(WebResponse.CacheScope.PUBLIC); } } -- Best regards, Daniel Stoch - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Users can be redirected based on unvalidated input (CWE-601: URL Redirection to Untrusted Site)

2019-11-13 Thread Daniel Stoch
that are send to an user via an e-mail functionality. Proposal: Validate all input parameters used for redirection and deny any request if the supplied value does not belong to the application’s domain. -- Daniel - To unsubscribe, e

Re: WebSockets: page deserialisation on close (performance issue?)

2019-08-05 Thread Daniel Stoch
Hi, Thanks for your answer. I have created a JIRA issue with Quickstart: https://issues.apache.org/jira/browse/WICKET-6692 -- Daniel On Sat, Aug 3, 2019 at 10:05 PM Sven Meier wrote: > > Hi Daniel, > > can you create a quickstart and attach it to a Jura issue please? >

Re: WebSockets: page deserialisation on close (performance issue?)

2019-08-01 Thread Daniel Stoch
is still open So message is broadcasted only in a newer version. -- Daniel On Thu, Aug 1, 2019 at 10:25 AM Daniel Stoch wrote: > > Hi, > > We are using web sockets (with wicket-native-core) on many pages in > our application. After upgrade a Jetty from 9.4.12.v20180830 to a > ne

WebSockets: page deserialisation on close (performance issue?)

2019-08-01 Thread Daniel Stoch
not care and current behaviour does not affect performance? -- Best regards, Daniel Stoch - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket 8 ModalWindow autosizing problem

2018-11-08 Thread daniel
Thanks for the tip. https://issues.apache.org/jira/browse/WICKET-6613 -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Wicket 8 ModalWindow autosizing problem

2018-11-08 Thread daniel
Thanks for the tip. https://issues.apache.org/jira/browse/WICKET-6613 -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Wicket 8 ModalWindow autosizing problem

2018-11-07 Thread daniel
I updated the version and modal.css seems to load fine (modal-ver-154158884.css). -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Wicket 8 ModalWindow autosizing problem

2018-11-07 Thread daniel
scrollbar or excessive window size. I've been trying to play around with various combinations of set/useInitial/Minimal/Height() and setAutoSize() without any luck so far. Any help is appreciated, thank you. Daniel -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

ResponseIOException logged as error in DefaultExceptionMapper

2018-06-26 Thread Daniel Stoch
(maybe as debug?). Or maybe I should add some special handling to this ResponseIOException in my app? -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

How to add some data to ajax and websocket response?

2017-03-31 Thread Daniel Stoch
information (order information should be calculated in context of page/component). How to add such information to response in Wicket 6.x? -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Safe way to display HTML user input

2017-02-09 Thread daniel simko
ps://twitter.com/mtgrigorov > > On Thu, Feb 9, 2017 at 12:50 PM, daniel simko <dan.si...@gmail.com> wrote: > > > Hello, > > > > I would like to ask you whether there is some safe way how to display > html > > output from some rich editor (e.g. TinyMCE)? In order

Safe way to display HTML user input

2017-02-09 Thread daniel simko
Hello, I would like to ask you whether there is some safe way how to display html output from some rich editor (e.g. TinyMCE)? In order to display html it is necessary to switch off model escaping [1] which is opening a door for XSS. I was thinking about some converter [2] which would escape only

Re: Resource caching - validation of user entered version

2016-05-31 Thread Daniel Stoch
Thanks for fast answer :) -- Daniel On Tue, May 31, 2016 at 4:54 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > The version is intended to be used by the browser for client side caching, > not by Wicket. That's why it is just stripped off by Wicket withou

Resource caching - validation of user entered version

2016-05-31 Thread Daniel Stoch
-timepicker-ver--alert('1');return false;.js Is it a desired behavior or maybe Wicket should reject such "incorrect" versions? Could it be some security issue? -- Best regards, Daniel - To unsubscribe, e-mail: user

Re: Invalid JS src url for ajax behaviors - degradation after 6.17.0

2016-01-11 Thread Daniel Stoch
n I remove it, it seems that everything works ok. -- Best regards, Daniel On Fri, Jan 8, 2016 at 10:47 PM, Sven Meier <s...@meiers.net> wrote: > Hi, > > please create a quickstart and/or test case and attach it to a new Jira > issue. > > This way we can dissect th

Invalid JS src url for ajax behaviors - degradation after 6.17.0

2016-01-08 Thread Daniel Stoch
? -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2016-01-04 Thread Daniel Stoch
On Fri, Jan 1, 2016 at 10:25 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > > On Mon, Dec 28, 2015 at 4:49 PM, Daniel Stoch <daniel.st...@gmail.com> > wrote: > >> Hi, >> >> As I wrote in my previous post "Native WebSockets - cookie

Re: Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2016-01-04 Thread Daniel Stoch
On Fri, Jan 1, 2016 at 10:26 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > On Tue, Dec 29, 2015 at 2:14 PM, Daniel Stoch <daniel.st...@gmail.com> > wrote: > >> Another problem with WebSocketRequest: >> >> @Override >>

Re: Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2015-12-29 Thread Daniel Stoch
) at org.apache.wicket.request.Request.getRequestParameters(Request.java:136) Maybe these methods should better return empty Url instead of null ( return new Url(); )? -- Daniel On Mon, Dec 28, 2015 at 4:49 PM, Daniel Stoch <daniel.st...@gmail.com> wrote: > Hi, > > As I wrote in m

Native WebSockets - exceptions and sendRedirect inside WebSocketResponse

2015-12-28 Thread Daniel Stoch
st regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Native WebSockets - cookies and last handler question

2015-12-23 Thread Daniel Stoch
;). More questions to come later ;) PS. I am using Wicket 6.x. -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Native WebSockets - cookies and last handler question

2015-12-23 Thread Daniel Stoch
On Wed, Dec 23, 2015 at 2:34 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > > On Wed, Dec 23, 2015 at 2:21 PM, Daniel Stoch <daniel.st...@gmail.com> > wrote: > >> Hi, >> >> I am during replacement Atmosphere push implementation to Wi

Re: Native WebSockets - cookies and last handler question

2015-12-23 Thread Daniel Stoch
On Wed, Dec 23, 2015 at 3:41 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > On Wed, Dec 23, 2015 at 2:52 PM, Daniel Stoch <daniel.st...@gmail.com> > wrote: > >> On Wed, Dec 23, 2015 at 2:34 PM, Martin Grigorov <mgrigo...@apache.org> >> wrote: >> &

Re: FormComponent.getConvertedInput() for multiple choice components

2015-10-12 Thread Daniel Stoch
> this required check will always be true. Will always be FALSE of course :) -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

FormComponent.getConvertedInput() for multiple choice components

2015-10-12 Thread Daniel Stoch
eld has no value, required message will not be displayed and form will be submitted. -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: AtmosphereBehavior - hard reference to page object

2015-08-11 Thread Daniel Stoch
atmosphere resources are created. -- Daniel On Mon, Aug 10, 2015 at 1:38 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Can you point in the code where this happens? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Aug 10, 2015 at 11:34 AM, Daniel

Re: AtmosphereBehavior - hard reference to page object

2015-08-11 Thread Daniel Stoch
Ok, I will try to prepare a fix for this. Then I will create a JIRA issue for this with this fix. -- Daniel On Tue, Aug 11, 2015 at 12:55 PM, Martin Grigorov mgrigo...@apache.org wrote: Thanks! Do you want to contribute an improvement? For example we can extract a class that will be listener

Re: AtmosphereBehavior - hard reference to page object

2015-08-10 Thread Daniel Stoch
Hi, Ok, EventBus stores only pageId. But Atmosphere framework keeps all AtmosphereResourceEventListeners which are implemented by AtmosphereBehavior - so I think this is a place when Atmosphere keeps references to all registered pages. -- Daniel On Tue, Jul 28, 2015 at 9:33 AM, Martin Grigorov

AtmosphereBehavior - hard reference to page object

2015-07-20 Thread Daniel Stoch
expires). I think it could be a problem in high load applications: theses hard references could eat all memory. What do you think: is it a problem or not (and I am wrong in this case)? -- Best regards, Daniel - To unsubscribe, e-mail

RE: How to load-balance on AWS with standalone Tomcats

2015-03-10 Thread Daniel Del Castillo
for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Mar 9, 2015 at 6:09 PM, Daniel Del Castillo dani...@optimad.com wrote: Hi list, One of the modules of our application is completely written in Wicket 1.4.17. This application runs on a single standalone Tomcat

RE: How to load-balance on AWS with standalone Tomcats

2015-03-10 Thread Daniel Del Castillo
architectural changes, just implementation changes. Please let us know how things go! Good luck! Martin Grigorov Funemployed! Available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Mar 10, 2015 at 11:26 AM, Daniel Del Castillo dani...@optimad.com wrote: Hi

How to load-balance on AWS with standalone Tomcats

2015-03-09 Thread Daniel Del Castillo
found a solution for clustering (see link below) which I'm now about to test but I've thought that it'd be useful to try get some advice from this list. http://letsgetdugg.com/2010/02/07/clustering-wicket-for-fun-and-profit/ Many thanks for your help. Regards, Daniel DDC

How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
is used. My urls are encoded like: somepath/param1/value1/param2/value2 Is there another way to do this? -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
Well this workaround from my previous post does not work, because this page does not exists yet when I need to get this parameter value. -- Daniel On Mon, Jan 19, 2015 at 4:16 PM, Daniel Stoch daniel.st...@gmail.com wrote: Maybe such workaround (not very elegant though): app.init

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
On Mon, Jan 19, 2015 at 4:54 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, Jan 19, 2015 at 4:38 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, In Wicket 1.4 I can get a page parameter value using this code: PageParameters pageParameters

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
, Jan 19, 2015 at 5:12 PM, Daniel Stoch daniel.st...@gmail.com wrote: requestCycle.getRequest().getUrl() return null for me. - sorry, not null but returns only a mount path without paramname/paramvalue part. On Mon, Jan 19, 2015 at 5:09 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Mon, Jan

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
= getCurrentPage(requestCycle.getPageParameters()); String value = pageParameters.getString(paramName); } ... ? -- Daniel On Mon, Jan 19, 2015 at 3:38 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, In Wicket 1.4 I can get a page parameter value using this code: PageParameters

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
requestCycle.getRequest().getUrl() return null for me. - sorry, not null but returns only a mount path without paramname/paramvalue part. On Mon, Jan 19, 2015 at 5:09 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Mon, Jan 19, 2015 at 4:54 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
This code is called inside custom DefaultMapperContext.newPageInstance() implementation and in custom IRequestMapper.mapRequest() method. -- Daniel On Mon, Jan 19, 2015 at 5:22 PM, Martin Grigorov mgrigo...@apache.org wrote: In what context do you need to extract these parameters ? In what

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
I have found another solution: in my scenario I can get parameters from DefaultMapperContext. newPageInstance(). Thanks for your help and tips. -- Daniel On Mon, Jan 19, 2015 at 5:44 PM, Daniel Stoch daniel.st...@gmail.com wrote: This code is called inside custom

Re: Change in configuring AtmosphereServlet init-params

2015-01-13 Thread Daniel Stoch
Thanks for your answers. I must check why this new version does not work in my app. -- Best regards, Daniel On Mon, Jan 12, 2015 at 1:00 PM, Emond Papegaaij emond.papega...@topicus.nl wrote: You are right. The filter allows the client to know the length of pushed messages. I believe

Change in configuring AtmosphereServlet init-params

2015-01-09 Thread Daniel Stoch
/init-param What is the reason of this change, what these parameters are used for? Actual version does not work for me and I need to know how to debug this. Any tip will be helpful. -- Best regards, Daniel - To unsubscribe, e-mail

Re: Change in configuring AtmosphereServlet init-params

2015-01-09 Thread Daniel Stoch
(or Emond ;)) know how to changed it, maybe I should look into Atmosphere documentation? The old TrackMessageSizeFilter comes from Wicket-Atmosphere, so there was some reason to setup such parameter. -- Daniel Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan

Synchonization problems? (Cannot modify component hierarchy after render phase has started)

2014-12-18 Thread Daniel Stoch
) at org.apache.wicket.atmosphere.EventBus.postToSingleResource(EventBus.java:393) at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:346) at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:329) So it looks that some thread earlier mark this component as rendering? -- Daniel

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Daniel Stoch
AtmosphereBehavior.renderHead in ajax requests? -- Daniel On Wed, Dec 10, 2014 at 12:19 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, It seems that I am using an older version of AtmosphereBehavior which implements IResourceListener. Since 6.17.0 this implementation was removed and the code

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Daniel Stoch
of such component will initialize a new web socket connection (or whatever fallback you may use) Hmmm, do we really need this check if I call whole atmo.renderHead method? Thanks for your help. -- Daniel Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-10 Thread Daniel Stoch
Is it possible to invoke this listener manually, or maybe this is a generally a bad practise? -- Daniel On 9 gru 2014, at 12:24, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a behavior which implements IResourceListener (AtmosphereBehavior). The problem is when this behavior

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-10 Thread Daniel Stoch
Hi, It seems that I am using an older version of AtmosphereBehavior which implements IResourceListener. Since 6.17.0 this implementation was removed and the code is moved to onRequest() method. So I must check a newer version, maybe my problem is solved. Thanks for a tip! -- Daniel On Wed, Dec

How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-09 Thread Daniel Stoch
connection from the client is not registered. How should I solve this problem: how and when call this onResourceRequested method? -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Wicket-Ajax-BaseURL encoding problem when uploading file using ajax

2014-11-07 Thread Daniel Stoch
errors with resolving urls. I cannot find where this base url can be broken? Maybe the problem is somewhere in my code, but I don't know where to search for this. PS. The same error is in FF and Chrome. Wicket 6.17.0. -- Best regards, Daniel

Re: Wicket-Ajax-BaseURL encoding problem when uploading file using ajax

2014-11-07 Thread Daniel Stoch
()); After this an url becomes encoded using escaped %2F instead of slashes (eg. customer%2Fid%2F1234). This leads to resolving urls problems, as I have described in my previous post. -- Best regards, Daniel On Fri, Nov 7, 2014 at 1:30 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have

Add extra debug information to component markup

2014-10-02 Thread Daniel Stoch
, to easily find a source code). -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Add extra debug information to component markup

2014-10-02 Thread Daniel Stoch
You are fast :). I wanted to write about this solution - came to my mind right now :) -- Thanks, Daniel On Thu, Oct 2, 2014 at 12:38 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You can use Behavior#onComponentTag(). And IComponentInstantiationListenener to add this behavior to all

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-07 Thread Daniel Stoch
by Martin in my previous post (How to handle click on disabled links - ListenerInvocationNotAllowedException?). -- Daniel On Fri, Jul 4, 2014 at 5:38 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: maybe what is needed is a fail silently ajax request ;-) On Fri, Jul 4, 2014 at 5:36 PM

How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
the UI? On Fri, Jul 4, 2014 at 12:13 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi all, I think such question occurs from time to time on this list, but I have never found a good answer how to solve such problem in general. The problem is similar to my last question: http://apache-wicket

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
action but by application. So yes, it can be push from a server (eg. using Atmosphere - this is my case) or by ajax self updating behavior. -- DS On 07/04/2014 12:13 PM, Daniel Stoch wrote: Hi all, I think such question occurs from time to time on this list, but I have never found a good

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
I have added the appropriate information in that thread. On Fri, Jul 4, 2014 at 12:47 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Sven's question goes straight to the point: do you know what is causing the mismacth? On Fri, Jul 4, 2014 at 12:44 PM, Daniel Stoch daniel.st

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
are pushed to client browser. -- Daniel Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 4, 2014 at 1:46 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Fri, Jul 4, 2014 at 12:33 PM, Sven Meier s...@meiers.net wrote: So page was rendered

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
on server and DOM tree on client browser are inconsistent (and not necessary because of push requests). Maybe it should be a dedicated exception on such situation (Component 'xxx' has been removed from page.) at least or maybe we can invent a better solution in core? -- Daniel On Fri, Jul 4, 2014 at 4

How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
information to user, that this is link is no longer active (but user should stay on the same page)? Should I catch ListenerInvocationNotAllowedException inside IRequestCycleListener.onException()? -- Daniel - To unsubscribe, e-mail: users

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
can always click faster ;). Best regards Sven On 06/17/2014 03:55 PM, Daniel Stoch wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled or not, so I can mark my link as enabled or disabled (by calling

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:00 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Jun 17, 2014 at 4:55 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
), but on the server is not enabled anymore (3). -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
in onClick() method. So now I try to use the second solution (I have an abstraction over all links so it would be easy to implement) and add an extra check before calling a link code. Thanks for your help. -- Daniel On 06/17/2014 04:32 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:27 PM, Sven

Atmosphere - multiple browser tabs and page versioning

2014-04-29 Thread Daniel Stoch
); ? Example project: https://dl.dropboxusercontent.com/u/138504/wicket-atmosphere-tabs-example.zip -- Best regards, Daniel

Session size vs detached models

2014-02-14 Thread Daniel Stoch
with SessionSizeDebugPanel, it displays session size and totalSize (by SessionTotalSizeModel). Does this totalSize includes size of object loaded by LDM or it counts all components and models size in detached state? -- Daniel

Re: Session size vs detached models

2014-02-14 Thread Daniel Stoch
://issues.apache.org/jira/browse/WICKET-4867 the detachable is detached before measuring its size. Ok, great to know. So it looks in 1.4.x totalSize is measured before detaching. Thanks for the answer. -- Daniel

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
(), setResponse()? -- Daniel On Wed, Feb 5, 2014 at 1:51 PM, Martin Grigorov mgrigo...@apache.orgwrote: Component#setResponsePage() just delegates to RequestCycle#setResponsePage(). So it is the same. I'm saying that you should not use tester.getRequestCycle().xyz(). I.e. do not set the new

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
I have looked inside 1.4 and the code inside a clickLink() is very similar, so this is not a case to 6.x. But still it would be nice to have RequestCycle#setResponsePage() working ;). -- Daniel On Thu, Feb 6, 2014 at 10:00 AM, Daniel Stoch daniel.st...@gmail.comwrote: I have created a new

WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
on this AuthorizationException and AccessDeniedPage is not rendered. Should it be rendered or should I have to change my test, because in 6.x it works in different way? -- Daniel

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
It works! Thanks for your fast replay :) -- Daniel On Wed, Feb 5, 2014 at 10:40 AM, Martin Grigorov mgrigo...@apache.orgwrote: Try with tester.setExposeExceptions(false) before making the request to the secured page Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
For fast REPLY, of course ;) On Wed, Feb 5, 2014 at 10:45 AM, Daniel Stoch daniel.st...@gmail.comwrote: It works! Thanks for your fast replay :) -- Daniel On Wed, Feb 5, 2014 at 10:40 AM, Martin Grigorov mgrigo...@apache.orgwrote: Try with tester.setExposeExceptions(false) before

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
= tester.isRenderedPage(DummyBasePage.class); The first one works ok (DummyBasePage is rendered), but the second fails: HomePage is rendered instead of DummyBasePage. Why? -- Daniel On Wed, Feb 5, 2014 at 10:40 AM, Martin Grigorov mgrigo...@apache.orgwrote: Try with tester.setExposeExceptions

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
Ok, but what I should call to render DummyBasePage after calling: tester.getRequestCycle().setResponsePage(DummyBasePage.class); without making a new request? -- Daniel On Wed, Feb 5, 2014 at 12:01 PM, Martin Grigorov mgrigo...@apache.orgwrote: #processRequest() triggers a new request

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
be valid for tests. Am I wrong? -- Daniel On Wed, Feb 5, 2014 at 1:14 PM, Martin Grigorov mgrigo...@apache.orgwrote: You should not use tester.getRequestCycle().setResponsePage(DummyBasePage. class); You should do something like: - in the test code: tester.startPage(Page1.class

Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
to com.hp.honeybadger.persistence.dao.morphia.MorphiaCnavUrlDAO I am able to use the CnavUrlDAO as a CnavUrlDAO, but its type is $Proxy23 and I am unable to cast it to a concrete type. Is this Guice or Wicket related? Any idea how to get around this? Thanks, Daniel

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
of sun.misc.Launcher$AppClassLoader(id=2450)) On Tue, Jul 23, 2013 at 9:20 AM, Daniel Watrous dwmaill...@gmail.comwrote: Hi, I'm having an issue that I suspect is related to the wicket integration with Guice. Any help is appreciated. I have a Page class that uses field injection to inject

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
That being the case, is there any way to get an instance that I can cast to a concrete type? On Tue, Jul 23, 2013 at 9:27 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Tue, Jul 23, 2013 at 6:20 PM, Daniel Watrous dwmaill...@gmail.com wrote: Hi, I'm having an issue that I

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
Dan, Good point. After considering I decided to modify my interface to expose the function I need and let the implementation worry about casting where necessary. Thanks, Daniel On Tue, Jul 23, 2013 at 9:58 AM, Dan Retzlaff dretzl...@gmail.com wrote: @Inject the implementation

Re: Form questions

2013-07-23 Thread Daniel Watrous
); } }); I can then use the value in the parameters to set cnavid if (parameters.get(cnavid).toString() != null) { cnavid = new ObjectId(parameters.get(cnavid).toString()); } Thanks for all the help. Daniel On Fri, Jul 19, 2013 at 9:38 AM, Paul Bors p...@bors.ws wrote

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
Here's a post that helped me understand this better: http://stackoverflow.com/questions/16047829/proxy-cannot-be-cast-to-class On Tue, Jul 23, 2013 at 2:15 PM, Daniel Watrous dwmaill...@gmail.comwrote: Dan, Good point. After considering I decided to modify my interface to expose

Re: Form questions

2013-07-19 Thread Daniel Watrous
with the request and then access that ID within the form for my query to load that object from the DB. Daniel On Thu, Jul 18, 2013 at 5:14 PM, Paul Bors p...@bors.ws wrote: Okay let's pre-populate this field: add(new TextField(url, new PropertyModel(cnavUrl, URL)) .setRequired(true

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread Daniel Watrous
] /IfModule Daniel On Fri, Jul 19, 2013 at 2:42 PM, Gabriel Landon glan...@piti.pf wrote: The home page dos work : wget http://wicketinaction.com/ --2013-07-19 10:40:45-- http://wicketinaction.com/ Résolution de wicketinaction.com... 94.124.120.40 Connexion vers wicketinaction.com

Last cause: can't serialize class $Proxy23

2013-07-18 Thread Daniel Watrous
); } } }); } } Any idea what could be going on? It may be related to this: http://apache-wicket.1842946.n4.nabble.com/Unserializable-exceptions-on-declaring-springs-org-springframework-dao-annotation-PersistenceExceptir-td3172785.html Thanks, Daniel

Re: Last cause: can't serialize class $Proxy23

2013-07-18 Thread Daniel Watrous
I found that having my DAO implement Serializable got me past the exception. Is Wicket attempting to serialize my DAO? On Thu, Jul 18, 2013 at 11:24 AM, Daniel Watrous dwmaill...@gmail.comwrote: My Wicket application uses Guice for DI and some AOP. I have successfully injected a DAO and used

  1   2   3   4   5   6   >