Caching components

2010-03-24 Thread zkn
Hi, since Wicket uses session to store the components hierarchy for a page is it possible to store parts of the hierarchy in the application context instead of the user session? If it's not possible do you consider it worth to add as feature request? What's the idea: imagine a home page of a

Re: Caching components

2010-03-24 Thread Jeremy Thomerson
Components are not thread safe, and not intended to be used in this way - there would be a significant undertaking to make them cacheable, and the cost of the synchronization would likely far outweigh the current costs of component instantiation, etc... Where you can make the biggest difference

Re: DEPLOYMENT PROBLEMS

2010-03-24 Thread Martijn Dashorst
Search the list, it has been brought up many times before. Martijn On Tue, Mar 23, 2010 at 10:56 PM, victorTrapiello vic...@trapiello.net wrote: Hello guys, I have finished my wicket application, with hibernate spring and postgresql for my database, I´m wodering wher I can deploy my

Re: Caching components

2010-03-24 Thread Martin Sachs
hi, we need caching of components, since the construction of huge hierarchies is not cheap. The rendering ist fast. We cache the rendered HTML of a hole component via a beheaviour and write them on the next requests into a Label (unescaped). So instead of creating the complete hierarchie on every

Strange DatePicker behavior (reset date to current)

2010-03-24 Thread Uladzimir
I use DatePicker enough easy way: DateTextField dateTextField = new DateTextField( birthDate ); dateTextField.add( new DatePicker() { @Override protected boolean enableMonthYearSelection() { return true; } } ); I

Resolved

2010-03-24 Thread Steamus
It was some javascript conflict. Early I used dynarch’s calendar and page loaded calendar.js. When I removed old calendar.js the picker starts working correct (expect problem with date 2000 for mask ‘’) -- View this message in context:

feedbackpanel for component using ComponentFeedbackMessageFilter doesn't appear in Listview

2010-03-24 Thread ayman elwany
Hi All, I had a reusable component which have a textfield with its feedback panel using ComponentFeedbackMessageFilter add(new FeedbackPanel(firstFeedback, new ComponentFeedbackMessageFilter(firstField))); and it is working fine but when I put this component in a ListView the feedback

DatePicker uses wrong date format

2010-03-24 Thread Tokalak Ahmet
Hi wicketians, after updating to wicket 1.4.7 the DatePicker does not use the date format i passed to DateTextField any more: form.add(new DateTextField(dateFilter.from, new PropertyModel(dateFilter, from), dd.MM.).setRequired(true).add(new DatePicker())); Instead of dd.MM.

Re: feedbackpanel for component using ComponentFeedbackMessageFilter doesn't appear in Listview

2010-03-24 Thread Pedro Santos
The ListView itens are rebuild every render. So the original field that you made reference from the feedback filter, is longer presented by the ListView. Take a look at http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ and the ListView.setReuseItems javadoc On Wed, Mar 24,

Re: DatePicker uses wrong date format

2010-03-24 Thread Witold Czaplewski
see http://issues.apache.org/jira/browse/WICKET-2767 Regards, Witold Am Wed, 24 Mar 2010 10:39:49 + (GMT) schrieb Tokalak Ahmet toka...@yahoo.de: Hi wicketians, after updating to wicket 1.4.7 the DatePicker does not use the date format i passed to DateTextField any more:

Static files with Wicket and OSGi

2010-03-24 Thread Jaime Soriano Pastor
Hi, I register a wicket application in an OSGi http service using for that a WicketServlet with applicationClassName set to the name of my main application class. My problem now is that I don't know how to serve static files as CSS and so. Is there any place used by default to contain the static

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
I see two options: 1-Use Wicket default machinery for serving resources (see IResourceSettings). 2-Mount a dedicated servlet: the same way you register wicket servlet. Ernesto On Wed, Mar 24, 2010 at 12:19 PM, Jaime Soriano Pastor jsorianopas...@gmail.com wrote: Hi, I register a wicket

Re: Static files with Wicket and OSGi

