Re: Ajax wizard and page anchor
Put it on wicket stuff, that way theres a common place for you On Feb 4, 2011 5:05 PM, N. Metzger nmetz...@odu.edu wrote: Thanks Pedro and Ernesto. And yes, I'll take any code you'd like to share, no need to reinvent the wheel :-) Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-wizard-and-page-anchor-tp2223007p3260445.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: MarkupId generation
On 02/04/2011 09:07 PM, msj121 wrote: You could have an automatic listener that takes the getMarkupId(...) and preppend, or append to the id, or do it by hand (not my favourite choice). good idea. i´ll try just setMarkupId(prefix+getMarkupId()) with an IComponentInstantiationListener. Perhaps, you can change the non-wicket ids? would that help? I am not sure why there would be collisions, could you explain more? the point is that the functional benefits of the wicket app are supposed to be included in a third-party-web-page with only a script tag (just like banners normally do). therefore i have no control over the ids already used in the page, that the wicket app is supposed to be included in. Perhaps there is a more elegant solution, without using wicket believe me, i tried. what is to be included has quite some conversation state, so that doing all this ajaxy stuff with just bare-knuckle servlets jQuery is so incredibly hard to do, that i came back to wicket after almost 2 days, i now deeply regret ;) thanks, uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL generation
On 02/04/2011 08:37 PM, Erik van Oosten wrote: Hi Erik, I sometimes use absolute URLs in a project. For code see https://issues.apache.org/jira/browse/WICKET-1974 splendid, thanks! uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mapping wicket:id to component without changing Java code
Hi, some days ago, I experimented with exactly the same usecase (letting webdesigners place components on a Wicket Page), i wrote a small BlogEntry (unfortunately in German, but maybe Google could translate). http://splitshade.wordpress.com/2011/01/27/wicket-markup-komponenten-braucht-man-das/ Bye Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mapping-wicket-id-to-component-without-changing-Java-code-tp3250381p3262231.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mapping wicket:id to component without changing Java code
create your own component resolver Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Jan 31, 2011 7:52 PM, Alec Swan alecs...@gmail.com wrote: Hello, I would like to add credit card processing form to many different pages in my application. However, I don't know which pages it will be added to and it is up to the web designer to decide. I would like to allow the web designer to be able to put div wicket:id=creditCardForm/ anywhere in HTML. This would typically cause Wicket to throw an error saying that a matching component was not added. Is there a way to configure Wicket to somehow add an instance of CreditCardForm class whenever it sees div wicket:id=creditCardForm/? Thanks, Alec
Calculating wicket page URL in JavaScript
Hello, I have a common.js file which has a JavaScript function getProjectPageUrl(projectId) which should return the URL to the Wicket ProjectPage object which displays properties of the project with the specified projectId. I am not sure if this is relevant, but ProjectPage is mounted in my Wicket application as follows mount(new HybridUrlCodingStrategy(project, ProjectPage.class)). I would like getProjectPageUrl function to work in DEV, QA and PROD environments, so I can't hard-code the server IP and webapp context. I remember there was a similar discussion where somebody suggested declaring a variable in common.js, e.g. var projectUrl = $projectUrl$, and then replacing $projectUrl$ on the Java side, but I can't find that forum thread anymore. Any help will be greatly appreciated. Thanks, Alec
Re: MarkupId generation
I see, well I am happy I could help, and it sounds like you have quite an interesting project. Good Luck, Matthew Uwe Schäfer-2 wrote: On 02/04/2011 09:07 PM, msj121 wrote: You could have an automatic listener that takes the getMarkupId(...) and preppend, or append to the id, or do it by hand (not my favourite choice). good idea. i´ll try just setMarkupId(prefix+getMarkupId()) with an IComponentInstantiationListener. Perhaps, you can change the non-wicket ids? would that help? I am not sure why there would be collisions, could you explain more? the point is that the functional benefits of the wicket app are supposed to be included in a third-party-web-page with only a script tag (just like banners normally do). therefore i have no control over the ids already used in the page, that the wicket app is supposed to be included in. Perhaps there is a more elegant solution, without using wicket believe me, i tried. what is to be included has quite some conversation state, so that doing all this ajaxy stuff with just bare-knuckle servlets jQuery is so incredibly hard to do, that i came back to wicket after almost 2 days, i now deeply regret ;) thanks, uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/MarkupId-generation-tp3258525p3262558.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org