how does DownloadLink lock the page?

2022-03-22 Thread Lucio Crusca
The API docs here https://nightlies.apache.org/wicket/apidocs/9.x/org/apache/wicket/markup/html/link/DownloadLink.html state that DownloadLink locks the page. I assume it means the user who is downloading something cannot access the webapp until the download has finished. But what about

java.lang.ClassNotFoundException: javax.servlet.Filter on new quickstart

2022-02-26 Thread Lucio Crusca
Hello everyone, I'm back to Wicket after a few years of other fun. Last time I used Wicket was version 6 and now I've tried a new quickstart project with Wicket 9.x but something went wrong. I'm on Debian sid, using NetBeans 12.6 and Tomcat 10.0.16, just in case it matters. The code is just

CSVDataExporter and visible columns

2015-09-09 Thread Lucio Crusca
Hello, I have a DataTable and its Abstract[Exportable]Column list, where some of the columns are exportable and the others are only visible. Is it possible for a column to be only exportable but not visible? I've tried overriding protected Component createDisplayComponent(String

CheckBoxX style (wicket-bootstrap)

2014-12-16 Thread Lucio Crusca
Hello, I'm using some CheckBoxX instances and I'd like to apply a style to them. I want the true state to be shown as U+2713 (✓), the false state to be shown as U+2717 (✗) and the undefined state to be shown as a question mark (?). Moreover I want to make the box (or symbols) size the same as

Tristate boolean

2014-11-17 Thread Lucio Crusca
Hello, I have a sql field that is a BOOLEAN, which allows for NULL also. So it can be TRUE, FALSE, or NULL. I need a component to let the user set that field to one of the three states. I'm thinking about using two checkboxes, one for TRUE, the other for FALSE and when neither is checked it

Re: Tristate boolean

2014-11-17 Thread Lucio Crusca
In data lunedì 17 novembre 2014 14:22:11, Martin Grigorov ha scritto: https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-extensi ons/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/for m/checkboxx/CheckBoxX.java Thanks, I've tried it but I've not managed

Atom newsfeed link

2014-10-05 Thread Lucio Crusca
Hello, I've followed this guide to create a Atom feed link with Wicket and Rome: http://wicket.apache.org/guide/guide/resources.html at paragraph 15.9 Custom resources. However when I use the link to the newsfeed in google feedburner http://feedburner.google.com, it does not recognize it and

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-17 Thread Lucio Crusca
I've moved one step forward: the authenticate() method now gets called if I use the SignInPage class included in wicket-auth-roles instead of my own SignInPage. However, as you can see in the code I posted yesterday, my SignInPage is very simple and, compared to the one bundled with wicket, it

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-16 Thread Lucio Crusca
Puzzled. I try to create a quickstart, but the real problem is that I'm pretty sure the quickstart will work perfectly. Even my code has worked perfectly for the last 2 years... Here is a quickstart-like piece of code showing the problem (I obtained it by cutting away unneded pieces from my

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-16 Thread Lucio Crusca
Puzzled. I try to create a quickstart, but the real problem is that I'm pretty sure the quickstart will work perfectly. Even my code has worked perfectly for the last 2 years... Here is a quickstart-like piece of code showing the problem (I obtained it by cutting away unneded pieces from my

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-10 Thread Lucio Crusca
Hi all, in a webapp that worked until yesterday (and that has worked for the last 2 years), the AuthenticatedWebSession.authenticate() method is not being called anymore. I have MySession class that extends AuthenticatedWebSession. The MySession constructor gets called correctly. I use a

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-10 Thread Lucio Crusca
While debugging the problem I first moved to Wicket 6.17 and then set a breakpoint in SignInPanel.java (Wicket sources) at line 310, which is the first line of the onSubmit() method of the SignInForm Wicket class. That breakpoint does not get hit: Wicket, in response to the HTTP request generated

AuthenticatedWebSession.authenticate() not being called