2010-03-24 Thread Pedro Santos
Put then in the top-level directory of a web module. http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz A web module has a specific structure. The top-level directory of a web module is the *document root* of the application. The document root is where JSP pages, *client-side*

Re: feedbackpanel for component using ComponentFeedbackMessageFilter doesn't appear in Listview

2010-03-24 Thread ayman elwany
Thx alot Pedro ,ListView.setReuseItems solved the problem On Wed, Mar 24, 2010 at 12:54 PM, Pedro Santos pedros...@gmail.com wrote: The ListView itens are rebuild every render. So the original field that you made reference from the feedback filter, is longer presented by the ListView. Take a

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
*document root* on an OSGI environment? Ernesto On Wed, Mar 24, 2010 at 12:46 PM, Pedro Santos pedros...@gmail.com wrote: Put then in the top-level directory of a web module. http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz A web module has a specific structure. The

Re: Static files with Wicket and OSGi

2010-03-24 Thread Jaime Soriano Pastor
On Wed, Mar 24, 2010 at 12:57 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: *document root* on an OSGI environment? Yes, it's what I was just trying and it worked :) Many thanks! - To unsubscribe, e-mail:

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
Are you using bridge servlet approach? On Wed, Mar 24, 2010 at 12:59 PM, Jaime Soriano Pastor jsorianopas...@gmail.com wrote: On Wed, Mar 24, 2010 at 12:57 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: *document root* on an OSGI environment? Yes, it's what I was just trying and

Re: Static files with Wicket and OSGi

2010-03-24 Thread Jaime Soriano Pastor
On Wed, Mar 24, 2010 at 1:05 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Are you using bridge servlet approach? I don't think so... Is it needed to have several Servlets? I have only one. What I do is to launch Apache Felix Http Jetty as implementation of the OSGi HTTP service and

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
Interesting but that is not the same as a document root as in mentioned link. Isn't it? So, your document root is the root of the class-path? Best, Ernesto On Wed, Mar 24, 2010 at 1:18 PM, Jaime Soriano Pastor jsorianopas...@gmail.com wrote: On Wed, Mar 24, 2010 at 1:05 PM, Ernesto Reinaldo

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
Hi, I have tried this with equinox and it works too. For instance I'm able to read file http://localhost:8080/hibernate.cfg.xml which is on root of the class path. They are just served by WicketServlet.fallback method. Ernesto On Wed, Mar 24, 2010 at 1:24 PM, Ernesto Reinaldo Barreiro

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
But it won't work if you mount the Servlet to something different than /. E.g. mounting on /manager then http://localhost:8080/manager/hibernate.cfg.xml will not work. Just curious about what are the implications of mounting on / and what the OSGi specification says about this? Ernesto On Wed,

Re: Caching components

2010-03-24 Thread zkn
On 24.03.2010, at 09:23, Jeremy Thomerson wrote: Components are not thread safe, and not intended to be used in this way - there would be a significant undertaking to make them cacheable, and the cost of the synchronization would likely far outweigh the current costs of component

Re: Required Border...

