Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-08 Thread Vladimir K
Igor, for now I'm concerned about how can I make sure that my code that mimics form submitting lifecycles and wicket code in coming version do the same things? For instance the AjaxFormComponentUpdatingBehavior: @Override protected final void onEvent(final AjaxRequestTarget

Re: wicket vs vaadin clarifications

2009-07-09 Thread Vladimir K
Joonas, I'm wondering why your comparison table does not contain ZK? I find Vaadin demos not very responsive. They react very very slowly. At that internet responses are less than 100ms and response size mostly less than 1K and there are only one-two roundtrips for each user action. The same

Re: wicket vs vaadin clarifications

2009-07-09 Thread Vladimir K
not familiar with ZK enough to contribute a column. Amount of its ads is quite impressive so I assume it has a certain piece of market pie. However I refused ZK 'cause it looks not so attractive in technical internals. Joonas Lehtinen wrote: Vladimir K wrote: I find Vaadin demos not very

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Vladimir K
I didn't find it easy to do it myself. By easy I mean what I can accomplish within 15 mins. From the first glance it looks just like a mix of two strategies but it actually does not. MixedHybridUrlCodingStrategy should handle all the parameters delimited by slashes and some of them have names

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Vladimir K
Thanks very much! Why not suggest it as a patch to wicket core? Erik van Oosten wrote: Hi Vladimir, You are right. Now I look at it, it is clearly more complex then I remembered. You can get my version here: http://pastie.org/543892 Regards, Erik. Vladimir K wrote: I

Re: model detached many times

2009-07-13 Thread Vladimir K
Martijn, you probably mean how chained models would be detached. So instead of propagating detach in IChainedModel they would be detached automatically? Is there a vision how it would be accomplished? Martijn Dashorst wrote: Automatic detachment is one of the things we're looking into for

Re: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K
(); Application.get().getMarkupSettings().setStripWicketTags(true); super.onBeforeRender(); } that looks like a hack. I would prefer a settings on the MarkupContainer that by default uses the application settings but in case of border can be overridden. Vladimir K wrote

Re: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K
Mathias, I just posted right after your post :) Anyway thanks. The problem is that you can not restore origianal settings when the body of the border is being rendered. At lease it is difficult to figure out what workaround I could employ. Thankfully I haven't to care about that in my case so

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Vladimir K
of that page. In your case, if the page instance have some state (is session relative), then there is no way to create a bookmarkable link for it. Alex Objelean Vladimir K wrote: I created a breadcrumbs panel that automatically creates a series of bookmarkable links from the home page

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Vladimir K
Certainly, parameters are just name of object class and object code/id. But actually I'm saying that I can create store PageReference with its related PageParametes in session and using PageParameters from the request to obtain a Page instance from page store. The only thing I'm not sure is the

Re: Serialization of a page with a long and dynamic list of records

2009-07-25 Thread Vladimir K
I realized that it is not possible to support bookmarkable page links in breadcrumbs panel for already instantiated pages because it won't work with multiple browser windows and tabls. Therefore I can use bookmarkable links for non-instantiated pages only. It can be easily accomplished with

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Nested tree and tree table seems promicing. What I missed in your example is single-selection mode, and sortable headers with filters. One of my the upcoming tasks is to build a selector component that knows whether the object is hierarchical and puts inside a datatable with navigator or

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
to add a selected class attribute for selected TDs. Vladimir K wrote: Nested tree and tree table seems promicing. What I missed in your example is single-selection mode, and sortable headers with filters. One of my the upcoming tasks is to build a selector component that knows whether

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
I find the source code pretty clean and easy to understand. Especially if you are familiar with DataTable component. For instance I see that it is easy to use Ajax versions of Toolbars instead of static (however DefaultAjaxFallbackTreeTable would be usefull) Looking forward for the

Re: Reading Wicket source code

2009-07-26 Thread Vladimir K
For me the magic is how wicket is managing pages and their versions. For instance I realized that it increments version when preparing the page for render. But when I was debugging the code related to version manager I felt lost :) All the other stuff is pretty complex but not difficult to

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
though. API will be finalized after sufficient feedback from the Wicket community - so keep on firing questions ;). Sven On So, 2009-07-26 at 01:51 -0700, Vladimir K wrote: Nested tree and tree table seems promicing. What I missed in your example is single-selection mode, and sortable

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
svenmeier wrote: ITreeProvider and IDataProvider are not exactly compatible, I don't think we gain anything by extending the former from the latter. I don't insist. But you do have IDataProvider wrapper over ITreeProvider in TableTree.java :) Selection is not part of the tree

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
It does not. It is stated at the bottom of the home page http://code.google.com/p/wicket-tree/ For ajax updates it should behave not worse than DataTable component. Matej, I find the idea of re-using data provider, columns and cells developed for DataTable very important. Matej Knopp-2 wrote:

Re: advice about ImageSubmitButton and AjaxImageSubmitButton

2009-07-26 Thread Vladimir K
In addition I need something like AjaxFallbackImageSubmitButton. Just to let you know that he is not alone :) From my perspective Wicket should provide basic Button and mixins (mostly behaviours) to add Ajax, AjaxFallback, Image, Submit etc. So users could just get the button they need by adding

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Sven, i added TableTree (why not TreeTable?) to my panel and added a button to switch between tree and table representation. The problem is that DataTable relies on the user that binds it to the table tag at the time when your TableTree contains table within. It is not a big deal just an

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Since you update AbstractTree in ajax request I can't omit etra 'div' tag that encloses table tag neither by using wicket:component nor by calling setRenderBodyOnly(true). Vladimir K wrote: Sven, i added TableTree (why not TreeTable?) to my panel and added a button to switch between tree

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Vladimir K
Could anyone shed light on that? -- View this message in context: http://www.nabble.com/How-to-determine-which-behavior-corresponds-to-the-currently-handled--request-target-tp24635282p24680015.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Vladimir K
I'm trying to add AjaxFormComponentUpdating behavior to FormComponentPanel. The latter is inherintly not suited for Ajax requests. So I have to use some workarounds to update model of FormComponentPanel by ajax update on onblur js event on inner input, see code posted here. It works for now but

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
+1 I will buy such trick Erik van Oosten wrote: Jonathan Locke wrote: I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know Perhaps something about handling URLs. Like writing your own url coding strategy

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
ModalWindow (being a wicket cheat :) ) deserves a sole book of tricks. I'll definitely author my own modal window unless someone fixes the original one. -1 on including ModalWindow to the book. egolan74 wrote: I can't wait for yet another great Wicket book. I will surly buy it. regarding

Re: reuseitems problems

2009-07-28 Thread Vladimir K
Martin, please describe the context. I don't see how the process of serialization makes the instance of the object obsolete. In my practice I use a detachable model when rendering View page and I use a static model when rendering an Edit page. In onSubmit method I save the model object and

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Jeremy, from my perspective ModalWindow is a mix of javascript widget that works in non-wicket mode and an wicket wrapper that bridges js widget with wicket. It is always created at the body level. That's why I said it's a cheat. Thus are problems with form submitting when nested forms are used.

Re: reuseitems problems

2009-07-28 Thread Vladimir K
Martin, why do you get Page instance 2 on page refresh? MartinM wrote: please describe the context. I don't see how the process of serialization makes the instance of the object obsolete. 1. Page instantiation. Page instance 1 {manipulating target data 1}, formComponent instance

Re: reuseitems problems

2009-07-28 Thread Vladimir K
trying to undertand what is happening in your case. When the page is serialized the steam contains the whole graph, including the ListView and it's items and the page default model and the ListView items models. When the page is deserialized, the whole graph is restored including page, its model,

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Matej, one of the problems is that when ajax submit happens (by pressing ajax submit button that resides in a form that resides in a ModalWindow that is put into another form) it contains no data for the components of enclosing form but the process of handling the submit handles the eclosing

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
The following class fixes the problem. It is the evidence of mismatch I'm saying about. public class ModalWindowFormT extends FormT { public ModalWindowForm(String id) { super(id); } @Override public Form? getRootForm() { Form?

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Ok then. I'm a noob in maven and ... I even don't know how to make a quickstart of this problem for you. I have never done Wicket project from scratch. But I have just found a free maven by example book and started to read. I will be back soon :) Matej Knopp-2 wrote: This would be then a bug

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Matej Knopp-2 wrote: Modal Window is an ajax component. Submitting it with regular submit is not supported and it never was. But I would like to have AjaxFallbackModalWindow that survives page refresh. Why not author my own if the aims are different? Probably requirements we have are far

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
We developed a RAD framework that builds page design dynamically completely basing on metadata. So there is no any concrete page that I could extract. I believe it would be more convinient for you and simpler for me to just have a look at the concrete page without dynamic layout. Matej Knopp-2

