Re: UI Layout
Hi guys ... I have the same little issue and don't know how to resolve this ... I work on 2 really big projects One is a newspaper web site and other is more of a b2b application. So for newspaper web site, showing all kinds of news and stuff I'm trying with 1 page approach. Reasons: - loads of sub pages in navigation (like 100 - 200 pages and counting) . so making so many classes and markup is nonsense (or let's say .. I'd rather SHOOT myself in a foot) - layouts change just a little bit on every page, so having 100-200 different layout files is crazy B2B application is not that complicated .. it has fixed number of pages and several billion different components .. When I was working with PHP, years ago, we had a simple framework for creating our web pages. BUT the idea was a bit more simpler ... We had a page layout with panels ( to say it the wicket way, cause we called them placeholders) representing header, footer, and content columns. In those panels we rendered different components (news, article, navigation ..) . We dynamically read from configuration what layout to use for a singe page and what components to load to it's panels. We also made a simple managing page, so it was possible to simply define everything there. And now I have to do this in wicket. I need to change page layout markup file( since markup files will have my panels defines). So if someone can tell me how to do that, I would really appreciate it. please note that I'm only starting to use wicket and consider me as a 2 week wicket noob. Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288378.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
Hi bro, so I need to change page layout markup file( since markup files will have my panels defines) 1. Use Inheritance: What I like about inheritance is you can template and further sub-template without a single line of Java (except for empty class files to represent the page ..I have a solution for this also.. read on). (There is some debate on improving inheritance http://apache-wicket.1842946.n4.nabble.com/Single-inheritence-in-parts-td2278064.html#a2278064; but lets skip that) layouts change just a little bit on every page, so having 100-200 different layout files is crazy -- With good designed templates this should be avoidable. And if not, panels can be used. 2. I need to change page layout markup file (since markup files will have my panels defines) -- So, you dont need to use PANEL's only. As explained above I believe inheritance is powerful where there is a lot of common stuff. The dynamic stuff like news, article, navigation are panels that too embedded inside the template. So the combination should reduce your combinatorial explosion! 3. Ah regarding Class files: Well this is something bothering me as well. I'm looking at CGLIB byte code generation to read the file system for markup files and auto generate java classes into the ClassLoader. So there is no need to write dumb classes. ..but this is work in progress. Just sharing the idea if anyone can beat me to it :) Please note that Im relatively new to wicket too, but through my initial frustrating experiences I learnt somethings that i hope will help you. If not, am sure the more experienced guys here will be providing valuable input. -good luck! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288432.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
Hey ... 10x for fast reply .. I am considering inheritance cause many stuff will be reusable but I have a little tiny problem with my components and trying to figure it out ... let me try to show an example I have my custom component that shows news, labels etc. These news can be categorized, so my news component is used on a page to show different type of news (lets say .. I have 4 columns, and this component is used 4 times showing different category of news in each) so far so good .. The wicket way to do this is just use wicket:id tag wherever I want to show my news component .. BUT .. I have a little problem with this in real world and real application. My columns are just panels to hold my components and unfortunate enough, I as a developer, cannot hard code what components must be rendered in each column, cause there are so many possibilities. In one case editors will use 4 columns to show news, on second case they will only use 2 columns for news and 2 for banners and these cases go on and on and on .. never ending story .. so to do this dynamically I created layout with 4 columns and now I'm trying to render my components into that columns without specifying tags with wicket:id in every column and every possible case ... I thought that if I create my custom component with markup file .. and then add this component to my column in page would render my component .. but .. it's not :( ... so if someone can point me to the right direction with this case .. that would be something ... my custom label panel markup file: wicket:panel p This is a custom test label /p /wicket:panel java for adding my custom label panel: left.add(new CustomLabelPanel(custom-label-panel)); And of course this will not work since (as I wrote before) custom-label-panel is never defined in columns in my layout .. I guess you already figured out that I'm too lazy to put tags in for every possible case customer might come up with. So any help will be greatly appreciated. Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288518.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multiple columns using div with last one on each row different
Is your layout fixed at 3 columns? If so, you should be able to add that AttributeModifer to every third item in the repeater. If it is not fixed, but is a liquid layout where the number of columns could change when the browser (or container) is resized, then there is really no way for wicket to put the attr on the right cell. Instead, you will probably need a JavaScipt solution on the client. Are you using any of the JS frameworks (jQuery, MooTools, etc)? If so, that framework may have facilities to make this easier. I feel like this shouldn't be a tough job for jQuery and a resize event. On Tue, Jul 13, 2010 at 11:48 PM, Chris Colman chr...@stepaheadsoftware.com wrote: That would probably not work because the child at the end of each row is not necessarily the last child in the 'containing object'. The container is the category which has n products eg., P1 P2 P3 P4 P5 P6 P7 P8 Where P8 would be the last child But I need P3 and P6 to be marked as 'last cell'. -Original Message- From: Anh [mailto:7za...@gmail.com] Sent: Wednesday, 14 July 2010 1:19 PM To: users@wicket.apache.org Subject: Re: Multiple columns using div with last one on each row different Not familiar with the blueprint framework, but is there some reason you could not use whatever:last-child { } CSS pseudo-selector? On Tue, Jul 13, 2010 at 7:16 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm using wicket to generate HTML and Compass/Blueprint to manage the CSS. I have a multi column layout with a product in each cell like: P1 P2 P3 P4 P5 P6 P7 Etc., With the blueprint CSS framework you need to specify a slightly different CSS 'class' (eg., lastCell) for the last item in each row and that uses different CSS that does not append an extra 'space' in the grid as it does for the previous cells in that row. I know that I can use new SimpleAttributeModifier(class, lastCell)); when populating the list view but to do that I need to know how many cells will appear in each row. What if I didn't want to hard code that and leave it up to the markup to decide. Is there any wicket markup trick that I can use to tell wicket to insert a special 'class' value into the 'last cell' on each row? -Original Message- From: Francisco Diaz Trepat - gmail [mailto:francisco.diaztre...@gmail.com] Sent: Wednesday, 14 July 2010 6:13 AM To: Wicket-Users Subject: Any Italian wicket maniacs out there? Hi, I would like to ask some Italian users about something personal. If any, and don't mind please contact me privately. I'll surely appreciate it. regards, f(t) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
why not use repeaters for things you don't know in advance? Ernesto On Wed, Jul 14, 2010 at 12:09 PM, armandoxxx armando@dropchop.com wrote: Hey ... 10x for fast reply .. I am considering inheritance cause many stuff will be reusable but I have a little tiny problem with my components and trying to figure it out ... let me try to show an example I have my custom component that shows news, labels etc. These news can be categorized, so my news component is used on a page to show different type of news (lets say .. I have 4 columns, and this component is used 4 times showing different category of news in each) so far so good .. The wicket way to do this is just use wicket:id tag wherever I want to show my news component .. BUT .. I have a little problem with this in real world and real application. My columns are just panels to hold my components and unfortunate enough, I as a developer, cannot hard code what components must be rendered in each column, cause there are so many possibilities. In one case editors will use 4 columns to show news, on second case they will only use 2 columns for news and 2 for banners and these cases go on and on and on .. never ending story .. so to do this dynamically I created layout with 4 columns and now I'm trying to render my components into that columns without specifying tags with wicket:id in every column and every possible case ... I thought that if I create my custom component with markup file .. and then add this component to my column in page would render my component .. but .. it's not :( ... so if someone can point me to the right direction with this case .. that would be something ... my custom label panel markup file: wicket:panel p This is a custom test label /p /wicket:panel java for adding my custom label panel: left.add(new CustomLabelPanel(custom-label-panel)); And of course this will not work since (as I wrote before) custom-label-panel is never defined in columns in my layout .. I guess you already figured out that I'm too lazy to put tags in for every possible case customer might come up with. So any help will be greatly appreciated. Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288518.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Accessing transport within wicketGlobalFailureHandler
Hi, I want to use wicketGlobalFailureHandler() to handle some http status codes from an Ajax-Call. Currently I am doing something like this - which works fine - but is in my opinion not very nice. function wicketGlobalFailureHandler() { var t = Wicket.Ajax.transports; for (var i = 0; i t.length; ++i) { if (t[i].readyState == 4) { var status = t[i].status; if (status == '401') { alert('Do something...'); } if (status == '403') { alert('Do another thing...'); } } } } Is there a better way, instead of getting all transports and then checking readyState and status code? Is there a possibility to get only the current transport, which triggered the failure handler? Or maybe I'm doing something completely wrong and there is a better approach how I can handle these cases... Regards Thorsten
wicket mailing list
Just out of curiosity, how many members are in the wicket mailing list? regards Josh
Editable localized messages
The combination of wicket:message and custom IStringResourceLoader is really cool for building internationalized applications. We currently use a combination of static strings from property files and dynamic strings stored in a database table loaded via an IStringResourceLoader. To edit a dynamic string, you need to know its key. Now it would be even cooler if you could simply click on a rendered string to open an edit form for the correct key. E.g. when a page is in edit mode (as indicated by a request parameter or an authentication role), wicket:message is rendered not just as text but as a link. Clicking the link generates a request including the message key so you can open an edit form for the key. I'm not sure where to hook into Wicket's default behaviour to implement this kind of logic or if there are better approaches - any suggestions welcome. Best regards, Harald - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
hi .. can you explain what you mean, cause I'm not sure what you mean ... King regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288618.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket mailing list
42 On Jul 14, 2010, at 8:50 PM, Josh Kamau wrote: Just out of curiosity, how many members are in the wicket mailing list? regards Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
Hi Armando, I mean make custom-label-panel a repeater so that you can dynamically add anything you need. Best, Ernesto On Wed, Jul 14, 2010 at 1:56 PM, armandoxxx armando@dropchop.com wrote: hi .. can you explain what you mean, cause I'm not sure what you mean ... King regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288618.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket mailing list
Life is meaningless:-) On Wed, Jul 14, 2010 at 2:04 PM, David Leangen wic...@leangen.net wrote: 42 On Jul 14, 2010, at 8:50 PM, Josh Kamau wrote: Just out of curiosity, how many members are in the wicket mailing list? regards Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable localized messages
Check org.apache.wicket.markup.resolver.WicketMessageResolver This is the default handler for wicket:message and it is registered in org.apache.wicket.Application.internalInit() See whether you can extend it. The idea is to generate a href=... super.onComponentTagBody() /a On Wed, 2010-07-14 at 13:54 +0200, Harald Wellmann wrote: The combination of wicket:message and custom IStringResourceLoader is really cool for building internationalized applications. We currently use a combination of static strings from property files and dynamic strings stored in a database table loaded via an IStringResourceLoader. To edit a dynamic string, you need to know its key. Now it would be even cooler if you could simply click on a rendered string to open an edit form for the correct key. E.g. when a page is in edit mode (as indicated by a request parameter or an authentication role), wicket:message is rendered not just as text but as a link. Clicking the link generates a request including the message key so you can open an edit form for the key. I'm not sure where to hook into Wicket's default behaviour to implement this kind of logic or if there are better approaches - any suggestions welcome. Best regards, Harald - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Training - London, Amsterdam, Brussels, Munich
Here's the schedule for our next round of public Wicket training [0]: London (jWeekend [1]): August 5-6 (Thu-Fri) August 7-8 (Sat-Sun) September 4-5 (Sat-Sun) September 6-7 (Mon-Tue) Amsterdam (JTeam [2]): August 26-27 (Thu-Fri) Brussels (JTeam [2]): September 23-24 (Thu-Fri) Munich (latest jWeekend Global Partner Program [3] member to TBA shortly): Summer/Autumn - TBC Contact us directly [4] with on-site and/or special course requirements. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [0] http://www.jweekend.com/dev/JW703 [1] http://www.jweekend.com/dev/BookingPage [2] http://www.jteam.nl/training/apache-wicket-training.html [2] http://blog.jteam.nl/2009/03/24/jteam-announces-wicket-training/ [3] http://www.jweekend.com/dev/GlobalPartnerProgram [4] http://www.jweekend.com/dev/ContactUs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to pass context-param values to different WebPages ?
I am new to wicket. I have created a simple web-app which displays my name in a label. However, when I wanted to extend the web app by fetching my name from web.xml, though I was able to get the context parameters in the init method of the application class, I am not sure how to send the value to the webpage. Kindly let me know how to pass the context parameter from the application class to the webpage class. My development environment for Wicket 1.4.9 is as follows, OS : Windows XP SP3 App Server : apache-tomcat-6.0.26 JDK : 1.6.0_17 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288699.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
Hey .. 10x for your reply .. I tried what you suggested but it's not working ...and the way wicket works of course not.. you need wicket:id in a markup and I don't want to write it ... cause I'll probably die before i cover all cases needed by customer... but hey .. 10x again for tryin Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288714.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to pass context-param values to different WebPages ?
Create a getMyName-method in Applicatoin class and call Application.get().getMyName() in your page class Stefan -Ursprüngliche Nachricht- Von: Madhan [mailto:madhan.sundarara...@tcs.com] Gesendet: Mittwoch, 14. Juli 2010 14:58 An: users@wicket.apache.org Betreff: How to pass context-param values to different WebPages ? I am new to wicket. I have created a simple web-app which displays my name in a label. However, when I wanted to extend the web app by fetching my name from web.xml, though I was able to get the context parameters in the init method of the application class, I am not sure how to send the value to the webpage. Kindly let me know how to pass the context parameter from the application class to the webpage class. My development environment for Wicket 1.4.9 is as follows, OS : Windows XP SP3 App Server : apache-tomcat-6.0.26 JDK : 1.6.0_17 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288699.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to pass context-param values to different WebPages ?
((YourApplication)getApplication()).getServletContext().getAttribute(attrName); Bilgin On Wed, Jul 14, 2010 at 1:58 PM, Madhan madhan.sundarara...@tcs.com wrote: I am new to wicket. I have created a simple web-app which displays my name in a label. However, when I wanted to extend the web app by fetching my name from web.xml, though I was able to get the context parameters in the init method of the application class, I am not sure how to send the value to the webpage. Kindly let me know how to pass the context parameter from the application class to the webpage class. My development environment for Wicket 1.4.9 is as follows, OS : Windows XP SP3 App Server : apache-tomcat-6.0.26 JDK : 1.6.0_17 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288699.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Job opening - Boston area
Our educational RD non-profit is looking to hire a programmer who has a real interest in working to improve education. You'd have to be in commuting distance of Wakefield, MA (just north of Boston). The job will involve lots of building experimental web apps using Wicket. Please see http://cast.org/about/opportunities/ if you're interested - Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to pass context-param values to different WebPages ?
I tried the following statement in the constructor of my WebPage class, add( new Label( userName, (IndexApplication.get()).getUserName() ) ); I got the following error, IndexPage.java:10: cannot find symbol symbol : method getUserName() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288744.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to pass context-param values to different WebPages ?
Your are new to Java too? Did you override the get() method in your IndexApplication? If not, IndexApplication.get results in an Applicationobject and not in an IndexApplication object. Either cast it in your opage oder create your own get methodn in IndexApplication. add( new Label( userName, ((IndexApplication)(IndexApplication.get())).getUserName() ) ); -Ursprüngliche Nachricht- Von: Madhan [mailto:madhan.sundarara...@tcs.com] Gesendet: Mittwoch, 14. Juli 2010 15:29 An: users@wicket.apache.org Betreff: RE: How to pass context-param values to different WebPages ? I tried the following statement in the constructor of my WebPage class, add( new Label( userName, (IndexApplication.get()).getUserName() ) ); I got the following error, IndexPage.java:10: cannot find symbol symbol : method getUserName() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288744.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Page Expired with back button
Is there already a JIRA ticket for this issue? Would it be possible that wicket is not able to handle a second request in the same session and on the same page, before the first request was completed? Could it be a threading error? Christian - Ursprüngliche Mail Von: Martin Grigorov mcgreg...@e-card.bg An: users@wicket.apache.org Gesendet: Dienstag, den 13. Juli 2010, 16:44:14 Uhr Betreff: Re: Page Expired with back button You are the second person reporting this problem with click link1 and then click link2 this week. Can you please create a simple application that shows the problem and attach it to Jira ticket. On Tue, 2010-07-13 at 07:38 -0700, Christian Helmbold wrote: Hello, when I go back to the previous page with the browsers back button and click on a link on that page, I get every time a page expired error. It seems like Wicket loses the session, since all other actions in the application then results in an expired error. I've looked if the number of session on tomcat changes but there is no change, so tomcat seems to keep the session. The same problem occurs if I click on link and immediately click on a second link before the response of the first click was received. I'm using Wicket 1.4.8 on tomcat 5.5 and 6. Any idea how to fix or where to look for the error? Thanks! Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Output just text, no component
You can use a org.apache.wicket.util.template.JavaScriptTemplate. On Wed, Jul 14, 2010 at 9:51 AM, Ted Vinke tvi...@first8.nl wrote: Hi everybody! I'm trying to accomplish something new with Wicket: output just some text, instead of a component. I simply can't figure out how to dynamically render from my backing Java class $XAML_FILENAME below (which is the suggested snippet to embed JW Player). div name=/mediaspace/ id=/mediaspace//div script type=/text/javascript/ *var* cnt = document.getElementById(mediaspace); *var* src = '$XAML_FILENAME'; *var* cfg = { file:'video.wmv', height:'240', width:'440' }; *var* ply = *new* jeroenwijering.Player(cnt,src,cfg); /script I've tried to put a SPAN where the $XAML_FILENAME is and add a Label with setRenderBodyOnly(*true*) but that's for obvious reasons invalid HTML :) Any hints are greatly appreciated! Kind regards, Ted - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Multiple columns using div with last one on each row different
Is your layout fixed at 3 columns? If so, you should be able to add that AttributeModifer to every third item in the repeater. That's the approach I took. I assumed it's fixed at 3 columns for now and did the change in Java code in the repeater. If I ever need a different column count I'll have to go with a more elaborate solution but this works fine for now. If it is not fixed, but is a liquid layout where the number of columns could change when the browser (or container) is resized, then there is really no way for wicket to put the attr on the right cell. Instead, you will probably need a JavaScipt solution on the client. Are you using any of the JS frameworks (jQuery, MooTools, etc)? Not yet but hoping to integrate jQuery soon. If so, that framework may have facilities to make this easier. I feel like this shouldn't be a tough job for jQuery and a resize event. On Tue, Jul 13, 2010 at 11:48 PM, Chris Colman chr...@stepaheadsoftware.com wrote: That would probably not work because the child at the end of each row is not necessarily the last child in the 'containing object'. The container is the category which has n products eg., P1 P2 P3 P4 P5 P6 P7 P8 Where P8 would be the last child But I need P3 and P6 to be marked as 'last cell'. -Original Message- From: Anh [mailto:7za...@gmail.com] Sent: Wednesday, 14 July 2010 1:19 PM To: users@wicket.apache.org Subject: Re: Multiple columns using div with last one on each row different Not familiar with the blueprint framework, but is there some reason you could not use whatever:last-child { } CSS pseudo-selector? On Tue, Jul 13, 2010 at 7:16 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm using wicket to generate HTML and Compass/Blueprint to manage the CSS. I have a multi column layout with a product in each cell like: P1 P2 P3 P4 P5 P6 P7 Etc., With the blueprint CSS framework you need to specify a slightly different CSS 'class' (eg., lastCell) for the last item in each row and that uses different CSS that does not append an extra 'space' in the grid as it does for the previous cells in that row. I know that I can use new SimpleAttributeModifier(class, lastCell)); when populating the list view but to do that I need to know how many cells will appear in each row. What if I didn't want to hard code that and leave it up to the markup to decide. Is there any wicket markup trick that I can use to tell wicket to insert a special 'class' value into the 'last cell' on each row? -Original Message- From: Francisco Diaz Trepat - gmail [mailto:francisco.diaztre...@gmail.com] Sent: Wednesday, 14 July 2010 6:13 AM To: Wicket-Users Subject: Any Italian wicket maniacs out there? Hi, I would like to ask some Italian users about something personal. If any, and don't mind please contact me privately. I'll surely appreciate it. regards, f(t) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using comet to find all clients using a page
Please tell me if it works ok on all servers or has problems with any ? I saw some posts telling about problems with jetty , -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-comet-to-find-all-clients-using-a-page-tp2283204p2288834.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
ok, so you mention wicket:id as if its some constant thing. Conceptually a markup tahhed by wicket-id, is no less powerful than injecting a scriptlet or any dynamic script you inject via JSP, PHP. Its like a reference point/range. Who says that anything between that wicket:id condemns you to the markup there? Thats what components are for. There are plenty of bases level components for you to choose, override and customize. SO once we've go through inheritance, panels the 2% that us not templatizable and falls under dynamic category will surely be replacable by some component. I'd recommend you read up on available components. I think this is an issue of perception that anything between wicket:id is static! Mabe Im wrong in understanding your real problem but I'd simply say there isnt anything you can do with JSP, JSTL, PHP that you can do with wicket! ..ok a bold statement :p Guys mack me up! haha kidding. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288872.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: Page Expired with back button
AFAIK there is no such ticket. Please create one and attach an application that shows the problem. On Wed, 2010-07-14 at 14:03 +, Christian Helmbold wrote: Is there already a JIRA ticket for this issue? Would it be possible that wicket is not able to handle a second request in the same session and on the same page, before the first request was completed? Could it be a threading error? Christian - Ursprüngliche Mail Von: Martin Grigorov mcgreg...@e-card.bg An: users@wicket.apache.org Gesendet: Dienstag, den 13. Juli 2010, 16:44:14 Uhr Betreff: Re: Page Expired with back button You are the second person reporting this problem with click link1 and then click link2 this week. Can you please create a simple application that shows the problem and attach it to Jira ticket. On Tue, 2010-07-13 at 07:38 -0700, Christian Helmbold wrote: Hello, when I go back to the previous page with the browsers back button and click on a link on that page, I get every time a page expired error. It seems like Wicket loses the session, since all other actions in the application then results in an expired error. I've looked if the number of session on tomcat changes but there is no change, so tomcat seems to keep the session. The same problem occurs if I click on link and immediately click on a second link before the response of the first click was received. I'm using Wicket 1.4.8 on tomcat 5.5 and 6. Any idea how to fix or where to look for the error? Thanks! Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UI Layout
Hey all I finally figured out how to do it ... yes it helped to use ListView but at first I did not notice .setReuseItems(boolean) function ... after reading this article http://www.javaworld.com/javaworld/jw-07-2008/jw-07-wicket2.html?page=1 I figured out how to draw whatever I want into my column component ! Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UI-Layout-tp1891867p2288897.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable localized messages
or rather create a component and use that instead of wicket:message -igor On Wed, Jul 14, 2010 at 5:21 AM, Martin Grigorov mcgreg...@e-card.bg wrote: Check org.apache.wicket.markup.resolver.WicketMessageResolver This is the default handler for wicket:message and it is registered in org.apache.wicket.Application.internalInit() See whether you can extend it. The idea is to generate a href=... super.onComponentTagBody() /a On Wed, 2010-07-14 at 13:54 +0200, Harald Wellmann wrote: The combination of wicket:message and custom IStringResourceLoader is really cool for building internationalized applications. We currently use a combination of static strings from property files and dynamic strings stored in a database table loaded via an IStringResourceLoader. To edit a dynamic string, you need to know its key. Now it would be even cooler if you could simply click on a rendered string to open an edit form for the correct key. E.g. when a page is in edit mode (as indicated by a request parameter or an authentication role), wicket:message is rendered not just as text but as a link. Clicking the link generates a request including the message key so you can open an edit form for the key. I'm not sure where to hook into Wicket's default behaviour to implement this kind of logic or if there are better approaches - any suggestions welcome. Best regards, Harald - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket mailing list
Martijn Dashorst martijn.dashorst at gmail.com writes: 1199 On Wed, Jul 14, 2010 at 1:50 PM, Josh Kamau joshnet2030 at gmail.com wrote: Just out of curiosity, how many members are in the wicket mailing list? regards Josh Does this number includes the people who post through eg Gmane or Nabble ? Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Editable localized messages
Hmm, yes, but then I'd have to add lots of tiny components to my pages. One of the main points of wicket:message is to avoid just that, isn't it? Regards, Harald Von: Igor Vaynberg [igor.vaynb...@gmail.com] or rather create a component and use that instead of wicket:message -igor On Wed, Jul 14, 2010 at 5:21 AM, Martin Grigorov mcgreg...@e-card.bg wrote: Check org.apache.wicket.markup.resolver.WicketMessageResolver This is the default handler for wicket:message and it is registered in org.apache.wicket.Application.internalInit() See whether you can extend it. The idea is to generate a href=... super.onComponentTagBody() /a On Wed, 2010-07-14 at 13:54 +0200, Harald Wellmann wrote: The combination of wicket:message and custom IStringResourceLoader is really cool for building internationalized applications. We currently use a combination of static strings from property files and dynamic strings stored in a database table loaded via an IStringResourceLoader. To edit a dynamic string, you need to know its key. Now it would be even cooler if you could simply click on a rendered string to open an edit form for the correct key. E.g. when a page is in edit mode (as indicated by a request parameter or an authentication role), wicket:message is rendered not just as text but as a link. Clicking the link generates a request including the message key so you can open an edit form for the key. I'm not sure where to hook into Wicket's default behaviour to implement this kind of logic or if there are better approaches - any suggestions welcome. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jWicket 0.6.1
jWicket version 0.6.1 is now in wicketstuff's trunk. New Featuers: - ui-accordion - ui-sortable - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Panel under https
I have a panel which contains a form on my page that is shown as a modal window via JQuery. The page itself is not under https but I would like the form to be submitted via SSL. The form is submitted via an IndicatingAjaxButton. How can I make the form submitted via https but not have the rest of the page under ssl. Thanks. Jeff
Re: wicket mailing list
Less than there should :) 2010/7/14 Josh Kamau joshnet2...@gmail.com Just out of curiosity, how many members are in the wicket mailing list? regards Josh
Preventing double-click of AjaxButtons in ModalWindow
I have ModalWindows whose content contains OK AjaxButtons, which, assuming validation passes, will do some processing and then close the ModalWindow. If a user enters valid data and then double-clicks the OK button they will get an Exception like this one, because Wicket has already processed the closing of the ModalWindow in the first click and the button is therefore no longer on the screen for the second click. org.apache.wicket.WicketRuntimeException: Submit Button tabbedPanel:panel:form:view:productsForm:manageProductsPanel:addProductPanel:content:editForm:ok (path=wizard:tabbedPanel:tabForm:tabbedPanel:panel:form:view:productsForm:manageProductsPanel:addProductPanel:content:editForm:ok) is not visible at org.apache.wicket.markup.html.form.Form$2.component(Form.java:620) Is there some way to prevent this? If the buttons could be disabled in javascript and re-enabled with the ajax request completes, or even if this particular error could be suppressed and ignored if I knew that the submitting button was in a closed ModalWindow. Alex
TextFilteredPropertyColumn feature?
Hello! I am using TextFilteredPropertyColumn in my DataTable and it works very well. But when i added second TextFilteredPropertyColumn to my table, i get some fun. Filtering works only when i fill all two inputs (in these TextFilteredPropertyColumn's). And if i fill only one input, it do not do anything. May be i miss something?? Best regards, Ivan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org