2010-03-24 Thread James Carman
Well, per the example in the forms with flair demo, I'm adding these borders to my components on the fly using a visitor. So, I don't think the FormComponentFeedbackBorder thing will work, since I would have to actually change the hierarchy by adding my component *to* the border component (it

Re: Caching components

2010-03-24 Thread zkn
Thanks Martin! If possible can you please give a hint how to use behavior to cache the rendered HTML for a component? On 24.03.2010, at 10:26, Martin Sachs wrote: hi, we need caching of components, since the construction of huge hierarchies is not cheap. The rendering ist fast. We cache

Feedback panel -- message resource bundle

2010-03-24 Thread ayman elwany
Hi all, I update my feedback panel messages using wicketApplication.properties and attach the message to the component path :

RE: RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-24 Thread Vikash Shrivastava
Thanks to have your valuable reply effort you made to answer my query. But let me to explain you again my problem statement because this solution won't help me to fix the issue I have. I need a CSS style at TreeTable markup level so that the Horizontal Scrollbar would be a part of TreeTable

Re: Caching components

2010-03-24 Thread Antoine van Wel
Maybe this will get you started http://twenty-six-wicket-tricks.googlecode.com/svn/trunk/twenty-six-wicket-tricks/src/main/java/com/locke/library/web/panels/caching/CachingPanel.java After reading Jeremy's reply I think this code suffers some thread-safeness issues though. Antoine On Wed,

Re: Static files with Wicket and OSGi

2010-03-24 Thread Jaime Soriano Pastor
Weird, I have also tried to register the application on /foo instead of on / and, as you said, I cannot access to static files. I haven't seen anything special about root alias on OSGi specification (only that is the only alias allowed to end with /) Jaime.

Re: Static files with Wicket and OSGi

2010-03-24 Thread Ernesto Reinaldo Barreiro
Haven't had time to check the specification but this behavior (mounting on /) might pose a security risk as you can fetch invisible things form the class path (e.g. configuration files containing sensitive information like passwords). On the other hand I see HttpService class has a

Re: Caching components

2010-03-24 Thread Jeremy Thomerson
On Wed, Mar 24, 2010 at 3:26 AM, Martin Sachs sachs.mar...@gmail.comwrote: hi, we need caching of components, since the construction of huge hierarchies is not cheap. The rendering ist fast. We cache the rendered HTML of a hole component via a beheaviour and write them on the next requests

Re: Static files with Wicket and OSGi

2010-03-24 Thread Jaime Soriano Pastor
On Wed, Mar 24, 2010 at 3:08 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Haven't had time to check the specification but this behavior (mounting on /) might pose a security risk as you can fetch invisible things form the class path (e.g. configuration files containing sensitive

Choose One Text Without Property File?

2010-03-24 Thread Brad Grier
I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have a dynamic form generator and I need the user to be able to designate the verbiage. Is this possible? Thanks, Brad

Re: Choose One Text Without Property File?

2010-03-24 Thread Matthias Keller
Hi Brad You'd probably have to subclass DropDownChoice and override the method getDefaultChoice() to return whatever value you'd like. Matt On 2010-03-24 16:45, Brad Grier wrote: I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have a

Re: Choose One Text Without Property File?

2010-03-24 Thread Pedro Santos
You can add to your application an Localizer that return the user designated verbiage for the string key null On Wed, Mar 24, 2010 at 12:51 PM, Matthias Keller matthias.kel...@ergon.chwrote: Hi Brad You'd probably have to subclass DropDownChoice and override the method getDefaultChoice() to

Re: Feedback panel -- message resource bundle

2010-03-24 Thread ayman elwany
Any another approach that's help me to to use resources key instead of companent path key On Wed, Mar 24, 2010 at 3:26 PM, ayman elwany aymanelw...@gmail.com wrote: Hi all, I update my feedback panel messages using wicketApplication.properties and attach the message to the component

Re: Required Border...

2010-03-24 Thread TahitianGabriel
For FormComponentFeedbackBorder you'll have to change your hierarchy like that : HTML : input type=text wicket:id=field Java : form.add(new FormComponentFeedbackBorder(border).add(new TextField(field))); Why can't you use FormComponentFeedbackIndicator so you can add it on the fly : HTML :

Palette Problem

2010-03-24 Thread Josh Chappelle
Hi, I'm having a problem that is about to drive me nuts. I have a Palette that won't display the selected values. I am able to reproduce my problem with a simple version so here it is: ListString current = new ArrayListString();

Re: Wicketstuff versioning

2010-03-24 Thread nino martinez wael
Yes, confluence is great, but a bit of useless since the spam-incident. I think the confluence is still full of with spammer users and spamcontents. Also the registration doesn't work, but this is an another issue. Nino, if I remember correctly, you can access confluence, right? Could you do

Spring problems

2010-03-24 Thread Eric Reagan
I am trying to setup a spring application and I can't seam to get past a NoWebApplicationContext found. I have followed the online tutorials (and the example code from the 1.4.7 directory) and I am still not having any luck. In my web.xml file I have servlet

Re: Spring problems

2010-03-24 Thread Martin Phee
The SpringWebApplicationFactory is the to create the WebApplicaiton. You still need to setup spring properly. context-param param-namecontextConfigLocation/param-name param-value classpath:spring-annotation.xml classpath:spring-hibernate.xml

Re: Required Border...

2010-03-24 Thread James Carman
So, I don't have to put the indicator into my markup? It somehow automatically adds itself? On Wed, Mar 24, 2010 at 2:21 PM, TahitianGabriel glan...@piti.pf wrote: For FormComponentFeedbackBorder you'll have to change your hierarchy like that : HTML : input type=text wicket:id=field

Re: Spring problems

2010-03-24 Thread James Carman
If you want an example that works out-of-the-box, check out: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Wed, Mar 24, 2010 at 3:29 PM, Eric Reagan reaga...@gmail.com wrote: I am trying to setup a spring application and I can't seam to get past a NoWebApplicationContext

Re: Help with integrating NTLM in wicket application

2010-03-24 Thread Bryan Montgomery
Thanks, this pointed me in the wrong direction. I then ended up calling this from within the onBeforeRender method to get it to handle the redirect correctly on login. Another issue was that I was calling another part of the code and should have been calling AuthenticatedWebSession.get().signIn

Re: Required Border...

2010-03-24 Thread James Carman
Also, they way I'm adding the required indicator to my fields is by using a visitor in the onBeforeRender method (again per the forms with flair example). So, you're not exactly allowed to change the hierarchy at this point from what I understand, so calling the form.add() wouldn't work I don't

Re: Palette Problem

2010-03-24 Thread James Carman
Doesn't your current have to be a subset of available? On Wed, Mar 24, 2010 at 2:58 PM, Josh Chappelle jchappe...@4redi.com wrote: Hi, I'm having a problem that is about to drive me nuts. I have a Palette that won't display the selected values. I am able to reproduce my problem with a

RE: Palette Problem

2010-03-24 Thread Josh Chappelle
Yes that was it. I wish I had those 4 hours back. Thank you. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Wednesday, March 24, 2010 3:34 PM To: users@wicket.apache.org Subject: Re: Palette Problem Doesn't your current have to be a subset of

Re: Palette Problem

2010-03-24 Thread James Carman
No problem, man. Sorry about the 4 hours. That's what paired programming is for! :) Glad to help. On Wed, Mar 24, 2010 at 4:44 PM, Josh Chappelle jchappe...@4redi.com wrote: Yes that was it. I wish I had those 4 hours back. Thank you. -Original Message- From: James Carman

Re: Required Border...

2010-03-24 Thread TahitianGabriel
Sorry, Nabble swallowed the span tag! FormComponentFeedbackBorder: lt;span wicket:id=borderinput type=text wicket:id=fieldlt;/span FormComponentFeedbackIndicator : input type=text wicket:id=field /lt;span wicket:id=indicatorlt;/span But I understand it doesn't fit your need. Gabriel. --

Wicketstuff updated!

2010-03-24 Thread Boris Goldowsky
As discussed, and not hearing any objections, I've updated the wicketstuff-core project to depend on Wicket 1.4.7. wicketstuff-core's version number is now 1.4.7-SNAPSHOT, and the idea is that people can test it, and barring any major problems it can be released as a stable version 1.4.7 .

Input and Model

2010-03-24 Thread Xavier López
I have a Form with a list of Checks in a CheckGroup. In the same Form, there is a DropDownChoice with a dynamic choices model. The choices are the selected checks plus some fixed options. It has to be considered that some Checks can be preselected at construction time, and that the choices have to

Re: Wicketstuff updated!

2010-03-24 Thread nino martinez wael
artifacts should find their way into the repo once team city builds.. 2010/3/24 Boris Goldowsky bgoldow...@cast.org: As discussed, and not hearing any objections, I've updated the wicketstuff-core project to depend on Wicket 1.4.7.  wicketstuff-core's version number is now 1.4.7-SNAPSHOT, and

Re: how to clear validation error

2010-03-24 Thread Nikola Šaub
Man thanks so much for this! The SAME thing happened to me. I left cleanupFeedbackMessages() empty after extending WebSession. I almost went crazy figuringthis out ;). Chuck Brinkman-2 wrote: The messages are kept in WebSession and WebSession has cleanupFeedbackMessages() but this is