2014-09-09 Thread Lucio Crusca
Hi all, in a webapp that worked until yesterday (and that has worked for the last 2 years), the AuthenticatedWebSession.authenticate() method is not being called anymore. I have MySession class that extends AuthenticatedWebSession. The MySession constructor gets called correctly. I use a standard

Re: ModalWindow positioning

2014-06-25 Thread Lucio Crusca
In data mercoledì 25 giugno 2014 09:49:51, Martin Grigorov ha scritto: Hi, What exactly you tried and it didn't work ? I added the code below, but please note that I'm no JS wizard, so it's likely my code wouldn't work anyway, but the point is I don't even get JS errors and the ModalWindow

Re: ModalWindow positioning

2014-06-25 Thread Lucio Crusca
In data mercoledì 25 giugno 2014 11:09:42, Martin Grigorov ha scritto: Make sure that your code appears *after* the script src=.../modal.js. With the browser Dev Tools you can put a breakpoint inside your function and see whether it is called/used. I couldn't manage to set a breakpoint with

Re: ModalWindow positioning [SOLVED]

2014-06-25 Thread Lucio Crusca
In data mercoledì 25 giugno 2014 14:54:23, Martin Grigorov ha scritto: also try: this.window Ok thanks, this.window seems to be the correct one in my case, but I suspect other variants are needed to be as much cross browser as possible. Just in case others need it, my current working code is:

Re: ModalWindow positioning

2014-06-25 Thread Lucio Crusca
I always forget I should not change the subject, sorry... I send the message again with the unchanged subject so that it remains attached to the rest of this thread. In data mercoledì 25 giugno 2014 14:54:23, Martin Grigorov ha scritto: also try: this.window Ok thanks, this.window seems to be

Re: ModalWindow positioning

