Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Dec 12, 2012 at 8:29 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Why not have outputmarkupid=true? > > In this particular use case doing that would mean that a IFeedback panel, based on ( http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widge

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
1. Please also implement this expert/newuser mode as boolean closeonhover setting inside notificationspanel: public void onTargetRespond(AjaxRequestTarget target) { if(isExpertMode()) { renderErrorNotifications(target, getString("timeManagement.error"), new NotificationSettings()

Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Vitaly Tsaplin
I filed an issue https://issues.apache.org/jira/browse/WICKET-4925 2012/12/12 Vitaly Tsaplin > Hi Martin, > > Ok. But what if I want to remove it and then add again later? In my case > I have several behaviors that are relatively heavy to create and I switch > them. > > Vitaly > > > 2012/12/12

RE: FormComponentPanel & onchange Events

2012-12-12 Thread Colin Rogers
William, Is the AjaxEventBehavior added to the panel or the component? What event is it fired on? I'd thought you'd need it to be added to the component (rather than panel) and say, triggered 'onblur'. And using a AjaxFormComponentUpdatingBehavior rather than AjaxEventBehavior? Can you post t

RE: FormComponentPanel & onchange Events

2012-12-12 Thread Chris Colman
The model objects are only updated after form submission and submission will only happen if successful validation has occurred. If you are expecting to copy values from one field to another without performing form submission then you can't extract the values from the model objects. I think what y

FormComponentPanel & onchange Events

2012-12-12 Thread William Speirs
I've created a FormComponentPanel with 2 text boxes: A & B. I've add this new FormComponentPanel to my page twice: 1 & 2. What I'd like to have happen is when I change the value of 1A I want that same value copied into 2A. I call setOutputMarkupId to true on 1A, 1B, 2A, and 2B. I setup an AjaxEven

Re: ListChoice + Ajax

2012-12-12 Thread Sven Meier
You have to use an AjaxFormSubmitBehavior, then the textFields and the selection of the listChoice will be pushed to the server in one go. Sven Mandrake wrote > Thank you very much for helping! But with this code i can load data from > 'selectedNode' to inputs elements. However i want to save da

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
Why not have outputmarkupid=true? 2012/12/12 Ernesto Reinaldo Barreiro : > IHeaderContibutor won't work if component does not has > setOutputMarkupId(true) AjaxRequestHandler#add() > > public void add(Component... components) > { > for (final Component component : components) > { > Args.notNul

url problem of resourceLink popup page

2012-12-12 Thread appwicket
Hi I am using resourceLink for a grammatically generated pdf resource: PopupSettings popupSettings = new PopupSettings("resourcePage", PopupSettings.RESIZABLE | PopupSettings.SCROLLBARS).setHeight(500).setWidth(700); ResourceLink resourceLink = (ResourceLink) new R

Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
So, essentially what I'm asking is to relax the condition component.getOutputMarkupId() == true <==> AJAX updateable, by introducing and alternative IAjaxUpdateable (marking a component as "I know how to update myself via AJAX") for components with component.getOutputMarkupId() == false or even

Re: Serialization problem for ConcurrentHashMap

2012-12-12 Thread Aleksey V. Katorgin
Sry I've tried to reproduce this bug in quickstart project but with no results. I can't investigate anymore because right now I am under time pressure... The bug regular occurs in Apache Caynnen Object Context which I pass from one Page to a constructor of a Page will be forwarded. And this each t

Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
IHeaderContibutor won't work if component does not has setOutputMarkupId(true) AjaxRequestHandler#add() public void add(Component... components) { for (final Component component : components) { Args.notNull(component, "component"); if (component.getOutputMarkupId() == false && !(component ins

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
IHeaderContributor? 2012/12/12 Ernesto Reinaldo Barreiro : > Hi, > > Several times I have encountered the situation where I want to "update" a > component via AJAX and this component does not have setOutputMarkupId(true) > or even the component generates no visible markup. All this component > n

Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Vitaly Tsaplin
Hi Martin, Ok. But what if I want to remove it and then add again later? In my case I have several behaviors that are relatively heavy to create and I switch them. Vitaly 2012/12/12 Martin Grigorov > Hi, > > It is expected behavior. > An Ajax behavior can work with only one component because

Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Martin Grigorov
Hi, It is expected behavior. An Ajax behavior can work with only one component because it cannot create callbackUrl for more than one. On Wed, Dec 12, 2012 at 4:06 PM, Vitaly Tsaplin wrote: > Hi, > > It looks like it is not possible to remove an instance of > AbstractAjaxBehavior. The behavior

Re: Expiration page not shown in case of back button usage

2012-12-12 Thread Thijs
No it doesn't hit the browser cache. It's actually recreating a new Page. We've put breakpoints in Wicket to establish that. In PageProvider is trying to create a new Instance see the stacktrace. The following stacktrace is taken when we use the 'backspace' or 'back button' in the browser afte

Re: Serialization problem for ConcurrentHashMap

2012-12-12 Thread Martin Grigorov
Hi, java.util.concurrent.locks.ReentrantLock.Sync is Serializable, so it looks like a bug in Wicket .. Please create a simple quickstart that demonstrates the problem and attach it to Jira. On Wed, Dec 12, 2012 at 2:53 PM, Aleksey V. Katorgin wrote: > Hello! Sry for my English. I've get the nex

Re: ListChoice + Ajax

2012-12-12 Thread Sven Meier
Just bind the textfields to the selectedNode, then they are always up-to-date. BTW a LDM helps if #getNodesStorage() is an expensive call: Form form = new Form(NODE_FORM_ID); addOrReplace(form); final IModel> nodeStorage = new LoadableDetachableModel> { public List loa

RE: events between pages

2012-12-12 Thread Michal Wegrzyn
Thanks for a reply. Exactly. For my custom js I do simply: target.appendJavaScript( "if(window.parent != null) { window.parent." + script + "}else{" +script +"}" ); because iframes are inside parent page. Maybe there is a way to add above modification to ART with some kind of contributor inte

Re: CryptoMapper ignores original queryString parameters

2012-12-12 Thread LauraZ
Hi Martin, I've Wicket 6.3.0. and doesn't work. I've posted a ticket https://issues.apache.org/jira/browse/WICKET-4923 with a quickstart Regards, Laura. > Hi Laura, > > This has been improved recently with > https://issues.apache.org/jira/browse/WICKET-4865 (Wicket 6.3.0). > If this doesn't work

Re: events between pages

2012-12-12 Thread Martin Grigorov
They are not part of the iframe's document and the JavaScript code cannot find them to replace them. It is easy to use the 'parent' in the JS code but I see no way to know that at the server side. I.e. when using ART#add() to say that the component is in the parent document... On Wed, Dec 12, 201

[FYI] X-Frame-Options deny Header

2012-12-12 Thread Oscar Besga Arcauz
Hi Wickers In my Wicket app, I had another filter, prior to wicket app, that used to add headers to every request to the webapp. One of this headers was X-Frame-Options with value deny, which prevents pages and elements to be used into an ; its recommended for security reasons (XSS and CSRF

RE: events between pages

2012-12-12 Thread Michal Wegrzyn
Hi Martin, For your workaround event is propagated and it works fine, but there are problems with AjaxRequestTarget, precisely with target.add( componentToRefresh ). Components that are outside of an iframe are not refreshed (target works on iframe context and they are not found). What would b

Re: What is the wicket 6 equivalent of ComponentRequestTarget?

2012-12-12 Thread Martin Grigorov
cycle.scheduleRequestHandlerAfterCurrent(new ComponentRenderingRequestHandl er(...)) This API has changed with Wicket 1.5. You may want to read its migration page since you migrate from older version directly to Wicket 6 On Wed, Dec 12, 2012 at 10:51 AM, Marios Skounakis wrote: > Hi all, > > I

Re: Wicket widget for deployment to third party site

2012-12-12 Thread Mike Comb
The requirements are pretty simple, the widget will contain a form field or two that will be submitted back to a server via AJAX and present results back to the user on the site hosting the widget. Think of the ubiquitous Twitter or Facebook share widgets as existing similar examples to the fun

Re: Chrome warning with CSSHeaderItem

2012-12-12 Thread Martin Grigorov
Hi, Wicket uses a special trick to load CSS in Ajax response: http://www.backalleycoder.com/2011/03/20/link-tag-css-stylesheet-load-event/ The warning is harmless. You can ignore it. On Tue, Dec 11, 2012 at 6:45 PM, Jered Myers wrote: > Wicket 6.3 > Chromium 18.0.1025.168(Developer Build134367

Re: Expiration page not shown in case of back button usage

2012-12-12 Thread Martin Grigorov
It seems that the browser tries to load the page from its cache. I think you need to set proper cache headers to always ask the server instead of using the local data. On Tue, Dec 11, 2012 at 6:59 PM, Rob Sonke wrote: > Yes I know but by using the back button it seems to be ignored. Like it > t

Re: a question on different data grid components available for wicket

2012-12-12 Thread Martin Grigorov
Hi Ernesto, This change deserves a separate discussion in dev@. On Tue, Dec 11, 2012 at 7:58 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Martin, > > On Wed, Nov 28, 2012 at 9:25 AM, Martin Grigorov >wrote: > > > On Wed, Nov 28, 2012 at 9:22 AM, Ernesto Reinaldo Barreiro < > >

Re: Wicket widget for deployment to third party site

2012-12-12 Thread Martin Grigorov
Hi, What are the requirements for this widgets ? Recently another user asked for the same functionality and we realized that there are several limitations, the most important one - CORS. Please create a mini application that shows the requirements and we can try to finish it together. You can put

Re: understanding ajax response

2012-12-12 Thread Martin Grigorov
The patch is applied. Will be part of 6.4.0 On Tue, Dec 11, 2012 at 9:48 PM, saty wrote: > I also notice performance improvement (significant in my case) with this > fix. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/understanding-ajax-response-tp465431