Re: testing autocomplete with WicketTester

2010-01-14 Thread Douglas Ferguson
Anybody? On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote: > I am assuming that since it is actually a text field that I could just "get" > the component and cast it to a TextField then set the model object. > > However, I'm not sure that we fire the appropriate events to make the > autoco

Re: wicket security future - contribute!

2010-01-14 Thread Emond Papegaaij
On Thursday 14 January 2010 00:12:41 Alexander Elsholz wrote: > in my last wicket projects i used wicket-auth roles and swarm/wasp. i think > swarm/wasp is a really good base for larger web-applications. but we all > know about the problem with swarm/wasp. i developed a few extensions for > swarm

Wicket Wizards and Hibernate

2010-01-14 Thread Rodolfo Cartas
Hi! I'm currently working on a wizard to modify a pojo extracted from a database with Hibernate. I don't want to commit any changes to the db before the user finishes the wizard, but the pojo loses reference to the original session. Shall I eagerly fetch the object to avoid any hibernate se

Re: clearing a TextField

2010-01-14 Thread Stijn Maller
This is how it's supposed to work. ClearInput will only clear the user input, not the model. I think it will all become clear once you have written you first form that updates an existing modelobject with validation on the new inputvalues, but that's clearly not required for your use case here. 2

Re: Wicket Wizards and Hibernate

2010-01-14 Thread Steve Swinsburg
Hi, Once you have the object built up, you could reattach it to the session with saveOrUpdate() which will figure out if it needs to insert or update. This assumes you are using the Spring Hibernate wrapper templates. cheers, Steve On 14/01/2010, at 9:47 PM, Rodolfo Cartas wrote: > Hi! I'm c

Re: Authentication and bookmarkable pages

2010-01-14 Thread kirillkh
Hi, Cemal, Whoa, I completely missed that one, thanks! -Kirill On Thu, Jan 14, 2010 at 2:45 AM, Cemal Bayramoglu < jweekend_for...@cabouge.com> wrote: > Kirill, > > You should probably be not authorising component instantiation (Page > is a Component) instead, in your > IAuthorizationStrategy#i

Re: A problem with ListView in a StatelessForm

2010-01-14 Thread kirillkh
Thanks, I'll be checking that out. On Thu, Jan 14, 2010 at 2:52 AM, Cemal Bayramoglu < jweekend_for...@cabouge.com> wrote: > Kirill, > > You may get some useful ideas at http://wicketinaction.com/tag/listeditor/ . > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Devel

wicket session vs tomcat session

2010-01-14 Thread Vadim Tesis
hi, i'm trying to customize Tomcat 6 configuration and i came accross Manager element in server.xml. it allows one to configure where to store sessions (memory, disk, ...), for how long to keep the session before discarding it, ... so i was wondering how (if at all) wicket (1.4.5) session

Re: display busy indicator while external image is fetched

2010-01-14 Thread Martijn Dashorst
http://example.com/images/someimage.jpg"; style="background-image:url('style/spinner.gif');" /> Assuming the local machine is faster than the external server, the spinner should be visible while the external image loads. Martijn On Wed, Jan 13, 2010 at 8:10 PM, Christoph Grün wrote: > Hi, > > >

Re: display busy indicator while external image is fetched

2010-01-14 Thread Pedro Santos
Nice! I'm planing to show an busy indicator too, and the idea I had so far was: image = new Image(); code for show some busy indicator; image.onload = function(){ code for stop the busy indicator} image.src = 'path'; now I change my mind. On Thu, Jan 14, 2010 at 10:48 AM, Martijn Dashorst < mart

SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
Hello, .. AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() { protected void respond(AjaxRequestTarget target) { target.addComponent(orasListPanel); } public void renderHead(IHeaderResponse response) { super.

final in MarkupContainer#add(Component...) method

2010-01-14 Thread Ilya German
Hello! We're struggling with working around the final modifier for the MarkupContainer#add(Component ...) method. We have the following scenario: 1. We'd like to use a repeater to add some components to the form. 2. We'd like these components to work with CompoundPropertyModel, thus we need thes

Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Pedro Santos
You can take a look at AjaxFormComponentUpdatingBehavior, this behavior will keep the 'judet' field model data updated. About the generated id, this is the default behavior, you can override the onBind method to avoid id. But later you will can not add the component to an AjaxRequestTarget, so see

SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
Hello, .. AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() { protected void respond(AjaxRequestTarget target) { target.addComponent(orasListPanel); } public void renderHead(IHeaderResponse response) { super.

Re: testing autocomplete with WicketTester

2010-01-14 Thread Paul Szulc
I think you can explicitly tell in your tests to fire given java script event, but after that your page flow will be broken (bug in the wicket tester). On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson < doug...@douglasferguson.us> wrote: > Anybody? > > On Jan 11, 2010, at 10:24 AM, Douglas Fergu

Re: final in MarkupContainer#add(Component...) method

2010-01-14 Thread Pedro Santos
>>This brings us to a suggested "wrapping" of the children in WebMarkupContainers This is not the only option you have, you can use lenient form components like: public class LenientTextField extends TextField { @Override protected void onComponentTag(final ComponentTag tag) { tag.setName("input");

How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Johan Vogelzang
Hi all, I am trying out the AjaxFallbackDefaultDataTable, but have trouble when I want to make a cell work as a link. With the code below the table displays the word [cell] in all the cells of the first column (Name). When I click on the cell, the correct response page is opened. I tried to add a

Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
I changed the code to AjaxFormComponentUpdatingBehavior but it seems the js generated by this behavior getCallbackScript() is the same with AbstractDefaultAjaxBehavior and I have same results if I call that script from my flash component. .. function load_orase(){ var wcall=wicketAjaxGet('?wicke

Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Ernesto Reinaldo Barreiro
You could create a panel containing the link and the label and add that panel as the cell e.g. something like [text goes here] Regards, Ernesto On Thu, Jan 14, 2010 at 2:38 PM, Johan Vogelzang wrote: > Hi all, > > I am

Re: wicket session vs tomcat session

2010-01-14 Thread nino martinez wael
If your http session times out, you will loose all data attached to that including the wicket session. 2010/1/14 Vadim Tesis : > > hi, > > > > i'm trying to customize Tomcat 6 configuration and i came accross Manager > element in server.xml. it allows one to configure where to store sessions > (

Re: Serious problem with swapping two items in a list (GAEJ/ JDO)

2010-01-14 Thread nino martinez wael
I don't see why the ajaxdefaultfallback table won't work.. Just add up / down arrows.. Just remember it will be persisted when you click up or down. Even using a detachable model should work. I had something similar where you could click an edit or delete button, it just requires that the backing

Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Johan Vogelzang
Thanks Ernesto, but i don't get it ... The only markup the AjaxFallbackDefaultDataTable needs is: .. [table] .. So I don't know how to apply your solution. Regards, Johan. 2010/1/14 Ernesto Reinaldo Barreiro > You could create a panel containing the link and the label and add that > panel as th

Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
I found how I should do in place of getCallbackScript() I should call getEventHandler() in the renderHead method but with AjaxFormComponentUpdatingBehavior > > . > it works like charm. Thank you pedro. On Thu, Jan 14, 2010 at 3:25 PM, Pedro Santos wrote: > You can take a look at AjaxFormCom

PageLink deprecated

2010-01-14 Thread Emond Papegaaij
Hi, We just found that PageLink has been deprecated in wicket 1.4. Can someone explain why? I see no reason why PageLink should not be used. PageLink is the base for SecurePageLink (in wicket-security), which uses getPageIdentity for its security check. Using Link is not an option because it do

Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread nino martinez wael
You still create the panel and add that to the AjaxFallbackDefaultDataTable . List subscriptions = Arrays.asList(PromoType.values()); selectionsList.setObject(subscriptions); List columns = new ArrayList(); columns.add(new PropertyC

Re: wicket security future - contribute!

2010-01-14 Thread Les Hazlewood
Just a quick note to those interested - the Shiro dev team is trying very hard to get a 1.0 final release out hopefully before the end of this month. Best, Les (Apache Shiro team) On Thu, Jan 14, 2010 at 2:14 AM, Adrian Wiesmann wrote: > Hi Alex > >> i think we will not find one person who deve

Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Ernesto Reinaldo Barreiro
import org.apache.wicket.AttributeModifier; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxFallbackLink; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.model.IModel; publi

Re: AbstractDefaultAjaxBehavior using onComponentRendered rendered many times

2010-01-14 Thread Pedro Santos
Hi Esteban, the wicket javascript will update your component html by the on retrieved by your component that has the script tag attached. So you get the problem describe. If you want to keep sending the java script by script tag, you can implement your onComponentRendered method like: if (AjaxRequ

automatically delete|clean disk|file|page|store on server crash|restart

2010-01-14 Thread manuelbarzi
how can old pagestore files be automatically deleted when server restarts? in a crash, for example, in which old sessions left their pagestore files on disk

Re: filter options in available side of palette w/o losing selected options

2010-01-14 Thread wic...@geofflancaster.com
Does anyone have any ides what it could be causing this? Original Message: - From: wic...@geofflancaster.com wic...@geofflancaster.com Date: Wed, 13 Jan 2010 16:55:49 -0500 To: users@wicket.apache.org Subject: Re: filter options in available side of palette w/o losing selected opti

Re: Tree table with check box

2010-01-14 Thread prati
Hi, I am also stuck in similar problem.If you can share your code snippets of how u did that will be of great help. Thanks Pratibha vela wrote: > > Hello again, > > The links and nodes are added in the TreeFragment class. But the > TreeFragment is a private inner class in Treetable, could yo

Re: Tree table with check box

2010-01-14 Thread Major Péter
Hi, check out wicket-tree (http://code.google.com/p/wicket-tree/) and see the example app, I think it will solve your problem. Regards, Peter prati írta: Hi, I am also stuck in similar problem.If you can share your code snippets of how u did that will be of great help. Thanks Pratibha ve

LegUp updated for latest version of Wicket, and other frameworks

2010-01-14 Thread Richard Wilkinson
We have updated LegUp [1] so you can now create projects using the latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0), Warp, Hibernate... LegUp is a collection of Maven archetypes to help you get quickly and easily started with your enterprise projects. Wicket 1.4.5, Guice 2.0 Wicke

Re: wicket session vs tomcat session

2010-01-14 Thread kirillkh
Hi Vadim, I'm exactly trying this feature, and I have a similar situation (user object in session). Upon restore, the user object is restored as expected, if the user is logged in, he is still logged in, etc. But the stateful pages aren't restored, so you can't just refresh a page and expect it to

Re: testing autocomplete with WicketTester

2010-01-14 Thread jgasyna
Would the use of the enhanced wicket tester perhaps solve this problem? Dzieki Paul Szulc wrote: > > I think you can explicitly tell in your tests to fire given java script > event, but after that your page flow will be broken (bug in the wicket > tester). > > On Thu, Jan 14, 2010 at 9:51 AM,

Re: wicket security future - contribute!

2010-01-14 Thread Vojtěch Krása
Hi, have someone tried to integrate wicket + shiro + guice? some example would be great. Thanks, V. 2010/1/14 Les Hazlewood > Just a quick note to those interested - the Shiro dev team is trying > very hard to get a 1.0 final release out hopefully before the end of > this month. > > Best, > >

Re: testing autocomplete with WicketTester

2010-01-14 Thread Paul Szulc
Currently not, but maybe implementing it in EnhancedWicketTester is worse idea then simply making finally WicketTester first class citizen in the Wicket project. So that testing even most complex Ajax websites would be possible and easy. On Thu, Jan 14, 2010 at 8:54 PM, jgasyna wrote: > > Would

Re: testing autocomplete with WicketTester

2010-01-14 Thread Kent Tong
Douglas Ferguson-2 wrote: > > What is the recommended way to test autocomplete using wicket tester? > Have you tried http://wicketpagetest.sourceforge.net which supports testing true Ajax. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on

Re: PageLink deprecated

2010-01-14 Thread Igor Vaynberg
what does the javadoc say? -igor On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij wrote: > Hi, > > We just found that PageLink has been deprecated in wicket 1.4. Can someone > explain why? I see no reason why PageLink should not be used. PageLink is the > base for SecurePageLink (in wicket-secur

Re: LegUp updated for latest version of Wicket, and other frameworks

2010-01-14 Thread Jeremy Thomerson
This looks really great guys! I just created a project with it and looked through it and it will be a great "leg up" for anyone needing to start a project and needing help wiring all the pieces together. Thanks!! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jan 14, 2010 at 11:03

Re: PageLink deprecated

2010-01-14 Thread Emond Papegaaij
The javadoc says I should use Link or BookmarkablePageLink, which, as I explained, are both not an option. Emond On Friday 15 January 2010 05:08:42 Igor Vaynberg wrote: > what does the javadoc say? > > -igor > > On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij > > wrote: > > Hi, > > > > We j

Re: Wicket Wizards and Hibernate

2010-01-14 Thread Martin Sachs
hi, if you want to store the Objects at the end of the wizzard, you have to reattach to the session with lock(NONE), else Entitymanager.merge will save each step. Alternativly you can open one transaction and merge (or saveOrUpdate) after every step. On last step you can commit the transaction. I