How to return specific HTTP result code on HTTP request

2009-12-04 Thread Petr Fejfar
Hi all, I'm not able to find-out how to respond on HTTP request (via mounted URL) by setting HTTP result code to specific value e.g. 402 (Payment required) etc... Pls, could somebody push me forward? Thx, pf - To unsubscribe,

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-04 Thread Petr Fejfar
On Mon, Oct 5, 2009 at 5:12 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I really don't want to bloat my code to implement Spring but if it is the only way to do it then I will. When I've started learning of Wicket few month ago, my position was the similiar: I'd like to avoid

What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Petr Fejfar
Hi all, I have an enum type e.g. public enum MapType UNDEFINED,ROADMAP,MOBILE,SATELITE,TERRAIN,HYBRID; public static String toKeyword(MapType mapType) { switch (mapType) { case ROADMAP: return roadmap; ... public static MapType

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Petr Fejfar
On Wed, Sep 30, 2009 at 4:40 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thank you for the prompt reply to all of you. for org.apache.wicket.resource.loader.PackageStringResourceLoader Currently I used iteration through getStringResourceLoaders(), later on I'd like to implement

How to run wicket-stuff phonebook example?

2009-09-28 Thread Petr Fejfar
Hi all, few months ago I've run wicket-stuff phonebook examples and it worked. No I'd like to study it again, hence I downloaded wicket-stuff from the trunk, run command mvn clean install with result BUILD SUCCESSFUL. But on command mvn jetty:run, I've got exception:

Re: How to run wicket-stuff phonebook example?

2009-09-28 Thread Petr Fejfar
On Mon, Sep 28, 2009 at 8:41 PM, Maarten Bosteels mbosteels@gmail.com wrote: Someone changed the version of commons-dbcp from 1.2.2 to 20030825.18442 (revision 4964) I have reverted that change, and the phonebook seems to work now. Yes, it works now. Thanks for your help, Petr

DataTable, ChoiceFilteredPropertyColumn, Choice renderer and values translated via M:1 association

2009-09-24 Thread Petr Fejfar
Hi all, please, could somebody push me forward how to implement ChoiceRenderer of ChoiceFilteredPropertyColumn? I seem to be lost among data providers and models little bit... I followed Wicket-stuff's phonebook example and I show list of persistent entities in the DataTable. I'd like to have a

Non-english UTF-8 characters in POSTed data

2009-09-16 Thread Petr Fejfar
Hi all, I'm probably facing the same problem as described here: http://mail-archives.apache.org/mod_mbox/wicket-users/200804.mbox/%3cdf3d7452-0ac0-4cf7-8164-87e9371d8...@signicat.com%3e I use Maven to build my applications, so I have a beginner's qustion: how to reorganize a project to work

Re: Non-english UTF-8 characters in POSTed data

2009-09-16 Thread Petr Fejfar
On Wed, Sep 16, 2009 at 1:35 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hmm.. can't you fix this with encoding settings?    getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); Or something? It seems it cannot. I have in my appliction's init() code:

Overloaded (?) ClientProperties.isJavaEnabled and JavaScript support detection

2009-09-15 Thread Petr Fejfar
Hi all, I use detection of JavaScript the way described e.g. here http://www.mkyong.com/wicket/how-do-detect-browser-javascript-or-ajax-disabled-in-wicket/ and it works OK providing that client has JRE installed on his/her machine. But if there is a machine without JRE, the browser (Firefox,

How to render part of component's markup and the very end of HTML document?

2009-09-03 Thread Petr Fejfar
Hi all, I'm trying to wrap some jQuery plugins as a wicket component but I met a problems with positions calculated by jQuery's script in some page layouts controlled by a mix of absolute and relative DIV's positions. Plugin's author recommends to render part of markup at the very end of markup

Ajax update of visibility component having attached JavaScript in run-time

2009-08-14 Thread Petr Fejfar
Hi all, I've created a component which needs to be initialized by JavaScript in run-time. To achieve it, I use script markup associated with Label which supplies required JS code. Now I need to update visibility of the component using Ajax. But after update this script (which is a part of Ajax

Re: Ajax update of visibility component having attached JavaScript in run-time

2009-08-14 Thread Petr Fejfar
see iheadercontributor, use that to output the necessary javascript rather then a label. OK. I'll try it. FYI, JS implementing a component is part of header already, but initilization call I put into script element just behind related markup within the body, as recommended by documentation of

Re: WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread Petr Fejfar
Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not found. Component class: integration.wicket.MyPage Do you have a MyPage.html with related markup in the same folder as your MyPage.java file? - To

Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-07 Thread Petr Fejfar
On Fri, Aug 7, 2009 at 8:03 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: You must add OnChangeAjaxBehavior onto the dropdown and NOT wantOnSelectionChangedNotifications(). I see... I fixed it following you recommendation. Thanks for prompt help. -- Anyway, I'm still fighting

Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-07 Thread Petr Fejfar
On Fri, Aug 7, 2009 at 8:39 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: hidden component not found.. naturally. So in order for  the hidden component to exist in the HTML DOM tree even if it is HIDDEN, you must set: ... still thinking like in Desktop world :'( Thanks for

Re: Firefox, be afraid be very afraid!!!

2009-08-06 Thread Petr Fejfar
On Wed, Aug 5, 2009 at 4:12 AM, Steve Tarltonstarl...@gmail.com wrote: I just spent the better half of a day WASTED because I use Firefox for testing my Wicket development. For the life of me, I couldn't figure out why Is there any resume? Today I met a similiar problem with Google Chrome

DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-06 Thread Petr Fejfar
Hi all, I have a DropDownChoice on a panel within ModalWindow and once I return true from wantOnSelectionChangedNotifications() method and its value is changed, a browser shows dialog asking for confirmation to continue: Reloading this page will cause the modal window to disappear Please,

Re: Thanks Wicket-Team!

2009-07-30 Thread Petr Fejfar
On Thu, Jul 30, 2009 at 9:31 AM, okrohneokro...@yahoo.de wrote: So customizing existing wicket ajax components or adding ajax to components was not so easy for me. Hi Oliver, please, could you share with us what ajaxified compontets you have finally used in your project? This stuff seems to

Is Accordion example at wicketstuff-core.jquery broken?

2009-07-27 Thread Petr Fejfar
Hi all, I run wicketstuff-core.jquery-examples (revision #4859 from Jul26, using mvn jetty:run) and it seems that accordion's example does not work in all tested browsers (Chrome,IE,FF,Opera): all items are shown as expanded and only observable activity is cursor change to pointer over title.

Re: Looking for Pop-up menu...

2009-07-24 Thread Petr Fejfar
On Fri, Jul 24, 2009 at 4:25 AM, Joshua Limlim.j...@gmail.com wrote: I Think menu2 can do what you want as Ryan said. You can override the getCssClass() to return your own class name, because the default is yui-skin-sam which will span the width of yui-menu to the whole of the containing box.

Re: Looking for Pop-up menu...

2009-07-23 Thread Petr Fejfar
On Thu, Jul 23, 2009 at 2:01 AM, Ryan McKinleyryan...@gmail.com wrote: why not just a YUI menu?  (not a context menu) Do you mean to use menu (not menu2) with permanently visible single menubar's item and pull down associated menu on click and resign on mouse over functinality?

How to customize/override .CSS of 3rd party component

2009-07-23 Thread Petr Fejfar
Hi all, I do not know, how to override/customize CSS styles of 3rd party component, in this case YUI menu. It seems to me they are loaded from packaged resource with URL resources/org.wicketstuff.yui.inc.YUI/2.7.0b/menu/assets/menu.css, which is embedded in yui.jar. I tried to make a local copy

Re: How to customize/override .CSS of 3rd party component

2009-07-23 Thread Petr Fejfar
On Thu, Jul 23, 2009 at 11:45 AM, Mathias Nilssonwicket.program...@gmail.com wrote: You could extends the component, create own markup and css. Really: there is the getCssClass() method supplying class name of style... Thanks for prompt reply. You can also just look at the css and then in

Re: How to customize/override .CSS of 3rd party component

2009-07-23 Thread Petr Fejfar
On Thu, Jul 23, 2009 at 12:26 PM, Mathias Nilssonwicket.program...@gmail.com wrote: I don't exactly know which component you are trying to implement but what about. add( new YUIMenu( id ){   @Override   protected void onBeforeRender() {     super.onBeforeRender();    // Add css reference

Re: How to customize/override .CSS of 3rd party component

2009-07-23 Thread Petr Fejfar
You might want to google for YUI skins and take a look at YuiHeaderContributor OK. Thanks for hint - I'll probably use YuiHeader Contributor. Petr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

How to keep selection of TabbedPanel

2009-07-22 Thread Petr Fejfar
Hi all, I have nested tabbed panels and I'd like save/restore currect selected tab on each nested page when e.g. switching parent tab. What is a recommended way to achieve this? Thanks, Petr - To unsubscribe, e-mail:

Looking for Pop-up menu...

2009-07-22 Thread Petr Fejfar
Hi all, I went through lot of Javascript integrating components to find out pop-up menu similiar to YUI context menu except a menu could be poped-up by left mouse click, mouse hover etc... But I did not find any. Is somewhere such component? Thanks, Petr

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-17 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 11:43 PM, Petr Fejfarpetr.fej...@gmail.com wrote: tries to be compatible with. Please find out attached table - maybe it could be usefull for someone else as well. Errata: in the Menu test on Google Chrome, there should be (it seems the value does *not* toggle) Petr

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
I've made some changes on the trunk to allow AjaxLinkAction, and remove the setRenderBodyOnly so that you can basically modify the menu 'ajaxically'. [...] check out the yui-examples Hi Joshua, thank for your effort. I tried your improvements, but it stil does not work for me. It is possible

Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 4:25 PM, Joshua Limlim.j...@gmail.com wrote: Did you check out yui as well? This marks disappears should be redrawn in the new code. Yes. I tested it on revision 4808 from July 15. What browser are you using though I 've only tested on FF. I see. While learning

How to show ModalWindow in menuě onClick event?

2009-07-13 Thread Petr Fejfar
Hi all, originally I had a row of AjaxLinks and on some clicks I opened a modal window by calling: dialog.show(target); Later, I've changed AjaxLinks to menuBar based on YUI menu2, but I do know how to show the modal window because of my onClick handler does not have an argument of

Re: How to show ModalWindow in menuě onClick event?

2009-07-13 Thread Petr Fejfar
On Mon, Jul 13, 2009 at 12:05 PM, sander v Fsandervanfaas...@gmail.com wrote: I don't know YUI menu2, but if it is an AjaxClick, you could use AjaxRequestTarget.get() to get the current AjaxRequestTarget. It is easy, as I've found finally: Originally, I followed examples and implement just

How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-13 Thread Petr Fejfar
Hi all, I'm still trying to build menubar based on YUI menu2 from wicketstuff and still have a problems: currently I'd like to hide/show ev. to enable/disable some menu items (YuiMenuBarItem) in dependence of actions taken by commands related to this menu bar. If I tried to add those menu items

Re: How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-12 Thread Petr Fejfar
On Sun, Jul 12, 2009 at 6:52 AM, James Carmanjcar...@carmanconsulting.com wrote: I thought someone said this was fixed in the latest version of the code.  Are you using the trunk version of YUI menu2?  I had the same issues as you. Yes, I downloaded wicketstuff from trunk. My revision is

Re: How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-11 Thread Petr Fejfar
  - Finally, if I run the QuickStart application the menu bar is shown, but there is no dynamic behaveour, there ar no pull down menus etc... and I'm not able to find-out what I'm missing in my QucikStart project to use this menu2 bar. I'll reply myself: as I found-out here

How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-10 Thread Petr Fejfar
Hi all, I have another beginner's problem... - I've imported project yui and and yui-expamles from wicketstuff info Eclipse IDE and examples work fine. - I've created a QuickStart project using maven anc command generated by Wicket's site and imported it into Eclipse IDE - I'd like to add

Re: How to configure data source for Jetty server?

2009-07-07 Thread Petr Fejfar
A couple of tips to do the Jetty DataSource JNDI configuration the 'wicket way' - in code, instead of xml. Hi Peter, thanks for your help. I like your solution without those .xml files everywere around... I completed dependencies into my POM and some additional BasicDataSource() settings into

Re: How to configure data source for Jetty server?

2009-07-07 Thread Petr Fejfar
On Mon, Jul 6, 2009 at 10:38 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: http://docs.codehaus.org/display/JETTY/JNDI Hi Igor, thanks for you prompt reply, but I was not able to utilize it (I had a glance at some Jetty docs before asking my question), because I don't know, how is Jetty

How to configure data source for Jetty server?

2009-07-06 Thread Petr Fejfar
Hi all, When I've started learning Wicket, I followed configuration described in the book Enjoy web dev ... Now I'm trying to migrate my project under Maven's management. I seem to be almost finished except data source configuration in the Tomcat's context file: Resource

Re: Help with design of application layout

2009-06-23 Thread Petr Fejfar
On Mon, Jun 22, 2009 at 3:52 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: if i were you i would create something like this: class zonepage extends webpage {  private final repatingview zones; [...]   public zonepage() {        add(zones=new repeatingview(zones));   } Hi Igor, thanks

Re: Help with design of application layout

2009-06-22 Thread Petr Fejfar
On Mon, Jun 22, 2009 at 7:21 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: i think you will get more help if you present a concrete usecase. Thanks for your reply. Ok, I'd like to design something like this: layer[0] - zone.a (a banner, sometimes visible, sometimes not). - zone.b

Help with design of application layout

2009-06-21 Thread Petr Fejfar
Hi everybody, I am new in Wicket: I choose it as the most promissing Java web framework today when looking for framework we could use instead of Django and dynamically typed Python. I read books Enjoy Web Dev and Wicket in Action, but I am still not able to move forward with design of