Detecting when a session is destroyed
I am trying to override WebApplication.sessionDestroyed() to perform an action any time a user's session is terminated, either by manually logging out, session expiring, or closing the browser. But unfortunately sessionDestroyed() doesn't seem to get called when the browser is closed. Is there any way to do this? Specifically I need to unlock all items the user has left locked when their session is terminated. Thanks!
Re: Detecting when a session is destroyed
Ahhh, so what happens if the user closes the browser, launches the browser and logs in again before the first session expires? On Tue, Sep 20, 2011 at 11:16 AM, Martin Grigorov mgrigo...@apache.orgwrote: The method will be method when the respective session expires. So close the browser, wait session-timeout minutes and it will fire. On Tue, Sep 20, 2011 at 6:12 PM, Matt Schmidt mschmid...@gmail.com wrote: I am trying to override WebApplication.sessionDestroyed() to perform an action any time a user's session is terminated, either by manually logging out, session expiring, or closing the browser. But unfortunately sessionDestroyed() doesn't seem to get called when the browser is closed. Is there any way to do this? Specifically I need to unlock all items the user has left locked when their session is terminated. Thanks! -- 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: Detecting when a session is destroyed
Alright, thanks! On Tue, Sep 20, 2011 at 11:28 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, Sep 20, 2011 at 6:27 PM, Martin Grigorov mgrigo...@apache.org wrote: a new session is created unless there is remember me functionality in place On Tue, Sep 20, 2011 at 6:22 PM, Matt Schmidt mschmid...@gmail.com wrote: Ahhh, so what happens if the user closes the browser, launches the browser and logs in again before the first session expires? On Tue, Sep 20, 2011 at 11:16 AM, Martin Grigorov mgrigo...@apache.org wrote: The method will be method when the respective session expires. So close the browser, wait session-timeout minutes and it will fire. On Tue, Sep 20, 2011 at 6:12 PM, Matt Schmidt mschmid...@gmail.com wrote: I am trying to override WebApplication.sessionDestroyed() to perform an action any time a user's session is terminated, either by manually logging out, session expiring, or closing the browser. But unfortunately sessionDestroyed() doesn't seem to get called when the browser is closed. Is there any way to do this? Specifically I need to unlock all items the user has left locked when their session is terminated. Thanks! -- 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com -- 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: Manually Rendering a DataGridView
Gotcha. Is there a way to do this without adding the DGV to the page? In my case, I just want to add an empty table/ tag and pass the would-be rendered HTML of the DGV to a jQuery function that populates the table. Specifically, I am trying to dynamically instantiate a jQuery DataTables using the JavaScript array method ( http://datatables.net/examples/data_sources/js_array.html). On Sun, Jul 31, 2011 at 10:40 PM, Pedro Santos pedros...@gmail.com wrote: The char sequence is returned by mockResponse.getText() Sure, there are no public methods and would be a good idea to refectory the code and move the mock response logic to other place. You can use an IVisitor to visit cells in you component tree, create a mock response to render them and use its text, i.e. mockResponse.getText(), to fit your needs On Sun, Jul 31, 2011 at 10:33 AM, Matt Schmidt mschmid...@gmail.com wrote: So after calling tableParser.parse(myDataGridView), how do I get the the char sequence? Or iterate over each row to get the char sequence for each cell? I don't see any public methods for that. On Sunday, July 31, 2011, Pedro Santos pedros...@gmail.com wrote: Hi, I had a similar need and used the code at TableParser[1] to render the component tree to a mock response and later get its char sequence. 1 - https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/wicket-poi-parent/wicket-poi/src/main/java/org/wicketstuff/poi/excel/TableParser.java On Fri, Jul 29, 2011 at 6:01 PM, Matt Schmidt mschmid...@gmail.com wrote: Is there any way to access the HTML of each cell that would be rendered in a DataGridView without adding it to the page and actually rendering it? Ultimately, I am trying to add all of the inner HTML of the cells of the DataGridView to a JavaScript array. -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Manually Rendering a DataGridView
I already have a WiQuery plugin/behavior that does basically the same thing. It renders the table's HTML to the page, then jQuery has to parse through it and put it in the DOM to initialize. It gets awfully slow with a lot of data. That's why I'm trying to not render the table to the HTML at all, and initialize with a JavaScript array that puts the data directly in the DOM. On Mon, Aug 1, 2011 at 10:38 AM, Martin Grigorov mgrigo...@apache.orgwrote: See https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/datatables-parent On Mon, Aug 1, 2011 at 3:54 PM, Matt Schmidt mschmid...@gmail.com wrote: Gotcha. Is there a way to do this without adding the DGV to the page? In my case, I just want to add an empty table/ tag and pass the would-be rendered HTML of the DGV to a jQuery function that populates the table. Specifically, I am trying to dynamically instantiate a jQuery DataTables using the JavaScript array method ( http://datatables.net/examples/data_sources/js_array.html). On Sun, Jul 31, 2011 at 10:40 PM, Pedro Santos pedros...@gmail.com wrote: The char sequence is returned by mockResponse.getText() Sure, there are no public methods and would be a good idea to refectory the code and move the mock response logic to other place. You can use an IVisitor to visit cells in you component tree, create a mock response to render them and use its text, i.e. mockResponse.getText(), to fit your needs On Sun, Jul 31, 2011 at 10:33 AM, Matt Schmidt mschmid...@gmail.com wrote: So after calling tableParser.parse(myDataGridView), how do I get the the char sequence? Or iterate over each row to get the char sequence for each cell? I don't see any public methods for that. On Sunday, July 31, 2011, Pedro Santos pedros...@gmail.com wrote: Hi, I had a similar need and used the code at TableParser[1] to render the component tree to a mock response and later get its char sequence. 1 - https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/wicket-poi-parent/wicket-poi/src/main/java/org/wicketstuff/poi/excel/TableParser.java On Fri, Jul 29, 2011 at 6:01 PM, Matt Schmidt mschmid...@gmail.com wrote: Is there any way to access the HTML of each cell that would be rendered in a DataGridView without adding it to the page and actually rendering it? Ultimately, I am trying to add all of the inner HTML of the cells of the DataGridView to a JavaScript array. -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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: Manually Rendering a DataGridView
So after calling tableParser.parse(myDataGridView), how do I get the the char sequence? Or iterate over each row to get the char sequence for each cell? I don't see any public methods for that. On Sunday, July 31, 2011, Pedro Santos pedros...@gmail.com wrote: Hi, I had a similar need and used the code at TableParser[1] to render the component tree to a mock response and later get its char sequence. 1 - https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/wicket-poi-parent/wicket-poi/src/main/java/org/wicketstuff/poi/excel/TableParser.java On Fri, Jul 29, 2011 at 6:01 PM, Matt Schmidt mschmid...@gmail.com wrote: Is there any way to access the HTML of each cell that would be rendered in a DataGridView without adding it to the page and actually rendering it? Ultimately, I am trying to add all of the inner HTML of the cells of the DataGridView to a JavaScript array. -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Manually Rendering a DataGridView
Is there any way to access the HTML of each cell that would be rendered in a DataGridView without adding it to the page and actually rendering it? Ultimately, I am trying to add all of the inner HTML of the cells of the DataGridView to a JavaScript array.
Re: RadioGroup nulled out during form submit in IE
After further investigation, my problem is with the AjaxFormChoiceComponentUpdatingBehavior. After adding the radio group to the target in the behavior's onUpdate(), it works. I have my radio's styled with some fancy jQuery button looks, so I was unable to see that the actual radio remained unselected after clicking it when using the Ajax behavior. But adding the group to the target fixes that. myRadioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(myRadioGroup); //whatever else } }); Is this necessary or is this just working by coincidence? On a side note, the javadoc for AjaxFormChoiceComponentUpdatingBehavior says: (wicket 1.4.16) In order to be supported by this behavior the group components must output children with markup id in format of 'groupId-childId' Does this just mean this, or something more? It seems to work even if the structure is not formatted this way div wicket:id=myGroup input type=radio wicket:id=myGroup-radio1 / input type=radio wicket:id=myGroup-radio2 / input type=radio wicket:id=myGroup-radio3 / /div On Sun, Jun 19, 2011 at 7:17 AM, Sven Meier s...@meiers.net wrote: Hi Matt, it could be a tag open/close issue which leads IE to put your radio tags outside of the form. I'd suggest to check your markup, i.e. look out for non-closed tags. Hope this helps Sven On 06/18/2011 11:04 PM, Matt Schmidt wrote: I have a form that is working correctly in FireFox but not IE. This puzzled is quite puzzling to me since it is server side functionality. Here's a much simplified version of what I've got: !-- MyPage.html -- form wicket:id=form !-- some other form fields here, text areas, etc. that submit fine in IE and FF -- div wicket:id=**myRadioGroupComponent1/ div wicket:id=**myRadioGroupComponent2/ div wicket:id=**myRadioGroupComponent3/ input type=submit value=Save wicket:id=saveButton / /form !-- MyRadioGroupComponent.html -- div wicket:id=radioGroup input type=radio wicket:id=radio1 / labelRadio 1/label input type=radio wicket:id=radio2 / labelRadio 2/label input type=radio wicket:id=radio3 / labelRadio 3/label /div The RadioGroup's also have an AjaxFormChoiceComponentUpdatin**gBehavior on it, and the submit button is an IndicatingAjaxButton. When I submit the form in FF, everything works fine. When I submit it in IE, my form's model object has null values for each of the myRadioGroupComponent properties. I stepped through the code and found that convertedInput is getting set to null during the form's validate(), because the radio group's value is not in the request (FormComponent.**getInputAsArray()). So it seems to me that IE is not submitting the form correctly, or that I have invalid HTML that I cannot identify. I'm pretty stumped on this one. I can show some of my java if needed, but the problem doesn't seem to be on that end to me. Any help is appreciated! Thanks, Matt --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RadioGroup nulled out during form submit in IE
I have a form that is working correctly in FireFox but not IE. This puzzled is quite puzzling to me since it is server side functionality. Here's a much simplified version of what I've got: !-- MyPage.html -- form wicket:id=form !-- some other form fields here, text areas, etc. that submit fine in IE and FF -- div wicket:id=myRadioGroupComponent1/ div wicket:id=myRadioGroupComponent2/ div wicket:id=myRadioGroupComponent3/ input type=submit value=Save wicket:id=saveButton / /form !-- MyRadioGroupComponent.html -- div wicket:id=radioGroup input type=radio wicket:id=radio1 / labelRadio 1/label input type=radio wicket:id=radio2 / labelRadio 2/label input type=radio wicket:id=radio3 / labelRadio 3/label /div The RadioGroup's also have an AjaxFormChoiceComponentUpdatingBehavior on it, and the submit button is an IndicatingAjaxButton. When I submit the form in FF, everything works fine. When I submit it in IE, my form's model object has null values for each of the myRadioGroupComponent properties. I stepped through the code and found that convertedInput is getting set to null during the form's validate(), because the radio group's value is not in the request (FormComponent.getInputAsArray()). So it seems to me that IE is not submitting the form correctly, or that I have invalid HTML that I cannot identify. I'm pretty stumped on this one. I can show some of my java if needed, but the problem doesn't seem to be on that end to me. Any help is appreciated! Thanks, Matt
AjaxLazyLoadPanel question
I currently have a DataGridView loaded inside of an AjaxLazyLoadPanel, including the service call to get the data. myLazyLoadPanel = new AjaxLazyLoadPanel(id, new CollectionModelPojo()) { public Component getLazyLoadComponent(String markupId) { if(getDefaultModelObject() == null) { setDefaultModelObject(myPojoService.readAll()); } return new MyDataGridView(markupId, getDefaultModel()); //ignoring casting for simplicity } } That works great for loading the page before the service call is complete. But now I need to add a DropDownChoice to change the collection in the data grid via Ajax after the page is loaded. Is there anyway to get the DataGridView to be replaced with an Ajax indicator (like on page load) during an Ajax onchange event for the DropDownChoice? I've added an Ajax indicator to the DropDownChoice, but I would like the same behavior I get on page load for the AjaxLazyLoadPanel. This is what I have for the drop down for starters: myDropDownChoice.add(new AjaxFormComponentUpdateBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { if(myDropDownChoice.getModelObject().equals(foo)) { myLazyLoadPanel.setDefaultModelObject(myPojoService.readFoo()); } //check other selections target.addComponent(myLazyLoadPanel); } } I may be looking at this entirely wrong... Any suggestions?
Rerender a Page with Ajax from Abstract Page
I am trying to rerender an entire page via ajax from an abstract page. I have the follow page hierarchy: abstract class AbstractPage extends WebPage * dropdown to change an existing session variable class MyPage1 extends AbstractPage * component that depends on the value of the session variable class MyPage2 extends AbstractPage * another component that depends on the value of the session variable When the dropdown changes, I want the current page to rerender via ajax, so I added this in the ajax behavior: target.addComponent(AbstractPage.this); //also tried target.addComponent(target.getPage()); But this appears to cause the page to postback and the url changes to use the page map (?wicket:interface=:4). If I change it and add just the dropdown to the target, the Ajax request works as expected, but of course the component in the implementation page (MyPage1) is not rerendered. Any suggestions?
Re: Rerender a Page with Ajax from Abstract Page
so after thinking about it a little, I don't think I need to do this with Ajax. I *think* this will work for everything I need: setResponsePage(target.getPage().getClass(), AbstractPage.this.getPageParameters()); setRedirect(true); On Tue, Jan 4, 2011 at 3:13 PM, Jeremy Thomerson jer...@wickettraining.comwrote: On Tue, Jan 4, 2011 at 2:11 PM, Matt Schmidt mschmid...@gmail.com wrote: I am trying to rerender an entire page via ajax from an abstract page. I have the follow page hierarchy: abstract class AbstractPage extends WebPage * dropdown to change an existing session variable class MyPage1 extends AbstractPage * component that depends on the value of the session variable class MyPage2 extends AbstractPage * another component that depends on the value of the session variable When the dropdown changes, I want the current page to rerender via ajax, so I added this in the ajax behavior: target.addComponent(AbstractPage.this); //also tried target.addComponent(target.getPage()); But this appears to cause the page to postback and the url changes to use the page map (?wicket:interface=:4). If I change it and add just the dropdown to the target, the Ajax request works as expected, but of course the component in the implementation page (MyPage1) is not rerendered. Any suggestions? The entire page doesn't have a markup ID that can be replaced, so it won't much work. You could attach a markup container to your body tag and re-render everything in that. The real question is: why? -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: Modify Attribute on DataView HTML Element
I also got it to work by using a wicket:container and a WebMarkupContainer HTML wicket:container wicket:id=dataview div wicket:id=wmc id=dynamic span wicket:id=myLabel / /div /wicket:container JAVA new DataViewPOJO(dataview, dataProvider) { protected void populateItem(ItemPOJO item) { WebMarkupContainer wmc = new WebMarkupContainer(wmc) { protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(id, dynamicValue); } }; item.add(wmc); wmc.add(new Label(myLabel, item.getModelObject().getValue())); } } Is one way better than the other? On Thu, Dec 16, 2010 at 6:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: item.add(new AttributeModifier(attr, true, value)); dataview#oncomponenttag doesn't do anything since the dataview repeats its markup with a listitem. the list item#oncomponenttag actually receives the markup tag. Martijn On Thu, Dec 16, 2010 at 10:04 PM, Matt Schmidt mschmid...@gmail.com wrote: I'm trying to modify an attribute on the HTML element that goes with my DataView: HTML div wicket:id=dataview id=dynamic span wicket:id=myLabel / /div JAVA new DataViewPOJO(dataview, dataProvider) { protected void populateItem(ItemPOJO item) { item.add(new Label(myLabel, item.getModelObject().getValue())); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(id, dynamicValue); } } I thought this would do it, but I never even hit DataView.onComponentTag(). Any other suggestions? -Matt -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Modify Attribute on DataView HTML Element
I'm trying to modify an attribute on the HTML element that goes with my DataView: HTML div wicket:id=dataview id=dynamic span wicket:id=myLabel / /div JAVA new DataViewPOJO(dataview, dataProvider) { protected void populateItem(ItemPOJO item) { item.add(new Label(myLabel, item.getModelObject().getValue())); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(id, dynamicValue); } } I thought this would do it, but I never even hit DataView.onComponentTag(). Any other suggestions? -Matt
Updating model object on AjaxFallbackDefaultDataTable page change
I have a CheckGroup that contains an AjaxFallbackDefaultDataTable that has a column containing a Check. As long as I click my submit button while on the first page of the DataTable, the model object of the CheckGroup is updated as expected with the items I had checked. However, if I check some checkboxes and then go to page 2 of the DataTable, the CheckGroup's model object is not updated and I lose everything I checked on page 1. The DataTable class has an onPageChanged() event, but it appears that it is called after the page is actually changed. My other thought was to add an AjaxFormComponentUpdatingBehavior to the Check, but Check is not a FormComponent. Any thoughts? Thanks, Matt
Re: Updating model object on AjaxFallbackDefaultDataTable page change
Yes that works for the first page - only on that page are the javascript behaviors rendered. Basically, we are looking for a way to NOT do an ajax request every time we check a box - The model object of the check group should be updated when we a) click the submit button or b) change the page of the datatable. What are we missing here? On Tue, Nov 9, 2010 at 3:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: use AjaxFormChoiceComponentUpdatingBehavior, that one works with Check. also you can use CheckBox with the ajax behavior instead of CheckGroup/Check or replace links used by navigator with submit links, there are factory methods on the navigator. -igor On Tue, Nov 9, 2010 at 8:41 AM, Matt Schmidt mschmid...@gmail.com wrote: I have a CheckGroup that contains an AjaxFallbackDefaultDataTable that has a column containing a Check. As long as I click my submit button while on the first page of the DataTable, the model object of the CheckGroup is updated as expected with the items I had checked. However, if I check some checkboxes and then go to page 2 of the DataTable, the CheckGroup's model object is not updated and I lose everything I checked on page 1. The DataTable class has an onPageChanged() event, but it appears that it is called after the page is actually changed. My other thought was to add an AjaxFormComponentUpdatingBehavior to the Check, but Check is not a FormComponent. Any thoughts? Thanks, Matt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Updating model object on AjaxFallbackDefaultDataTable page change
Are you suggesting to override AjaxPagingNavigator.newPagingNavigationIncrementLink() and AjaxPagingNavigator.newPagingNavigationLink() and implement our own navigation links similar to AjaxPagingNavigationIncrementLink and AjaxPagingNavigationLink that do the same thing except extends SubmitLink rather than Link? Am I making that harder than it needs to be? It may help a lot if you have a code sample for something like this. On Tue, Nov 9, 2010 at 4:04 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: see my last suggestion and replace navigator's links with submitlinks -igor On Tue, Nov 9, 2010 at 1:02 PM, Matt Schmidt mschmid...@gmail.com wrote: Yes that works for the first page - only on that page are the javascript behaviors rendered. Basically, we are looking for a way to NOT do an ajax request every time we check a box - The model object of the check group should be updated when we a) click the submit button or b) change the page of the datatable. What are we missing here? On Tue, Nov 9, 2010 at 3:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: use AjaxFormChoiceComponentUpdatingBehavior, that one works with Check. also you can use CheckBox with the ajax behavior instead of CheckGroup/Check or replace links used by navigator with submit links, there are factory methods on the navigator. -igor On Tue, Nov 9, 2010 at 8:41 AM, Matt Schmidt mschmid...@gmail.com wrote: I have a CheckGroup that contains an AjaxFallbackDefaultDataTable that has a column containing a Check. As long as I click my submit button while on the first page of the DataTable, the model object of the CheckGroup is updated as expected with the items I had checked. However, if I check some checkboxes and then go to page 2 of the DataTable, the CheckGroup's model object is not updated and I lose everything I checked on page 1. The DataTable class has an onPageChanged() event, but it appears that it is called after the page is actually changed. My other thought was to add an AjaxFormComponentUpdatingBehavior to the Check, but Check is not a FormComponent. Any thoughts? Thanks, Matt - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lazy load exception with LoadableDetachableModel
Ok after further review, my problem was because I was getting this model from a DataProvider where I was feeding the DataProvider a List AFTER retrieving from the persistence layer, instead of doing it IN the DataProvider. Thanks for the help! On Wed, Sep 29, 2010 at 6:02 PM, James Carman ja...@carmanconsulting.comwrote: Are you detaching your model? If not, it could be returning a Product object that was obtained during a different Hibernate session. On Wed, Sep 29, 2010 at 5:53 PM, Matt Schmidt mschmid...@gmail.com wrote: I am using LoadableDetachableModel's to load my persisted objects from the database, but I am still getting a lazy load exception when accessing a property that is a Set. For example: take persistent POJO Product that has this property, where ProductType is another persistent POJO: private SetProductType productTypes; I get the lazy load when trying to access this property from the LDM: CollectionProductType x = ((Product) model.getObject()).getProductTypes(); for(ProductType pt : x) { //lazy load here . What am I missing? Thanks, Matt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Lazy load exception with LoadableDetachableModel
I am using LoadableDetachableModel's to load my persisted objects from the database, but I am still getting a lazy load exception when accessing a property that is a Set. For example: take persistent POJO Product that has this property, where ProductType is another persistent POJO: private SetProductType productTypes; I get the lazy load when trying to access this property from the LDM: CollectionProductType x = ((Product) model.getObject()).getProductTypes(); for(ProductType pt : x) { //lazy load here . What am I missing? Thanks, Matt