Re: Horizontal scroll for Palette

2014-01-17 Thread grazia
I figured ... please let us know when that change is available. Thanks


On Fri, Jan 17, 2014 at 10:45 AM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n4663804...@n4.nabble.com> wrote:

> I am not CSS expert but if the  parent is .a  instead of 
> then setting the width and overflow-x to the div works.
> I have no idea why Palette's markup uses . Maybe it is a legacy.
> We have a ticket to rework all tables to divs where this makes sense.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Fri, Jan 17, 2014 at 5:36 PM, grazia <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4663804&i=0>>wrote:
>
>
> > I have tried to override the palette css and added
> > overflow-x:scroll to both table.palette and td.pane, but to no avail.
> > ANybody succeeded in this ? ALl previous posts on the topic do not
> record
> > any success ..
> >
> > table.palette {
> > border: 0;
> > overflow-x:scroll;
> > white-space: nowrap;
> > }
> > table.palette td.pane {
> > width: 200px;
> > text-align: center;
> > overflow-x:scroll;
> >
> > }
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Horizontal-scroll-for-Palette-tp4663803.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4663804&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4663804&i=2>
> >
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Horizontal-scroll-for-Palette-tp4663803p4663804.html
>  To unsubscribe from Horizontal scroll for Palette, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4663803&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY2MzgwM3wyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Horizontal-scroll-for-Palette-tp4663803p4663805.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



Horizontal scroll for Palette

2014-01-17 Thread grazia
I have tried to override the palette css and added
overflow-x:scroll to both table.palette and td.pane, but to no avail.
ANybody succeeded in this ? ALl previous posts on the topic do not record
any success ..

table.palette {
border: 0;
overflow-x:scroll;
white-space: nowrap;
}
table.palette td.pane {
width: 200px;
text-align: center;
overflow-x:scroll;

}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Horizontal-scroll-for-Palette-tp4663803.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



Modal Window targeting a dropDown

2014-01-08 Thread grazia
Not clear why I cannot target the dropdown persChoices from within
#setWindowClosedCallback, after I have selected an item from the perChoices
dropDown. In other words, persChoices gets populated correctly each time the
modal window PersonnelFilterTypeModal gets called; but as soon as I select
something in the persChoices dropDown, calling the modal window does not
refresh the persChoices dropDown anymore.


private IModel choiceModel = new Model();

private IModel persFilterModel = new Model();

private IModel> persFilterArray = new
LoadableDetachableModel>() {

@Override
protected List load() {
return myDao.getResults(choiceModel.getObject());
}

};

public MyPanel(final String id, final IModel persPanelModel, final
PageParameters params, final PageReference pageRef) {
super(id, persPanelModel);

(...)

//Set choiceModel
choiceModel.setObject(myDao.getUserPrefs());

final PersonnelFilterTypeModal filterTypeModal = new
PersonnelFilterTypeModal(
"persFilterType");
filterTypeModal.setCookieName("persFilterTypeModal");

filterTypeModal.setPageCreator(new ModalWindow.PageCreator() {
public Page createPage() {
(...)
return new PersFilterContent(pageRef, 
filterTypeModal, params);
}

});

add(filterTypeModal);

filterTypeModal
.setCloseButtonCallback(new 
ModalWindow.CloseButtonCallback() {
public boolean 
onCloseButtonClicked(AjaxRequestTarget target) {
return true;
}
});

filterTypeModal
.setWindowClosedCallback(new 
ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget 
target) {


target.add(persChoices); <--- 
NOTHING HAPPENS ...

}
});

add(filterTypeModal);

persChoices = new DropDownChoice("personnelFilter",
persPanelModel, persFilterArray) {
@Override
protected CharSequence getDefaultChoice(String 
selectedValue) {

return "";
}
 @Override
protected void 
onSelectionChanged(String newSelection) {


super.onSelectionChanged(newSelection);
}
@Override
protected boolean 
wantOnSelectionChangedNotifications() {

return true;
}
};
persChoices.setOutputMarkupPlaceholderTag(true);

add(persChoices);
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-Window-targeting-a-dropDown-tp4663555.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to prevent a page from being marked as dirty ?

2013-06-21 Thread grazia
The problem seems kind of resolved by using
AjaxFormComponentUpdatingBehavior.
However for the timepicker.add(new
AjaxFormComponentUpdatingBehavior("onblur") does not work if the user is
selecting time using the slider ... Darn !!


On Fri, Jun 21, 2013 at 2:43 PM, grazia [via Apache Wicket] <
ml-node+s1842946n465968...@n4.nabble.com> wrote:

> LOL !
>
> That example was my starting point ... where did I get lost ?!
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659681.html
>  To unsubscribe from How to prevent a page from being marked as dirty ?, click
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659636&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1OTYzNnwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659692.html
Sent from the Users forum mailing list archive at Nabble.com.

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



RE: How to prevent a page from being marked as dirty ?

2013-06-21 Thread grazia
LOL !

That example was my starting point ... where did I get lost ?!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659681.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to prevent a page from being marked as dirty ?

2013-06-21 Thread grazia
Upon further analysis, the Page gets dirty when any of its components' models
are updated, it is doing what it is supposed to do. Can't eliminate that
;-))

