AW: How to render any Component

2010-03-30 Thread Stefan Lindner
Hi Martin, this would be very helpful. Until then I will use a workaround and check the type of Component. Stefan. -Ursprüngliche Nachricht- Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Gesendet: Montag, 29. März 2010 22:05 An: users@wicket.apache.org Betreff: Re:

Re: How to render any Component

2010-03-30 Thread Martin Makundi
Hi! I got a hint from Michał, see also this: http://www.wickettraining.com/ws-sites/minis-parent/minis/xref/org/wicketstuff/minis/apanel/RenderersList.html http://www.wickettraining.com/ws-sites/minis-parent/minis/xref/org/wicketstuff/minis/apanel/ Mix that with mashupcontainer and bam, you can

Wicket Session Lifecycle Methods????

2010-03-30 Thread corneliu.petrescu
Hey, I'm trying to store user application configuration in the session: things like prefered style, prefered locale, etc... Basically i store these things in a DB table for each user. When a user logs in i load his settings into the WebSession, the problem is when i have to persist the changes the

Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread Istvan Soos
Why don't you persist when do user actually does the change (on the interface)? Regards, Istvan On Tue, Mar 30, 2010 at 9:56 AM, corneliu.petrescu corneliu.petre...@theredpoint.ro wrote: Hey, I'm trying to store user application configuration in the session: things like prefered style,

Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread corneliu.petrescu
That was my first ideea but i can't since Session.getStyle, Session.setStyle are final. :( On Tue, 2010-03-30 at 10:06 +0200, Istvan Soos wrote: Why don't you persist when do user actually does the change (on the interface)? Regards, Istvan On Tue, Mar 30, 2010 at 9:56 AM,

Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread Istvan Soos
I meant that you probably have some forms in the application where you change these. Persist at that point, before/after calling the session's setters... Regards, Istvan On Tue, Mar 30, 2010 at 10:18 AM, corneliu.petrescu corneliu.petre...@theredpoint.ro wrote: That was my first ideea but i

Re: change tr background color when ListView iterate....

2010-03-30 Thread Arnaud Garcia
Grrr, I had the SimpleAttribute to the Label of my Item not to my item directly ... I didn't know that the item was attached to the tr... thanks for help Arnaud 2010/3/29 Martijn Dashorst martijn.dasho...@gmail.com each list item is attached to the tr tag. Therefore the OddEvenItem

Re: Wicket and JEE6

2010-03-30 Thread Olivier Bourgeois
I do also think that it's because Wicket is not a managed framework : everything is simple unmanaged POJOs except for your classes extending WebPage which are managed. I've juste had a quick look at JSF 2.0 and never worked with it - but I worked with Wicket - so I did not expected Wicket JEE6

Catch Wicket.Error with FireBug

2010-03-30 Thread Martin U
Hi Folks, have everyone of you any experience in catching the wicket-ajax and js-errors with the Firebug? Easily we just need to overwrite WicketAjaxDebug.logError... but how? Thanks for any advice!

Re: Support for back button and new windows?

2010-03-30 Thread Sergey Olefir
Hi, thanks for the reply :) Some comments: - very hacky way is not appropriate (I think) as it'll break clustering, session persistence (server restart), etc. - less hacky: that's something I've been thinking about. But I'd need more specific information to go that way -- how to determine

Re: A web site developed with Wicket

2010-03-30 Thread Cemal Bayramoglu
Erdinç, Skype ID'in varsa konusalım. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 17 March 2010 19:52, voltron kocam...@yahoo.com wrote: Hello, http://www.nofailtime.com/appmonitor is a web application developed with

Re: Wicket and JEE6

2010-03-30 Thread Cemal Bayramoglu
Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If you'd like to make (and maintain ;-) an archetype out of those

Re: Wicket and JEE6

2010-03-30 Thread James Carman
Cemal, Please feel free to send me a patch if anything looks crazy. I have had a heck of a time getting all this stuff working. It's a delicate balance (like herding cats)! :) The OWB folks have checked in my patch to fix one of the issues, but we're still hammering out another. Thanks,

Re: Wicket and JEE6

2010-03-30 Thread Cemal Bayramoglu
James, See the patch below; please double-check but it should be still valid if you haven't updated your POMs since Sunday AM your time. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com == PATCH STARTS BELOW

Re: Wicket and JEE6

2010-03-30 Thread James Carman
I was using M4 of OWB, but I had to patch it. Are you sure it works for you? I was getting a NPE. On Tue, Mar 30, 2010 at 7:22 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: James, See the patch below; please double-check but it should be still valid if you haven't updated your