Re: Feedback and field validation

2010-03-24 Thread alexander.elsholz
hi anna, feedback-messages will clear after the request processing. build a visitor that checks the feedbackmassges of every component. your components have to hold the messages when error, info and warn will called. clear on successful validate. alex Anna Simbirtsev wrote: Hi, I

Re: Export wicket rendered page to pdf

2010-03-24 Thread Richard Nichols
I've used PD4ML - http://pd4ml.com/ with some success, but you need to tailor the HTML/CSS to it's renderer for best results. On 24 March 2010 05:08, Rodolfo Cartas rodolfocar...@gmail.com wrote: Hi all! Is there a way to export a page rendered in wicket to a pdf file within the application?

RE: Help with integrating NTLM in wicket application

2010-03-24 Thread Josh Chappelle
Bryan, Sorry for pointing you in the wrong direction. Below is the NTLMPage that we use. Notice that it redirects the user to the login page if it can't log them in through NTLM. I hope this helps. import java.io.IOException; import javax.servlet.http.*; import jcifs.ntlmssp.Type3Message;

Re: Help with integrating NTLM in wicket application

2010-03-24 Thread Bryan Montgomery
oops, sorry Josh. I appreciate your hlelp. I _meant_ to say pointed me in the RIGHT direction. Brain and fingers weren't connecting as I was trying to finish sending before leaving the office! Though this looks like it will be cleaner than what I currently have, thanks again. On Wed, Mar 24, 2010

