Re: Bootstrap Confirmation [wicket-bootstrap-extensions 3.0.0-M10] + AjaxCheckBox
ntainer:actions:5:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-5-action-actionForm-actionType=1","m":"POST","c":"actionTypeb9","e":"change"});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-6-action-actionForm-formSubmit=1","m":"POST","c":"formSubmitbb","f":"actionFormba","sc":"actionsContainer:actions:6:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-6-action-actionForm-actionType=1","m":"POST","c":"actionTypebc","e":"change"});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-7-action-actionForm-formSubmit=1","m":"POST","c":"formSubmitbe","f":"actionFormbd","sc":"actionsContainer:actions:7:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-7-action-actionForm-actionType=1","m":"POST","c":"actionTypebf","e":"change"});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-8-action-actionForm-formSubmit=1","m":"POST","c":"formSubmitc1","f":"actionFormc0","sc":"actionsContainer:actions:8:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-8-action-actionForm-actionType=1","m":"POST","c":"actionTypec2","e":"change"});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-9-action-actionForm-formSubmit=1","m":"POST","c":"formSubmitc4","f":"actionFormc3","sc":"actionsContainer:actions:9:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-9-action-actionForm-actionType=1","m":"POST","c":"actionTypec5","e":"change"});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-10-action-actionForm-formSubmit=1","m":"POST","c":"formSubmitc7","f":"actionFormc6","sc":"actionsContainer:actions:10:action:actionForm:formSubmit","e":"click","pd":true});})();(function(){Wicket.Ajax.ajax({"u":"./show?3-1.0-outerForm-actionsContainer-actions-10-action-actionForm-actionType=1","m":"POST","c":"actionTypec8","e":"change"});})(); If I somehow get this working, I think I can figure out the rest. -Regards Nino On Tue, May 7, 2019 at 12:46 PM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Does not stop Wicket event (the invocation of the click event on > ajaxcheckbox) from happening, any idea on howto stop it when the user > selects cancel? > > updateAjaxAttributes in AjaxCheckBox does support a precondition via > ajaxCallListener but that needs to return true of false. But I cannot see > howto use it via Bootstrap confirmation.. > > > Does anyone have an idea howto solve this problem? > > > > Link to bootstrap confirmation: > > https://bootstrap-confirmation.js.org/ > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Bootstrap Confirmation [wicket-bootstrap-extensions 3.0.0-M10] + AjaxCheckBox
Does not stop Wicket event (the invocation of the click event on ajaxcheckbox) from happening, any idea on howto stop it when the user selects cancel? updateAjaxAttributes in AjaxCheckBox does support a precondition via ajaxCallListener but that needs to return true of false. But I cannot see howto use it via Bootstrap confirmation.. Does anyone have an idea howto solve this problem? Link to bootstrap confirmation: https://bootstrap-confirmation.js.org/ -- Best regards / Med venlig hilsen Nino Martinez
Re: thanks for wonderful work with Wicket 8.
Sounds great.. For minimal effort, I think the notify plugin would fit very well here: https://github.com/l0rdn1kk0n/wicket-bootstrap Under extensions, but it's not my repo.. And yes wicket are wonderful, even after all these years :) And I've been using it on, Guice, OSGI and now with spring boot :) On Fri, May 3, 2019 at 8:45 AM Ernesto Reinaldo Barreiro wrote: > Hi, > > On Fri, May 3, 2019 at 8:39 AM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > I could use the > > > > Or a wicket wrapper for > > > http://bootstrap-notify.remabledesigns.com/. > > > > I can try to convince my manager to open-source it. We are using it all > over in our application in combination with wicket AJAX/Web sockets. Also > > >- some home grown bootstrap modal wizard >- wicket wrapper fro *https://github.com/fronteed/iCheck ><https://github.com/fronteed/iCheck>* > > *And maybe some other home ground components. But this doesn't depend on > me.* > > -- > Regards - Ernesto Reinaldo Barreiro > -- Best regards / Med venlig hilsen Nino Martinez
Re: thanks for wonderful work with Wicket 8.
I could use the Or a wicket wrapper for > http://bootstrap-notify.remabledesigns.com/. :) On Thu, Apr 11, 2019 at 10:58 AM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi Andrea, > > > > PS: we are voting for the first milestone of Wicket 9 to be released. If > > you have the chance to play with it we are looking forward for your > > feedback :-) > > > :-( Unfortunately My customer has a very tight schedule for delivering the > application I just migrated. Even jumping to Wicket 8.x was something we > had to consider very carefully. All I can offer is if I start some side > personal project, which sometimes I do, try to use Wicket 9.x. Or help > migrating some of the satellite projects, like Wicket bootstrap, to wish I > have contributed from time to time, to Wicket 9.x. > > Also our project have some home made components and wrappers around > JavaScript libraries that I might try to convince my customer to "open > source". E.g. I have rolled out a LESS resource class that on the spot > compiles LESS into CSS, if you modify your less this class will discard > cached less and recompiles it, when I created this component I was looking > around and found nothing similar. Or a wicket wrapper for > http://bootstrap-notify.remabledesigns.com/. And some other Wicket things > that might benefit community. But this decisions do not depend on me, > > -- > Regards - Ernesto Reinaldo Barreiro > -- Best regards / Med venlig hilsen Nino Martinez
Automatic CSS marking of invalid form inputs / labels
So Ive been using this: https://cwiki.apache.org/confluence/display/WICKET/Automatic+styling+of+form+errors For a while, but it seems to be doing something wrong. IT traverses all the form components on the page and not only the ones for the submitted form (and adding them again ).. Have anybody done a better / more optimised version? -- Best regards / Med venlig hilsen Nino Martinez
Re: [8.3] Nested Forms within a table?
until next version comes out, this lump of code seems to be working: Form actionForm=new Form<>("actionForm"){ @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.setName("tr"); } } ; On Wed, Apr 24, 2019 at 10:28 AM Sven Meier wrote: > > > Hi Nino, > > > > I've taken the liberty of improving this with WICKET-6658: > > No need to let Form enforce a -tag when it's changed into a div > afterwards (in case of nested forms). > > > > Have fun > > Sven > > > > > > > > > > > > > > > > On 24.04.2019 at 08:45,wrote: > > > > > > normally I would agree.. But when our designer gives us the html, and > there are tables in it we need to change that stuff.. I do not like the > idea that the web framework forces you to change markup so that it can > work.. One thing are to teach the devs that there are some quirks with the > web framework (thats completely expected). But to have to teach the > designer about a web framework so they can avoid the quirky parts seems > wrong. Its not part of Wickets statement anyhow. > Just Java & HTML > > > Leverage what you know about Java or your favourite HTML editor to > write > Wicket applications. With pure Java code and HTML markup Wicket > is the > go-to web framework for purists. > /rant off :) On Wed, Apr > 24, 2019 at 8:24 AM Maxim Solodovnik wrote: > if something "look like a > duck, walk like a duck and sound like a duck" - > it is duck :) > CSS > table are tables, but with no HTML '' tags :) > > On Wed, 24 Apr 2019 > at 13:22, nino martinez wael < > nino.martinez. > w...@gmail.com> wrote: > > > if its CSS its not a table right? > > > > > > > > > On Wed, Apr 24, 2019 at 7:25 AM Maxim > Solodovnik > > wrote: > > > > > Actually you can :) > > > > But you need CSS tables for this :) > > > > > > On Wed, 24 > Apr 2019 at 11:53, nino martinez wael < > > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > I agree > with Maxim, but I do not know the side effects, im going to > try > > > > > it.. As it is now (out of the box), we cannot have nested forms in > > > tables > > > > (for example on form per ) without breaking > html. > > > > > > > > -Nino > > > > > > > > > On Wed, Apr 24, 2019 at 3:24 AM Maxim Solodovnik < > > solomax...@gmail.com > > > > > > > wrote: > > > > > > > > > > I would say we can create overridable method so users > can specify > > which > > > > tag > > > > > to use > > > > > > it will help with `` > > > > > > > > > > > On Wed, 24 Apr 2019 at 01:39, Sven Meier wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > I > think we could improve nested Forms so that only > > > > tags > are > > > > > > turned into a > > > > , but anything else stays as it is. > > > > > > > > > > > > > WDYT? > > > > > > Sven > > > > > > > > > > > > > Am 23.04.19 um 10:01 schrieb nino martinez wael: > > > > > > > > Hi > > > > > > > > > > > > > > > When nesting forms, the form tag are changed to an div and it > > is > > > hard > > > > > > coded: > > > > > > > > org/apache/wicket/markup/html/form/Form.java:1597 > > > > > > > > ... > > > > > > > > > > > > > > > tag.setName("div"); > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > If only I could > change the tag to be tr, it would produce valid > > > html. > > > > > > Are > > > > > > > it deliberate to be hardcoded? > > > > > > > > > > > > > > > > > > > > > > > - > > > > > > > To > unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > WBR > > > > > Maxim aka solomax > > > > > > > > > > > > > > > > > > -- > > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > > -- > > > WBR > > > > Maxim aka solomax > > > > > > > > > -- > > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen > Nino Martinez > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: [8.3] Nested Forms within a table?
normally I would agree.. But when our designer gives us the html, and there are tables in it we need to change that stuff.. I do not like the idea that the web framework forces you to change markup so that it can work.. One thing are to teach the devs that there are some quirks with the web framework (thats completely expected). But to have to teach the designer about a web framework so they can avoid the quirky parts seems wrong. Its not part of Wickets statement anyhow. > Just Java & HTML > > Leverage what you know about Java or your favourite HTML editor to write > Wicket applications. With pure Java code and HTML markup Wicket is the > go-to web framework for purists. > /rant off :) On Wed, Apr 24, 2019 at 8:24 AM Maxim Solodovnik wrote: > if something "look like a duck, walk like a duck and sound like a duck" - > it is duck :) > CSS table are tables, but with no HTML '' tags :) > > On Wed, 24 Apr 2019 at 13:22, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > if its CSS its not a table right? > > > > > > > > On Wed, Apr 24, 2019 at 7:25 AM Maxim Solodovnik > > wrote: > > > > > Actually you can :) > > > But you need CSS tables for this :) > > > > > > On Wed, 24 Apr 2019 at 11:53, nino martinez wael < > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > I agree with Maxim, but I do not know the side effects, im going to > try > > > > it.. As it is now (out of the box), we cannot have nested forms in > > tables > > > > (for example on form per ) without breaking html. > > > > > > > > -Nino > > > > > > > > On Wed, Apr 24, 2019 at 3:24 AM Maxim Solodovnik < > solomax...@gmail.com > > > > > > > wrote: > > > > > > > > > I would say we can create overridable method so users can specify > > which > > > > tag > > > > > to use > > > > > it will help with `` > > > > > > > > > > On Wed, 24 Apr 2019 at 01:39, Sven Meier wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > I think we could improve nested Forms so that only tags > are > > > > > > turned into a , but anything else stays as it is. > > > > > > > > > > > > WDYT? > > > > > > Sven > > > > > > > > > > > > Am 23.04.19 um 10:01 schrieb nino martinez wael: > > > > > > > Hi > > > > > > > > > > > > > > When nesting forms, the form tag are changed to an div and it > is > > > hard > > > > > > coded: > > > > > > > org/apache/wicket/markup/html/form/Form.java:1597 > > > > > > > ... > > > > > > > > > > > > > > tag.setName("div"); > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > If only I could change the tag to be tr, it would produce valid > > > html. > > > > > Are > > > > > > > it deliberate to be hardcoded? > > > > > > > > > > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > > > > > > > > > > -- > > > > > WBR > > > > > Maxim aka solomax > > > > > > > > > > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen Nino Martinez
Re: [8.3] Nested Forms within a table?
if its CSS its not a table right? On Wed, Apr 24, 2019 at 7:25 AM Maxim Solodovnik wrote: > Actually you can :) > But you need CSS tables for this :) > > On Wed, 24 Apr 2019 at 11:53, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > I agree with Maxim, but I do not know the side effects, im going to try > > it.. As it is now (out of the box), we cannot have nested forms in tables > > (for example on form per ) without breaking html. > > > > -Nino > > > > On Wed, Apr 24, 2019 at 3:24 AM Maxim Solodovnik > > wrote: > > > > > I would say we can create overridable method so users can specify which > > tag > > > to use > > > it will help with `` > > > > > > On Wed, 24 Apr 2019 at 01:39, Sven Meier wrote: > > > > > > > Hi, > > > > > > > > I think we could improve nested Forms so that only tags are > > > > turned into a , but anything else stays as it is. > > > > > > > > WDYT? > > > > Sven > > > > > > > > Am 23.04.19 um 10:01 schrieb nino martinez wael: > > > > > Hi > > > > > > > > > > When nesting forms, the form tag are changed to an div and it is > hard > > > > coded: > > > > > org/apache/wicket/markup/html/form/Form.java:1597 > > > > > ... > > > > > > > > > > tag.setName("div"); > > > > > > > > > > ... > > > > > > > > > > If only I could change the tag to be tr, it would produce valid > html. > > > Are > > > > > it deliberate to be hardcoded? > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen Nino Martinez
Re: [8.3] Nested Forms within a table?
I agree with Maxim, but I do not know the side effects, im going to try it.. As it is now (out of the box), we cannot have nested forms in tables (for example on form per ) without breaking html. -Nino On Wed, Apr 24, 2019 at 3:24 AM Maxim Solodovnik wrote: > I would say we can create overridable method so users can specify which tag > to use > it will help with `` > > On Wed, 24 Apr 2019 at 01:39, Sven Meier wrote: > > > Hi, > > > > I think we could improve nested Forms so that only tags are > > turned into a , but anything else stays as it is. > > > > WDYT? > > Sven > > > > Am 23.04.19 um 10:01 schrieb nino martinez wael: > > > Hi > > > > > > When nesting forms, the form tag are changed to an div and it is hard > > coded: > > > org/apache/wicket/markup/html/form/Form.java:1597 > > > ... > > > > > > tag.setName("div"); > > > > > > ... > > > > > > If only I could change the tag to be tr, it would produce valid html. > Are > > > it deliberate to be hardcoded? > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen Nino Martinez
[8.3] Nested Forms within a table?
Hi When nesting forms, the form tag are changed to an div and it is hard coded: org/apache/wicket/markup/html/form/Form.java:1597 ... tag.setName("div"); ... If only I could change the tag to be tr, it would produce valid html. Are it deliberate to be hardcoded? -- Best regards / Med venlig hilsen Nino Martinez
Re: [8.x] form Input HTML5 form attribute?
Yes I am a aware, but AFAIK wicket does not support controls / input fields adjacent to forms related by the form attribute on the control. our markup looks something like this: ... wrote: > The reference to the final spec: > > https://www.w3.org/TR/html5/sec-forms.html#association-of-controls-and-forms > > Actually wicket do support nested forms for many years > > On Wed, 10 Apr 2019 at 16:05, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi > > > > I am going through our designers html drafts and can see they are wanting > > to use a hierarchical separated form from inputs.. > > > > Apparently its part of the HTML5 specification, is this something wicket > > supports? > > > > > > > https://www.w3.org/TR/2011/WD-html5-20110525/association-of-controls-and-forms.html#attr-fae-form > > > > > > Their reason for this, I think are to use tables for organizing tabular > > editable data. But as a form cannot be hierarchical inside a tr they just > > store it besides it in a td..And connect the inputs via the form > attribute. > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen Nino Martinez
[8.x] form Input HTML5 form attribute?
Hi I am going through our designers html drafts and can see they are wanting to use a hierarchical separated form from inputs.. Apparently its part of the HTML5 specification, is this something wicket supports? https://www.w3.org/TR/2011/WD-html5-20110525/association-of-controls-and-forms.html#attr-fae-form Their reason for this, I think are to use tables for organizing tabular editable data. But as a form cannot be hierarchical inside a tr they just store it besides it in a td..And connect the inputs via the form attribute. -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Have you gone through this : https://ci.apache.org/projects/wicket/guide/8.x/single.html#_extending_the_default_lookup_algorithm (which seems you have, please show a little code) And could you tell med howto make Spring redirect to my wicket login page for all urls except /actuator (which is handled by basic auth)? Also every wicket page which requires authentication should redirect to /login page if you either lack permissions or arent logged in.. -Nino On Fri, Jan 25, 2019 at 8:18 AM Zbynek Vavros wrote: > Took me some time to understand as well so I'm glad share :) > > I'm in process of tuning this setup so just out of curiosity how did you > set up the Wicket properties file(s)? I don't like the idea to having > properties in src/main/java and looking for proper way to load them from > custom location like > src/main/resources/properties/MyWicketApplication.properties. > > In out previous project we used I18n.init() method but I'm thinking more > Wicket-y way, > maybe using BundleStringResourceLoader ? But so far no luck making that > work... > > Zbynek > > On Fri, Jan 25, 2019 at 6:34 AM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Yes this is exactly how I've done it :) Thanks for taking time to help... > > > > @WicketSignInPage > > @MountPath("page/login") > > public class LoginPage extends BasePage { > > > > public LoginPage(PageParameters parameters) { > > super(parameters); > > > > if (((AbstractAuthenticatedWebSession) getSession()).isSignedIn()) { > > continueToOriginalDestination(); > > } > > add(new LoginForm("loginForm")); > > } > > > > private class LoginForm extends StatelessForm { > > > > private String username; > > private String password; > > > > public LoginForm(String id) { > > super(id); > > setModel(new CompoundPropertyModel<>(this)); > > add(new FeedbackPanel("feedback")); > > add(new RequiredTextField("username")); > > add(new PasswordTextField("password")); > > } > > > > @Override > > protected void onSubmit() { > > AuthenticatedWebSession session = AuthenticatedWebSession.get(); > > if (session.signIn(username, password)) { > > setResponsePage(HomePage.class); > > } else { > > error("Login failed"); > > } > > } > > } > > } > > > > > > On Thu, Jan 24, 2019 at 4:17 PM Zbynek Vavros > > wrote: > > > > > Is seems you have mixed my code with your code somehow. > > > You must configure formLogin() and specify loginPage() pointing to your > > > Wicket login page (maybe using @MountPath?). > > > The .loginProcessingUrl() points to "/fake-url" because the > > authentication > > > itself is called from Wicket login page > > > via AuthenticatedWebSession.get().signIn(). Or do you use other > mechanism > > > in your Wicket login page? > > > > > > Zbynek > > > > > > On Thu, Jan 24, 2019 at 4:13 PM nino martinez wael < > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > It sort of works, If I go to the actuator I get the http basic auth, > > if I > > > > on the same session goto my pages.. I get an "ugly" access denied > page > > > and > > > > not the configured wicket login page. So it sort of works.. > > > > > > > > If I just goto localhost:8080/ I get an default spring login page not > > the > > > > wicket one.. Upon succesfull login it forwards me to the wicket login > > > page, > > > > where I can login again and then get to the real application.. > > > > > > > > Below my current code: > > > > > > > > > > > > package dk.netdesign.ccadmin.frontend.security; > > > > > > > > import org.springframework.context.annotation.Bean; > > > > import org.springframework.context.annotation.Configuration; > > > > import org.springframework.core.annotation.Order; > > > > import > > org.springframework.security.authentication.AuthenticationManager; > > > > import > > > > > > > > > > > > > > org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; > > > > import > > > > > > org.springframework.security.config.annotation.web.builders.HttpSecurity; > > > > import > > > > > > > > > > > > > > org.springframework.security.con
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Yes this is exactly how I've done it :) Thanks for taking time to help... @WicketSignInPage @MountPath("page/login") public class LoginPage extends BasePage { public LoginPage(PageParameters parameters) { super(parameters); if (((AbstractAuthenticatedWebSession) getSession()).isSignedIn()) { continueToOriginalDestination(); } add(new LoginForm("loginForm")); } private class LoginForm extends StatelessForm { private String username; private String password; public LoginForm(String id) { super(id); setModel(new CompoundPropertyModel<>(this)); add(new FeedbackPanel("feedback")); add(new RequiredTextField("username")); add(new PasswordTextField("password")); } @Override protected void onSubmit() { AuthenticatedWebSession session = AuthenticatedWebSession.get(); if (session.signIn(username, password)) { setResponsePage(HomePage.class); } else { error("Login failed"); } } } } On Thu, Jan 24, 2019 at 4:17 PM Zbynek Vavros wrote: > Is seems you have mixed my code with your code somehow. > You must configure formLogin() and specify loginPage() pointing to your > Wicket login page (maybe using @MountPath?). > The .loginProcessingUrl() points to "/fake-url" because the authentication > itself is called from Wicket login page > via AuthenticatedWebSession.get().signIn(). Or do you use other mechanism > in your Wicket login page? > > Zbynek > > On Thu, Jan 24, 2019 at 4:13 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > It sort of works, If I go to the actuator I get the http basic auth, if I > > on the same session goto my pages.. I get an "ugly" access denied page > and > > not the configured wicket login page. So it sort of works.. > > > > If I just goto localhost:8080/ I get an default spring login page not the > > wicket one.. Upon succesfull login it forwards me to the wicket login > page, > > where I can login again and then get to the real application.. > > > > Below my current code: > > > > > > package dk.netdesign.ccadmin.frontend.security; > > > > import org.springframework.context.annotation.Bean; > > import org.springframework.context.annotation.Configuration; > > import org.springframework.core.annotation.Order; > > import org.springframework.security.authentication.AuthenticationManager; > > import > > > > > org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; > > import > > org.springframework.security.config.annotation.web.builders.HttpSecurity; > > import > > > > > org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; > > import org.springframework.security.config.http.SessionCreationPolicy; > > import org.springframework.security.core.Authentication; > > import org.springframework.security.core.context.SecurityContextHolder; > > import org.springframework.security.core.userdetails.User; > > import org.springframework.security.core.userdetails.UserDetailsService; > > import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; > > import > > org.springframework.security.provisioning.InMemoryUserDetailsManager; > > import org.springframework.stereotype.Component; > > > > @Configuration > > public class WicketWebSecurityAdapterConfig extends > > WebSecurityConfigurerAdapter { > > > > > > @Configuration > > @Order(1) > > public static class RestSecurityConfig extends > > WebSecurityConfigurerAdapter { > > > > @Override > > protected void configure(HttpSecurity http) throws Exception { > > > > > > > > > http.antMatcher("/actuator/**").authorizeRequests().anyRequest().hasRole("ACTUATOR") > > .and().csrf().disable() > > > > > > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > > .and().httpBasic(); > > } > > } > > > > @Configuration > > @Order(2) > > public static class WicketSecurityConfig extends > > WebSecurityConfigurerAdapter { > > @Override > > protected void configure(HttpSecurity http) throws Exception { > > http.antMatcher("/page/**").authorizeRequests() > > .antMatchers("/page/login**").permitAll() > > .antMatchers("/page/**").hasAnyAuthority("USER", > > "ADMIN") > > > > > > > .and().formLogin().loginPage(&
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
It sort of works, If I go to the actuator I get the http basic auth, if I on the same session goto my pages.. I get an "ugly" access denied page and not the configured wicket login page. So it sort of works.. If I just goto localhost:8080/ I get an default spring login page not the wicket one.. Upon succesfull login it forwards me to the wicket login page, where I can login again and then get to the real application.. Below my current code: package dk.netdesign.ccadmin.frontend.security; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.provisioning.InMemoryUserDetailsManager; import org.springframework.stereotype.Component; @Configuration public class WicketWebSecurityAdapterConfig extends WebSecurityConfigurerAdapter { @Configuration @Order(1) public static class RestSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.antMatcher("/actuator/**").authorizeRequests().anyRequest().hasRole("ACTUATOR") .and().csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and().httpBasic(); } } @Configuration @Order(2) public static class WicketSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.antMatcher("/page/**").authorizeRequests() .antMatchers("/page/login**").permitAll() .antMatchers("/page/**").hasAnyAuthority("USER", "ADMIN") .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") .and().csrf().disable(); } } @Bean public static BCryptPasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Bean(name = "authenticationManager") @Override public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } public interface IAuthenticationFacade { Authentication getAuthentication(); } @Component public class AuthenticationFacade implements IAuthenticationFacade { @Override public Authentication getAuthentication() { return SecurityContextHolder.getContext().getAuthentication(); } } @Bean public UserDetailsService userDetailsService() { InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager(); manager.createUser( User.withUsername("admin") .password(passwordEncoder().encode("admin")).authorities("USER", "ADMIN") .build()); manager.createUser( User.withUsername("actuator") .password(passwordEncoder().encode("actuator")).roles("ACTUATOR") .build()); return manager; } } On Thu, Jan 24, 2019 at 3:19 PM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Thanks will try it:) > > On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros > wrote: > >> In my case it works something like this: >> >> @Configuration >> @EnableWebSecurity >> public class SecurityConfiguration { >> >> @Configuration >> @Order(1) >> public static class RestSecurityConfig extends >> WebSecurityConfigurerAdapter { >> >> .. user details service, auth providers etc >> >> @Override >> protected void configure(HttpSecurity http) throws Exception { >> >> >> http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() >> .and().csrf().disable() >> >> >> .sessionMan
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Thanks will try it:) On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros wrote: > In my case it works something like this: > > @Configuration > @EnableWebSecurity > public class SecurityConfiguration { > > @Configuration > @Order(1) > public static class RestSecurityConfig extends > WebSecurityConfigurerAdapter { > > .. user details service, auth providers etc > > @Override > protected void configure(HttpSecurity http) throws Exception { > > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > .and().csrf().disable() > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > .and().httpBasic(); > } > } > > @Configuration > @Order(2) > public static class WicketSecurityConfig extends > WebSecurityConfigurerAdapter { > > .. user details service, auth providers etc > > @Override > protected void configure(AuthenticationManagerBuilder auth) throws > Exception { > auth.authenticationProvider(wicketAuthenticationProvider); > } > > @Override > protected void configure(HttpSecurity http) throws Exception { > http.antMatcher("/page/**").authorizeRequests() > .antMatchers("/page/login**").permitAll() > .antMatchers("/page/**").hasRole("ROLE") > > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > .and().csrf().disable(); > } > > @Override > @Bean(name = "authenticationManager") > public AuthenticationManager authenticationManagerBean() throws > Exception { > return super.authenticationManagerBean(); > } > } > } > > The RestSecurityConfigwould be what you would do for actuators, for me > thats the REST API. > Not the order of "antMatcher", "authorizeRequests" and " antMatchers". > > Zbynek > > On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > do you have an example? OR is it just to cut them into two like: > > WebSecurityConfigurerAdapter A: > > > > > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > WebSecurityConfigurerAdapter B: > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > > > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros > > wrote: > > > > > Hi, > > > > > > I did similar thing, the trick here is to use two > > > WebSecurityConfigurerAdaptes. > > > > > > Zbynek > > > > > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > Hope its okay to use the wicket user mailing list for this:) > > > > > > > > First of all thanks to MarcGiffing for making the project. But I > cannot > > > get > > > > actuator endpoints to work with spring security and wicket spring > > boot.. > > > > I've tried a lot of things.. > > > > > > > > IN my WebSecurityConfigurerAdapter: > > > > > > > > http > > > > > > > > > > > > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > > > > > http > > > > .csrf().disable() > > > > .authorizeRequests().anyRequest().permitAll() > > > > .and() > > > > .logout() > > > > .permitAll(); > > > > http.headers().frameOptions().disable(); > > > > > > > > But that just disables actuator and messes with the Wicket side of > the > > > > security.. Any one have some clues= > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
do you have an example? OR is it just to cut them into two like: WebSecurityConfigurerAdapter A: http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); WebSecurityConfigurerAdapter B: http .csrf().disable() .authorizeRequests().anyRequest().permitAll() .and() .logout() .permitAll(); http.headers().frameOptions().disable(); On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros wrote: > Hi, > > I did similar thing, the trick here is to use two > WebSecurityConfigurerAdaptes. > > Zbynek > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hope its okay to use the wicket user mailing list for this:) > > > > First of all thanks to MarcGiffing for making the project. But I cannot > get > > actuator endpoints to work with spring security and wicket spring boot.. > > I've tried a lot of things.. > > > > IN my WebSecurityConfigurerAdapter: > > > > http > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > But that just disables actuator and messes with the Wicket side of the > > security.. Any one have some clues= > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Already done that.. Thanks for the idea.. On my webservice project I am doing this: http .authorizeRequests() .antMatchers("/services/**").hasRole("USER").and().httpBasic().and(). csrf().disable(); http .authorizeRequests() .antMatchers("/actuator/**").hasRole("ACTUATOR").and().httpBasic().and(). csrf().disable(); And its working fine, I am wondering if its because my mountpoints for wicket all are mapped to root like /home /login .. Which could conflict with /actuator? On Thu, Jan 24, 2019 at 3:01 PM Andrea Del Bene wrote: > I had a problem with Spring Boot 2 and actuator as many of them are > disabled by default in the new version. I don't know if this is the case > for you, but I would try enabling all of them via config file. For example > with yml is something like: > > management: > endpoints: > web: > exposure: > include: "*" > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hope its okay to use the wicket user mailing list for this:) > > > > First of all thanks to MarcGiffing for making the project. But I cannot > get > > actuator endpoints to work with spring security and wicket spring boot.. > > I've tried a lot of things.. > > > > IN my WebSecurityConfigurerAdapter: > > > > http > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > But that just disables actuator and messes with the Wicket side of the > > security.. Any one have some clues= > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > Andrea Del Bene. > Apache Wicket committer. > -- Best regards / Med venlig hilsen Nino Martinez
Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Hope its okay to use the wicket user mailing list for this:) First of all thanks to MarcGiffing for making the project. But I cannot get actuator endpoints to work with spring security and wicket spring boot.. I've tried a lot of things.. IN my WebSecurityConfigurerAdapter: http .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); http .csrf().disable() .authorizeRequests().anyRequest().permitAll() .and() .logout() .permitAll(); http.headers().frameOptions().disable(); But that just disables actuator and messes with the Wicket side of the security.. Any one have some clues= -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 8.1 + PAX Wicket 5 ConcurrentModificationException
Hi again, I've checked our own code again.. And on our team decided to have a seperate list of wicket components in a wicket page.. After refactoring this to use IVisitor it went away.. So please disregard previous mail:) On Mon, Jan 7, 2019 at 11:00 AM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi everyone, im one of the maintainers of pax wicket, and since we have > upgraded to wicket 8.1 I am regularly getting this, the project I am > getting this on are not using apache commons LinkedMap: > > 2019-01-07T09:58:04,024 | ERROR | > org.ops4j.pax.wicket.util.serialization.PaxWicketObjectOutputStream | > Wicket-AsyncPageStore-PageSavingThread | PaxWicketObjectOutputStream | > 166 - org.ops4j.pax.wicket.service - 5.0.0 | error writing object [Page > class = dk.netdesign.wallboard.frontend.pages.ViewerPage, id = 0, render > count = 2848]: null > java.util.ConcurrentModificationException: null > at java.util.ArrayList.writeObject(Unknown Source) ~[?:?] > at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] > at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] > at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] > at java.io.ObjectOutputStream.writeObject(Unknown Source) ~[?:?] > at > org.apache.commons.collections4.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1234) > ~[?:?] > at > org.apache.commons.collections4.map.LinkedMap.writeObject(LinkedMap.java:124) > ~[?:?] > at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) ~[?:?] > > which points me to a little down the stack trace to > > https://github.com/ops4j/org.ops4j.pax.wicket/blob/master/service/src/main/java/org/ops4j/pax/wicket/util/serialization/PaxWicketObjectOutputStream.java#L58 > > Im wondering if this implemementation are wrong? > > I can see that Wicket are using the LinkedMap here and are wondering why > it could throw ConcurrentModificationException: > > > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/MarkupContainer.java#L1172 > > > (thanks for helping out) > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Wicket 8.1 + PAX Wicket 5 ConcurrentModificationException
Hi everyone, im one of the maintainers of pax wicket, and since we have upgraded to wicket 8.1 I am regularly getting this, the project I am getting this on are not using apache commons LinkedMap: 2019-01-07T09:58:04,024 | ERROR | org.ops4j.pax.wicket.util.serialization.PaxWicketObjectOutputStream | Wicket-AsyncPageStore-PageSavingThread | PaxWicketObjectOutputStream | 166 - org.ops4j.pax.wicket.service - 5.0.0 | error writing object [Page class = dk.netdesign.wallboard.frontend.pages.ViewerPage, id = 0, render count = 2848]: null java.util.ConcurrentModificationException: null at java.util.ArrayList.writeObject(Unknown Source) ~[?:?] at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:?] at java.io.ObjectOutputStream.writeObject(Unknown Source) ~[?:?] at org.apache.commons.collections4.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1234) ~[?:?] at org.apache.commons.collections4.map.LinkedMap.writeObject(LinkedMap.java:124) ~[?:?] at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) ~[?:?] which points me to a little down the stack trace to https://github.com/ops4j/org.ops4j.pax.wicket/blob/master/service/src/main/java/org/ops4j/pax/wicket/util/serialization/PaxWicketObjectOutputStream.java#L58 Im wondering if this implemementation are wrong? I can see that Wicket are using the LinkedMap here and are wondering why it could throw ConcurrentModificationException: https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/MarkupContainer.java#L1172 (thanks for helping out) -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Modal with a different javascript modal
I would roll my own implementation for that and hook into the ajax parts On Tue, 18 Dec 2018, 21:29 Entropy Our front-end developer doesn't like some of the behavior of the wicket > modal > with respect to 508 compliance. He has an alternative modal implementation > he'd prefer us to use. Is there any way i can use the existing Wicket > modal > code on the server side with this other javascript modal? > > It's this one if that helps: > https://allyjs.io/tutorials/accessible-dialog.html > > I'm hoping there's some way to slip our calls to this dialog into the > events > that currently launch the wicket modal on the javascript side. > > -- > 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 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
Sure, I was not so much thinking of me but other wicket users.. I've asked around and at least here its not a "normal" wicket behavior that you could break something by calling target.add(component).. And its not that I do not want the error message, just to make it a little more clear to the developer on whats wrong.. Not many would know that by calling target.add you are breaking art because of internals of the tree.. A more pragmatic solution could also just to write in the java doc that calling target.add + having expand in the newContentComponent method are a no go and will break runtime. right now expand java doc are just "Expand the given node, tries to update the affected branch if the change happens on an AjaxRequestTarget <https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/AjaxRequestTarget.html> ." regards Nino On Tue, Dec 11, 2018 at 10:02 PM Sven Meier wrote: > Hi Nino, > > I've expanded the error message for now. > > We could make that method on NestedTree lenient, i.e. catch the > exception and log the message instead. > But you could do that for yourself in your code too. > > Have fun > Sven > > Am 10.12.18 um 11:16 schrieb nino martinez wael: > > I agree, i just find the error message strange.. Normally if i add an > > component with target.add it does not break.. If it breaks and we know it > > breaks maybe an warning or error message should come from the tree that > it > > cannot have expand in new component on ajax requests.. > > > > > > > > Ps typing iæon phone > > > > On Mon, 10 Dec 2018, 11:04 Sven Meier, wrote: > > > >> Hi, > >> > >> found it: > >> > >> - since WICKET-6335 the node content is created in #onInitialize() only > >> - at this moment the node is already inside the component hierarchy > >> - #updateBranch() finds the branch of the currently rendered node and > >> tries to add it to the ART > >> -> "Components can no longer be added" > >> > >> Compare this with 7.x: > >> > >> - the node content is created directly from the constructor > >> - at this moment the node (and its parental branch) is not in the > >> component hierarchy yet > >> - #updateBranch() does not find any branch for the node's model and > >> doesn't add anything to the ART > >> > >> So yes, we have a change, but no bug. In 7.x adding of the branch to the > >> ART was just ignored. > >> > >> You can achieve the same in Wicket 8.x with the following: > >> > >> protected Component newContentComponent(String id, > >> IModel node) { > >> if(haveClicked){ > >> // #expand() can not be used, since it tries to > add > >> the branch > >> // to the ART, which is not allowed during > rendering > >> getModelObject().add(node.getObject()); > >> } > >> return super.newContentComponent(id, node); > >> } > >> > >> Have fun > >> Sven > >> > >> Am 10.12.18 um 08:41 schrieb nino martinez wael: > >>> I have replicated it here, I found the error a little counter > intuitive: > >>> > >>> > >> > https://github.com/nmwael/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/tree/BeginnersTreePage.java > >>> On Fri, Dec 7, 2018 at 5:48 PM Sven Meier wrote: > >>> > >>>> Hi, > >>>> > >>>> the stacktrace shows clearly that you add a component to the ART while > >>>> it is already rendering the response. > >>>> This is not allowed, and this wasn't allowed in previous version. > >>>> > >>>> You'll have to provide a quickstart to prove that it worked > previously. > >>>> > >>>> Regards > >>>> Sven > >>>> > >>>> Am 06.12.18 um 13:50 schrieb nino martinez wael: > >>>>> @svenme...@apache.com what/how do I need to > >> check > >>>>> during the call? For now I have a breakpoint the place in the code > >> where > >>>> it > >>>>> fails, but I need to figure out what closes the request target.. > >>>>> > >>>>> On Mon, Dec 3, 2018 at 10:55 AM nino martinez wael < > >>>>> nino.martinez.w...@gmail.com> wrote: > >>>>> > >>
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
I agree, i just find the error message strange.. Normally if i add an component with target.add it does not break.. If it breaks and we know it breaks maybe an warning or error message should come from the tree that it cannot have expand in new component on ajax requests.. Ps typing iæon phone On Mon, 10 Dec 2018, 11:04 Sven Meier, wrote: > Hi, > > found it: > > - since WICKET-6335 the node content is created in #onInitialize() only > - at this moment the node is already inside the component hierarchy > - #updateBranch() finds the branch of the currently rendered node and > tries to add it to the ART > -> "Components can no longer be added" > > Compare this with 7.x: > > - the node content is created directly from the constructor > - at this moment the node (and its parental branch) is not in the > component hierarchy yet > - #updateBranch() does not find any branch for the node's model and > doesn't add anything to the ART > > So yes, we have a change, but no bug. In 7.x adding of the branch to the > ART was just ignored. > > You can achieve the same in Wicket 8.x with the following: > > protected Component newContentComponent(String id, > IModel node) { > if(haveClicked){ > // #expand() can not be used, since it tries to add > the branch > // to the ART, which is not allowed during rendering > getModelObject().add(node.getObject()); > } > return super.newContentComponent(id, node); > } > > Have fun > Sven > > Am 10.12.18 um 08:41 schrieb nino martinez wael: > > I have replicated it here, I found the error a little counter intuitive: > > > > > https://github.com/nmwael/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/tree/BeginnersTreePage.java > > > > On Fri, Dec 7, 2018 at 5:48 PM Sven Meier wrote: > > > >> Hi, > >> > >> the stacktrace shows clearly that you add a component to the ART while > >> it is already rendering the response. > >> This is not allowed, and this wasn't allowed in previous version. > >> > >> You'll have to provide a quickstart to prove that it worked previously. > >> > >> Regards > >> Sven > >> > >> Am 06.12.18 um 13:50 schrieb nino martinez wael: > >>> @svenme...@apache.com what/how do I need to > check > >>> during the call? For now I have a breakpoint the place in the code > where > >> it > >>> fails, but I need to figure out what closes the request target.. > >>> > >>> On Mon, Dec 3, 2018 at 10:55 AM nino martinez wael < > >>> nino.martinez.w...@gmail.com> wrote: > >>> > >>>> I've debugged a lot further. But still unable to pinpoint it.. For now > >>>> I've switched to rendering the full page instead, which of course > works. > >>>> > >>>> We are a couple of things in conjunction with TREE, like wicket jquery > >> ui > >>>> draggable and droppable.. We also have a custom loading mechanism that > >> pops > >>>> a veil if the request are too long to load.. And some custom form > >> handling > >>>> aswell (auto show an marker for error'd form fields).. > >>>> > >>>> PS writing this for other to see, if they hit this challenge.. > >>>> > >>>> -Regards Nino > >>>> > >>>> > >>>> On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael < > >>>> nino.martinez.w...@gmail.com> wrote: > >>>> > >>>>> currently unable to reproduce in examples, something must be wrong in > >> my > >>>>> code.. > >>>>> > >>>>> I'll comeback if it turns out otherwise.. > >>>>> > >>>>> Thanks for helping :) > >>>>> > >>>>> On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael < > >>>>> nino.martinez.w...@gmail.com> wrote: > >>>>> > >>>>>> Yes I understand.. Let me see if it breaks in wicket examples, or I > >> can > >>>>>> make it so.. Do you know another way to make a node/folder expand > >> during > >>>>>> construction time? Feels like the expand method are meant for ajax > >> calls > >>>>>> only. > >>>>>> > >>>>>> -regards Nino > >>>
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
I have replicated it here, I found the error a little counter intuitive: https://github.com/nmwael/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/tree/BeginnersTreePage.java On Fri, Dec 7, 2018 at 5:48 PM Sven Meier wrote: > Hi, > > the stacktrace shows clearly that you add a component to the ART while > it is already rendering the response. > This is not allowed, and this wasn't allowed in previous version. > > You'll have to provide a quickstart to prove that it worked previously. > > Regards > Sven > > Am 06.12.18 um 13:50 schrieb nino martinez wael: > > @svenme...@apache.com what/how do I need to check > > during the call? For now I have a breakpoint the place in the code where > it > > fails, but I need to figure out what closes the request target.. > > > > On Mon, Dec 3, 2018 at 10:55 AM nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > >> I've debugged a lot further. But still unable to pinpoint it.. For now > >> I've switched to rendering the full page instead, which of course works. > >> > >> We are a couple of things in conjunction with TREE, like wicket jquery > ui > >> draggable and droppable.. We also have a custom loading mechanism that > pops > >> a veil if the request are too long to load.. And some custom form > handling > >> aswell (auto show an marker for error'd form fields).. > >> > >> PS writing this for other to see, if they hit this challenge.. > >> > >> -Regards Nino > >> > >> > >> On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael < > >> nino.martinez.w...@gmail.com> wrote: > >> > >>> currently unable to reproduce in examples, something must be wrong in > my > >>> code.. > >>> > >>> I'll comeback if it turns out otherwise.. > >>> > >>> Thanks for helping :) > >>> > >>> On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael < > >>> nino.martinez.w...@gmail.com> wrote: > >>> > >>>> Yes I understand.. Let me see if it breaks in wicket examples, or I > can > >>>> make it so.. Do you know another way to make a node/folder expand > during > >>>> construction time? Feels like the expand method are meant for ajax > calls > >>>> only. > >>>> > >>>> -regards Nino > >>>> > >>>> On Wed, Nov 28, 2018 at 4:16 PM sven wrote: > >>>> > >>>>> > >>>>> Hi Nino, > >>>>> > >>>>> > >>>>> > >>>>> during rendering of components no additional components can be added > to > >>>>> the ART any more. > >>>>> > >>>>> I surprised that your code worked in 6.x, can you build a quickstart > >>>>> demonstrating the problem? > >>>>> > >>>>> > >>>>> > >>>>> Have fun > >>>>> > >>>>> Sven > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> On 28.11.2018 at 14:38,wrote: > >>>>>> > >>>>>> > >>>>>> Hi In wicket 6 this worked, there are another input field (ajax > >>>>> activated) that triggers the update : ChildAwareNestedTree > >>>>> profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", > provider, > >>>>> sharedExpansionState) { @Override protected Component > >>>>> newContentComponent(String id, IModel model) { TreeNode node = > >>>>> model.getObject(); if (node instanceof > TreeNodeProvider.PartitionNode) { > >>>>> Partition partition = ((TreeNodeProvider.PartitionNode) > >>>>> node).getPartition(); if > >>>>> (getPartitionsWithProfiles().containsKey(partition.getId())) {* > >>>>> expand(node);* } } else if (node instanceof > >>>>> TreeNodeProvider.NoPartitionNode && > isNoPartitionProfilesPresent()) {* > >>>>> expand(node);* } } The triggering field: searchTerm.add(new > >>>>> AjaxFormComponentUpdatingBehavior("keydown") { @Override protected > void > >>>>> onUpdate(AjaxRequestTarget target) { if (search
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
@svenme...@apache.com what/how do I need to check during the call? For now I have a breakpoint the place in the code where it fails, but I need to figure out what closes the request target.. On Mon, Dec 3, 2018 at 10:55 AM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > I've debugged a lot further. But still unable to pinpoint it.. For now > I've switched to rendering the full page instead, which of course works. > > We are a couple of things in conjunction with TREE, like wicket jquery ui > draggable and droppable.. We also have a custom loading mechanism that pops > a veil if the request are too long to load.. And some custom form handling > aswell (auto show an marker for error'd form fields).. > > PS writing this for other to see, if they hit this challenge.. > > -Regards Nino > > > On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> currently unable to reproduce in examples, something must be wrong in my >> code.. >> >> I'll comeback if it turns out otherwise.. >> >> Thanks for helping :) >> >> On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >>> Yes I understand.. Let me see if it breaks in wicket examples, or I can >>> make it so.. Do you know another way to make a node/folder expand during >>> construction time? Feels like the expand method are meant for ajax calls >>> only. >>> >>> -regards Nino >>> >>> On Wed, Nov 28, 2018 at 4:16 PM sven wrote: >>> >>>> >>>> >>>> Hi Nino, >>>> >>>> >>>> >>>> during rendering of components no additional components can be added to >>>> the ART any more. >>>> >>>> I surprised that your code worked in 6.x, can you build a quickstart >>>> demonstrating the problem? >>>> >>>> >>>> >>>> Have fun >>>> >>>> Sven >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> > >>>> > On 28.11.2018 at 14:38,wrote: >>>> > >>>> > >>>> > Hi In wicket 6 this worked, there are another input field (ajax >>>> activated) that triggers the update : ChildAwareNestedTree >>>> profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider, >>>> sharedExpansionState) { @Override protected Component >>>> newContentComponent(String id, IModel model) { TreeNode node = >>>> model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) { >>>> Partition partition = ((TreeNodeProvider.PartitionNode) >>>> node).getPartition(); if >>>> (getPartitionsWithProfiles().containsKey(partition.getId())) {* >>>> expand(node);* } } else if (node instanceof >>>> TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {* >>>> expand(node);* } } The triggering field: searchTerm.add(new >>>> AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void >>>> onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() != >>>> null && !searchTermModel.getObject().isEmpty()) { >>>> profilePartitionTree.rebuildExpandedPartitions(); } else { >>>> profilePartitionTree.getP >>>> artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);* >>>> } @Override protected void updateAjaxAttributes(AjaxRequestAttributes >>>> attributes) { super.updateAjaxAttributes(attributes); >>>> attributes.setThrottlingSettings(new >>>> ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400), >>>> true)); } }); But I get an this error message in wicket 8, my line below: >>>> 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper >>>> | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred >>>> org.apache.wicket.WicketRuntimeException: Error attaching this container >>>> for rendering: [Subtree [Component id = subtree]] at >>>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0] >>>> at >>>> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] >>>> at >>>> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org
Re: http://examples7x.wicket.apache.org/ is down
yup it seems to be up again.:) On Thu, Dec 6, 2018 at 7:35 AM Maxim Solodovnik wrote: > Works for me (except for websockets) > what are your steps? > > On Thu, 6 Dec 2018 at 13:34, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > the same with http://examples8x.wicket.apache.org/ > > > > On Wed, Nov 21, 2018 at 9:42 AM Martin Grigorov > > wrote: > > > > > Yes, it is a known problem. > > > Yesterday I shared a link to a ticket for Apache Infra about in dev@ : > > > https://issues.apache.org/jira/browse/INFRA-17280 > > > > > > On Wed, Nov 21, 2018 at 10:22 AM Francois Meillet < > > > francois.meil...@gmail.com> wrote: > > > > > > > http://examples7x.wicket.apache.org/ is down > > > > > > > > François > > > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > WBR > Maxim aka solomax > -- Best regards / Med venlig hilsen Nino Martinez
Re: http://examples7x.wicket.apache.org/ is down
the same with http://examples8x.wicket.apache.org/ On Wed, Nov 21, 2018 at 9:42 AM Martin Grigorov wrote: > Yes, it is a known problem. > Yesterday I shared a link to a ticket for Apache Infra about in dev@ : > https://issues.apache.org/jira/browse/INFRA-17280 > > On Wed, Nov 21, 2018 at 10:22 AM Francois Meillet < > francois.meil...@gmail.com> wrote: > > > http://examples7x.wicket.apache.org/ is down > > > > François > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
I've debugged a lot further. But still unable to pinpoint it.. For now I've switched to rendering the full page instead, which of course works. We are a couple of things in conjunction with TREE, like wicket jquery ui draggable and droppable.. We also have a custom loading mechanism that pops a veil if the request are too long to load.. And some custom form handling aswell (auto show an marker for error'd form fields).. PS writing this for other to see, if they hit this challenge.. -Regards Nino On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > currently unable to reproduce in examples, something must be wrong in my > code.. > > I'll comeback if it turns out otherwise.. > > Thanks for helping :) > > On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Yes I understand.. Let me see if it breaks in wicket examples, or I can >> make it so.. Do you know another way to make a node/folder expand during >> construction time? Feels like the expand method are meant for ajax calls >> only. >> >> -regards Nino >> >> On Wed, Nov 28, 2018 at 4:16 PM sven wrote: >> >>> >>> >>> Hi Nino, >>> >>> >>> >>> during rendering of components no additional components can be added to >>> the ART any more. >>> >>> I surprised that your code worked in 6.x, can you build a quickstart >>> demonstrating the problem? >>> >>> >>> >>> Have fun >>> >>> Sven >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> > >>> > On 28.11.2018 at 14:38,wrote: >>> > >>> > >>> > Hi In wicket 6 this worked, there are another input field (ajax >>> activated) that triggers the update : ChildAwareNestedTree >>> profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider, >>> sharedExpansionState) { @Override protected Component >>> newContentComponent(String id, IModel model) { TreeNode node = >>> model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) { >>> Partition partition = ((TreeNodeProvider.PartitionNode) >>> node).getPartition(); if >>> (getPartitionsWithProfiles().containsKey(partition.getId())) {* >>> expand(node);* } } else if (node instanceof >>> TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {* >>> expand(node);* } } The triggering field: searchTerm.add(new >>> AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void >>> onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() != >>> null && !searchTermModel.getObject().isEmpty()) { >>> profilePartitionTree.rebuildExpandedPartitions(); } else { >>> profilePartitionTree.getP >>> artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);* } >>> @Override protected void updateAjaxAttributes(AjaxRequestAttributes >>> attributes) { super.updateAjaxAttributes(attributes); >>> attributes.setThrottlingSettings(new >>> ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400), >>> true)); } }); But I get an this error message in wicket 8, my line below: >>> 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper >>> | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred >>> org.apache.wicket.WicketRuntimeException: Error attaching this container >>> for rendering: [Subtree [Component id = subtree]] at >>> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0] >>> at >>> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] >>> at >>> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] >>> at org.apache.wicket.MarkupContai >>> ner.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0] >>> at >>> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] >>> at >>> dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01] >>> at >>> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] >>> at >>> org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialP
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
currently unable to reproduce in examples, something must be wrong in my code.. I'll comeback if it turns out otherwise.. Thanks for helping :) On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Yes I understand.. Let me see if it breaks in wicket examples, or I can > make it so.. Do you know another way to make a node/folder expand during > construction time? Feels like the expand method are meant for ajax calls > only. > > -regards Nino > > On Wed, Nov 28, 2018 at 4:16 PM sven wrote: > >> >> >> Hi Nino, >> >> >> >> during rendering of components no additional components can be added to >> the ART any more. >> >> I surprised that your code worked in 6.x, can you build a quickstart >> demonstrating the problem? >> >> >> >> Have fun >> >> Sven >> >> >> >> >> >> >> >> >> >> > >> > On 28.11.2018 at 14:38,wrote: >> > >> > >> > Hi In wicket 6 this worked, there are another input field (ajax >> activated) that triggers the update : ChildAwareNestedTree >> profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider, >> sharedExpansionState) { @Override protected Component >> newContentComponent(String id, IModel model) { TreeNode node = >> model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) { >> Partition partition = ((TreeNodeProvider.PartitionNode) >> node).getPartition(); if >> (getPartitionsWithProfiles().containsKey(partition.getId())) {* >> expand(node);* } } else if (node instanceof >> TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {* >> expand(node);* } } The triggering field: searchTerm.add(new >> AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void >> onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() != >> null && !searchTermModel.getObject().isEmpty()) { >> profilePartitionTree.rebuildExpandedPartitions(); } else { >> profilePartitionTree.getP >> artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);* } >> @Override protected void updateAjaxAttributes(AjaxRequestAttributes >> attributes) { super.updateAjaxAttributes(attributes); >> attributes.setThrottlingSettings(new >> ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400), >> true)); } }); But I get an this error message in wicket 8, my line below: >> 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper >> | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred >> org.apache.wicket.WicketRuntimeException: Error attaching this container >> for rendering: [Subtree [Component id = subtree]] at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] >> at org.apache.wicket.MarkupContai >> ner.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] >> at >> dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01] >> at >> org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialPageUpdate.java:322)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:250)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:162)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:384)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)[136:org.apa >> che.wicket.core:8.1.0] at >> org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)[139:org.apache.wicket.request:8.1.0] >> at >> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)[136:org.apache.wicket.core:8.1.0] >> at >> org.apache.wicket.request.cycle.RequestCycle.processReques
Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
Yes I understand.. Let me see if it breaks in wicket examples, or I can make it so.. Do you know another way to make a node/folder expand during construction time? Feels like the expand method are meant for ajax calls only. -regards Nino On Wed, Nov 28, 2018 at 4:16 PM sven wrote: > > > Hi Nino, > > > > during rendering of components no additional components can be added to > the ART any more. > > I surprised that your code worked in 6.x, can you build a quickstart > demonstrating the problem? > > > > Have fun > > Sven > > > > > > > > > > > > > On 28.11.2018 at 14:38,wrote: > > > > > > Hi In wicket 6 this worked, there are another input field (ajax > activated) that triggers the update : ChildAwareNestedTree > profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider, > sharedExpansionState) { @Override protected Component > newContentComponent(String id, IModel model) { TreeNode node = > model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) { > Partition partition = ((TreeNodeProvider.PartitionNode) > node).getPartition(); if > (getPartitionsWithProfiles().containsKey(partition.getId())) {* > expand(node);* } } else if (node instanceof > TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {* > expand(node);* } } The triggering field: searchTerm.add(new > AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void > onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() != > null && !searchTermModel.getObject().isEmpty()) { > profilePartitionTree.rebuildExpandedPartitions(); } else { > profilePartitionTree.getP > artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);* } > @Override protected void updateAjaxAttributes(AjaxRequestAttributes > attributes) { super.updateAjaxAttributes(attributes); > attributes.setThrottlingSettings(new > ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400), > true)); } }); But I get an this error message in wicket 8, my line below: > 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper > | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred > org.apache.wicket.WicketRuntimeException: Error attaching this container > for rendering: [Subtree [Component id = subtree]] at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] > at org.apache.wicket.MarkupContai > ner.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] > at > dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01] > at > org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialPageUpdate.java:322)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:250)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:162)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:384)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)[136:org.apa > che.wicket.core:8.1.0] at > org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)[139:org.apache.wicket.request:8.1.0] > at > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:262)[136:org.apache.wicket.core:8.1.0] > at > org.apache.wicket.protocol.http.WicketFilter$$EnhancerByCGLIB$$a4862322.CGLIB$processRequestCycle$6()[jar:bundle://128.0:0/!/:] > at > org.apache.wicket.protocol.http.WicketFilter$$EnhancerByCGLIB$$a4862322$$FastClassByCGLIB$$c4e730b8.invoke()[jar:bundle://128.0:0/!/:] > at > net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[128:org.apache.servic > emix.bundles.cglib:2.2.2.1] at > org.ops4j.pax.wicket.internal.servlet.PAXWicketServlet$WicketFilterCallback.intercept(PAXWicketServlet.java:236)[147:org.ops4j.pax.wicket.service:5.0.0] > at >
Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)
Hi In wicket 6 this worked, there are another input field (ajax activated) that triggers the update : ChildAwareNestedTree profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider, sharedExpansionState) { @Override protected Component newContentComponent(String id, IModel model) { TreeNode node = model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) { Partition partition = ((TreeNodeProvider.PartitionNode) node).getPartition(); if (getPartitionsWithProfiles().containsKey(partition.getId())) {* expand(node);* } } else if (node instanceof TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {* expand(node);* } } The triggering field: searchTerm.add(new AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() != null && !searchTermModel.getObject().isEmpty()) { profilePartitionTree.rebuildExpandedPartitions(); } else { profilePartitionTree.getPartitionsWithProfiles().clear(); }*target.add(profilePartitionTree);* } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setThrottlingSettings(new ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400), true)); } }); But I get an this error message in wicket 8, my line below: 2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper | 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Subtree [Component id = subtree]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0] at dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01] at org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialPageUpdate.java:322)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:250)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:162)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:384)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)[139:org.apache.wicket.request:8.1.0] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:283)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:262)[136:org.apache.wicket.core:8.1.0] at org.apache.wicket.protocol.http.WicketFilter$$EnhancerByCGLIB$$a4862322.CGLIB$processRequestCycle$6()[jar:bundle://128.0:0/!/:] at org.apache.wicket.protocol.http.WicketFilter$$EnhancerByCGLIB$$a4862322$$FastClassByCGLIB$$c4e730b8.invoke()[jar:bundle://128.0:0/!/:] at
Spring cloud config or just config integration?
Have any one tried or seen a ui front that pops up in front of your normal app if it's not configured? In pax wicket we have one.. But are not able to find one at the spring stack? Regards Nino
Re: [Wicket 8m7] websockets?
I will, and thanks for your feedback:) I have some idea that for most users we can simplify it a bit, I will come back when I have something more than just the idea of it. Thinking about it, websocket technology will require more of the backend, because of its nature.. For Jetty 9.3.x I will need to use this filter org.apache.wicket.protocol.ws.javax.JavaxWebSocketFilter correct? On Thu, Aug 17, 2017 at 10:05 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > On Thu, Aug 17, 2017 at 10:51 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > so in it's simplest form my page would look like this: > > > > > > final MarkupContainer anotherComponent = add(new > > Label("anotherComponent", "Updating should be pushed")); > > > > anotherComponent.add( > > new WebSocketBehavior() { > > @Override > > protected void onPush(WebSocketRequestHandler handler, > > IWebSocketPushMessage message) { > > super.onPush(handler, message); > > handler.add(anotherComponent); > > } > > > > > > }); > > > > > > } > > > > > > And will get anotherComponent refreshed with every WebsocketPushes.. > > It would be nice if there were a simple filter or way to determine if > > the websocket push were relevant for the actually push.. > > > > The current implementation does feel a little lowlevel.. > > > > IWebSocketPushMessage is an interface, so to broadcast it you need to > create a concrete impl class. > Then in #onPush() you can check the type and decide what to do. > > I have the feeling that you didn't even test it yet. > Please play a bit with it and then come with more concrete suggestions! > > > > > > > > On Thu, Aug 17, 2017 at 9:36 AM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > > > Thanks Martin! Yes specially 2.2.x will probably be used a lot.. Would > be > > > great to have an sample for it.. I'll conjure one up for pax wicket.. > > > > > > On Thu, Aug 17, 2017 at 9:29 AM, Martin Grigorov < > > > martin.grigo...@gmail.com> wrote: > > > > > >> WebSocketBehavior has only callbacks. They have > > IPartialPageUpdateHandler > > >> as parameter (this is the base interface for AjaxRequestTarget and > > >> IWebSocketRequestHandler) which you can use to add components. > > >> > > >> There are two use cases: > > >> > > >> 1) the browser sends a message > > >> WebSocketBehavior#onMessage(Text|Binary, IPartialPageUpdateHandler) > is > > >> called and you can react on this message > > >> > > >> 2) the server pushes a message > > >> > > >> 2.1) simple case: broadcast plain text or byte[] > > >> > > >> WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( > > >> application); > > >> webSocketSettings.getConnectionRegistry().getConnection(app[, > > sessionId, > > >> pageIdKey]).sendMessage( text | binary ); > > >> > > >> 2.2) more complex case: update Wicket components > > >> > > >> here you need to broadcast IWebSocketPushMessage - this is a > > >> specialization > > >> of IWebSocketMessage that is used when you need to push from the > server > > to > > >> the client > > >> > > >> This code could be in any application service class: > > >> > > >> WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( > > >> application); > > >> WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster( > > >> webSocketSettings.getConnectionRegistry()); > > >> > > >> 2.2.1) to all connections: > > >> broadcaster.broadcastAll(application, message); > > >> > > >> 2.2.2) to specific client > > >> ConnectedMessage wsMessage = new ConnectedMessage(application, > > sessionId, > > >> pageIdKey); > > >> broadcaster.broadcast(wsMessage, message); > > >> > > >> > > >> Broadcasting IWebSocketPushMessage will call > WebSocketBehavior#onPush() > > >> where you can update any components > > >> > > >> We should add this to the guide! > > >> > > >> Martin > > >> > > >> On Aug 17, 2017 09:28, "nino martinez wael&
Re: [Wicket 8m7] websockets?
so in it's simplest form my page would look like this: final MarkupContainer anotherComponent = add(new Label("anotherComponent", "Updating should be pushed")); anotherComponent.add( new WebSocketBehavior() { @Override protected void onPush(WebSocketRequestHandler handler, IWebSocketPushMessage message) { super.onPush(handler, message); handler.add(anotherComponent); } }); } And will get anotherComponent refreshed with every WebsocketPushes.. It would be nice if there were a simple filter or way to determine if the websocket push were relevant for the actually push.. The current implementation does feel a little lowlevel.. On Thu, Aug 17, 2017 at 9:36 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Thanks Martin! Yes specially 2.2.x will probably be used a lot.. Would be > great to have an sample for it.. I'll conjure one up for pax wicket.. > > On Thu, Aug 17, 2017 at 9:29 AM, Martin Grigorov < > martin.grigo...@gmail.com> wrote: > >> WebSocketBehavior has only callbacks. They have IPartialPageUpdateHandler >> as parameter (this is the base interface for AjaxRequestTarget and >> IWebSocketRequestHandler) which you can use to add components. >> >> There are two use cases: >> >> 1) the browser sends a message >> WebSocketBehavior#onMessage(Text|Binary, IPartialPageUpdateHandler) is >> called and you can react on this message >> >> 2) the server pushes a message >> >> 2.1) simple case: broadcast plain text or byte[] >> >> WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( >> application); >> webSocketSettings.getConnectionRegistry().getConnection(app[, sessionId, >> pageIdKey]).sendMessage( text | binary ); >> >> 2.2) more complex case: update Wicket components >> >> here you need to broadcast IWebSocketPushMessage - this is a >> specialization >> of IWebSocketMessage that is used when you need to push from the server to >> the client >> >> This code could be in any application service class: >> >> WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( >> application); >> WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster( >> webSocketSettings.getConnectionRegistry()); >> >> 2.2.1) to all connections: >> broadcaster.broadcastAll(application, message); >> >> 2.2.2) to specific client >> ConnectedMessage wsMessage = new ConnectedMessage(application, sessionId, >> pageIdKey); >> broadcaster.broadcast(wsMessage, message); >> >> >> Broadcasting IWebSocketPushMessage will call WebSocketBehavior#onPush() >> where you can update any components >> >> We should add this to the guide! >> >> Martin >> >> On Aug 17, 2017 09:28, "nino martinez wael" <nino.martinez.w...@gmail.com >> > >> wrote: >> >> > But how do I then refresh the target from serverside? WebSocketBehavior >> > does not have an method that lets me get a target? >> > >> > On Thu, Aug 17, 2017 at 7:45 AM, Martin Grigorov < >> > martin.grigo...@gmail.com> >> > wrote: >> > >> > > Yes. >> > > The API is the same. >> > > >> > > On Aug 17, 2017 08:44, "nino martinez wael" < >> > nino.martinez.w...@gmail.com> >> > > wrote: >> > > >> > > > is there way to repaint an component like with ajax targets >> > > > (target.add(component))? >> > > > >> > > > On Wed, Aug 16, 2017 at 1:57 PM, nino martinez wael < >> > > > nino.martinez.w...@gmail.com> wrote: >> > > > >> > > > > I'snt there something more simple? >> > > > > >> > > > > On Wed, Aug 16, 2017 at 1:54 PM, Martin Grigorov < >> > mgrigo...@apache.org >> > > > >> > > > > wrote: >> > > > > >> > > > >> Use the examples as inspiration: >> > > > >> >> > > > >> http://examples8x.wicket.apache.org/websockets/ >> > > > >> https://github.com/apache/wicket/tree/master/wicket-examples >> > > > >> /src/main/java/org/apache/wicket/examples/websocket >> > > > >> >> > > > >> Martin Grigorov >> > > > >> Wicket Training and Consulting >> > > > >> https://twitter.com/mtgrigorov >> > > > >&
Re: [Wicket 8m7] websockets?
Thanks Martin! Yes specially 2.2.x will probably be used a lot.. Would be great to have an sample for it.. I'll conjure one up for pax wicket.. On Thu, Aug 17, 2017 at 9:29 AM, Martin Grigorov <martin.grigo...@gmail.com> wrote: > WebSocketBehavior has only callbacks. They have IPartialPageUpdateHandler > as parameter (this is the base interface for AjaxRequestTarget and > IWebSocketRequestHandler) which you can use to add components. > > There are two use cases: > > 1) the browser sends a message > WebSocketBehavior#onMessage(Text|Binary, IPartialPageUpdateHandler) is > called and you can react on this message > > 2) the server pushes a message > > 2.1) simple case: broadcast plain text or byte[] > > WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( > application); > webSocketSettings.getConnectionRegistry().getConnection(app[, sessionId, > pageIdKey]).sendMessage( text | binary ); > > 2.2) more complex case: update Wicket components > > here you need to broadcast IWebSocketPushMessage - this is a specialization > of IWebSocketMessage that is used when you need to push from the server to > the client > > This code could be in any application service class: > > WebSocketSettings webSocketSettings = WebSocketSettings.Holder.get( > application); > WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster( > webSocketSettings.getConnectionRegistry()); > > 2.2.1) to all connections: > broadcaster.broadcastAll(application, message); > > 2.2.2) to specific client > ConnectedMessage wsMessage = new ConnectedMessage(application, sessionId, > pageIdKey); > broadcaster.broadcast(wsMessage, message); > > > Broadcasting IWebSocketPushMessage will call WebSocketBehavior#onPush() > where you can update any components > > We should add this to the guide! > > Martin > > On Aug 17, 2017 09:28, "nino martinez wael" <nino.martinez.w...@gmail.com> > wrote: > > > But how do I then refresh the target from serverside? WebSocketBehavior > > does not have an method that lets me get a target? > > > > On Thu, Aug 17, 2017 at 7:45 AM, Martin Grigorov < > > martin.grigo...@gmail.com> > > wrote: > > > > > Yes. > > > The API is the same. > > > > > > On Aug 17, 2017 08:44, "nino martinez wael" < > > nino.martinez.w...@gmail.com> > > > wrote: > > > > > > > is there way to repaint an component like with ajax targets > > > > (target.add(component))? > > > > > > > > On Wed, Aug 16, 2017 at 1:57 PM, nino martinez wael < > > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > > > I'snt there something more simple? > > > > > > > > > > On Wed, Aug 16, 2017 at 1:54 PM, Martin Grigorov < > > mgrigo...@apache.org > > > > > > > > > wrote: > > > > > > > > > >> Use the examples as inspiration: > > > > >> > > > > >> http://examples8x.wicket.apache.org/websockets/ > > > > >> https://github.com/apache/wicket/tree/master/wicket-examples > > > > >> /src/main/java/org/apache/wicket/examples/websocket > > > > >> > > > > >> Martin Grigorov > > > > >> Wicket Training and Consulting > > > > >> https://twitter.com/mtgrigorov > > > > >> > > > > >> On Wed, Aug 16, 2017 at 2:52 PM, nino martinez wael < > > > > >> nino.martinez.w...@gmail.com> wrote: > > > > >> > > > > >> > Hi > > > > >> > > > > > >> > I am looking into Wicket 8 and websockets using pax wicket, in > my > > > case > > > > >> I am > > > > >> > using jetty 9.3.14. I want to do a simple websocket sample.. > > > > >> > > > > > >> > However I cannot find something as simple as > > > > >> > a AjaxSelfUpdatingTimerBehavior as an websocket behavior.. > > > > >> > > > > > >> > So whats the simplest way todo a websocket example that shows > some > > > > >> change > > > > >> > at clientside? > > > > >> > > > > > >> > -- > > > > >> > Best regards / Med venlig hilsen > > > > >> > Nino Martinez > > > > >> > > > > > >> > > > > > > > > > > > > > > > > > > > > -- > > > > > Best regards / Med venlig hilsen > > > > > Nino Martinez > > > > > > > > > > > > > > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: [Wicket 8m7] websockets?
But how do I then refresh the target from serverside? WebSocketBehavior does not have an method that lets me get a target? On Thu, Aug 17, 2017 at 7:45 AM, Martin Grigorov <martin.grigo...@gmail.com> wrote: > Yes. > The API is the same. > > On Aug 17, 2017 08:44, "nino martinez wael" <nino.martinez.w...@gmail.com> > wrote: > > > is there way to repaint an component like with ajax targets > > (target.add(component))? > > > > On Wed, Aug 16, 2017 at 1:57 PM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > > > I'snt there something more simple? > > > > > > On Wed, Aug 16, 2017 at 1:54 PM, Martin Grigorov <mgrigo...@apache.org > > > > > wrote: > > > > > >> Use the examples as inspiration: > > >> > > >> http://examples8x.wicket.apache.org/websockets/ > > >> https://github.com/apache/wicket/tree/master/wicket-examples > > >> /src/main/java/org/apache/wicket/examples/websocket > > >> > > >> Martin Grigorov > > >> Wicket Training and Consulting > > >> https://twitter.com/mtgrigorov > > >> > > >> On Wed, Aug 16, 2017 at 2:52 PM, nino martinez wael < > > >> nino.martinez.w...@gmail.com> wrote: > > >> > > >> > Hi > > >> > > > >> > I am looking into Wicket 8 and websockets using pax wicket, in my > case > > >> I am > > >> > using jetty 9.3.14. I want to do a simple websocket sample.. > > >> > > > >> > However I cannot find something as simple as > > >> > a AjaxSelfUpdatingTimerBehavior as an websocket behavior.. > > >> > > > >> > So whats the simplest way todo a websocket example that shows some > > >> change > > >> > at clientside? > > >> > > > >> > -- > > >> > Best regards / Med venlig hilsen > > >> > Nino Martinez > > >> > > > >> > > > > > > > > > > > > -- > > > Best regards / Med venlig hilsen > > > Nino Martinez > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: [Wicket 8m7] websockets?
is there way to repaint an component like with ajax targets (target.add(component))? On Wed, Aug 16, 2017 at 1:57 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > I'snt there something more simple? > > On Wed, Aug 16, 2017 at 1:54 PM, Martin Grigorov <mgrigo...@apache.org> > wrote: > >> Use the examples as inspiration: >> >> http://examples8x.wicket.apache.org/websockets/ >> https://github.com/apache/wicket/tree/master/wicket-examples >> /src/main/java/org/apache/wicket/examples/websocket >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Wed, Aug 16, 2017 at 2:52 PM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >> > Hi >> > >> > I am looking into Wicket 8 and websockets using pax wicket, in my case >> I am >> > using jetty 9.3.14. I want to do a simple websocket sample.. >> > >> > However I cannot find something as simple as >> > a AjaxSelfUpdatingTimerBehavior as an websocket behavior.. >> > >> > So whats the simplest way todo a websocket example that shows some >> change >> > at clientside? >> > >> > -- >> > Best regards / Med venlig hilsen >> > Nino Martinez >> > >> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Re: [Wicket 8m7] websockets?
I'snt there something more simple? On Wed, Aug 16, 2017 at 1:54 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Use the examples as inspiration: > > http://examples8x.wicket.apache.org/websockets/ > https://github.com/apache/wicket/tree/master/wicket- > examples/src/main/java/org/apache/wicket/examples/websocket > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Aug 16, 2017 at 2:52 PM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi > > > > I am looking into Wicket 8 and websockets using pax wicket, in my case I > am > > using jetty 9.3.14. I want to do a simple websocket sample.. > > > > However I cannot find something as simple as > > a AjaxSelfUpdatingTimerBehavior as an websocket behavior.. > > > > So whats the simplest way todo a websocket example that shows some change > > at clientside? > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
[Wicket 8m7] websockets?
Hi I am looking into Wicket 8 and websockets using pax wicket, in my case I am using jetty 9.3.14. I want to do a simple websocket sample.. However I cannot find something as simple as a AjaxSelfUpdatingTimerBehavior as an websocket behavior.. So whats the simplest way todo a websocket example that shows some change at clientside? -- Best regards / Med venlig hilsen Nino Martinez
[wicket 6.22] org.wicketstuff.jwicket.tooltip.BeautyTips
Hi Im trying to use beautytips.. But are getting a null pointer when the component renders, i've done this: BeautyTips lokalnrTooltip = new BeautyTips("Brugerens 5-cifrede lokalnr, eller et 6-7 cifret fiktiv nr. Skal altid udfyldes!"); lokalnr.add(lokalnrTooltip); Anything else needs to be done? -- Best regards / Med venlig hilsen Nino Martinez
http://examples8x.wicket.apache.org/websockets/ partial down?
Does not seem to work? Also clicking source code gives an internal error.. Once there where disk space problems..? -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 6.23 Jquery reference settings
It could either be that its just missing or that wicket would not be compatible with 2.x og jquery... On Thu, Jan 19, 2017 at 10:11 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Yeah I know, just wanted to know why there's no nice setting in > JQueryResourceReference > for the 2.x branch... > > On Thu, Jan 19, 2017 at 9:31 AM, Martin Grigorov <mgrigo...@apache.org> > wrote: > >> See org.apache.wicket.resource.DynamicJQueryResourceReference >> >> But you can always roll your own ResourceReference that loads any specific >> version you need. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Jan 19, 2017 at 9:20 AM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >> > Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, >> how >> > can I tell wicket to use the 2.x version? >> > >> > Looking in JQueryResourceReference it only has version 1.x... >> > >> > -- >> > Best regards / Med venlig hilsen >> > Nino Martinez >> > >> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 6.23 Jquery reference settings
Yeah I know, just wanted to know why there's no nice setting in JQueryResourceReference for the 2.x branch... On Thu, Jan 19, 2017 at 9:31 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > See org.apache.wicket.resource.DynamicJQueryResourceReference > > But you can always roll your own ResourceReference that loads any specific > version you need. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Jan 19, 2017 at 9:20 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, > how > > can I tell wicket to use the 2.x version? > > > > Looking in JQueryResourceReference it only has version 1.x... > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Wicket 6.23 Jquery reference settings
Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, how can I tell wicket to use the 2.x version? Looking in JQueryResourceReference it only has version 1.x... -- Best regards / Med venlig hilsen Nino Martinez
Re: AbstractToolbar vs AjaxFallbackDefaultDataTable
After looking into https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/extensions/markup/html/repeater/data/table/export/ExportToolbar.html I realised that it was using onInitialize() so I moved my code there instead of the constructor.. But it made no change what so ever.. On Thu, Dec 29, 2016 at 9:37 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi > > I am having a little trouble, making my own toolbar. Currently on > pagination change my toolbar are added, but the old toolbar are not removed > / updated. So for every click on pagination, additional toolbars are added. > > Short story: > User clicks page 2 on AjaxFallbackDefaultDataTable > User now sees two delete buttons > > public abstract class SelectedListActionToolbar extends AbstractToolbar { > > public SelectedListActionToolbar(final IModel<HashMap<Integer, Site>> > model, final DataTable table) > { > super(table); > setOutputMarkupId(true); > Link link=new Link("onAction"){ > @Override > public void onClick() { > SelectedListActionToolbar.this.onClick(model); > } > }; > add(link); > > > } > > public abstract void onClick(final IModel<HashMap<Integer, Site>> > model); > > > > Delete Selected > > > > > AjaxFallbackDefaultDataTable dataTable = getTable(); > dataTable.addBottomToolbar(new > SelectedListActionToolbar(selectedSites,dataTable) > { > @Override > public void onClick(final IModel<HashMap<Integer, Site>> > model) { > //Delete the stuff! > } > }); > > add(dataTable); > > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
AbstractToolbar vs AjaxFallbackDefaultDataTable
Hi I am having a little trouble, making my own toolbar. Currently on pagination change my toolbar are added, but the old toolbar are not removed / updated. So for every click on pagination, additional toolbars are added. Short story: User clicks page 2 on AjaxFallbackDefaultDataTable User now sees two delete buttons public abstract class SelectedListActionToolbar extends AbstractToolbar { public SelectedListActionToolbar(final IModel> model, final DataTable table) { super(table); setOutputMarkupId(true); Link link=new Link("onAction"){ @Override public void onClick() { SelectedListActionToolbar.this.onClick(model); } }; add(link); } public abstract void onClick(final IModel > model); Delete Selected AjaxFallbackDefaultDataTable dataTable = getTable(); dataTable.addBottomToolbar(new SelectedListActionToolbar(selectedSites,dataTable) { @Override public void onClick(final IModel > model) { //Delete the stuff! } }); add(dataTable); -- Best regards / Med venlig hilsen Nino Martinez
Re: wicket 6.22 set mimetype for resource?
ok im trying the Application#getMimeType(String) approach.. Thanks On Mon, Sep 19, 2016 at 6:17 PM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > I have no web.xml it's pax wicket running on karaf.. > > Can I overwrite Application#getMimeType(String)? from wicket application? > > And next thing are that it's the request that sort of specifies it, if > the postfix are "#ie" that would determine that it should set the mime > type.. > > > > On Mon, Sep 19, 2016 at 5:06 PM, Sven Meier <s...@meiers.net> wrote: >> Hi, >> >> have you tried adding a mime-type to your web.xml >> >> http://stackoverflow.com/questions/10163917/changing-mime-type-for-xml-gz-in-tomcat >> >> ... or overwriting Application#getMimeType(String)? >> >> Have fun >> Sven >> >> >> On 19.09.2016 16:27, nino martinez wael wrote: >>> >>> Hi >>> >>> How can I set a specific mimetype for a resource(packaged resource)? >>> >>> in this case I need to set mimetype application/vnd.ms-fontobject >>> Im having troubles with bootstrap and IE.. >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket 6.22 set mimetype for resource?
I have no web.xml it's pax wicket running on karaf.. Can I overwrite Application#getMimeType(String)? from wicket application? And next thing are that it's the request that sort of specifies it, if the postfix are "#ie" that would determine that it should set the mime type.. On Mon, Sep 19, 2016 at 5:06 PM, Sven Meier <s...@meiers.net> wrote: > Hi, > > have you tried adding a mime-type to your web.xml > > http://stackoverflow.com/questions/10163917/changing-mime-type-for-xml-gz-in-tomcat > > ... or overwriting Application#getMimeType(String)? > > Have fun > Sven > > > On 19.09.2016 16:27, nino martinez wael wrote: >> >> Hi >> >> How can I set a specific mimetype for a resource(packaged resource)? >> >> in this case I need to set mimetype application/vnd.ms-fontobject >> Im having troubles with bootstrap and IE.. >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket 6.22 set mimetype for resource?
Hi How can I set a specific mimetype for a resource(packaged resource)? in this case I need to set mimetype application/vnd.ms-fontobject Im having troubles with bootstrap and IE.. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: stop wicket from rewriting references in my css file
I've looked everywhere and cant find references to CssUrlReplacer.. I will look into it later.. Thanks for the hints... -Nino On Thu, Jun 16, 2016 at 2:16 PM, Tobias Soloschenko <tobiassolosche...@googlemail.com> wrote: > Hi, > > If you don't add the CssUrlReplacer manually it is not active by default. If > URLs are replaced into Reference URLs it might be a manually added > CssUrlReplacer. > > If you don't want that some of the URLs are replaced you can consider to add > them into a different CSS file and add the name of the file to the excludes > of the CssUrlReplacer. > > kind regards > > Tobias > >> Am 16.06.2016 um 08:12 schrieb nino martinez wael >> <nino.martinez.w...@gmail.com>: >> >> Ok it looks like it could be something like that. BUT,i've changed >> nothing from stock options. Could that be enabled by default in 6.22 . >> Other option of course are that it is because of something in pax >> wicket.. I'll go check. >> >>> On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <b...@iswd.nl> wrote: >>> Sounds like you have enabled the css compressor / rewriter. By default it is >>> off. >>> >>> This assumes that you are letting wicket handle the css (which you do, as >>> you mention it is a shared resource). >>> >>> You are looking for Application#getResourceSettings() and >>> (I)ResourceSettings#(get|set)CssCompressor(). >>> It sounds like it is currently set to an instance of CssUrlReplacer in your >>> app, as that rewrites all references in CSS. >>> >>> Met vriendelijke groet, >>> Kind regards, >>> >>> Bas Gooren >>> >>> Op 15 juni 2016 bij 12:11:12, nino martinez wael >>> (nino.martinez.w...@gmail.com) schreef: >>> >>> Hi >>> >>> I currently have an issue where I add a shared css resource, but >>> wicket rewrites all references in the resource. I can't seem to find >>> the setting to turn of that part of wickets processing? >>> >>> -- >>> Best regards / Med venlig hilsen >>> Nino Martinez >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: stop wicket from rewriting references in my css file
Ok it looks like it could be something like that. BUT,i've changed nothing from stock options. Could that be enabled by default in 6.22 . Other option of course are that it is because of something in pax wicket.. I'll go check. On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <b...@iswd.nl> wrote: > Sounds like you have enabled the css compressor / rewriter. By default it is > off. > > This assumes that you are letting wicket handle the css (which you do, as > you mention it is a shared resource). > > You are looking for Application#getResourceSettings() and > (I)ResourceSettings#(get|set)CssCompressor(). > It sounds like it is currently set to an instance of CssUrlReplacer in your > app, as that rewrites all references in CSS. > > Met vriendelijke groet, > Kind regards, > > Bas Gooren > > Op 15 juni 2016 bij 12:11:12, nino martinez wael > (nino.martinez.w...@gmail.com) schreef: > > Hi > > I currently have an issue where I add a shared css resource, but > wicket rewrites all references in the resource. I can't seem to find > the setting to turn of that part of wickets processing? > > -- > Best regards / Med venlig hilsen > Nino Martinez > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: stop wicket from rewriting references in my css file
I forgot to mention that it's wicket 6.22 On Wed, Jun 15, 2016 at 12:11 PM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > Hi > > I currently have an issue where I add a shared css resource, but > wicket rewrites all references in the resource. I can't seem to find > the setting to turn of that part of wickets processing? > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
stop wicket from rewriting references in my css file
Hi I currently have an issue where I add a shared css resource, but wicket rewrites all references in the resource. I can't seem to find the setting to turn of that part of wickets processing? -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: remove listitem from listview backed by loadabledetachablemodel inside a form
Looks what Im trying todo are sort of a misuse of wicket, i'll fallback to using a plain model for the forms then. And thanks :) On Wed, Jun 8, 2016 at 9:42 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > The ListView will render whatever its underlying List contains. > It is up to you to decide how to load the items of the list and how to > store them. > You could use a composite model that has a slot for those custom entries > and another one that delegates to the LDM. > > You may also find the following article interesting: > http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Jun 8, 2016 at 7:43 PM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Hi >> >> Are there a way to remove one or more list items from a listview >> backed by a loadabledetachablemodel that are inside a form? >> >> I seem to be stuck at only be able to remove the current clicked >> item.. This applies whether or not ajax are used.. I think it's >> because the detachable model are detached between requests. forgetting >> the changes made to it (working as designed from wicket). >> >> Im interested in being able to remove items or potentially also adding >> items without persisting to our dao layer.. >> >> What are the options? >> >> 1.Making a normal model, that serializes the whole object graph >> 2.Making a shallow model copy that only keeps changes on disk? >> >> Or something completely different like manipulating the markup with >> jquery or something? >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
remove listitem from listview backed by loadabledetachablemodel inside a form
Hi Are there a way to remove one or more list items from a listview backed by a loadabledetachablemodel that are inside a form? I seem to be stuck at only be able to remove the current clicked item.. This applies whether or not ajax are used.. I think it's because the detachable model are detached between requests. forgetting the changes made to it (working as designed from wicket). Im interested in being able to remove items or potentially also adding items without persisting to our dao layer.. What are the options? 1.Making a normal model, that serializes the whole object graph 2.Making a shallow model copy that only keeps changes on disk? Or something completely different like manipulating the markup with jquery or something? -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Released] PAX-Wicket 3.0.4 now out!
It's "just" models that automatically return a service type from the osgi service registry, so for example the AbstractDetachableServiceModel This model makes it easier to work with OSGi services in Wicket. It is a LoadableDetachableModel that loads data via a Service accuired from the Service Registry. Where T is the service class and E are the return Object It also have nice error handling if the service are unavailable.. Of course it's still possible to use @Inject as normally. Or mix them, I'd personally prefer only one style per bundle though.. On Mon, May 30, 2016 at 1:16 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > Could you please share some more information about "Alternative Wicket > Models preconfigured for OSGI (Martin Nybo Nielsen)" ? > Thank you! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Mon, May 30, 2016 at 12:52 PM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> PAX-Wicket 3.0.4, running Wicket OSGI style >> >> Main goal for this release are to bring PAX-Wicket to working state on >> Apache Karaf 4.x, while retaining compability the other containers >> >> Major features >> * Working with Karaf 4.x (Nino Martinez Wael) >> * Working wik Wicket 6.22 (Nino Martinez Wael) >> * Karaf Feature files for all samples (Nino Martinez Wael) >> * Alternative Wicket Models preconfigured for OSGI (Martin Nybo Nielsen) >> * Reworked Internals to provide better support (Christoph Läubrich) >> * Integration tests for Apache Karaf added >> >> >> KNOWN Issues >> * Weaving hook has been disabled, it added dependencies to dynamic imports. >> >> Thanks for OPS4J people for making this happen >> >> Want to know more about PAX-Wicket GO here: >> >> https://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[Released] PAX-Wicket 3.0.4 now out!
PAX-Wicket 3.0.4, running Wicket OSGI style Main goal for this release are to bring PAX-Wicket to working state on Apache Karaf 4.x, while retaining compability the other containers Major features * Working with Karaf 4.x (Nino Martinez Wael) * Working wik Wicket 6.22 (Nino Martinez Wael) * Karaf Feature files for all samples (Nino Martinez Wael) * Alternative Wicket Models preconfigured for OSGI (Martin Nybo Nielsen) * Reworked Internals to provide better support (Christoph Läubrich) * Integration tests for Apache Karaf added KNOWN Issues * Weaving hook has been disabled, it added dependencies to dynamic imports. Thanks for OPS4J people for making this happen Want to know more about PAX-Wicket GO here: https://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Backing components with map as model?
thanks On Fri, Apr 29, 2016 at 8:48 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > There is nothing special with the maps. > YourComponent#getModelObject() will return a Map that you could use as you > find appropriate, > I guess you recall that (Compound)PropertyModel supports maps. Check > PropertyModel and PropertyResolver's javadoc for examples. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Apr 29, 2016 at 8:13 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Hi >> >> I weakly remember something about one being able to back a component >> with a map as model.. >> >> The usecase are that the datamodel er not ready but we have a pretty >> good picture of how the ui should look. So I want to be able to pseudo >> implement it in wicket without having to wait for the backend design.. >> >> Could someone point me to an example? >> >> Thanks. >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Backing components with map as model?
Hi I weakly remember something about one being able to back a component with a map as model.. The usecase are that the datamodel er not ready but we have a pretty good picture of how the ui should look. So I want to be able to pseudo implement it in wicket without having to wait for the backend design.. Could someone point me to an example? Thanks. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[7.2] ContextRelativeResourceReference
I am having a hard time getting the ContextRelativeResourceReference to work. I thought it was supposed to grab the specified resource from the web container relative to where the wicketapplication where mounted. In my case my directory layout are like the attached image. And I have configured jetty like this: // Static resources String staticPath = "src/main/webapp/"; ServletHolder resourceServlet = new ServletHolder(DefaultServlet.class); resourceServlet.setInitParameter("dirAllowed", "true"); resourceServlet.setInitParameter("resourceBase", staticPath); resourceServlet.setInitParameter("pathInfoOnly", "true"); sch.addServlet(resourceServlet, "/webdialer/*"); I have also tried without the "webdialer" part, and the leading slash. Jetty does server the resources just fine. I am using the config: ContextRelativeResourceReference("css/lavish-bootstrap.css") Here are the error I am getting: Last cause: The requested resource was not found: /css/lavish-bootstrap.css WicketMessage: org.apache.wicket.util.resource.ResourceStreamNotFoundException: The requested resource was not found: /css/lavish-bootstrap.css -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [7.2] LoadableDetachable model attached but object null?
Our backend threw a null, which gave problems in other places..SO this is not a wicket problem :) On Wed, Mar 16, 2016 at 9:18 AM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > Now this is really strange! I can confirm that load are being called. > I will digg further, looks like it could be some kind of injection > issue.. Which probably are related to the other problem I have with > the modal window as it only occurs when the user have two tabs open.. > > On Wed, Mar 16, 2016 at 9:08 AM, nino martinez wael > <nino.martinez.w...@gmail.com> wrote: >> Hi Sven >> >> I agree. But in this case it seems that load are never being called >> because state=attached.. :( >> >> I will check whether detached are ever being called. >> >> On Wed, Mar 16, 2016 at 8:52 AM, Sven Meier <s...@meiers.net> wrote: >>> Hi, >>> >>> load() may return null, nothing (inherently) wrong with that. >>> >>> Sven >>> >>> On 16.03.2016 08:48, nino martinez wael wrote: >>>> >>>> Hi >>>> >>>> Any ideas on how a loadableDetachableModel can become in attached >>>> state but the refered object are null? Seems to be out of sync? >>>> >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez > > > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [7.2] multiple pages Access Denied
Our backend threw a null, which gave problems in other places..SO this is not a wicket problem :) On Fri, Mar 11, 2016 at 11:47 AM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > IT would appear so. BUT we actually do not have a direct link between > A and B, in our testing we manually open a secondary tab and put in an > url for the mounted page B which.. After page B are loaded this error > happens on page A when the link are pressed.. > > On Fri, Mar 11, 2016 at 11:28 AM, Martin Grigorov <mgrigo...@apache.org> > wrote: >> It looks like you have logic that changes addcontactButton's visibility or >> enable-bility in some conditions. >> Check what exactly changes when you open page B. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Fri, Mar 11, 2016 at 9:25 AM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >>> Hi >>> >>> I have something strange (as always). Two pages A and B >>> >>> If I open the two pages in the same session on two different tabs. >>> Invoking an ajax behavior (wicket modal panel) yields >>> >>> Access Denied >>> >>> stack tells me this: >>> >>> Behavior rejected interface invocation. Component: [AjaxLink >>> [Component id = addcontactButton]] Behavior: >>> org.apache.wicket.ajax.markup.html.AjaxLink$1@79f8700 Listener: >>> [RequestListenerInterface name=IBehaviorListener, method=public >>> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] >>> >>> If I only mess around with page A there are no problems. But opening >>> Page B in another tab apparently triggers this. It does not matter if >>> there is ajax or not on page B >>> >>> >>> -- >>> Best regards / Med venlig hilsen >>> Nino Martinez >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [7.2] LoadableDetachable model attached but object null?
Now this is really strange! I can confirm that load are being called. I will digg further, looks like it could be some kind of injection issue.. Which probably are related to the other problem I have with the modal window as it only occurs when the user have two tabs open.. On Wed, Mar 16, 2016 at 9:08 AM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > Hi Sven > > I agree. But in this case it seems that load are never being called > because state=attached.. :( > > I will check whether detached are ever being called. > > On Wed, Mar 16, 2016 at 8:52 AM, Sven Meier <s...@meiers.net> wrote: >> Hi, >> >> load() may return null, nothing (inherently) wrong with that. >> >> Sven >> >> On 16.03.2016 08:48, nino martinez wael wrote: >>> >>> Hi >>> >>> Any ideas on how a loadableDetachableModel can become in attached >>> state but the refered object are null? Seems to be out of sync? >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [7.2] LoadableDetachable model attached but object null?
Hi Sven I agree. But in this case it seems that load are never being called because state=attached.. :( I will check whether detached are ever being called. On Wed, Mar 16, 2016 at 8:52 AM, Sven Meier <s...@meiers.net> wrote: > Hi, > > load() may return null, nothing (inherently) wrong with that. > > Sven > > On 16.03.2016 08:48, nino martinez wael wrote: >> >> Hi >> >> Any ideas on how a loadableDetachableModel can become in attached >> state but the refered object are null? Seems to be out of sync? >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[7.2] LoadableDetachable model attached but object null?
Hi Any ideas on how a loadableDetachableModel can become in attached state but the refered object are null? Seems to be out of sync? -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [7.2] multiple pages Access Denied
IT would appear so. BUT we actually do not have a direct link between A and B, in our testing we manually open a secondary tab and put in an url for the mounted page B which.. After page B are loaded this error happens on page A when the link are pressed.. On Fri, Mar 11, 2016 at 11:28 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > It looks like you have logic that changes addcontactButton's visibility or > enable-bility in some conditions. > Check what exactly changes when you open page B. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Mar 11, 2016 at 9:25 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Hi >> >> I have something strange (as always). Two pages A and B >> >> If I open the two pages in the same session on two different tabs. >> Invoking an ajax behavior (wicket modal panel) yields >> >> Access Denied >> >> stack tells me this: >> >> Behavior rejected interface invocation. Component: [AjaxLink >> [Component id = addcontactButton]] Behavior: >> org.apache.wicket.ajax.markup.html.AjaxLink$1@79f8700 Listener: >> [RequestListenerInterface name=IBehaviorListener, method=public >> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] >> >> If I only mess around with page A there are no problems. But opening >> Page B in another tab apparently triggers this. It does not matter if >> there is ajax or not on page B >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[7.2] multiple pages Access Denied
Hi I have something strange (as always). Two pages A and B If I open the two pages in the same session on two different tabs. Invoking an ajax behavior (wicket modal panel) yields Access Denied stack tells me this: Behavior rejected interface invocation. Component: [AjaxLink [Component id = addcontactButton]] Behavior: org.apache.wicket.ajax.markup.html.AjaxLink$1@79f8700 Listener: [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] If I only mess around with page A there are no problems. But opening Page B in another tab apparently triggers this. It does not matter if there is ajax or not on page B -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Bootstrap & wicket 7.2
Ok did some further digging.. And this seems to be related to an error in a IComponentOnBeforeRenderListener which we use for prettyfying form errors.. SO this is not related to bootstrap or wicket itself.. On Thu, Mar 10, 2016 at 12:12 AM, Martin Grigorov <martin.grigo...@gmail.com> wrote: > Yes. I use latest version of both in my project. > On Mar 10, 2016 12:09 AM, "nino martinez wael" <nino.martinez.w...@gmail.com> > wrote: > >> I've added an issue here: >> >> https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/590 >> >> Cant remenber if theres actually an example for it in the wicket >> bootstrap tests, have you tried wicket 7.2 with bootstrap? >> >> On Thu, Mar 10, 2016 at 12:01 AM, Martin Grigorov >> <martin.grigo...@gmail.com> wrote: >> > On Mar 9, 2016 11:59 PM, "nino martinez wael" < >> nino.martinez.w...@gmail.com> >> > wrote: >> >> >> >> Have anyone used this in conjuction with wicket 7.2.. I had to upgrade >> >> to wicket 7.2 because of problems with [WICKET-6002].. >> >> >> >> But wicket bootstrap throws strange exceptions about missing fields >> >> that it did not do in 7.1. >> > >> > Example would be helpful ! >> > >> >> >> >> >> >> -- >> >> Best regards / Med venlig hilsen >> >> Nino Martinez >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Bootstrap & wicket 7.2
I've added an issue here: https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/590 Cant remenber if theres actually an example for it in the wicket bootstrap tests, have you tried wicket 7.2 with bootstrap? On Thu, Mar 10, 2016 at 12:01 AM, Martin Grigorov <martin.grigo...@gmail.com> wrote: > On Mar 9, 2016 11:59 PM, "nino martinez wael" <nino.martinez.w...@gmail.com> > wrote: >> >> Have anyone used this in conjuction with wicket 7.2.. I had to upgrade >> to wicket 7.2 because of problems with [WICKET-6002].. >> >> But wicket bootstrap throws strange exceptions about missing fields >> that it did not do in 7.1. > > Example would be helpful ! > >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Bootstrap & wicket 7.2
Have anyone used this in conjuction with wicket 7.2.. I had to upgrade to wicket 7.2 because of problems with [WICKET-6002].. But wicket bootstrap throws strange exceptions about missing fields that it did not do in 7.1. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket cheat sheet updated?
Yeah I was wondering if there was an updated version somewhere..? On Jan 8, 2016 9:58 AM, "Martin Grigorov" <mgrigo...@apache.org> wrote: > Hi, > > The Wicket related page (page 1) looks OK, but the Wicketstuff one (page 2) > refers to some unsupported modules like Dojo, Scriptaculous, etc. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Fri, Jan 8, 2016 at 8:25 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi Guys > > > > I'ts been a while.. > > > > Have anyone done an overview like this for the current version of wicket? > > > > > > > https://cwiki.apache.org/confluence/download/attachments/87268/wicketcheatsheet.pdf?version=1=121245471=v2 > > > > Im mostly thinking of references to external projects.. IE I want this > > feature, and that project solves it ? > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Wicket cheat sheet updated?
Hi Guys I'ts been a while.. Have anyone done an overview like this for the current version of wicket? https://cwiki.apache.org/confluence/download/attachments/87268/wicketcheatsheet.pdf?version=1=121245471=v2 Im mostly thinking of references to external projects.. IE I want this feature, and that project solves it ? -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: New Wicket Website
and its up again.. On Fri, Aug 21, 2015 at 11:40 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: argh! that was supposed to be inmethod grid On Fri, Aug 21, 2015 at 11:39 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I was cruising by, seems ingrid live examples are down: http://www.wicket-library.com/inmethod-grid/data-grid/simple On Sun, Jul 12, 2015 at 9:23 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks! On Sat, Jul 11, 2015 at 8:01 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Hi, just want to thank all for the great work! The new site is awesome! https://wicket.apache.org kind regards Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: New Wicket Website
I was cruising by, seems ingrid live examples are down: http://www.wicket-library.com/inmethod-grid/data-grid/simple On Sun, Jul 12, 2015 at 9:23 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks! On Sat, Jul 11, 2015 at 8:01 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Hi, just want to thank all for the great work! The new site is awesome! https://wicket.apache.org kind regards Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: New Wicket Website
argh! that was supposed to be inmethod grid On Fri, Aug 21, 2015 at 11:39 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I was cruising by, seems ingrid live examples are down: http://www.wicket-library.com/inmethod-grid/data-grid/simple On Sun, Jul 12, 2015 at 9:23 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks! On Sat, Jul 11, 2015 at 8:01 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Hi, just want to thank all for the great work! The new site is awesome! https://wicket.apache.org kind regards Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Testing Wicket app with JMeter
Hi there's an article on the wicket wiki On 18 Jul 2014 15:34, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I must perform some load test for our application and just found JMeter which seems suit our needs. My problem is that the first step is logging in to the app and can not get JMeter to manage it. I ran a recording script process and everything looked fine but wicket changes a hidden field name (which points to the current form's name) in my login form so the another session gets another name of it. I suspect this is why the login process does not work. There is nothing magical in the login form. Username, pass and lang fields. So I'm wondering if anybody used successfuly JMeter for this kind of testing! TIA., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Testing-Wicket-app-with-JMeter-tp480.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
Brix dead?
How are brix moving along...seems to be a little dead, not much going on in github? Regards Nino
Re: Wicket merchandise
This time there was enough money to AWARD no less than three hardworking Wicketeers (in fact all of the nominees). Merchandise are on it's way to Andrea Del Bene Martin Grigorov Sven Meier Continue your good work. And for the rest of us the more we use Wicket the better it becomes. Best regards to you all and I hope to do this again :) You can support this thing by buying from : www.*cafepress*.com/*apachewicket* If you feel the prices are too high, I have the base images available (somewhere) upon email request. 2013/9/18 nino martinez wael nino.martinez.w...@gmail.com Hi Guys long time no see.. Apparently there are some money left on the wicket merchandise shop (http://www.cafepress.com/apachewicket).. So I suggest that it's time for the community to nominee and vote on who should have a cap, tshirt or coffee mug for their effort.. So if someone would gather nominees and handle the vote.. I'll send the merchandise to the lucky (or hard working) winner :) I'll follow on the side line.. -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket merchandise
hmm does work for me: http://www.cafepress.com/apachewicket 2013/9/18 Pierre Goupil goupilpie...@gmail.com That's a good idea! But unfortunately, the link gives me a 404 and a search for Wicket or Apache Wicket retrieves nothing relevant. Anyway: let's go! :-) Pierre On Wed, Sep 18, 2013 at 9:23 PM, Martin Grigorov mgrigo...@apache.org wrote: Sven Meier +1 On Wed, Sep 18, 2013 at 10:10 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys long time no see.. Apparently there are some money left on the wicket merchandise shop (http://www.cafepress.com/apachewicket).. So I suggest that it's time for the community to nominee and vote on who should have a cap, tshirt or coffee mug for their effort.. So if someone would gather nominees and handle the vote.. I'll send the merchandise to the lucky (or hard working) winner :) I'll follow on the side line.. -- Best regards / Med venlig hilsen Nino Martinez -- Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas mal. Alors frappez-moi de musique ! Frappez-moi de musique, maintenant ! (Bob Marley : Trenchtown Rock) -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket merchandise
could you set up nominees one something like this : http://www.easypolls.net/ ? 2013/9/18 Martin Grigorov mgrigo...@apache.org Sven Meier +1 On Wed, Sep 18, 2013 at 10:10 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys long time no see.. Apparently there are some money left on the wicket merchandise shop (http://www.cafepress.com/apachewicket).. So I suggest that it's time for the community to nominee and vote on who should have a cap, tshirt or coffee mug for their effort.. So if someone would gather nominees and handle the vote.. I'll send the merchandise to the lucky (or hard working) winner :) I'll follow on the side line.. -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez
Wicket merchandise
Hi Guys long time no see.. Apparently there are some money left on the wicket merchandise shop (http://www.cafepress.com/apachewicket).. So I suggest that it's time for the community to nominee and vote on who should have a cap, tshirt or coffee mug for their effort.. So if someone would gather nominees and handle the vote.. I'll send the merchandise to the lucky (or hard working) winner :) I'll follow on the side line.. -- Best regards / Med venlig hilsen Nino Martinez
Re: SessionStore
Great wasnt sure if it were memory only.. 2012/10/2 Martin Grigorov mgrigo...@apache.org org.apache.wicket.pageStore.memory.HttpSessionDataStore On Tue, Oct 2, 2012 at 3:49 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Are there a memory only session store? I am seeing a lot of writes from tomcat, and wanted to see if using a different session store would help.. we are using LDM's extensively. -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
Re: 1.5 - 6 wheres org.apache.wicket.ajax.IAjaxCallDecorator?
thanks everyone.. 2012/9/28 Timo Schmidt wic...@xomit.de On Fri 28.09.2012 14:34, nino martinez wael wrote: So where is it? What should I do ? I could not find anything about it here: https://cwiki.apache.org/WICKET/migration-to-wicket-60.html#MigrationtoWicket6.0-Refactorings See https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax espcially the part about AjaxRequestAttributes. -Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
Re: Performance tuning Wicket[1.5]...
No what I meant was that the system er performing as good as it can, without clustering etc. There weren't much stuff to optimize on. 2012/8/31 Alex Shubert alex.shub...@gmail.com Maybe bottleneck is somewhere else? SQL request maybe? Some eager loading... On 29 August 2012 10:31, nino martinez wael nino.martinez.w...@gmail.com wrote: A little feedback. First I tried visualVM (did not provide enough detail for this extreme optimization), then jprofiler (had trouble getting it to work), but yourkit gave the best result. However there was little I could do, other than removing an unnecessary filter (character encoding fix for tomcat/wicket).. Other than that there werent many hotspots. regards Nino 2012/8/27 nino martinez wael nino.martinez.w...@gmail.com Yup, I'll do that another round.. Although I'll use visualvm... 2012/8/27 Martin Grigorov mgrigo...@apache.org Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server. Tried these settings in wicketapplication: getPageSettings().setVersionPagesByDefault(false); getStoreSettings().setInmemoryCacheSize(200); And in our MainPage: setVersioned(false); All of our services are being cached, so it's not the backend thats the problem.. Im using LDM's everywhere. Our main page are using ajax to refresh itself. And load turns linearly bad, until max load on somewhere around 100 sessions. Memory are not a problem, wicket app uses very little around 100 mb and server has 4gb. CPU are a AMD opteron 2.2 ghz. -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
Re: Performance tuning Wicket[1.5]...
Nope this was just the app taking much resources.. It scales linearly with number of sessions. Im using ajax on the main page, otherwise I would have tried to make it stateless. 2012/8/31 Thomas Götz t...@decoded.de Hm, Java leap second bug? http://blog.wpkg.org/2012/07/01/java-leap-second-bug-30-june-1-july-2012-fix/ -Tom On 31.08.2012, at 12:19, nino martinez wael nino.martinez.w...@gmail.com wrote: No what I meant was that the system er performing as good as it can, without clustering etc. There weren't much stuff to optimize on. 2012/8/31 Alex Shubert alex.shub...@gmail.com Maybe bottleneck is somewhere else? SQL request maybe? Some eager loading... On 29 August 2012 10:31, nino martinez wael nino.martinez.w...@gmail.com wrote: A little feedback. First I tried visualVM (did not provide enough detail for this extreme optimization), then jprofiler (had trouble getting it to work), but yourkit gave the best result. However there was little I could do, other than removing an unnecessary filter (character encoding fix for tomcat/wicket).. Other than that there werent many hotspots. regards Nino 2012/8/27 nino martinez wael nino.martinez.w...@gmail.com Yup, I'll do that another round.. Although I'll use visualvm... 2012/8/27 Martin Grigorov mgrigo...@apache.org Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server. Tried these settings in wicketapplication: getPageSettings().setVersionPagesByDefault(false); getStoreSettings().setInmemoryCacheSize(200); And in our MainPage: setVersioned(false); All of our services are being cached, so it's not the backend thats the problem.. Im using LDM's everywhere. Our main page are using ajax to refresh itself. And load turns linearly bad, until max load on somewhere around 100 sessions. Memory are not a problem, wicket app uses very little around 100 mb and server has 4gb. CPU are a AMD opteron 2.2 ghz. -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
Re: Performance tuning Wicket[1.5]...
A little feedback. First I tried visualVM (did not provide enough detail for this extreme optimization), then jprofiler (had trouble getting it to work), but yourkit gave the best result. However there was little I could do, other than removing an unnecessary filter (character encoding fix for tomcat/wicket).. Other than that there werent many hotspots. regards Nino 2012/8/27 nino martinez wael nino.martinez.w...@gmail.com Yup, I'll do that another round.. Although I'll use visualvm... 2012/8/27 Martin Grigorov mgrigo...@apache.org Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server. Tried these settings in wicketapplication: getPageSettings().setVersionPagesByDefault(false); getStoreSettings().setInmemoryCacheSize(200); And in our MainPage: setVersioned(false); All of our services are being cached, so it's not the backend thats the problem.. Im using LDM's everywhere. Our main page are using ajax to refresh itself. And load turns linearly bad, until max load on somewhere around 100 sessions. Memory are not a problem, wicket app uses very little around 100 mb and server has 4gb. CPU are a AMD opteron 2.2 ghz. -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez
Re: Performance tuning Wicket[1.5]...
Yup, I'll do that another round.. Although I'll use visualvm... 2012/8/27 Martin Grigorov mgrigo...@apache.org Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server. Tried these settings in wicketapplication: getPageSettings().setVersionPagesByDefault(false); getStoreSettings().setInmemoryCacheSize(200); And in our MainPage: setVersioned(false); All of our services are being cached, so it's not the backend thats the problem.. Im using LDM's everywhere. Our main page are using ajax to refresh itself. And load turns linearly bad, until max load on somewhere around 100 sessions. Memory are not a problem, wicket app uses very little around 100 mb and server has 4gb. CPU are a AMD opteron 2.2 ghz. -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
portlet support in 1.5 1.6?
So is there any? -- Best regards / Med venlig hilsen Nino Martinez
wicket 6 beta 1
Hi Should'nt it be possible to this: target.add(*this*.getComponent().getPage()); target.appendJavaScript( $('.+*this*.getComponent().getMarkupId()+ ').focus();); However the appendJavaScript is omitted... -- Best regards / Med venlig hilsen Nino Martinez
Re: wicket 6 beta 1
Would be Nice with a hint about that.. Regards On May 23, 2012 2:51 PM, Martin Grigorov mgrigo...@apache.org wrote: adding the page for ajax re-render actually rerenders the page with a redirect. So, the answer is NO. On Wed, May 23, 2012 at 3:44 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Should'nt it be possible to this: target.add(*this*.getComponent().getPage()); target.appendJavaScript( $('.+*this*.getComponent().getMarkupId()+ ').focus();); However the appendJavaScript is omitted... -- Best regards / Med venlig hilsen Nino Martinez -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 Stared blind patterndateconverter
seems to be an issue with joda time as this fails too: @Test public void testJoda(){ DateTimeFormatter withPivotYear = DateTimeFormat.forPattern(HH:mm).withLocale(new Locale(da_DK)); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); DateTime dt = new DateTime((dateModified).getTime(), DateTimeZone.getDefault()); String result=withPivotYear.print(dt); Assert.assertTrue(00:00.equalsIgnoreCase(result)); } Looking into it: my instance of dt becomes this 1899-12-31T23:09:21.857+00:09:21 ! Gonna ask the joda guys why this happens! 2012/4/17 nino martinez wael nino.martinez.w...@gmail.com I could be something with the time zone: this fails aswell: PatternDateConverter converter=new PatternDateConverter(HH:mm, false); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=converter.convertToString(dateModified, new Locale(da_DK)); Assert.assertTrue(00:00.equalsIgnoreCase(result)); pretty strange. BUT this does not: @Test public void testSimpleDateformatter(){ SimpleDateFormat sdf=new SimpleDateFormat(HH:mm); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=sdf.format(dateModified); Assert.assertTrue(00:00.equalsIgnoreCase(result)); } 2012/4/16 Hans Lesmeister 2 hans.lesmeis...@lessy-software.de Hi, if I run your test, the result is just a space. If I change the Date-Pattern to HH:mm, the test goes green May be you are in the wrong time-zone... :-) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-Stared-blind-patterndateconverter-tp4561565p4561641.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 -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez
Re: 1.5 Stared blind patterndateconverter
I could be something with the time zone: this fails aswell: PatternDateConverter converter=new PatternDateConverter(HH:mm, false); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=converter.convertToString(dateModified, new Locale(da_DK)); Assert.assertTrue(00:00.equalsIgnoreCase(result)); pretty strange. BUT this does not: @Test public void testSimpleDateformatter(){ SimpleDateFormat sdf=new SimpleDateFormat(HH:mm); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=sdf.format(dateModified); Assert.assertTrue(00:00.equalsIgnoreCase(result)); } 2012/4/16 Hans Lesmeister 2 hans.lesmeis...@lessy-software.de Hi, if I run your test, the result is just a space. If I change the Date-Pattern to HH:mm, the test goes green May be you are in the wrong time-zone... :-) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-Stared-blind-patterndateconverter-tp4561565p4561641.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 -- Best regards / Med venlig hilsen Nino Martinez
Re: attributeappender not rendered / processed
fyi it was a bug in our code 2012/3/23 nino martinez wael nino.martinez.w...@gmail.com Yes are using ajax, but it's the same when not using ajax.. 2012/3/23 Michal Wegrzyn michal.wegr...@onior.com Are you using ajax? Maybe you are adding appender but form container is not added to the ajax target? Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 16:20 To: users@wicket.apache.org Subject: RE: attributeappender not rendered / processed Seems it never hits that for that appender... On Mar 23, 2012 4:11 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi Nino, Check void org.apache.wicket.AttributeModifier.replaceAttributeValue(Component component, ComponentTag tag). Probably component is not enabled or value is null. Debug if there is a need. Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 15:48 To: users@wicket.apache.org Subject: attributeappender not rendered / processed Hi Im wondering what could cause a attributeappender not to be rendered? One thing I guess would be if the component are not enabled.. heres my code: AttributeAppender attributeAppender = AttributeModifier.append( class, new ModelString(getCssClass())); triggerSchedulePanel.getFormContainer().add(attributeAppender); However the string in getCssClass() are never appended, first I tried in the fieldset in the form, then the form and now lastly the container however theres no difference, nothing are appended.. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez -- Best regards / Med venlig hilsen Nino Martinez
attributeappender not rendered / processed
Hi Im wondering what could cause a attributeappender not to be rendered? One thing I guess would be if the component are not enabled.. heres my code: AttributeAppender attributeAppender = AttributeModifier.append( class, new ModelString(getCssClass())); triggerSchedulePanel.getFormContainer().add(attributeAppender); However the string in getCssClass() are never appended, first I tried in the fieldset in the form, then the form and now lastly the container however theres no difference, nothing are appended.. -- Best regards / Med venlig hilsen Nino Martinez
RE: attributeappender not rendered / processed
Seems it never hits that for that appender... On Mar 23, 2012 4:11 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi Nino, Check void org.apache.wicket.AttributeModifier.replaceAttributeValue(Component component, ComponentTag tag). Probably component is not enabled or value is null. Debug if there is a need. Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 15:48 To: users@wicket.apache.org Subject: attributeappender not rendered / processed Hi Im wondering what could cause a attributeappender not to be rendered? One thing I guess would be if the component are not enabled.. heres my code: AttributeAppender attributeAppender = AttributeModifier.append( class, new ModelString(getCssClass())); triggerSchedulePanel.getFormContainer().add(attributeAppender); However the string in getCssClass() are never appended, first I tried in the fieldset in the form, then the form and now lastly the container however theres no difference, nothing are appended.. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: attributeappender not rendered / processed
Yes are using ajax, but it's the same when not using ajax.. 2012/3/23 Michal Wegrzyn michal.wegr...@onior.com Are you using ajax? Maybe you are adding appender but form container is not added to the ajax target? Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 16:20 To: users@wicket.apache.org Subject: RE: attributeappender not rendered / processed Seems it never hits that for that appender... On Mar 23, 2012 4:11 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi Nino, Check void org.apache.wicket.AttributeModifier.replaceAttributeValue(Component component, ComponentTag tag). Probably component is not enabled or value is null. Debug if there is a need. Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Friday, March 23, 2012 15:48 To: users@wicket.apache.org Subject: attributeappender not rendered / processed Hi Im wondering what could cause a attributeappender not to be rendered? One thing I guess would be if the component are not enabled.. heres my code: AttributeAppender attributeAppender = AttributeModifier.append( class, new ModelString(getCssClass())); triggerSchedulePanel.getFormContainer().add(attributeAppender); However the string in getCssClass() are never appended, first I tried in the fieldset in the form, then the form and now lastly the container however theres no difference, nothing are appended.. -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards / Med venlig hilsen Nino Martinez
Re: Serialize exceptions
Hi heres a part of the stacktrace, im wondering why it bypasses the proxy, I thought it would never venture beyond that: 2012-03-22 15:51:55,739 ERROR [org.apache.wicket.serialize.java.JavaSerializer] - Error serializing object class com.netdesign.wallboard.page.ViewerPage [object=[Page class = com.netdesign.wallboard.page.ViewerPage, id = 6, render count = 1]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: com.google.inject.internal.InjectorImpl$4 Field hierarchy is: 6 [class=com.netdesign.wallboard.page.ViewerPage, path=6] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.wallboard.panel.WallboardShowPanel, path=6:wallboardShow] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=com.netdesign.wallboard.panel.WallboardShowPanel$1, path=6:wallboardShow:columnList] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private final java.lang.annotation.Annotation org.apache.wicket.guice.GuiceProxyTargetLocator.bindingAnnotation[2] [class=org.apache.wicket.markup.html.list.ListItem, path=6:wallboardShow:columnList:2] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.wallboard.panel.DisplayItemShowPanel, path=6:wallboardShow:columnList:2:column] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] java.lang.Object org.apache.wicket.Component.data[1] [class=com.netdesign.wallboard.panel.DisplayItemShowPanel$1, path=6:wallboardShow:columnList:2:column:list] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=org.apache.wicket.markup.html.list.ListItem, path=6:wallboardShow:columnList:2:column:list:0] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.remedy.panel.DisplayItemRemedyShowPanel, path=6:wallboardShow:columnList:2:column:list:0:displayItemShowPanel] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.remedy.panel.DisplayItemRemedyShowPanel$1, path=6:wallboardShow:columnList:2:column:list:0:displayItemShowPanel:remedyItems] java.lang.Object org.apache.wicket.Component.data [class=com.netdesign.remedy.provider.RemedyWallboardViewerProvider$2] final com.netdesign.remedy.provider.RemedyWallboardViewerProvider com.netdesign.remedy.provider.RemedyWallboardViewerProvider$2.this$0 [class=com.netdesign.remedy.provider.RemedyWallboardViewerProvider] private com.netdesign.wallboard.core.interfaces.WallBoardMainDataProvider com.netdesign.remedy.provider.RemedyWallboardViewerProvider.wallBoardMainDataProvider [class=com.netdesign.wallboard.core.WallboardMainDataProviderImpl] private com.netdesign.wallboard.core.dao.CoreDaoService com.netdesign.wallboard.core.WallboardMainDataProviderImpl.coreDaoService [class=com.netdesign.wallboard.core.dao.CoreDaoServiceImp$$EnhancerByGuice$$29968411] protected com.google.inject.Provider com.netdesign.wallboard.core.dao.CoreDaoServiceImp.em [class=com.google.inject.internal.InjectorImpl$4] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:386) Part of matching code: public class DisplayItemRemedyShowPanel extends Panel { @Inject private WallBoardMainDataProvider wallBoardMainDataProvider; private Logger logger = LoggerFactory .getLogger(DisplayItemRemedyShowPanel.class); public DisplayItemRemedyShowPanel(String id, final String queue, final IModelListRemedyItem RemedyItemsModel, final RemedyDisplayItem remedyDisplayItem) { AND when debugging wallBoardMainDataProvider is wrapped by a proxy.. Of course the internals of the target of the proxy are not. 2012/3/21 Martin Grigorov mgrigo...@apache.org Wicket-Guice will inject serializable Proxy. It seems Guice's plain Injector injects the binding. Check why. On Wed, Mar 21, 2012 at 9:55 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: Hi I get a serialize exception in a panel of mine its correct that one of the contained fields cannot be serialized, however this field are injected and should not be touched by the checker, the field are marked with the @inject annotation. I'm using guice for injection.. Any thing obvious wrong with this? Java serialization does not care for that annotation, only whether it is declared transient or sports the Serializable marker
Re: Serialize exceptions
It returnes only external named classes... Which in turn are used by another wicket panel down the road, I guess that could be the cause Will check tomorrow.. Thanks for hint. On Mar 22, 2012 5:27 PM, Dan Retzlaff dretzl...@gmail.com wrote: Does WallBoardMainDataProvider return a non-static inner class that retains a reference to the non-proxied implementation? FWIW, we avoid @Inject'ed IDataProviders since they tend to retain state (filter/query params etc), and instead give them their service proxies with Injector.get().inject(this) in their constructors. On Thu, Mar 22, 2012 at 7:56 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi heres a part of the stacktrace, im wondering why it bypasses the proxy, I thought it would never venture beyond that: 2012-03-22 15:51:55,739 ERROR [org.apache.wicket.serialize.java.JavaSerializer] - Error serializing object class com.netdesign.wallboard.page.ViewerPage [object=[Page class = com.netdesign.wallboard.page.ViewerPage, id = 6, render count = 1]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: com.google.inject.internal.InjectorImpl$4 Field hierarchy is: 6 [class=com.netdesign.wallboard.page.ViewerPage, path=6] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.wallboard.panel.WallboardShowPanel, path=6:wallboardShow] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=com.netdesign.wallboard.panel.WallboardShowPanel$1, path=6:wallboardShow:columnList] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private final java.lang.annotation.Annotation org.apache.wicket.guice.GuiceProxyTargetLocator.bindingAnnotation[2] [class=org.apache.wicket.markup.html.list.ListItem, path=6:wallboardShow:columnList:2] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.wallboard.panel.DisplayItemShowPanel, path=6:wallboardShow:columnList:2:column] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] java.lang.Object org.apache.wicket.Component.data[1] [class=com.netdesign.wallboard.panel.DisplayItemShowPanel$1, path=6:wallboardShow:columnList:2:column:list] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=org.apache.wicket.markup.html.list.ListItem, path=6:wallboardShow:columnList:2:column:list:0] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.remedy.panel.DisplayItemRemedyShowPanel, path=6:wallboardShow:columnList:2:column:list:0:displayItemShowPanel] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=com.netdesign.remedy.panel.DisplayItemRemedyShowPanel$1, path=6:wallboardShow:columnList:2:column:list:0:displayItemShowPanel:remedyItems] java.lang.Object org.apache.wicket.Component.data [class=com.netdesign.remedy.provider.RemedyWallboardViewerProvider$2] final com.netdesign.remedy.provider.RemedyWallboardViewerProvider com.netdesign.remedy.provider.RemedyWallboardViewerProvider$2.this$0 [class=com.netdesign.remedy.provider.RemedyWallboardViewerProvider] private com.netdesign.wallboard.core.interfaces.WallBoardMainDataProvider com.netdesign.remedy.provider.RemedyWallboardViewerProvider.wallBoardMainDataProvider [class=com.netdesign.wallboard.core.WallboardMainDataProviderImpl] private com.netdesign.wallboard.core.dao.CoreDaoService com.netdesign.wallboard.core.WallboardMainDataProviderImpl.coreDaoService [class=com.netdesign.wallboard.core.dao.CoreDaoServiceImp$$EnhancerByGuice$$29968411] protected com.google.inject.Provider com.netdesign.wallboard.core.dao.CoreDaoServiceImp.em [class=com.google.inject.internal.InjectorImpl$4] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:386) Part of matching code: public class DisplayItemRemedyShowPanel extends Panel { @Inject private WallBoardMainDataProvider wallBoardMainDataProvider; private Logger logger = LoggerFactory .getLogger(DisplayItemRemedyShowPanel.class); public DisplayItemRemedyShowPanel(String id, final String queue, final IModelListRemedyItem RemedyItemsModel, final RemedyDisplayItem
Serialize exceptions
Hi I get a serialize exception in a panel of mine its correct that one of the contained fields cannot be serialized, however this field are injected and should not be touched by the checker, the field are marked with the @inject annotation. I'm using guice for injection.. Any thing obvious wrong with this?