Re: [Wicket-user] wicket:param tag example
ok, it is not easy in all situations. It works fine with wicket:container like markup, but it does have some problems with standard components. I'll try to fix it. Juergen On 6/15/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: yes, javadoc (and wiki) should be improved. But using it /should/ actually be very easy. In your example, the component associated with myTable must implement setRowsPerPage(String). Why I tend to say it needs some improvement is because we don't do type conversion. The parameter is simply a String and will contain exactly what is the tags attribute value. Juergen On 6/15/05, Gili [EMAIL PROTECTED] wrote: We could definately use extensive documentation on this feature. I remember trying to use it a few months back and getting stuck too. If it is functional, maybe Juergen can post something on Wiki to explain how it is used? Gili David Ayre wrote: First off, been using wicket just a few weeks and absolutely love it, although it takes a while to wrap your head around component based web development, ok... on with my problem... I've seen reference in this list to a param attribute: wicket id=[mycomp] param1=foo param2=bar/ and wicket:param key=value/ on the list and see it used in the test cases, but i can't for the life of me figure out how to actually use this and get at the value from within the component. Also, JavaDoc for the WicketParamTagHandler says: This is a markup inline filter. It identifies Wicket parameter tags like wicket:param key=value/ and assigns the key/value pair to the attribute list of the immediately preceding Wicket component. Example: tabletr wicket:id=myTable wicket:param rowsPerPage=10/ ... /tr/table which seems to indcate there is a nice publically accessible attribute list/map in the component where i can get the values... but on the dev list there was mention that there wasn't a simple way to get at the attribute values: http://sourceforge.net/mailarchive/message.php?msg_id=10473381 Being able to set a parameter key/value pair in the markup and retreive this from the component would be very useful to me, and i'm sure others. Am i missing something, or has any work been done on this or planned in the near future ? d --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best way to override FeedbackPanel with a custom template?
Well, I need to change the display of the panel based on the highest level of error. Is there a way to do that with the class as it exists now? -Phil On 6/15/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Maybe, but you need to provide a good use case for that first ;) I think as it is now, you can override anything you need, while it still hasn't too many extension points. Eelco Phil Kulak wrote: How about an initPanel() method, or similar, that's called in onBeginRequest() that subclasses can override? On 6/15/05, Phil Kulak [EMAIL PROTECTED] wrote: Thanks! That's exactly what I needed. :) -Phil On 6/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Ah, so /that's/ why Jonathan allways makes everthing final by default :) That method actually wasn't meant for overriding, just forgot to mark it final. Another thing I forgot is to turn of versioning for this component. Just makes no sense for the feedbackpanel. I made these fixes in both HEAD (1.1) and 1.0, and added some methods that are convenient (without exposing too much) when extending FeedbackPanel. Find it attached. With the new version you could create a custom feedback panel like: /** * Custom feedback panel that only displays when there is any message. */ private final class MyFeedbackPanel extends FeedbackPanel { /** * Construct. * @param id component id */ public MyFeedbackPanel(String id) { super(id); } /** * @see wicket.Component#isVisible() */ public boolean isVisible() { return anyMessage(); } } Phil Kulak wrote: I would like the make a feedback panel that also includes a brief message at the top of the list. This means that I have to make the panel invisible when there are no messages. I tried this: @Override public void setCollectingComponent(Component component) { super.setCollectingComponent(component); if (component.hasErrorMessage() || component.hasFeedbackMessage()) { this.setVisible(true); } else { this.setVisible(false); } } but that gives me a wierd no page found for component error for my form. Is there a better way to do this? Thanks! --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: wicket:param tag example
ok, it is not easy in all situations. It works fine with wicket:container like markup, but it does have some problems with standard components. Ill try to fix it. Juergen Thanks for the quick replies Juergen, when you say wicket:container like markup, do you mean like wicket:panel ? All i'd like to do at the moment is set a parameter that i can retrieve in my Panel subclass. I have this in my markup: wicket:panel myParameter=foo ... ... And in my Panel subclass, i have a myParameter field with getters and setters. This field is not being assigned a value after the component is rendered, the setter is not being called. Should this work ? Am i doing something wrong ? d --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Does wicket-stuff Spring Integration project have an example?
i can't find it --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Does wicket-stuff Spring Integration project have an example?
see project wicket-stuff module wicket-contrib-pring-exampes Juergen On 6/16/05, [EMAIL PROTECTED] wrote: i can't find it --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user