Re: Inmethod datagrid adding aggregate rows

2010-09-07 Thread Branislav Kalas

Hi i also tried this.
I ended up by positioning aggregation toolbar right after column 
headers. (as  custom toolbar which extends AbstractHeaderToolbar).
I think it is not easy to have this toolbar at the bottom (specially 
when you have enabled column resizing, because you have to bind somehow 
on resizing js)

Please write here a solution if you will find out how to do it.
On 09/07/2010 01:29 PM, pieter_degraeuwe wrote:

Hi,

I'm looking for some hints for doing the following:

I have an Inmethod datagrid, which has the columns 'amount', 'product',
'detail', 'price'.
I would like to have at the bottom of the table (just above the paging
toolbar) an extra row which shows me the sum (total) of all prices in the
list.
How I calculate these values (sum of the showed items, or sum of ALL items),
should not matter, I want to add these cell values by just giving a model.
But, the sum() column should be located under the 'prices' column.

I did try this via a custom Toolbar, where I add a div with it's owntable
element. This seems to work, but I do not get the styling right. The columns
of this table should have the same width als the columns of the 'body'
table.

Digging into the code, I saw that some javascript is used for doing the
sizing.

Can anyone give me some hints what is the best approach to get the column's
size correct? (or maybe I'm doing this completely wrong?)

Thanks !
   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Reset values after submit with validation error in table components

2010-07-11 Thread Branislav Kalas

Hi,
I have table which is part of form.
Table extends 
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.
In that table i use some AbstractColumns that renders input boxes, for 
example:


columns.add(new AbstractColumnTakeBackPalletRollInfo(new 
StringResourceModel(header.takenBackNetto, this, null)) {
public void 
populateItem(ItemICellPopulatorTakeBackPalletRollInfo cellItem, 
String componentId,

IModelTakeBackPalletRollInfo rowModel) {
RequiredBigDecimalWithoutLabel takenBackBrutto = new 
RequiredBigDecimalWithoutLabel(componentId,

new PropertyModel(rowModel, newChars.netto));
cellItem.add(takenBackBrutto);
}
});

Data provider code:
public class TakeBackPalletProvider extends 
SortableDataProviderTakeBackPalletRollInfo {

private TakeBackPallet takeBackPallet;

public TakeBackPalletProvider(TakeBackPallet takeBackPallet) {
this.takeBackPallet = takeBackPallet;
}

public Iterator iterator(int first, int count) {
return takeBackPallet.getRollInfoList().iterator();
}

public int size() {
return takeBackPallet.getRollInfoList().size();
}

public IModelTakeBackPalletRollInfo model(TakeBackPalletRollInfo 
object) {

return new Model(object);
}
}

After form submit, when validation error occurs  (like not filled 
required field) on some field which is not in table, values in table 
resets to it's initial values.

Where can be problem?
Thanks.






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page maps problem

2010-07-06 Thread Branislav Kalas
Thanks, when i turned off automaticMultiWindow support and set page map 
name manually for modal window,

page map for modal window was removed after modal window close.

Now i am trying to figure out some way to removing page map after close 
page opened in new tab or in new browser window. After some experiments 
(ajax behavior with respond method, ajax link, link...) i think this is 
not possible using just wicket api (cause if i removed page map inajax 
request that page map will be recreated after request)
It would be possible if i can add behavior to main page which user 
cannot close (because he/she willnow about this fact) and then on page 
in new window i will just use getCallBackScript() in onbefoureunload 
event or in some onclick event (it is not problem to have separate 
button for closing new window). Problem is that those main page could 
not be in stack anymore at the moment ( i think it's not problem to 
call  some ajax on page that is not actual in page map).
Maybe it is possible with use of some servlet that would be ignored by 
wicket filter.
Anyway this is absolutely not critical, it would be just nice to know 
how many windows has user currently opened and to forbid open new window 
after some count. It would also prevent removing page map that could be 
possibly still in use.
If you understand what i mean (cause i am still just beginner in wicket) 
i would appreciate any hints for this.






On 07/05/2010 07:09 PM, Igor Vaynberg wrote:

you should set all the popups to use the same pagemap, i think that should help.

-igor

On Sun, Jul 4, 2010 at 12:19 PM, Branislav Kalasbka...@gmail.com  wrote:
   

Hi,
sorry for my terrible english.I am trying to achieve this:
I have webapp where i want to allow users open some links in new window. I
want to create new page maps for those windows (cause i think , it's correct
(page expired problem)).
In some pages i use pickers that opens modal windows (and this modal windows
runs also in new page maps).
I have default setting of maximum page maps (which is 6)
Wicket version  is 1.4.1 (maybe i can upgrade if it solves the problem)
My problem is that when i open link in new window and open modal window in
old page for 5 times, new window returns to login page (which is IMHO caused
by its removed page map from session).
I tried to delete page map of modal window when it is closed but without
success.

I got this in init method of application class:
getPageSettings().setAutomaticMultiWindowSupport(true);

I got this in modal window close events :
  modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget target) {
target.addComponent(ProductPicker.this);
Session.get().removePageMap(modal.getPage().getPageMap());

}
});
modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
public boolean onCloseButtonClicked(AjaxRequestTarget target) {
target.addComponent(ProductPicker.this);
Session.get().removePageMap(modal.getPage().getPageMap());
return true;
}
});
This is how i am creating modal window:
modal.setCookieName(modal);
modal.setHeightUnit(px);
modal.setWidthUnit(px);
modal.setInitialWidth(900);
modal.setInitialHeight(800);
modal.setTitle(new StringResourceModel(productPickerModal.label,
this, null));
modal.setVersioned(false);

