wicket and javascript

2010-02-15 Thread bj�rn liffers
hello, i tried to generate a.js-file, but i wasn´t able to generate it in the folder where i wanted it to be. so i decided to generate it from a StringModel but it still didn´t work. i have several scripts that are implemented via resource... like this one:

Re: modal in a modal problem

2010-02-15 Thread Jens Alenius
Martin Asenov skrev: Does anyone know? Please, people, I'm getting despaired of this... -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, February 12, 2010 10:23 AM To: users@wicket.apache.org Subject: RE: modal in a modal problem I forgot to mention

RE: setPageExpiredErrorPage only for certain pages?

2010-02-15 Thread Andreas Lüdtke
Martijn, the page I'm talking about is already bookmarked but the problem arises when the user submits new data to that page and the list on that page should be updated. Andreas -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Sunday, February 14,

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
now problem is not accessing object fields.. problem is transform resultset to these objects.. You could just work with Maps in Wicket instead of Domain Objects. The transformation from ResultSet to a Map containing the Column name as Key and the data as Value should be trivial (if not; reply

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
use any preferred OR mapper like hibernate, toplink, now problem is not accessing object fields.. problem is transform resultset to these objects.. 2010/2/12 James Carman jcar...@carmanconsulting.com: You could create a reference from Honey to Milk, since you have a milkid field

Re: jdbc

2010-02-15 Thread Ivan Dudko
Can you give me an example, how i can use ResultSet transformed into Map with for example datatable component? I think i can write method transforming ResultSet to a Map. I do not want to use any ORM, because web tier for my app is just control panel and main features implemented in the backend.

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
Can you give me an example, how i can use ResultSet transformed into Map with for example datatable component? I think i can write method transforming ResultSet to a Map. I do not want to use any ORM, because web tier for my app is just control panel and main features implemented in the

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
If you want to use a Map and display it in a Datatable there's no difference from using an Object in Wicket. You access the key/values using PropertyColumn as usual (i.e. you don't really need to make any changes to your code). For Objects you use e. g. name for the getName() method. When

PanelCachingTab