Re: reuseitems problems

2009-07-28 Thread Vladimir K
serialization graphs? ** Martin 2009/7/28 Vladimir K koval...@gmail.com: trying to undertand what is happening in your case. When the page is serialized the steam contains the whole graph, including the ListView and it's items and the page default model and the ListView items models. When the page

Re: Twenty Six Wicket Tricks

2009-07-29 Thread Vladimir K
Personally I would embed YUI splitter and jQuery layout only if their state could survive page refresh. It does not seem they are capable for now. AFAIK it is possible to use coockies to save the state of splitter or docked panel. Ralf Eichinger wrote: I would prefer to see - Javascript

Re: DataTable with more than one tr per item

2009-08-10 Thread Vladimir K
The regular repeater does not support pagination, sorting and filtering out of the box. Erik van Oosten wrote: Kariem, There is a hint at http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container Regards, Erik. Igor Vaynberg wrote:

Re: DataTable with more than one tr per item

2009-08-10 Thread Vladimir K
I mean they does not have toolbars that provides user with pagination, sorting and filtering. One should author her own DataTable class in order to get extra tr in the item's markup. If Item class was derived from Panel class it would be possible to override newRowItem() method. I believe it

Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-04 Thread Vladimir K
It seems that problem prepending resource URLs resurrected again. https://issues.apache.org/jira/browse/WICKET-2491 vineet semwal wrote: i have opened the jira issue for the same problem, https://issues.apache.org/jira/browse/WICKET-2717 On Thu, Feb 4, 2010 at 1:07 AM, vineet semwal

Re: Shared resources with parameters?

2010-02-26 Thread Vladimir K
For now I can't benefit from 304 Not Modified when shared parameterized resource is mounted with custom mount path (say /databaseimage/ in contrary to /resources/) and backed by database. I mean it is not easy to benefit from just implementing IResourceStream.lastModifiedTime(). It is due

Re: wiQuery components with server side state - live demo

2010-03-02 Thread Vladimir K
Looks great! One thing is missing - the components don't restore their state on refresh. I believe cookie, window name or dom storage can be used to keep the position and settings of components that are available for dragging/re-arrangement. Roman Ilin wrote: Great, ready for use

Re: Wicket in the industry

2010-03-16 Thread Vladimir K
Look the site has raw wicket urls :) ananthakumaran wrote: http://www.breakitdownblog.com/apache-wicket-powers-mobile-walmart-com/ On Mon, Mar 15, 2010 at 1:50 PM, Mynhardt Vlok mynhar...@gmail.com wrote: Hey community I'm testing / using wicket at the moment and have to convince my

Re: Page Design Question

2010-03-16 Thread Vladimir K
Wiket provides PropertyModel class to map to values accessible via expressions. You always can write your own models. For instance you can employ Spring property expressions if you'd like map on collection projection. You can yield values using great Google collections framework. Steven Haines

When object is null

2010-07-27 Thread Abid K
I hope someone can help a newbie who is learning Wicket. I have the following code which accepts a parameter and then does a database query to get the 'Data' object. If the user enters the wrong Id the database query will return null and in this case I want to notify the user the data could not

Re: When object is null