2014-06-25 Thread Lucio Crusca
In data mercoledì 25 giugno 2014 18:05:54, Lucio Crusca ha scritto: Just in case others need it, my current working code is: Wicket.Window.prototype.center = function() { var myWindow = this.window; if (!myWindow) myWindow = Wicket.Window.current; if (!myWindow) myWindow

ModalWindow positioning

2014-06-24 Thread Lucio Crusca
Hi *, In a long page I need a ModalWindow to position itself at the center of the browser window even when the page is scrolled way down, so that the ModalWindow always pops up in front of the user. I've found this [1], but it dates back to 2009, and it refers to an old versions of Wicket

wicket-jquery-ui DatePicker JS problems

2014-06-23 Thread Lucio Crusca
Hi all, I'm trying to add a (kendo?) DatePicker to my form, in other words this one: http://www.7thweb.net/wicket-jquery-ui/datepicker/DefaultDatePickerPage I think I've done everything listed here, adapting things to my needs: http://www.7thweb.net/wicket-jquery-ui/ but the javascript

Re: wicket-jquery-ui DatePicker JS problems

2014-06-23 Thread Lucio Crusca
In data lunedì 23 giugno 2014 14:41:37, Sebastien ha scritto: Hi Lucio, You guessed right, JS libraries are embedded in the jar(s), and attached to the page as soon as you use a jquery-ui/kendo component. Please check either: - the wicket-jquery-ui jars are well deployed. What should I do

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-12 Thread Lucio Crusca
AM, Lucio Crusca lu...@sulweb.org wrote: Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. However the problem is only partially solved. onUpdate() now gets called, but only when the TextField looses focus. I

Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
Hi, Do you use Ajax submit ? If YES then you need to override #onError(AjaxRequestTarget, Form) add add the feedback to the target manually. What is Ajax submit? How do I check whether I'm using it? (I suspect the reply is no, you're not using it since you do not even know what it is).

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-12 Thread Lucio Crusca
OnChangeAjaxBehavior is the right way. It uses either 'input' event when supported or 'cut'+'paste'+'keydown' when 'input' is not supported by the browser. Which browser do you use ? Tested with IceWeasel 24.4.0, Chrome 33 for Linux and Firefox 27 for Windows. You can always use

Re: rant level=8/10 Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
Wow! IMHO your answer is very un-respectful even if you don't notice it. Your first message to this list is from January 2013... and you still don't know what is an AJAX submit? Time to start reading a bit about the framework you are using? Instead of expecting people to solve your problems

Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
Ajax submit is when you use AjaxSubmitLink or AjaxButton for the input type=submit I just checked and it seems you don't use any of these. Do you override Form#onError() or Button#onError() and what do you do there ? None of them. I only override Button#onSubmit().

Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
If you are able to reproduce this in a mini application (a quickstart app) then please attach it to a ticket in Jira and we will see what is going wrong. Thanks: https://issues.apache.org/jira/browse/WICKET-5614 - To

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-11 Thread Lucio Crusca
Well, by hidden do you mean an input type of hidden or not present on the DOM? I mean that I used jQuery to slideUp() the containing div in the $(document).ready(), so that when the page loads the div is not visible to the user and it becomes visible on some other event.

Re: OnChangeAjaxBehavior.onUpdate() not called [SOLVED]

2014-06-11 Thread Lucio Crusca
Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-11 Thread Lucio Crusca
Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. However the problem is only partially solved. onUpdate() now gets called, but only when the TextField looses focus. I need it to be called on every single

Empty FeedbackPanel

2014-06-11 Thread Lucio Crusca
Here is a form: http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register here is the relevant html snippet: form class=inputForm wicket:id=registrationform fieldset legendInserisci i tuoi dati/legend div id=feedbackPanel span

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-10 Thread Lucio Crusca
everything looks OK to me check whether there are any JS errors in the browser's Dev Tools console. No errors. Can the fact that the input fields are inside a div that is initially hidden and then slid down via jQuery make a difference?

OnChangeAjaxBehavior.onUpdate() not called

2014-06-05 Thread Lucio Crusca
I need to make a calculator like this: input text field x some fixed float value = the result input text field x some other fixed float value = the other result ... and so on for a variable number of rows... I need the user to input a number in one of the input text fields. I need the other

Re: Hard time with repeaters

2014-05-26 Thread Lucio Crusca
In data domenica 25 maggio 2014 21:11:49, kumar ramanathan ha scritto: Thanks Lucio. I have tried the example repeaters in wicket library site. In that if we try to open a source code for simple data view , many classes and files are coming , i am not able to try it in my desktop. Then I

Re: Hard time with repeaters

2014-05-26 Thread Lucio Crusca
In data domenica 25 maggio 2014 21:11:49, kumar ramanathan ha scritto: Thanks Lucio. I have tried the example repeaters in wicket library site. In that if we try to open a source code for simple data view , many classes and files are coming , i am not able to try it in my desktop. Btw, you

NPE in AbstractSingleSelectChoice

2014-05-25 Thread Lucio Crusca
I'm pretty sure it's my fault, but I can't spot it. I'm trying to use a DropDownChoice with custom renderer and a PropertyModel, without a Form. I get a NullPointerException in AbstractSingleSelectChoice, here is the quickstart: http://www.sulweb.org/download/sparsi/quickstart.zip

Re: Hard time with repeaters

2014-05-25 Thread Lucio Crusca
In data sabato 24 maggio 2014 04:50:56, kumar ramanathan ha scritto: a beginner to learn how the flow works. Also I would like to know where to get the complete codes of examples discussed in the above books to practically try it in home. No idea where to get the code for those examples, since

Re: adding Foundation

2014-05-12 Thread Lucio Crusca
In data lunedì 12 maggio 2014 10:46:28, Martin Grigorov ha scritto: Please create a quickstart app demonstrating the issue. http://www.sulweb.org/download/sparsi/Quickstart.zip - To unsubscribe, e-mail:

Re: adding Foundation

2014-05-12 Thread Lucio Crusca
There are no opening tags for body and html. I don't see how it is W3C valid! I posted only the last lines of a 690 lines W3C valid html file. Anyway, if you need the whole file here it is: http://hastebin.com/ubuwodevet.xml

adding Foundation

2014-05-11 Thread Lucio Crusca
Hello all, it's the 1st time I try to use Wicket with the Foundation Framework [1] (or any other css/js framework for that matter). Being one server side and the other client side I assumed there wasn't anything special to do in order to make them play toghether. I was wrong. I get:

Re: adding Foundation

2014-05-11 Thread Lucio Crusca
In data lunedì 12 maggio 2014 00:00:37, Martin Grigorov ha scritto: Hi, On Sun, May 11, 2014 at 11:50 PM, Lucio Crusca lu...@sulweb.org wrote: Hello all, it's the 1st time I try to use Wicket with the Foundation Framework [1] (or any other css/js framework for that matter). Being

Teaming up remotely

2014-01-29 Thread Lucio Crusca
Hello everybody, today I need to begin a project where, for the 1st time in my life, the team members won't work close to each other, and, again for the 1st time, I'm going to use Wicket in such a project. I'm in charge of writing all the code (mostly Java with Wicket being the framework of

Re: Teaming up remotely

2014-01-29 Thread Lucio Crusca
In data mercoledì 29 gennaio 2014 19:06:09, Steve ha scritto: The difficulty I would think is when you start to split up html files to seperate sections into their own panels. If the designer only has a view of the markup it may not be obvious to them where the subsection of the html has

Re: Teaming up remotely

2014-01-29 Thread Lucio Crusca
In data mercoledì 29 gennaio 2014 10:57:59, tho...@jarnot.de ha scritto: Is there really a need of splitting up the markup files? Well, I don't know, I mean, I've always split them up because a Wicket webapp is typically a collection of {1 java file, 1 html file by the same name} tuples.

Make a Panel draggable

2014-01-04 Thread Lucio Crusca
Hi everybody, I have a panel that contains a RepeatingView, which in turns generates a number of links. The links are generated based on the context (defined as current page and previous user actions). Just now the panel shows up in the top right corner of my webapp and it's above other

filtering html proxy

2013-11-08 Thread Lucio Crusca
Hello *, I need to build a page (maybe with Wicket, but not sure yet) that proxies another page on a different server that I do not own nor control in any way. Some background: let's call proxy my (wicket?) page, let's call backend the other page. Backend has a HTML form with three input

Re: Styling label tags

2013-09-04 Thread Lucio Crusca
On Monday 02 September 2013 10:12:25 Martin Grigorov wrote: On Sat, Aug 31, 2013 at 10:18 AM, Lucio Crusca lu...@sulweb.org wrote: In data venerdì 30 agosto 2013 10:48:35, Martin Grigorov ha scritto: Hi Lucio, The suggested solution should work. Which one? I think I've tried all of them

Re: Styling label tags

2013-08-31 Thread Lucio Crusca
In data venerdì 30 agosto 2013 10:48:35, Martin Grigorov ha scritto: Hi Lucio, The suggested solution should work. Which one? I think I've tried all of them and reported issues here, but maybe I missed one. - To

Re: Styling label tags

2013-08-30 Thread Lucio Crusca
In data mercoledì 28 agosto 2013 08:59:56, Lucio Crusca ha scritto: Maybe that would work to some extent, but it would have at least the following issues: [...] No more replies. Should I deduce there's no known solution

Re: AW: AW: AW: Styling label tags

2013-08-28 Thread Lucio Crusca
In data martedì 27 agosto 2013 15:58:52, francois meillet ha scritto: try that form wicket:id=form label wicket:id=label_tag for=anything span wicket:id=label_tag_Text /span /label input wicket:id=name type=text size=40 id=anything

Re: Styling label tags

2013-08-27 Thread Lucio Crusca
In data lunedì 26 agosto 2013 11:28:27, francois meillet ha scritto: have a look to http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup /html/form/FormComponentLabel.html and http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup

Re: AW: Styling label tags

2013-08-27 Thread Lucio Crusca
In data martedì 27 agosto 2013 13:30:43, Collinson, Alasdair ha scritto: I would go a completely different route: add an AttributeModifier [1]. It should look something like this: Label label = new Label(label, Model.of(Text)); label.add(new AttributeModifier(class,

Re: AW: AW: Styling label tags

2013-08-27 Thread Lucio Crusca
In data martedì 27 agosto 2013 14:46:03, Collinson, Alasdair ha scritto: It does. I don't agree: I can't see any label tags in your markup. I don't need to remove my label tags (and I don't want to), I need to dynamically add a class=cssClassName to them instead.

Re: AW: AW: AW: Styling label tags

2013-08-27 Thread Lucio Crusca
In data martedì 27 agosto 2013 15:12:01, Collinson, Alasdair ha scritto: So if you change the markup in my example to Do you see the following? -gt;label wicket:id=version1.5-SNAPSHOT/labellt;- It still works with the same Java-Code. Unfortunately not, because my label tags are part of a

Styling label tags

2013-08-25 Thread Lucio Crusca
I need to dynamically set class=cssClassName to some label tags. Just now I set the label text with: myFormComponent.setLabel(...) but how do I change its css class? - To unsubscribe, e-mail:

RE: Updating form fields on dropdown selection change

2013-08-16 Thread Lucio Crusca
No replies... that must mean something... let's try rewording. I need to build several forms with: 1. Several text fields each, bound to several String properties of a single bean through a CompoundPropertyModel. This is a requirement unless it renders all the rest impossible to implement. 2.

Re: Updating form fields on dropdown selection change

2013-08-16 Thread Lucio Crusca
Everything is possible. Just different tasks take different time to implement. What did you try and what issues you faced so far ? Please see my previous message. To recap, I tried a mix you just told me it can't work: I added the TextFields to the AjaxRequestTarget while updating the bean in

RE: Updating form fields on dropdown selection change

2013-08-15 Thread Lucio Crusca
Take a look at how one drop-down updates the other via Ajax in the Wicket Examples at: http://www.wicket-library.com/wicket-examples/ajax/choice I suggest you do something similar instead of trying to re-implement part of the form processing in your code. I've tried to follow that example

Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
I have a DropDownChoice that should update some form fields when the user selects an item. My selection-changed-listener code is along the lines of: form.modelChanging(); T obj = model.getObject(); obj.setFoo(newSelection.getFoo()); obj.setBar(newSelection.getBar()); form.modelChanged();

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
Take a look at how one drop-down updates the other via Ajax in the Wicket Examples at: http://www.wicket-library.com/wicket-examples/ajax/choice Thanks for the suggestion, that code looks good. However I don't understand a number of things: 1. where wicket is made aware of the fact that the

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
I wrote: 2. the constructor 'new AjaxFormComponentUpdatingBehavior(onchange)' does not seem to exist in Wicket 6. Can I just use the no args constructor? Please ignore this one, I was using AjaxFormChoiceComponentUpdatingBehavior instead by mistake.

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
1. where wicket is made aware of the fact that the target is actually the models dropdown and not something else in the form? I'm not sure I understand this question but I think the answer you're looking for is: because it has a behavior attached to a component to which you can gain access

cryptic error messages

2013-07-03 Thread Lucio Crusca
Hi *, I have the following markup snippet: div wicket:id=repeatingDocTypes span wicket:id=docTypeNameOrders/spanbr/ hr/ div wicket:id=repeatingDocRef a href=# wicket:id=doclinkspan wicket:id=docid/span/abr/ /div /div which is

Re: cryptic error messages [SOLVED]

2013-07-03 Thread Lucio Crusca
I've found that between this line of code: RepeatingView rv = new RepeatingView(repeatingDocTypes); and these ones: for (...) addDocTypeBox(rv, docs); I actually had an extra rv.newChildId() hidden in calls which obviously bumped the next id value... Still I can't understand the

Page expired and concurrent links

2013-05-31 Thread Lucio Crusca
Hello *, I have a DataTable with a column of clickable checkboxes. Each time the user clicks a checkbox the server does some stuff on the database. If the user clicks another checkbox before the server finished processing the previous, he receives a Page Expired error. The behaviour is

Re: Page expired and concurrent links

2013-05-31 Thread Lucio Crusca
In data Friday 31 May 2013 17:34:31, Lucio Crusca ha scritto: Hello *, I have a DataTable with a column of clickable checkboxes. Each time the user clicks a checkbox the server does some stuff on the database. If the user clicks another checkbox before the server finished processing

DataTable multiple sort columns

2013-04-30 Thread Lucio Crusca
Hello *, is there a way/what's the cleaner way to support multiple sort columns with DataTable? I know it's up to the SortableDataProvider to provide sorted rows, no matter how, but the SortParam class seems to support only one sort criterium at a time. e.g. the DataTable is aware only of the

Re: DataTable multiple sort columns

2013-04-30 Thread Lucio Crusca
In data Tuesday 30 April 2013 19:14:12, Jesse Long ha scritto: Hi Lucio, Its something I'd be interested in pursuing myself, but the real problem is how to display the sort state to the user. How about this? ascii-art font=monospaced | |^ | ^ | | |

anything like AjaxEditableCheck?

2013-04-04 Thread Lucio Crusca
I have a DataTable and I want to add a clickable checkbox to the rows. I've tried adding an AbstractColumn and a plain CheckBox in the cellItem along with its AjaxEventBehavior onclick, but the rendering process complains that Component [cell] (path = [51:table:body:rows:1:cells:5:cell]) must

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Lucio Crusca
In data Tuesday 19 March 2013 09:42:54, Sven Meier ha scritto: Hi Lucio, FormComponentPanels are an advanced concept and I'd recommend you extend org.apache.wicket.markup.html.panel.Panel until you really need the features of a FormComponentPanel. Thanks that solved the problem. BTW your

CompoundPropertyModel binding direction

2013-03-18 Thread Lucio Crusca
I'm trying to use CompoundPropertyModel in a form I dynamically create with a RepeatingView. I use the CompoundPropertyModel#bind method to bind each input tag to the corresponding java bean property. Binding from java bean to html does work (the fields get filled), while the other way around

RepeatingView and FormComponentPanels

2013-03-06 Thread Lucio Crusca
I've created three subclasses of FormComponentPanel, e.g. TextFormComponentPanel, CheckBoxFormComponentPanel and DropDownChoiceFormComponentPanel. They all share some markup logic in that they all have an enclosing label and a span for the text to use as label. However each class has its own

Re: DropDownChoice not updating model

2013-02-15 Thread Lucio Crusca
In data Thursday 14 February 2013 12:59:05, Sven Meier ha scritto: Then the DropDownChoice should work fine. Try to create a quickstart please. You are so f***ing smart :) The quickstart just worked and showed me what I was doing wrong, basically this: District currentSelection = ... //

DropDownChoice not updating model

2013-02-14 Thread Lucio Crusca
Hello *, I have a FormComponentPanel derived class that uses a DropDownChoice with a ChoiceRenderer. The DropDownChoice id matches the field name in my model class and I use a CompountPropertyModel wrapping my model instance for the component. Code snippets: class StreetAddress ... private

Re: DropDownChoice not updating model

2013-02-14 Thread Lucio Crusca
In data giovedì 14 febbraio 2013 12:21:58, Sven Meier ha scritto: On 02/14/2013 12:01 PM, Ernesto Reinaldo Barreiro wrote: I don't know if this has anything to do... but make sure class StreetAddress implements equals If you use objects without overriden #equals() and #hashcode() and

Re: FormComponent markup

2013-02-03 Thread Lucio Crusca
In data domenica 3 febbraio 2013 13:17:13, Andrea Del Bene ha scritto: To clarify a bit more, you should end up writing something like: form wicket:id=form input type=text wicket:id=formcomponentA / textarea wicket:id=formcomponentB.../textarea /form and Java code Form

Re: FormComponent markup

2013-02-03 Thread Lucio Crusca
In data domenica 3 febbraio 2013 14:57:46, Lucio Crusca ha scritto: In data domenica 3 febbraio 2013 13:17:13, Andrea Del Bene ha scritto: To clarify a bit more, you should end up writing something like: form wicket:id=form input type=text wicket:id=formcomponentA

FormComponent markup

2013-02-02 Thread Lucio Crusca
Hello *, I have two classes, along the lines of: class A { String id; } class B { A manyBToOneA; String description; } I want to provide a single form such as: Id: Default description: [Submit] I plan to use two subclasses of FormComponent, so that one uses IModelA,

Re: FormComponent markup

2013-02-02 Thread Lucio Crusca
In data sabato 2 febbraio 2013 14:54:41, Andrea Del Bene ha scritto: Hi, if you are planning to subclass a FormComponent (let's say a TextField for the id and a TextArea for the description) you don't need to use panels and you will bind your custom components to standard form's tags input

Re: FormComponent markup

2013-02-02 Thread Lucio Crusca
In data sabato 2 febbraio 2013 22:28:11, Lucio Crusca ha scritto: Does that mean I'll have A.html like form input type=text ... / textarea.../textarea /form and then add my FormComponentA and FormComponentB instances directly to that Form? And that I won't have any

Where did those CSS declarations come from?

2013-01-25 Thread Lucio Crusca
Hello *, looking at wicket-examples sources I see a style.css that contains a few declarations (the whole file is 68 lines in my downloaded wicket-examples sources). After looking at the source code, I followed the repeater examples, built my own DataTablePage and copied style.css over into

Re: Where did those CSS declarations come from?

2013-01-25 Thread Lucio Crusca
In data venerdì 25 gennaio 2013 13:36:57, Martin Grigorov ha scritto: https://github.com/apache/wicket/blob/master/wicket-examples/src/main/webap p/style.css#L500 I don't quite get it, can you please elaborate? My copy of wicket-examples source code has the 68-lines version of style.css. How

Re: Where did those CSS declarations come from?

2013-01-25 Thread Lucio Crusca
In data venerdì 25 gennaio 2013 15:13:12, Martin Grigorov ha scritto: The link I gave you shows that style.css has 500 lines. I'm not sure what file you copied and where you got it from. Now I'm not sure myself anymore... as it turns out it's plain false that my wicket-examples are using

Wicket examples: repeaters

2013-01-20 Thread Lucio Crusca
Hello *, I'm trying to understand repeaters and DataTable from WicketExamples. I'm definitely having a hard time... http://www.wicket-library.com/wicket-examples-6.0.x/repeater/ The running example shows a nice table with sorting column headers. However looking at what pretends to be the

Unable to find property

2013-01-20 Thread Lucio Crusca
Thanks to Sven, now my DataTable has sorting columns! However my next step is to add CSV export. I copied the code from the examples and added CSVDataExporter c_exp = new CSVDataExporter(); ExportToolbar et = new ExportToolbar(dataTable); et.addDataExporter(c_exp);

Re: Unable to find property

2013-01-20 Thread Lucio Crusca
In data domenica 20 gennaio 2013 17:16:48, Sven Meier ha scritto: If you don't provide a filename to the ExportToolbar constructor, a String resource with key datatable.export-file-name is used. Normally a default is provided here:

JPA annotations

2012-12-21 Thread Lucio Crusca
Hello *, I've started this short thread on the tomEE users ml: http://markmail.org/message/3asqvvptnkieknq5 The final answer sounds to me like if you want to use resources injection through JPA annotations in a wicket application, your best bet is Java-EE- Inject

Re: JPA annotations

2012-12-21 Thread Lucio Crusca
In data venerdì 21 dicembre 2012 13:41:36, Martin Grigorov ha scritto: Hi, The page cannot be a bean, so it cannot be @Stateless. Better create a stateless EJB which has a reference to @PersistenceUnit: Thanks for pointing that out. class MyPage extends WebPage { @EJB private

Re: JPA annotations

2012-12-21 Thread Lucio Crusca
In data venerdì 21 dicembre 2012 15:10:11, Martin Grigorov ha scritto: I think Spring is still dominant in this area. Hmm, I've had a look, too much xml for my taste... what about Guice? Can it be used as alternative to Spring to have JPA annotations working with Wicket?

Re: JPA annotations

2012-12-21 Thread Lucio Crusca
In data venerdì 21 dicembre 2012 17:01:59, Martin Grigorov ha scritto: Spring Java Config, @Configuration, @Bean Ok thanks, but there are other things that make me prefer Guice over Spring, if possible. Is it possible? Can Guice be used to make JPA annotations work in wicket apps?

Failed to execute goal

2012-12-19 Thread Lucio Crusca
Hello there, today, trying to build my project, I get: [ERROR] Failed to execute goal on project SalixWeb: Could not resolve dependencies for project com.virtual_bit.salix.web:SalixWeb:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.sql:jdbc-stdext:jar:2.0,

Re: what is Wicket 2.x?

2012-12-08 Thread Lucio Crusca
In data venerdì 7 dicembre 2012 20:06:45, Jeremy Thomerson ha scritto: Yep. There was a big change to constructors IIRC, although I can't remember exactly what the change was. Next came 1.3.0 with generics. Can I (we, you, ...) edit that sentence from the wiki pages then? It's confusing

what is Wicket 2.x?

2012-12-07 Thread Lucio Crusca
Hello *, while reading this page https://cwiki.apache.org/WICKET/working-with-wicket-models.html I stumbled upon the following sentence: «NOTE: this page is about models like they exist for Wicket 1.x. The IModel interface is slightly changed in Wicket 2.x» What version of Wicket is 2.x? I'm

wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
Hello *, I try filing this bug (whishlist) here, because I haven't found any contact email on the wicket-library.com website. As a wicket newbie, I use wicket-library.com examples a lot. However reading through Java/HTML code, understanding what's going on, identifying relevant lines of code,

Re: wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
In data lunedì 3 dicembre 2012 14:51:35, Martin Grigorov ha scritto: You can always download the .war file from http://central.maven.org/maven2/org/apache/wicket/wicket-examples/ and run them locally with as big session timeout as you need. Thanks, I've deployed locally. How do I raise the

Re: wicket-library.com session expiring too early

2012-12-03 Thread Lucio Crusca
In data lunedì 3 dicembre 2012 19:58:55, Lucio Crusca ha scritto: Thanks, I've deployed locally. How do I raise the session timeout? Never mind, I've found it: session-config session-timeout5/session-timeout in web.xml

wicket version

2012-11-27 Thread Lucio Crusca
Hello *, I'm moving my first steps in wicket. Great framework btw, though it lacks a bit of fresh howtos for version 6.x. Never mind, let's go straigh to my questions: 1. API docs for 6.4-SNAPHOST are hosted at a http://.../6.0.x; url (or the other way around, API docs for 6.0.x are titled

Re: getInitParameter returns null

2012-10-14 Thread Lucio Crusca
Ivineet semwal writes: i think others will tell if a jira ticket for this should be created or if i have overlooked something ;) https://issues.apache.org/jira/browse/WICKET-3099 Resolution: Won't fix (not a bug, it's so by design). Thanks.

getInitParameter returns null

2012-10-13 Thread Lucio Crusca
Hello *, I'm having troubles with WebApplication.getInitParameter() method. In the init() method of MyApp I call getInitParameter(myPar); It returns null. in web.xml I have filter filter-namewicket.MyApp/filter-name

Re: getInitParameter returns null

2012-10-13 Thread Lucio Crusca
In data sabato 13 ottobre 2012 11:53:54, vineet semwal ha scritto: i can't reproduce ,which wicket version and servlet container are you on? Wicket version 6.0 and not sure about the servlet container, because what's failing is the automatic tests Netbeans runs before running the app. My unit

  1   2   >