Why isn't the bookmarkable url kept when appending ?wicket:interface=:n:myPage::ILinkListener:: etc?

2008-07-22 Thread Edvin Syse
When using a bookmarkable page and altering the state of the page so that the url is rewritten to ?wicket:interface=:n:myPage::ILinkListener:: etc, why is the basepath / instead of the bookmarkable page's path? If someone bookmarks a stateful page, they will be redirected to the homepage if

Re: @SpringBean vs @Configurable

2008-07-22 Thread Rik van der Kleij
Is it right that also userspage is also not serializable because userservice is not serializable (not a proxy)? Regards, Rik 2008/7/21 Igor Vaynberg [EMAIL PROTECTED]: class usersdataprovider implements dataprovider { final userservice svc; public int size() { return svc.size(); } }

Re: @SpringBean vs @Configurable

2008-07-22 Thread Igor Vaynberg
no. @configurable overides serialization and null sout the reference. @springbean injects a proxy that is serializable. -igor On Tue, Jul 22, 2008 at 12:05 AM, Rik van der Kleij [EMAIL PROTECTED] wrote: Is it right that also userspage is also not serializable because userservice is not

Load Testing - Script Playback Error

2008-07-22 Thread RUMikeP
Hi I am struggling to understand why I get the following error message when replaying the LoadRunner script below. Basically, to make absolutely sure I am on the correct page I have clicked a menu option twice to ensure that I am on the Update Customer Page, then click on an Editable Grid to

Re: Why isn't the bookmarkable url kept when appending ?wicket:interface=:n:myPage::ILinkListener:: etc?

2008-07-22 Thread Martijn Dashorst
use HybridUrlEncodingStrategy to mount the page. Martijn On Tue, Jul 22, 2008 at 8:46 AM, Edvin Syse [EMAIL PROTECTED] wrote: When using a bookmarkable page and altering the state of the page so that the url is rewritten to ?wicket:interface=:n:myPage::ILinkListener:: etc, why is the basepath

Re: Why isn't the bookmarkable url kept when appending ?wicket:interface=:n:myPage::ILinkListener:: etc?

2008-07-22 Thread Edvin Syse
The client can't live with the url's created by HybridUrlEncodingStrategy. They are dead set on that arguments in the url should be appended with ?, not dot. Conventionally, dots does not denote arguments, and I must agree that he has a point. I think everyone would agree that keeping the

Re: why are we coding Web apps?

2008-07-22 Thread Thomas Mäder
Easy Answer: MS Word! Quid licet iovi non licet bovi as the romans said.In english: if it's ok for Microsoft it's still not ok for you! Thomas snip Then the question is, why do they need those 7000 Windows 2000 Desktops? Wouldn't they be better served by 7000 X server workstations and

Re: passing objects between pages

2008-07-22 Thread Thomas Mäder
I have three rules for directly referencing objects from pages 1) It's serializable 2) The valueis not going to change from the time I construct the page to when I use the object 3) It doesn't matter if I get a copy of the object (because of deserialization). 2 3 can be summarized as the object

markupId of formcomponent nested inside a FormComponentPanel

2008-07-22 Thread Maarten Bosteels
Hello, How can I add a SimpleFormComponentLabel for an org.apache.wicket.extensions.yui.calendar.DateField ? The problem is that the SimpleFormComponentLabel uses the markupid of the DateField itself instead of the markupid of the nested DateTextField. This code DateField departure = new

UrlCodingStrategy and overriding the decodeParamaters()

2008-07-22 Thread w_user
hallo, How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception java.lang.IllegalStateException: URL fragment has unmatched key/value pair please help! -- View this message in context:

Re: markupId of formcomponent nested inside a FormComponentPanel

