How do I elegantly put feedback per form field?

2008-03-20 Thread Ned Collyer
How can I elegantly put a feedback panel per form field eg, Email address is required Email: [__] This is not a valid phone number Phone: [asfafadsfafa] This seems like a common scenario, but it seems rather verbose to implement. What should I extend to enable this? A form? A text

Re: How do I elegantly put feedback per form field?

2008-03-20 Thread Igor Vaynberg
i suppose you can make a behavior that will print out the messages just like feedbackpanel does now. that is probably the least verbose way to do it: add(new textfield(tf,model).add(new feedbackbehavior()); -igor On Wed, Mar 19, 2008 at 11:04 PM, Ned Collyer [EMAIL PROTECTED] wrote: How can

Display selected items in check boxes.

2008-03-20 Thread tsuresh
Hello wicketeers, I have sectors which contains subsectors. subsectors contains the selected as boolean and name of subsector. When a sector is selected, I need to display the list of sub sectors and the check box checked/unchecked according to it stored in database. I did this as the code

Re: setEscapeModelStrings to false as default

2008-03-20 Thread Erik van Oosten
Create a new component as a subclass of the component in question (Label). In the constructor you call setEscape...(false). From then on, only use the new subclass. But before you do so, read the other responses :) Regards, Erik. Marco Aurélio Silva schreef: Hi all Is there a way to set

Re: Display selected items in check boxes.

2008-03-20 Thread Maurice Marrink
Try item.add(new CheckBox(checkbox, new PropertyModel(item.getModel(),selected))); Also data.setReuseItem(true) might help. Maurice On Thu, Mar 20, 2008 at 7:30 AM, tsuresh [EMAIL PROTECTED] wrote: Hello wicketeers, I have sectors which contains subsectors. subsectors contains the selected

Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Cristi Manole
Hello, I've searched the web and I see there are a lot of hits for what I'm looking for but I cannot quite pinpoint the perfect solution (easiest) for this simple thing. What I need is to be able to extend a base page and put into some places some extra panels. I designed the places in the base

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Gerolf Seitz
you can provide factory methods in your base page like protected abstract Component newHeader(String id, IModel model); in the constructor of base page do: add(newHeader(header, someModelOrNull)); and just override/implement the factory method in your concrete page classes. hth, Gerolf On

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Johan Compagner
This is planned for the next release (not the genrerics only release if that will be the 1.4) On 3/20/08, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I've searched the web and I see there are a lot of hits for what I'm looking for but I cannot quite pinpoint the perfect solution (easiest)

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Sebastiaan van Erk
Gerolf Seitz wrote: you can provide factory methods in your base page like protected abstract Component newHeader(String id, IModel model); in the constructor of base page do: add(newHeader(header, someModelOrNull)); and just override/implement the factory method in your concrete page

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Gerolf Seitz
i agree with you. i had to fight similar problems and came up with similar (ugly) work arounds. let's see how the post-1.4 solution works out ;) Gerolf On Thu, Mar 20, 2008 at 10:12 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Gerolf Seitz wrote: you can provide factory methods in your

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Igor Vaynberg
the workaround is quiet easy class mypage extends webpage { onbeforerender() { if (get(panel1)==null) { add(newPanel1(panel1)); } super.onbeforerender(); } } -igor On Thu, Mar 20, 2008 at 2:12 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Gerolf Seitz wrote:

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Johan Compagner
but is a bit against our coding styles by creating the page in the constructor But i agree that works for now. But multiple childs support would be very nice to have if it is just a simple add on to the current way of doing. But first lets i guess bring out 1.4 generics... (if i counted the votes

Re: Multiple wicket:child/ panels like behaviour

2008-03-20 Thread Sebastiaan van Erk
Yes, Johan told me about that one. :-) But I really think that's quite ugly too... :( I really don't want to add hooks to do something that is just regular initialization of the component hierarchy of the page... And whenever possible I think my other work around is at least more intuitive...

Mounting and intercept pages

2008-03-20 Thread Jörn Zaefferer
Hi, I have a bookmarkable page with a single param, something like domain/item/id/1. Now, to edit the item, the user has to login or register first. After doing so, either using the login form on the same page or using the register form on a different page, the user must land on exactly the same

Nice absolute urls - is this possible?

