How to render panel markup to string?
Hi! Can a wicket component be rendered to string in the following use case: 1. I have a table (multiple columns and rows). Each row corresponds to a person. The columns could represent for rexample a calendar for the person. Monda, tuesday, etc. 2. For each row, I have summary information. I have a SummaryPanel that can show this information at the footer of the table. 3. In addition to the footer, I would like to show the SummaryPanel contents as a tooltip. 4. I would like to attach the tooltip onto an icon in each column for each row (tooltip content different for different rows, same for different columns on the same row). 5. Ideally I would do like this: populateitem(ListItem item) { item.add(new Tooltip(tooltip, new AbstractReadOnlyModelString() { public String getObject() { RenderUtils.renderToString(new SummaryPanel(dummy-id)) } }); } I.e., I need to render a panel to a string during an ongoing render. I have found an example for rendering a wicket PAGE * http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ Note: I need to render just a panel; so I would rather not frame it with a page. Furthermore, I have found an example about rendering using a new request cycle: * http://www.mail-archive.com/users@wicket.apache.org/msg22167.html But in my understanding this cannot be done if an ongoing request is being processed? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Release Plans for 1.5
I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Release Plans for 1.5
I am care about Can I upgrade all my applications from 1.4.3 to 1.5 as easy as possible. On Fri, Oct 30, 2009 at 4:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Many thanks! Haulyn Microproduction You can access me with the following ways: Location: Shandong Jinan Shumagang 6H-8, 25 Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 persional Twitter: http://twitter.com/saharabear persional Linkedin: http://www.linkedin.com/in/haulyn Haulyn Microproduction Twitter: http://twitter.com/haulynmp Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Release Plans for 1.5
I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - 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: AccessControlException with Wicket on Google App Engine (GAE)
yes, except the fact that I am trying to use a Memcache-based implementation of the IPageStore instead of the HTTPSessionStore (based on the TerracottaPageStore. However, in my case the exception occurs when I am trying to serialize the page using the provided method of the AbstractPageStore. The exception of the second stacktrace I posted was reported by another user in the GAE forum [1], but happening in a totally different scenario. In my initial post I forgot the link to the issue I have opened on the GAE project site. [2] I am using Wicket 1.4.3 (I have also tried it with 1.4.2) and the latest GAE SDK (1.2.6) regards, andr [1] http://groups.google.com/group/google-appengine-java/browse_thread/thread/b80648c126778ef5/0a259ba5bba8078f?lnk=gstq=wicket+accesscontrolexception#0a259ba5bba8078f [2] http://code.google.com/p/googleappengine/issues/detail?id=2334 On 29.10.2009 21:56, Esteban Masoero wrote: I'm sure the answer is yes but to be sure: have you done everything that is said here http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-app-engine.html ? Also, what versions of gae sdk and wicket are you using? A. Maza escribió: Hi, I've encountered now (and have seen reported by other users) several different cases where Wicket on GAE throws an AccessControlException when serializing an object to a byte array. Although this is clearly an issue of GAE permissions, I would like to ask if someone could give me a hint, why this exception occurs or if someone may know a workaround. I've already filed an issue for this on the GAE project site [1] and would forward any findings of the wicket community. Below I include snippets of two different stacktraces. Thanks in advance, andr snip1 java.security.AccessControlException: access denied (java.io.SerializablePermission enableSubclassImplementation) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151) at java.io.ObjectOutputStream.init(ObjectOutputStream.java:253) at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.init(IObjectStreamFactory.java:150) at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory.newObjectOutputStream(IObjectStreamFactory.java:114) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203) /snip1 snip2 (java.io.SerializablePermission enableSubstitution) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:264) at java.security.AccessController.checkPermission (AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:122) at java.io.ObjectOutputStream.enableReplaceObject (ObjectOutputStream.java:556) at org.apache.wicket.util.lang.Objects $ReplaceObjectOutputStream.init(Objects.java:179) at org.apache.wicket.util.lang.Objects $ReplaceObjectOutputStream.init(Objects.java:170) at org.apache.wicket.util.lang.Objects.cloneModel(Objects.java:442) at org.apache.wicket.version.undo.ModelChange.init(ModelChange.java: 103) at org.apache.wicket.version.undo.ChangeList.componentModelChanging (ChangeList.java:64) at org.apache.wicket.version.undo.UndoPageVersionManager.componentModelChanging (UndoPageVersionManager.java:123) at org.apache.wicket.Page.componentModelChanging(Page.java:1555) at org.apache.wicket.Component.modelChanging(Component.java:2197) at org.apache.wicket.Component.setDefaultModelObject(Component.java: 3020) at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab (TabbedPanel.java:346) at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel$5.onClick (TabbedPanel.java:327) at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java: 221) /snip2 - 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: Tree table with check box
Hello again, I am getting only the check box and not the tree structure. Instead of markupcontainer i am using panels. Could you telll, how to get the tree structure along with check box in the same column. -- View this message in context: http://old.nabble.com/Tree-table-with-check-box-tp26080852p26127745.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: Generate dynamic tables
Hello again, Could you tell how to add dynamic column in the DefaultDataTable -- View this message in context: http://old.nabble.com/Generate-dynamic-tables-tp26080641p26127900.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: Generate dynamic tables
When you construct it, you give it a list of columns. If the columns need to change, just reconstruct it and replace it. On Fri, Oct 30, 2009 at 6:37 AM, vela vela@gmail.com wrote: Hello again, Could you tell how to add dynamic column in the DefaultDataTable -- View this message in context: http://old.nabble.com/Generate-dynamic-tables-tp26080641p26127900.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 Release Plans for 1.5
Is the Wicket Ajax Next Generation work going into 1.5? Also, is there plans for an event bus, sort of like what you see in Jonathan Locke's 26 wicket tricks source code? I've seen some really nice use of event bus in GWT that I think Wicket could benefit from. -Richard On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote: I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - 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 Release Plans for 1.5
Hi Martijn, What ideas do you have for this area ? I'll be glad to help if I can. El vie, 30-10-2009 a las 09:27 +0100, Martijn Dashorst escribió: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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
Date format in DataTable
Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Release Plans for 1.5
Mostly component selectors a la JDave/wicket, to ensure your tests don't fail when you modify your component hierarchy. Martijn On Fri, Oct 30, 2009 at 1:29 PM, Martin Grigorov mcgreg...@e-card.bg wrote: Hi Martijn, What ideas do you have for this area ? I'll be glad to help if I can. El vie, 30-10-2009 a las 09:27 +0100, Martijn Dashorst escribió: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Date format in DataTable
Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Date format in DataTable
I do use PropertyColumn. I will try it out and let you know. Thanks for help. Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - 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: Date format in DataTable
or public void populateItem(ItemICellPopulatorT item, String componentId, IModelT rowModel) { item.add(new Label(componentId, createLabelModel(rowModel))); } and you create directly a the label with the formated date Ernesto On Fri, Oct 30, 2009 at 1:55 PM, zabian zabia...@gmail.com wrote: I do use PropertyColumn. I will try it out and let you know. Thanks for help. Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - 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
problem with generation text in javascript code
Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript type=text/javascript appInitialize(here should be generated string); // generated string should be pasted as a param /wicket:extend I want to mention, that I would not mix my application with velocity, which IMHO could be here the easiest solution.. Thank you in advance for all answers. Cheers, Paul - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: problem with generation text in javascript code
make script element a Wicket citizen :-) script wicket:id=myScript.../script El vie, 30-10-2009 a las 14:32 +0100, pawel wolanski escribió: Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript type=text/javascript appInitialize(here should be generated string); // generated string should be pasted as a param /wicket:extend I want to mention, that I would not mix my application with velocity, which IMHO could be here the easiest solution.. Thank you in advance for all answers. Cheers, Paul - 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: 508 accessibility support
some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker etc if these components have provision to make them 508 that will be really helpful. kinabalu wrote: Wicket uses HTML as its template markup. So as long as you code your HTML properly, and it is 508 compliant, you're in the clear. Wicket doesn't present any roadblocks to 508 compliance. On Oct 29, 2009, at 9:04 PM, tubin gen wrote: Will wicket ever provide support for 508 accessibility in current or any of the future releases ? here is 508 accessibility (http://www.section508.gov/) To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/508-accessibility-support-tp26119812p26130678.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: Date format in DataTable
It worked out. My solution is: private static final String DATE_FORMAT = -MM-dd HH:mm:ss; private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); ... @Override protected IModel createLabelModel(IModel rowModel) { return new ModelString(sdf.format(new PropertyModelDate(rowModel, getPropertyExpression()).getObject())); } Thank you for help. Regards, Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - 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: Date format in DataTable
We use the following class for date columns: import org.apache.wicket.WicketRuntimeException; import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; import org.apache.wicket.model.IModel; import org.joda.time.DateTime; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class DateTimeColumnT extends PropertyColumnT { //** // Fields //** private static final long serialVersionUID = -1285893946332340828L; private final String format; //** // Constructors //** public DateTimeColumn(IModelString displayModel, String propertyExpression, String format) { super(displayModel, propertyExpression); this.format = format; } public DateTimeColumn(IModel iModel, String sortProperty, String propertyExpression, String format) { super(iModel, sortProperty, propertyExpression); this.format = format; } //** // Other Methods //** @Override protected IModel createLabelModel(IModel iModel) { return new DateTimeModel(super.createLabelModel(iModel)); } //** // Inner Classes //** private class DateTimeModel implements IModelString { private final IModel inner; private static final long serialVersionUID = 190887916985140272L; private DateTimeModel(IModel inner) { this.inner = inner; } public void detach() { inner.detach(); } public String getObject() { DateTime dateTime = (DateTime) inner.getObject(); if(dateTime == null) { return ; } final Date date = dateTime.toDate(); SimpleDateFormat dateFormatter = new SimpleDateFormat(format); return dateFormatter.format(date); } public void setObject(String s) { SimpleDateFormat dateFormatter = new SimpleDateFormat(format); try { Date date = dateFormatter.parse(s); inner.setObject(new DateTime(date.getTime())); } catch (ParseException e) { throw new WicketRuntimeException(Unable to parse date., e ); } } } } On Fri, Oct 30, 2009 at 10:13 AM, zabian zabia...@gmail.com wrote: It worked out. My solution is: private static final String DATE_FORMAT = -MM-dd HH:mm:ss; private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); ... @Override protected IModel createLabelModel(IModel rowModel) { return new ModelString(sdf.format(new PropertyModelDate(rowModel, getPropertyExpression()).getObject())); } Thank you for help. Regards, Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - 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: Date format in DataTable
If you have to do the same trick in several places maybe it would be better to use James' solution. Or role a classes like public abstract class FormatedDateModel extends ModelString { private static final long serialVersionUID = 1L; private IModelDate model; public FormatedDateModel(IModelDate model) { this.model = model; } @Override public String getObject() { return getFormat().format(model.getObject()); } protected abstract DateFormat getFormat(); } public class MyFormatedDateModel extends FormatedDateModel { private static final long serialVersionUID = 1L; public FormatedDateModel(IModelDate model) { super(model) } protected DateFormat getFormat(){ return DATE_FORMAT; } } So, that you have @Override protected IModel createLabelModel(IModel rowModel) { return new MyFormatedDateModel (new PropertyModelDate(rowModel, getPropertyExpression())); } Best, Ernesto On Fri, Oct 30, 2009 at 3:13 PM, zabian zabia...@gmail.com wrote: It worked out. My solution is: private static final String DATE_FORMAT = -MM-dd HH:mm:ss; private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); ... @Override protected IModel createLabelModel(IModel rowModel) { return new ModelString(sdf.format(new PropertyModelDate(rowModel, getPropertyExpression()).getObject())); } Thank you for help. Regards, Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - 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 Release Plans for 1.5
possibly. i think i would like this release to be as small as possible, centered around the new url stuff. once that is in release 1.5 and put the new ajax support from ng into 1.6. trying to release more and more often instead of taking over a year and a half like we did with 1.4.0 -igor On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen richard.l.al...@gmail.com wrote: Is the Wicket Ajax Next Generation work going into 1.5? Also, is there plans for an event bus, sort of like what you see in Jonathan Locke's 26 wicket tricks source code? I've seen some really nice use of event bus in GWT that I think Wicket could benefit from. -Richard On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote: I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - 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
StatelessForm.clearInput()
Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... The first time I use the form, fill some inputs and then hit Clear, the form is submitted and returns from the server clean (which is what I expected to happen). But after I submit the form with all valid input (that redirects me to another page with a message), then press browser's back button (return to the form) and then hit the Clear button, some of the fields keep they values and some of them cleans. What is happening? Thanks, Tom; - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StatelessForm.clearInput()
What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... The first time I use the form, fill some inputs and then hit Clear, the form is submitted and returns from the server clean (which is what I expected to happen). But after I submit the form with all valid input (that redirects me to another page with a message), then press browser's back button (return to the form) and then hit the Clear button, some of the fields keep they values and some of them cleans. What is happening? Thanks, Tom; - 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: StatelessForm.clearInput()
That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket and use clearInput()? Why? Tom; Martin Grigorov escribió: What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... The first time I use the form, fill some inputs and then hit Clear, the form is submitted and returns from the server clean (which is what I expected to happen). But after I submit the form with all valid input (that redirects me to another page with a message), then press browser's back button (return to the form) and then hit the Clear button, some of the fields keep they values and some of them cleans. What is happening? Thanks, Tom; - 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: StatelessForm.clearInput()
Wait a minute... Because I need a reset button which effectively clean all fields and feedback messages. Reset button doesn't do that so it's not what I want. Tomás Rossi escribió: That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket and use clearInput()? Why? Tom; Martin Grigorov escribió: What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... The first time I use the form, fill some inputs and then hit Clear, the form is submitted and returns from the server clean (which is what I expected to happen). But after I submit the form with all valid input (that redirects me to another page with a message), then press browser's back button (return to the form) and then hit the Clear button, some of the fields keep they values and some of them cleans. What is happening? Thanks, Tom; - 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: problem with generation text in javascript code
Hello Martin, Hmmm it looks like a little bit dirty trick, because I will have to print out whole initialization between script tags... I'll try to find another way to resolve that. Thank you for help Martin. I appreciate that. Cheers, Paul martin-g wrote: make script element a Wicket citizen :-) script wicket:id=myScript.../script El vie, 30-10-2009 a las 14:32 +0100, pawel wolanski escribió: Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript type=text/javascript appInitialize(here should be generated string); // generated string should be pasted as a param /wicket:extend I want to mention, that I would not mix my application with velocity, which IMHO could be here the easiest solution.. Thank you in advance for all answers. Cheers, Paul - 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 -- View this message in context: http://old.nabble.com/problem-with-generation-text-in-javascript-code-tp26130184p26133706.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: 508 accessibility support
Override their HTML or make your own components. Simple. Done. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 30, 2009 at 9:06 AM, fachhoch fachh...@gmail.com wrote: some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker etc if these components have provision to make them 508 that will be really helpful. kinabalu wrote: Wicket uses HTML as its template markup. So as long as you code your HTML properly, and it is 508 compliant, you're in the clear. Wicket doesn't present any roadblocks to 508 compliance. On Oct 29, 2009, at 9:04 PM, tubin gen wrote: Will wicket ever provide support for 508 accessibility in current or any of the future releases ? here is 508 accessibility (http://www.section508.gov/) To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/508-accessibility-support-tp26119812p26130678.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: Using email in SignInPanel Username
May be a bug. Please file a JIRA. In the meantime, the signinpanel is pretty generic and not meant for every usecase. You can easily create your own - even copying the code and modifying it. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 29, 2009 at 1:43 AM, wicketnewuser swarn...@hotmail.com wrote: Any one know what the solution for this is wicketnewuser wrote: I'm trying to use wicket signinpanel . When and choose remember me checkbox and use email address in username (eg@ttt.com , next time when i come it it just remembers abc as user name instead of a...@ttt.com ). It seems when storing and retreving value from cookies we need to encode and decode the value . It doesn't look like wicket is doing this by default which is why this is happening. Does any one know what is the solution for this. html head titleSign In/title link rel=stylesheet type=text/css href=style.css/ style body { background-image: none; } /style /head body h2Sign In/h2 /body /html thank you -- View this message in context: http://www.nabble.com/Using-email-in-SignInPanel-Username-tp26085468p26107531.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: StatelessForm.clearInput()
Ok, I did it. I needed to clean the model object like this... ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().modelChanging(); data.clear(); // data is the model object of the form, and clear sets null to all fields, recursively getForm().modelChanged(); getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... Tomás Rossi escribió: Wait a minute... Because I need a reset button which effectively clean all fields and feedback messages. Reset button doesn't do that so it's not what I want. Tomás Rossi escribió: That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket and use clearInput()? Why? Tom; Martin Grigorov escribió: What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... The first time I use the form, fill some inputs and then hit Clear, the form is submitted and returns from the server clean (which is what I expected to happen). But after I submit the form with all valid input (that redirects me to another page with a message), then press browser's back button (return to the form) and then hit the Clear button, some of the fields keep they values and some of them cleans. What is happening? Thanks, Tom; - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: problem with generation text in javascript code
you can use TextTemplateHeaderContributor to externalize the template and define replacement vars. -igor On Fri, Oct 30, 2009 at 10:09 AM, paul wolanski mikola...@gmail.com wrote: Hello Martin, Hmmm it looks like a little bit dirty trick, because I will have to print out whole initialization between script tags... I'll try to find another way to resolve that. Thank you for help Martin. I appreciate that. Cheers, Paul martin-g wrote: make script element a Wicket citizen :-) script wicket:id=myScript.../script El vie, 30-10-2009 a las 14:32 +0100, pawel wolanski escribió: Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript type=text/javascript appInitialize(here should be generated string); // generated string should be pasted as a param /wicket:extend I want to mention, that I would not mix my application with velocity, which IMHO could be here the easiest solution.. Thank you in advance for all answers. Cheers, Paul - 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 -- View this message in context: http://old.nabble.com/problem-with-generation-text-in-javascript-code-tp26130184p26133706.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
Help with you can only locate or create sessions in the context of a request cycle error
Hi, I am getting this error when i try to get the Session using getWebRequestCycle().getSession(); or even with Session.get() inside my WebPage. Also this is happening only when request goes through the Http Serevr and then to Oracle Application server which was our production setup. The error message is getting displayed in the feedbackpanel of the Wicket WebPage where its trying to get teh Session. In the development environment, i don't have a separate Http Server and all my requests directly goes to my Oracle Application server and i don't have this issue. Since i don't have access to production logs i don't have any other information on this error. But i would appreciate if some one can let me what this error means and when can this error is expected. Thanks a lot in advance for your help. Srini - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with you can only locate or create sessions in the context of a request cycle error
Hi Yasa, can you make sure that getWebRequestCycle().getSession() is called on the same thread that WicketFilter is responding the request? RequestCycle use thread locals to keep his reference, if you are working in an multi thread response, you can get that exception. On Fri, Oct 30, 2009 at 3:53 PM, Yasa, Srinivasa R srinivasa.r.y...@lmco.com wrote: Hi, I am getting this error when i try to get the Session using getWebRequestCycle().getSession(); or even with Session.get() inside my WebPage. Also this is happening only when request goes through the Http Serevr and then to Oracle Application server which was our production setup. The error message is getting displayed in the feedbackpanel of the Wicket WebPage where its trying to get teh Session. In the development environment, i don't have a separate Http Server and all my requests directly goes to my Oracle Application server and i don't have this issue. Since i don't have access to production logs i don't have any other information on this error. But i would appreciate if some one can let me what this error means and when can this error is expected. Thanks a lot in advance for your help. Srini - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: 508 accessibility support
Hi, at a short glance (http://www.webaim.org/standards/508/checklist) I didn't find anything inherent in Wicket violating this standard. Of course you will have to provide most of the required markup by yourself (how should Wicket know values for alt attributes?). Nevertheless if you're able to identify something valuable to be added to Wicket's components, we're all ears. Regards Sven Jeremy Thomerson wrote: Override their HTML or make your own components. Simple. Done. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 30, 2009 at 9:06 AM, fachhoch fachh...@gmail.com wrote: some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker etc if these components have provision to make them 508 that will be really helpful. kinabalu wrote: Wicket uses HTML as its template markup. So as long as you code your HTML properly, and it is 508 compliant, you're in the clear. Wicket doesn't present any roadblocks to 508 compliance. On Oct 29, 2009, at 9:04 PM, tubin gen wrote: Will wicket ever provide support for 508 accessibility in current or any of the future releases ? here is 508 accessibility (http://www.section508.gov/) To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/508-accessibility-support-tp26119812p26130678.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: 508 accessibility support
I am not complaining that wicket violates that . for example AjaxDefaultDataTable it creates the whole table with Sortable Table column, pagination etc, I am asking to provide some methods which takes values for alt attribute . Like the sortable columns , If I can set value for alt attribute that would be really nice. It would be much easier to provide this alt attribute than recreating the whole html , component my self copying from exsisting one and adding additional code for alt attribute. svenmeier wrote: Hi, at a short glance (http://www.webaim.org/standards/508/checklist) I didn't find anything inherent in Wicket violating this standard. Of course you will have to provide most of the required markup by yourself (how should Wicket know values for alt attributes?). Nevertheless if you're able to identify something valuable to be added to Wicket's components, we're all ears. Regards Sven Jeremy Thomerson wrote: Override their HTML or make your own components. Simple. Done. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 30, 2009 at 9:06 AM, fachhoch fachh...@gmail.com wrote: some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker etc if these components have provision to make them 508 that will be really helpful. kinabalu wrote: Wicket uses HTML as its template markup. So as long as you code your HTML properly, and it is 508 compliant, you're in the clear. Wicket doesn't present any roadblocks to 508 compliance. On Oct 29, 2009, at 9:04 PM, tubin gen wrote: Will wicket ever provide support for 508 accessibility in current or any of the future releases ? here is 508 accessibility (http://www.section508.gov/) To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/508-accessibility-support-tp26119812p26130678.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 -- View this message in context: http://old.nabble.com/508-accessibility-support-tp26119812p26135777.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 render panel markup to string?
Looking at AjaxRequestTarget, maybe something like this might work? // substitute our encoding response for the real one so we can capture // component's markup in a manner safe for transport inside CDATA block final Response originalResponse = response; StringResponse stringResponse = new StringResponse(); RequestCycle.get().setResponse(stringResponse); // Initialize temporary variables final Page page = component.findParent(Page.class); if (page == null) { // dont throw an exception but just ignore this component, somehow // it got // removed from the page. // throw new IllegalStateException( // Ajax request attempted on a component that is not associated // with a Page); LOG.debug(component: + component + with markupid: + markupId + not rendered because it was already removed from page); return; } page.startComponentRender(component); try { component.prepareForRender(); // render any associated headers of the component respondHeaderContribution(response, component); } catch (RuntimeException e) { try { component.afterRender(); } catch (RuntimeException e2) { // ignore this one could be a result off. } // Restore original response RequestCycle.get().setResponse(originalResponse); stringResponse.reset(); throw e; } try { component.renderComponent(); } catch (RuntimeException e) { RequestCycle.get().setResponse(originalResponse); stringResponse.reset(); throw e; } page.endComponentRender(component); // Restore original response RequestCycle.get().setResponse(originalResponse); return stringResponse.toString(); 2009/10/30 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! Can a wicket component be rendered to string in the following use case: 1. I have a table (multiple columns and rows). Each row corresponds to a person. The columns could represent for rexample a calendar for the person. Monda, tuesday, etc. 2. For each row, I have summary information. I have a SummaryPanel that can show this information at the footer of the table. 3. In addition to the footer, I would like to show the SummaryPanel contents as a tooltip. 4. I would like to attach the tooltip onto an icon in each column for each row (tooltip content different for different rows, same for different columns on the same row). 5. Ideally I would do like this: populateitem(ListItem item) { item.add(new Tooltip(tooltip, new AbstractReadOnlyModelString() { public String getObject() { RenderUtils.renderToString(new SummaryPanel(dummy-id)) } }); } I.e., I need to render a panel to a string during an ongoing render. I have found an example for rendering a wicket PAGE * http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ Note: I need to render just a panel; so I would rather not frame it with a page. Furthermore, I have found an example about rendering using a new request cycle: * http://www.mail-archive.com/users@wicket.apache.org/msg22167.html But in my understanding this cannot be done if an ongoing request is being processed? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tree table with check box
Can you be more specific please. How did you created the treetable. How the columns. How the panel etc. Code helps to understand your problem. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to render panel markup to string?
Almost still needs some tweaking: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = -]] at org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:125) at org.apache.wicket.Component.locateMarkupStream(Component.java:3813) at org.apache.wicket.Component.renderComponent(Component.java:2547) ** Martin 2009/10/30 Martin Makundi martin.maku...@koodaripalvelut.com: Looking at AjaxRequestTarget, maybe something like this might work? // substitute our encoding response for the real one so we can capture // component's markup in a manner safe for transport inside CDATA block final Response originalResponse = response; StringResponse stringResponse = new StringResponse(); RequestCycle.get().setResponse(stringResponse); // Initialize temporary variables final Page page = component.findParent(Page.class); if (page == null) { // dont throw an exception but just ignore this component, somehow // it got // removed from the page. // throw new IllegalStateException( // Ajax request attempted on a component that is not associated // with a Page); LOG.debug(component: + component + with markupid: + markupId + not rendered because it was already removed from page); return; } page.startComponentRender(component); try { component.prepareForRender(); // render any associated headers of the component respondHeaderContribution(response, component); } catch (RuntimeException e) { try { component.afterRender(); } catch (RuntimeException e2) { // ignore this one could be a result off. } // Restore original response RequestCycle.get().setResponse(originalResponse); stringResponse.reset(); throw e; } try { component.renderComponent(); } catch (RuntimeException e) { RequestCycle.get().setResponse(originalResponse); stringResponse.reset(); throw e; } page.endComponentRender(component); // Restore original response RequestCycle.get().setResponse(originalResponse); return stringResponse.toString(); 2009/10/30 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! Can a wicket component be rendered to string in the following use case: 1. I have a table (multiple columns and rows). Each row corresponds to a person. The columns could represent for rexample a calendar for the person. Monda, tuesday, etc. 2. For each row, I have summary information. I have a SummaryPanel that can show this information at the footer of the table. 3. In addition to the footer, I would like to show the SummaryPanel contents as a tooltip. 4. I would like to attach the tooltip onto an icon in each column for each row (tooltip content different for different rows, same for different columns on the same row). 5. Ideally I would do like this: populateitem(ListItem item) { item.add(new Tooltip(tooltip, new AbstractReadOnlyModelString() { public String getObject() { RenderUtils.renderToString(new SummaryPanel(dummy-id)) } }); } I.e., I need to render a panel to a string during an ongoing render. I have found an example for rendering a wicket PAGE * http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ Note: I need to render just a panel; so I would rather not frame it with a page. Furthermore, I have found an example about rendering using a new request cycle: * http://www.mail-archive.com/users@wicket.apache.org/msg22167.html But in my understanding this cannot be done if an ongoing request is being processed? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Opera. AjaxSelfUpdatingTimerBehavior inside iframe not rendering
Hi, Anyone encountered that AjaxSelfUpdatingTimerBehavior doesn't update markup when site is inside iframe on Opera browser? When outside iframe there is no problem. And it is floating - some markup is updated fine and when it is more complex, page become frozen. Opera versions tested: 9.64, 10.01 -- Tony. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org