2010-02-15 Thread Leszek Gawron
hello, is there any reason why PanelCachingTab.isVisible() does not delegate to inner tab ?. This results in such spaghetti code: tabs.add( new PanelCachingTab( new AbstractTab( new ResourceModel( configuration ) ) { @Override

Re: Re: jdbc

2010-02-15 Thread Ivan Dudko
Thank you! I just discovered this sample: http://www.brettdutton.com/blog/?p=4 What i can do.. if i want to use FilterToolbar with DataTable? 2010/2/15 leo.erlands...@tyringe.com: If you want to use a Map and display it in a Datatable there's no difference from using an Object in Wicket.

Re: jdbc

2010-02-15 Thread James Carman
Sorry, man. Some things just have to be left as an exercise for the reader. That's not a Wicket question. On Mon, Feb 15, 2010 at 6:14 AM, Ivan Dudko ivan.du...@gmail.com wrote: now problem is not accessing object fields.. problem is transform resultset to these objects.. 2010/2/12 James

Re: Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
Should be no different when using JDBC than using it when using Domain Objects. Check out Wicket Phonebook Example that uses FilterToolbar: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook Source Code Example:

How to add Images in wicket Navigator instead of ?

2010-02-15 Thread saravana kumar
How to add Images in wicket Navigator instead of? -- Thanks Regards, SaravanaKumar G.

Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread Leo . Erlandsson
How to add Images in wicket Navigator instead of? One way, I'm sure there are others: Write your own MyPagingNavigator that extends PagingNavigator or AjaxPagingNavigator. Provide your own markup. Override protected PagingNavigator newPagingNavigator(String navigatorId, final DataTable?

Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread shavang
thank u for your reply.I didn't understand. please send code or link. Leo Erlandsson wrote: How to add Images in wicket Navigator instead of? One way, I'm sure there are others: Write your own MyPagingNavigator that extends PagingNavigator or AjaxPagingNavigator. Provide your own

NullPointerException in ResourceReference.bind (Line141)

2010-02-15 Thread Andreas Strafner
Hello everyone, in our application (with wicket 1.4.5) we 're using a static ResourceReferences and pass it into several Wicket Images (setImageResourceReference) that are displayed in multiple rows of several DataViews. At the first glanze everything works fine, but during performancetests

Re: problem dynamic image - explorer

2010-02-15 Thread pechenique
Hi, (Monday, back to work :) ) The DynamicImageResource im using has by default 'contentType = image/ + format;' where format is 'png'.. So, i think there is no need to set again the content type, or you mean set the content type in other place? Could be a problem in explorer that doesn't

wicket Google maps integration

2010-02-15 Thread Josh Kamau
Hi guys; Is the wicket-contrib-gmap project still active? I need to intergrate google maps and i was wondering if i can use it. Regards Joshua

Re: Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread Leo . Erlandsson
thank u for your reply.I didn't understand. please send code or link. Unfortunately I can't include code from our project. However, if you search this mailing list you'll find several examples and other solutions to your problem:

Re: wicket Google maps integration

2010-02-15 Thread Erik van Oosten
Hi Joshue, I believe wicket-contrib-gmap is not active anymore. You are probably better off with wicket-gmap2 project. Regards, Erik. Josh Kamau wrote: Hi guys; Is the wicket-contrib-gmap project still active? I need to intergrate google maps and i was wondering if i can use it.

Re: wicket Google maps integration

2010-02-15 Thread Josh Kamau
Thanks alot Erik. Is the library in maven repository? regards On Mon, Feb 15, 2010 at 5:03 PM, Erik van Oosten e.vanoos...@grons.nlwrote: Hi Joshue, I believe wicket-contrib-gmap is not active anymore. You are probably better off with wicket-gmap2 project. Regards, Erik. Josh Kamau

How to ajax update a component without triggered ajaxrequesttarget

2010-02-15 Thread Martin Asenov
Hello guys! How can I update a component without having AjaxRequestTarget triggered from a button or a link? I tried this: myComponent.renderComponent(); new AjaxRequestTarget(getPage()).addComponent(myComponent) myComponent has output markup id set to true both didn't work for me... Thanks

Re: How to ajax update a component without triggered ajaxrequesttarget

2010-02-15 Thread Ernesto Reinaldo Barreiro
Can you explain a bit more what you want to achieve? Or your use case? Ernesto On Mon, Feb 15, 2010 at 4:38 PM, Martin Asenov mase...@velti.com wrote: Hello guys! How can I update a component without having AjaxRequestTarget triggered from a button or a link? I tried this:

RE: How to ajax update a component without triggered ajaxrequesttarget

2010-02-15 Thread Martin Asenov
Hello, Ernesto! The use case is that I have modal in a modal. The first modal displays some information and the second modal is a confirmation dialog that asks the user if he really wants to remove the entry. when I say in the conf dialog under the 'yes' button;

Re: wicket and javascript

2010-02-15 Thread Igor Vaynberg
allow your component to implement IHeaderContributor and output both your base js and string js from the renderhread() method -igor 2010/2/15 björn liffers bad.ad...@arcor.de: hello, i tried to generate a.js-file, but i wasn´t able to generate it in the folder where i wanted it to be. so i

Re: PanelCachingTab

2010-02-15 Thread Igor Vaynberg
open an rfe in jira -igor 2010/2/15 Leszek Gawron lgaw...@apache.org: hello, is there any reason why PanelCachingTab.isVisible() does not delegate to inner tab ?. This results in such spaghetti code:                tabs.add( new PanelCachingTab( new AbstractTab( new ResourceModel(

Re: best way to detect session termination

2010-02-15 Thread Eelco Hillenius
You could use a HttpSessionBindingListener like Wicket does internally (see AbstractHttpSessionStore). Or as a hack store references to the session objects in the session listener. That's the easy fix, but doesn't scale if you need session replication (unless maybe you use e.g. Terracotta). Eelco

Re: wicket Google maps integration

2010-02-15 Thread TahitianGabriel
You can get the source code here : https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent And use it in your pom.xml like that : dependency

RE: quickstart POM has wrong artifactId for jetty maven plugin

2010-02-15 Thread TahitianGabriel
Had the same behavior when lauching maven in command line (OK within eclipse). Just add the jetty plugin with the version you want in your pom.xml : plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.1.4/version /plugin -- View

Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread Peter Karich
For code see the resources here (the example with db4o): http://karussell.wordpress.com/2010/01/18/crud-with-wicket-guice-db4o-neodatis/ Peter. -- Free your timetabling! http://timefinder.sourceforge.net/ - To unsubscribe,

Image that loads from a database, and use a default when no data exists

2010-02-15 Thread Esteban Masoero
Hi there: I know how to instanciate an image component that loads the image from a database, and I know how to make an image component that loads an image from a static resource. Can I make a single image component that upon some condition, uses the database and upon another uses the static

Quick fix for the dreaded org.hibernate.LazyInitializationException with WicketTester

2010-02-15 Thread Leon Nieuwoudt
Hi all, After about 5 minutes of omfg not that error again, I think I found a quick hack to avoid org.hibernate.LazyInitializationException with WicketTester. I've checked everywhere on the lists but didn't find a similar solution, so apologies if someone else already posted this. There may also

Re: NullPointerException in ResourceReference.bind (Line141)

2010-02-15 Thread Igor Vaynberg
it is peculiar that no one else has seen such an error... if you can provide us with a way to reproduce this we would be happy to look into it. -igor On Mon, Feb 15, 2010 at 5:19 AM, Andreas Strafner andreas.straf...@web.de wrote: Hello everyone, in our application (with wicket 1.4.5) we 're

Re: Image that loads from a database, and use a default when no data exists

2010-02-15 Thread Steve Swinsburg
Hi Esteban, Make a component which takes a parameter and performs the appropriate action for its logic, then displays the image. I do this is an app of mine, where the image comes from one of several sources. cheers, Steve On 16/02/2010, at 6:30 AM, Esteban Masoero wrote: Hi there: I

Selenium Testing - Ajax Loads

2010-02-15 Thread Douglas Ferguson
Hey, I'm starting to write selenium tests for my wicket app and am running into issues with a couple of wicket related problems that I thought perhaps somebody else may have solved. 1) Sometimes my repeaters don't print out consistent wicket paths, i.e. sometimes it may go

Re: Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread shavang
Hi, Thank u for your reply. Here with i sent my coding for Wicket navigator. please tell me where to add images in wicket navigator. navigator = new PagingNavigator(navigator, dataView); dataView.setItemsPerPage(5); navigator.setVisible(false);

Re: Help: Graphic link in PagingNavigator

2010-02-15 Thread shavang
Thank u for your reply.Can u please Send me Custom Navigator complete coding? Pills wrote: Overriding the protected method PagingNavigator#newPagingNavigationIncrementLink(String id, IPageable pageable, int increment) should do the trick, too. Dipu a écrit : extend the PagingNavigator

RE: setPageExpiredErrorPage only for certain pages?

2010-02-15 Thread Andreas Lüdtke
Peter, I implemented my own RequestCycle and that did the trick. Thanks Andreas -Original Message- From: Major Péter [mailto:majorpe...@sch.bme.hu] Sent: Sunday, February 14, 2010 2:00 PM To: users@wicket.apache.org Subject: Re: setPageExpiredErrorPage only for certain

Delegate a Modelchange to the child components. Or using a ModalWindow for displaying different Models of a specific Type.

2010-02-15 Thread Martin U
Its not easy to find the right topic, but i will try to explain my problem as best as i can. I want to display an user-detail View (User is an BusinessObject in my Application) inside a specific Modal window. So at the rendering of the Site i place an empty or dummy UserObject inside my

Re: Selenium Testing - Ajax Loads

2010-02-15 Thread Igor Vaynberg
On Mon, Feb 15, 2010 at 8:08 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Hey, I'm starting to write selenium tests for my wicket app and am running into issues with a couple of wicket related problems that I thought perhaps somebody else may have solved. 1) Sometimes my

Re: Selenium Testing - Ajax Loads

2010-02-15 Thread Douglas Ferguson
On Feb 16, 2010, at 12:34 AM, Igor Vaynberg wrote: On Mon, Feb 15, 2010 at 8:08 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Hey, I'm starting to write selenium tests for my wicket app and am running into issues with a couple of wicket related problems that I thought perhaps

Send me Complete Coding PagingNavigator with custom images instead of ?

2010-02-15 Thread saravana kumar
Can u Send me any one Complete Coding PagingNavigator with custom images instead of ? Like Navigator.html, Navigator.java, navigator.css This is my Navigator coding now: navigator = new PagingNavigator(navigator, dataView); dataView.setItemsPerPage(5);

Re: Selenium Testing - Ajax Loads

2010-02-15 Thread Igor Vaynberg
On Mon, Feb 15, 2010 at 11:14 PM, Douglas Ferguson doug...@douglasferguson.us wrote: On Feb 16, 2010, at 12:34 AM, Igor Vaynberg wrote: On Mon, Feb 15, 2010 at 8:08 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Hey, I'm starting to write selenium tests for my wicket app and am

Re: wicket Google maps integration

2010-02-15 Thread Josh Kamau
Team;; Whats wrong with this code? The map is being displayed properly and when i click on it, a new marker is added and the infoWindow is shown. when i click on the info window, i get the below error. package org.at.example; import org.apache.wicket.PageParameters; import