Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Marco Springer
Hi Mansour For reloading different pages I'm using BookmarkablePageLink (non-ajax), that have the option for setAutoEnable(true)'. When this option is set for each BookmarkablePageLink and one BookmarkablePageLink is clicked on the website, the generated HTML for that link is changed. For

RE: Best way to periodically refresh an inmethod DataGrid?

2011-03-28 Thread Chris Colman
I ended up doing it all server side - overriding onSelectionChanged* and setting a selectedItem attribute. We then override isSelectedItem and return true if the given item 'equals' selectedItem - must make sure your IModel and domain classes all override equals and test for class match and non

make link invisible via onclick

2011-03-28 Thread hrbaer
Hi, is there a possibility to make a link invisible itself via onClick? At the moment I get an error The local variable link may not have been initialized. code: -- final Link link = new Link( test ) { @Override public void

RE: make link invisible via onclick

2011-03-28 Thread Wilhelmsen Tor Iver
is there a possibility to make a link invisible itself via onClick? link.setVisible( false ); Sure: Just use this instead of link, since this in the onClick() will be the anonymous object based on Link. - Tor Iver

RE: make link invisible via onclick

2011-03-28 Thread hrbaer
this works like a charm - thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/make-link-itself-invisible-via-onclick-tp3411327p3411347.html Sent from the Users forum mailing list archive at Nabble.com.

Re: make link invisible via onclick

2011-03-28 Thread Josh Kamau
Hi, How about something like this. private Boolean isLinkVisible = true ; ... final Link link = new Link(test){ @Override public void onClick(){ isLinkVisible = false ; } @Override public void isVisible(){ return isLinkVisible ; } } Kind regards.

issue with input type=reset

2011-03-28 Thread hrbaer
Hi all, let's assume there is a form with an input field an two buttons: submit and reset. Within the java code I add a new form component (extends Form) with an input field and implement the onSubmit() method. But: Is there a chance to implement some onReset() method so I can do some more stuff

Re: issue with input type=reset

2011-03-28 Thread hrbaer
Meanwhile I tried to add another submit button and just labeling that as a reset button. This is almost working but after calling the onSubmit method of my reset button the onSubmit method of my form get's triggered as well?! This is my button: - Button

Re: issue with input type=reset

2011-03-28 Thread Josh Kamau
Hi You can add a wicket button on your form and implement onClick/onSubmit on the button. There many buttons including ajax enabled ones. See javadocs for details. Something like form ... button wicket:id=myButton/button /form myForm.add(new Button(myButton){ @Override

RE: issue with input type=reset

2011-03-28 Thread Wilhelmsen Tor Iver
And idea how to avoid that behaviour? resetButton.setDefaultFormProcessing(false); - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

RE: issue with input type=reset

2011-03-28 Thread hrbaer
thanks - that's it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/issue-with-input-type-reset-tp3411379p3411433.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Error during headers validation since migration to 1.5

2011-03-28 Thread Pedro Santos
Hi adrien, yes, with a quickstart reproducing the error please. On Sun, Mar 27, 2011 at 8:54 PM, adriclad adrien.che...@gmail.com wrote: No answer... May I write a Jira ticket for 1.5-RC3 to inform this bug ? -- View this message in context:

Re: [1.5RC2] impossible to add cookies

2011-03-28 Thread Pedro Santos
Hi, just tested http://wicketstuff.org/wicket/authentication2 and the example set the cookie in response without problems. Open a ticket + quickstart reproducing the problem please. On Sun, Mar 27, 2011 at 8:48 PM, adriclad adrien.che...@gmail.com wrote: Anybody had the same problem ? May I

Development / Deployment mode problem

2011-03-28 Thread Tejash Tarun
Hi, I have used a jquery control full calendar from http://arshaw.com/fullcalendar/. I have used that control in a wicket application, where in one page there are two tabs, and in one tab there are some text-fields and in the other this calendar control. But now for my local server which is on

Re: Development / Deployment mode problem

2011-03-28 Thread MattyDE
My first clue: Are you using wicket:container Tags in your markup? In Deployment Mode this tags could not be rendered to the markup by Application Settings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Development-Deployment-mode-problem-tp3411737p3411751.html Sent

Re: [1.5RC2] impossible to add cookies

2011-03-28 Thread Vytautas R.
Hi, for me this part did work: store: new CookieUtils().save(ID, value); load: new CookieUtils().load(ID); On Mon, Mar 28, 2011 at 4:11 PM, Pedro Santos pedros...@gmail.com wrote: Hi, just tested http://wicketstuff.org/wicket/authentication2 and the example set the cookie in response

HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
This is simple code and works, do you think this is a way to add dynamic HTML comments that use some Wicket model? Or have you done something else? I am not as familiar with onComponentTagBody. public class HtmlComment extends Label { /** * @see

Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
Marco, thank you. I have implemented already the pages as a panel to be replaced, and this was a requirement to do it with ajax. So I can not follow this route at this point. But what you have here is the exact functionality I am after. It will be nice if I can disable the current link, but I need

Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
Josh, I tried to run the app, but I couldn't resolve an issue with maven. May be you have seen something similar before. I had deleted the corresponding wicket/1.4.12 direcotry from maven repo to forse it to re download, but no luck. I am using maven 3. Do I need to install all these required

Re: HTML comment tag

2011-03-28 Thread Pedro Santos
An reusable behavior can be archived using the MarkupComponentBorder. On a side note, why do you want to write commented model values in markup? On Mon, Mar 28, 2011 at 11:02 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: This is simple code and works, do you think this is a way

Re: just having another question how to clear form fields

2011-03-28 Thread hariharansrc
after clicking submit button the values are still there in field itself how to clear the field values -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3412291.html Sent from the Users forum mailing list

Re: just having another question how to clear form fields

2011-03-28 Thread Pedro Santos
Set a null/empty value in their model plus notify the component about changed models e.g. Component#modelChanged. e.g. form = new Form(new CompoundPropertyModel(new Bean()) form.add(new Field(someProperty); (...) form.add(new SubmitComponent(id){ onSubmit(){ form.setDefaultModelObject(new

RE: HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
They may contain information like a build number, version number of application for debugging purposes that I can see on the rendered HTML output. I was thinking of sub-classing label because the output of a comment is similar to that kind of markup. -Original Message- From: Pedro

Re: HTML comment tag

2011-03-28 Thread James Carman
We do this in our application by doing: add(new Label(debugInfo, new DebugInfoModel()).setEscapeModelStrings(false).setRenderBodyOnly(true)); private static class DebugInfoModel extends LoadableDetachableModelString { @Override protected String load() {

RE: HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
Oops, I didn't see this, is this the same thing? java.lang.Object org.apache.wicket.protocol.http.documentvalidation.Comment -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Monday, March 28, 2011 1:04 PM To:

[OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread nino martinez wael
Hi guys Been a while, but theres cash in the shop[1] again so that means it's time to give out some merchandise :) So lets round up some nominees for the very prestigious Apache Wicket Merchandise community AWARD program.. I nominate Igor for doing his Wicket cookbook[2] Michael O'Cleirigh for

Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread Attila Király
Hi! I nominate Martin Grigorov for his continuous, dedicated work on wicket and friendly help for users. Attila 2011/3/28 nino martinez wael nino.martinez.w...@gmail.com Hi guys Been a while, but theres cash in the shop[1] again so that means it's time to give out some merchandise :) So

Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread Josh Kamau
I nominate Martin Grigorov a and Pedro Santos. Thanks to them, none of my questions has gone un answered in this forum. josh. On Mon, Mar 28, 2011 at 8:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi guys Been a while, but theres cash in the shop[1] again so that means it's

Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread Bruno Borges
I nominate Michael for his great work at WicketStuff and Pedro who's brazilian like me and representing Latin America (and will probably own me a beer the next time he comes to Rio)... :-) Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by

Re: StatelessForm redirect

2011-03-28 Thread lovewicket
It looks like onSubmit, request first comes to the current page and then it gets forwarded to the results page. I am not sure why this is the case. In stateless application, loading the current page again fails the validation because the parameters that are needed to build the current page are not

Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-28 Thread Martin Grigorov
Hehe :-) Thanks Attila! I'd like to nominate Igor for everything he did and still does for Wicket and Open Source as whole! I'm also one of the technical reviewers of his book and I can say there are really useful recipes even for more experienced users like me! Nominating second place is really

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Do you get the same error when mounting the page using a QueryStringEncodingStrategy? On Monday, March 28, 2011, lovewicket pey...@hotmail.com wrote: It looks like onSubmit, request first comes to the current page and then it gets forwarded to the results page. I am not sure why this is the

Re: StatelessForm redirect

2011-03-28 Thread lovewicket
Yes. I have the following in my application class: mount(new QueryStringUrlCodingStrategy(/searchresults, SearchResultsPage.class)); It didn't work. I am not sure why wicket doesn't directly go to the specified page instead of loading the current page again and then going to the specified page.

Re: Set all form fields to output markup id automatically

2011-03-28 Thread Jeremy Thomerson
On Sun, Mar 27, 2011 at 11:43 PM, Bruno Borges bruno.bor...@gmail.comwrote: For now, I simply did this: object autoMarkupId extends IComponentInstantiationListener { def onInstantiation(component: Component) { if (component.isInstanceOf[FormComponent[_]]) {

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Wicket uses a 2 step render : http://wicket.apache.org/apidocs/1.4/org/apache/wicket/settings/IRequestCycleSettings.html Have you tried using setRenderStrategy(ONE_PASS_RENDER ONE_PASS_RENDER) in your application? -Clint On Mon, Mar 28, 2011 at 7:37 PM, lovewicket pey...@hotmail.com wrote:

Re: StatelessForm redirect

2011-03-28 Thread lovewicket
I tried to put the following in my application class, but unfortunately got the same results (application tries to load the current page and then redirect the request): getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); -- View this message in context:

Re: StatelessForm redirect

2011-03-28 Thread Clint Checketts
Ah, the trouble is in your NPE: java.lang.NullPointerException at index.AbcPage.validateParams( AbcPage.java:258) As long as that exception remains unhandled, the pages won't hand off. The Form has to resubmit back to the page the form lives on since that is where the form listener is