Re: Wicket and JEE6

2010-03-30 Thread Cemal Bayramoglu
James, I'm pretty sure mvn test ran successfully on all your projects once I patched the POMs. I ran some (maybe not all) of the demo apps too. Send me your patches if you like too (they must not have been deployed yet on Sunday) and I may be able to take another look this evening or tomorrow PM.

Re: better way setting up ID for a Wicket compone nt?

2010-03-30 Thread McIlwee, Craig
There's a good reason that markup ID doesn't match wicket ID. If I have a panel with a few form components, and then put 2 of those panels on the same page, then your approach would break things like document.getElementId(...) because there would be more than 1 element w/ same ID. Craig

My first WiQuery app does not work

2010-03-30 Thread David Chang
Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery 1.0, Tomcat 6.0.24 I downloaded wiquery and put its jar on the classpath. I copied the Hello World sample from http://code.google.com/p/wiquery/wiki/QuickStart Here is my code: HTML:- html head

Re: My first WiQuery app does not work

2010-03-30 Thread julien roche AKA indiana_jules
Hi, Have you enable wiquery in your Wicket application ? This link is an implementation of the WebApplication with the linked with Wiquery: http://code.google.com/p/wiquery/source/browse/branches/1.0.1/src/main/java/org/odlabs/wiquery/utils/WiQueryWebApplication.java Hope that helped you Julien

Re: Catch Wicket.Error with FireBug

2010-03-30 Thread Martin Funk
Could you elaborate on your problem a little more? What precisely do you want to do? If the Application is started in develompment mode the 'WICKET_AJAX_DEBUG window should be available on any Page containing Wicket-Ajax components. (The link in the right bottom corner) mf 2010/3/30 Martin U

Re: Wicket and JEE6

2010-03-30 Thread James Carman
I think everything I've done is checked in currently. I'll take a look at your patches later and see how things shake out. One thing I noticed was that my beans weren't being picked up from my local project if I didn't include a src/main/resources/META-INF/beans.xml file in there. I guess the

Re: Catch Wicket.Error with FireBug

2010-03-30 Thread MattyDE
Yeah i know this window. But there are all INFO outputs too and you could oversee an error very easy... And for instance if i evaluate some overlay functionality on my page, i cant open the debug window, cause any mouseclicks are catched by a overlaying layer ... Martin Funk-3 wrote: Could

Re: Pagination AjaxFallBackDataTable without charging all rows on memory

2010-03-30 Thread Daniela Valero
Hi Igor, thanks for your answer! Yesterday I was trying to reinvent the nose, finally I realized that the framework does the work that I need. :D 2010/3/29 Igor Vaynberg igor.vaynb...@gmail.com see IDataProvider -igor On Mon, Mar 29, 2010 at 1:17 PM, Daniela Valero

Public Wicket Training: London, Amsterdam, other cities

2010-03-30 Thread Cemal A Bayramoglu
The next batch of scheduled, public dates for intensive 2-day Wicket training [1] are: London [1]: Apr 10-11(Sat-Sun), Apr 12-13(Mon-Tue), May 8-9(Sat-Sun), May 10-11(Mon-Tue), Jun 3-4(Thu-Fri), Jun 5-6(Sat-Sun) Amsterdam [2]: May 27-28(Thu-Fri) Munich, Brussels: a few dates are still

Re: drop down problem

2010-03-30 Thread chinedu efoagui
thanks martin it worked On Sat, Mar 27, 2010 at 3:24 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ajax link does not submit form..  use submitlink or ajaxbutton ** Martin 2010/3/27 chinedu efoagui chinedub...@gmail.com: Hello all,  I have this dropdown that shows up a list

Re: Catch Wicket.Error with FireBug

2010-03-30 Thread Martin Funk
you mentioned FireBug How about setting a breaktpoint in 'wicket-ajax-debug.js' ? Or if recompiling the framework is an option, the logging could be modified in that file. wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-debug.js mf 2010/3/30 MattyDE ufer.mar...@gmail.com Yeah i know

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
Julien, Thanks for your reply and it works now. Strangely, I copied the example on that page, which does not ask me to extend WiQueryWebApplication. Something wrong with that Hello World example? Two quick questions: 1. My environment is JDK 1.6 and Wicket 1.4.7. WiQuery 1.0 should have no

Re: Wicket and JEE6

2010-03-30 Thread Olivier Bourgeois
2010/3/30 Cemal Bayramoglu jweekend_for...@cabouge.com Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If

Re: My first WiQuery app does not work