2008-03-20 Thread Java Programmer
Hello, I have question about generated urls e.g. in examples on http://wicketstuff.org/wicket13/niceurl/the/homepage/path we have really nice urls, but they are realtive: a href=../../my/mounted/package/Page4/ is there posiible to make them: a href=/my/mounted/package/Page4/ without ../../ but

Re: How to set the initially selected value of a DropDownChoice?

2008-03-20 Thread Kaspar Fischer
Thanks for the helpful link, Martijn. For the sake of completeness, here's what I have ended up with: ListString PagerSizesList = Arrays.asList(25, 50, 100); ValueMap parameters = // ... parameters.put(search-page-size, PagerSizesList.get(0)); form.setModel(new

Unable to display modal windows

2008-03-20 Thread Cristi Manole
Hello, I just upgraded to 1.3.2 from 1.3.1. Also, i don't know if it makes a difference, spring from 2.0.6 to 2.5.2. Now, when i try to display a modal window just like I used to, it fails. All the code I modified is for the constructor of the authwebsess which got depricated public

RE: RadioGroup in TD

2008-03-20 Thread i ii
problem with proposed solution is that the number of TR are dynamically created in DataView (below selectionRows) table tr wicket:id=selectionRows tdspan wicket:id=username[Username]/span/td tdinput wicket:id=choice1 type=radio //td tdinput wicket:id=choice2 type=radio//td

Palette and on change notifications

2008-03-20 Thread Piller Sébastien
Hello everybody, I'm trying to get selection change notifications with the palette component (I need a notification each time a user click on an item in the palette). I saw that I need to attach an ajax behavior to the recorder component of the palette. But I tried several ways of doing

Re: Mounting and intercept pages

2008-03-20 Thread Martijn Dashorst
throw new RestartResponseAtInterceptPageException(LoginPage.class); Martijn On 3/20/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I have a bookmarkable page with a single param, something like domain/item/id/1. Now, to edit the item, the user has to login or register first. After doing

Re: Insert dynamic/external HTML string in a page

2008-03-20 Thread mmocnik
Thank you all. Works like a charm. Regards, Marko -- View this message in context: http://www.nabble.com/Insert-dynamic-external-HTML-string-in-a-page-tp16141336p16177878.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Mounting and intercept pages