THere is something that gets out of synch with the ajax request. Below I
pasted teh code I used on a per row basis to update the tree. Anyone sees
something wrong ? I hope yes !

 saveButton.add(new AjaxFormSubmitBehavior("onclick") {

@Override
protected void onSubmit(final AjaxRequestTarget target) {
final DefaultMutableTreeNode node =
((DefaultMutableTreeNode) inputModel.getTarget());
final MyDto dto = (MyDto) node.getUserObject();
 
schedulingManager.save(dto.getTrainingClass());  
 
treeProvider.get()
.modelChanging();

node.setUserObject(new MyDto(schedulingManager.get the
record you just saved... )));

final DefaultTreeModel model =
(DefaultTreeModel) ((WicketTreeModel)
treeProvider.get()
 
.getModel()).getObject();
model.nodeChanged(node);

treeProvider.get()
.modelChanged();

target.addChildren(treeProvider.get(), node.getClass());
treeProvider.get()
.updateTree(target);

  

}





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659679.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to prevent a page from being marked as dirty ?

2013-06-21 Thread grazia
No, freezing the page id does not remove the problem. 

I need to find a way either to stop the page reload or I have to do without
the ajax part ... the two seem in conflict ...



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659668.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to prevent a page from being marked as dirty ?

2013-06-21 Thread grazia
I should have explained before. 

The context is: I have a WebPage that contains a Form with a TreeTable.
Each row of the TreeTable has a cell with a TimePicker ( extends TextField
implements IWiQueryPlugin), and a submit button at the end of the row with
an AjaxFormSubmitBehavior to save the user choices and refresh the row that
has been changed.
Now, when the user selects a time in the TimePicker cell, and its model get
set, the Page gets marked as dirty and reloaded. If the page is reloaded
before the Ajax response is sent, then the Ajax response will not be able to
refresh the row that was edited. 

I am trying to setFreezePageId, where and how is the best way to use it ?
Maybe in the onBeforeRender of the Page ? Any other idea ?






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636p4659667.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



How to prevent a page from being marked as dirty ?

2013-06-20 Thread grazia
Is there an example of how to prevent that a page is marked as dirty ?
 how to use WebPage.dirty(isInitialization) ..





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-a-page-from-being-marked-as-dirty-tp4659636.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



bug in TableComponentAsXlsHandler

2013-06-11 Thread grazia


I am using the wicket poi api to generate an excel file from a
PageableListView.
I just run into a bug in lines 67-76 of TableComponentAsXlsHandler.java:
cellExplorer becomes null already at the second iteration of the for loop
(see below)

TableParser parser = new TableParser(newSheet(), cellExporter);
if (tableComponent instanceof IPageable)
{
IPageable pageable = (IPageable)tableComponent;
for (int i = 0; i < pageable.getPageCount(); i++)
{
pageable.setCurrentPage(i);
parser.parse(tableComponent);
}
}

and we get  a NullPointerException  on line
org.wicketstuff.poi.excel.TableParser.doParse(TableParser.java:152) (see
below)

Do you have any suggestions on how to solve this problem ? 
I am using wicket-poi-1.5-RC5.1.jar



SEVERE: Unexpected error occurred
java.lang.RuntimeException: Error while generating a xls file to table
component
at
org.wicketstuff.poi.excel.TableComponentAsXlsHandler.respond(TableComponentAsXlsHandler.java:91)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:123)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:171)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at org.wicketstuff.poi.excel.TableParser.doParse(TableParser.java:152)
at org.wicketstuff.poi.excel.TableParser.parse(TableParser.java:76)
at
org.wicketstuff.poi.excel.TableComponentAsXlsHandler.respond(TableComponentAsXlsHandler.java:74)
... 26 more



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/bug-in-TableComponentAsXlsHandler-tp4659409.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: close a modal window and setResponsePage

2013-04-02 Thread grazia
Moved the discussion of my issue to here since the problem is not really
setResponsePage, but the callback behavior and how it does not "re-read" the
model of the modal window: 

http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-td4657672.html



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657685.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ModalWindow: setWindowClosedCallback has access to old model or change to modal window's model goes away ?

2013-04-01 Thread grazia
I have tried to detach the model of the modal window in the onclick, and to
reset it, but to no avail. I think that trying to manipulate teh model of
the modal window for my purpose will not work at all. 

So, I have tried in the onClick to redirect to intercept page this way:
 modalPageReference.getPage().redirectToInterceptPage(new
SecondPage(parameters));
window.close(target);
Then, I have modified the windowClosedCallBack this way:
 window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 1L;

   
@Override
public void onClose(AjaxRequestTarget target) {

   modalPageReference.getPage().continueToOriginalDestination();
   }
});
The only problem is that he SecondPage is rendered within the modal window,
and I would like to close it and use the window of the main page ...
Anyone interested in helping out with this ?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-tp4657672p4657681.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ModalWindow: setWindowClosedCallback has access to old model or change to modal window's model goes away ?

2013-04-01 Thread grazia
It seems that  the model of the modal window is read before his behavior
responds, and it is not re-read after the behavior responds. 

How to get around this ? Nobody has a suggestion ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-tp4657672p4657680.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ModalWindow: setWindowClosedCallback has access to old model or change to modal window's model goes away ?

2013-04-01 Thread grazia
I think that the issue has something to do with the fact that
WindowClosedCallBack is a Behavior, and in the wicket.Behavior I find the
note: 
* 
 * You also cannot modify a components model with a behavior.
 * 

I am not modifying the model of the window through the windowClosedCallBack,
but does this note also mean that I cannot expect the behavior to hold a
reference to an updated model of the component (my modal window) ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-tp4657672p4657679.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



ModalWindow setWindowClosedCallback has access to old model ?

2013-04-01 Thread grazia
I need to select one of two links on the modal window and be able to redirect
user to the selected page. In order to accomplish that, I woudl expect to be
able to a) update the model object of the modal window from the appropriate
onClick (which seems to happen) and then b) to retrieve the new value of the
model object  within the WindowClosedCallback().onClose, but it does not
happen. I hope somebody can help. 

modal = new ModalWindow("modal", new Model(MyType.FIRST_PAGE));
(...)

  modal.setOutputMarkupId(true);
modal.setPageCreator(new ModalWindow.PageCreator()
   {
   public Page createPage()
{
return new
MyModalWindow(getPage().getPageReference(), modal, params);
}
});

