Re: Decorating Ajax(Fallback)Link

2008-02-27 Thread Martin Grigorov
Thanks Igor ! Just for the record: it should be return false; otherwise the browser makes a request to a's href (i.e. a non-Ajax call). Additionally the same effect/code could be added with less code with AttributePrepender (there is no such class in Wicket for now). deleteLink.add(new

Re: Wicket-FBML Released

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
What I mean is: That on wicket stuff for example, it's normal procedure to have some keywords describing what you can do with the component (perhaps saying that its a wicket facebook plugin is adequate). But also a very small and simple example project. As for the maven part.. It could be

Re: Update listView at onSubmit without using Ajax?

2008-02-27 Thread Martin Makundi
It is in quotes, sorry. Still, the list is updated only if it is not empty on the first use. ** Martin 2008/2/27, Igor Vaynberg [EMAIL PROTECTED]: ListView l = new ListVIew(.., new PropertyModel(this, listViewElements)); listViewElements should be in quotes as per my earlier suggestion...

Query of wicket capabilties for website

2008-02-27 Thread Bobby Quninne
Hi there, I am currently considering using wicket to replace an existing system developed with apache cocoon. Some of the draw backs I have noted of the cocoon implementation is : 1. Website flow to pages is hard to determine, as well as debug when I don't land up on the expected page. 2.

Re: CompoundModel based on proxies

2008-02-27 Thread Gabor Szokoli
On 2/26/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote: The proxy based approach solves exactly this problem. Wow, fancy! :-) Thanks for sharing it, we'll probably use it too. The rest is by no means ment to discredit your effort, more like the devils advocate grumbling in front of the TV

Our new and shiny Wicket site!

2008-02-27 Thread Daniel Frisk
After a couple of months coding we have released our Wicket website! It has generally been a pleasure porting our jsp site and we have been able to add a lot of functionality as well. Check it out at http://jalbum.net // Daniel

[newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Karol Wrzesniewski
Hi, I'm having problems with refreshing an Image using AjaxLink. I have a ModalWindow. On it's left side theres a ListView containing Ajax links: -- add(listaObrazow = new ListView(pics, obrazki) { public void populateItem(final ListItem listItem) {

Re: Our new and shiny Wicket site!

2008-02-27 Thread C.
On Wed, 2008-02-27 at 11:22 +0100, Daniel Frisk wrote: After a couple of months coding we have released our Wicket website! It has generally been a pleasure porting our jsp site and we have been able to add a lot of functionality as well. Check it out at http://jalbum.net I think this sort

Re: Query of wicket capabilties for website

2008-02-27 Thread Bobby Quninne
Ah Excellent, thank you kindly Ned. In this case its the incoming domain name the user accessed the site on. I cannot wait to prototype something :-) Ned Collyer wrote: Oh boy are you in for a treat. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

Re: Query of wicket capabilties for website

2008-02-27 Thread Ned Collyer
Oh boy are you in for a treat. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Different css ... or markup.. or language... possibly determined by user preference... or whatever you like. Bobby Quninne wrote: There is a requirement that the website can be

Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread Mazzanti Luca
This is a basic question: how can i reload the content of a component as a panel? using render() into a panel cause a markupError into the application. using renderComponent() call the re-render of my panel, but the model that i modified is not readed by inner components like a simple label with

Re: Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread wicket user
use an ajaxlink and refresh the other panel dipu On Wed, Feb 27, 2008 at 11:14 AM, Mazzanti Luca [EMAIL PROTECTED] wrote: This is a basic question: how can i reload the content of a component as a panel? using render() into a panel cause a markupError into the application. using

Re: CompoundModel based on proxies

2008-02-27 Thread James Carman
On 2/26/08, James Carman [EMAIL PROTECTED] wrote: Well, if you wait a bit until I do another release of Commons Proxy, it'll have that feature built in. Also, you could use Javassist if you wanted to very easily. Actually, after I played around a bit, it looks like CGLIB does this out of

Re: Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread Mazzanti Luca
ok i know the basic examble about autoincrement label value with an ajax Link but, what i don't know is how simply reload the content of a component: i give you an example on what i want to do (i write it very very quickly...)! a page with 2 panels, one of these read data from his model, the

Re: Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread Gerolf Seitz
changes inline: public class MyPage extends WebPage { public Model model = new Model(initial value); public Panel panel2 = new PanelTwo(two,model); public MyPage() { add(new PanelOne(one)); panel2.setOutputMarkupId(true); //needed to call renderComponent method ?

Re: CompoundModel based on proxies

2008-02-27 Thread James Carman
On 2/26/08, Johan Compagner [EMAIL PROTECTED] wrote: Yes i would like to have something like commons proxy because i dont want if possible a direct dependency on cglib. It would be coool that we have a default impl that is based on jdk itself (so only interface support). Then drop in cglib

Re: Frames with Tree component

2008-02-27 Thread k1dev
Hi! Thanks for your reply. Tried out your first tip (couldn't figure out how to do the second tip). Now the frames are there but the right frame is not replaced but a new frame created with 0px width beside the others. Dragging the slider that separates left and right frame reveals the new

[no subject]

2008-02-27 Thread i ii
Struts2 claims that Actions are HTTP independent and framework neutral. This enables to test struts applications very easily without resorting to mock objects. Can this be done in Wicket?

Re: Can i add multiple lines to a node-link in tree?

2008-02-27 Thread Newgro
Hi Thomas, i got it now with the multilinelabel. The text i add to a node contains an \n. But i only see one row. I experimented a bit with the css, but i can't get the tree node to show me 2 lines. Do you have an idea on that? Cheers Per -- View this message in context:

Re: Strange Exception

2008-02-27 Thread Anders Peterson
That wasn't it. Just happened again... /Anders Anders Peterson wrote: No (don't know what it is). I think maybe this problem was caused by the RunJettyRun plugin picking up my wicket-1.3.0 jars that I had forgotten to delete from my project. I did not reference those jars, but the files

not calling onBeforeRender in LinkIconPanel

2008-02-27 Thread Juan Gabriel Arias
Hi all, I'm using LinkTree. When i click in an item, in the ajax request, the tree never calls onBeforeRender for that item. Does anybody knows why? Thanks! Juan

Re: Small shared resource question...

2008-02-27 Thread Kent Tong
Sebastiaan van Erk wrote: In my web page with the resource link I do the following: fragment.add(new ResourceLink(cvEnglishLink, new ResourceReference(cvs_en.pdf)) { @Override public boolean isVisible() { return

Alternative to WicketTester?

2008-02-27 Thread i ii
Struts2 claims that Actions are HTTP independent and framework neutral. This enables to test struts applications very easily without resorting to mock objects. Can this be done in Wicket?

Mounting dynamic URLs

2008-02-27 Thread Martijn Lindhout
Hi All, How do I mount a friendly URL with a dynamic last part. I.e. I want the following URL's to be handled by a profile page which contents depends on the last part. Is this possible? http://localhost/myApp/profile/wsmith http://localhost/myApp/profile/stiger -- Martijn Lindhout JointEffort

Re: get Form information after submit

2008-02-27 Thread taygolf
I have been looking at that today but I am still lost. Basically what I want to do is have a form with panels in it. the panel will add a textfield everytime it is called. and it will set the markupId to a unique id that I am generating and well as setOutputMarkupId to true. Then when the user

Re: Mounting dynamic URLs

2008-02-27 Thread Thijs
mount profile as a page and use the 'stiger' or 'wsmith' as a parameter to get the profile check IndexedParamUrlCodingStrategy Martijn Lindhout schreef: Hi All, How do I mount a friendly URL with a dynamic last part. I.e. I want the following URL's to be handled by a profile page which

Re: Mounting dynamic URLs

2008-02-27 Thread Thomas Kappler
Hi Martjin, Nathan has implemented that in his Recipe Book example app: http://databinder.net/recipe. Have a look at the first constructor of RecipeBook. Thomas On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout [EMAIL PROTECTED] wrote: Hi All, How do I mount a friendly URL with a dynamic

Re: Mounting dynamic URLs

2008-02-27 Thread Martijn Lindhout
thanx! 2008/2/27, Thomas Kappler [EMAIL PROTECTED]: Hi Martjin, Nathan has implemented that in his Recipe Book example app: http://databinder.net/recipe. Have a look at the first constructor of RecipeBook. Thomas On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout [EMAIL PROTECTED]

Re: Open new page after submit a form

2008-02-27 Thread taygolf
did you find a way to do what you want? I am looking to do close to the same thing. Thanks T Newgro wrote: Hi *, i have a wicket page with a form and some other components. On click on a button i want to submit the form and go to another page of my application. The problem i have is

Re: Alternative to WicketTester?

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
There is selenium... But im not sure I understand what you mean, by HTTP independent and framework neutral.. regards Nino i ii wrote: Struts2 claims that Actions are HTTP independent and framework neutral. This enables to test struts applications very easily without resorting to mock

Re: focusComponent

2008-02-27 Thread NateBot20002
NateBot2000 wrote: I'm trying to use AjaxRequestTarget.focusComponent(Component) to set the focus in a form that is returned by Ajax. I found that if I use setTimeout to add a 500ms delay before focusing it works fine. You might try that if you ever come across this problem...

A session data

2008-02-27 Thread Vitaly Tsaplin
Hi everyone! A question from a newbie. Let's say I am going to store some data structure related to a user which is currently logged in in a session. Normally I store such data as an attribute(s) of a session object. What is a wicket way? Do I just create a field in my application class

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
Hi, The resource key for a shared resource is generated by the following method which I'm not allowed to call. /** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. * * @param scope *The scope of the resource *

equivalent of DateLabel for numbers, aka NumberLabel?

2008-02-27 Thread Doug Leeper
Wicket has a Date label to format a Date nicely. Is there something similar to format a Number as well? I haven't found it yet so I thought I would ask the community. Thanks - Doug -- View this message in context:

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
Hi, Thanks for the answer. I don't quite understand it though! As far as I can tell, there's still only 1 resource, which has the locale of the page (at creation time). But I have a link on the page which allows you to change the locale. This link is stateful, so it just calls the callback

1.3.0-SNAPSHOT problem

2008-02-27 Thread Kaspar Fischer
I follow the Quick Start instructions, http://wicket.apache.org/quickstart.html and execute mvn archetype:create -DarchetypeGroupId=org.apache.wicket - DarchetypeArtifactId=wicket-archetype-quickstart - DarchetypeVersion=1.3-SNAPSHOT -DgroupId=org.my.project.wicket - DartifactId=website

Re: Strange Exception

2008-02-27 Thread Anders Peterson
No (don't know what it is). I think maybe this problem was caused by the RunJettyRun plugin picking up my wicket-1.3.0 jars that I had forgotten to delete from my project. I did not reference those jars, but the files where still in my project directory. I did some general update all

Re: Update listView at onSubmit without using Ajax?

2008-02-27 Thread Igor Vaynberg
make a quickstart and i will take a look -igor On Wed, Feb 27, 2008 at 2:16 AM, Martin Makundi [EMAIL PROTECTED] wrote: It is in quotes, sorry. Still, the list is updated only if it is not empty on the first use. ** Martin 2008/2/27, Igor Vaynberg [EMAIL PROTECTED]: ListView l =

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Igor Vaynberg
use NonCachingImage -igor On Wed, Feb 27, 2008 at 2:43 AM, Karol Wrzesniewski [EMAIL PROTECTED] wrote: Hi, I'm having problems with refreshing an Image using AjaxLink. I have a ModalWindow. On it's left side theres a ListView containing Ajax links: --

Re: Strange Exception

2008-02-27 Thread Igor Vaynberg
looks like your session class is loaded twice... -igor On Wed, Feb 27, 2008 at 5:54 AM, Anders Peterson [EMAIL PROTECTED] wrote: That wasn't it. Just happened again... /Anders Anders Peterson wrote: No (don't know what it is). I think maybe this problem was caused by the

Re: get Form information after submit

2008-02-27 Thread Igor Vaynberg
why do you want to pass it to another page for processing? sounds like you are thinking about the old jsp model. in wicket components are stateful and so the lifecycle is different... the form submits to itself, and updates models of any form components inside. then you can override

Re: Frames with Tree component

2008-02-27 Thread Igor Vaynberg
looks like your url points to a page that generates another frameset? or contains frame tags? it should just point to regular page with html/body -igor On Wed, Feb 27, 2008 at 4:55 AM, k1dev [EMAIL PROTECTED] wrote: Hi! Thanks for your reply. Tried out your first tip (couldn't figure

Re: A session data

2008-02-27 Thread Igor Vaynberg
you would create a websession subclass and add the field to there, then override application.newsession() and return your subclass... -igor On Wed, Feb 27, 2008 at 8:33 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone! A question from a newbie. Let's say I am going to store

Re: Wicket creating a session for authorization even if no user signed in

2008-02-27 Thread Igor Vaynberg
wicket uses session to store pages, so creating a session is orthogonal to authorizing/authenticating a user -igor On Wed, Feb 27, 2008 at 9:04 AM, Roberto Fasciolo [EMAIL PROTECTED] wrote: Hi, I noticed some strange behavior on my webapplication that has authorization in place (by using

First Complex Component Question...

2008-02-27 Thread spencer.c
I am making a component which needs to add (1) some javascript which references the location of some images, and (2) some style-sheet information which references some images. The images are going to be located in the jar that contains the component. Since I need to insert the location of the

ReloadingWicketFilter

2008-02-27 Thread carloc
Hi everyone, I just would like to ask how I can use the reloadingwicketfilter. I get an exception that the markup file cannot be located everytime i use the reloading wicketfilter thanks -- View this message in context: http://www.nabble.com/ReloadingWicketFilter-tp15719950p15719950.html

Re: Update listView at onSubmit without using Ajax?

2008-02-27 Thread Martin Makundi
Ok. My stupidUserBug. I had: listView.setVisible(0 listViewElements.size()); Nice. The idea was to get rid of the table headers when the list is empty, but ofcourse this was never updated. And, the list ofcourse has nothing to do with the table headers. How would you hide the table headers?

Re: Wicket creating a session for authorization even if no user signed in

2008-02-27 Thread Roberto Fasciolo
Our application is totally hidden behind authentication, so in our case the session (I'm talking about an object extending AuthenticatedWebSession) is created without any page navigation, just by opening the sign in page. Anyway, how can you deal with DoS attacks? I mean, it'll be really easy to

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
Should nocachingImage be default, and then have a cachingImage? Or would that result in the same amount of confusion? WDYT? As a couple of people has been confused by this... regards Nino Igor Vaynberg wrote: use NonCachingImage -igor On Wed, Feb 27, 2008 at 2:43 AM, Karol Wrzesniewski

Re: get Form information after submit

2008-02-27 Thread taygolf
yes all of my experiance is in JSP so I guess I am just confused about how forms work in wicket compared to JSP. Maybe you can help me understand and suggest a way to accomplish what I am looking to do. I have a form that takes in 2 dropdown chioces. When selected these dropdownchoices are set

Re: Open new page after submit a form

2008-02-27 Thread Per Newgro
Hi taygolf: did you find a way to do what you want? I am looking to do close to the same thing. Sorry. No solution here. We do it now externally. We write form data into db and execute them by an external script. Every record gets a timestamp so we know that they were processed. Cheers Per

Re: Mounting dynamic URLs

2008-02-27 Thread Martijn Lindhout
eh... an extra question. How do I enable the IndexedParamUrlCodingStrategy for only one page? According to the docs, I have to override the method in the requestCycleProcessor, but then it is active for all request 2008/2/27, Martijn Lindhout [EMAIL PROTECTED]: thanx! 2008/2/27, Thomas

Re: Mounting dynamic URLs

2008-02-27 Thread Gerolf Seitz
in MyWebApplication.init() { mount(new IndexedParamUrlCodingStrategy(bla, MyPage.class)); } Gerolf On Wed, Feb 27, 2008 at 8:46 PM, Martijn Lindhout [EMAIL PROTECTED] wrote: eh... an extra question. How do I enable the IndexedParamUrlCodingStrategy for only one page? According to the

Re: Mounting dynamic URLs

2008-02-27 Thread Martijn Lindhout
wow! It's really that simple. thanx 2008/2/27, Gerolf Seitz [EMAIL PROTECTED]: in MyWebApplication.init() { mount(new IndexedParamUrlCodingStrategy(bla, MyPage.class)); } Gerolf On Wed, Feb 27, 2008 at 8:46 PM, Martijn Lindhout [EMAIL PROTECTED] wrote: eh... an extra question.

Re: First Complex Component Question...

2008-02-27 Thread Igor Vaynberg
create a CssResource and JavascriptResource that extend Resource and know how to stream the contents by reading parameters off url. add those to application.getsharedresources(). then call urlfor(resourcereference) and you should have the url that invoke the resource. resourceref should have the

Re: Alternative to WicketTester?

2008-02-27 Thread lars vonk
There are no Actions in Wicket as you have in Struts (isn´t that great!?!). Just put your business logic in a POJO and you can test that independently. Remember that in general it is not a good practice to mix view logic (your Components and Pages) with business logic (the POJOs). Lars On Wed,

Re: ReloadingWicketFilter

2008-02-27 Thread Igor Vaynberg
it has examples in its javadoc afaik -igor On Wed, Feb 27, 2008 at 10:40 AM, carloc [EMAIL PROTECTED] wrote: Hi everyone, I just would like to ask how I can use the reloadingwicketfilter. I get an exception that the markup file cannot be located everytime i use the reloading

Re: Update listView at onSubmit without using Ajax?

2008-02-27 Thread Igor Vaynberg
use wicket:enclosure to wrap headers and listview, or put headers and listview into a webmarkupcontainer and toggle visibility on that -igor On Wed, Feb 27, 2008 at 10:59 AM, Martin Makundi [EMAIL PROTECTED] wrote: Ok. My stupidUserBug. I had: listView.setVisible(0

Re: Wicket creating a session for authorization even if no user signed in

2008-02-27 Thread Igor Vaynberg
is your sign in page stateless? if its not it will need to be stored in session. re ddos attacks, its really the job of the application server to prevent an exorbitant amount of sessions opened from what looks like the same ip or however it decides to do that. ie there are plenty of jsp/struts

Re: Binding component visibility attribute to another form value

2008-02-27 Thread Timo Rantalaiho
On Tue, 26 Feb 2008, Sam Barnum wrote: I still have it ingrained into my head that subclassing is something that should be avoided. So obviously I run into these issues when using Wicket, where subclassing existing components is essential. Yeah, sounds familiar. Then I learned how to

Re: get Form information after submit

2008-02-27 Thread Igor Vaynberg
class page1 { private object selection1; private object selection2; public page1() { form form=new form(form) { onsubmit() { setresponsepage(new page2(selection1,selection2)); } } form.add(new dropdownchoice(s1, new propertymodel(this, selection1), ...));

Re: First Complex Component Question...

2008-02-27 Thread spencer.c
Right, this is exactly my plan...what I need to know is, where do I do the Application.getSharedResources() code? The component will be packaged in its own jar, and I want the component to contribute its automatically, without the App calling it specifically. I don't see a hook for initializing

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Igor Vaynberg
most people want stable urls for their images i would imagine, so they can be cached by the browser. in case of ajax this doesnt work because the url has to change so that browser needs to know to refresh it. maybe image can know if its requested within an ajax request and automatically add

Re: First Complex Component Question...

2008-02-27 Thread Igor Vaynberg
see IInitializer basically in this jar you will have a wicket.properties file that inside has initializer=com.my.Initializer which is a class that implements IInitializer. the rest is pretty obvious... -igor On Wed, Feb 27, 2008 at 12:18 PM, spencer.c [EMAIL PROTECTED] wrote: Right, this is

Re: Update listView at onSubmit without using Ajax?

2008-02-27 Thread Martin Makundi
Thanks! 2008/2/27, Igor Vaynberg [EMAIL PROTECTED]: use wicket:enclosure to wrap headers and listview, or put headers and listview into a webmarkupcontainer and toggle visibility on that -igor On Wed, Feb 27, 2008 at 10:59 AM, Martin Makundi [EMAIL PROTECTED] wrote: Ok. My

Wicket Tester And Code Output

2008-02-27 Thread carloc
Hi, I'm using Wicket Tester to render my pages, is there a way by which I can see the code that is rendered? For example I have, wicketTester.startPage(new HomePage()); assertRenderedPage(HomePage.class); I want to be able to see the html contents being printed in the console.. like html

Re: ReloadingWicketFilter

2008-02-27 Thread carloc
THanks, I'll try again but I'm getting exceptions maybe I didn't do it correctly yet. Carlo igor.vaynberg wrote: it has examples in its javadoc afaik -igor On Wed, Feb 27, 2008 at 10:40 AM, carloc [EMAIL PROTECTED] wrote: Hi everyone, I just would like to ask how I can use the

Re: 1.3.0-SNAPSHOT problem

2008-02-27 Thread Martin Funk
Have you installed wicket from source like from? svn co https://svn.apache.org/repos/asf/wicket/trunk I don't think that the 1.3-SNAPSHOT version is not hosted on mavens central repository. There might be one but I don't know out of my head. My best suggestion would be, take the 1.3.1 version

Re: equivalent of DateLabel for numbers, aka NumberLabel?

2008-02-27 Thread Nick Heudecker
This is really easy to create yourself. Just subclass Label and override onComponentTagBody. On Wed, Feb 27, 2008 at 10:46 AM, Doug Leeper [EMAIL PROTECTED] wrote: Wicket has a Date label to format a Date nicely. Is there something similar to format a Number as well? I haven't found it

Re: 1.3.0-SNAPSHOT problem

2008-02-27 Thread Kaspar Fischer
On 27.02.2008, at 21:53, Martin Funk wrote: Have you installed wicket from source like from? svn co https://svn.apache.org/repos/asf/wicket/trunk No, I haven't. But I realize that I might have misunderstood: I thought that the maven central repository will contain a periodically updated

Re: Wicket Tester And Code Output

2008-02-27 Thread Maurice Marrink
wickettester.getServletResponse().getDocument() Maurice On Wed, Feb 27, 2008 at 9:43 PM, carloc [EMAIL PROTECTED] wrote: Hi, I'm using Wicket Tester to render my pages, is there a way by which I can see the code that is rendered? For example I have, wicketTester.startPage(new

Re: ReloadingWicketFilter

2008-02-27 Thread Igor Vaynberg
dont know, never really used it myself :) -igor On Wed, Feb 27, 2008 at 12:44 PM, carloc [EMAIL PROTECTED] wrote: THanks, I'll try again but I'm getting exceptions maybe I didn't do it correctly yet. Carlo igor.vaynberg wrote: it has examples in its javadoc afaik

Re: get Form information after submit

2008-02-27 Thread taygolf
Thanks igor I really appreciate the help. My code was really close but I was not creating: private object selection1; private object selection2; which was giving me my issues of getting the object in the onSubmit override. I do not know why I did not see something that simple I think I was just

Re: get Form information after submit

2008-02-27 Thread Igor Vaynberg
no, it wont change, just have the panel forward the model to the textfield. -igor On Wed, Feb 27, 2008 at 1:50 PM, taygolf [EMAIL PROTECTED] wrote: Thanks igor I really appreciate the help. My code was really close but I was not creating: private object selection1; private object

Re: First Complex Component Question...

2008-02-27 Thread Igor Vaynberg
if a browser issues a HEAD request, like it usually done then the following occurs: resourcestream stream=resource.newresourcestream(); return stream.getlastmodifiedtime(); during this portiion there is no request cycle. your resourcestream implementation should be lazy and only create all the

Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Vitaly Tsaplin
Hi users! Next question from newbie's series. :) I have a password field but since I am doing an account update, I am not going to enforce user to change his/her password. So in this case I mark both a password a confirmation fields as optional (required = false). But in case if an

Adding full text search in wicket phonebook

2008-02-27 Thread Tauren Mills
I'm trying to determine the best way to add full text search capabilities to the default wicket-phonebook application. Basically, I want a single search textbox on the page that allows the user to search for any data in any field of the data table. So it would search through all contact's first

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Bernard Niset
Hi, I had the same issue yesterday and found a solution somewhere else in this mailing list. Adding some random query to the url forces the browser not to reuse a cached image. To achieve that you have to subclass Image and override onComponentTag like this: @Override protected void

Re: Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Igor Vaynberg
have you seen EqualPasswordValidator? -igor On Wed, Feb 27, 2008 at 2:33 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi users! Next question from newbie's series. :) I have a password field but since I am doing an account update, I am not going to enforce user to change his/her

Re: Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Vitaly Tsaplin
I am using it. But I was going to attach it conditionally... On Wed, Feb 27, 2008 at 11:44 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: have you seen EqualPasswordValidator? -igor On Wed, Feb 27, 2008 at 2:33 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi users! Next

Re: Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Igor Vaynberg
why conditionally? if they are both null the check will still pass -igor On Wed, Feb 27, 2008 at 2:57 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: I am using it. But I was going to attach it conditionally... On Wed, Feb 27, 2008 at 11:44 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

Re: Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Vitaly Tsaplin
Wow! That's great! But still... in general... is there any way to set up a validation rule just before the actual validation and after a conversion? On Wed, Feb 27, 2008 at 11:59 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: why conditionally? if they are both null the check will still pass

Re: Turning on and off a validation of a particular component depending on its value or values of other form components

2008-02-27 Thread Igor Vaynberg
you can add an ivalidator, thats exactly what they are for -igor On Wed, Feb 27, 2008 at 3:11 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Wow! That's great! But still... in general... is there any way to set up a validation rule just before the actual validation and after a conversion?

Re: Small shared resource question...

2008-02-27 Thread Kent Tong
Sebastiaan van Erk wrote: As far as I can tell, there's still only 1 resource, which has the locale of the page (at creation time). Every time the page is rendered, it will generate a different variant of the resource reference due to the setLocale() call. Sebastiaan van Erk wrote:

Re: Dynamic form components and disabling them

2008-02-27 Thread Igor Vaynberg
yes, you are correct. fixed in trunk. -igor On Tue, Feb 26, 2008 at 3:23 AM, Federico Fanton [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2008 08:58:11 -0800 Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the components are recreated. you have to set an item reuse strategy for the gridview,

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-27 Thread Igor Vaynberg
this panel factory is what i have done in the past also. although i simply had a generic IComponentFactory { Component newComponent(String id); } which seemed to work for most cases. the problem with injecting panels like that directly is that wicket _has to_ proxy these injected values. There

Re: Our new and shiny Wicket site!

2008-02-27 Thread Matej Knopp
I don't think there is anything wrong with posting emails about new wicket based sites. Not everyone has the time to be checking wiki pages constantly. -Matej On Wed, Feb 27, 2008 at 11:30 AM, C. Bergström [EMAIL PROTECTED] wrote: On Wed, 2008-02-27 at 11:22 +0100, Daniel Frisk wrote:

Re: Our new and shiny Wicket site!

2008-02-27 Thread Nick Heudecker
+1 On Wed, Feb 27, 2008 at 7:23 PM, Matej Knopp [EMAIL PROTECTED] wrote: I don't think there is anything wrong with posting emails about new wicket based sites. Not everyone has the time to be checking wiki pages constantly. -Matej On Wed, Feb 27, 2008 at 11:30 AM, C. Bergström [EMAIL

Does something happen other than what html is output?

2008-02-27 Thread David Leangen
Hello, I am adding a MarkupContainer to my page that outputs something like this: img wicket:id=logoImage src=file:///resources/images/logo.jpg or this: link rel=stylesheet type=text/css href=file:///resources/stylesheets/text.css / [Just in case this does not render because of html-based

Re: CompoundModel based on proxies

2008-02-27 Thread Timo Rantalaiho
Hello, On Tue, 26 Feb 2008, Sebastiaan van Erk wrote: Then a refactor of the customerName property (and the getCustomerName() method) in an IDE such as Eclipse or NetBeans will *silently* break the above code, which you will discover only at runtime... The proxy based approach solves

JavaScript in Head disappears after Ajax call

2008-02-27 Thread Warren
I have a WebPage where I have entered some JavaScript into the Head tag of the markup file. This page has an AjaxButton. When the page is first displayed the JavaScript I entered in the Head tag is there. The JavaScript is removed after the AjaxButton is clicked. Everything works as expected

Re: Adding full text search in wicket phonebook

2008-02-27 Thread Martin Makundi
Aren't you trying to killa a mouse with a cannon? Or is the cannon (Hibernate, Lucene, Complexity) just for fun? 2008/2/27, Tauren Mills [EMAIL PROTECTED]: I'm trying to determine the best way to add full text search capabilities to the default wicket-phonebook application. Basically, I

RE: JavaScript in Head disappears after Ajax call

2008-02-27 Thread Warren
Disregard this post, I figured it out. Warren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ReloadingWicketFilter

2008-02-27 Thread Peter Thomas
On 2/28/08, Igor Vaynberg [EMAIL PROTECTED] wrote: dont know, never really used it myself :) -igor On Wed, Feb 27, 2008 at 12:44 PM, carloc [EMAIL PROTECTED] wrote: THanks, I'll try again but I'm getting exceptions maybe I didn't do it correctly yet. Carlo This

Re: Wicket creating a session for authorization even if no user signed in

2008-02-27 Thread Roberto Fasciolo
Based on this page in wiki: http://cwiki.apache.org/WICKET/stateless-pages.html a page is stateless if all the components in it are stateless. My sign in page contains a SignInPanel (from wicket-auth-roles) and 2 links. I can change the links to StatelessLink, but how can I make SignInPanel (that

Re: Wicket creating a session for authorization even if no user signed in

2008-02-27 Thread Igor Vaynberg
On Wed, Feb 27, 2008 at 10:10 PM, Roberto Fasciolo [EMAIL PROTECTED] wrote: Based on this page in wiki: http://cwiki.apache.org/WICKET/stateless-pages.html a page is stateless if all the components in it are stateless. My sign in page contains a SignInPanel (from wicket-auth-roles) and 2

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
Kent Tong wrote: Sebastiaan van Erk wrote: As far as I can tell, there's still only 1 resource, which has the locale of the page (at creation time). Every time the page is rendered, it will generate a different variant of the resource reference due to the setLocale() call. Sebastiaan

Re: Our new and shiny Wicket site!

2008-02-27 Thread Daniel Frisk
Thanks! We wrote our own grid for linking to the photo albums, and the actual albums are generated by our desktop client. The whole concept is a bit different than Flickr and it's not a one size fits all solution. // Daniel On 2008-02-28, at 02:41, Scott Swank wrote: Daniel, Nice

Re: Our new and shiny Wicket site!

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
+1, it also kind of opens up allowing for questions to the site announced... regards Nino Matej Knopp wrote: I don't think there is anything wrong with posting emails about new wicket based sites. Not everyone has the time to be checking wiki pages constantly. -Matej On Wed, Feb 27, 2008 at

Re: Our new and shiny Wicket site!

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
Hi Daniel Looks nice, is a touch of ajax on its way(I think it kinds of makes the flow go a bit easyer) ? I noticed that your web container arent either picking up cookies thats why the jsession id are appended: http://jalbum.net/tour;jsessionid=B45F87100AAA623164CE4934FCB884B6 Theres a

  1   2   >