Re: [Wicket-user] Including wicket page from JSP?
We tried that, but the including jsp, does some pageprocessing and that gives on the included page. That just might what you mention about conficting html... Bruno Borges wrote: You can do it with a runtime include jsp:include page=/site/MyBookmarkablePage / But watch out for conflicts between HTMLs and you will need to do some hacks like substring code inside body tag only. Something like that. Possible it is, but isn't out of the box. :D Everything is possible. []'s -- Bruno Borges Summa Technologies Inc. www.summa-tech.com http://www.summa-tech.com (11) 8565-7739 (11) 3055-2060 (48) 8404-1300 On 5/25/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I wont expect the above to be possible, but sometimes you just dont know? Is it possible, currently we are including it via an iframe tag, some say thats a bad way todo it... Whats your 2 cents? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Including wicket page from JSP?
Sound like a nice way, i'll have to dig into it. Seems pretty easy, should be on the wiki, and be included in wicket-extensions(as externalized able component)? That way it would be sorta out of the box:) regards Nino Scott Swank wrote: Consider also the solution we implemented in house to allow arbitrary Wicket components in an external web page -- including of course a JSP. http://www.nabble.com/Wicket-and-embeddable-Ajax-components-tf3604793.html#a10084198 On 5/25/07, Bruno Borges [EMAIL PROTECTED] wrote: You can do it with a runtime include jsp:include page=/site/MyBookmarkablePage / But watch out for conflicts between HTMLs and you will need to do some hacks like substring code inside body tag only. Something like that. Possible it is, but isn't out of the box. :D Everything is possible. []'s -- Bruno Borges Summa Technologies Inc. www.summa-tech.com (11) 8565-7739 (11) 3055-2060 (48) 8404-1300 On 5/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I wont expect the above to be possible, but sometimes you just dont know? Is it possible, currently we are including it via an iframe tag, some say thats a bad way todo it... Whats your 2 cents? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem loading dynamic image using ajax
Michael K m_lestat at yahoo.com writes: Hi,I have problem displaying dynamic image using ajax. The problem is that the image url became expired after the page has rendered. The page was loaded fine it didn't triggered page expired. I think there is something wrong with your code: How can you access the request cycle in the constructor? Besides, your panelA is not added to your page at all. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem loading dynamic image using ajax
Thanks for spotting the error in my previous post. The code I posted wasn't copy-paste from the actual code since it works fine except the image issue, but rather a simplify version to explain my problem. Anyway I 've made correction to my sample code below: public class AjaxPage extends WebPage { public AjaxPage() { Panel panelA = new PanelA(panelA); add(panelA); // Correction to my previous code Component comp = panelA; comp.setVisible(true); ComponentRequestTarget target = new ComponentRequestTarget(comp); RequestCycle cycle = RequestCycle.get(); cycle.setRequestTarget(target); } } public class PanelA extends Panel { public PanelA(String string) { super(string); add(new Label(title,Circle)); Image image1 = new Image(logo,new RenderedDynamicImageResource(100,100){ protected boolean render(Graphics2D graphics2D) { drawCircle(graphics2D); return true; } }); add(image1); // image1 will expired. } } To obtain the requestcycle in the constructor, I do RequestCycle.get(); in the WebPage constructor. Please help. Michael - Original Message From: Kent Tong [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Saturday, May 26, 2007 2:49:12 PM Subject: Re: [Wicket-user] Problem loading dynamic image using ajax Michael K m_lestat at yahoo.com writes: Hi,I have problem displaying dynamic image using ajax. The problem is that the image url became expired after the page has rendered. The page was loaded fine it didn't triggered page expired. I think there is something wrong with your code: How can you access the request cycle in the constructor? Besides, your panelA is not added to your page at all. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with TinyMCE on a panel
hi all, i just want to let you know that tinymce works with ajax and i've committed all changes into svn trunk. i've updated the example as well. please take a look and let me know if it works for you. there is still a sync issue, and sometimes tinymce editor is not loaded using ajax because there is a CSS that is not initialized. anyway take a look and let me know how it goes at your end. /iulian On 4/25/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: tinymce panel is not ajax-able, i have replaced a panel by ajax that contains tinyMCE and it did not render On 4/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the behavior works, i like it a lot better then a panel. to me: TextField tf=new TextField(..); tf.add(new TinyMceEnabler().setAllowLinking(false)); seems a lot more natural then adding a panel, etc. and yes, in my project we store tinymce in a static dir so all of its scripts/modules are served by apache instead of wicket. that said, i havent ever tried to use it in an ajax response, so i wouldnt know if it works or not. is that what is used here? maybe if it does choke because of that we can create a loader script for it or something like that. -igor On 4/25/07, Iulian Costan [EMAIL PROTECTED] wrote: this question is mostly for Igor and his rtebehavior and tinymceenabler examples. does tinymceenabler really works for you? if it does please tell me what wicket/tinymce versions are you using. in your case i also saw that tinymce scripts are loaded from a static context, /html/static/js/... something. they are not packed within the web application. becasue of the way tinymce library initialize itself, it relies on src attribute of script tag that imports 'tiny_mce_src.js' file. but if you add a javascript url in ajax response then the script is prefetched and it is embedded into the page, in the same time the 'src' attribute is renamed to 'src_' and also the other attributes are removed/cleaned up. i didnt follow wicket development for a while and i might miss something but i dont see how tinymce can initialize in this case if there is no src attribute to rely on. something magic in between. :) /iulian On 4/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ok you are all set -igor On 4/18/07, Iulian Costan [EMAIL PROTECTED] wrote: done, username: syca /iulian On 4/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: lulian could you please sign up for wicketstuff.org/jira so i can set you as the lead for wicket contrib tinymce thanks -igor On 4/11/07, Iulian Costan [EMAIL PROTECTED] wrote: hi, there is an already known issue related to this; tinymce's JS/CSS imports are lost if there is any AJAX request involved. it is on my TODO list but unfortunately i couldnt put my hands on it. i'll try to do it this weekend. /iulian On 4/11/07, Brian Topping [EMAIL PROTECTED] wrote: Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys.
Re: [Wicket-user] Problem with jsessionid in mounted Resources
what you could do is just stripoff (regexp replace) the jsession id of the url you can only do this is you don't acess the session in your resource and i guess you don't do that because you only need the url to stream the resource right? johan On 5/25/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, I have (or had) a problem with mounted Resources and an iserted jsessionid. My goal is, as discussed here before: http://www.nabble.com/Bookmarkable-images-tf3706668.html#a10383150, to have dynamic image URLs with just slashes and no question-mark-separated querystring, like this: /images/thumbnail/20.png What I did was in short this: Subclassed WebResource like this: public IResourceStream getResourceStream() { String path = RequestCycle.get ().getRequest().getRequestParameters().getPath(); // ... parse path, return ResourceStream // path should be images/thumbnail/20.png } In my Application.init(): getSharedResources().add(imageDataResource, new ImageDataResource()); mountSharedResource(ImageDataResource.MOUNT_PATH, new ResourceReference(imageDataResource).getSharedResourceKey()); Then a custom WebComponent, where I have an AttributeModifier for the src attribute, where I compile the src like this: ResourceReference resRef = new ResourceReference(imageDataResource); String src = urlFor(resRef); src += thumbnail/20.png; // this is dynamic in the application This all works almost perfect. It stops working when someone has disabled cookies, and jsessionid is added to all URLs. Then they look a little strange like this: /images;jsessionid=1ar97uck8ovr5/thumbnail/20.png because urlFor(resRef) returns /images;jsessionid=1ar97uck8ovr5 With such a URL, the command getRequestParameters().getPath() returns simply images, and all additional path info is lost. Now, my first take at a solution would be to take the jsessionid into consideration when building my URLs, so that they look like this: /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5 But maybe this is just a workaround for something I did wrong at another place? -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Special table generation
I want to create a table with different rows as shown at http://www.syntevo.com/smartcvs/download.jsp . As you can see there are following kind of rows: - header/title (e.g. Application Details), - version information - separator (maybe can be replaced by stylesheet tuning) - download link I prefer to have prototypes for each row variant in my markup file, e.g.: ... table class=download tr wicket:id=header td colspan=3 class=header wicket:id=textHeader/td /tr tr wicket:id=version td class=indentedTextVersion:/td td nowrap class=version wicket:id=number1.2.3/td td nowrap class=changelog a href=changelog.txtChange Log/a /td /tr tr wicket:id=separator td colspan=3 class=separatornbsp;/td /tr tr wicket:id=download td colspan=2 nowrap class=indentedText wicket:id=descriptionDescription/td td nowrap class=downloadLink a href=foo wicket:id=linkDownload/a br/ div class=downloadSize wicket:id=size(12,345,678 bytes)/div /td /tr /table ... and want to tell from the page class instance what should be displayed: public class Download extends OurWebPage { ... final ListContainer container = ... container.add(new Xxx(id0, header) .add(new Label(text, Application Details))); container.add(new Xxx(id1, version) .add(new Label(number, 6.0.1))); container.add(new SeparatorXxx(id2, separator); container.add(new Xxx(id3, header) .add(new Label(text, Windows))); container.add(new Xxx(id4, download) .add(new Label(description, Windows with JRE)) .add(new Link(link, http://...;)) .add(new Label(size, (16,543,432 bytes; ... } Is there something like a ListContainer available which just renderes all child components behind each other? What type the Xxx component should be - something like Fragment? Or better should I create an own WebMarkupContainer-derived component? -- Thanks in advance, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with jsessionid in mounted Resources
Ah, good advice. I actually need the Session in the Resource, as some images have restrictions on who is allowed to see them. So, instead of stripping the jsessionid, I will create my links for the src attribute in a way that it they will look like this: /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5 I also tried to follow the internal flow on how getRequestParameters().getPath() is resolved, and I see that Strings.sripJsessionid() is called, and this omits everything beginning with the jsessionid and ending with a question-marked-separated querystring. In my case, the query was appended with a slash... 2007/5/26, Johan Compagner [EMAIL PROTECTED]: what you could do is just stripoff (regexp replace) the jsession id of the url you can only do this is you don't acess the session in your resource and i guess you don't do that because you only need the url to stream the resource right? johan On 5/25/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, I have (or had) a problem with mounted Resources and an iserted jsessionid. My goal is, as discussed here before: http://www.nabble.com/Bookmarkable-images-tf3706668.html#a10383150 , to have dynamic image URLs with just slashes and no question-mark-separated querystring, like this: /images/thumbnail/20.png What I did was in short this: Subclassed WebResource like this: public IResourceStream getResourceStream() { String path = RequestCycle.get().getRequest().getRequestParameters().getPath(); // ... parse path, return ResourceStream // path should be images/thumbnail/20.png } In my Application.init(): getSharedResources().add(imageDataResource, new ImageDataResource()); mountSharedResource(ImageDataResource.MOUNT_PATH, new ResourceReference(imageDataResource).getSharedResourceKey()); Then a custom WebComponent, where I have an AttributeModifier for the src attribute, where I compile the src like this: ResourceReference resRef = new ResourceReference(imageDataResource); String src = urlFor(resRef); src += thumbnail/20.png; // this is dynamic in the application This all works almost perfect. It stops working when someone has disabled cookies, and jsessionid is added to all URLs. Then they look a little strange like this: /images;jsessionid=1ar97uck8ovr5/thumbnail/20.png because urlFor(resRef) returns /images;jsessionid=1ar97uck8ovr5 With such a URL, the command getRequestParameters().getPath() returns simply images, and all additional path info is lost. Now, my first take at a solution would be to take the jsessionid into consideration when building my URLs, so that they look like this: /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5 But maybe this is just a workaround for something I did wrong at another place? -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Special table generation
Thomas, The DataView allows for custom markup. See: http://www.wicket-library.com/wicket-examples/repeater , http://wicket.sourceforge.net/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/data/DataView.html On 26/05/07, Thomas Singer [EMAIL PROTECTED] wrote: I want to create a table with different rows as shown at http://www.syntevo.com/smartcvs/download.jsp . As you can see there are following kind of rows: - header/title (e.g. Application Details), - version information - separator (maybe can be replaced by stylesheet tuning) - download link I prefer to have prototypes for each row variant in my markup file, e.g.: ... table class=download tr wicket:id=header td colspan=3 class=header wicket:id=textHeader/td /tr tr wicket:id=version td class=indentedTextVersion:/td td nowrap class=version wicket:id=number1.2.3/td td nowrap class=changelog a href=changelog.txtChange Log/a /td /tr tr wicket:id=separator td colspan=3 class=separatornbsp;/td /tr tr wicket:id=download td colspan=2 nowrap class=indentedText wicket:id=descriptionDescription/td td nowrap class=downloadLink a href=foo wicket:id=linkDownload/a br/ div class=downloadSize wicket:id=size(12,345,678 bytes)/div /td /tr /table ... and want to tell from the page class instance what should be displayed: public class Download extends OurWebPage { ... final ListContainer container = ... container.add(new Xxx(id0, header) .add(new Label(text, Application Details))); container.add(new Xxx(id1, version) .add(new Label(number, 6.0.1))); container.add(new SeparatorXxx(id2, separator); container.add(new Xxx(id3, header) .add(new Label(text, Windows))); container.add(new Xxx(id4, download) .add(new Label(description, Windows with JRE)) .add(new Link(link, http://...;)) .add(new Label(size, (16,543,432 bytes; ... } Is there something like a ListContainer available which just renderes all child components behind each other? What type the Xxx component should be - something like Fragment? Or better should I create an own WebMarkupContainer-derived component? -- Thanks in advance, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ryan Gravener fbb55c59d619f3cd68ac4f70ebeca372 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to auto-eliminate component from RepeatingView
Felipe Piccolini felipe.piccolini at bluesoft.cl writes: How can I do to make the delete this person works in order to get it removed from the RepeatingView? Several issues: 1) The repeating view should be associated with each item in the list, not the list itself. 2) If you delete an item from the list, you have to refresh the whole list. 3) To delete an item, you need to delete your person component (the parent of the ajax link), not the ajax link itself. Here is some sample code that works: html head/head body div dl wicket:id=personalList span wicket:id=person dt sub-./sub /dt dda wicket:id=delPerson href=#delete/a/dd ddlabel wicket:id=idPerson01/label/dd /span /dl /div /body /html public class Group extends WebPage { public Group() { final WebMarkupContainer pl = new WebMarkupContainer(personalList); pl.setOutputMarkupId(true); final RepeatingView v = new RepeatingView(person); for (int i = 0; i 3; i++) { WebMarkupContainer p = new WebMarkupContainer(Integer.toString(i)); p.add(new AjaxLink(delPerson) { public void onClick( AjaxRequestTarget target) { v.remove(getParent()); target.addComponent(pl); } }); p.add(new Label(idPerson, Integer.toString(i))); v.add(p); } pl.add(v); add(pl); } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem loading dynamic image using ajax
Michael K m_lestat at yahoo.com writes: To obtain the requestcycle in the constructor, I do RequestCycle.get(); in the WebPage constructor. You shouldn't do that. You have a request cycle only when there is a request from the browser, not when your page is constructed. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-contrib-gmap GMarkerComponent proposal
Since the tool tip may contain possessive nouns, this causes a javascript syntax error, so i propose changing gmarker.getToolTip() to gmarker.getToolTip().replace(\',\\') in methods: createMarkerDefaultIcon, createMarkerCustomIcon http://www.papernapkin.org/pastebin/view/150 -- Ryan Gravener fbb55c59d619f3cd68ac4f70ebeca372 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Including wicket page from JSP?
On 5/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I wont expect the above to be possible, but sometimes you just dont know? Is it possible, currently we are including it via an iframe tag, some say thats a bad way todo it... Whats your 2 cents? We are using Wicket in Weblogic 8 Portal, which is internally based on Struts1. We use Wicket in quite special way. In Struts action method we include Wicket page, but give Wicket a decorated version of request and response. Our response decorator records all the content Wicket has produced. This content is then inserted into request attribute. Then Struts action forwards request to our JSP which has all the necessary portal stuff (header and footer stuff). In addition to that it has only one line of content were previously recorded Wicket content is printed out from request attribute. This may not be very good way either, but our software must be deployable as Bea Portlet and therefore we cannot use Wicket normally. - Markus Hjort / Reaktor Innovations - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TreeTable with nodes that are not links + rows with alternate background colours
wicket: 1.2.6 wicket-extensions: 1.2.6 A couple of questions re TreeTable Is it possible to configure a TreeTable so its nodes are not links? So far, I have only found/tried tree.setLinkType(null) without achieving the desired effect. Is it possible to have rows with different background colours based on the value of fields in that row? (eg red if variance to budget is worse than -10%, green if variance to budget +5% etc... PS Now that I've spent a few more hours looking at wicket, I must say that it is not always easy to work out the best (or, at least a good) way to do something (possibly partly down to lack of complete and/or up to date documentation), but once one works out how to do things, it's quite satisfying (in an OO and clever sort of way) and generally, very neat; the amount of reuse I have benefited from already just by using markup inheritance and panels has already covered the time I have put into learning (some of the) the basics. -- View this message in context: http://www.nabble.com/TreeTable-with-nodes-that-are-not-links-%2B-rows-with-alternate-background-colours-tf3822476.html#a10821767 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I got this : Expected close tag for ...
Matthieu Casanova chocolat.mou at gmail.com writes: html body span wicket:id=list label wicket:id=keykey/label span wicket:id=list2 label wicket:id=valueValue/label /span /span /body /html If you use a fragment inside list2, there is no one to absorb the label: label wicket:id=valueValue/label As it is sticking there, Wicket can't find the closing tag for list2. A solution is to not to use a fragment. Just make list2 invisible (or just use it as is. If the model given to it is null, list2 will do nothing). - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strange Behaviour with AjaxFormCompon entUpdatingBehavior
Dipu dipu.seminlal at multicom.co.uk writes: Many thanks for the reply. I tried swithching to 1.2.6 but still i am getting the same error. Are you sure thats fixed in 1.2.6 You're right. It is still there in 1.2.6. I've just reopened the issue. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best way to create large groups of similar tags
Thomas Singer wicket at regnis.de writes: Generally, I want to keep the text (including the links to other pages in it) in the HTML files for now. My problem is the creation of these tags without adding a separate component for each one: td align=center img src=/graphics/feature-absent.gif border=0 alt=- width=9 height=9 /td and td align=center img src=/graphics/feature-present.gif border=0 alt=+ width=9 height=9 /td Put that code into a panel, eg, FeatureAvailability.html: wicket:panel td align=center img wicket:id=img src=/graphics/feature-present.gif border=0 alt=+ width=9 height=9 /td /wicket:panel FeatureAvailability.java: public class FeatureAvailability extends Panel { public FeatureAvailability(String id, IModel model) { super(id, model); boolean isPresent = ((Boolean) getModelObject()).booleanValue(); WebMarkupContainer img = new WebMarkupContainer(img); img.add(new SimpleAttributeModifier(src, String.format(/graphics/feature-%s.gif, new Object[] { isPresent ? present : absent }))); img.add(new SimpleAttributeModifier(alt, isPresent ? + : -)); add(img); } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with page parameters
neiroman neiroman neiroman at gmail.com writes: I try to access to page with incorrect params set (http://localhost:8080/index/ff/) I've got the error :java.lang.IllegalStateException: URL fragment has unmatched key/value pair: ff/ Can I prevent this error ? What do you want to do then? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ResourceFinder issue
Found the problem. I was not actually finding the correct file. I was using the WebApplicationPath class as the resource finder. When adding a path to it's search list, if the folder exists on the file system it will look there instead of the servlet context. mchack wrote: At a loss. I have been trying to locate my markup from the classpath to the root web context. It appears to find the file(s0 but for a particular one I get the following exception WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). ..list of components It found the file. When I reference this from the classpath it works fine. Any help would be appreciated. Thanks -- View this message in context: http://www.nabble.com/ResourceFinder-issue-tf3818855.html#a10822248 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user