target.appendJavaScript( "Wicket.Window.unloadConfirmation =
false;" ); 
modal.show(target);


(...)

 public MyModalWindow(final PageReference modalWindowPage,
 final ModalWindow window,
 final PageParameters parameters) {

   
   window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback()
{
private static final long serialVersionUID = 1L;

@Override
public void onClose(AjaxRequestTarget target) {
   
System.out.println( window.getDefaultModelObject());
<--- Always the original FIRST_PAGE

 modalWindowPage.getPage()
.setResponsePage(((MyType)
window.getDefaultModelObject()).equals(MyType.FIRST_PAGE) ? new
FirstPage(parameters)
: new SecongPage(parameters));
   
}
});

 add(new AjaxLink("secondPage") {
private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {

   
   window.setDefaultModel(new Model(MyType.SECOND_PAGE));
   System.out.println("NOW THE MODEL IS " +
window.getDefaultModelObject()); <-- ok, second page

window.close(target);

}

});



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-tp4657672.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: close a modal window and setResponsePage

2013-03-28 Thread grazia
In order to setResponse to one field or another I have to have some flag that
determines which one. 
Even using a model, and setting it from whithin the onClick of the AjaxLink,
the model within the closed window callback remains null. It is as if
whatever is set within the closed window callback cannot be modified at all. 
TypeModel remains unchanged in the setWindowClsoedCallBack despite the lines
in the onClick:

type = MyType.FIRST;
typeModel.setObject(type);
window.setDefaultModel(typeModel);



So:
 private MyType type = MyType.FIRST;
   
IModel typeModel = new Model (type);

public MyModalWindow(final PageReference modalWindowPage,
 final ModalWindow window,
 final PageParameters parameters) {

  window.setDefaultModel(typeModel);
window.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 1L;

public void onClose(AjaxRequestTarget target) {

  modalWindowPage.getPage()
 
.setResponsePage(typeModel.getObject().equals(MyType.SECOND)  ? new
SecongPage(parameters)
  : new FirstPage(parameters));
 
   
}
});

 add(new AjaxLink("firstPage") {
private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {

type = MyType.FIRST;
 typeModel.setObject(type);
 window.setDefaultModel(typeModel);
 window.close(target);



}

});

}




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657644.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: close a modal window and setResponsePage

2013-03-28 Thread grazia
What if one wants to choose whether to redirect to page A or page B ? 
Once the windowClosedCallback is set at modal window creation, how do I
redirect to one place OR another ?
The windowClosedCallback does not seem to lend itself to this. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/close-a-modal-window-and-setResponsePage-tp2074789p4657629.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



AjaxLink with image

2013-03-26 Thread grazia
The image in the AjaxLink does not display, anyone could help me figure this
one out ?

   private static final ResourceReference DELETE = new
PackageResourceReference(SabcActionsPanel.class, "delete.png");
 
final AjaxLink deleteLink = new AjaxLink("delete") {

private static final long serialVersionUID = 1L;

public void onClick(AjaxRequestTarget target) {
target.appendJavaScript("alert('Going to delete!')");
}
};
deleteLink.add(new Image("deleteImg", DELETE));
deleteLink.setOutputMarkupId(true);

add(deleteLink);

in Html, I have tried:


or


 







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLink-with-image-tp4657544.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DropDown in palette's header ?

2013-03-11 Thread grazia
If this is the statespanel;


http://wicket.apache.org";>


Select a State: 




public class StatePanel extends Panel {

/**
 *
 */
private static final long serialVersionUID = 1L;

public StatePanel(final String id, final IModel stateModel,
final IModel> stateChoicesModel) {
super(id);

final DropDownChoice stateDropdown = new
DropDownChoice(
"states", stateModel, stateChoicesModel);


}

}

And on the page:

final Palette palette = new Palette(
"palette", selectedInstallations, availableInstallations,
new ChoiceRenderer("location", "locationId"),
25, false) {

@Override
protected Component newAvailableHeader(String componentId) {
return new StatePanel(componentId, stateModel,
stateChoicesModel);

}
};
palette.setOutputMarkupId(true);

Iam getting:

WARNING: Detected inconsistency in choice component: class ...
LocAssociation/form:states. Model returned object: , but this
object is not available in the list of selected objects.
Mar 11, 2013 12:57:22 PM org.apache.wicket.MarkupContainer renderNext
SEVERE: Unable to find component with id 'states' in [StatePanel [Component
id = availableHeader]]
Expected: 'form:palette:availableHeader.states'.
Found with similar names: 'form:states'
Mar 11, 2013 12:57:22 PM org.apache.wicket.DefaultExceptionMapper
internalMap
SEVERE: Unexpected error occurred
Unable to find component with id 'states' in [StatePanel [Component id = ava
ilableHeader]]
Expected: 'form:palette:availableHeader.states'.
Found with similar names: 'form:states'
 MarkupStream: [markup =
file:/C:/home/Workspaces/mrdss-dev2/mrdss/web/target/classes/.../StatePanel.html
http://wicket.apache.org";>


Select a
State:



, index = 2, current =  '' (line
0, co
lumn 0)]
at
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStre

On Mon, Mar 11, 2013 at 11:39 AM, Paul Bors [via Apache Wicket] <
ml-node+s1842946n4657167...@n4.nabble.com> wrote:

> Sorry, you wanted inside the selected header... same thing only a
> different
> override.
> Look up the API of the Palette.
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Paul Bors [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=0>]
>
> Sent: Monday, March 11, 2013 12:25 PM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4657167&i=1>
> Subject: RE: DropDown in palette's header ?
>
> @Override
> protected Component newAvailableHeader(String componentId) {
> return new AvailableHeaderPanel(componentId, form); }
>
> Where AvailableHeaderPanel is your own panel.
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: grazia [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=2>]
>
> Sent: Monday, March 11, 2013 11:54 AM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4657167&i=3>
> Subject: DropDown in palette's header ?
>
> Hi,
>
> is there a way to place a dropdown inside the selected header of a palette
> ?
>
> Thanks
>
>
>
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/DropDown-in-palette-s-header-tp46
> 57163.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=4>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=5>
>
>
>
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=6>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657167&i=7>
>
>  ~ Thank you,
> p...@bors.ws
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/DropDown-in-palette-s-header-tp4657163p4657167.html
>  To unsubscribe from DropDown in palette's header ?, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=46571

