A simpler solution is:
if (needsXml()) {
getRequestCycle().replaceAllRequestHandlers(new
TextRequestHandler(text/xml, theXml))
}
On Thu, Dec 6, 2012 at 7:55 AM, Sven Meier s...@meiers.net wrote:
You'll have to let Wicket know that you wrote the response by yourself.
With
Hi,
Wicket 6 uses jQuery.on() to register the event listeners.
If your AjaxSubmitLink listens on 'click' then
jQuery('#theSubmitLinkId').triggerHandler('click') should do it.
Also check the docs of jQuery#trigger
On Thu, Dec 6, 2012 at 1:53 AM, Jered Myers jer...@maplewoodsoftware.comwrote:
Thanks for the reply, I tried to use the component on the form with the
object
CompoundPropertyModel. As follows,
ccc = new CustomerAccountCode(ccc,
new CompoundPropertyModelAccount(new Account(config.getCcc(;
form.add(ccc);
But this does the same as before, ie load
Hi guys,
I still have no clue. Any suggestions? A work-around would also be much
appreciated. I need to stay stateless but I definetely need this lazy
loading as I have to wait for a soap response every 10 mins and for user
experience issues need to display some loading component/icon as
Show us some code and the real exception.
On Thu, Dec 6, 2012 at 11:26 AM, Karsten Gaul karsten.g...@exedio.comwrote:
Hi guys,
I still have no clue. Any suggestions? A work-around would also be much
appreciated. I need to stay stateless but I definetely need this lazy
loading as I have to
Strange, the select2-with-searchbox class is added by select2.js whenever the
search input is shown:
//add select2-with-searchbox to the container if search box is shown
$(this.dropdown, this.container)[showSearchInput ? addClass :
removeClass](select2-with-searchbox);
Do you get any
Trying to:
/// StatelessAbstractDefaultAjaxBehavior ///
@Override
public CharSequence getCallbackUrl(final boolean onlyTargetActivePage)
{
final CharSequence url =
super.getCallbackUrl(onlyTargetActivePage);
final PageParameters params = getPageParameters();
//
Hi,
I think you need to override FormComponentPanel#convertInput().
Cheers,
Tobias
Thanks for the reply, I tried to use the component on the form with the
object
CompoundPropertyModel. As follows,
ccc = new CustomerAccountCode(ccc,
new CompoundPropertyModelAccount(new
On Thu, Dec 6, 2012 at 11:53 AM, Karsten Gaul karsten.g...@exedio.comwrote:
Trying to:
/// StatelessAbstractDefaultAjaxBe**havior ///
@Override
public CharSequence getCallbackUrl(final boolean onlyTargetActivePage)
{
final CharSequence url = super.getCallbackUrl(**
Hi Martin,
myContent is the id of the StatelessAjaxLazyLoadPanel which contains a
constant
private static final String LAZY_LOAD_COMPONENT_ID = content;
which is used in getLazyLoadComponent(String markupId). 'myContent'
contains the lazy load component 'content'.
On Thu, Dec 6, 2012 at 12:57 PM, Karsten Gaul karsten.g...@exedio.comwrote:
Hi Martin,
myContent is the id of the StatelessAjaxLazyLoadPanel which contains a
constant
private static final String LAZY_LOAD_COMPONENT_ID = content;
which is used in getLazyLoadComponent(String markupId).
The exception is thrown when this = content and path = myForm:enumChoice
It seems the content has no other children as it only contains a parent
member field
I already tested the stateful version and can confirm it works OK which
made me hope I could write a similar version for stateless
Thanks again for the response. For the first part I had it already
figured out, but having a concrete example is always helpful.
We thought the same - but this not manageable with more than 50 files
in one folder. So we decide to use folders - as already mentioned.
Perhaps I'll write a
I've tried to override FormComponentPanel#convertInput (), but in the
execution of this, both the method TextField#getConvertedInput () and
TextField#getModelObject () return null. By the way I'm using Wicket 6.3
--
View this message in context:
I would suggest overriding FormComponentPanel#convertInput() only if your
domain object can't be easily converted by Wicket given the model you have.
If you're using CompoundPropertyModel and set the model on your
FormComponentPanel then your TextField ID and type should be all you need
for
Hello,
I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
Incubating)
Unfortunately my first attempts were unsuccessful :(
Configuration:
1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
Tomcat/7.0.32 embedded)
2) Sun JDK 1.7.09
3) Ubuntu 12.10
4) Wicket
I have a table that includes only two rows when it is first loaded, but
later, depending on the selected value of the first row, I will need to add
a number of rows to the table. I assume it is a quite common AJAX task, is
there a recommended way to do this? My existing way of handing this has
This might be of zero use to you, but I had something similar where I was
exposing a table row by button/link. I created a somewhat generic solution
and posted it here: https://github.com/wspeirs/wicket-details-table
Bill-
On Thu, Dec 6, 2012 at 12:40 PM, shimin_q smq...@hotmail.com wrote:
I
I am able to make this work in a Quickstart, so there must be something
else wrong. Thanks for the response Martin.
Here is code if anybody wants an example:
Java:
AjaxLinkVoid standardAjaxLink = new
AjaxLinkVoid(standardAjaxLink)
{
private static final long
Paul Bors wrote:
I would suggest overriding FormComponentPanel#convertInput() only if your
domain object can't be easily converted by Wicket given the model you have.
If you're using CompoundPropertyModel and set the model on your
FormComponentPanel then your TextField ID and type should be
Hello List,
I must admit, I don't follow here too closely. But I've searched the
archive and Wicket's Jira, and have not found much discussion regarding
this Issue. So let me elaborate...
A partner pointed me to a XSS vulnerability in one of our websites built
with Wicket. The respective page
Hi Everyone,
I need to update a feedback panel with some info after a lazy load panel
finishes getting its data. I was looking for a method like onPanelLoaded(
AjaxRequestTarget target ) but didn't see anything so not sure how to get
my feedback panel refreshed.
Thanks for any tips.
--
View
I created a quickstart, Where I can upload it for what you may see?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654566.html
Sent from the Users forum mailing list archive at Nabble.com.
Assuming that you don't set a model for the FormComponet won't Wicket fail
back to the CompountPropertyModel of the form?
Who will perform the conversion then?
I only override FormComponentPanel#convertInput() when I force my clients to
provide the model for my FormComponentPanel and even then I
Clean it, zip it and just publish it somewhere where you can post the URL in
a reply to this thread :)
~ Thank you,
Paul Bors
-Original Message-
From: Raul [mailto:ralva...@netwie.com]
Sent: Thursday, December 06, 2012 3:32 PM
To: users@wicket.apache.org
Subject: RE: Model is null
I have a ListView that renders items that are populated from user cookie data.
The ListView contains a clear action that is supposed to delete the cookies
then refresh the ListView so it reflects that the cookie data was removed. I
have code that executes the deletion of the cookies (works),
Hi,
Be sure to use a LoadableDetachableModel
Also, maybe you set ListView#*setReuseItems* to true (because the ListView
is in a form)? You can set it to false if you have no validation and then
you will get fresh data (see ListView javadoc)
Hope this helps,
Sebastien.
On Thu, Dec 6, 2012 at
The ListView is not in a form, which is why I am leaving the default for
setReuseItems to false.
I am using a LoadableDetachableModel and verified the load that rereads
the cookies, does in fact get called after I delete them (reset method
call below). If I break in the load of the detachable
Well, I think it is because this is the same listview that is redisplayed,
not the new one.
The cause is that you did not add the new listview to its parent.
But, I would have done a little bit differently because:
1/ You do not have to recreate the listview in ajaxlink's onclick. just
clear
Hi Sebastian,
Thanks for your feedback. I wasn't recreating (semantics?) the Listview,
I was just refreshing it via ajax so it updates with the model changes.
What do you mean by reattach the listview's parent-container? Do you
mean remove the listview and re-add it in the onbeforerender?
J.D.
Oops, you are right: I misread. I though you was recreating the listview,
sorry for he confusion!
Also, reattach the listview's parent-container simply means what you
already do by:
target.add(RecentlyViewedItemsPanel.this.get(itemContainer));
(this is because it is not possible to reattach the
That worked! Thanks a lot Martin
-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: Thursday, December 06, 2012 3:10 AM
To: users@wicket.apache.org
Subject: Re: Returning XML or HTML
A simpler solution is:
if (needsXml()) {
Paul Bors wrote:
Assuming that you don't set a model for the FormComponet won't Wicket fail
back to the CompountPropertyModel of the form?
Yes, for sure. But you explicitly recommended:
If you're using CompoundPropertyModel and set the model on your
FormComponentPanel then your TextField ID
Corbin, James wrote:
The ListView is not in a form, which is why I am leaving the default for
setReuseItems to false.
I am using a LoadableDetachableModel and verified the load that rereads
the cookies, does in fact get called after I delete them (reset method
call below). If I break in the
I am trying some hacks now to get the application work well and I am looking
forward to just have wicket in my application :)
I don't even know why overriding getDefaultNameSpace(){ return ;} doesn't
work. The resources js or css cannot be found anymore, so the will be
searched in /wicket/wicket/
35 matches
Mail list logo