Re: Horizontal scroll for Palette

2014-01-17 Thread grazia
d 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 <

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: nowra

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 some

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 Wi

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. --

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

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-

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

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 l

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(), cellExp

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-moda

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.g

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-setWindowClosedCallb

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

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 valu

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 c

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

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 lon

Re: DropDown in palette's header ?

2013-03-11 Thread grazia
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) { >

Re: DropDown in palette's header ?

2013-03-11 Thread grazia
n4657166...@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 > &g

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 w

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, AllPerso

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.nab

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 conv

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> wr

Re: shared models - rules

2013-02-22 Thread grazia
senklipper [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.jtp?type=node&node=4656703&i=0>> > wrote: > > > If the form contains a panel, an

Re: shared models - rules

2013-02-22 Thread grazia
me 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>> >

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
t 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 s

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,

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 messa

Re: Overriding onEvent to update choices side of Palette

2013-02-15 Thread grazia
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 > > > > > > > &g

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

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. --

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.

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

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. --

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 Threa

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 myAp

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-i

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"

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.cs

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

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 PackageResourc

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

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 MyRequestCycleProvid

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. ---

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-

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.

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 th