Re: [Wicket-user] alternative for onrender() for extended Panel?
This would not work. My IFRAME is used to fix MSIE's anyoying behaviour to ignore a DOM node's z-index when it is over windowed controls (i.e. SELECT box), which is pretty crucial for a Tooltip. A good fix for this is to place an IFRAME exactly behind the Tooltip. We have rewritten the Tooltip to work everywhere within wicket, except for this anoying little problem which make it unusable for a lot of occasions in MSIE... is there any way to emulate onRender()'s behaviour for a custom Panel and render my IFRAME after the Panel without adjusting the HTML? Juergen Donnerstag wrote: why not add it inside the panel? Juergen On 11/14/05, Marco van de Haar [EMAIL PROTECTED] wrote: We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static content after we render our component. We want to make our Tooltip easy to extend, so I can not put it in HTML. Normally you could put something like getResponse().write(IFRAME.../IFRAME) in the onRender() method. But for Panel this is final, so I can not overwrite it. Is there a way to solve this for a myPanel in my Java code? desired output is something like: span wicket:id=feedbacktooltip style=visibility:hidden; z-index:1; position:absolute id=id_fbi wicket:panel .think lot's of code here /wicket:panel /span IFRAME..some content here/IFRAME --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternative for onrender() for extended Panel?
And nest it inside your panel, so you can add the IFRAME yourself? Something like: wicket:panel div div tooltip magic/div iframe magic/iframe /div /wicket:panel Martijn On 11/15/05, Marco van de Haar [EMAIL PROTECTED] wrote: This would not work. My IFRAME is used to fix MSIE's anyoying behaviourto ignore a DOM node's z-index when it is over windowed controls (i.e.SELECT box), which is pretty crucial fora Tooltip. A good fix for this is to place an IFRAME exactly behind the Tooltip. We have rewritten theTooltip to work everywhere within wicket, except for this anoying littleproblem which make it unusable for a lot of occasions in MSIE... is there any way to emulate onRender()'s behaviour for a custom Paneland render my IFRAME after the Panel without adjusting the HTML?Juergen Donnerstag wrote:why not add it inside the panel? JuergenOn 11/14/05, Marco van de Haar [EMAIL PROTECTED] wrote:We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static contentafter we render our component. We want to make our Tooltip easy toextend, so I can not put it in HTML. Normally you could put something likegetResponse().write(IFRAME.../IFRAME) in the onRender() method.But for Panel this is final, so I can not overwrite it. Is there a way to solve this for a myPanel in my Java code?desired output is something like:span wicket:id=feedbacktooltip style=visibility:hidden; z-index:1; position:absolute id=id_fbi wicket:panel .think lot's of code here /wicket:panel/spanIFRAME..some content here/IFRAME ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Locale problems
FYI: The dutch language exists for two dialects: nl_NL ('the Netherlands') and nl_BE ('Belgium'). Even though I can understand Belgium programs broadcasted on belgium tv completely (the intonation is different, but other than that, nothing too different), when the same program is transmitted on a dutch tv station, they SUBTITLE it. Wierd. Martijn
Re: [Wicket-user] Re: FormFeedbackIndicator
Yes, but the problem was in internationalization: they changed the foo.html page, but Wicket rendered the foo_nl_NL.html page. Martijn On 11/14/05, Phil Kulak [EMAIL PROTECTED] wrote: Are you adding the text field?On 11/10/05, Marco van de Haar [EMAIL PROTECTED] wrote: Typo, sorry, ofcourse I meant FormComponentFeedbackIndicator We're trying to test a TextField wit a FormFeedbackIndicator. but we keep getting a 'the following Components failed to render' error on testform.indicator.FormFeedbackIndicator when we submit the form with errors. java: ... testfield = new RequiredTextField(text, new PropertyModel(ValidatePage.this, textValue)); testfield.add(LengthValidator.max(5)); FormComponentFeedbackIndicator i = new FormComponentFeedbackIndicator(indicator); i.setIndicatorFor(testfield); form.add(i); ... html: input type=text wicket:id=text/div wicked:id=indicator/div What are we doing wrong? Marco Ruud --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] alternative for onrender() for extended Panel?
okay we will try this sollution and restructure our Tooltip's design. It looks liek it will work. Martijn Dashorst wrote: And nest it inside your panel, so you can add the IFRAME yourself? Something like: wicket:panel div div tooltip magic/div iframe magic/iframe /div /wicket:panel Martijn On 11/15/05, *Marco van de Haar* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This would not work. My IFRAME is used to fix MSIE's anyoying behaviour to ignore a DOM node's z-index when it is over windowed controls (i.e. SELECT box), which is pretty crucial for a Tooltip. A good fix for this is to place an IFRAME exactly behind the Tooltip. We have rewritten the Tooltip to work everywhere within wicket, except for this anoying little problem which make it unusable for a lot of occasions in MSIE... is there any way to emulate onRender()'s behaviour for a custom Panel and render my IFRAME after the Panel without adjusting the HTML? Juergen Donnerstag wrote: why not add it inside the panel? Juergen On 11/14/05, Marco van de Haar [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static content after we render our component. We want to make our Tooltip easy to extend, so I can not put it in HTML. Normally you could put something like getResponse().write(IFRAME.../IFRAME) in the onRender() method. But for Panel this is final, so I can not overwrite it. Is there a way to solve this for a myPanel in my Java code? desired output is something like: span wicket:id=feedbacktooltip style=visibility:hidden; z-index:1; position:absolute id=id_fbi wicket:panel .think lot's of code here /wicket:panel /span IFRAME..some content here/IFRAME --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternative for onrender() for extended Panel?
Thanks for your reply, but the problem is that the Iframe can't be located inside the tooltip. To clarify this problem, we have pasted screenshots on our blog: http://jroller.com/page/ruudmarco?entry=we_want_to_include_an Ruud Martijn Dashorst wrote: And nest it inside your panel, so you can add the IFRAME yourself? Something like: wicket:panel div div tooltip magic/div iframe magic/iframe /div /wicket:panel Martijn On 11/15/05, *Marco van de Haar* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This would not work. My IFRAME is used to fix MSIE's anyoying behaviour to ignore a DOM node's z-index when it is over windowed controls (i.e. SELECT box), which is pretty crucial for a Tooltip. A good fix for this is to place an IFRAME exactly behind the Tooltip. We have rewritten the Tooltip to work everywhere within wicket, except for this anoying little problem which make it unusable for a lot of occasions in MSIE... is there any way to emulate onRender()'s behaviour for a custom Panel and render my IFRAME after the Panel without adjusting the HTML? Juergen Donnerstag wrote: why not add it inside the panel? Juergen On 11/14/05, Marco van de Haar [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static content after we render our component. We want to make our Tooltip easy to extend, so I can not put it in HTML. Normally you could put something like getResponse().write(IFRAME.../IFRAME) in the onRender() method. But for Panel this is final, so I can not overwrite it. Is there a way to solve this for a myPanel in my Java code? desired output is something like: span wicket:id=feedbacktooltip style=visibility:hidden; z-index:1; position:absolute id=id_fbi wicket:panel .think lot's of code here /wicket:panel /span IFRAME..some content here/IFRAME --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wait Screen
I think, i will go the ajax way, i tested it by attaching simple _javascript_ at body onLoad and form onSubmit and toggling between the main screen and the wait screen. Now i am adding the body onLoad function statically like body onload="jsFunc()" Ideally i would like to do it dynamically, but WebPage.appendToBodyOnLoad("jsFunc()") is not appending onload to thehtml body. Thanks Dipu - Original Message - From: Johan Compagner To: wicket-user@lists.sourceforge.net Sent: Monday, November 14, 2005 11:18 PM Subject: Re: [Wicket-user] Wait Screen if you could you can use ajax for this.But in a non ajax way i just use one page that has a meta refresh tag that checks every x seconds if the process is finished.No - redirect to that wait page with the meta refreshYes - redirect to the result page.johan On 11/14/05, Dipu [EMAIL PROTECTED] wrote: Hi, In my project, one of the paths through the flow involves a step that may take as long as a minute or two. I would like to show a wait screen during this time. When the back-ground process is complete, I would like the wait screen to forward to the next page.Any suggestions as to how best accomplish this with Wicket? Any help, examples, or suggestions would be appreciated. Thanks Dipu
[Wicket-user] Re: Re: Re: My take on Spring integration
Hi Phil and Igor, thank You for the quick answers, the great overview and the phonebook-patch. It is exactly what I was looking for! Again, many thanks. Maik Igor Vaynberg wrote: While I agree with Phil, a lot of other people do not. the spring integration package is still very much a work in progress and thats why ive spent very little time on the documentation. That said, all the major pieces of it have javadoc and unit tests. What it lacks is an overview, so here it is: http://www.wicket-wiki.org.uk/wiki/index.php/Spring I only had time for one pass, so its prob got some mistakes in it, feel free to add/fix/cleanup whatever you think it needs. I am also attaching a patch for the wicket-phonebook project which takes advantage of the new wicket-contrib-spring lazy init proxies. -Igor On 11/14/05, *Phil Kulak* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It's best to keep your app context beans in the Wicket application. See the wicket-phonebook example in wicket-stuff cvs. On 11/14/05, Maik Dobryn [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Igor, I'm very new to Wicket. The last days I tried to figure out how the Spring integration in Wicket works. There is a lot of confusion about the most recent practice. Unforturnatly, no documentation does exist which covers this important technique. So would You please provide a small (code) example of setting up a Spring application context and injecting a bean at page level? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ComponentFeedbackMessageFilter
I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the soString() for FC: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Re: Re: My take on Spring integration
yep, a lot of work. we needed something that we can point to and say that is our official way of supporting spring and injection in general, so there it is. -Igor On 11/15/05, Phil Kulak [EMAIL PROTECTED] wrote: Thanks for the writeup, Igor. I had no idea about the progress thathad been made in the Spring project lately.---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_idv28alloc_id845opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Markup Inheritance... why does wicket:child have to be empty?
I'm using Wicket 1.1, and am trying Markup Inheritance for the first time. I'm confused as to why wicket:child must be empty. This: wicket:child/ works fine, but this: wicket:child div id=mainpMain content here/p/div /wicket:child fails with wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup Is there a good reason for this? I know that I can simply do wicket:remove div id=mainpMain content here/p/div /wicket:remove wicket:child/ but that doesn't really smell right. Is there some good reason that wicket:child can't have a disposable body in the markup to enhance previewability? -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup Inheritance... why does wicket:child have to be empty?
No specific reason. Please open an RFE. Thanks Juergen On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: I'm using Wicket 1.1, and am trying Markup Inheritance for the first time. I'm confused as to why wicket:child must be empty. This: wicket:child/ works fine, but this: wicket:child div id=mainpMain content here/p/div /wicket:child fails with wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup Is there a good reason for this? I know that I can simply do wicket:remove div id=mainpMain content here/p/div /wicket:remove wicket:child/ but that doesn't really smell right. Is there some good reason that wicket:child can't have a disposable body in the markup to enhance previewability? -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Keeping images outside of WEB-INF
Johan Compagner jcompagner at gmail.com writes: ok you do write in the webapplication directory.. You do have always complete control over it where youre webapp will be installed on? And what kind of application server is used? Because you do know that writeable access isn't guarenteed? Or that it is even a directory at all? Application servers could just use the war directly without extracting it. Hi Johan, Thank you for the reply ;-) Sorry, that I didn't reply you the 1st time. Yes, I have complete control over the server. I am using Tomcat as the application server. If you can do that then i would just have the img tag directly in the html With a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. Not sure if you mean the following. I have tried just outputting the image filename by using the tag below td width=200img src='span wicket:id=file_img/'//td But it gives the following result: td width=200'//td Then I rewrote it to the following: td width=200img src='span wicket:id=file_img/span'//td But it generates this error message: Tag 'td width=200' (line 37, column 10) has a mismatched close tag at '/span'(line 37, column 63) .. In the end, I used the label component to generate the whole img tag. -James --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup Inheritance... why does wicket:child have to be empty?
= Juergen Donnerstag [EMAIL PROTECTED] = Scott Sauyet [EMAIL PROTECTED] Is there some good reason that wicket:child can't have a disposable body in the markup to enhance previewability? No specific reason. Please open an RFE. Thanks Okay: 1357511: http://tinyurl.com/exa9o Thanks, -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Label does not impose any restrictions on the tag it gets attached to. What exactly does the runtime exception say? Juergen -- Forwarded message -- From: SourceForge.net [EMAIL PROTECTED] Date: Nov 15, 2005 6:26 PM Subject: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer To: [EMAIL PROTECTED] Bugs item #1357506, was opened at 2005-11-15 09:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=684975aid=1357506group_id=119783 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Phil Kulak (pkulak) Assigned to: Nobody/Anonymous (nobody) Summary: Can't add label to WebMarkupContainer Initial Comment: When I have a label under a WebMarkupContainer in a p tag like this: p wicket:id=xspan wicket:id=y//p I get a RuntimeException. However, this works with a div tag: div wicket:id=xspan wicket:id=y//div I tried this in HEAD from about a week ago and the 1.1 release. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=684975aid=1357506group_id=119783 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Keeping images outside of WEB-INF
Eelco Hillenius eelco.hillenius at gmail.com writes: Or use public class SimpleImage extends WebComponent { public SimpleImage(String id, String imgSrc) { super(id, new Model(imgSrc)); } public SimpleImage(String id, IModel imgSrcModel) { super(id, imgSrcModel); } protected void onComponentTag(ComponentTag tag) { tag.getAttributes().put(src, getModelObjectAsString()); } } Eelco Hi Eelco, Seems good. I was hoping for a solution done in the wicket way. Will try it ;-) Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Keeping images outside of WEB-INF
= James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. [ ... ] In the end, I used the label component to generate the whole img tag. I don't mean to speak for Johan, but I think the suggestion was something like this: listItem.add(new Label(file_img).add(new AttributeModifier(src, + childfolder + / + file.getName())); along with img wicket:id=file_img src=placeholder.png alt=/ That sounds to me the most Wicketish way of doing this. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Yea, that's why I figured it was a bug. wicket.markup.MarkupException: Unable to find component with id 'title' in [MarkupContainer [Component id = _extend, page = md.lhm.wicket.page.cart.ViewCart, path = 8:_body:_child:_extend:_child:_extend:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=title in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. I'll write a small test case that runs apart from my app just to make sure it happens in isolation. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. -Phil On 11/15/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, that's why I figured it was a bug. wicket.markup.MarkupException: Unable to find component with id 'title' in [MarkupContainer [Component id = _extend, page = md.lhm.wicket.page.cart.ViewCart, path = 8:_body:_child:_extend:_child:_extend:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=title in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. I'll write a small test case that runs apart from my app just to make sure it happens in isolation. test TestPage.java Description: Binary data
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P yields: wicket.markup.MarkupException: Markup element at index 6 failed to advance the markup stream pointing at the span element. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
I'll check it later tonight Juergen On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P yields: wicket.markup.MarkupException: Markup element at index 6 failed to advance the markup stream pointing at the span element. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Just an idea Juergen... could that be related to the fact that p is one of those tags we allow to be unbalanced (doesn't need a closing tag)? Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P yields: wicket.markup.MarkupException: Markup element at index 6 failed to advance the markup stream pointing at the span element. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Keeping images outside of WEB-INF
jip that is what i meant But ofcourse eelco's method is also fine to use.On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: = James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. [ ... ] In the end, I used the label component to generate the whole img tag. I don't mean to speak for Johan, but I think the suggestion wassomething like this: listItem.add(new Label(file_img).add(new AttributeModifier(src, + childfolder + / + file.getName())); along with img wicket:id=file_img src="" alt=/That sounds to me the most Wicketish way of doing this. -- Scott ---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Keeping images outside of WEB-INF
Although that shouldn't be a label as there is no body to replace. Just a WebMarkupContainer, or in this case even better a WebComponent suffices. Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: = James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. [ ... ] In the end, I used the label component to generate the whole img tag. I don't mean to speak for Johan, but I think the suggestion was something like this: listItem.add(new Label(file_img).add(new AttributeModifier(src, + childfolder + / + file.getName())); along with img wicket:id=file_img src=placeholder.png alt=/ That sounds to me the most Wicketish way of doing this. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Could be. I haven't tested it yet, but I think it is a good guess. Juergen On 11/15/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Just an idea Juergen... could that be related to the fact that p is one of those tags we allow to be unbalanced (doesn't need a closing tag)? Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P yields: wicket.markup.MarkupException: Markup element at index 6 failed to advance the markup stream pointing at the span element. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] If/Else component display
there are two basic approaches: 1) add the component anyways and set its visibility tag accordingly 2) create panels that either contain or do not contain the component and add the appropriate panel If either is unclear let me know and i can go further into detail. -Igor On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi,My app has multiple instances where, if a ListView is empty, I want to display some message to the user, like You haven't defined any widgets yet. The problem is this requires what I feel to be a lot of code in the Page implementation. Is there a pattern or component that I'm missing that would make this easier? Thanks.
Re: [Wicket-user] If/Else component display
Those are the two approaches I've used. I'm looking for a way to either abstract one or both of those approaches to make them more general purpose. On 11/15/05, Igor Vaynberg [EMAIL PROTECTED] wrote: there are two basic approaches: 1) add the component anyways and set its visibility tag accordingly 2) create panels that either contain or do not contain the component and add the appropriate panel If either is unclear let me know and i can go further into detail. -Igor On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi,My app has multiple instances where, if a ListView is empty, I want to display some message to the user, like You haven't defined any widgets yet. The problem is this requires what I feel to be a lot of code in the Page implementation. Is there a pattern or component that I'm missing that would make this easier? Thanks.
Re: [Wicket-user] Preserve form state
Just one extra remark. Why can't use just use a model for this? And that model is an in between model for you real model object? Ok you have to do youre validation a bit different (it can't be between Form-Model but it has to be between TmpModel-RealModel This looks to me like a much better way to have multiply page forms... johan On 11/13/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi.I know this has been discussed already, but still I'm opening it oncemore. I think there should be a way to preserve form state withoutvalidation and model updating.The use case is following. I have a (complex) form with some fields, that can not be entereddirectly, i.e. they have to be selected on other page. So I need to movebetween pages, but I don't want to lose any information entered on theprevious page. If I use Button, the form gets processed, validated, etc and the action won't execute unless all entered data is valid. If I turndefaultProcessing off, the action executes, but the data (not written tomodel yet) is lost.What I'm using now is little hacky, but it works. I have my own class derived from Form, my own SubmitButton, ImmediateButton andFeedbackPanel. ImmediateButton acts like classic Button withdefaultFormProcessing turned off, but unlike it, ImmediateButton storesthe state in each component (in the string reserved for invalid data). So there's my own Feedback panel (Although filter would be probablyenough) that detects that ImmediateButton was clicked and hidesvalidation messages (there's a lot of them, because ImmediateButtonmarks every component as invalid). This approach works pretty well, but doesn't feel quite right. I thinkthere definitely should be a way to preserve form state (withoutvalidation and updating model) directly supported by wicket.Not to mention that (if I recall correctly) the string field in FormComponent used for storing invalid data is transient.Btw. I've managed to persuade people from my company to use wicket forone of our projects. Since I do most of the current development, it'snot a big deal, because I've personally been using wicket for some time now. But I can say they are really impressed with the productivity andsimplicity of certain actions (like moving between complex pages forthand back ;) - that are sometimes quite difficult and cumbersome in struts. Not to mention excellent DataView and DatePicker components, markupinheritance and compoents in general.Kudos wicket team, you're doing excelent work!Sorry for really long mail,-Matej ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 发票代开
尊敬的经理: 是否有某批次的货物,因为如何入帐及承担过高的税负而烦忧?或许我司能为您排忧。 我司作为一家综合性企业,可以开具商品销售发票(普通发票);也可通过海关开具海关专用缴款书(包括): 1、海关代征增值税专用缴款书,可按17%全额抵税; 2、海关进口关税专用缴款书,进货价格及关税全部可入成本; 3、进口货物报关单,证明货物为进口货物。 另:我司的合作企业可以开具公路运输发票,可以证明货物的运输方式,此发票可以抵扣7%税款。 若有需要,请与我司联系:吴海清 Tel: 0755-81164787 ,013728998454。 欢迎来电咨询! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] If/Else component display
Sounds to me you are looking for something more special purpose :) Why don't you create a panel factory or something similar? You could make container components that would allow you to do a if/else like construction in your markup, but I wouldn't be a big fan of that. I think working with panels for conditional/ flexible markup is a great way to go. And as Wicket lets you manage your own components, you can implement any strategy you want to this. Eelco On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Those are the two approaches I've used. I'm looking for a way to either abstract one or both of those approaches to make them more general purpose. On 11/15/05, Igor Vaynberg [EMAIL PROTECTED] wrote: there are two basic approaches: 1) add the component anyways and set its visibility tag accordingly 2) create panels that either contain or do not contain the component and add the appropriate panel If either is unclear let me know and i can go further into detail. -Igor On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, My app has multiple instances where, if a ListView is empty, I want to display some message to the user, like You haven't defined any widgets yet. The problem is this requires what I feel to be a lot of code in the Page implementation. Is there a pattern or component that I'm missing that would make this easier? Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Buttom model gets nulled on validation
I have a form which has two buttons, one submit and one cancel button. They are constructed like so: form.add(new Button(submit, new Model(getString(label.submit, null; form.add(new Button(cancel, new Model(getString(label.cancel, null; The model of the button is used as the value attribute, and everything looks right when the form first comes up. However, when I click submit and there is a validation error, the value attribute of the cancel button gets erased/nulled out. Am I doing something wrong or is this a bug? --Andrew
Re: [Wicket-user] Buttom model gets nulled on validation
it was a bug. fixed in cvs 1.1 and 1.2 -Igor On 11/15/05, Andrew Berman [EMAIL PROTECTED] wrote: I have a form which has two buttons, one submit and one cancel button. They are constructed like so: form.add(new Button(submit, new Model(getString(label.submit, null; form.add(new Button(cancel, new Model(getString(label.cancel, null; The model of the button is used as the value attribute, and everything looks right when the form first comes up. However, when I click submit and there is a validation error, the value attribute of the cancel button gets erased/nulled out. Am I doing something wrong or is this a bug? --Andrew