Re: Kendo Material update from 8.3.0 to 8.6.0 adds 'user-select:none'
OK, thanks. I'll check with the Kendo people. Martin Grigorov-4 wrote > Hi Manfred, > > On Thu, Apr 2, 2020 at 6:23 PM Bergmann Manfred < > mb@ > > > wrote: > >> Hi. >> >> We’ve just realized that none of the texts when changing this library >> version are selectable/copyable. >> Is this intentional? >> > > It sounds like the change is in Kendo Material sources, not in Wicket > JQuery UI, so the question should be addressed to Kendo Material > developers. > > >> How can it be fixed other than reverting to 8.3.0? >> > > You can always overwrite any CSS rules by adding your own CSS rules > *after* > the ones you want to overwrite. > E.g.: > https://kendo.ui/.../material.css"/> > https://my.server.com/my-overwrites.css"/> > Martin > > >> >> >> Manfred >> - >> To unsubscribe, e-mail: > users-unsubscribe@.apache >> For additional commands, e-mail: > users-help@.apache >> >> -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up
Thank you guys. Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up
OK, maybe it's better to follow up on this while it hot. I'm not entirely certain what to do and where. I'd assume that when a user clicks elsewhere, which raises an AjaxRequestTarget I'll have to add a functionality to destroy the chart/grid as part of the AjaxRequestTarget. But since the click can be anywhere, should this listener be part of the Grid/Chart component? Can you briefly guide me on what to do? Manfred Manfred Bergmann wrote > Hi Martin. > > OK, thanks. That looks like a doable solution. > I'd go for the Listener but I'll probably have to ask some more when I'm > going to implement it. > > > Manfred > > > > Martin Grigorov-4 wrote >> Hi Manfred, >> >> The #refresh(PartialPageUpdateHandler) methods are useful if you update >> the >> specific component. >> They do not help if you repaint a parent of such a component. >> In your case you will need to destroy the component (grid, chart) in your >> action callback (e.g. onUpdate(), onClick()). >> You can do this in your code or with AjaxRequestTarget.Listener. If you >> do >> the Listener then you can donate it to Wicket JQuery UI project. >> >> On Tue, Sep 10, 2019 at 10:52 AM Manfred Bergmann < > >> mb@ > >> > >> wrote: >> >>> Hi Sebastian. >>> >>> Thanks for the additional explanation. >>> But I'm not fully sure for how this is supposed to work in my case given >>> this structure/hierarchy: >>> page -> panel(a) -> panel(b) -> grid/chart >>> >>> Where panel (a) is replaced. Any instance of panel (b) can have a >>> grid/chart >>> but it can also host something else (depends on what is being >>> displayed). >>> I understand that when panel (a) is replaced it is garbage collected and >>> all >>> content on it as well in which case a reload for the grid/chart on >>> panel(b) >>> won't work? >>> >>> >>> Regards, >>> Manfred >>> >>> >>> >>> >>> Sebastien wrote >>> > Hi Manfred, >>> > >>> > Sorry, my previous answer was incomplete. >>> > Kendo components do usually have two methods for ajax, #reload and >>> > #refresh. >>> > Reload aims to reload the component (ie reattach to the dom) while >>> refresh >>> > aim to refresh the data only. >>> > IIRC, grid and chart are different in the sense that grid does have >>> its >>> > datasource aware of the request cycle so it is safe to reattach/reload >>> the >>> > component, the datasource will be destroyed from the dom. That's >>> > unfortunately not the case of the chart (you can open an issue, I can >>> try >>> > to figure out if it's achievable). >>> > One nice way to refresh the data without having the reload/reattach >>> the >>> > component is to use the event bus. Your master page/component will >>> > send/broadcast a RefreshEvent or RefreshChatEvent that will be catched >>> by >>> > the component hosting the chart (or the chart itself if you have >>> overriden >>> > it). Then just call refesh... >>> > >>> > Thanks and best regards, >>> > Sebastien >>> > >>> > >>> > On Mon, Sep 9, 2019, 23:29 Manfred Bergmann < >>> >>> > mb@ >>> >>> > > wrote: >>> > >>> >> Hi Sebastian. >>> >> >>> >> OK, but I don't really see how reusing instances of a Kendo Grid >>> really >>> >> works in a component based design where the parents of where the >>> Grids >>> >> are >>> >> placed are replaced on the page. >>> >> >>> >> In particular we have a three panes border layout, kind of a >>> >> 'master-detail' >>> >> plus a tree on the left side. >>> >> The right most pane is the 'detail' pane where panels are replaced >>> >> depending >>> >> on selection on the 'master' pane. Those panels can contain Kendo >>> Grid >>> >> but >>> >> some do not. So I have no other chance of creating new instances of >>> Kendo >>> >> Grids (DataTable). >>> >> So switching through the 'master' selections creates new Kendo Grids, >>> or >&
Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up
Hi Martin. OK, thanks. That looks like a doable solution. I'd go for the Listener but I'll probably have to ask some more when I'm going to implement it. Manfred Martin Grigorov-4 wrote > Hi Manfred, > > The #refresh(PartialPageUpdateHandler) methods are useful if you update > the > specific component. > They do not help if you repaint a parent of such a component. > In your case you will need to destroy the component (grid, chart) in your > action callback (e.g. onUpdate(), onClick()). > You can do this in your code or with AjaxRequestTarget.Listener. If you do > the Listener then you can donate it to Wicket JQuery UI project. > > On Tue, Sep 10, 2019 at 10:52 AM Manfred Bergmann < > mb@ > > > wrote: > >> Hi Sebastian. >> >> Thanks for the additional explanation. >> But I'm not fully sure for how this is supposed to work in my case given >> this structure/hierarchy: >> page -> panel(a) -> panel(b) -> grid/chart >> >> Where panel (a) is replaced. Any instance of panel (b) can have a >> grid/chart >> but it can also host something else (depends on what is being displayed). >> I understand that when panel (a) is replaced it is garbage collected and >> all >> content on it as well in which case a reload for the grid/chart on >> panel(b) >> won't work? >> >> >> Regards, >> Manfred >> >> >> >> >> Sebastien wrote >> > Hi Manfred, >> > >> > Sorry, my previous answer was incomplete. >> > Kendo components do usually have two methods for ajax, #reload and >> > #refresh. >> > Reload aims to reload the component (ie reattach to the dom) while >> refresh >> > aim to refresh the data only. >> > IIRC, grid and chart are different in the sense that grid does have its >> > datasource aware of the request cycle so it is safe to reattach/reload >> the >> > component, the datasource will be destroyed from the dom. That's >> > unfortunately not the case of the chart (you can open an issue, I can >> try >> > to figure out if it's achievable). >> > One nice way to refresh the data without having the reload/reattach the >> > component is to use the event bus. Your master page/component will >> > send/broadcast a RefreshEvent or RefreshChatEvent that will be catched >> by >> > the component hosting the chart (or the chart itself if you have >> overriden >> > it). Then just call refesh... >> > >> > Thanks and best regards, >> > Sebastien >> > >> > >> > On Mon, Sep 9, 2019, 23:29 Manfred Bergmann < >> >> > mb@ >> >> > > wrote: >> > >> >> Hi Sebastian. >> >> >> >> OK, but I don't really see how reusing instances of a Kendo Grid >> really >> >> works in a component based design where the parents of where the Grids >> >> are >> >> placed are replaced on the page. >> >> >> >> In particular we have a three panes border layout, kind of a >> >> 'master-detail' >> >> plus a tree on the left side. >> >> The right most pane is the 'detail' pane where panels are replaced >> >> depending >> >> on selection on the 'master' pane. Those panels can contain Kendo Grid >> >> but >> >> some do not. So I have no other chance of creating new instances of >> Kendo >> >> Grids (DataTable). >> >> So switching through the 'master' selections creates new Kendo Grids, >> or >> >> Charts adding up datasources on the DOM root. >> >> >> >> I don't see how just using Chart/DataTable#refresh really should work? >> >> >> >> >> >> Manfred >> >> >> >> >> >> >> >> Sebastien wrote >> >> > Hi Manfred, >> >> > >> >> > The recommended way to refresh kendo ui components - those bound to >> a >> >> > datasource - is to read from the datasource. >> >> > >> >> > See Chart#refresh, it should solve the problem. >> >> > >> >> > Thanks and best regards, >> >> > Sébastien >> >> >> >> >> >> >> >> -- >> >> Sent from: >> >> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >> >> >> >> - >> >> To unsubscribe, e-mail: >> >> > users-unsubscribe@.apache >> >> >> For additional commands, e-mail: >> >> > users-help@.apache >> >> >> >> >> >> >> >> >> -- >> Sent from: >> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >> >> - >> To unsubscribe, e-mail: > users-unsubscribe@.apache >> For additional commands, e-mail: > users-help@.apache >> >> -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up
Hi Sebastian. Thanks for the additional explanation. But I'm not fully sure for how this is supposed to work in my case given this structure/hierarchy: page -> panel(a) -> panel(b) -> grid/chart Where panel (a) is replaced. Any instance of panel (b) can have a grid/chart but it can also host something else (depends on what is being displayed). I understand that when panel (a) is replaced it is garbage collected and all content on it as well in which case a reload for the grid/chart on panel(b) won't work? Regards, Manfred Sebastien wrote > Hi Manfred, > > Sorry, my previous answer was incomplete. > Kendo components do usually have two methods for ajax, #reload and > #refresh. > Reload aims to reload the component (ie reattach to the dom) while refresh > aim to refresh the data only. > IIRC, grid and chart are different in the sense that grid does have its > datasource aware of the request cycle so it is safe to reattach/reload the > component, the datasource will be destroyed from the dom. That's > unfortunately not the case of the chart (you can open an issue, I can try > to figure out if it's achievable). > One nice way to refresh the data without having the reload/reattach the > component is to use the event bus. Your master page/component will > send/broadcast a RefreshEvent or RefreshChatEvent that will be catched by > the component hosting the chart (or the chart itself if you have overriden > it). Then just call refesh... > > Thanks and best regards, > Sebastien > > > On Mon, Sep 9, 2019, 23:29 Manfred Bergmann < > mb@ > > wrote: > >> Hi Sebastian. >> >> OK, but I don't really see how reusing instances of a Kendo Grid really >> works in a component based design where the parents of where the Grids >> are >> placed are replaced on the page. >> >> In particular we have a three panes border layout, kind of a >> 'master-detail' >> plus a tree on the left side. >> The right most pane is the 'detail' pane where panels are replaced >> depending >> on selection on the 'master' pane. Those panels can contain Kendo Grid >> but >> some do not. So I have no other chance of creating new instances of Kendo >> Grids (DataTable). >> So switching through the 'master' selections creates new Kendo Grids, or >> Charts adding up datasources on the DOM root. >> >> I don't see how just using Chart/DataTable#refresh really should work? >> >> >> Manfred >> >> >> >> Sebastien wrote >> > Hi Manfred, >> > >> > The recommended way to refresh kendo ui components - those bound to a >> > datasource - is to read from the datasource. >> > >> > See Chart#refresh, it should solve the problem. >> > >> > Thanks and best regards, >> > Sébastien >> >> >> >> -- >> Sent from: >> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >> >> - >> To unsubscribe, e-mail: > users-unsubscribe@.apache >> For additional commands, e-mail: > users-help@.apache >> >> -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up
Hi Sebastian. OK, but I don't really see how reusing instances of a Kendo Grid really works in a component based design where the parents of where the Grids are placed are replaced on the page. In particular we have a three panes border layout, kind of a 'master-detail' plus a tree on the left side. The right most pane is the 'detail' pane where panels are replaced depending on selection on the 'master' pane. Those panels can contain Kendo Grid but some do not. So I have no other chance of creating new instances of Kendo Grids (DataTable). So switching through the 'master' selections creates new Kendo Grids, or Charts adding up datasources on the DOM root. I don't see how just using Chart/DataTable#refresh really should work? Manfred Sebastien wrote > Hi Manfred, > > The recommended way to refresh kendo ui components - those bound to a > datasource - is to read from the datasource. > > See Chart#refresh, it should solve the problem. > > Thanks and best regards, > Sébastien -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best practice for session handling - high availability
I mean, don't get me wrong. I'm in favour of session stickiness and I can't understand why this is not preferred. But anyway. If we have aTCP load-balancer that switches on a timely basis every 200ms then session replication doesn't really work, or? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best practice for session handling - high availability
Thanks for you reply. I'm wondering to what extend saving the session and session replication will really work if the load-balancer really switches x times per second on a request with various JavaScript lazy load requests. So the session replication must be blazingly fast. Can Ignite really do that? Regards, Manfred Andrea Del Bene-3 wrote > Hi, > > session is something that lives on server side, so there's no chance to > persist it on client. Besides, client solutions like cookies and > localStorage have size limits. What you should try to do is to adopt a > third solution that makes session clustering possible without needing > stickiness. > For example Apache Ignite: > > https://apacheignite-mix.readme.io/docs/web-session-clustering > > If you go for such kind of solution you should also choose to save page > instances directly into HttpSession, so everything can be cached into > Ignite: > > https://ci.apache.org/projects/wicket/guide/8.x/single.html#_httpsessiondatastore > > On Wed, Jul 3, 2019 at 11:15 AM Bergmann Manfred < > mb@ > > > wrote: > >> Hi. >> >> I know a few points, like using LoadableDetachableModel’s to keep session >> size low. >> As it has to be replicated in some way between server nodes in a cluster, >> or stored in a database. >> Session stickiness is probably how most deployments work. >> >> But what about offloading the session into one or more cookies (which are >> encrypted) and such. >> Is that something that is actually being done in practice? >> It basically would not require session replication in the background and >> could work without session stickiness. >> >> Session size. In middle sized web applications with a JavaScript enabled >> components. >> Or actually generally, what is a session size that is ideal, or good to >> replicate? >> >> What is your experience? >> >> >> >> Regards, >> Manfred >> >> >> - >> To unsubscribe, e-mail: > users-unsubscribe@.apache >> For additional commands, e-mail: > users-help@.apache >> >> > > -- > Andrea Del Bene. > Apache Wicket committer. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - problem with apostroph character in strings
OK, nice. I'll do that. Thanks, Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - problem with apostroph character in strings
Hi. Yeah, the problem was in the provided Options object where we have used single quotes instead of double quotes. When using double quotes it works. So initially we had: opts.set("title", s"{ text: '${getString("title:print_activity")}' }") Changing to: opts.set("title", s"""{ text: "${getString("title:print_activity")}" }""") works. I think that solves it. Thanks, Manfred Sven Meier wrote > how are you configuring the Options object? Show some code please. > Sven > > >> >> On 12.02.2019 at 10:46, > > wrote: >> >> >> Sorry. I forgot a few things. Using Wicket 8.2 with Kendo UI 8.1. The >> error is only visible in the Wicket Debug window: ERROR: >> Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: >> SyntaxError: missing } after property list, text: The violating property >> is this: "title": [{ text: 'Print 'ctivity' }] This certainly fails and >> means trouble. Manfred Manfred Bergmann schrieb am 12.02.19 um 10:37: > >> Hi. > > In particular this popped up in the title of a Chart >> component. > Now, I can encode the string using URLEncoder but I'm >> wondering whether > the component should do that. > Because >> effectively I would need to have all resource string > `getString()` >> run through an encoder. > > Any ideas on this? > > > Regards, >> > Manfred >> - To >> unsubscribe, e-mail: > users-unsubscribe@.apache > For additional commands, e-mail: > users-help@.apache > >> -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - problem with apostroph character in strings
Sorry. I forgot a few things. Using Wicket 8.2 with Kendo UI 8.1. The error is only visible in the Wicket Debug window: ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: missing } after property list, text: The violating property is this: "title": [{ text: 'Print 'ctivity' }] This certainly fails and means trouble. Manfred Manfred Bergmann schrieb am 12.02.19 um 10:37: Hi. In particular this popped up in the title of a Chart component. Now, I can encode the string using URLEncoder but I'm wondering whether the component should do that. Because effectively I would need to have all resource string `getString()` run through an encoder. Any ideas on this? Regards, Manfred - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - problem with apostroph character in strings
Hi. In particular this popped up in the title of a Chart component. Now, I can encode the string using URLEncoder but I'm wondering whether the component should do that. Because effectively I would need to have all resource string `getString()` run through an encoder. Any ideas on this? Regards, Manfred - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Replacement for IOnChangeListeer.INTERFACE
OK, sorry. Forget that. It seems to be working when adding the FormComponentUpdatingBehavior. 4 of 5 uses work. The last error I posted is probably due to something else, model related. Thanks, Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Replacement for IOnChangeListeer.INTERFACE
Hi Sven. I'm using the Kendo widgets. In particular the AjaxDropDownList. It inherits from the Wicket standard DropDownChoice and hence I can add the FormComponentUpdatingBehavior. But that will throw a different error in the test: Any ideas on that one? Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebSocket tests fail after migration to Wicket 8
Yes, I can confirm 8.2.0-SNAPSHOT works. Thank you, Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Replacement for IOnChangeListeer.INTERFACE
Hi. We’ve tested Ajax components by code like this in Wicket 7: val languageChoice = tester.getComponentFromLastRenderedPage("languageChoice").asInstanceOf[DropDownChoice[Locale]] tester.getRequest.getPostParameters.setParameterValue(languageChoice.getInputName, "0") tester.invokeListener(languageChoice, IOnChangeListener.INTERFACE) assert(testPage.getLocale == Locales.supportedLocales.head) In Wicket 8, IOnChangeListener.INTERFACE is not available anymore. What is the recommended equivalent for this test? Regards, Manfred
WebSocket tests fail after migration to Wicket 8
Hi. I’m using a WebSocket on a component of a page based on WebSocketBehavior. It’s working fine when running the app. But the tests of the Panel fail, in contrast to Wicket 7 with: Caused by: java.lang.NullPointerException at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.getSessionId(BaseWebSocketBehavior.java:176) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0] at org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior.renderHead(BaseWebSocketBehavior.java:128) ~[wicket-native-websocket-core-8.1.0.jar:8.1.0] Is there something that must change for testing WebSocket behavior in Wicket 8? Regards, Manfred
Re: AjaxCheckBox onUpdate not triggering after visibility toggle
I couldn't reproduce the error in the Quickstart with Wicket 7.9.0. So I've updated my project and the issue disappeared. All good then. Sven Meier wrote > Then this is a bug - please create a quickstart. > > Regards > Sven > > > Am 13.10.2017 um 19:51 schrieb Manfred Bergmann: >> I have tried with enclosure and without. >> Also I have tried wrapping the CheckBox inside a WebMarkupContainer and >> only >> changing visibility of that on onConfigure. >> >> >> Manfred >> >> >> Sven Meier wrote >>> That should work indeed. >>> >>> Do you have an Enclosure involved? >>> >>> Have fun >>> Sven >>> >>> Am 13. Oktober 2017 15:44:03 MESZ schrieb Manfred Bergmann < >>> mb@ >>> >: >>>> Hi. >>>> >>>> I'm having a problem with an AjaxCheckBox which doesn't trigger >>>> onUpdate >>>> anymore after it has been set invisible and visible again through some >>>> other >>>> component in the form. >>>> Is that intended behavior (Wicket 7.8.0)? >>>> I'm assuming that some JavaScript is not re-rendered after visibility >>>> has >>>> been toggled or "onchange" not re-attached. >>>> But before I dig into it can someone comment? >>>> >>>> >>>> Manfred >>>> >>>> -- >>>> Sent from: >>>> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >>>> >>>> - >>>> To unsubscribe, e-mail: >>> users-unsubscribe@.apache >>>> For additional commands, e-mail: >>> users-help@.apache >> >> >> -- >> Sent from: >> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >> >> - >> To unsubscribe, e-mail: > users-unsubscribe@.apache >> For additional commands, e-mail: > users-help@.apache >> > > > - > To unsubscribe, e-mail: > users-unsubscribe@.apache > For additional commands, e-mail: > users-help@.apache -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxCheckBox onUpdate not triggering after visibility toggle
I have tried with enclosure and without. Also I have tried wrapping the CheckBox inside a WebMarkupContainer and only changing visibility of that on onConfigure. Manfred Sven Meier wrote > That should work indeed. > > Do you have an Enclosure involved? > > Have fun > Sven > > Am 13. Oktober 2017 15:44:03 MESZ schrieb Manfred Bergmann < > mb@ > >: >>Hi. >> >>I'm having a problem with an AjaxCheckBox which doesn't trigger >>onUpdate >>anymore after it has been set invisible and visible again through some >>other >>component in the form. >>Is that intended behavior (Wicket 7.8.0)? >>I'm assuming that some JavaScript is not re-rendered after visibility >>has >>been toggled or "onchange" not re-attached. >>But before I dig into it can someone comment? >> >> >>Manfred >> >>-- >>Sent from: >>http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html >> >>- >>To unsubscribe, e-mail: > users-unsubscribe@.apache >>For additional commands, e-mail: > users-help@.apache -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxCheckBox onUpdate not triggering after visibility toggle
Hi. I'm having a problem with an AjaxCheckBox which doesn't trigger onUpdate anymore after it has been set invisible and visible again through some other component in the form. Is that intended behavior (Wicket 7.8.0)? I'm assuming that some JavaScript is not re-rendered after visibility has been toggled or "onchange" not re-attached. But before I dig into it can someone comment? Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - Datatable per row basis
Hi. Is it possible, or do you have some pointers if it is possible to render row content different on the Wicket Kendo Datatable component? For example, say there is a column with command buttons. I'd like to disable/enable those on a per row basis depending on the row model. Regards, Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebSocket and timeout
Hi, On Sat, Sep 16, 2017 at 1:32 PM, Manfred Bergmann <mb@> wrote: > Found a different solution. > > Followed the advice here: > https://issues.apache.org/jira/browse/WICKET-5453 > > Where you can set the default idle timeout on the > WebSocketServerContainerInitializer. > This is a good start! But if there is a proxy involved then you will need to do the same there too. Better send heartbeat messages once in a while, e.g. every minute. OK. I'm not exactly certain how I would do that. Do you mean a timer on the server side which sends some message over the websocket, or some behavior, as suggested by Maxim? How do I handle that when the panel got disposed? Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebSocket and timeout
Found a different solution. Followed the advice here: https://issues.apache.org/jira/browse/WICKET-5453 Where you can set the default idle timeout on the WebSocketServerContainerInitializer. Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebSocket and timeout
Hi. I'm not exactly certain how that helps me, except that the not yet released version 7.8.1 fixes something regarding WebSockets. But I don't know if it's that. The thing is, that I have a one page application. Meaning the page itself doesn't ever refresh. Only panels are reloaded here and there via Ajax. One of those panels uses a WebSocket. The WebSocket times out even if I move away from this particular panel. After the WebSocket has timed out it's only to possible to really reload the page to re-activate it. So, preferably I'd like to WebSocket to not expire before the session expired. Manfred -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - How to programmatically select node from URL parameter
OK, many thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-How-to-programmatically-select-node-from-URL-parameter-tp4677457p4677459.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - How to programmatically select node from URL parameter
Hi. Any idea how that could be accomplished? It seems the tree nodes are actually not fully rendered yet in onInitialize/onConfigure. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-How-to-programmatically-select-node-from-URL-parameter-tp4677457.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment
I'll try that. Thanks guys. Have opened issue on GitHub. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ToolbarButton-renders-href-which-removes-existing-URL-fragment-tp4677304p4677312.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment
Martin Grigorov-4 wrote > If Wicket-JQuery-UI adds this "#" then I'd recommend to replace it with > href="javascript:;". Some prefer "javascript:void(0)" but this is a bit > longer. > "#" has such side effects. OK, how would I do that. Via AttributeModifier? Because it doesn't seem to be rendered during the component render phase. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ToolbarButton-renders-href-which-removes-existing-URL-fragment-tp4677304p4677308.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment
Hi. The DataTable component has Toolbar-/CommandButtons which seem to be rendered (by JavaScript) like this: Button name <#> The href="#" causes a problem because once the button is clicked it deletes the existing URL fragment which must be kept intact. What could be done to remove the href="#", since it seems to be rendered after onDomReady or so? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ToolbarButton-renders-href-which-removes-existing-URL-fragment-tp4677304.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicketstuff UrlFragment - modifying URL calls onParameterArrival
Hi. I'm using UrlFragment Wicketstuff project to manipulate the URL. When manipulating the URL via putParameter() call, etc. there is an immediate callback to the page which implements onParameterArrival() handler. Can this be avoided somehow? I'd just like to have this handler being called when someone enters an URL manually in the browser but not when manipulating the URL via code. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketstuff-UrlFragment-modifying-URL-calls-onParameterArrival-tp4677302.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: NullPointerException on submitting a form in a modal window
It it's that line, than only the modalWindow instance variable can be null. Can you confirm that by either adding a log line or debug into there. If it is indeed null something in the surrounding of the classes you show makes it null, or cleans it up. Some concurrency going on maybe? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677167.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NullPointerException on submitting a form in a modal window
Maybe not all of those classes are in separate files. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677164.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NullPointerException on submitting a form in a modal window
Hi. What's on line 32 of AddRemarkButton.java? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677162.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - DataTable selection
Hi Sebastien. Sebastien wrote >> where "data.id" is a valid property to the data of the row. > Actually, I think "id" is more valid. The path to by model data id is in second level. That's why "data.id". For the PropertyColumn/IdPropertyColumn that worked fine. Couldn't understand thus why the CommandButton wasn't able to pull that data. But you explanation makes sense. Sebastien wrote > So, in short: use "id" and an IdPropertyColumn. Yep, doing that, thanks. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-DataTable-selection-tp4677141p4677152.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - DataTable selection
Solved. Problem was access to the model data. Interestingly though that the PropertyColumn could access the data but the CommandButton not. Not sure about the internals but that's not a consistent behavior. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-DataTable-selection-tp4677141p4677148.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - AjaxDropDownList, onChange
Hi. I've tried to get the AjaxDropDownList under test. In a test I'm doing: val formTester = tester.newFormTester("form") formTester.select("cut:container:data.serviceType", ) tester.executeAjaxEvent(basePath+":data.serviceType", "change") but the onSelectionChanged is never triggered in a test. It works when starting the app in a browser. How can I make this testable? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-AjaxDropDownList-onChange-tp4677142.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - DataTable selection
Hi. Some questions regarding the Kendo UI DataTable. Is there a callback when a row has been clicked/selected? I've seen that there is not directly a selection callback. But a row can be selected and then a toolbar button "View" clicked. Now, I have tried that with: Toolbar button as: new ToolbarButton("view", Model.of("View"), "data.id"), and for options I have added: options.set("selectable", true) where "data.id" is a valid property to the data of the row. But the onClick event of the toolbar button doesn't transport the clicked row. The values parameter is empty. Am I missing something? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-DataTable-selection-tp4677141.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI ContextMenu (in TreeView?)
OK, I got that solved by creating the ContextMenu subclass as a Java class. Now back to the original question. So the context menu also works in the treeview. Now I'd like to get the node of the treeview where the right-click occured on. Looking at the Telerik sample this seems to be possible: http://docs.telerik.com/kendo-ui/controls/navigation/treeview/how-to/show-context-menu But I'm not certain how I would do that using the Wicket wrapper or behavior. Any hint there? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472p4676489.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI ContextMenu (in TreeView?)
Hi. It seems I found the problem. I'm developing with Scala (2.12.1) and that seems to be the problem in this particular case. Setting the option for the behavior: ends up as being rendered as a list: ["#menu-target"] instead of just "#menu-target". That seems to be because the Scala compiler binds to the variable argument list set() method in Options. Not yet sure how to work around that. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472p4676484.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI ContextMenu (in TreeView?)
Hi Sebastien. I'm a little bit lost. I've created a quickstart project but I can't reproduce the issue there. I keep looking. Thanks anyway, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472p4676482.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI ContextMenu (in TreeView?)
Hi. I'm trying to implement a context menu. First I tried directly on an AjaxTreeView. Since I couldn't get that to work (no menu on right-click) I tried to make it as simple as in the context menu sample, just a text field as "target". However I couldn't get that to work either. It works in the sample so I'm wondering what I'm doing wrong. How can this be further debugged? The rendered code looks actually good (as far as I can tell): This is the JavaScript part of the menu: And this the HTML part: Just nothing happens when doing the right-click on the text field. Any clues? And yeah, does this work on a TreeView? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI TreeView onSelect
Thanks, that worked. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-TreeView-onSelect-tp4676455p4676471.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI TreeView onSelect
Hi. How can I get the selected node in a AjaxTreeView? I see that it has a onSelect handler but it doesn't seem to be called when a node is selected in the view. Is there a way to enable this? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-TreeView-onSelect-tp4676455.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Drag & Drop in Kendo UI treeview
Hi. So, my next question. :) I've tried the following: - added option "dragAndDrop" to AjaxTreeView. This works correctly in the UI. But there are no events/callbacks to the Wicket code. - added DraggableBehavior to AjaxtreeView, plus implemented IDraggableListener. This gives me the events, dragging works, but the whole treeview is dragged, not a node. I assume the second is the right one. And I assume the DraggableBehavior should be added to the tree nodes but I couldn't see how that can be done to TreeNode. Any suggestions how this works? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Drag-Drop-in-Kendo-UI-treeview-tp4676272.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI AjaxtreeView testing for rendered nodes
Martin Grigorov-4 wrote > On Wed, Nov 23, 2016 at 10:49 AM, Manfred Bergmann < > mb@ > > > wrote: > >> An interesting thing is that when I tell the browser to show me the html >> source of the page (a page with only the AjaxTreeView). >> Then I just see this in the body: >> > >> > >> > > >> > >> > >> >> Even though I can see the tree nodes are displayed. >> >> When using the examine element function of the browser (Firefox) I >> suddenly >> see the tree nodes as > > list elements in the inspector. >> Can somebody explain what's happening there? >> > > This is how JavaScript applications work. > The server (Wicket in current case) generates part of the final HTML. > Once loaded in the browser (i.e. on domready) the JS takes over and > generates the rest. OK, yeah. That means it's practically not possible to unit-test the correct rendering? I could the use the static TreeView approach. But does it support lazy loading of tree node? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-AjaxtreeView-testing-for-rendered-nodes-tp4676242p4676256.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI AjaxtreeView testing for rendered nodes
An interesting thing is that when I tell the browser to show me the html source of the page (a page with only the AjaxTreeView). Then I just see this in the body: Even though I can see the tree nodes are displayed. When using the examine element function of the browser (Firefox) I suddenly see the tree nodes as list elements in the inspector. Can somebody explain what's happening there? Another question regarding drag & drop in the treeview. The Kendo UI page shows it's possible. How would I do that in Wicket? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-AjaxtreeView-testing-for-rendered-nodes-tp4676242p4676253.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI AjaxtreeView testing for rendered nodes
Hi. I'd like to unit-test if and which tree elements have rendered. How could I do that? It seems the rendered HTML only has the element of the tree view. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-AjaxtreeView-testing-for-rendered-nodes-tp4676242.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - treeview in borderlayout
Sebastien wrote > Then, all the Kendo UI examples I have seen initialize the page components > in the page constructor. > I am used to do this in the onInitialize method, because I thought that's > what it is for. > I assume it doesn't matter much technically, but why the constructor? > > From the #onInitialize javadoc: > This method is meant to be used as an alternative to initialize > components. > Usually the component's constructor is used for this task, but sometimes a > component cannot be initialized in isolation, it may need to access its > parent component or its markup in order to fully initialize I'm wondering if this has changed. Last time I worked a lot in Wicket was with version 1.5. Anyhow, thanks for clarifying. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-treeview-in-borderlayout-tp4676222p4676227.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Kendo UI - treeview in borderlayout
Thanks, adding the commercial resource solved the problem. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-treeview-in-borderlayout-tp4676222p4676226.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI - treeview in borderlayout
Hi. I'm currently getting into Kendo UI. I've setup a page with a basic BorderLayout, pretty much a master/detail view. In the master view I'd like to put an Kendo UI AjaxTreeView component. Because the tree can be quite deep and I want to lazily expand and load the tree as needed. I've added the tree component as a , as in the example. For the model I'm just using three 3 root nodes. Pretty straight forward. But for some reason it doesn't render correctly. The borderlayout get's screwed up where the horizontal areas are listed vertically. And there is a JavaScript error: main;jsessionid=1uynkuymym2pn1owov5b7xer07?0:21 Uncaught TypeError: jQuery(...).kendoTreeView is not a function at HTMLDocument. Any idea what the problem might be? Then, all the Kendo UI examples I have seen initialize the page components in the page constructor. I am used to do this in the onInitialize method, because I thought that's what it is for. I assume it doesn't matter much technically, but why the constructor? Cheers, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-treeview-in-borderlayout-tp4676222.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Kendo UI lock-in
Hi. After reviewing the options I think Wicket Kendo UI plus a Bootstrap layout is a good option. I'm not sure whether I should use Wicket Bootstrap if we just want the layout. I guess not. Regarding Kendo UI, I see there are a lot more widgets available where there is no Wicket integration, like all the charts. Is this something that is being worked on in the near future? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-lock-in-tp4675707.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Your opinion on ShieldUI
Sebastien wrote > Hi, > > On Oct 6, 2016 15:22, "Manfred Bergmann" < > mb@ > > wrote: >> >> martin-g wrote >> > On Oct 5, 2016 7:52 PM, "Manfred Bergmann" < >> >> > mb@ >> >> > > wrote: >> >> >> >> OK, thanks for you reply. >> >> >> >> What's the state of Wicket-Foundation? >> >> I mean, is it mature enough for a large enterprise application? >> > >> > Dunno. >> > Someone from the community contributed it a while back. >> > >> >> >> >> I assume that Wicket-JQuery-UI and Wicket-Bootstrap is? >> > >> > I'd say - yes! >> >> Bootstrap has a very nice baseCSS. Is this applied to the standard Wicket >> widgets automatically? >> >> If I want to use a widget from elsewhere, say jQuery or Kendo, does it > clash >> with it's CSS? > > All kendo css classes are "k-" prefixed, so I don't think there will be > conflicts. For jQuery ui, there are "ui-" predixed iirc. > > Just a warning however, both frameworks are big/complete frameworks, so > will end up with 2 big js and 2 big css... Alright, yep. Understood. When mixing Kendo UI and jQuery UI. So at best one should stick with one widget library. The Wicket-Bootstrap integration, could I only use the layout part? Like the Grid? Does this make sense to use the full Wicket-Bootstrap integration then, or would I be better off just putting in the required .js and .css. Sorry for those possibly dump questions. I'm more the functional UI and backend developer. This styling and layout should better be done by someone else. But I'd like to understand how it works. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Your-opinion-on-ShieldUI-tp4675649p4675687.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Your opinion on ShieldUI
martin-g wrote > On Oct 5, 2016 7:52 PM, "Manfred Bergmann" < > mb@ > > wrote: >> >> OK, thanks for you reply. >> >> What's the state of Wicket-Foundation? >> I mean, is it mature enough for a large enterprise application? > > Dunno. > Someone from the community contributed it a while back. > >> >> I assume that Wicket-JQuery-UI and Wicket-Bootstrap is? > > I'd say - yes! Bootstrap has a very nice baseCSS. Is this applied to the standard Wicket widgets automatically? If I want to use a widget from elsewhere, say jQuery or Kendo, does it clash with it's CSS? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Your-opinion-on-ShieldUI-tp4675649p4675685.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Your opinion on ShieldUI
Martin Grigorov-4 wrote > I don't have experience with the ShieldUI integration. >From the available widgets it seems impressive. http://www.shieldui.com/products/java-wicket I don't know how good this stuff really is. The GitHub page doesn't list many issues and there are only two maintainers. But that doesn't necessarily mean much. Anyone using this out there? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Your-opinion-on-ShieldUI-tp4675649p4675660.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Your opinion on ShieldUI
OK, thanks for you reply. What's the state of Wicket-Foundation? I mean, is it mature enough for a large enterprise application? I assume that Wicket-JQuery-UI and Wicket-Bootstrap is? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Your-opinion-on-ShieldUI-tp4675649p4675659.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lots of files in temp folder
Thanks for all your efforts. I think the problem was due to a missing session-timeout configuration. In my app Jetty is started programmatically, including the Wicket filter setup. However, since there is no web.xml there was no session-timeout config. I have added this now and things seem to be better now. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379p4673435.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lots of files in temp folder
I'm using the latest version of Jetty 6. Yeah, rather old, I know. Should be updated. You think it could be related to the Servlet engine? I'll see that I can make some time tomorrow for testing. Updating to Wicket 7 wouldn't be such a bad idea. In the ticket (WICKET-6083) you test against Wicket 7.2-SNAPSHOT. When is this due to arrive? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379p4673401.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lots of files in temp folder
There are a few empty "file-prefix..." files but the majority of files and data are in filestore folders. Some with tons of subfolders. The logout" button in the app calls Session.invalidate(). But I'm not certain many actually click this button. So I'm assuming that many sessions will just invalidate due to inactivity. Could it be a wrong invalidation time setting on my side? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379p4673394.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lots of files in temp folder
Hi. Yeah, the filestore. Hmm, there is no file-upload functionality in this Wicket app. I'm wondering why those file are created then? I just had a check. There were 8GB of data from those files. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379p4673388.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Lots of files in temp folder
Hi. I had a case where a customer had millions of file in Java tmp folder produced by Wicket. There are a lot of those folders: "org.apache.wicket.protocol.http.WicketServlet-128f3c8-filestore", etc. and "file-prefix59601103483491554.tmp". Most files are very small but the sheer number of them gave them a size of a couple of giga bytes. This is not actually a large application. It has two or three pages with components. The number of temp files probably has grown over a large period of time where the Wicket page was always open in a browser and got reloaded often. Are those files not removed from time to time, automatically? If not, how can I remove them programmatically? A, yeah. the Wicket version is 6.19.0. Upgrading to 6.21.0 shows the same behavior. Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: German umlauts in Wicket-Message Tag
Yep, right. Using special characters in keys is not a good idea and makes localisation harder. Fully sufficuient if you use umlauts on the value side. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/German-umlauts-in-Wicket-Message-Tag-tp3331297p3331642.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link inside feedback message
Check the API docs for Component. You'll find urlFor() methods that take a Page subclass and PareParameters. => urlFor(Class pageClass, PageParameters parameters) Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-inside-feedback-message-tp3043825p3045009.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketNewbee Unable to finde Component with ID
Manfred Bergmann wrote: > > The strange thing is that with navigation links in your rendered HTML > output do not include "wicket:id" attributes and are in fact no links > while the form and feedback components are rendered with "wicket:id" > attributes. > And that's the reason you are getting this error. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketNewbee-Unable-to-finde-Component-with-ID-tp3043334p3044886.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketNewbee Unable to finde Component with ID
The strange thing is that with navigation links in your rendered HTML output do not include "wicket:id" attributes and are in fact no links while the form and feedback components are rendered with "wicket:id" attributes. Have you added the href="#" to your links in the markup? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketNewbee-Unable-to-finde-Component-with-ID-tp3043334p3044885.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketNewbee Unable to finde Component with ID
Hi. Just make sure that the wicket:id component tree and sorting in the html page and the java class do match. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketNewbee-Unable-to-finde-Component-with-ID-tp3043334p3044488.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TinyMCE Editor with AJAX
It looks like as if the 'blur' event never is called. When changed to 'keyup' the event handler is called. Further RichTextField_instance doesn't seem to have a 'formElement' anymore. Therefore according to the TinyMCE APIs the underlying textarea can be retrieved via RichTextField_instance.getElement(). But the textarea has no method called 'onchange'. Anyone knows how to manually trigger the onchange event of the textarea? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TinyMCE-Editor-with-AJAX-tp1848394p2279678.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TinyMCE Editor with AJAX
Hello. I have tried your suggestion but it doesn't seem to solve the issue. I use a OnChangeAjaxBehavior instead of a AjaxFormComponentUpdatingBehavior as the OP. Any other ideas how to get Ajax onchange events back? Regards, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TinyMCE-Editor-with-AJAX-tp1848394p2279368.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CompoundPropertymodel loses object after form submit
Hi. Certainly I can. Here is the main Panel for the case where the CompoundPropertyModel loses the object. The WebPage classes basically only contain one of those main panels depending of the PageParameters which are passed into the panel as converted to a Scala immutable Map instance. ParameterPanel is just a plain subclass of Panel which can hold a set of parameters. Ah, yeah, and all the code is Scala... - class WeekPlanEditPanel(id: String, params: Map[String, Any]) extends ParameterPanel(id, params) { private val log: Logger = LoggerFactory.getLogger(this.getClass) private val wpService = ServiceLocator.getServiceInstance[WeekPlanService] private val weekPlanId = getIdParam private val wp = wpService.findById(weekPlanId).get private val formModel = new CompoundPropertyModel[WeekPlan](wp) private val feedback = new FeedbackPanel("feedback").setVisible(false) private val form = new Form[WeekPlan]("editForm", formModel) { override def onError: Unit = feedback.setVisible(true) } form.add(new WeekPlanDataInputPanel("dataPanel", formModel, true)) form.add(new Button("saveButton") { override def onSubmit: Unit = { try { wpService.update(wp) info("Speichern erfolgreich!") formModel.setObject(wp)// !!! explicit set of object necessary } catch { case e: Exception => log.error("Error on saving weekplan entry!", e) error("Fehler beim Speichern des Eintrages: " + e.getMessage) } feedback.setVisible(true) } }) form.add(new Button("deleteButton") { override def onSubmit: Unit = { try { wpService.delete(wp) setResponsePage(classOf[WeekPlanPage], new PageParameters("action=list")) } catch { case e: Exception => log.error("Error on deleting weekplan entry!", e) error("Fehler beim Löschen des Eintrages: " + e.getMessage) feedback.setVisible(true) } } }) add(feedback) add(form) } - And the WeekPlanDataInputPanel for sake of completeness. - @EditorOnly class WeekPlanDataInputPanel(id: String, model: IModel[WeekPlan], isEdit: Boolean) extends Panel(id) { private val weekPlan = model.getObject add(new AdminAdditionsInputPanel("adminAdditions", model)) add(new Label("id")) add(new Label("creator")) add(DateLabel.forDatePattern("dateCreated", "dd.MM. hh:mm")) add(new WeekTargetDatePanel("targetDate", model, isEdit)) } - When submitting the labels in the last Panel class are displayed empty on the page reload because model object is null. weekPlan itself however is still a valid instance. When setting the model object in the onSubmit handler (as in the former Panel class) it works. Thanks, Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertymodel-loses-object-after-form-submit-tp2248100p2248412.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-contrib-javaee: @EJB injection - injecting always the same instance regardless of session
Hi. AFAIK a Wicket user session and a EJB Session are separated. Meaning that the EJB container decides whether a new EJB instance needs to be created or not. However even if multiple Wicket sessions get the same EJB instance the EJB container will still ensure proper synchronisation and transaction management. Manfred t3_chris wrote: > > Hi! > > I've just started using the @EJB injection annotation from > wicket-contrib-javaee. > I use it to inject a Stateful Session Bean to keep track of my user > session and do some > stuff like authorization. > > I thought the @EJB annotation keeps track of my sessions and would > inject a unique instance of > the Stateful Session Bean for each of my Wicket session. > > But, it injects always the same Stateful Session Bean instance > completely ignoring my Wicket sessions. In this case it is useless to > keep track of my users. > > Am i doing anything wrong or is this the intended behaviour? > > Would it be better to get the Stateful Session Bean by a lookup call and > then store it in the > Wicket session? > > Thanks for your help! > > Best Regards, > christian > > -- > Christian Reiter|||c.rei...@gmx.net > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/wicket-contrib-javaee%3A-%40EJB-injection---injecting-always-the-same-instance-regardless-of-session-tp27943127p27947476.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page reload after submit action
Hello Vinnet. Thank you. Upgrading to Wicket 1.4.7 fixed the problem. Cheers, Manfred vineet semwal wrote: > > Hi, > It appears you are on 1.4.6,upgrade to 1.4.7 and see if the problem > disappears. > > > On Sun, Mar 14, 2010 at 5:15 AM, Bergmann Manfred > wrote: > >> Hi there. >> >> I have the following problem with reloading the same page that is >> currently >> loaded. >> I'm working on a blog application. Normally the URL in the browser for a >> specific blog entry is like this: >> http:///blog/id/ >> where /blog is mounted as bookmarkable in Application to Blog WebPage >> subclass which has a constructor with PageParameters which accepts >> "id=" which then is translated to /blog/id/ by >> Wicket. >> >> Now there is an add comment panel on the page that, when a user submits >> it, >> should load the Blog page for the same . >> In onSubmit I tried with: setResponsePage(Blog.class, new >> PageParameters("id="+) which ends up that a page with this >> URL >> is loaded /blog/id/blog/id/ which of course doesn't work. >> Reloading the same page using setResponsePage(getWebPage) doesn't work >> either. >> >> I'm probably missing the obvious but I'd appreciate if someone could help >> me here. >> >> >> Manfred >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > regards, > Vineet Semwal > > -- View this message in context: http://old.nabble.com/Page-reload-after-submit-action-tp27891746p27894271.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org