Re: DropDown in palette's header ?

2013-03-11 Thread grazia
oh, so my dropdown would have to go into a panel. I'll try it.

Is there a way I can keep track of the items that the user might move from
the left side to the right side of the palette ? And viceversa ?


On Mon, Mar 11, 2013 at 11:25 AM, Paul Bors [via Apache Wicket] <
ml-node+s1842946n4657166...@n4.nabble.com> wrote:

> @Override
> protected Component newAvailableHeader(String componentId) {
> return new AvailableHeaderPanel(componentId, form);
> }
>
> Where AvailableHeaderPanel is your own panel.
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: grazia [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657166&i=0>]
>
> Sent: Monday, March 11, 2013 11:54 AM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4657166&i=1>
> Subject: DropDown in palette's header ?
>
> Hi,
>
> is there a way to place a dropdown inside the selected header of a palette
> ?
>
> Thanks
>
>
>
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/DropDown-in-palette-s-header-tp46
> 57163.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657166&i=2>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657166&i=3>
>
>
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657166&i=4>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4657166&i=5>
>
>  ~ Thank you,
> p...@bors.ws
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/DropDown-in-palette-s-header-tp4657163p4657166.html
>  To unsubscribe from DropDown in palette's header ?, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4657163&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NzE2M3wyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDown-in-palette-s-header-tp4657163p4657168.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



on models and Panels

2013-03-10 Thread grazia

I have a panel containing an autocomplete. The autocomplete contains its own
converter. 
The model of the page that contains the autocomplete-panel should be updated
to the converted object of the autocomplete, and it does, but (here it shows
my lack of wicket knowledge) somehow it gets set once with the full
converted object, and once with an object where only the name field of the
object has been set (the rest being null).

Here is a skeleton of the code (Panel and page where it is used)

