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
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
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
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
I use DatePicker enough easy way:
DateTextField dateTextField = new DateTextField( birthDate );
dateTextField.add( new DatePicker() {
@Override
protected boolean enableMonthYearSelection() {
return true;
}
} );
I
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:
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
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.
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,
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:
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
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
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*
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
*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
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:
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
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
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
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
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,
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
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
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
Hi all,
I update my feedback panel messages using wicketApplication.properties
and attach the message to the component path :
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
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,
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.
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
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
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
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
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
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
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
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 :
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();
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
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
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
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
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
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
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
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
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
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
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.
--
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 .
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
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
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
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
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?
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;
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
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!
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
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
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
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
61 matches
Mail list logo