2010-07-27 Thread Abid K
Thanks Josh and Daniel - both methods have worked. I have gone with checking if the object is null or not like so... public class SomePanel extends Panel { public SomePanel(String id) { super(id); if ( data == null ) { return; } Label label = new

Monitor external link clicks

2010-10-07 Thread Abid K
Hi, I am using the ExternalLink class for external sites. I've noticed this class does not implement the ILinkListener interface and I am not able to monitor these clicks. I tried to implement the listener, but I did not get far. e.g. public class MonitorExternalLink extends ExternalLink

Re: Monitor external link clicks

2010-10-07 Thread Abid K
...@koodaripalvelut.com wrote: Add onclickbehavior? ** Martin 2010/10/7 Abid K abz...@gmail.com: Hi, I am using the ExternalLink class for external sites. I've noticed this class does not implement the ILinkListener interface and I am not able to monitor these clicks. I tried

Re: Monitor external link clicks

2010-10-07 Thread Abid K
to the external url using setRequestTarget(new RedirectRequestTarget(url)); Martijn On Thu, Oct 7, 2010 at 4:55 PM, Abid K abz...@gmail.com wrote: Hi, I am using the ExternalLink class for external sites. I've noticed this class does not implement the ILinkListener interface and I am not able

URL

2011-05-16 Thread Abid K.
I have a page that's mounted and when accessing the page the url is: http://www.something.com/admin/userAdd When posting a form the url changes to: http://www.something.com/admin/userAdd/wicket:interface/:3:dataForm::IFormSubmitListener:: Is it possible that the url can stay clean like the first

MarkupContainer.removeAll() does not detach models recursively

2011-07-01 Thread Nazaret K
Hi, There are cases where I am explicitly removing all children components from a ListView by calling removeAll(); For some reason, the removeAll() on MarkupContainer does not call detach() on its child components, instead it calls detachModel(); This has the side effect that the models of the

AjaxFallbackLabel Component

2012-09-05 Thread Abid K
I've created a simple component called 'AjaxFallbackLabel', which might be useful to have as part of the Ajax components. I particularly found it useful when explaining to the user that Ajaxified components would automatically refresh, otherwise when JavaScript is disabled it would revert to the

Setting Wicket to by pass DWR in filter

2011-11-10 Thread Lester K H Chua
Hi, I have done a quick search with no results so have decided to consult the hive mind. Currently I am considering using DWR to perform simple and secure JS on the front end on an existing wicket app. 1) How do i proceed to configure wicket to ignore certain URL in the wicket filter? E.g. I

Re: Setting Wicket to by pass DWR in filter

2011-11-10 Thread Lester K H Chua
Thanks! Got it. Regards, Lester On Nov 11, 2011, at 8:20 AM, Igor Vaynberg wrote: wicket filter confing in web.xml takes an ignorePaths argument which is a comma separated list of paths to ignore -igor On Thu, Nov 10, 2011 at 4:11 PM, Lester K H Chua cicowic...@gmail.com wrote: Hi

Protection against CSRF (Cross-Site Request Forgery) attacks in Apache Wicket 6

2013-05-28 Thread Magnus K Karlsson
renamed, please submit an example how to use this new class. - Does Apache Wicket 6 support any other solution to hinder CSRF? -- Med vänliga hälsningar Magnus K Karlsson Mobile: +46 (0)70 218 00 84 Email: magnus.r.karls...@gmail.com Blog: magnus-k-karlsson.blogspot.com

Re: Protection against CSRF (Cross-Site Request Forgery) attacks in Apache Wicket 6

2013-05-28 Thread Magnus K Karlsson
session. Is this correct? if yes, is there any way to accomplish this? 2013/5/28 Martin Grigorov mgrigo...@apache.org Hi, On Tue, May 28, 2013 at 10:32 AM, Magnus K Karlsson magnus.r.karls...@gmail.com wrote: Hi, I'm looking for protection against CSRF and found and old issue for Apache

Re: Protection against CSRF (Cross-Site Request Forgery) attacks in Apache Wicket 6

2013-05-28 Thread Magnus K Karlsson
* attacks. * * Note that the use of this crypt factory will result in an immediate creation of a http session * * @author igor.vaynberg */ public class KeyInSessionSunJceCryptFactory implements ICryptFactory Now I just need to figure out how to configure it. 2013/5/28 Magnus K Karlsson

Re: Protection against CSRF (Cross-Site Request Forgery) attacks in Apache Wicket 6

2013-05-28 Thread Magnus K Karlsson
/5/28 Magnus K Karlsson magnus.r.karls...@gmail.com i might have solved the problem the default ICryptFactory is /** * Default crypt factory. This factory will instantiate a {@link SunJceCrypt} once and cache it for * all further invocations of {@link #newCrypt()}. * * @author Igor

Is it possible to add a static prefix to the generated URL from CryptoMapper?

2013-05-28 Thread Magnus K Karlsson
page parameters, but not 'user', e.g. http://localhost:8080/example-wicket/user/o9SSJ_GJqmO_wPa3pBY9hhdoDOXrAjrVc8kgLXVijrc6zKG3_zokAWSik-hyrZBXM4h5Qc2JOn0WfAGPQo8eYA/o9Sc8/Jqme5/9SS98 -- Best Regards Magnus K Karlsson Mobile: +46 (0)70 218 00 84 Email: magnus.r.karls...@gmail.com Blog: magnus-k

<    1   2