2010-03-30 Thread Cemal Bayramoglu
David, Adding the component instantiation listener is more flexible than extending WiQueryWebApplication. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 30 March 2010 15:18, David Chang david_q_zh...@yahoo.com wrote: Julien,

Re: My first WiQuery app does not work

2010-03-30 Thread julien roche AKA indiana_jules
Hi, The dialog display on dbclick because we bind the event on it : MouseEvent.DBLCLICK If you want to display on a simple click, use MouseEvent.CLICK Regards Julien Roche On Tue, Mar 30, 2010 at 4:29 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: David, Adding the component

Re: Wicket and JEE6

2010-03-30 Thread James Carman
On Tue, Mar 30, 2010 at 10:21 AM, Olivier Bourgeois olivier.bourgeois@gmail.com wrote: James,  you need an empty beans.xml file to let Weld know what to scan, this is explained much further in this blog entry : http://relation.to/Bloggers/WhyIsBeansxmlRequiredInCDI Yeah, I guess I

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
Julien, thanks for reply. Silly me. I should have looked at the sample code. I was too excited seeing the first app works. Best, David --- On Tue, 3/30/10, julien roche AKA indiana_jules roche@gmail.com wrote: From: julien roche AKA indiana_jules roche@gmail.com Subject: Re: My

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
In my experiment, the app does not work without extending WiQueryWebApplication. Is extending WiQueryWebApplication a must? The Hello World example does not extend WiQueryWebApplication and I copied the example code but it does not work. Best, David --- On Tue, 3/30/10, Cemal Bayramoglu

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
Martin and Jeremy, thanks for chiming. The suggested solutions work but IMHO none of them seem ideal in terms of less code, error-less, and refactoring. The best is to have that convenience method or use Wickt 1.5 where HTMLElement's id will be kept. All the best, David --- On Tue, 3/30/10,

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
Craig, I really appreciate your input. If a panel is reused more than one time on the same page, then the panel's components should not use IDs in the first place. It would always violate valid HTML. Correct? Regards. --- On Tue, 3/30/10, McIlwee, Craig craig.mcil...@openroadsconsulting.com

Missing markup files

