Hi,
Issues WICKET-4636 and WICKET-4637 were created.
Bertrand
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Good stuff!
Is there a way to see which issues where fixed between 2 releases with
github? In Jira it's straightforward, but I haven't been able to figure
this out yet for github...
I found out how to compare the source tree between 2 tags, but not the
list of issues.
For the source, it's
Hi Martin,
Following Andrea's comments from issue Wicket-4637, I modified the
NonResettingRestartException to fix the error I reported.
Here's the modified version:
public class NonResettingRestartException extends ReplaceHandlerException {
public NonResettingRestartException(final
Hi,
The transient object in LoginUserModel is null because it was set to
null in LoadableDetachableModel.detach(). You need to reload it in the
LoadableDetachableModel.load() method.
For form submit examples, see
http://www.wicket-library.com/wicket-examples/forminput/
I think the answer
On 19/07/2012 3:26 AM, jam.ntk wrote:
you are right that the LoginUserModel gets null. Now can you please suggest
how and where should I reload the LoginUserModel?
From my previous email: You need to reload it in the
LoadableDetachableModel.load() method.
If in the panel, I try to call
Why do you have a validate() method in your panel if it isn't part of
the form?
When you get to the form's onSubmit() method, all the models used in the
form components have already been updated. This occurs after all the
validators of the form and its components are executed. Therefore, if
Ah now I'm starting to understand. The Wicket way as I understand it
is to validate in the form submit and its components. Your validator
however will need a reference to the current value of those checkboxes.
I'm guessing the checkboxes are not part of the form in your case,
otherwise this is
Hi Martin (and other devs),
Must a Jira issue accompany each pull request? Also, is it ok to use a
feature branch (based on the snapshot branch) for the pull request?
Bertrand
On 23/07/2012 3:15 AM, Martin Grigorov wrote:
Hi,
You can create tickets in our Jira with attached patches if you
Seeing how the previous book authors became less active after writing
a book I think this is not a very good idea... :-/
Is this because the books didn't sell well enough? I don't know the
authors personally and I don't know much about the publishing world so
it could very well be another
Hi Alex,
Your stack trace did not show up on the mailing list. Please also show a
snippet showing what throws the exception.
Bertrand
On 31/07/2012 10:44 AM, Alex66955 wrote:
Hey,
I have some issues when I replace a fragment in an ajax calback function.
There is a parent class and a child
With the stack trace, I can only see that the listener (the object
responsible for handling a request)
componentmainContentFragmens:eagrPanel is not found in the current page.
Perhaps someone else can answer with only this but I would need code
snippets showing how you manipulate your
Hi Alex,
I tried your code and stripped it down as much as possible and couldn't
find anything wrong with it. My guess is that Wicket ajax does not
remove timers from replaced components in ajax responses. Therefore, the
javascript timeout function is still executed on the client even if its
On 01/08/2012 9:58 AM, Martin Grigorov wrote:
No.
The timer is fired but the precondition prevents the Ajax call.
The precondition checks that the component (html element) on which is
attached the timer behavior is still in the DOM document.
Hmm... I don't quite know what to say! In my tests,
wrote:
Do you use -beta3 ?
There was a bug which is fixed in -SNAPSHOT. That's why I know how it works ;-)
On Wed, Aug 1, 2012 at 5:12 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
On 01/08/2012 9:58 AM, Martin Grigorov wrote:
No.
The timer is fired but the precondition prevents the Ajax
:
timerBehavior.stop(target).
This will clear the scheduled timeout in the browser.
On Wed, Aug 1, 2012 at 5:31 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Yes I was using -beta3 since this is what Alex used. I just tried it with
-SNAPSHOT (commit b89909c1fa99ae6973c3fb0738a966eb23c27e73) and I get
Filed WICKET-4689.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hi,
You can read the following email thread for insight:
http://wicket-users.markmail.org/thread/6qqc4pxt77mulpmt
Also have a look at this:
http://www.small-improvements.com/blog/technical/tuning-wicket-session-size
These links talk about session size in general, not only about stateless
I would say it depends. Generally, it should help to use detachable
models, but for very small objects (like static strings), it's won't
give a big gain. Besides memory gains, detachable models also reload
their data each request which ensures non-stale objects.
On 02/08/2012 11:28 AM,
Do you use Wicket 6? If so, the latest snapshot includes an enhanced
page view in the page inspector of the Wicket debug bar. This page view
can be filtered to show only stateful components and behaviors.
If you're on Wicket 1.5, check out
https://issues.apache.org/jira/browse/WICKET-4244.
Hi,
form.clearInput() only clears the raw input (what is received in the
current request) of the form components. That is, it doesn't modify the
underlying models. With setDefaultFormProcessing(false), this means that
your FormComponent models are not updated at all.
The
Hi,
How about:
Attach a ajax onclick behavior to your TextAreas. This behavior opens
the modalwindow and registers an onclose callback. In the callback:
-update the model of the text area according to which textblock the user
chose
-add the TextArea to the ajax request for a refresh.
On
The cancel link should just set an empty model object to the form.
What if I'm editing an existing entity that's coming from a database (not
creating a new one) and I want to display the original values after
clicking Cancel? I assume I have to reload the entity and set it as the
model object
Hi,
I haven't used the GridView directly so I can't help you with it
specifically. However, have you considered modifying your provider to
always return 9 records with some having an empty placeholder? It's
definitely a hack, but it may be worth a try.
Bertrand
On 08/08/2012 10:56 PM, Alec
Hi,
(Using Wicket 6.0-SNAPSHOT, or 1.5.7)
I found a strange behavior when calling Page#isPageStateless(). I have a
simple label in my personal wicket debug bar which displays stateless
when a page is stateless. It works like so:
new WebMarkupContainer(statelessMarker) {
@Override
On 10/08/2012 12:12 PM, vineet semwal wrote:
it might give you wrong result even if you add your component after
adding all the components because some components foreg. a repeater
like listview/dataview/gridview add children in onbeforerender so
isPageStateless() can be assumed to work
of 20 links this is 20 X
isPageStateless() ,it actually depends on how expensive
ispagestateless() itself is and at how many places is it used ..
On Fri, Aug 10, 2012 at 10:53 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
On 10/08/2012 12:12 PM, vineet semwal wrote:
it might give you
Hi,
In the constructor of UserActionsPanel, the checkbox is created like so:
add(new CheckBox(select, item.getModel()));
However, I think item.getModel() returns an
IModelICellPopulatorKostenOV type. This can't work in a CheckBox
which requires a Boolean model.
On 13/08/2012 8:33 AM,
Hi,
When a form is submitted, it checks whether the submitting component is
a Wicket component. If it is (your case), it makes sure that it's
enabled and visible. I guess this is to prevent users manipulating with
the form submission process. In any case, if any of the 2 conditions is
not
Hi,
On 13/08/2012 12:13 PM, Roger Palacios wrote:
Hi every all.
This is my first mail in wicket mailing list.
Welcome!
I want to update the groups doing ajax submits. I tried using ListView,
but, I dont know why, when I click 'save' button the changes are reflected
on in the first group
);
f.add(cancelButton);
f.add(saveButton);
add(f);
}
}
Thanks!
2012/8/13 Bertrand Guay-Paquet ber...@step.polymtl.ca
Hi,
On 13/08/2012 12:13 PM, Roger Palacios wrote:
Hi every all.
This is my first mail in wicket mailing list.
Welcome!
I want to update the groups
That's weird. I thought this was disabled by default when Wicket is in
deployment mode...
On 13/08/2012 3:36 PM, vinitty wrote:
I want to disable the Html validation while rendering in wicket 1.5.7
I am running wicket in deployment mode
Please suggest its urgent
--
View this message in
You have 2 choices:
1) put the boolean as a property of your KostenOV and reference it with
a model (e.g. propertyModel)
2) Use a CheckGroup and multiple checkboxes which use the id of KostenOV
as their value. Have a look at:
No, they are interchangeable.
On 14/08/2012 11:42 AM, eugenebalt wrote:
Thanks a lot. In our case, we have an AjaxButton that maps to a input
type=submit.
Would using the input type Button get rid of this problem?
--
View this message in context:
Hi Alec,
Have a look at this:
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent
I think it does what you need.
On 15/08/2012 3:59 PM, Alec Swan wrote:
Hello,
I have a FeedbackPanel on a page. The page can contain different kinds
of forms
Assuming you use a Label for your amounts:
new Label( ... ) {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
if( isNumberPositive() )
tag.append(class, positive_num_css, );
else
tag.append(class,
Hi Joachim,
I have never inspected them closely, but I think the classes in play are :
WicketLinkTagHandler
AutoLinkResolver
As for the usefulness of this process, consider panels. Panels can be
instantiated on any mount path so their links must be adjusted.
Good luck!
Bertrand
On
Hi,
I haven't used 1.4 much so I'm not sure it exists there. Maybe you could
add a IRequestCycleListener to your app via getRequestCycleListeners()
which adds the feedback panel in onRequestHandlerResolved? In that
method, check if the handler type is an AjaxRequestTarget and add your
Hi,
I don't think there's a direct way to achieve what you want. However,
you could instead find the page class mapping to the url and use that in
the exception. I'm not too familiar with it, but have a look at
Application#getRootRequestMapper() and its mapHandler method. You could
perhaps
Hi,
Thanks for the release! Having just tried it, it seems that WicketStuff
uses Wicket version 6.0-SNAPSHOT. Is this on purpose?
In wicketstuff-core's pom, there is the following property :
wicket.version6.0-SNAPSHOT/wicket.version
Regards,
Bertrand
On 07/09/2012 4:01 PM, Martijn Dashorst
Hi,
I'm trying 6.4.0 now and seeing the same issue.
My use-case is a little bit different though:
1) Without active session, go to stateless page
2) Go to stateful page
The first stateful page loaded is wrong like so:
To be clear, I don't use wicket's auth module. I suspect that what was
reported is caused by stateful/stateless pages.
On 19/12/2012 12:51 PM, Bertrand Guay-Paquet wrote:
Hi,
I'm trying 6.4.0 now and seeing the same issue.
My use-case is a little bit different though:
1) Without active
Hi,
My web application contains EJB stateless beans which I currently access
in Wicket through JNDI injection with the wicketstuff-javaee-inject project.
With Wicket 6.4.0, I am trying out CDI (@inject) but can't get it to
work on the TomEE Java EE application server. In my Application
I confirm that this fixes my problem too. thanks!
On 19/12/2012 2:55 PM, Sven Meier wrote:
https://github.com/apache/wicket/commit/12ce76d17e2d0576fee8158b7fa7db69770bea52
Sven
On 12/19/2012 08:31 PM, Chris Colman wrote:
Jira says this has been fixed but I can't, as yet, see any changed on
, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
javax.enterprise.inject.spi.BeanManage
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hello,
While testing wicket-cdi, I created a small test app available at :
https://github.com/berniegp/test-wicket-cdi/
It mostly follows the article from
https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ and it
runs both in jetty and TomEE. Following my posts on this mailing
Hi William,
This might be your lucky day :)
Here's the fix for that horrible slowness in xml tabs:
From: http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
Ensure you are already running on a package from the Juno SR1 release
(September 2012)
Invoke Help Install New Software
with
bigger projects (and that's based on the most recent Release of
Netbeans I tried a week ago).
On Wed, Feb 20, 2013 at 5:48 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Hi William,
This might be your lucky day :)
Here's the fix for that horrible slowness in xml tabs:
From: http
Thanks a lot for your effort!
Before I start reading whole sections, is the source of the document
available somewhere? I'd like to correct any typos I may find along the
way to do my part and I think that a patch would be way more useful than
sending an email with page numbers and
That's fine. What is your preferred way to receive such feedback then
(typos, etc.)? Annotated pdf? I'm not very familiar with the tools
available for working with pdf files.
By the way, I don't want to rush you or demand the source! I'm just
asking to help out if possible :)
On 21/03/2013
Hello,
I'm trying to figure out the optimal way to deal with caching and out of
date resources and can't really find which methodology to adopt.
Considering that:
a) css and js files are only accessed from web pages
b) image files are accessed from web pages and from email clients (links
Hi Dan,
Thanks for sharing this!
On 27/03/2013 6:24 PM, Dan Retzlaff wrote:
Hi, Bertrand. I don't have all your answers, but I can share my experience.
First, when you say you serve files out of webapp folder, do you mean
you're not using any ResourceReference? Just absolute paths from
Thanks for your help Dan. I made all images, css and js wicket resource
references now. This helps a lot because I also want to prefix my
website urls with the locale code which is pretty hard to do when some
paths are context-relative and others are managed by Wicket.
For anyone attempting
Hi Paul,
I asked the same question for v1. Here's the answer:
no, at the moment there is no source for documentation. The main
document is a LibreOffice odt file. I didn't decide yet how to make it
available...
As for contributions, they are welcome! Either send an email or use the
google
Hi,
Check out the new http://code.google.com/p/wicket-guide/
On 11/04/2013 10:52 AM, Yanal Jij wrote:
Hi all,
Any suggestions on books to learn Wicket 6.x , I tried the books on
the Wicket website they are all about Wicket 1.5 (Wicket in Action and
Enjoying Web development with Wicket).
Hi,
I'm not sure this is what you want, but you can subclass the Check
class and override its onComponentTag method to add disabled=disabled
to the input tags you want to disable. You can also do it with a
behavior instead of subclassing.
Remember that if you replace the checkbox html
Hi,
Overriding newSession to create your custom session implementation is
the way to go and should work. You can confirm this by breaking on the
following code somewhere (like a page constructor) :
Session session = Session.get();
You will see that each user gets a different session instance
This is weird... In both of dhongyt's emails, there isn't any source
code in the email body. I just noticed that the nabble link does show
the source code however. Any idea why?
On 26/04/2013 10:16 AM, dhongyt wrote:
Thanks I have fixed the issue.
It was my:
From my understanding I was
Hello,
I have action links which I want to transform to POST actions since they
can have side-effects on the database. (See
http://stackoverflow.com/questions/679013/get-vs-post-best-practices) My
understanding is that this is only possible with either javascript or forms.
I decided (for
but the simplest solution I see at the moment is to use
StatelessForm.
On Sat, Apr 27, 2013 at 4:01 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Hello,
I have action links which I want to transform to POST actions since they
can have side-effects on the database. (See http
Hello,
When using the Sessions info(), error() and success() methods, and the
session is not bound, the messages are lost. This can happen easily when
on stateless pages. The fix for this is easy: I need to make sure the
session is bound and call Session.bind().
However, I think it would be
the end of the
current request. Since the response page is rendered in the same
request/response cycle the feedback messages should be still reachable.
On Mon, Apr 29, 2013 at 11:41 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Hello,
When using the Sessions info(), error() and success
,
Kind regards,
Bas Gooren
Op 30-4-2013 17:44, schreef Bertrand Guay-Paquet:
Hi,
This is not the behavior I'm getting. I created a stateless page with
this:
add(new FencedFeedbackPanel(feedback**));
add(new StatelessLinkVoid(success) {
@Override
public
Hello,
I'd like to localize the urls generated by my app like so:
/en/account/settings - AccountSettingsPage, locale EN
/fr/compte/parametres - AccountSettingsPage, locale FR
I already have urls prefixed with the locale base on the
LocaleFirstMapper from Wicket examples, but they are
Hi,
Sure you can!
In BarcodePage, use the PageParameters to extract the code. If the code
is there, show its associated content.
StringValue codeValue = getPageParameters().get(code);
if (!codeValue.isEmpty())
...
In your app init code, mount your page like this:
On 01/05/2013 12:13 PM, Bertrand Guay-Paquet wrote:
In your app init code, mount your page like this:
mountPage(/activate/#{code}, BarcodePage.class);
Assuming you want to mount this under the activate path.
I just noticed your example uses the root app mount. I think you might
run into some
The link at the bottom of the given wiki page has:
To disable caching altogether (e.g. for performance comparisons) use
getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE)
On 01/05/2013 1:05 PM, smallufo wrote:
Hi
thanks.
But it doesn't mention how to turn off the
Hi,
I believe Wicket uses a minified version of jQuery in deployment. Maybe
this causes problems with that library?
Otherwise, check all callers to Application#usesDevelopmentConfig() and
replace them one by one to the deployment value until you get the same
error.
On 01/05/2013 1:59 PM,
Hi,
On 01/05/2013 10:57 PM, smallufo wrote:
String url2 = RequestUtils.toAbsolutePath(urlFor(Page.class ,
newPps).toString() , );
System.out.println(url2 = + url2); // full in 1.4 , but relative in 6.0
The Javadoc says Calculates absolute path to url relative to another
absolute url. so
Have a look at RequestUtils#toAbsolutePath().
Also, look at the email on this mailing list preceding yours titled
[wicket 6] Any shortcut to get full url ? :)
On 02/05/2013 1:06 AM, Colin Rogers wrote:
Wicketeers,
Where I have;
mountPage( path/to/myPage, MyPersonalPage.class );
mountPage(
Hi,
Have a look at https://code.google.com/p/wicket-guide/ chapter 18.
On 03/05/2013 9:46 AM, saty wrote:
for securing wicket applications, going by no documentation etc available on
WASP/SWARM, i am just curious if there are other things available and
preferred.
--
View this message in
Hi,
On 03/05/2013 9:58 AM, Christian Reiter wrote:
Hi!
I'm wondering what's the recommended way to store a unpersisted object
while it is edited (I'm using EJBs with JPA as backend).
Let's imagine I want to build a customer editor which should be able
to handle editing of new (unpersisted)
Has no one ever done this? Any guidelines as to how to implement it?
On 01/05/2013 10:29 AM, Bertrand Guay-Paquet wrote:
Hello,
I'd like to localize the urls generated by my app like so:
/en/account/settings - AccountSettingsPage, locale EN
/fr/compte/parametres - AccountSettingsPage
I understand, that there can be situations when a user actually
doesn't leave a page the usual way, but if there were a method as
described, it could at least be helpful for all the preceding
page-leave-events under normal conditions.
I never use it, but there's javascript's onbeforeunload
Hi,
Is your javascript running when the page is created and then not when
you refresh the tab or not at all? How are you adding the javascript to
the page?
On 08/05/2013 11:18 AM, saty wrote:
Actually target.add(getPanel()); seems to be doing what i need but i have a
problem here and hoping
Try it with OnDomReadyHeaderItem or OnLoadHeaderItem nstead of
JavaScriptHeaderItem
Wicket's ajax implementation makes sure that header items are rendered
once only.
On 08/05/2013 12:10 PM, saty wrote:
yes, when the panel normally loads the java scripts are added as
Hi!
On 08/05/2013 6:46 PM, Dan Retzlaff wrote:
Hi all,
I'd like to know what conventions you've established for your sites that
deal with users in many time zones.
Do you simply replace the converters (Date, SqlDate, SqlTime, SqlTimestamp)?
I make sure that all the date objects sent to Wicket
On 09/05/2013 3:30 PM, Dan Retzlaff wrote:
Thanks, Bertrand.
On Thu, May 9, 2013 at 9:47 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca
wrote:
Do you avoid MessageFormats in StringResourceModels? (I don't see a way to
configure its MessageFormat.)
I convert my Dates to strings
Hi,
I don't use Spring, so I can't help you specifically. However, there is
a chapter about integration with Spring in the free wicket guide here:
https://code.google.com/p/wicket-guide/
(chapter 17.2)
On 03/06/2013 9:00 AM, Entropy wrote:
We are doing the annotation based approach described
I believe AttributeModifier is the appropriate class to use to modify
tag attributes. Moreover, it is described in the section you refer to.
For reference, ComponentTag#writeOutput() is the method which calls
Strings.escapeMarkup(value); and escapes your tag value. This is called
by
Hello,
See inline.
On 06/06/2013 5:27 PM, bronius wrote:
First of all Url api is extremely hard to work with, very hard to create url
i need, I think there should be some option to simply create it with simple
string. Anyway Url.parse method does not create full url for me (i have
What you're saying is that a client requests the url
http://localhost:8080/app1 and the img src attribute has
app2/image?item-123 but you want it to be
http://localhost:8080/app2/image?item-123 instead?
Why does it make a difference? The relative url will be resolved to
Try this:
url.getSegments().add();
url.getSegments().add(site2);
url.getSegments().add(image);
Have a look at the code of Url#isAbsolute(). It checks if the first
segment is empty which is not the case with the code you provided in the
first email.
This behavior of
Hi!
Are you on Wicket 6? If so, here's how I do my confirmation popup for an
ajaxlink (should work for ajaxbutton too):
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
String confirmJs = if (!confirm('Please confirm')) return false;
AjaxCallListener
Hello,
I have a catch-all feedback panel which displays feedback messages at
the top of my web pages. It slides-in the message boxes and adds a
close link to each one.
It also has an event handler which makes sure it redraws itself each
time Wicket handles an ajax request:
@Override
Hi,
I use the javascript generated by getCallbackFunction just fine. Here's
an actual function used as an onclick callback:
function (event) {
var attrs = {u:./103?1-1.IBehaviorListener.0-,i:veil};
var params = {'tourAction': 1};
attrs.ep = params;
Wicket.Ajax.ajax(attrs);
}
The java code
Hi Dan,
You can render into a hidden div, then use some JavaScript to move them
into view. Something like this which uses jQuery.
response.render(OnDomReadyHeaderItem.forScript($('#hiddenfeedback
div').appendTo($('#visiblefeedback'));));
Great idea! Thanks!
That behavior doesn't seem exactly
:36 PM, Sven Meier wrote:
Hi Bertrand,
use a custom ApplicationSettings#feedbackMessageCleanupFilter that
keeps your special messages even if they were rendered already.
Sven
On 07/19/2013 06:07 PM, Bertrand Guay-Paquet wrote:
Hi Dan,
You can render into a hidden div, then use some
Hello,
After investigating why some of my stateful pages had a ?n redirect
while others did not, I think I found a bug with the stateless page
checking.
My test case is a page containing only an AjaxFallbackDefaultDataTable,
but it can be reduced to a page containing a ListView with a
Hello,
I'm using Bootstrap for form styling which expects radio choices and
checkboxes in one of these forms:
label class=radio-inlineinput type=radioAn inline radiolabel
div class=checkbox
labelinput type=checkboxA stacked checkbox/label
/div
Using Wicket's built-in components, the
.
Martin Grigorov
Wicket Training Consulting
On Tue, Dec 17, 2013 at 7:02 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Hello,
I'm using Bootstrap for form styling which expects radio choices and
checkboxes in one of these forms:
label class=radio-inlineinput type=radioAn inline
Hello,
Your issue seems to be related to css and not to Wicket itself.
From the css spec for position: fixed :
The box's position is calculated according to the 'absolute' model, but
in addition, the box is fixed with respect to some reference. [...] the
box is fixed with respect to the
101 - 191 of 191 matches
Mail list logo