Hi,
Actually the redirect strategy is involved here.
By default redirect_to_buffer redirects from
/mypage?-1.IFormSubmitListener-panel-form
(possible POST request) to /mypage?1 (a GET request).
With stateless pages there is no store where to put the response data to
make such redirect and the data
Thanks. Sorry, I was assuming that pages are mounted. Without mounting
of course we cannot get stable URLs.
But with a form submit from a mounted page we are still getting
/mypage?-1.IFormSubmitListener-panel-form
That can be avoided with setStatelessHint(false);
which will then produce a URL
I once implemented something similar where I had to add records to a
DataTable.
What I ended up doing is twickying the DataProvider to allow adding rows to
the current page.
ie: I would add new rows to the current page and flush them to the DB on
Save.
I did not have to care about the page number
Is moutning the page what you're looking for?
http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/
On Sun, Feb 24, 2013 at 8:02 AM, Bernard wrote:
> Hi,
>
> We don't want back button support. setVersioned(false) with the
> default RenderStrategy looks like a good match for this.
>
> But
On Mon, Feb 25, 2013 at 8:23 PM, heapifyman wrote:
> Am I right in assuming that this behavior will run the javascript that is
> returned by "getBeforeHandler()" and then it will stop and won't do
> anything else (which is achieved by "onPrecondition("return false")")?
>
Yes.
>
>
> 2013/2/25 M
Solved.
Since i tried a lot of different solutions the code was a little messy,
after a clean up and a fresh start the combination of the insertNodeInto
method of the DefaultTreeModel class and the update method of
the AjaxRequestTarget class did the trick.
Take care!
Rafael
2013/2/25 Rafael Bar
Hi,
I was also thought of rolling out some "angular powered components" like
angular "paginated repeating view" where angular interacts with server side
interfaces similar to IDataProvider using component as "context" to serve
some JSON (e.g. making component implement IResourceListener and having
Am I right in assuming that this behavior will run the javascript that is
returned by "getBeforeHandler()" and then it will stop and won't do
anything else (which is achieved by "onPrecondition("return false")")?
2013/2/25 Martin Grigorov
> abstract public class ClientSideEventBehavior extends
Never mind the ClassCastException, i was casting the wrong object. However,
no matter which method i use to add a new node, the tree does update and i
am force to collapse and then expand (i tried doing the latter
programmatically in order to test and found out it does not work, so i'm
even more ba
On Mon, February 25, 2013, Martin Grigorov wrote:
> Well, I have written a Wiki page and few blog articles about the changes in
> Wicket 6 but it seems you haven't read them before asking :-)
I understand your point well, I myself have often spent lots of
time writing documentation which people
I put a break point in CompoundRequestMapper at line 149 (the mapRequest
function). Here are the results of request.getURL.toString():
IE7:
- wicket/page?8 (first ModalWindow)
- page?9 (nested ModalWindow)
Chrome, IE9 (browser IE7, document IE7):
- wicket/page?8 (first ModalWindow)
- wicket/pag
Hi,
On Mon, Feb 25, 2013 at 5:58 PM, Thomas Heigl wrote:
> Hey all,
>
> I recently started a new project based on our existing Wicket
> infrastructure. This infrastructure handles typical web application
> requirements like registration, signup, authentication, user management
> functionality an
I do see this in my log if I turn on DEBUG in log4j:
[08:43:03] DEBUG
[org.apache.wicket.request.mapper.CompoundRequestMapper] - No compatible
mapper found for URL 'page?6'
[08:43:03] DEBUG [org.apache.wicket.request.cycle.RequestCycle] - No
suitable handler found for URL page?6, falling back t
It looks like it was a bug fixed in a 1.5 release candidate (
https://issues.apache.org/jira/browse/WICKET-3982). The example in my
link (http://www.wicket-library.com/wicket-examples/ajax/modal-window)
appears to be using Wicket 1.5.9, so it should be fixed in that code and
it isn't. I am rep
Hey all,
I recently started a new project based on our existing Wicket
infrastructure. This infrastructure handles typical web application
requirements like registration, signup, authentication, user management
functionality and is very solid.
One of the main requirements of the new site we are b
Hello everyone!
I'm implementing a TreeTable with editable fields and i am bumping into a
few issues, so i decided to check with you just in case you have bumped
into the similar problems.
Right now i am struggling to update the table after adding a node, the
problem is that right now in order to
On Mon, Feb 25, 2013 at 5:52 PM, Martin Dietze wrote:
> On Mon, February 25, 2013, Martin Grigorov wrote:
>
> > > | AjaxCallListener myAjaxCallListener = new AjaxCallListener();
> > > | myAjaxCallListener.onBeforeSend( return "for ( instance in
> > > CKEDITOR.instances ) CKEDITOR.instances[instan
On Mon, February 25, 2013, Martin Grigorov wrote:
> > | AjaxCallListener myAjaxCallListener = new AjaxCallListener();
> > | myAjaxCallListener.onBeforeSend( return "for ( instance in
> > CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement();" );
> >
>
> except the leading "return" all
abstract public class ClientSideEventBehavior extends AjaxEventBehavior {
public ClientSideEventBehavior(String eventName) { super(eventName); }
@Override protected final void updateAjaxAttributes(AjaxRequestAttributes
attributes) {
super.updateAjaxAttributes(attributes);
attributes
Care to share this precondition handling?
2013/2/25 Martin Grigorov
> Hi,
>
>
> On Mon, Feb 25, 2013 at 1:35 PM, heapifyman wrote:
>
> > mydropdownComponent.add(new AjaxFormComponentUpdatingBehavior("change") {
> > @Override
> > protected void onUpdate(AjaxRequestTarget target) {
> >
On Mon, Feb 25, 2013 at 4:32 PM, Martin Dietze wrote:
> On Mon, February 25, 2013, Martin Grigorov wrote:
>
> > replace with:
> > response.render( OnDomReadyHeaderItem.forScript( script ) );
>
> OK, did that. Now I am running into a different error when I
> press "save" on my editor compone
On Mon, February 25, 2013, Martin Grigorov wrote:
> replace with:
> response.render( OnDomReadyHeaderItem.forScript( script ) );
OK, did that. Now I am running into a different error when I
press "save" on my editor component. For this event I have an
AjaxCallListener like this:
| AjaxCall
On Mon, Feb 25, 2013 at 4:09 PM, Martin Dietze wrote:
> On Mon, February 25, 2013, Martin Grigorov wrote:
>
> > The Ajax response processing looks like:
> > - execute prependJavaScripts
> > - replace components
> > - execute ondomready scripts
> > - execute appendJavascripts
> >
> > I.e. the comp
On Mon, February 25, 2013, Martin Grigorov wrote:
> The Ajax response processing looks like:
> - execute prependJavaScripts
> - replace components
> - execute ondomready scripts
> - execute appendJavascripts
>
> I.e. the component DOM element must be there.
> Show us your new code.
Thanks, it's
Hi,
The Ajax response processing looks like:
- execute prependJavaScripts
- replace components
- execute ondomready scripts
- execute appendJavascripts
I.e. the component DOM element must be there.
Show us your new code.
On Mon, Feb 25, 2013 at 3:56 PM, Martin Dietze wrote:
> On Mon, February
On Mon, February 25, 2013, Martin Dietze wrote:
> Thank you, in this case I get a Wicket Ajax error:
>
> | Wicket.Ajax: Wicket.Head.Contributor.processScript:
> [CKEDITOR.editor.replace] The element with id or name "valueb54" was not
> found.: eval -> if (CKEDITOR.instances['valueb54'])
> | CKE
On Mon, February 25, 2013, Martin Grigorov wrote:
> Such kind of code should really be executed within #renderHead() with
> OnDomReadyHeaderItem.
> Don't let any JS try to use your HTML DOM elements before the DOM is
> available.
Thank you, in this case I get a Wicket Ajax error:
| Wicket.Ajax:
Hi,
Such behavior can be experienced when the page is re-rendered in the
meantime, for example in a new tab/window.
See Page#renderCount javadoc for explanation.
To verify that this is or is not the case you can put a breakpoint in
PageProvider#getPageInstance() method.
On Mon, Feb 25, 2013 at 3
Hello,
I'm trying to update a wicket 1.5.5 application to 6.5.0. I have overcome
some issues with Header items, and setting Attributes to
AllowDefault(true) for ajax. I have one remaining issue that i cant seem to
figure out.
I have a wizard that allows users to create a booking.
(See currently
Hi,
Such kind of code should really be executed within #renderHead() with
OnDomReadyHeaderItem.
Don't let any JS try to use your HTML DOM elements before the DOM is
available.
On Mon, Feb 25, 2013 at 3:05 PM, Martin Dietze wrote:
> OK, I've changed the subject, as it seems like I'm running int
OK, I've changed the subject, as it seems like I'm running into
a more general issue here. The original issue was JS code
rendered into a flyout with search results in my application
never made it into the markup the browser actually sees.
Now I've identified another problem which seems identical
Hi,
could you compare your case with DropDownChoicePage from wicket-examples?
If I add #setNullValid(true) true the dropDown, it works as expected:
form.add(new DropDownChoice("site",
SITES).setNullValid(true));
Sven
On 02/25/2013 01:21 PM, venkat wrote:
Hi ,
Anyone please let me
Hi,
On Mon, Feb 25, 2013 at 1:35 PM, heapifyman wrote:
> mydropdownComponent.add(new AjaxFormComponentUpdatingBehavior("change") {
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> target.appendJavaScript("your javascript...");
> }
> });
>
>
In our project we hav
Hi ,
Anyone please let me know how to retain "ChooseOne" option in dropdownchoice
even user has selected an option and model get updated with selected value.
have used
myDropDown.setNullValid(true);
it is showing the blank option after this change. Moreover, once user
selects any value this o
mydropdownComponent.add(new AjaxFormComponentUpdatingBehavior("change") {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.appendJavaScript("your javascript...");
}
});
2013/2/25 Ernesto Reinaldo Barreiro
> Can you just register your "behavior" to on change? So
Hi ,
I have a requirement, where when user selects a particular option from
dropdown, I need to show Java Script Confirmation dialog. Is there any way
in Wicket to add javaScript behaviour to dropdown choice.
Have used JavaScriptConfirmation to submit buttons in other areas and is
working fine,
Hi,
I've just tried it in a quickstart and my conclusion seems to be valid.
I am able to reproduce the problem with the initial order and to workaround
it with the reverse order.
To debug what happens in your case you can put a breakpoint
in org.apache.wicket.request.mapper.CompoundRequestMapper#
Hi,
changing the order of the mounts doesn't help. I already tried this.
regards britta
Am 25.02.2013 10:58, schrieb Martin Grigorov:
> Hi,
>
> As a workaround mount first Page2 and then Page1.
> The problem is that both mounts calculate the same
> IRequestMapper#getCompatibilityScore() and sinc
Hi,
As a workaround mount first Page2 and then Page1.
The problem is that both mounts calculate the same
IRequestMapper#getCompatibilityScore() and since the one for Page2 is
mounted later it has higher priority.
File a bug in our Jira to improve the calculation of the compatibility
score when op
I will mount /all/sindex to Page1 and /all/anythingelse to Page2.
Mounting with
mountPage("/all/sindex",Page1.class);
mountPage("/all/#{exp}", Page2.class);
always mount to Page2 also for /all/sindex. What's wrong?
regards britta
--
Dr. Britta Landgraf phone: +49 2461 61 5647
IEK-4
Hi,
Please file a ticket with a quickstart.
On Sun, Feb 24, 2013 at 2:56 PM, chrome1235 wrote:
> Hi,
>
> I think the line (row number=158)
> StringBuilder script = new StringBuilder("var w = window.open*("
> + target
> + ", '")*.append(
> windowTitle).append("'
Hi,
If you are able to reproduce this in a quickstart application then please
attach it to a ticket in our Jira.
Thanks!
On Sun, Feb 24, 2013 at 9:53 PM, Ciocoiu Elvis
wrote:
> Hi,
>
> I'm fighting with a strange problem when using a form (multipart) with a
> required TextField and a FileUpload
42 matches
Mail list logo