Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
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

Re: Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
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

Re: Detecting when a session is destroyed

2011-09-20 Thread Matt Schmidt
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

Re: Manually Rendering a DataGridView

2011-08-01 Thread Matt Schmidt
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

Re: Manually Rendering a DataGridView

2011-08-01 Thread Matt Schmidt
, 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

Re: Manually Rendering a DataGridView

2011-07-31 Thread Matt Schmidt
, 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

Manually Rendering a DataGridView

2011-07-29 Thread Matt Schmidt
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

2011-06-19 Thread Matt Schmidt
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

RadioGroup nulled out during form submit in IE

2011-06-18 Thread Matt Schmidt
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

AjaxLazyLoadPanel question

2011-02-03 Thread Matt Schmidt
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) {

Rerender a Page with Ajax from Abstract Page

2011-01-04 Thread Matt Schmidt
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

Re: Rerender a Page with Ajax from Abstract Page

2011-01-04 Thread Matt Schmidt
...@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

Re: Modify Attribute on DataView HTML Element

2010-12-17 Thread Matt Schmidt
. 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

Modify Attribute on DataView HTML Element

2010-12-16 Thread Matt Schmidt
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,

Updating model object on AjaxFallbackDefaultDataTable page change

2010-11-09 Thread Matt Schmidt
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

Re: Updating model object on AjaxFallbackDefaultDataTable page change

2010-11-09 Thread Matt Schmidt
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

Re: Updating model object on AjaxFallbackDefaultDataTable page change

2010-11-09 Thread Matt Schmidt
, 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

Re: Lazy load exception with LoadableDetachableModel

2010-09-30 Thread Matt Schmidt
...@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

Lazy load exception with LoadableDetachableModel

2010-09-29 Thread Matt Schmidt
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