And this are links that opens in new pages (tabs) :
  //java part
  Link newWindowMenuItemLink = new Link(newWindowMenuItemLink) {
@Override
public void onClick() {

  setResponsePage(lItem.getPageClass().newInstance());
}
  //html part
a class=swap wicket:id=newWindowMenuItemLink href=#
target=_blankspan class=altClick;/span/a

Can you pls give me any hint what could be possibly wrong,or how can i
delete modal window page map when it is closed?

Ideally i would like also remove page maps when user closes browser window.

Thanks.


-
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



Page maps problem

2010-07-04 Thread Branislav Kalas

Hi,
sorry for my terrible english.I am trying to achieve this:
I have webapp where i want to allow users open some links in new window. 
I want to create new page maps for those windows (cause i think , it's 
correct (page expired problem)).
In some pages i use pickers that opens modal windows (and this modal 
windows runs also in new page maps).

I have default setting of maximum page maps (which is 6)
Wicket version  is 1.4.1 (maybe i can upgrade if it solves the problem)
My problem is that when i open link in new window and open modal window 
in old page for 5 times, new window returns to login page (which is IMHO 
caused by its removed page map from session).
I tried to delete page map of modal window when it is closed but without 
success.


I got this in init method of application class:
getPageSettings().setAutomaticMultiWindowSupport(true);

I got this in modal window close events :
  modal.setWindowClosedCallback(new 
ModalWindow.WindowClosedCallback() {

public void onClose(AjaxRequestTarget target) {
target.addComponent(ProductPicker.this);
Session.get().removePageMap(modal.getPage().getPageMap());

}
});
modal.setCloseButtonCallback(new 
ModalWindow.CloseButtonCallback() {

public boolean onCloseButtonClicked(AjaxRequestTarget target) {
target.addComponent(ProductPicker.this);
Session.get().removePageMap(modal.getPage().getPageMap());
return true;
}
});
This is how i am creating modal window:
modal.setCookieName(modal);
modal.setHeightUnit(px);
modal.setWidthUnit(px);
modal.setInitialWidth(900);
modal.setInitialHeight(800);
modal.setTitle(new 
StringResourceModel(productPickerModal.label, this, null));

modal.setVersioned(false);

And this are links that opens in new pages (tabs) :
  //java part
  Link newWindowMenuItemLink = new Link(newWindowMenuItemLink) {
@Override
public void onClick() {

setResponsePage(lItem.getPageClass().newInstance());

}
  //html part
a class=swap wicket:id=newWindowMenuItemLink href=# 
target=_blankspan class=altClick;/span/a


Can you pls give me any hint what could be possibly wrong,or how can i 
delete modal window page map when it is closed?


Ideally i would like also remove page maps when user closes browser window.

Thanks.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Links in DataTable

2010-06-30 Thread Branislav Kalas

Put this into WicketApplication.java
  @Override
protected void init() {
super.init();
getPageSettings().setAutomaticMultiWindowSupport(true);
}

Problem was, that you opened new windows in same page map.
I cannot explain it better cause, i don't understand page maps very well...

On 06/30/2010 07:40 PM, Nelson Segura wrote:

I am attaching a Quickstart project to help reproduce the problem.
On the home page, middle click in the email address shown (usually 
this will take a user to a detail page, but in this case it just 
prints a message). After that, any click on a link in the page will 
cause a component not found exception.


Thanks for all your help.

-Nelson



On Wed, Jun 30, 2010 at 9:18 AM, Nelson Segura nsegu...@gmail.com 
mailto:nsegu...@gmail.com wrote:


Can anyone explain to me why this does not work with
AjaxFallbackDefaultDataTable, but does with DefaultDataTable.
Does anyone know of a solution for this problem?


On Mon, Jun 28, 2010 at 6:18 PM, Nelson Segura nsegu...@gmail.com
mailto:nsegu...@gmail.com wrote:

Since AjaxLink is AJAX and not a proper link, then it does
behave as a normal link, i.e. middle click (open link in new
tab or new window) does not trigger the AJAX click even, which
means you cannot chose to open the link in a new page.

back to square one, except that know I know is a problem with
AjaxFallbackDefaultDataTable, not with DataTable.


-Nelson


On Mon, Jun 28, 2010 at 5:47 PM, Nelson Segura
nsegu...@gmail.com mailto:nsegu...@gmail.com wrote:

Jeremy, the code is below.

I did notice something while researching/testing more.
The LinkPanel solution DOES work for a DataTable. The
problem starts when changed to a AjaxFallbackDefaultDataTable.
I did testing based in the datatable example in the wicket
examples.
Maybe using an AjaxLink instead of a normal link in the
table is the right answer.


Code is mostly taken from the page linked in the original
email

public abstract class LinkPanelT extends Panel {

private static final long serialVersionUID =
2062173455224348354L;

public LinkPanel(final Item? item, final String
componentId,
final IModelT model, final String property) {
super(componentId, model);

AjaxLinkT link = new AjaxLinkT(linkCell) {

private static final long serialVersionUID =
2574434147588617330L;

@Override
public void onClick(AjaxRequestTarget target) {
LinkPanel.this.onClick();
}


};
add(link);
link.add(new Label(label, new
PropertyModel(model,property)));
}

protected abstract void onClick();
}

- Usage ---

public class LinkPanelPage extends WebPage {

public LinkPanelPage() {
Form form = new Form(form);
final LinkPanelListProvider provider = new
LinkPanelListProvider();
ListIColumn columnList = new ArrayListIColumn(3);
//columnList.add(new PropertyColumn(new
Model(eMailAddress),eMailAddress));
columnList.add(new AbstractColumn(new
Model(eMailAddress), eMailAddress) {
private static final long serialVersionUID =
-1822504503325964706L;

@Override
@SuppressWarnings(unchecked)
public void populateItem(Item cellItem, String
componentId, final IModel rowModel) {
cellItem.add(new LinkPanel(cellItem,
componentId, rowModel, getSortProperty()) {

private static final long
serialVersionUID = -4615958634366803506L;

@Override
protected void onClick() {
System.out.println(clicked on link);
}
});
}

});

columnList.add(new PropertyColumn(new
Model(firstName),firstName));
columnList.add(new PropertyColumn(new
Model(lastName),lastName));
AjaxFallbackDefaultDataTable table = new
AjaxFallbackDefaultDataTable(link-panel-table,
columnList, provider, 3);
form.add(table);
add(form);
}
}

  