2010-03-30 Thread Eric Reagan
All, I am getting an error message saying I am missing the Base markup for my webpages. Before I was using the PathStripperLocator function (linkhttp://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3). To try and debug I

Re: My first WiQuery app does not work

2010-03-30 Thread julien roche AKA indiana_jules
Hi, That's really odd. Can we see your code ? Thanks Julien Roche On Tue, Mar 30, 2010 at 6:31 PM, David Chang david_q_zh...@yahoo.comwrote: In my experiment, the app does not work without extending WiQueryWebApplication. Is extending WiQueryWebApplication a must? The Hello World example

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
Julie, Thanks for asking. The code is in the beggining of this thread. For that, I copied the Hello World example from wiquery site. If I make my wicket application extend WiQueryWebApplication, then everything is working fine. Thanks, David --- On Tue, 3/30/10, julien roche AKA

About WiQueryWebApplication

2010-03-30 Thread David Chang
IMHO, I am not quite sure this class (another indirection) is really necessary. All this class does is having a member variable: private WiQueryInstantiationListener wiqueryPluginInstantiationListener; and insert the following two lines into init(). wiqueryPluginInstantiationListener = new

jWicket 0.5.7

2010-03-30 Thread Stefan Lindner
jWicket 0.5.7 is comitted to wicktstuff core's trunk. It shows an implementation of a simple drop down menu. The menu uses jQuery only for IE6 issues. Take a look at the example TestPage. As always: if someone needs jar files... let me know. Teh jQuery-ui-menu implemenatiion is in a very early

Re: Catch Wicket.Error with FireBug

2010-03-30 Thread Pedro Santos
WicketAjaxDebug.original = WicketAjaxDebug.logError; WicketAjaxDebug.logError = function(msg){WicketAjaxDebug.original(msg);console.log(msg);}; On Tue, Mar 30, 2010 at 7:11 AM, Martin U ufer.mar...@googlemail.comwrote: Hi Folks, have everyone of you any experience in catching the wicket-ajax

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread Boris Goldowsky
IDs are needed for e.g. AJAX functionality. The default Wicket implementation of markup IDs will create them smartly, never creating duplicate ids even in the case of multiple instances of panels, repeaters, etc. As I understand Wicket best practice, it is never to call setMarkupId() at

Re: My first WiQuery app does not work

2010-03-30 Thread Edward Zarecor
Did you use component instantiation listener as suggested or just stop extending WiQueryWebApplication? Ed. Typed by thumb On Mar 30, 2010 3:05 PM, David Chang david_q_zh...@yahoo.com wrote: Julie, Thanks for asking. The code is in the beggining of this thread. For that, I copied the

RE: better way setting up ID for a Wicket component?

2010-03-30 Thread Stefan Lindner
Yes! Von: Boris Goldowsky [mailto:bgoldow...@cast.org] Gesendet: Di 30.03.2010 23:06 An: users@wicket.apache.org Betreff: Re: better way setting up ID for a Wicket component? IDs are needed for e.g. AJAX functionality. The default Wicket implementation of

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread Jeremy Thomerson
That's the point of what he's saying. It's easy to say that, but in practice, you may create a component that you don't think will ever be used on the same page twice, and then it is. That's why Wicket defaults to the safest practice of generating an ID for you. I typically avoid

Re: About WiQueryWebApplication

2010-03-30 Thread Jeremy Thomerson
This thread should have been on the wiQuery list. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 30, 2010 at 2:12 PM, David Chang david_q_zh...@yahoo.comwrote: IMHO, I am not quite sure this class (another indirection) is really necessary. All this class does is having a

Re: Missing markup files

2010-03-30 Thread Jeremy Thomerson
if it specifically says for your base page, then the other pages may not be the source of your problem, but just the single html file for your application's base page (assuming all others extend from this). make sure there are no typoes - that everything is spelled exactly like the class name.

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
I feel there is some misunderstanding on this thread now. Two things need to clear: 1. There is no need to call this convenience method on each wicket component. Nobody asks for that. 2. The method is there simply for the programmer to decide to use it or not and use it right. Without this

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread James Carman
And, I think one good reason not to do it is that you're making it easier to do something that isn't really recommended anyway (there are almost always workarounds for these situations). On Tue, Mar 30, 2010 at 8:50 PM, David Chang david_q_zh...@yahoo.com wrote: I feel there is some

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
Boris, thanks for sharing your thoughts: IDs are needed for e.g. AJAX functionality. I cannot agree on this. In the context of wicket for the web framework, you actually dont need to create ID. Let Wicket to create whatever ID wicket deems right. In my understanding, and actually in my

Can I prevent Wicket from overwriting my markup IDs?

2010-03-30 Thread David Chang
I am new in wicket. Just wanted to verify my understanding is right or not. If I have the following HTML: span id=hello wicket:id=helloworldsample text/span Does Wicket (as of version 1.4.7) always overwrite my markup ID? If not, what is the way of stoping Wicket doing that (i.e., keep my

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread Steve Swinsburg
If you just want to do this so you can style your markup, use the class attribute in your markup and convert your CSS #id's to .classes, if that's possible. cheers, Steve On 31/03/2010, at 12:03 PM, David Chang wrote: Boris, thanks for sharing your thoughts: IDs are needed for e.g. AJAX

Re: AJAXIFY Palette: Can't get to the Recorder

2010-03-30 Thread wicketnewuser
Hi i tried doing this it doesn't like adding AjaxFormComponentUpdatingBehavior . I thought when you meant AjaxFormComponentUpdatingBehavior by whateverbehaviour. i even added onupdate method that didn't help too. still getting null when doing pallet.getRecorderComponent. Please help

Re: Wicket and JEE6

2010-03-30 Thread Iskandar Salim
Olivier Bourgeois-2 wrote: ... everything is simple unmanaged POJOs except for your classes extending WebPage which are managed Not to be picky but a minor correction :) everything is simple unmanaged POJOs except for your classes extending [Component] which are managed --

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread Jeremy Thomerson
But why should we add something that makes it easier for a programmer to fall into a mistake that is not a recommended practice? It just causes us to have more traffic on this list with people needing help because they messed something up. We don't want to make it easier to mess up and generate

Re: Can I prevent Wicket from overwriting my markup IDs?

2010-03-30 Thread Jeremy Thomerson
setMarkupId(foo) - but this is not a recommended practice - see the other thread that you're on :) -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 30, 2010 at 8:09 PM, David Chang david_q_zh...@yahoo.comwrote: I am new in wicket. Just wanted to verify my understanding is right

AW: Fading Content Updates Into a Ajax Refreshing ListView

2010-03-30 Thread Stefan Lindner
Yes, this can be done with javascript. First of all you must decide which javascript library you want to use (scriptaculous/jQuery/etc.) Then you need to load it in your head section (use some HeaderContributor class for this). Now when you repaint yout list items with