2008-07-22 Thread Maarten Bosteels
Hello again, Actually I have created a behavior that automatically add labels and validation messages for all my formComponents: @Override public void beforeRender(Component component) { FormComponent formComponent = (FormComponent)component; if (formComponent.getLabel() == null) {

Re: DataTable + CheckGroup with CheckGroupSelector

2008-07-22 Thread nanotech
Hi All, Looking for some pointers. Anyone? nanotech wrote: Hi, I am trying to add a column of checkboxes in data table with CheckGroup Selector. Html looks like this wicket:panel form wicket:id=form input type=checkbox

Separated HTML files

2008-07-22 Thread Piotr Janik
Hi everyone, I would like to use Wicket in cms system. I wonder, is it possible to place *html files somewhere else than war package, so every user could edit html files whenever he wants? I would like to use html files as templates. Do you know what I mean? Sorry for my english. Best regards,

Re: Why isn't the bookmarkable url kept when appending ?wicket:interface=:n:myPage::ILinkListener:: etc?

2008-07-22 Thread Erik van Oosten
Perhaps my non versioned HybridUrlEncoding strategy is something for you: http://www.nabble.com/More-on-wicket-url-stratergy-td18212748.html#a18273996 Regards, Erik. Edvin Syse wrote: The client can't live with the url's created by HybridUrlEncodingStrategy. They are dead set on that

Re: Separated HTML files

2008-07-22 Thread Brill Pappin
There are a few examples of doing this in the docs/wiki. But the answer is generally yes, you could put them anywhere you like. - Brill Pappin On 22-Jul-08, at 9:16 AM, Piotr Janik wrote: Hi everyone, I would like to use Wicket in cms system. I wonder, is it possible to place *html files

Re: Localized error()

2008-07-22 Thread liny
What if I want to pass parameter to message? For example, You must pay more {0} dollars. I want to set {0} with a parameter. How can I do? Thanks! Gerolf Seitz wrote: myComponent.error(getString(my.localized.key)); Gerolf -- View this message in context:

Re: DataTable + CheckGroup with CheckGroupSelector

2008-07-22 Thread Igor Vaynberg
there is a checkgroup inside datatable example in wicket-stuff phonebook -igor On Tue, Jul 22, 2008 at 3:37 AM, nanotech [EMAIL PROTECTED] wrote: Hi All, Looking for some pointers. Anyone? nanotech wrote: Hi, I am trying to add a column of checkboxes in data table with CheckGroup

Re: Localized error()

2008-07-22 Thread Igor Vaynberg
then use component.getstring() that takes a model which is a map of key, values that will be interpolated in the string. if you want {0} format then use java's formatter to interpolate it -igor On Tue, Jul 22, 2008 at 7:08 AM, liny [EMAIL PROTECTED] wrote: What if I want to pass parameter to

How to build a dynamic navigation bar

2008-07-22 Thread Edbay
Hello, I want to be able to build a left-side dynamic navigation bar based on user permissions. For example, if the user does not have access to the Prices page, I do not want to show the Prices link on the navigation bar. Also, since the link will point to a Wicket page, it has to be a

RE: How to build a dynamic navigation bar

2008-07-22 Thread Alexander Landsnes Keül
I'd use a ListView :) Assuming this lil code add( new ListView(list, linkList ) { public void populateItem(ListItem item) { item.add( (Link)linkList ); } }); You'd have the html look something like this ul wicket:id=list lia href=#

Re: @SpringBean vs @Configurable

2008-07-22 Thread jWeekend
Rik, Also see http://jira.springframework.org/browse/SPR-4302 Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Rik van der Kleij-2 wrote: Is it right that also userspage is also not serializable because userservice is not serializable (not a proxy)? Regards, Rik

Re: DataTable + CheckGroup with CheckGroupSelector

2008-07-22 Thread nanotech
Hi Igor, Thanks for the reply. I had a look at the phonebook example application in wicket-stuff. I have a question? 1. Currently it does not maintain the checked(or selected) items if you change the datatable's pages. How can I add that feature? 2. Can I replace CheckBox with AjaxCheckBox and

RE: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
Thanks for the quick reply. Wouldn't this force all links to have the same wicket ids (linkid)? I'd like to be able to have the line items look like this: ul wicket:id=list li # Link01 text here /li li # Link02 text here /li li # Link03 text here /li /ul Alexander

RE: How to build a dynamic navigation bar

2008-07-22 Thread Alexander Landsnes Keül
They need the same wicket:id yes, but that doesn't mean that they need the same text or targets. Just create as many links as you want/need, with whatever behaviour they need. Just make sure they all have the same id :) Alex -Opprinnelig melding- Fra: Edbay [mailto:[EMAIL PROTECTED]

Re: How to create a Popup Window with a submit Link (Or at least get the similiar functionality)?

2008-07-22 Thread srizmi
Got a couple of questions: 1. BookmarkablePageLink - shouldn't events be exposed so that the target page [ page 2 in Joe's example ] is bookmarkable and still the user inputs could be passed as pageParameters? 2. SubmitLink - Why doesn't it have PopupSettings ? 3.

Re: How to build a dynamic navigation bar

2008-07-22 Thread John Krasnay
On Tue, Jul 22, 2008 at 09:59:48AM -0700, Edbay wrote: Thanks for the quick reply. Wouldn't this force all links to have the same wicket ids (linkid)? I'd like to be able to have the line items look like this: ul wicket:id=list li # Link01 text here /li li # Link02 text

Re: How to build a dynamic navigation bar

2008-07-22 Thread sstendal
Edbay wrote: I tried using ListView, but I could not get it to work, as it forces the wicket id of the line items to be all the same. Why is that a problem? Using ListView should be a good solution. Could you elaborate? -- View this message in context:

Re: DataTable + CheckGroup with CheckGroupSelector

2008-07-22 Thread nanotech
Hi Igor, I changed the implemention of wicket-stuff-phonebook to suit my needs where in i needed do disable the delete button if none selected and re-enable it. I also successfully used AjaxCheckBox and updated the webmarkup container containing buttons. Now, in the same example app. 1. I am

Re: How to build a dynamic navigation bar

2008-07-22 Thread puschteblume
Here is my code that works for me. I put the navigation bar in a panel. wicket:panel span wicket:id=mainNavList span wicket:id=navigationItem a href=# span wicket:id=navigationLabel/span /a /span /span /wicket:panel And the java class looks like this:

Problems with character encoding of text from data model

2008-07-22 Thread sstendal
The characters from my markup pages and my data model is for some reason rendered with different character encoding. The characters in the markup shows up just right, while the exact same text hardcoded in a Label becomes garbage. This is what i get in the web browser. The web page is utf-8

Re: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
I get this approach. Can you provide the code for the panel? ul !-- note: the tag here is only for preview, it will be replaced by the link panel contents -- li wicket:id=menuItem # Foo /li /ul RepeatingView menu = new RepeatingView(menuItem); menu.add(new

Re: New Wicket Grails Plug-in Available + about the Groovy wicket builder

2008-07-22 Thread JulianS
I just tried this plugin for the first time and I got the example to run. But as soon as I tried to do something as simple as loop through a list of items, it all came unstuck (code below). It seems to me like the mismatch between Wicket's use of anonymous inner classes and Groovy's lack of

Re: How to build a dynamic navigation bar

2008-07-22 Thread John Krasnay
Something like this... wicket:panel a wicket:id=linkspan wicket:id=labelFoo/span/a /wicket:panel public class MyMenuPanel extends Panel { public MyMenuPanel(String id, String label, Class pageClass) { super(id); Link link = new BookmarkablePageLink(link, pageClass); add(link);

Re: How to create a Popup Window with a submit Link (Or at least get the similiar functionality)?

2008-07-22 Thread Maurice Marrink
On Tue, Jul 22, 2008 at 7:51 PM, srizmi [EMAIL PROTECTED] wrote: Got a couple of questions: 1. BookmarkablePageLink - shouldn't events be exposed so that the target page [ page 2 in Joe's example ] is bookmarkable and still the user inputs could be passed as pageParameters?

Re: How to build a dynamic navigation bar

2008-07-22 Thread Edbay
Works! :clap: wicket:panel Foo /wicket:panel public class MyMenuPanel extends Panel { public MyMenuPanel(String id, String label, Class pageClass) { super(id); Link link = new BookmarkablePageLink(link, pageClass); add(link); link.add(new Label(label, label)); } }

Asynchronous Components

2008-07-22 Thread Sebastian
Hi, I have not yet looked much into Wicket but am quite interested in the project. We have a specific requirement where I could not yet find the right information/documentation for. We need to put multiple components onto a page receiving data through web services. A single web services

How to identify if any of a page's components failed validation after a submit

2008-07-22 Thread Louis Savoldy
After a page submit, I need to identify if any components on the page failed validation. I’ve come up with two possible solutions, but they both seem to be workarounds and I'm not 100% they cover all conditions. 1. Traverse the page’s component hierarchy using a custom visitor.

YuiMenuBar in WicketStuff

2008-07-22 Thread Karen Schaper
Hi, I've switched to using the YuiMenuBar in wicket stuff from directly using the Yui javascript. The YuiMenuBar automatically adds this javascript... var oMenu = new YAHOO.widget.MenuBar(webMenuBar, {visible:true,clicktohide:false,autosubmenudisplay: true,

Re: how to register IConverters

2008-07-22 Thread Timo Rantalaiho
On Mon, 21 Jul 2008, lars vonk wrote: Is it maybe an idea to change this to a registerConverter(IConverter) method that I can call? That saves me a custom IConverterLocator to implement. Normally you can just register converters in init() of your Application subclass. You only need your own

Re: FormTester and FileUploadField

2008-07-22 Thread Timo Rantalaiho
On Mon, 21 Jul 2008, marco m wrote: When I submit my form using the tester, all of the properties of my model object are null. Print out the feedback messages from the Session. It sounds like your FileUploadField.causes a validation error. Best wishes, Timo

Re: Problems with character encoding of text from data model

2008-07-22 Thread Timo Rantalaiho
On Tue, 22 Jul 2008, sstendal wrote: rendered with different character encoding. The characters in the markup shows up just right, while the exact same text hardcoded in a Label becomes garbage. Are you compiling on Windows by any chance? If not, what is your system locale when compiling? I