Re: Links in DataTable

2010-06-30 Thread Branislav Kalas

and i forgot this in the onclick handler :
@Override
protected void onClick() {
 setResponsePage(new HomePage(parameters));
 System.out.println(clicked on link);
}

On 06/30/2010 07:59 PM, Branislav Kalas wrote:

Put this into WicketApplication.java
  @Override
protected void init() {
super.init();
getPageSettings().setAutomaticMultiWindowSupport(true);
}

Problem was, that you opened new windows in same page map.
I cannot explain it better cause, i don't understand page maps very 
well...


On 06/30/2010 07:40 PM, Nelson Segura wrote:

I am attaching a Quickstart project to help reproduce the problem.
On the home page, middle click in the email address shown (usually 
this will take a user to a detail page, but in this case it just 
prints a message). After that, any click on a link in the page will 
cause a component not found exception.


Thanks for all your help.

-Nelson



On Wed, Jun 30, 2010 at 9:18 AM, Nelson Segura nsegu...@gmail.com 
mailto:nsegu...@gmail.com wrote:


Can anyone explain to me why this does not work with
AjaxFallbackDefaultDataTable, but does with DefaultDataTable.
Does anyone know of a solution for this problem?


On Mon, Jun 28, 2010 at 6:18 PM, Nelson Segura
nsegu...@gmail.com mailto:nsegu...@gmail.com wrote:

Since AjaxLink is AJAX and not a proper link, then it does
behave as a normal link, i.e. middle click (open link in new
tab or new window) does not trigger the AJAX click even,
which means you cannot chose to open the link in a new page.

back to square one, except that know I know is a problem with
AjaxFallbackDefaultDataTable, not with DataTable.


-Nelson


On Mon, Jun 28, 2010 at 5:47 PM, Nelson Segura
nsegu...@gmail.com mailto:nsegu...@gmail.com wrote:

Jeremy, the code is below.

I did notice something while researching/testing more.
The LinkPanel solution DOES work for a DataTable. The
problem starts when changed to a
AjaxFallbackDefaultDataTable.
I did testing based in the datatable example in the
wicket examples.
Maybe using an AjaxLink instead of a normal link in the
table is the right answer.


Code is mostly taken from the page linked in the original
email

public abstract class LinkPanelT extends Panel {

private static final long serialVersionUID =
2062173455224348354L;

public LinkPanel(final Item? item, final String
componentId,
final IModelT model, final String property) {
super(componentId, model);

AjaxLinkT link = new AjaxLinkT(linkCell) {

private static final long serialVersionUID =
2574434147588617330L;

@Override
public void onClick(AjaxRequestTarget target) {
LinkPanel.this.onClick();
}


};
add(link);
link.add(new Label(label, new
PropertyModel(model,property)));
}

protected abstract void onClick();
}

- Usage ---

public class LinkPanelPage extends WebPage {

public LinkPanelPage() {
Form form = new Form(form);
final LinkPanelListProvider provider = new
LinkPanelListProvider();
ListIColumn columnList = new ArrayListIColumn(3);
//columnList.add(new PropertyColumn(new
Model(eMailAddress),eMailAddress));
columnList.add(new AbstractColumn(new
Model(eMailAddress), eMailAddress) {
private static final long serialVersionUID =
-1822504503325964706L;

@Override
@SuppressWarnings(unchecked)
public void populateItem(Item cellItem,
String componentId, final IModel rowModel) {
cellItem.add(new LinkPanel(cellItem,
componentId, rowModel, getSortProperty()) {

private static final long
serialVersionUID = -4615958634366803506L;

@Override
protected void onClick() {
System.out.println(clicked on
link);
}
});
}

});