How to provide a value to a message's argument

2010-03-24 Thread David Chang
HTML: span wicket:id=x[sample text]/span Java: add(new Label(x, new ResourceModel(x))); Resource file: entry key=xHello ${label} !/entry In the above Java, I cannot find a way to provide a value to the argument of the string. I want the program to display Hello David! Hello Carmen!

Re: How to provide a value to a message's argument

2010-03-24 Thread Igor Vaynberg
see StringResourceModel -igor On Wed, Mar 24, 2010 at 8:42 PM, David Chang david_q_zh...@yahoo.com wrote: HTML: span wicket:id=x[sample text]/span Java: add(new Label(x, new ResourceModel(x))); Resource file: entry key=xHello ${label} !/entry In the above Java, I cannot find a way

Re: AjaxSubmitLink not calling the onsubmit event handler

2010-03-24 Thread Richard Nichols
Hi Anantha, Did you get a resolution to this issue? I have the same problem. Is this expected behavior I wonder, or a bug? SubmitLink will call the form's onsubmit='???' handler, AjaxSubmitLink does not. On 4 January 2010 23:05, Anantha Kumaran ananthakuma...@gmail.com wrote: hi pieter my

RE: Help with integrating NTLM in wicket application

2010-03-24 Thread Josh Chappelle
No problem Bryan. Glad I can help. Let me know if you hit a problem. Josh -Original Message- From: Bryan Montgomery [mailto:mo...@english.net] Sent: Wednesday, March 24, 2010 8:22 PM To: users@wicket.apache.org Subject: Re: Help with integrating NTLM in wicket application oops, sorry

Re: How to provide a value to a message's argument

2010-03-24 Thread David Chang
Igor, thanks for the info. It worked for me. Just a suggestion. Hope to see a convenience constructor such as: StringResourceModel(resourceKey, java.lang.Object[] parameters) In which, model is null. IMHO, Spring has many convenience methods. It would be good to see Wicket does the same (maybe