public class NewPanel extends Panel {

final Component targetComponent;
final AutoCompleteTextField codeAutoComplete;

public NewPanel(final String id,
final IModel codeModel, final Component 
component) {
super(id);
this.targetComponent = component;

codeAutoComplete = new AutoCompleteTextField(
"code",
new PropertyModel(codeModel.getObject(), 
"code"),
getAutocompleteRenderer()) {

@Override
protected Iterator getChoices(String input) {
 (...)
}
   @Override
public final IConverter getConverter(Class type) {
return new IConverter() { (...) }
  };
  codeAutoComplete.add(new
AjaxFormComponentUpdatingBehavior(
"onchange") {

private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {

codeModel.setObject(codeAutoComplete.getConvertedInput());
target.add(targetComponent);

}
});
codeAutoComplete.setType(Code.class);
add(codeAutoComplete);

}

public class NewCodeAssociationPage extends WebPage {

private IModel pascodeModel = new Model(new Code());
final Set codeList = new HashSet();

final IModel> associatedCodes = new
LoadableDetachableModel>() {
@Override
protected List load() {
(...)
};
};

final IModel> availableCodes = new
LoadableDetachableModel>() {

@Override
protected List load() {
if (codeModel.getObject() != null) {
codeList.add(codeModel.getObject());
}
codeList.addAll(associatedCodes.getObject());
return new ArrayList(codeList);
}
};
public NewCodeAssociationPage() {


final Form form = new Form("form");
final Palette palette = new Palette("palette",
associatedCodes, availableCodes,
new ChoiceRenderer("code", "codeId"), 25, 
false);
palette.setOutputMarkupId(true);

final NewCodePanel codePanel = new NewCodePanel(
"codeAutoCompletePanel", codeModel, palette);
}

}

THe set codeList in the NewCodeAssociationPage ends up containing a
"converted" Code object ( so, something looking like
Code[code=ABCDE,codeId=30] AND also the same just with the code name
specified: Code[code=ABCDE,codeId=null] So, it ends up showing twice in my
palette. 
THere is something incorrect I do with the autocomplete panel and the model,
and I have not understood what it is. I would greatly appreciate any pointer
in the right direction. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/on-models-and-Panels-tp4657131.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AutoCompleteTextField displays "null"

2013-03-05 Thread grazia
my difficulty is that I am using a compoundpropertyModel this way:

private final CompoundPropertyModel personnelModel = new
CompoundPropertyModel(new AllPersonnel());
(...)
autoComplete = new AutoCompleteTextField(
"personnelAutoComplete", personnelModel,  
AllPersonnel.class, renderer,
new AutoCompleteSettings()) { (...) }





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-displays-null-tp4656997p4656999.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Conflicting settings? isInputNullable and setConvertEmptyInputStringToNull ?

2013-03-01 Thread grazia
Has this been taken care of ? I have an AutoCompleteTextField that always
displays "null" even if I use the setConvertEmptyInputStringToNull (false).
In fact, the constructor of the autocomplete has it always set to true ...  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Conflicting-settings-isInputNullable-and-setConvertEmptyInputStringToNull-tp1885705p4656901.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: shared models - rules

2013-02-23 Thread grazia
Made it, CompoundPropertyModels, used correctly, made things work.

On Fri, Feb 22, 2013 at 6:49 PM, Grazia Russo Lassner <
grazia.russolass...@gmail.com> wrote:

> THank you for the suggestion. It prints the MyClass object but nothing has
> ben set. Not even the converter of the AUtoCompleteTextFiled is being
> called ... I cannot figure out why ...
>
>
> On Fri, Feb 22, 2013 at 5:08 PM, duesenklipper [via Apache Wicket] <
> ml-node+s1842946n4656705...@n4.nabble.com> wrote:
>
>> > form.add(new Button("appointButton") {
>> >
>> > public void onSubmit() {
>> > System.out.println("HERE = " + getModelObject() );
>> > <-- whatever it is the choice in the autocomplete which is within
>> > the MyPersonnelPanel this is always null
>> >
>> > }
>> >
>>
>> I didn't look at the rest of the code yet since it's pretty late here,
>> but this definitely won't work. You're calling the Button's
>> getModelObject(), not the Form's, since at this point you're in the
>> Button's onSubmit(), so "this" would be the Button. You don't give the
>> button a model, so you're getting null. If you want to use it in there,
>> you can for example call form.getModelObject().
>>
>> Carl-Eric
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=4656705&i=0>
>> For additional commands, e-mail: [hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=4656705&i=1>
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656705.html
>>  To unsubscribe from shared models - rules, click 
>> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656700&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjcwMHwyMjY4MDg1NDM=>
>> .
>> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656713.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: shared models - rules

2013-02-22 Thread grazia
THank you for the suggestion. It prints the MyClass object but nothing has
ben set. Not even the converter of the AUtoCompleteTextFiled is being
called ... I cannot figure out why ...

On Fri, Feb 22, 2013 at 5:08 PM, duesenklipper [via Apache Wicket] <
ml-node+s1842946n4656705...@n4.nabble.com> wrote:

> > form.add(new Button("appointButton") {
> >
> > public void onSubmit() {
> > System.out.println("HERE = " + getModelObject() );
> > <-- whatever it is the choice in the autocomplete which is within
> > the MyPersonnelPanel this is always null
> >
> > }
> >
>
> I didn't look at the rest of the code yet since it's pretty late here,
> but this definitely won't work. You're calling the Button's
> getModelObject(), not the Form's, since at this point you're in the
> Button's onSubmit(), so "this" would be the Button. You don't give the
> button a model, so you're getting null. If you want to use it in there,
> you can for example call form.getModelObject().
>
> Carl-Eric
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656705.html
>  To unsubscribe from shared models - rules, click 
> here
> .
> NAML
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656708.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: shared models - rules

2013-02-22 Thread grazia
public class RolesAppointment extends MyPage {

private final IModel personnelModel = new
CompoundPropertyModel(new MyClass()) ;


final List rolesList = new ArrayList();

public RolesAppointment() {

createComponents();

}

private void createComponents() {

final Form form= new Form(
"form", personnelModel);

form.add(new DropDownChoice("roles",
new Model(), Arrays.asList(Roles.values()),
new ChoiceRenderer("roleName")).setNullValid(true));

form.add(new AjaxLazyLoadPanel("personnelPanel",
personnelModel) {

@Override
public Component getLazyLoadComponent(final String markupId) {
return new MyPersonnelPanel(markupId, form.getModelObject()
);
}



});


form.add(new Button("appointButton") {

public void onSubmit() {
System.out.println("HERE = " + getModelObject() ); <--
whatever it is the choice in the autocomplete which is within the
MyPersonnelPanel this is always null

}




});

add(form);


}

}

MyPersonnelPanel 




public class MyPersonnelPanel extends Panel implements IAjaxIndicatorAware {

@Inject
private PersonnelDao personnelDao;

final ListModel personnelList = new ListModel();

final AbstractAutoCompleteTextRenderer renderer = new
AbstractAutoCompleteTextRenderer() {
@Override
protected String getTextValue(MyClass object) {
return object.getTitleFormat();
}

@Override
protected void renderChoice(MyClass object,
org.apache.wicket.request.Response response, String
criteria) {
response.write(getTextValue(object));
};

};

 private final AutoCompleteTextField personnelAutoComplete;


 private MyClass personnelModel;

public MyPersonnelPanel(final String id,
final MyClass personnelModel) {
super(id);
this.personnelModel = personnelModel;

personnelAutoComplete = new
AutoCompleteTextField("personnelAutoComplete",
new PropertyModel(personnelModel == null  ? new
MyClass() : personnelModel, "personnelId"), MyClass.class,
renderer, new AutoCompleteSettings()) {

@Override
protected final Iterator getChoices(final String
input) {
if (Strings.isEmpty(input)) {
return Collections.EMPTY_LIST.iterator();
}

List choices = new ArrayList();

if (input.length() > 1) {
personnelList.setObject(personnelDao
.findByLastName(input));
}

for (final MyClass  person : personnelList.getObject()) {
if (person.getLastName().trim()
.startsWith(input.toUpperCase())) {

choices.add(person);
}
}

return choices.iterator();
}

@Override
public 
org.apache.wicket.util.convert.IConverter getConverter(
java.lang.Class type) {
return (IConverter) new IConverter() {

@Override
public MyClass convertToObject(String value,
java.util.Locale locale) {
List selectedChoices = personnelList
.getObject();
for (Iterator iterator =
selectedChoices.iterator(); iterator
.hasNext();) {
MyClass choice = (MyClass) iterator
.next();
if (choice.getTitleFormat().startsWith(value)) {
return choice;
}

}

return null;
}

@Override
public String convertToString(MyClass value,
java.util.Locale locale) {
// TODO Auto-generated method stub
if (value != null) {
return Long.toString(value.getPersonnelId());
}
return null;
}

};
}

};


add(personnelAutoComplete);


}





@Override
public String getAjaxIndicatorMarkupId() {

return "veil";
}



}


On Fri, Feb 22, 2013 at 3:52 PM, duesenklipper [via Apache Wicket] <
ml-node+s1842946n4656703...@n4.nabble.com> wrote:

> On Fri, 22 Feb 2013 13:23:20 -0800 (PST)
> grazia <[hidden email]<http://user/SendEmail.

Re: shared models - rules

2013-02-22 Thread grazia
If the form contains a panel, and that panels contains a textfield, and all
share the same IModel, this is what I see:
the textField model gets updated, but not the panel's model and not the
form's model.

It seems I am missing something with the panels ... it is as if they were
some sort of barrier ...



On Fri, Feb 22, 2013 at 3:19 PM, duesenklipper [via Apache Wicket] <
ml-node+s1842946n4656701...@n4.nabble.com> wrote:

> On Fri, 22 Feb 2013 12:42:14 -0800 (PST)
> grazia <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656701&i=0>>
> wrote:
>
> > Say I have a page with several components all sharing the same model;
> > what are the rules of thumb to make sure the same model gets updated
> > byt the different components on the page ?
>
> If you only ever pass these components that one model, then they only
> have that one to update, so that's what they'll do. Are you seeing some
> sort of unexpected effect?
>
> Carl-Eric
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4656701&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4656701&i=2>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656701.html
>  To unsubscribe from shared models - rules, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656700&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjcwMHwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/shared-models-rules-tp4656700p4656702.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
So, what do I do to update the palette's model with the changes before
target.add(this) ?

On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] <
ml-node+s1842946n4656572...@n4.nabble.com> wrote:

> if you push the submit button before sending any event, you will see that
> changes made to the model are saved correclty.
>
> But in case you fire any event, you redisplay 'this' (the palette) before
> the model is updated.
> The state of this, in that case, is like a new original palette.
> So far, only the javascript on the client side has been executed.
>
>
>
> François Meillet
> Formation Wicket - Développement Wicket
>
>
>
>
>
>
> Le 19 févr. 2013 à 18:52, grazia <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4656572&i=0>>
> a écrit :
>
> > I sort of got it to work, but now when I move items from one side of the
> > palette to the other and try to save it, the changes are not picked up
> by
> > the model and are not saved ...
> >
> > public class MyPalette extends Palette {
> > private List unselectedChoices;
> > public MyPalette(String id, IModel> model,
> > IModel> choicesModel, IChoiceRenderer choiceRenderer,
> > int rows, boolean allowOrder) {
> > super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
> >
> > setOutputMarkupId(true);
> > unselectedChoices = new ArrayList();
> >
> >
> > }
> >
> > @Override
> > public void onEvent(IEvent event) {
> >
> > super.onEvent(event);
> >
> > if (event.getPayload() instanceof MyAutoCompleteUpdate) {
> >
> > MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
> > .getPayload();
> >
> > Collection collection = this.getChoices(); // the whole set of data,
> > availalble (unselected) and associated (selected)
> > System.out.println("SIZE " + collection.size() + " ");
> >
> >
> > unselectedChoices.add((T) update.getModelObject());
> > System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
> >
> > collection.addAll(unselectedChoices);
> > System.out.println("SIZE AFTER ADDING selection" + collection.size() + "
> > ");
> >
> >
> >
> > update.getTarget().add(this);
> >
> > }
> >
> > }
> >
> > }
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.html
>
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4656572&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4656572&i=2>
> >
>
>  François Meillet
> Formation Wicket - Développement Wicket
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656572.html
>  To unsubscribe from unselected choices of Palette contain duplicates ..., 
> click
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656430&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656577.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
I sort of got it to work, but now when I move items from one side of the
palette to the other and try to save it, the changes are not picked up by
the model and are not saved ...

public class MyPalette extends Palette {
private List unselectedChoices;
public MyPalette(String id, IModel> model,
IModel> choicesModel, IChoiceRenderer 
choiceRenderer,
int rows, boolean allowOrder) {
super(id, model, choicesModel, choiceRenderer, rows, 
allowOrder);

setOutputMarkupId(true);
unselectedChoices = new ArrayList();


}

@Override
public void onEvent(IEvent event) {

super.onEvent(event);

if (event.getPayload() instanceof MyAutoCompleteUpdate) {

MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) 
event
.getPayload();

Collection collection = this.getChoices(); // the whole 
set of data,
availalble (unselected) and associated (selected)
 System.out.println("SIZE " + collection.size() + " ");


unselectedChoices.add((T) update.getModelObject());
System.out.println("SIZE UNSELECTED" + 
unselectedChoices.size() + " ");

collection.addAll(unselectedChoices);
System.out.println("SIZE AFTER ADDING selection" + 
collection.size() + "
");



update.getTarget().add(this);

}

}

}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread grazia
To summarize that long code posting, on the page, there is an autocomplete,
and a form containing the palette. 
The autocomplete "sends" the choice selection to the palette ...  or is
there something else (the form ?) that receives the event first and sends it
to the palette ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656434.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Overriding onEvent to update choices side of Palette

2013-02-15 Thread grazia
Let me give you more context:

my page consists of:
- a lazy loading autocompletetextfield
- a form containing the palette

By selecting an option in the autocomplete, the left side of the palette
(choices side) should display that selection made in the autocomplete.

So, I have so far managed to add a AjaxFormUpdatingBehavior to the
autocomplete, which sends the event to the palette ( using
Component.*send<http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Component.html#send%28org.apache.wicket.event.IEventSink,%20org.apache.wicket.event.Broadcast,%20T%29>
*(IEventSink<http://wicket.apache.org/apidocs/1.5/org/apache/wicket/event/IEventSink.html>
sink,
Broadcast<http://wicket.apache.org/apidocs/1.5/org/apache/wicket/event/Broadcast.html>
type,
T payload) ). For the palette to receive the event, I override the onEvent
method I showed you.

Now, the onEvent receives the AjaxRequestTarget, but
target.add(this) (where "this" is the palettte) does not do anything.
I tried:
target.add(this.getChoicesComponent()) and does not anything either.

"Why not use the event triggered by the ART directly. " could you please
explain ?


On Thu, Feb 14, 2013 at 11:52 PM, Ernesto Reinaldo Barreiro-4 [via Apache
Wicket]  wrote:

> Hi,
>
> It is difficult to understand what you are doing... Are you in the middle
> of an AjaxRequestTarget(ART)? If that what
>
>   update.getTarget().add(this.getChoicesComponent());
>
> means? Why not use the event triggered by the ART directly.
>
>
> On Thu, Feb 14, 2013 at 10:34 PM, grazia <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4656381&i=0>>wrote:
>
>
> > Nobody has any idea ? I am stuck
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Overriding-onEvent-to-update-choices-side-of-Palette-tp4656376p4656380.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4656381&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=4656381&i=2>
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ <http://antiliasoft.com/antilia>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Overriding-onEvent-to-update-choices-side-of-Palette-tp4656376p4656381.html
>  To unsubscribe from Overriding onEvent to update choices side of Palette, 
> click
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656376&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjM3NnwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Overriding-onEvent-to-update-choices-side-of-Palette-tp4656376p4656397.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



override the css of the AbstractFormDialog

2013-02-06 Thread grazia
I have created a class that extends the
com.googlecode.wicket.jquery.ui.widget.dialog.AbstractFormDialog in order to
create a modal dialog in my page.
The dialog needs to be customized in its appearance. How to do that ? 
I have tried to override the css modal.css (it comes in
wicket-extensions-1.5.4.jar ), but to no avail, what css is the
AbstractFormDialog using ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/override-the-css-of-the-AbstractFormDialog-tp4656135.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: editable tree table: submit all changes at once

2013-01-29 Thread grazia
Sorry, I got the source code



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/editable-tree-table-make-an-editable-row-rather-than-an-editable-cell-tp4655768p4655879.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: editable tree table: submit all changes at once

2013-01-28 Thread grazia
This is what I did, comments are welcome. 
On each row, I have an "action's" cell (actions like "save" or "delete").
That cell is represented by a class that extends Panel. Its constructor
takes an id and a PropertyModel as arguments. The PropertyModel allows me to
get the tree node in that row. 

final DefaultMutableTreeNode node =
((DefaultMutableTreeNode)inputModel.getTarget());
final MyObject obj = (MyObject)node.getUserObject();


Please let me know if there is a better way. Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/editable-tree-table-make-an-editable-row-rather-than-an-editable-cell-tp4655768p4655859.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



clickable calendar cells

2012-09-27 Thread grazia
My customer needs to have an overview of some data through a calendar; each
calendar cell would contain data for a specific day; the cells would be
clickable so that the user could be redirected to another screen with more
information pertaining to the selected day of the month. 
Any idea as to how to accomplish this in wicket ?
 
Thank you in advance for any suggestion. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/clickable-calendar-cells-tp4652474.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: OSIV with requestCycleListener

2012-03-21 Thread grazia
Thank you for the suggestion, I will try it. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OSIV-with-requestCycleListener-tp4493806p4493927.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



OSIV with requestCycleListener

2012-03-21 Thread grazia
Would you recommend using a requestCycleListener to implement the OSIV
pattern and storing the hibernate session in a threadlocal ? 
Any comments ? tips ?

public class MyRequestCycleListener extends AbstractRequestCycleListener {

private static final ThreadLocal requestCycleThread = new
ThreadLocal();

/** Keys for session factories that have been opened for this request */
//protected static HashSet keys = new HashSet();

public static ThreadLocal getRequestCycleThread() {
return requestCycleThread;
}

@Override
public void onBeginRequest(RequestCycle cycle) {

if (requestCycleThread.get() == null) {
Session session = MyRequestCycle.getHibernateSession(null); 
requestCycleThread.set(session);
 }
 }

@Override
public void onEndRequest(RequestCycle cycle) {
if (requestCycleThread.get()!= null){
MyRequestCycle.closeHibernateSessions();
requestCycleThread.set(null);
 }
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OSIV-with-requestCycleListener-tp4493806p4493806.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



URL in css problem

2012-03-15 Thread grazia
I have a mouseovermenu.css file that includes references to images as below: 

.mouseovermenuitem .item_itembody .item_itemdetail .icon_page
{
background:transparent URL(../images/mouseovermenu/page.gif) no-repeat 
top
left;
}

I have added the mouseovermenu.css as a shared resource in
myApplication.init as follows:

getSharedResources().add("cssmouseover", new
ContextRelativeResource("/css/mouseovermenu.css"));
  
Then, I have included that resource in a page header component as below:

 add(new Behavior() {

@Override
public void renderHead(Component component, IHeaderResponse
response) {
response.renderCSSReference(new
SharedResourceReference("cssmouseover"));
}
});

But wicket 1.5 is expecting to find
wicket/resource/images/mouseovermenu/page.gif and it ovisouly does not
exist, so I get the error:

Mar 15, 2012 11:43:39 AM org.apache.wicket.util.lang.WicketObjects
resolveClass
WARNING: Could not resolve class [images]
java.lang.ClassNotFoundException: images
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1680)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1526)
 ()

When the page is rendered, then I see in its source that the .css file is 


Where is the href coming from ? What do all its parts mean ?
I am rather confused about how to manage resources that are not in
classpath. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/URL-in-css-problem-tp4476092p4476092.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to include a link to a css file not in classpath (not in WEB-INF)

2012-03-12 Thread grazia
Hi Simon, 

thanks a lot. It works. 
I am new to wicket as well. 
I was going to try this
http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/, but the
solution you have requires fewer lines of code. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-include-a-link-to-a-css-file-not-in-classpath-not-in-WEB-INF-tp4459528p4465994.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



How to include a link to a css file not in classpath (not in WEB-INF)

2012-03-09 Thread grazia
Still not clear what I did wrong.
With wicket 1.4 my code was:

public final class PageHeaderComponent extends WebComponent {

 public PageHeaderComponent(final String id, final String
changeDestination) {
super(id);
add(CSSPackageResource.getHeaderContribution("/css/header.css"));
}
(...)
}

and it created what I needed


Now with wicket 1.5, my code is:

public final class PageHeaderComponent extends WebComponent {

 public PageHeaderComponent(final String id, final String
changeDestination) {
super(id);
add(new Behavior() {
private final ResourceReference headerCss = new
PackageResourceReference("/css/header.css");

@Override
public void renderHead(Component component, IHeaderResponse
response) {
response.renderCSSReference(headerCss);
}
});
}
(...)
}

and it creates:


The warning being logged is:

WARNING: Asked to auto-create a ResourceReference, but
ResourceReferenceRegistry
.createDefaultResourceReference() return null.  [scope:
org.apache.wicket.Application; name: css/header.css; locale: null; style:
null; variation: null] 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-include-a-link-to-a-css-file-not-in-classpath-not-in-WEB-INF-tp4459528p4459528.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ResourceReferenceRegistry

2012-03-08 Thread grazia

Still not clear what I did wrong. 
With wicket 1.4 my code was:

public final class PageHeaderComponent extends WebComponent {

 public PageHeaderComponent(final String id, final String
changeDestination) {
super(id);
add(CSSPackageResource.getHeaderContribution("/css/header.css"));
}
(...)
}

and it created what I needed


Now with wicket 1.5, my code is:

public final class PageHeaderComponent extends WebComponent {

 public PageHeaderComponent(final String id, final String
changeDestination) {
super(id);
add(new Behavior() {
private final ResourceReference headerCss = new
PackageResourceReference("/css/header.css");

@Override
public void renderHead(Component component, IHeaderResponse
response) {
response.renderCSSReference(headerCss);
}
});
}
(...)
}

and it creates: 


The warning being logged is: 

WARNING: Asked to auto-create a ResourceReference, but
ResourceReferenceRegistry
.createDefaultResourceReference() return null.  [scope:
org.apache.wicket.Application; name: css/header.css; locale: null; style:
null; variation: null]



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReferenceRegistry-tp4453457p4457469.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ResourceReferenceRegistry

2012-03-07 Thread grazia
what is the resource is not next to the .class file, but in a specific
directory external to the app, say in tomcat/webapps/css ? Is there another
wicket API I should use ?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReferenceRegistry-tp4453457p4454858.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ResourceReferenceRegistry

2012-03-07 Thread grazia
Thank you Martin. 
I think it is an issue of absolutePath. 

In 
 private final ResourceReference mouseOverMenuCss = new
CssResourceReference(getClass(),

   
"/css/mouseovermenu.css");
  
the PackageResource.exists(scope, path, locale, style, variation)
will try to find my css reousrce in the path of the
PageHeaderComponentClass, which is not where my css is. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReferenceRegistry-tp4453457p4453566.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



ResourceReferenceRegistry

2012-03-07 Thread grazia
Could someone help me understand what the error below means ? I have copied
the relevant code below, what is wrong with it. I believe I have followed
guidelines for wicket 1.5


Mar 07, 2012 8:48:43 AM
org.apache.wicket.request.resource.ResourceReferenceRegi
stry addDefaultResourceReference
WARNING: Asked to auto-create a ResourceReference, but
ResourceReferenceRegistry.createDefaultResourceReference() return null. 
[scope: web.components.PageHeaderComponent$2; name: css/mouseovermenu.css;
locale: null; style: null;
 variation: null]

public final class PageHeaderComponent extends WebComponent {



public PageHeaderComponent(final String id, final String
changeDestination) {
super(id);
  add(new Behavior() {
private final ResourceReference mouseOverMenuCss = new
CssResourceReference(getClass(),

   
"/css/mouseovermenu.css");
@Override
public void renderHead(Component component, IHeaderResponse
response) {

response.renderCSSReference(mouseOverMenuCss);
}
});
(...)
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ResourceReferenceRegistry-tp4453457p4453457.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: loosing custom wicket session

2012-03-02 Thread grazia
I did bind the session as you suggested. IN addition, I noticed that I had
not appropriately accounted for my custom RequestCyle.
Thank you for your feedback, it was very useful.
I add the code hoping to help anybody running into this problem. 

this.setRequestCycleProvider(new MyRequestCycleProvider());
 
private final class MyRequestCycleProvider implements IRequestCycleProvider
{

@Override
public RequestCycle get(RequestCycleContext context) {
if (context.getRequest() instanceof WebRequest){
return new MyRequestCycle( context );
}
return this.get(context);


}
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4440588.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: loosing custom wicket session

2012-03-02 Thread grazia
THank you for your reply. 
I'll get back with an update. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4440021.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: loosing custom wicket session

2012-03-02 Thread grazia
I just ran my app using wicket 1.4. 
THe wicketsessionfilter allows me to maintain the wicket session from wicket
page to non-wicket page and back to a wicket page. This ensures that the
session is bound. 
But with wicket 1.5 the wicketsessionfilter is not binding the session when
going from a non-wicket page to a wicket page. 

Sorry if my last posts are somewhat redundant. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4439687.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: loosing custom wicket session

2012-03-02 Thread grazia
It seems that I am able to create a wicket session in a wicket page and make
it available to non-wicket pages using the WicketSessionFilter; the
wicketsessionfilter nicely binds the session. 
But I am not being able to maintain the wicket session when going from a
non-wicket page to a wicket page. 
so, how do I bind the session at that point ?
(Why was this working with wicket 1.4 ?)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4439672.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: loosing custom wicket session

2012-03-02 Thread grazia
I would think that the session needs to be bound before the WicketFilter
creates a new RequestCycle. But what is the best way of doing so ? Please
advise. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4439618.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