2008-03-20 Thread Jörn Zaefferer
Thanks Martijn. I gave that a try: add(new Link(register) { @Override public void onClick() { throw new RestartResponseAtInterceptPageException(Register.class); } @Override public boolean isVisible() { return

RE: Mounting and intercept pages

2008-03-20 Thread Hoover, William
Try the following: if (!continueToOriginalDestination()) { setResponsePage(getApplication().getHomePage()); } -Original Message- From: Jörn Zaefferer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 9:13 AM To: users@wicket.apache.org Subject: Re: Mounting and

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
onclick doesn't work either. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:56 AM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel also, for what its worth, onclick

error occurs in IE when I click on button in wicket application deployed in JBoss

2008-03-20 Thread Patel, Sanjay
I developed small wicket application. It is address book kind of application and it has add new contact , edit, delete button. I deployed it in JBoss 4.0. It works good in FireFox but in IE when I click on any button it is not able find the page. Please see the attached screen shot so you have

Re: Mounting and intercept pages

2008-03-20 Thread Jörn Zaefferer
When throwing the Restart... exception, continueToOriginalDestination() yields false. On Thu, Mar 20, 2008 at 2:17 PM, Hoover, William [EMAIL PROTECTED] wrote: Try the following: if (!continueToOriginalDestination()) { setResponsePage(getApplication().getHomePage()); }

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
Ok, I noticed when I use AjaxFormComponentUpdatingBehavior, no JavaScript gets added to radio buttons. -Original Message- From: Zhubin Salehi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 9:18 AM To: users@wicket.apache.org Subject: RE: Problem with using RadioGorup and

the wicket markup reference

2008-03-20 Thread Vitaly Tsaplin
Hi everyone, Is there any wicket markup reference? Is it documented? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RadioGroup in TD

2008-03-20 Thread Michael O'Cleirigh
There is a patch to RadioGroup in JIRA (http://issues.apache.org/jira/browse/WICKET-1055) that allows for this type of scenario to be handled. It defines some methods to programatically define which Radio's are part of a RadioGroup. Alternately you could could try something like: table

RE: Suggested Enhancement To Spring Support

2008-03-20 Thread Zappaterrini, Larry
I suppose I need to learn more about how Spring support is implemented in Wicket. My thinking was that the injected property would simply get set to null. Then the getter for that injected property can perform a null check and lazily initialize it with a default type if necessary:

Re: the wicket markup reference

2008-03-20 Thread Erik van Oosten
Do you mean http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html? Regards, Erik. Vitaly Tsaplin schreef: Hi everyone, Is there any wicket markup reference? Is it documented? Vitaly -- Erik van Oosten http://day-to-day-stuff.blogspot.com/

Re: the wicket markup reference

2008-03-20 Thread Vitaly Tsaplin
Wow! Exactly. Thanks Erik. On Thu, Mar 20, 2008 at 2:56 PM, Erik van Oosten [EMAIL PROTECTED] wrote: Do you mean http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html? Regards, Erik. Vitaly Tsaplin schreef: Hi everyone, Is there any wicket markup reference? Is it

Re: Suggested Enhancement To Spring Support

2008-03-20 Thread lars vonk
Spring support in Wicket works with proxies, so your services are not Serialized by Wicket, but your Proxy is. With your suggestion your Service will be Serialized and with it all its dependencies like DAO's etc. This will most likely cause trouble when you are in a clustered environment and use

RE: Suggested Enhancement To Spring Support

2008-03-20 Thread Zappaterrini, Larry
Thanks for the explanation, that makes perfect sense. From: lars vonk [mailto:[EMAIL PROTECTED] Sent: Thu 3/20/2008 10:16 AM To: users@wicket.apache.org Subject: Re: Suggested Enhancement To Spring Support Spring support in Wicket works with proxies, so your

Re: How do I elegantly put feedback per form field?

2008-03-20 Thread mnwicket
Take a look at the Forms with Flair example at http://londonwicket.org/ -Craig Ned Collyer wrote: How can I elegantly put a feedback panel per form field eg, Email address is required Email: [__] This is not a valid phone number Phone: [asfafadsfafa] This seems like a

Re: DefaultDataTable not paging correctly

2008-03-20 Thread KennyS
Could you provide the code for your SortableUserDataProvider, please? Greg Dunn-3 wrote: My debugging indicates my SortableDataProvider is always getting a 0 for the 'first' parameter. Any ideas why this would happen? -- View this message in context:

RE: DefaultDataTable not paging correctly

2008-03-20 Thread Greg Dunn
Sorry, here it is: NB: I'm using Spring and iBatis. iBatis *is* returning the expected records based on what is getting passed to my DAO's (first 0, count 10). public class SortableUserDataProvider extends SortableDataProvider { List users; Integer gwCmpnyId; public

Re: How do I elegantly put feedback per form field?

2008-03-20 Thread Ned Collyer
Thanks Craig, Perfect. Super perfect :) mnwicket wrote: Take a look at the Forms with Flair example at http://londonwicket.org/ -Craig -- View this message in context: http://www.nabble.com/How-do-I-elegantly-put-feedback-per-form-field--tp16172288p16181115.html Sent from the

Javadoc problem ?

2008-03-20 Thread Eyal Golan
Has anyone noticed that there are many missing classes in http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/index.html Or am I missing something? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/

Re: Nice absolute urls - is this possible?

2008-03-20 Thread Johan Compagner
you are worried about what is in the source? so you dont really need it for something else like in an email? but wicket generates for itself relative urls if you need a full for yourself you can use RequestUtils.toAbsolutePath On Thu, Mar 20, 2008 at 11:36 AM, Java Programmer [EMAIL PROTECTED]

Re: How do I elegantly put feedback per form field?

2008-03-20 Thread James Carman
On 3/20/08, Ned Collyer [EMAIL PROTECTED] wrote: Thanks Craig, Perfect. Super perfect :) Yeah, that's really cool! I think I might borrow your ideas on our project at work. Thanks! - To unsubscribe, e-mail: [EMAIL

Re: Javadoc problem ?

2008-03-20 Thread Martijn Dashorst
It would help if you would specify which classes you miss. Martijn On 3/20/08, Eyal Golan [EMAIL PROTECTED] wrote: Has anyone noticed that there are many missing classes in http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/index.html Or am I missing something? -- Eyal Golan

Re: Javadoc problem ?

2008-03-20 Thread Gerolf Seitz
these are just the javadocs for the wicket core project. you can find the classes for wicket-extensions here, in case you missed one of the classes in there: http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/index.html more projects (datetime, spring, ...) will follow soon.

Re: Javadoc problem ?

2008-03-20 Thread Sergej Logis
I assume missing classes are all from wicket-extensions package. There is (somewhat hidden) link to the missing part: http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/index.html --- Sincerely, Sergej Logiš Software developer Exigen Services ICQ: 12510115

RE: DefaultDataTable not paging correctly

2008-03-20 Thread KennyS
In the constructor that takes the company id in SortableUserDataProvider, you are retrieving all users for the specified company id and assigning that to the users class-level variable. But, in the iterator() method, you retrieve another subset (page) of users and assign it to the same users

Display of own message in FeedbackPanel

2008-03-20 Thread Fabien D.
Hi everybody, I'm a new french user of wicket, and i 'm apologizing in advance for english and comprehension mistakes. So, I want to display in a FeedbackPanel my own messages for especially events. For example, in my suscribing panel, the user has to write twice his password. So I want to

RE: Display of own message in FeedbackPanel

2008-03-20 Thread Greg Dunn
Wicket has a gadget for that since 1.2. In your form: add(new EqualPasswordInputValidator(password, repeatPassword)); -Original Message- From: Fabien D. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 11:25 AM To: users@wicket.apache.org Subject: Display of own message in

Re: Display of own message in FeedbackPanel

2008-03-20 Thread Scott Swank
You can use the EqualInputValidator to compare the password values. Then you can override resourceKey() to tell Wicket to look for your own error message in .properties. On Thu, Mar 20, 2008 at 9:24 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi everybody, I'm a new french user of wicket, and i

Re: Display of own message in FeedbackPanel

2008-03-20 Thread Martijn Dashorst
I wouldn't advise the EIV for password fields... the default message will show the input values... For password fields, we have: EqualPasswordInputValidator Martijn On 3/20/08, Scott Swank [EMAIL PROTECTED] wrote: You can use the EqualInputValidator to compare the password values. Then you

Re: Display of own message in FeedbackPanel

2008-03-20 Thread Fabien D.
Thank you all for you responding speed :) Amazing Okay i will check tomorrow for this issue.But if my condition is not take care by Feedback An other exemple, i want to check if the email of the user is already in my database, and display a error message in my FeedbackPanel in this case. How

Re: Mounting and intercept pages

2008-03-20 Thread Igor Vaynberg
it all depends on what url your security strategy intercepts - that is the url continuetoorigdest will use. so if your strategy intercepts a bookmarkable url you should be good, but if it intercepts a link url like ?wicket:interface that is where you will go back to... -igor On Thu, Mar 20,

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
are you adding the bheavior to Radio or RadioGroup, it needs to go to Radio components -igor On Thu, Mar 20, 2008 at 6:21 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: Ok, I noticed when I use AjaxFormComponentUpdatingBehavior, no JavaScript gets added to radio buttons. -Original

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
I'm adding AjaxFormComponentUpdatingBehavior to RadioGroup. If I add it to Radio I get a runtime exception that says AjaxFormComponentUpdatingBehavior can only be added to a FormComponent. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008

Re: Display of own message in FeedbackPanel

2008-03-20 Thread Igor Vaynberg
there are two ways. one: write a validator: email.add(new ivalidator() { validate(ivalidatable v) { if (!validemail(v.getvalue()) v.add(new validationerror().setresourcekey(my.error)); } two: do it in onsubmit handler of the form form.onsubmit() { if (!validemail(email)) {

Re: Display of own message in FeedbackPanel

2008-03-20 Thread Martijn Dashorst
Create your own validator, or do the check in onSubmit(), and create the error message using error(). Martijn On 3/20/08, Fabien D. [EMAIL PROTECTED] wrote: Thank you all for you responding speed :) Amazing Okay i will check tomorrow for this issue.But if my condition is not take care by

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
right. see AjaxFormChoiceComponentUpdatingBehavior -igor On Thu, Mar 20, 2008 at 10:02 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: I'm adding AjaxFormComponentUpdatingBehavior to RadioGroup. If I add it to Radio I get a runtime exception that says AjaxFormComponentUpdatingBehavior can only

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
I added the AjaxFormChoiceComponentUpdatingBehavior to Radio objects and I got a runtime exception (can only be added to...), then I added it to the RadioGroup and nothing happens when I change the selection! -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent:

RE: error occurs in IE when I click on button in wicket application deployed in JBoss

2008-03-20 Thread Patel, Sanjay
Hi, I am trying to deploy a small wicket application in JBoss. It works fine in fire fox and does not work in IE. I access my application at http://localhost/; When I click on any button in my application it goes to http://localhost/./ http://localhost/./ and it display Directory Listing

RE: DefaultDataTable not paging correctly

2008-03-20 Thread Greg Dunn
Thanks, I'm keeping all my users, and the sorting and paging work now. There is one glitch though, when I click a column header to resort, I'm only resorting the items that are in view on the current page, not the entire set. That doesn't seem right, can it be rectified? -Original

optional components in markup

2008-03-20 Thread Andrew Broderick
Hi, Is there a way to mark a component in markup as optional, so it renders it if it's there, but leaves it out if not? Or, if I don't want a certain component to appear (decided by logic at runtime), do I just have to insert a placeholder component, such as an empty label? Thanks

Re: optional components in markup

2008-03-20 Thread James Carman
On 3/20/08, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, Is there a way to mark a component in markup as optional, so it renders it if it's there, but leaves it out if not? Or, if I don't want a certain component to appear (decided by logic at runtime), do I just have to insert a

RE: DefaultDataTable not paging correctly

2008-03-20 Thread Kenny Stainback
I would not perform an in-memory sort of the entire collection you are attempting to page, as in your example. One benefit of paging is not having to return the entire dataset from the backend. If your company has hundreds or thousands of users, this will become a performance issue. In the

RE: error occurs in IE when I click on button in wicket application deployed in JBoss

2008-03-20 Thread Patel, Sanjay
some more information. If I use sub context in jboss-web.xml then it works fine. e.g. jboss-web context-root/wtp/context-root /jboss-web One thing I found out is, If I click on button and the response page is not mounted, it does not work. If I click on button and the response page is

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
OK, now I changed my code to this: add(nanp = new RadioChoice(nanp, new PropertyModel(this, phoneNumber.nanp), Arrays.asList(new String[] { true, false }))); nanp.add(new AjaxFormComponentUpdatingBehavior(onclick) {

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
in onupdate you should be calling getmodelobject() -igor On Thu, Mar 20, 2008 at 10:55 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: OK, now I changed my code to this: add(nanp = new RadioChoice(nanp, new PropertyModel(this, phoneNumber.nanp), Arrays.asList(new String[] {

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
there is also a bug report in jira for formchoice..behavior, see if that affects you... -igor On Thu, Mar 20, 2008 at 11:08 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: in onupdate you should be calling getmodelobject() -igor On Thu, Mar 20, 2008 at 10:55 AM, Zhubin Salehi [EMAIL

Listview hierarchy problem

2008-03-20 Thread Bruce McGuire
Hello. I have a panel that contains a form, which contains a list view with two items, a label and a button. I have tried a gajillion different combinations, but I keep getting the unable to find component error. Any hints that you can provide would be HUGELY appreciated. The panel

problem adding two links to a page

2008-03-20 Thread guytom
Hi, I am almost new to Wicket so I hope it's not a stupid question. I am encountering an odd problem when adding two links to a single page in a single DataView: for some reason clicking on the second link gets to the onClick of the first one. When I removed the first one from the page,

Re: Listview hierarchy problem

2008-03-20 Thread Igor Vaynberg
should be listItem.add(pn/rp) also in the future it helps a lot if you paste the stacktrace -igor On Thu, Mar 20, 2008 at 11:33 AM, Bruce McGuire [EMAIL PROTECTED] wrote: Hello. I have a panel that contains a form, which contains a list view with two items, a label and a button. I have

mavn build errors

2008-03-20 Thread Ritz123
Hi, Trying to build Wicket from svn trunk - tried mvn eclipse:eclipse and mvn install - keep getting mojo descriptors not found error. [INFO] Building Wicket Quickstart Archetype [INFO]task-segment: [install] [INFO]

Re: problem adding two links to a page

2008-03-20 Thread guytom
non issue, it was a javascript on the page guytom wrote: Hi, I am almost new to Wicket so I hope it's not a stupid question. I am encountering an odd problem when adding two links to a single page in a single DataView: for some reason clicking on the second link gets to the onClick of

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
On Wed, Mar 19, 2008 at 10:54 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: yes. there is a phase of processing that goes through and collects the feedback messages. you are reporting the error after that phase most likely, so it will get picked up next request. i wonder if calling

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-20 Thread Matthew Young
if you are willing to work with us on it i think we might be able to host it on wicket-stuff... I'll glad to. Just let me know what to do. On Wed, Mar 19, 2008 at 10:53 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: ah, i see. if you are willing to work with us on it i think we might be able to

StartFound: You can now submit/edit your own content

2008-03-20 Thread Dan Kaplan
Hi, This is the second time I've mentioned StartFound. I hope it's not considered spam at this point. If so, this'll be my last update about it but this update is very important. You can now submit/edit your own content to http://www.startfound.com http://www.startfound.com/ So if anyone

Re: mavn build errors

2008-03-20 Thread James Carman
On 3/20/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, Trying to build Wicket from svn trunk - tried mvn eclipse:eclipse and mvn install - keep getting mojo descriptors not found error. [INFO] Building Wicket Quickstart Archetype [INFO]task-segment: [install] [INFO]

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
Don't know what happen to my last reply. Try again: i wonder if calling feedbackpanel.detach() will help before you add it to the ajax request target... No, this doesn't make the message show up either. yes. there is a phase of processing that goes through and collects the feedback messages.

AjaxEventBehavior never being called

2008-03-20 Thread Michael Mehrle
I've got an inner subclass of Radio: private class FooRadio extends Radio { public FooRadio (String id, IModel model) { super(id, model); setOutputMarkupId(true); add(new AjaxEventBehavior(new

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Igor Vaynberg
On Thu, Mar 20, 2008 at 12:59 PM, Matthew Young [EMAIL PROTECTED] wrote: Small wish: in GMail, when their Ajax submit fails (either user submit or auto background submit), they don't go to a new page, they flash a message System error, trying again. It would be great if Wicket can support

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matej Knopp
It depends on the kind of error. Sometimes when it's xmlhttprequest error we get no notification of it. -Matej On Thu, Mar 20, 2008 at 9:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Thu, Mar 20, 2008 at 12:59 PM, Matthew Young [EMAIL PROTECTED] wrote: Small wish: in GMail, when their

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matej Knopp
This doesn't work because the model.getObject method is only called when the value is pulled out of the model, which is on label render. Even if you refresh it on ajax request, it might be too late because the feedback panel retrieves the feedback messages in onBeforeRender (before actual

RE: AjaxEventBehavior never being called

2008-03-20 Thread Michael Mehrle
Never mind - not sure what I was thinking needed to name the JS event properly. Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:06 PM To: users@wicket.apache.org Subject: AjaxEventBehavior never being called I've got an

Re: Wicket throws ConcurrentModificationException in RequestCycle.detach() on rare occasions

2008-03-20 Thread Maurice Marrink
As requested by Johan i created a jira issue https://issues.apache.org/jira/browse/WICKET-1438 and attached an application showing the original problem. Maurice On Thu, Mar 20, 2008 at 12:22 AM, Maurice Marrink [EMAIL PROTECTED] wrote: My current patch involved this: for (int i = 0; i

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
add an iajaxcalldecorator override failed script Would that work if failure happen late in rendering? By that time, Wicket would be on the onSuccess path, right? For my Wicket education: I notice the IAjaxCallDecorator callbacks are only called once. So are these for fixed static script only?

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Igor Vaynberg
why would it be onsuccess path? this is something that runs clientside... they are executed every time the component rendered, and no you shouldnt touch ajaxreqesttarget from a call decorator, notice how it is not passed in... -igor On Thu, Mar 20, 2008 at 2:38 PM, Matthew Young [EMAIL

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
Then what? In real app, the model is calling some flakey remote service that can fail. Is there no way to show error message on the same page? That the only thing is put up a different error page? On Thu, Mar 20, 2008 at 1:29 PM, Matej Knopp [EMAIL PROTECTED] wrote: This doesn't work because

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
they are executed every time the component rendered That's true for non-Ajax, but if Ajax, it's not called again. It make sense to me because the form is not rendered. no you shouldnt touch ajaxreqesttarget from a call decorator I don't mean in the decorator. I mean in the

Redirect after post Issue

2008-03-20 Thread Jeremy Levy
I have been having trouble with this for a couple of months, it seems that redirects in Wicket 1.3.x seem to be writing out the URL incorrectly in our set up. We are running JBoss 4.2 with embedded Tomcat 5.5 using Apache/2.2.4 with mod_proxy. The Tomcat URL for the application is

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Igor Vaynberg
decorator generates scripts that execute on the client side. so onfailure() is a handler that will be executed by clientside javascript if ajax request fails, it has nothing to do with button.onerror() -igor On Thu, Mar 20, 2008 at 2:54 PM, Matthew Young [EMAIL PROTECTED] wrote: they are

How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
I have a WMC that I added an AjaxEventBehavior(onclick) to. Inside I want to set the focus to a particular textfield - how would I do that? I have seen some techniques on how to do this on page load, but this is AJAX so I need something dynamic. Anyone solved this problem before? Michael

Re: mavn build errors

2008-03-20 Thread Ritz123
Thanks for the quick response. Just to complete the thread - for ppl like me who are not too familiar with maven - the way to force plugin version - in our case plugin-plugin is the plugin!! Add that to Wicket top level pom.xml file under build section along with other plugins. Make sure in the

Re: How to set focus to a textfield inside AJAX

2008-03-20 Thread Igor Vaynberg
why cant you do this with javascript without ajax?? seems like a huge waste to have a server callback just to set focus -igor On Thu, Mar 20, 2008 at 3:14 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a WMC that I added an AjaxEventBehavior(onclick) to. Inside I want to set the focus to

Re: Redirect after post Issue

2008-03-20 Thread Jeremy Levy
Slight correction: With IRequestCycleSettings.ONE_PASS_RENDER most form submits seem to work except in the case of continueToOriginalDestination... Everything else still fails. J On Thu, Mar 20, 2008 at 6:09 PM, Jeremy Levy [EMAIL PROTECTED] wrote: I have been having trouble with this for a

Re: mavn build errors

2008-03-20 Thread James Carman
On 3/20/08, Ritz123 [EMAIL PROTECTED] wrote: Thanks for the quick response. Just to complete the thread - for ppl like me who are not too familiar with maven - the way to force plugin version - in our case plugin-plugin is the plugin!! Add that to Wicket top level pom.xml file under

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
Well, it doesn't necessarily have to happen in there. What I need to do is to bind a Radio component to a TextField component. When the Radio gets clicked I want the focus in it's TextField to be set. Any ideas? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED]

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Igor Vaynberg
in a real app people will be invested in fixing the issue and not having someone else do their homework for them :) like i said, right now we consider errors in models unrecoverable - eg you go to an error page. seemed to satisfy everyone for 3? years that wicket has been out. that said, you can

Re: How to set focus to a textfield inside AJAX

2008-03-20 Thread Igor Vaynberg
textfield.setoutputmarkupid(true); radio.add(new behavior() { oncomponenttag(tag) { tag.put(onclick, getelementbyid('+textfield.getmarkupid()+').focus();})); -igor On Thu, Mar 20, 2008 at 3:51 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Well, it doesn't necessarily have to happen in there.

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
I was actually trying something close with overriding renderHead(IHeaderResponse iHeaderResponse). Didn't seem to stick though... Just for the record - would the above method be an alternative to making this work? Thanks a bunch - saved my day. Cheers, Michael -Original Message- From:

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
Wasn't working until I changed the event on the radio to onFocus - just FYI :-) Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 3:56 PM To: users@wicket.apache.org Subject: Re: How to set focus to a textfield inside AJAX

Re: Redirect after post Issue

2008-03-20 Thread brian.diekelman
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse This directive lets Apache adjust the URL in the Location, Content-Location and URI headers on HTTP redirect responses ProxyPassReverse is the culprit here, not anything to do with Wicket. Jeremy Levy-3 wrote: I have

Re: Redirect after post Issue

2008-03-20 Thread brian.diekelman
...and after reading your post a little closer, I flipped the directive parameters in my head. I don't think there's anything wrong with your ProxyPass directives. Sorry about that... -- View this message in context:

  1   2   >