columnList.add(new PropertyColumn(new
Model(firstName),firstName));
columnList.add(new PropertyColumn(new
Model(lastName),lastName

Delete page map on close browser window

2010-06-29 Thread Branislav Kalas

Hi, in my apllication,users can open items from menu in new  tabs/windows.
When user opens item in new window system creates new page map for it.
When user close window, pagemap is still in session.
Is it somehow posibble to delete page map when user close browser window?
Thanks.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas

On 06/29/2010 11:38 AM, Branislav Kalas wrote:
Hi, in my apllication,users can open items from menu in new  
tabs/windows.

When user opens item in new window system creates new page map for it.
When user close window, pagemap is still in session.
Is it somehow posibble to delete page map when user close browser window?
Thanks.

I temporaly removed this functionality, but when i print out 
Session.get().getPageMaps().size(),

i get 19 right after sign in to apllication.
In glassfish monitor under list of sessions i see this freaky output:

504ddfc199b98146581148039b0d:{wicket:wicket.DipexISApplication:m:wicket-33=[PageMap 
name=wicket-33], wicket:wicket.DipexISApplication:m:wicket-32=[PageMap 
name=wicket-32], wicket:wicket.DipexISApplication:m:wicket-35=[PageMap 
name=wicket-35], wicket:wicket.DipexISApplication:m:wicket-34=[PageMap 
name=wicket-34], wicket:wicket.DipexISApplication:m:wicket-37=[PageMap 
name=wicket-37], wicket:wicket.DipexISApplication:m:wicket-36=[PageMap 
name=wicket-36], wicket:wicket.DipexISApplication:m:wicket-39=[PageMap 
name=wicket-39], wicket:wicket.DipexISApplication:m:wicket-38=[PageMap 
name=wicket-38], wicket:wicket.DipexISApplication:m:wicket-31=[PageMap 
name=wicket-31], wicket:wicket.DipexISApplication:m:wicket-30=[PageMap 
name=wicket-30], wicket:wicket.DipexISApplication:m:wicket-29=[PageMap 
name=wicket-29], wicket:wicket.DipexISApplication:m:null=[PageMap 
name=null], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap 
name=wicket-4], wicket:wicket.DipexISApplication:m:wicket-24=[PageMap 
name=wicket-24], wicket:wicket.DipexISApplication:m:wicket-23=[PageMap 
name=wicket-23], wicket:wicket.DipexISApplication:m:wicket-3=[PageMap 
name=wicket-3], wicket:wicket.DipexISApplication:m:wicket-22=[PageMap 
name=wicket-22], wicket:wicket.DipexISApplication:m:wicket-2=[PageMap 
name=wicket-2], wicket:wicket.DipexISApplication:m:wicket-21=[PageMap 
name=wicket-21], wicket:wicket.DipexISApplication:m:wicket-1=[PageMap 
name=wicket-1], wicket:wicket.DipexISApplication:m:wicket-8=[PageMap 
name=wicket-8], wicket:wicket.DipexISApplication:m:wicket-28=[PageMap 
name=wicket-28], wicket:wicket.DipexISApplication:m:wicket-7=[PageMap 
name=wicket-7], wicket:wicket.DipexISApplication:m:wicket-27=[PageMap 
name=wicket-27], wicket:wicket.DipexISApplication:m:wicket-6=[PageMap 
name=wicket-6], wicket:wicket.DipexISApplication:m:wicket-26=[PageMap 
name=wicket-26], wicket:wicket.DipexISApplication:m:wicket-5=[PageMap 
name=wicket-5], wicket:wicket.DipexISApplication:m:wicket-25=[PageMap 
name=wicket-25], wicket:wicket.DipexISApplication:m:wicket-20=[PageMap 
name=wicket-20], wicket:wicket.DipexISApplication:m:wicket-0=[PageMap 
name=wicket-0], wicket:wicket.DipexISApplication:m:wicket-18=[PageMap 
name=wicket-18], wicket:wicket.DipexISApplication:m:wicket-19=[PageMap 
name=wicket-19], wicket:wicket.DipexISApplication:m:wicket-50=[PageMap 
name=wicket-50], wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], wicket:wicket.DipexISApplication:m:wicket-51=[PageMap 
name=wicket-51], wicket:wicket.DipexISApplication:m:wicket-14=[PageMap 
name=wicket-14], wicket:wicket.DipexISApplication:m:wicket-52=[PageMap 
name=wicket-52], wicket:wicket.DipexISApplication:m:wicket-17=[PageMap 
name=wicket-17], wicket:wicket.DipexISApplication:m:wicket-53=[PageMap 
name=wicket-53], wicket:wicket.DipexISApplication:m:wicket-16=[PageMap 
name=wicket-16], wicket:wicket.DipexISApplication:session=sysadm; , 
wicket:wicket.DipexISApplication:m:wicket-11=[PageMap name=wicket-11], 
wicket:wicket.DipexISApplication:m:wicket-10=[PageMap name=wicket-10], 
wicket:wicket.DipexISApplication:m:wicket-13=[PageMap name=wicket-13], 
wicket:wicket.DipexISApplication:m:wicket-9=[PageMap name=wicket-9], 
wicket:wicket.DipexISApplication:m:wicket-12=[PageMap name=wicket-12], 
Wicket:sessionunbindinglistener-wicket.dipexisapplication=org.apache.wicket.protocol.http.abstracthttpsessionstore$sessionbindingliste...@18b1f95, 
wicket:wicket.DipexISApplication:m:wicket-41=[PageMap name=wicket-41], 
wicket:wicket.DipexISApplication:m:wicket-42=[PageMap name=wicket-42], 
wicket:wicket.DipexISApplication:m:wicket-40=[PageMap name=wicket-40], 
wicket:wicket.DipexISApplication:m:wicket-49=[PageMap name=wicket-49], 
wicket:wicket.DipexISApplication:m:wicket-47=[PageMap name=wicket-47], 
wicket:wicket.DipexISApplication:m:wicket-48=[PageMap name=wicket-48], 
wicket:wicket.DipexISApplication:m:wicket-45=[PageMap name=wicket-45], 
wicket:wicket.DipexISApplication:m:wicket-46=[PageMap name=wicket-46], 
wicket:wicket.DipexISApplication:m:wicket-43=[PageMap name=wicket-43], 
wicket:wicket.DipexISApplication:m:wicket-44=[PageMap name=wicket-44]}, 
50463537d1a470bc5ef5a7117f35:{wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap 
name=wicket-4], wicket:wicket.DipexISApplication:m:wicket-3=[PageMap 
name=wicket-3], wicket:wicket.DipexISApplication:m:wicket-14

Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas

On 06/29/2010 08:48 PM, Branislav Kalas wrote:

On 06/29/2010 11:38 AM, Branislav Kalas wrote:
Hi, in my apllication,users can open items from menu in new  
tabs/windows.

When user opens item in new window system creates new page map for it.
When user close window, pagemap is still in session.
Is it somehow posibble to delete page map when user close browser 
window?

Thanks.

I temporaly removed this functionality, but when i print out 
Session.get().getPageMaps().size(),

i get 19 right after sign in to apllication.
In glassfish monitor under list of sessions i see this freaky output:

504ddfc199b98146581148039b0d:{wicket:wicket.DipexISApplication:m:wicket-33=[PageMap 
name=wicket-33], wicket:wicket.DipexISApplication:m:wicket-32=[PageMap 
name=wicket-32], wicket:wicket.DipexISApplication:m:wicket-35=[PageMap 
name=wicket-35], wicket:wicket.DipexISApplication:m:wicket-34=[PageMap 
name=wicket-34], wicket:wicket.DipexISApplication:m:wicket-37=[PageMap 
name=wicket-37], wicket:wicket.DipexISApplication:m:wicket-36=[PageMap 
name=wicket-36], wicket:wicket.DipexISApplication:m:wicket-39=[PageMap 
name=wicket-39], wicket:wicket.DipexISApplication:m:wicket-38=[PageMap 
name=wicket-38], wicket:wicket.DipexISApplication:m:wicket-31=[PageMap 
name=wicket-31], wicket:wicket.DipexISApplication:m:wicket-30=[PageMap 
name=wicket-30], wicket:wicket.DipexISApplication:m:wicket-29=[PageMap 
name=wicket-29], wicket:wicket.DipexISApplication:m:null=[PageMap 
name=null], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap 
name=wicket-4], wicket:wicket.DipexISApplication:m:wicket-24=[PageMap 
name=wicket-24], wicket:wicket.DipexISApplication:m:wicket-23=[PageMap 
name=wicket-23], wicket:wicket.DipexISApplication:m:wicket-3=[PageMap 
name=wicket-3], wicket:wicket.DipexISApplication:m:wicket-22=[PageMap 
name=wicket-22], wicket:wicket.DipexISApplication:m:wicket-2=[PageMap 
name=wicket-2], wicket:wicket.DipexISApplication:m:wicket-21=[PageMap 
name=wicket-21], wicket:wicket.DipexISApplication:m:wicket-1=[PageMap 
name=wicket-1], wicket:wicket.DipexISApplication:m:wicket-8=[PageMap 
name=wicket-8], wicket:wicket.DipexISApplication:m:wicket-28=[PageMap 
name=wicket-28], wicket:wicket.DipexISApplication:m:wicket-7=[PageMap 
name=wicket-7], wicket:wicket.DipexISApplication:m:wicket-27=[PageMap 
name=wicket-27], wicket:wicket.DipexISApplication:m:wicket-6=[PageMap 
name=wicket-6], wicket:wicket.DipexISApplication:m:wicket-26=[PageMap 
name=wicket-26], wicket:wicket.DipexISApplication:m:wicket-5=[PageMap 
name=wicket-5], wicket:wicket.DipexISApplication:m:wicket-25=[PageMap 
name=wicket-25], wicket:wicket.DipexISApplication:m:wicket-20=[PageMap 
name=wicket-20], wicket:wicket.DipexISApplication:m:wicket-0=[PageMap 
name=wicket-0], wicket:wicket.DipexISApplication:m:wicket-18=[PageMap 
name=wicket-18], wicket:wicket.DipexISApplication:m:wicket-19=[PageMap 
name=wicket-19], wicket:wicket.DipexISApplication:m:wicket-50=[PageMap 
name=wicket-50], wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], wicket:wicket.DipexISApplication:m:wicket-51=[PageMap 
name=wicket-51], wicket:wicket.DipexISApplication:m:wicket-14=[PageMap 
name=wicket-14], wicket:wicket.DipexISApplication:m:wicket-52=[PageMap 
name=wicket-52], wicket:wicket.DipexISApplication:m:wicket-17=[PageMap 
name=wicket-17], wicket:wicket.DipexISApplication:m:wicket-53=[PageMap 
name=wicket-53], wicket:wicket.DipexISApplication:m:wicket-16=[PageMap 
name=wicket-16], wicket:wicket.DipexISApplication:session=sysadm; , 
wicket:wicket.DipexISApplication:m:wicket-11=[PageMap name=wicket-11], 
wicket:wicket.DipexISApplication:m:wicket-10=[PageMap name=wicket-10], 
wicket:wicket.DipexISApplication:m:wicket-13=[PageMap name=wicket-13], 
wicket:wicket.DipexISApplication:m:wicket-9=[PageMap name=wicket-9], 
wicket:wicket.DipexISApplication:m:wicket-12=[PageMap name=wicket-12], 
Wicket:sessionunbindinglistener-wicket.dipexisapplication=org.apache.wicket.protocol.http.abstracthttpsessionstore$sessionbindingliste...@18b1f95, 
wicket:wicket.DipexISApplication:m:wicket-41=[PageMap name=wicket-41], 
wicket:wicket.DipexISApplication:m:wicket-42=[PageMap name=wicket-42], 
wicket:wicket.DipexISApplication:m:wicket-40=[PageMap name=wicket-40], 
wicket:wicket.DipexISApplication:m:wicket-49=[PageMap name=wicket-49], 
wicket:wicket.DipexISApplication:m:wicket-47=[PageMap name=wicket-47], 
wicket:wicket.DipexISApplication:m:wicket-48=[PageMap name=wicket-48], 
wicket:wicket.DipexISApplication:m:wicket-45=[PageMap name=wicket-45], 
wicket:wicket.DipexISApplication:m:wicket-46=[PageMap name=wicket-46], 
wicket:wicket.DipexISApplication:m:wicket-43=[PageMap name=wicket-43], 
wicket:wicket.DipexISApplication:m:wicket-44=[PageMap 
name=wicket-44]}, 
50463537d1a470bc5ef5a7117f35:{wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap 
name=wicket-4], wicket:wicket.DipexISApplication:m:wicket-3=[PageMap 
name=wicket-3

Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas

On 06/29/2010 09:03 PM, Branislav Kalas wrote:

On 06/29/2010 08:48 PM, Branislav Kalas wrote:

On 06/29/2010 11:38 AM, Branislav Kalas wrote:
Hi, in my apllication,users can open items from menu in new  
tabs/windows.

When user opens item in new window system creates new page map for it.
When user close window, pagemap is still in session.
Is it somehow posibble to delete page map when user close browser 
window?

Thanks.

I temporaly removed this functionality, but when i print out 
Session.get().getPageMaps().size(),

i get 19 right after sign in to apllication.
In glassfish monitor under list of sessions i see this freaky output:

504ddfc199b98146581148039b0d:{wicket:wicket.DipexISApplication:m:wicket-33=[PageMap 
name=wicket-33], 
wicket:wicket.DipexISApplication:m:wicket-32=[PageMap 
name=wicket-32], 
wicket:wicket.DipexISApplication:m:wicket-35=[PageMap 
name=wicket-35], 
wicket:wicket.DipexISApplication:m:wicket-34=[PageMap 
name=wicket-34], 
wicket:wicket.DipexISApplication:m:wicket-37=[PageMap 
name=wicket-37], 
wicket:wicket.DipexISApplication:m:wicket-36=[PageMap 
name=wicket-36], 
wicket:wicket.DipexISApplication:m:wicket-39=[PageMap 
name=wicket-39], 
wicket:wicket.DipexISApplication:m:wicket-38=[PageMap 
name=wicket-38], 
wicket:wicket.DipexISApplication:m:wicket-31=[PageMap 
name=wicket-31], 
wicket:wicket.DipexISApplication:m:wicket-30=[PageMap 
name=wicket-30], 
wicket:wicket.DipexISApplication:m:wicket-29=[PageMap 
name=wicket-29], wicket:wicket.DipexISApplication:m:null=[PageMap 
name=null], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap 
name=wicket-4], wicket:wicket.DipexISApplication:m:wicket-24=[PageMap 
name=wicket-24], 
wicket:wicket.DipexISApplication:m:wicket-23=[PageMap 
name=wicket-23], wicket:wicket.DipexISApplication:m:wicket-3=[PageMap 
name=wicket-3], wicket:wicket.DipexISApplication:m:wicket-22=[PageMap 
name=wicket-22], wicket:wicket.DipexISApplication:m:wicket-2=[PageMap 
name=wicket-2], wicket:wicket.DipexISApplication:m:wicket-21=[PageMap 
name=wicket-21], wicket:wicket.DipexISApplication:m:wicket-1=[PageMap 
name=wicket-1], wicket:wicket.DipexISApplication:m:wicket-8=[PageMap 
name=wicket-8], wicket:wicket.DipexISApplication:m:wicket-28=[PageMap 
name=wicket-28], wicket:wicket.DipexISApplication:m:wicket-7=[PageMap 
name=wicket-7], wicket:wicket.DipexISApplication:m:wicket-27=[PageMap 
name=wicket-27], wicket:wicket.DipexISApplication:m:wicket-6=[PageMap 
name=wicket-6], wicket:wicket.DipexISApplication:m:wicket-26=[PageMap 
name=wicket-26], wicket:wicket.DipexISApplication:m:wicket-5=[PageMap 
name=wicket-5], wicket:wicket.DipexISApplication:m:wicket-25=[PageMap 
name=wicket-25], 
wicket:wicket.DipexISApplication:m:wicket-20=[PageMap 
name=wicket-20], wicket:wicket.DipexISApplication:m:wicket-0=[PageMap 
name=wicket-0], wicket:wicket.DipexISApplication:m:wicket-18=[PageMap 
name=wicket-18], 
wicket:wicket.DipexISApplication:m:wicket-19=[PageMap 
name=wicket-19], 
wicket:wicket.DipexISApplication:m:wicket-50=[PageMap 
name=wicket-50], 
wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], 
wicket:wicket.DipexISApplication:m:wicket-51=[PageMap 
name=wicket-51], 
wicket:wicket.DipexISApplication:m:wicket-14=[PageMap 
name=wicket-14], 
wicket:wicket.DipexISApplication:m:wicket-52=[PageMap 
name=wicket-52], 
wicket:wicket.DipexISApplication:m:wicket-17=[PageMap 
name=wicket-17], 
wicket:wicket.DipexISApplication:m:wicket-53=[PageMap 
name=wicket-53], 
wicket:wicket.DipexISApplication:m:wicket-16=[PageMap 
name=wicket-16], wicket:wicket.DipexISApplication:session=sysadm; , 
wicket:wicket.DipexISApplication:m:wicket-11=[PageMap 
name=wicket-11], 
wicket:wicket.DipexISApplication:m:wicket-10=[PageMap 
name=wicket-10], 
wicket:wicket.DipexISApplication:m:wicket-13=[PageMap 
name=wicket-13], wicket:wicket.DipexISApplication:m:wicket-9=[PageMap 
name=wicket-9], wicket:wicket.DipexISApplication:m:wicket-12=[PageMap 
name=wicket-12], 
Wicket:sessionunbindinglistener-wicket.dipexisapplication=org.apache.wicket.protocol.http.abstracthttpsessionstore$sessionbindingliste...@18b1f95, 
wicket:wicket.DipexISApplication:m:wicket-41=[PageMap 
name=wicket-41], 
wicket:wicket.DipexISApplication:m:wicket-42=[PageMap 
name=wicket-42], 
wicket:wicket.DipexISApplication:m:wicket-40=[PageMap 
name=wicket-40], 
wicket:wicket.DipexISApplication:m:wicket-49=[PageMap 
name=wicket-49], 
wicket:wicket.DipexISApplication:m:wicket-47=[PageMap 
name=wicket-47], 
wicket:wicket.DipexISApplication:m:wicket-48=[PageMap 
name=wicket-48], 
wicket:wicket.DipexISApplication:m:wicket-45=[PageMap 
name=wicket-45], 
wicket:wicket.DipexISApplication:m:wicket-46=[PageMap 
name=wicket-46], 
wicket:wicket.DipexISApplication:m:wicket-43=[PageMap 
name=wicket-43], 
wicket:wicket.DipexISApplication:m:wicket-44=[PageMap 
name=wicket-44]}, 
50463537d1a470bc5ef5a7117f35:{wicket:wicket.DipexISApplication:m:wicket-15=[PageMap 
name=wicket-15], wicket:wicket.DipexISApplication:m:wicket-4=[PageMap