RE: Wicket an jQuery: current status
No, no connections. I thin the wicketstuff project is still based upon jquery 1.2. I don't know if this project is still active. -Ursprüngliche Nachricht- Von: Rob Sonke [mailto:r...@tigrou.nl] Gesendet: Donnerstag, 4. Juni 2009 07:22 An: users@wicket.apache.org Betreff: Re: Wicket an jQuery: current status Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - 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: Different xml property filename for the markup and java
Thanks for the suggestions everone! Jens -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23864326.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
AW: Wicket an jQuery: current status
But wiquery formally known as wiqueXt and jQuery4Wicket is very active and going strong: http://code.google.com/p/wiquery/ -Ursprüngliche Nachricht- Von: Stefan Lindner [mailto:lind...@visionet.de] Gesendet: Donnerstag, 4. Juni 2009 08:09 An: users@wicket.apache.org Betreff: RE: Wicket an jQuery: current status No, no connections. I thin the wicketstuff project is still based upon jquery 1.2. I don't know if this project is still active. -Ursprüngliche Nachricht- Von: Rob Sonke [mailto:r...@tigrou.nl] Gesendet: Donnerstag, 4. Juni 2009 07:22 An: users@wicket.apache.org Betreff: Re: Wicket an jQuery: current status Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - 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: ListMultipleChoice and HashSet
Igor Vaynberg wrote: need to see more of the stacktrace -igor This is the entire stacktrace that is shown: WicketMessage: Error calling method: public void nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object: User: Test Root cause: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100) at org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) at org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) at org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) at org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at org.apache.wicket.markup.html.form.Form.process(Form.java:908) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40) at org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65) at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) at org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at
Best way to do a tracking Nav Bar in Wicket?
We need to build a Nav Bar that tracks visually indicates what section of the site the user is in: - 5 section links across the top of the site which go to section entry pages, eg Buyers, Sellers, Knowledge Base, Forum etc - All pages in the site live in a section, but there are more than 1 pages in each section - The nav bar should show what section the current page is in. - Some links take the user to a page in another section. In this case, the nav bar should update when the page change occurs. This problem requires a mapping from Page = Section. So far, I haven't found anything preexisting in Wicket that handles this use-case or mapping. Any suggestions for something I could re-use, or examples, appreciated. Thanks Ben PS Thank you also for the responses to my recent question on context-sensitive authorization, v useful. -- *Ben Hutchison Senior Developer * Level 2 476 St Kilda Road Melbourne VIC 3004 T 613 8807 5252 | F 613 8807 5203 | M 0423 879 534 | www.ibsglobalweb.com http://www.ibsglobalweb.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Different xml property filename for the markup and java
But still... Everything I read says that wicket searches for property files on class hierarchy and nesting. And that a good thing of cource. But... Lets say that I would like to have one big xml property file for every functionality package (that our customers might want to buy). Most of the pages in that package is built up of different panels but they share a lot of properties. I cant use the MyApplication.xml because its in the core package. But I got two base webpages in the core webapplication package(that contains the Application class). One webpage for basic layout where I'm using wicket:child. And one webpage that I using in modalwindows. Im willing to extend them for the func. package but I dont want to duplicate all the properties in these to pages propertyfiles. In my case I cant see how the wicket class hierarchy and nesting could help me. But I dont understand what you meen with package-wide property files. I know two ways of hooking up on property files in wicket. 1. Nesting and hierarchy 2. getResourceSettings().addStringResourceLoader in the Application.init I cant use number 2 because Its in the core package Jens there are always package-wide property files support in wicket... -igor -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23865653.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
AW: Wicket an jQuery: current status
So you should use wiquery. I need callbacks like onDragStart e.g. an I did not see this in wiquery. Mybe it is there but I did not see it. -Ursprüngliche Nachricht- Von: Dorothée Giernoth [mailto:dorothee.giern...@kds-kg.de] Gesendet: Donnerstag, 4. Juni 2009 08:32 An: users@wicket.apache.org Betreff: AW: Wicket an jQuery: current status But wiquery formally known as wiqueXt and jQuery4Wicket is very active and going strong: http://code.google.com/p/wiquery/ -Ursprüngliche Nachricht- Von: Stefan Lindner [mailto:lind...@visionet.de] Gesendet: Donnerstag, 4. Juni 2009 08:09 An: users@wicket.apache.org Betreff: RE: Wicket an jQuery: current status No, no connections. I thin the wicketstuff project is still based upon jquery 1.2. I don't know if this project is still active. -Ursprüngliche Nachricht- Von: Rob Sonke [mailto:r...@tigrou.nl] Gesendet: Donnerstag, 4. Juni 2009 07:22 An: users@wicket.apache.org Betreff: Re: Wicket an jQuery: current status Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - 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: AW: Wicket an jQuery: current status
Oh yes I read a while ago that they were planning to merge the two projects but didn't notice that that happened already. Looking good so far :) Rob Dorothée Giernoth wrote: But wiquery formally known as wiqueXt and jQuery4Wicket is very active and going strong: http://code.google.com/p/wiquery/ -Ursprüngliche Nachricht- Von: Stefan Lindner [mailto:lind...@visionet.de] Gesendet: Donnerstag, 4. Juni 2009 08:09 An: users@wicket.apache.org Betreff: RE: Wicket an jQuery: current status No, no connections. I thin the wicketstuff project is still based upon jquery 1.2. I don't know if this project is still active. -Ursprüngliche Nachricht- Von: Rob Sonke [mailto:r...@tigrou.nl] Gesendet: Donnerstag, 4. Juni 2009 07:22 An: users@wicket.apache.org Betreff: Re: Wicket an jQuery: current status Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - 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: PageExpiredException immediatly after login
Hi, I tried rc4 but that did not solve the problem and caused IE 7 to stop working after login showing 404 Error Page. Because we are in testing phase I reverted rc4 to rc1. After more investigation I found that it only happens with safari 3.2.3 on Mac 10.5. My Loadbalancer HA Proxy seems to cause the problem as it appends a prefix to JSESSIONID to provide sticky sessions and removing the prefix after forwarding the request to the server, so there should be no impact, but it is. No use a different cookie for sticky session which does not touch the JSESSIONID Oliver igor.vaynberg wrote: rc4 has been out for a while, try with that. -igor On Wed, Jun 3, 2009 at 9:25 AM, okrohne okro...@yahoo.de wrote: Hi, I am using wicket 1.4rc1 Should I switch to a different Version? Thanks, Oliver igor.vaynberg wrote: are you using the latest version of wicket? and if you are create a quickstart that reproduces this and attach it to a jira issue. -igor On Wed, Jun 3, 2009 at 9:13 AM, Oliver Krohne okro...@yahoo.de wrote: Hi, Sometimes I get a PageExpiredException immediatly after login and subseguent login does not solve it. So the application is unuseable. I have a BookmarkablePage mounted under /login after succesfull login the user is redirected to the application's homepage. If the user is not logged in MyApplication.getHomePage returns a different Home page than if the user is logged, so two home pages. If the user is logged in then the home page is a page which uses an AbstractAjaxTimerBehavior to update a panel. The page can be seen until the first self update and then I get a PageExpiredException. Is is a problem that I use two different homepages ? I do not get a Not Serializable Exception. Here is the stacktrace: 2009-06-03 14:11:55,659 ERROR [http-8080-4] XXX.Wicket: XXX RuntimeException: org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore. at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:134) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at com.XXX.security.RememberMeProcessingFilter.doFilterHttp(FytchRememberMeProcessingFilter.java:72) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
Re: Best way to do a tracking Nav Bar in Wicket?
Why not just have each page be able to report the section it belongs to ( e.g. getSection() method ). The section navbar component can then simply call that method on it's page and update the bar accordingly. Ben Hutchison wrote: We need to build a Nav Bar that tracks visually indicates what section of the site the user is in: - 5 section links across the top of the site which go to section entry pages, eg Buyers, Sellers, Knowledge Base, Forum etc - All pages in the site live in a section, but there are more than 1 pages in each section - The nav bar should show what section the current page is in. - Some links take the user to a page in another section. In this case, the nav bar should update when the page change occurs. This problem requires a mapping from Page = Section. So far, I haven't found anything preexisting in Wicket that handles this use-case or mapping. Any suggestions for something I could re-use, or examples, appreciated. Thanks Ben PS Thank you also for the responses to my recent question on context-sensitive authorization, v useful. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: MultiLineLabel and alot of P
Erik van Oosten ha scritto: Hi Daniele, Probably the best action is to look at the source of MultiLineLable, copy it to your own sources and adapt it at will. This approach has 2 advantages: 1) it keeps the wicket library small and focused, 2) you can code it exactly the way you want. Regards, Erik. Ok extend the class, and all works now. This is my class, if someone need it: import org.apache.wicket.markup.ComponentTag; import org.apache.wicket.markup.MarkupStream; import org.apache.wicket.model.IModel; import org.apache.wicket.util.string.AppendingStringBuffer; /** * estende MultiLineLabel di wicket per utilizzare solamente br come sostituzione degli a-capo * @author daniele sala * @date 04-06-2009 */ public class MultiLineLabel extends org.apache.wicket.markup.html.basic.MultiLineLabel { public MultiLineLabel(String id) { super(id); } public MultiLineLabel(String id, String label) { super(id, label); } public MultiLineLabel(String id, IModel? model) { super(id, model); } /** * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag) */ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { final CharSequence body = this.toMultilineMarkup(getDefaultModelObjectAsString()); replaceComponentTagBody(markupStream, openTag, body); } /** * Converts a String to multiline HTML markup by replacing newlines with line break entities * (lt;br/gt;). * * @param s *String to transform * @return String with all single occurrences of newline replaced with lt;br/gt;. */ private CharSequence toMultilineMarkup(final CharSequence s) { if (s == null) { return null; } final AppendingStringBuffer buffer = new AppendingStringBuffer(); for (int i = 0; i s.length(); i++) { final char c = s.charAt(i); switch (c) { case '\n': buffer.append(br/); break; case '\r': break; default: buffer.append(c); break; } } return buffer; } } Daniele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
TreeTable with image
I need to show an icon in a cell of a TreeTable. And change color of another cell. There's a way? I don't find response googling... Thanks Daniele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket and Google Application Engine (yet another post)
Hi, I've been playing around and tried to put a Wicket application in GAE. There are some good links. The best one is: http://www.xaloon.org/blog/apache-wicket-issues-on-google-app-engine-for-javawhich holds other links. Anyway, I have put in google code my successful attempt. Basically, I saw two options for a Wicket on GAE: 1. Create a GAE application and make it Wicket (one link describes it perfectly). 2. Create a Wicket app (quickstart) and make it GAE enabled. At first I did the 1st option and after making it worked, I managed to make option 2 work as well. In the code you will find option 2. I really hope that will help some of you. http://code.google.com/p/umbria-schaham-2009/ Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: TreeTable with image
Using Fragment maybe? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 1:44 PM, Daniele sdaniel...@tiscalinet.it wrote: I need to show an icon in a cell of a TreeTable. And change color of another cell. There's a way? I don't find response googling... Thanks Daniele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Copy Form Fields
hhhmm... I'm not a Hibernate expert, but what if your POJO will be detached? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, Jun 3, 2009 at 11:02 PM, hill180 hill...@gmail.com wrote: apparently no. it may just be my understanding. Because the modal is from a compoundproperty that is a hibernate POJO, this will copy what is in the database over, not what is in the field over. I hope I am explaining myself. -jose On Jun 1, 2009, at 8:25 AM, Eyal Golan wrote: I though more something like this: AjaxLink link = new AjaxLink(copyAddress){ @Override public void onClick(AjaxRequestTarget target) { this.address2 = this.address1; target.addComponent(myAddress2); } };//end of Link wouldn't that work? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Mon, Jun 1, 2009 at 5:31 PM, hill180 hill...@gmail.com wrote: AjaxLink link = new AjaxLink(copyAddress){ @Override public void onClick(AjaxRequestTarget target) { myAddress2.setModelObject(myAddress1.getValue()); target.addComponent(myAddress2); } };//end of Link This kinda works. It does update the MyAddress2 Field, but if I change myAddress1 and click on the click, it will get the original value of myAddress1, not the value inside of the forms textfield. -jose On Jun 1, 2009, at 1:48 AM, Eyal Golan wrote: I'm not sure, but give it a try: In the onClick, set the property address2 to be the same as property address1. Add myAddress2 to the target. If you use compoundpropertymodel, it should work. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Mon, Jun 1, 2009 at 12:55 AM, hill180 hill...@gmail.com wrote: I have looked through the archives and there were a couple references to this question but no examples and I was hoping for some help. I have a form with Address One and Address Two, I have a link that I just want to copy the data over. I am thinking it should use Javascript, but I am new to wicket and not sure how to implement. The textfields are a compound property model which is hitting a hibernate POJO. private static class AddressPanel extends Panel { public AddressPanel(String id, Form f,final AssociateDB a) { super(id); final TextField myAddress1 = new TextField(Address1); // First Address add(myAddress1); final TextField myAddress2 = new TextField(Address2); // First Address myAddress2.setOutputMarkupId(true); add(myAddress2); Link link = new Link(copyAddress){ @Override //TODO ADD JAVASCRIPT COPY, FAILS TO SAVE BEFORE COPY OF DATA public void onClick() { } }; add(link); } }; - 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: TreeTable with image
Eyal Golan ha scritto: Using Fragment maybe? How can I use it? To use TreeTable I only put: div wicket:id=eventi / in html file and in Java i define column: IColumn columns[] = new IColumn[] {...} and treetable: eventi = new TreeTable(eventi, createTreeModel(), columns){...} - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TreeTable with image
I haven't worked with TreeTable, but they are exactly as DataTable (so I think). But what you wrote is exactly this. Just create one of your columns with a Fragment. I'll try to send you an example later. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 3:52 PM, Daniele sdaniel...@tiscalinet.it wrote: Eyal Golan ha scritto: Using Fragment maybe? How can I use it? To use TreeTable I only put: div wicket:id=eventi / in html file and in Java i define column: IColumn columns[] = new IColumn[] {...} and treetable: eventi = new TreeTable(eventi, createTreeModel(), columns){...} - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TreeTable with image
Check below: private PropertyColumn createLinkColumn() { PropertyColumn p = new PropertyColumn(new Model(getLinkHeader()), getLinkSortProp(), getLinkHeader()) { private static final long serialVersionUID = 11L; @Override public void populateItem(Item cellItem, String componentId, IModel rowModel) { IdWrapper idWrapper = (IdWrapper) rowModel.getObject(); * Fragment frag = getLinkFragment(componentId, idWrapper);* cellItem.add(frag); } }; return p; } My example creates a Fragment, which is a Link. But you could put there whatever you feel like. You can even add a panel. Or, you can even add the image to the cellItem, but then you'll need to change the tag name: cellItem.add(new ScoreImage(componentId, score)); and in ScoreImage: @Override protected void onComponentTag(ComponentTag tag) { tag.setName(img); super.onComponentTag(tag); } Note: All of the above is use in DataTable. But this creating different types of IColumns Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 3:54 PM, Eyal Golan egola...@gmail.com wrote: I haven't worked with TreeTable, but they are exactly as DataTable (so I think). But what you wrote is exactly this. Just create one of your columns with a Fragment. I'll try to send you an example later. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 3:52 PM, Daniele sdaniel...@tiscalinet.it wrote: Eyal Golan ha scritto: Using Fragment maybe? How can I use it? To use TreeTable I only put: div wicket:id=eventi / in html file and in Java i define column: IColumn columns[] = new IColumn[] {...} and treetable: eventi = new TreeTable(eventi, createTreeModel(), columns){...} - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: checking for required fields
you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent) component; if (!formComponent.isRequired()) { // do something } } return component; } }); 2009/6/4 Eyal Golan egola...@gmail.com Hi, What is the best way to check if there are any required fields in a page? I want a page that checks for these fields and do something accordingly. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: checking for required fields
thanks, iIf I want it to run on all children (recursively), should I use somewhere IVisitor.CONTINUE_TRAVERSAL; ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:08 PM, sander v F sandervanfaas...@gmail.comwrote: you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent) component; if (!formComponent.isRequired()) { // do something } } return component; } }); 2009/6/4 Eyal Golan egola...@gmail.com Hi, What is the best way to check if there are any required fields in a page? I want a page that checks for these fields and do something accordingly. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: checking for required fields
I guess yes ... org.apache.wicket.MarkupContainer#visitChildren(final Class clazz, final IVisitor visitor) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:26 PM, Eyal Golan egola...@gmail.com wrote: thanks, iIf I want it to run on all children (recursively), should I use somewhere IVisitor.CONTINUE_TRAVERSAL; ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:08 PM, sander v F sandervanfaas...@gmail.comwrote: you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent) component; if (!formComponent.isRequired()) { // do something } } return component; } }); 2009/6/4 Eyal Golan egola...@gmail.com Hi, What is the best way to check if there are any required fields in a page? I want a page that checks for these fields and do something accordingly. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Fingerprint login
Hi! Does anybody on this list have good experiences about a fingerprint login solution to a web-app? We are developing a Wicket web application whose users are identified by username + password. Our customer has one shared workstation per workplace, multiple users per workstation. The web browser is allways running (i.e., windows login user cannot be used to determine the user of the web application). Our customer is using internet explorer and firefox as their web browser (i.e., both are viable options). I would like to hear if anybody here has experience of a successful Fingerprint login solution for web-applications in a similar scenario: a) identify who is the user b) login the identified user into the web application (without changing the windows user) c) log out d) later another user can use the same web app by using his/her fingerprint which will be converted into his/her user account and password. If you have experience about the above scenario, what combination of software and hardware would you recommend? Our customer company has over 30 employees so the software/hardware cannot be limited to just a few. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: checking for required fields
OK, I'm not sure, but is it a bug? Looking at MarkupContainer#visitChildren I found something strange. The lines: // If child is a container if ((child instanceof MarkupContainer) (value != IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER)) { ... } Now maybe I'm wrong, but should isInstance or isAssignableFrom be used? In any case, I have a page that holds containers and the visitor did not traverse inside them: visitChildren(FormComponent.class, new Component.IVisitor() { public Object component(Component component) { if (FormComponent.class.isInstance(component)) { FormComponent formComponent = (FormComponent) component; if (formComponent.isRequired()) { required.setVisible(true); return formComponent; } } return Component.IVisitor.CONTINUE_TRAVERSAL; } }); Is it me or Wicket? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:28 PM, Eyal Golan egola...@gmail.com wrote: I guess yes ... org.apache.wicket.MarkupContainer#visitChildren(final Class clazz, final IVisitor visitor) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:26 PM, Eyal Golan egola...@gmail.com wrote: thanks, iIf I want it to run on all children (recursively), should I use somewhere IVisitor.CONTINUE_TRAVERSAL; ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:08 PM, sander v F sandervanfaas...@gmail.comwrote: you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent) component; if (!formComponent.isRequired()) { // do something } } return component; } }); 2009/6/4 Eyal Golan egola...@gmail.com Hi, What is the best way to check if there are any required fields in a page? I want a page that checks for these fields and do something accordingly. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
test
test test test test - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test
nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: test test test test - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TreeTable with image
Sorry but server doesn't accept my direct response, so I write to new post: Thanks, but IColumn for TreeTable is different and it doesn't work in the same way :-(. Only class PropertyRenderableColumn, PropertyTreeColumn and the param is: Parameters: location Specifies how the column should be aligned and what his size should be header Header caption propertyExpression Expression for property access (getter of class for get the value to show) --- original post: Check below: private PropertyColumn createLinkColumn() { PropertyColumn p = new PropertyColumn(new Model(getLinkHeader()), getLinkSortProp(), getLinkHeader()) { private static final long serialVersionUID = 11L; @Override public void populateItem(Item cellItem, String componentId, IModel rowModel) { IdWrapper idWrapper = (IdWrapper) rowModel.getObject(); * Fragment frag = getLinkFragment(componentId, idWrapper);* cellItem.add(frag); } }; return p; } My example creates a Fragment, which is a Link. But you could put there whatever you feel like. You can even add a panel. Or, you can even add the image to the cellItem, but then you'll need to change the tag name: cellItem.add(new ScoreImage(componentId, score)); and in ScoreImage: @Override protected void onComponentTag(ComponentTag tag) { tag.setName(img); super.onComponentTag(tag); } Note: All of the above is use in DataTable. But this creating different types of IColumns - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test
Johan Compagner ha scritto: nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: I have problem sendind response to post another post: Delivery Status Notification - These recipients of your message have been processed by the mail server: users@wicket.apache.org; Failed; 5.3.4 (message too big for system) Remote MTA mx1.us.apache.org: network error - SMTP protocol diagnostic: 552 spam score (6.9) exceeded threshold - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test
so the message exactly tells you what the problem is (message too big for system) On Thu, Jun 4, 2009 at 17:23, Daniele sdaniel...@tiscalinet.it wrote: Johan Compagner ha scritto: nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: I have problem sendind response to post another post: Delivery Status Notification - These recipients of your message have been processed by the mail server: users@wicket.apache.org; Failed; 5.3.4 (message too big for system) Remote MTA mx1.us.apache.org: network error - SMTP protocol diagnostic: 552 spam score (6.9) exceeded threshold - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Different xml property filename for the markup and java
you can create a file called package.properties which will also be checked as the hierarchy is being iterated by all classes in that package. -igor On Thu, Jun 4, 2009 at 1:15 AM, jensiator jens.alen...@megasol.se wrote: But still... Everything I read says that wicket searches for property files on class hierarchy and nesting. And that a good thing of cource. But... Lets say that I would like to have one big xml property file for every functionality package (that our customers might want to buy). Most of the pages in that package is built up of different panels but they share a lot of properties. I cant use the MyApplication.xml because its in the core package. But I got two base webpages in the core webapplication package(that contains the Application class). One webpage for basic layout where I'm using wicket:child. And one webpage that I using in modalwindows. Im willing to extend them for the func. package but I dont want to duplicate all the properties in these to pages propertyfiles. In my case I cant see how the wicket class hierarchy and nesting could help me. But I dont understand what you meen with package-wide property files. I know two ways of hooking up on property files in wicket. 1. Nesting and hierarchy 2. getResourceSettings().addStringResourceLoader in the Application.init I cant use number 2 because Its in the core package Jens there are always package-wide property files support in wicket... -igor -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23865653.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: checking for required fields
maybe because your visitor stops after it finds the first formcomponent. -igor On Thu, Jun 4, 2009 at 7:21 AM, Eyal Golan egola...@gmail.com wrote: OK, I'm not sure, but is it a bug? Looking at MarkupContainer#visitChildren I found something strange. The lines: // If child is a container if ((child instanceof MarkupContainer) (value != IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER)) { ... } Now maybe I'm wrong, but should isInstance or isAssignableFrom be used? In any case, I have a page that holds containers and the visitor did not traverse inside them: visitChildren(FormComponent.class, new Component.IVisitor() { public Object component(Component component) { if (FormComponent.class.isInstance(component)) { FormComponent formComponent = (FormComponent) component; if (formComponent.isRequired()) { required.setVisible(true); return formComponent; } } return Component.IVisitor.CONTINUE_TRAVERSAL; } }); Is it me or Wicket? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:28 PM, Eyal Golan egola...@gmail.com wrote: I guess yes ... org.apache.wicket.MarkupContainer#visitChildren(final Class clazz, final IVisitor visitor) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:26 PM, Eyal Golan egola...@gmail.com wrote: thanks, iIf I want it to run on all children (recursively), should I use somewhere IVisitor.CONTINUE_TRAVERSAL; ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jun 4, 2009 at 4:08 PM, sander v F sandervanfaas...@gmail.comwrote: you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent) component; if (!formComponent.isRequired()) { // do something } } return component; } }); 2009/6/4 Eyal Golan egola...@gmail.com Hi, What is the best way to check if there are any required fields in a page? I want a page that checks for these fields and do something accordingly. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: test
Johan Compagner ha scritto: so the message exactly tells you what the problem is (message too big for system) I try to cut alot of message, but nothing appened, so, as you can see in my last message Re: TreeTable with image I edit message as new and retry - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket event on Wednesday
Hi everyone, Excellent event as usual, particularly enjoyed the contribute to wicket session, looking forward to the next one. Yiannis Alastair Maw wrote: Hi, folks. Quick reminder that there's a London Wicket Users Group meet-up on Wednesday evening at Google UK in Victoria. It's rather late in the day for me to be announcing the topic of my talk, but it's going to be interesting: *Bookmarkable Everything* Wicket is great at managing server side state for you, but you still write a lot of boilerplate code for users to easily bookmark your pages. AJAX makes the problem ten times harder. Come along on Wednesday for instant parameterised pain relief. Sign up here: http://jweekend.co.uk/dev/LWUGReg Alastair - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Export Excel file containing string and rendered component
I, too, am trying to have my application download MS Excel files. Until now, mine have contained the content of a DataTable, using the code I received from the mailing list three years ago: Button button = new Button(excelExport) { public void onSubmit() { getRequestCycle().setRequestTarget( new ComponentRequestTarget(dataTable) ); WebResponse wr = (WebResponse)getResponse(); wr.setContentType( excel/ms-excel; name=+getMSExcelFilename() ); wr.setHeader( content-disposition, attachment;filename=+getMSExcelFilename() ); } }; The file downloaded contains an HTML fragment that both MS Excel and MS Word can interpret, if one opens the resulting file in those applications. Now my users told me they would like the download to contain not just the data, but the date of its creation. Is there an easy way to pre-pend an arbitrary string to that HTML fragment? I don't really understand the details of Wicket's page rendering process, and looking at the classes I've been using there don't seem to be any obvious hooks. stream = class AbstractResourceStreamWriter() { public void write(OutputStream output) { // do your writing } } getRequestCycle().setRequestTarget( new ResourceStreamRequestTarget( stream ).setFileName( file.xls ) ); johan On Tue, Apr 1, 2008 at 9:31 AM, d...@newfoundmarket.com wrote: Hello: I am trying to export dynamically generated excel file. The generator would send the file.xls to an OutputStream. ... -- View this message in context: http://www.nabble.com/export-excel-file-via-an-OutputStream-tp16416239p23873774.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
WicketJQuery: jQuery integration into Wicket library
Checked Stefan Lindner's WicketJQuery.jar. Tryed drag drop, works like a charm, has an excelent, concise API. Well done ! The library can be found on http://subversion.visionet.de/project/WicketJQuery Thanks Stefan, Stefan Jozsa - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Export Excel file containing string and rendered component
you have the webresponse, can you not simply write into it? -igor On Thu, Jun 4, 2009 at 9:49 AM, Frank Silbermann frank.silberm...@fedex.com wrote: I, too, am trying to have my application download MS Excel files. Until now, mine have contained the content of a DataTable, using the code I received from the mailing list three years ago: Button button = new Button(excelExport) { public void onSubmit() { getRequestCycle().setRequestTarget( new ComponentRequestTarget(dataTable) ); WebResponse wr = (WebResponse)getResponse(); wr.setContentType( excel/ms-excel; name=+getMSExcelFilename() ); wr.setHeader( content-disposition, attachment;filename=+getMSExcelFilename() ); } }; The file downloaded contains an HTML fragment that both MS Excel and MS Word can interpret, if one opens the resulting file in those applications. Now my users told me they would like the download to contain not just the data, but the date of its creation. Is there an easy way to pre-pend an arbitrary string to that HTML fragment? I don't really understand the details of Wicket's page rendering process, and looking at the classes I've been using there don't seem to be any obvious hooks. stream = class AbstractResourceStreamWriter() { public void write(OutputStream output) { // do your writing } } getRequestCycle().setRequestTarget( new ResourceStreamRequestTarget( stream ).setFileName( file.xls ) ); johan On Tue, Apr 1, 2008 at 9:31 AM, d...@newfoundmarket.com wrote: Hello: I am trying to export dynamically generated excel file. The generator would send the file.xls to an OutputStream. ... -- View this message in context: http://www.nabble.com/export-excel-file-via-an-OutputStream-tp16416239p23873774.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: controlling components from sub classes
I am actually asking for generic solution through which I will be able to modify components behavior from sub class without touching base class is there any pattern or any of the page method where I can retrieve the component by its path and make changes ? Alexandru Objelean wrote: What about this: BasePage: --- add(newFindingNumber(findingNumber)); protected Component newFindingNumber(String id) { return new TextFieldString(id); } --- in ChildPage: --- protected Component newFindingNumber(String id) { Component component = super. newFindingNumber(id); component.setEnabled(false);// or whatever return component; } --- Alex fachhoch wrote: I looking for some best practices or better way to control my page components , like set enable add attribute modifiers etc. for example I have add and edit page , where one textField should be enabled in add and disabled in edit so for this I did add(new TextFieldString(findingNumber).setEnabled(enableFindingNumber())); protected boolean enableFindingNumber(){ return false; } the subclass Add page will override this method to true .but this will not be generic tomarrow If I need some attribute modifiersfor addpage and not for edit again I will do the same add a protected method call that in textfield and override in addpage , this approach will make me change the base class for everytime for any new features the sub class needs .I am looking for some way through whcih I can retrieve the component in the sub class and add decoratos without changing the base class ? -- View this message in context: http://www.nabble.com/controlling-components-from-sub-classes-tp23853627p23874505.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: controlling components from sub classes
get(path) will get you the component by path. -igor On Thu, Jun 4, 2009 at 10:33 AM, fachhoch fachh...@gmail.com wrote: I am actually asking for generic solution through which I will be able to modify components behavior from sub class without touching base class is there any pattern or any of the page method where I can retrieve the component by its path and make changes ? Alexandru Objelean wrote: What about this: BasePage: --- add(newFindingNumber(findingNumber)); protected Component newFindingNumber(String id) { return new TextFieldString(id); } --- in ChildPage: --- protected Component newFindingNumber(String id) { Component component = super. newFindingNumber(id); component.setEnabled(false);// or whatever return component; } --- Alex fachhoch wrote: I looking for some best practices or better way to control my page components , like set enable add attribute modifiers etc. for example I have add and edit page , where one textField should be enabled in add and disabled in edit so for this I did add(new TextFieldString(findingNumber).setEnabled(enableFindingNumber())); protected boolean enableFindingNumber(){ return false; } the subclass Add page will override this method to true .but this will not be generic tomarrow If I need some attribute modifiers for addpage and not for edit again I will do the same add a protected method call that in textfield and override in addpage , this approach will make me change the base class for everytime for any new features the sub class needs .I am looking for some way through whcih I can retrieve the component in the sub class and add decoratos without changing the base class ? -- View this message in context: http://www.nabble.com/controlling-components-from-sub-classes-tp23853627p23874505.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
Wicketstuff-artwork and jQuery
After having Wicketstuf-artwork problems using dragdrop based on WiQuery, I tryed Stefan Lindner's WicketJQuery library (see http://subversion.visionet.de/project/WicketJQuery). I still have problems, that is, artwork's liquid canvases (and rounded rectangles) are not rendered at all ! The catch is that Wicketstuff-artwork and the dragdrop library, both, use JQuery. I'm using: Wicket-1.4.rc4, Wicketstuff-artwork-1.4-20090529.171935-143, Wicketstuff-jslibraries-1.4-20090529.171935-199, WicketJQuery.jar, Firefox-3.0.10 Can anyone help ? Thanks, Stefan Jozsa - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicketstuff-artwork and jQuery
Okay Stefan, trying this thread aswell... We need to know which versions of jquery are invovled. If you have the time please WiQuery and if you have extra time and want to speedup things checkout artwork aswell, I recently upgraded it to a newer version of jquery. So we have to check what the conflict are.. If you have public url to the site in trouble it will also help as I can debug with firebug on it.. regards Nino 2009/6/4 Stefan Jozsa stefan_...@yahoo.com: After having Wicketstuf-artwork problems using dragdrop based on WiQuery, I tryed Stefan Lindner's WicketJQuery library (see http://subversion.visionet.de/project/WicketJQuery). I still have problems, that is, artwork's liquid canvases (and rounded rectangles) are not rendered at all ! The catch is that Wicketstuff-artwork and the dragdrop library, both, use JQuery. I'm using: Wicket-1.4.rc4, Wicketstuff-artwork-1.4-20090529.171935-143, Wicketstuff-jslibraries-1.4-20090529.171935-199, WicketJQuery.jar, Firefox-3.0.10 Can anyone help ? Thanks, Stefan Jozsa - 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: Wicketstuff-artwork and jQuery
This means if you use Wicketstuf-artwork without another jquery based library all works fine? If you add WicketJQuery, Wicketstuf-artwork stops working correctly? Do they both use the same jquery version? WicketJQuery uses version 1.3.2. Which library is loaded first (if you inspect the head section)? -Ursprüngliche Nachricht- Von: Stefan Jozsa [mailto:stefan_...@yahoo.com] Gesendet: Donnerstag, 4. Juni 2009 19:45 An: users@wicket.apache.org Betreff: Wicketstuff-artwork and jQuery After having Wicketstuf-artwork problems using dragdrop based on WiQuery, I tryed Stefan Lindner's WicketJQuery library (see http://subversion.visionet.de/project/WicketJQuery). I still have problems, that is, artwork's liquid canvases (and rounded rectangles) are not rendered at all ! The catch is that Wicketstuff-artwork and the dragdrop library, both, use JQuery. I'm using: Wicket-1.4.rc4, Wicketstuff-artwork-1.4-20090529.171935-143, Wicketstuff-jslibraries-1.4-20090529.171935-199, WicketJQuery.jar, Firefox-3.0.10 Can anyone help ? Thanks, Stefan Jozsa - 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: Wicketstuff-artwork and jQuery
Artwork works OK without dragdrop (regardles based on WicketJQuery or WiQuery). Using WiQuery based dragdrop artwork is messed, but using WicketJQuery based dragdrop artwork is disabled (it is killed, no canvas at all rendered). WicketJQuery uses jQuery-1.3.2. Wiquery-1.0-alpha.jar uses jQuery-1.3.2. Now, artwork requires wicketstuff-jslibraries. As I saw in jslibraries-1.4-20090529.171935-199.jar there is a lot of JS library (versions) ! I don't know which version of jQuery, in jslibraries, is used by artwork ! Regarding JS library loading, sometimes they are loaded by JS script(s), sometimes by Java, so I cannot say which was loaded first (sorry, I'm not a JS guy...) Stefan Jozsa --- On Thu, 6/4/09, Stefan Lindner lind...@visionet.de wrote: From: Stefan Lindner lind...@visionet.de Subject: RE: Wicketstuff-artwork and jQuery To: users@wicket.apache.org Date: Thursday, June 4, 2009, 9:29 PM This means if you use Wicketstuf-artwork without another jquery based library all works fine? If you add WicketJQuery, Wicketstuf-artwork stops working correctly? Do they both use the same jquery version? WicketJQuery uses version 1.3.2. Which library is loaded first (if you inspect the head section)? -Ursprüngliche Nachricht- Von: Stefan Jozsa [mailto:stefan_...@yahoo.com] Gesendet: Donnerstag, 4. Juni 2009 19:45 An: users@wicket.apache.org Betreff: Wicketstuff-artwork and jQuery After having Wicketstuf-artwork problems using dragdrop based on WiQuery, I tryed Stefan Lindner's WicketJQuery library (see http://subversion.visionet.de/project/WicketJQuery). I still have problems, that is, artwork's liquid canvases (and rounded rectangles) are not rendered at all ! The catch is that Wicketstuff-artwork and the dragdrop library, both, use JQuery. I'm using: Wicket-1.4.rc4, Wicketstuff-artwork-1.4-20090529.171935-143, Wicketstuff-jslibraries-1.4-20090529.171935-199, WicketJQuery.jar, Firefox-3.0.10 Can anyone help ? Thanks, Stefan Jozsa - 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
AjaxLink ERROR: Received Ajax response with code: 404 = at random after short delay
Hi I currently have a page with a LinkTree (with AjaxLinks) as well as multiples others ajax link (sometime opening some modal windows). Quite often, after a short pause (way less than the session time out, just the time to say 2/3 phrases) the next time I use an ajax link I get this error : INFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... Once this error has been received, then all the ajax links are down with channel busy - postponing. The only solution is to refresh the page I don't manage to find a predictive way to reproduce this issue, it just happens pretty often, which is really bad for the user... I tried many things without success. Apparently it's not linked to a specific ajax link. Do you have a clue of what could go wrong ? Or any idea on how to debug ? NB : it happens on ubuntu 9.04/Firefox 3.0.10/Wicket 1.4 rc4 (a bit patched)/resin 3.1.5. I've put getPageSettings().setAutomaticMultiWindowSupport(true); in my application. I use as well the wicket stuff annotation with mount hybrid. I checked the generated html, it's fine (up to the w3c generator), apart that I don't specify the encoding or (x)html version. NB2: in order to refresh my whole page, I often do : setResponsePage(getPage()); or setResponsePage(new MyPage(someAttribute))... I don't know if it could have an impact... Any help really welcome. thanks in advance cheers zedros - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Logging to an additional File
Hi all, I'm having a small problem trying to log to an additional file with a org.apache.log4j.FileAppender. Problem: Does not log Wicket stuff to the file. For instance this message: WARNING: Tried to retrieve a localized string for a component that has not yet been added to the page.. Is written to the StdOut which netbeans shows in its output window. But this message doesn't appears in my MyLog.log file. I have this log4j property file: log4j.debug=false log4j.rootLogger=INFO,Stdout,Fileappender log4j.logger.org=INFO log4j.logger.com=INFO log4j.logger.net=INFO log4j.logger.nl=INFO log4j.logger.org.apache.wicket=INFO log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO log4j.logger.org.apache.catalina.cluster=INFO log4j.logger.org.apache.wicket.version=INFO log4j.logger.org.apache.wicket.RequestCycle=INFO log4j.appender.Stdout=org.apache.log4j.ConsoleAppender log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n # Additional configuration log4j.appender.Fileappender=org.apache.log4j.FileAppender log4j.appender.Fileappender.file=${mylog.log.dir}/logs/MyLog.log log4j.appender.Fileappender.layout=org.apache.log4j.PatternLayout log4j.appender.Fileappender.layout.conversionPattern=%d [%t] %p - %m%n Is this correct? Can anyone comment? Thanks, f(t)
RE: Wicketstuff-artwork and jQuery
Fixed! Last (minute/hour) version of WicketJQuery.jar helped, that is Wicketstuff-artwork is no more messed by JQuery based dragdrop. Thanks to Stefan Lindner, Stefan (Jozsa) --- On Thu, 6/4/09, Stefan Jozsa stefan_...@yahoo.com wrote: From: Stefan Jozsa stefan_...@yahoo.com Subject: RE: Wicketstuff-artwork and jQuery To: users@wicket.apache.org Date: Thursday, June 4, 2009, 10:11 PM Artwork works OK without dragdrop (regardles based on WicketJQuery or WiQuery). Using WiQuery based dragdrop artwork is messed, but using WicketJQuery based dragdrop artwork is disabled (it is killed, no canvas at all rendered). WicketJQuery uses jQuery-1.3.2. Wiquery-1.0-alpha.jar uses jQuery-1.3.2. Now, artwork requires wicketstuff-jslibraries. As I saw in jslibraries-1.4-20090529.171935-199.jar there is a lot of JS library (versions) ! I don't know which version of jQuery, in jslibraries, is used by artwork ! Regarding JS library loading, sometimes they are loaded by JS script(s), sometimes by Java, so I cannot say which was loaded first (sorry, I'm not a JS guy...) Stefan Jozsa --- On Thu, 6/4/09, Stefan Lindner lind...@visionet.de wrote: From: Stefan Lindner lind...@visionet.de Subject: RE: Wicketstuff-artwork and jQuery To: users@wicket.apache.org Date: Thursday, June 4, 2009, 9:29 PM This means if you use Wicketstuf-artwork without another jquery based library all works fine? If you add WicketJQuery, Wicketstuf-artwork stops working correctly? Do they both use the same jquery version? WicketJQuery uses version 1.3.2. Which library is loaded first (if you inspect the head section)? -Ursprüngliche Nachricht- Von: Stefan Jozsa [mailto:stefan_...@yahoo.com] Gesendet: Donnerstag, 4. Juni 2009 19:45 An: users@wicket.apache.org Betreff: Wicketstuff-artwork and jQuery After having Wicketstuf-artwork problems using dragdrop based on WiQuery, I tryed Stefan Lindner's WicketJQuery library (see http://subversion.visionet.de/project/WicketJQuery). I still have problems, that is, artwork's liquid canvases (and rounded rectangles) are not rendered at all ! The catch is that Wicketstuff-artwork and the dragdrop library, both, use JQuery. I'm using: Wicket-1.4.rc4, Wicketstuff-artwork-1.4-20090529.171935-143, Wicketstuff-jslibraries-1.4-20090529.171935-199, WicketJQuery.jar, Firefox-3.0.10 Can anyone help ? Thanks, Stefan Jozsa - 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
MultiFileUploadField: Filter file types
Hello there. I'm am developing a web application where is possible to the user upload some photos. I would like to filter the files the user can choose. the user can choose up to 10 photos, but if some file is not a photo, i don't want to loose all the files, once after the submit, all the files selected are lost. Thank you ever one -- Marco Santos
Dynamic green or red UL background for FeedbackPanel
I have a minor question regarding the FeedbackPanel. I'd like to have the panel display a subtle red background on ERROR and a subtle green background on INFO. Obviously there can be more than one LI - but assuming its all errors or info ... using css on the LI isn't enough. For instance, the LI bullet shows up outside of the LI background. The css background color therefore needs to be on the UL of the resulting: ul wicket:id=feedbackul class=feedbackPanel li wicket:id=messages class=feedbackPanelINFO span wicket:id=message class=feedbackPanelINFOLogin failed. Please try again./span /li /ul Unfortunately, error or info, I the FeedbackPanel only uses feedbackPanel as the style and can't really make the background consistent with the general notice being displayed. Is there an easy way around this? I guess I want to make the UL green or red, depending on the type of message being displayed (understanding that more than one type can be displayed). -Luther
Re: MultiFileUploadField: Filter file types
Marco, You can watch pickwick project. It show a way to use jupload which comes with a lot of possibities and it is nice become you get a preview of the pictures. On Thu, Jun 4, 2009 at 4:11 PM, Marco Santos mpssan...@gmail.com wrote: Hello there. I'm am developing a web application where is possible to the user upload some photos. I would like to filter the files the user can choose. the user can choose up to 10 photos, but if some file is not a photo, i don't want to loose all the files, once after the submit, all the files selected are lost. Thank you ever one -- Marco Santos -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Dynamic green or red UL background for FeedbackPanel
Use javascript. First, style your LI elements to the appropriate color. That gives the default. Then when the page loads, you can check to see if they are all error (in which case they'd all already be red). I guess what you're saying is that if ANY of them are an error message, that you want the whole UL to be red? If so, you could do that in JS. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 4, 2009 at 11:58 PM, Luther Baker lutherba...@gmail.com wrote: I have a minor question regarding the FeedbackPanel. I'd like to have the panel display a subtle red background on ERROR and a subtle green background on INFO. Obviously there can be more than one LI - but assuming its all errors or info ... using css on the LI isn't enough. For instance, the LI bullet shows up outside of the LI background. The css background color therefore needs to be on the UL of the resulting: ul wicket:id=feedbackul class=feedbackPanel li wicket:id=messages class=feedbackPanelINFO span wicket:id=message class=feedbackPanelINFOLogin failed. Please try again./span /li /ul Unfortunately, error or info, I the FeedbackPanel only uses feedbackPanel as the style and can't really make the background consistent with the general notice being displayed. Is there an easy way around this? I guess I want to make the UL green or red, depending on the type of message being displayed (understanding that more than one type can be displayed). -Luther - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamic green or red UL background for FeedbackPanel
Yep - that is what I'm asking - and Javascript would be fine. I guess it'd also be nice if, say, I could do something directly in Java. Explicitly apply a behavior or something specific to the FeedbackPanel to set or override the CSS class attribute. Thanks Jeremy, -Luther On Fri, Jun 5, 2009 at 12:02 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Use javascript. First, style your LI elements to the appropriate color. That gives the default. Then when the page loads, you can check to see if they are all error (in which case they'd all already be red). I guess what you're saying is that if ANY of them are an error message, that you want the whole UL to be red? If so, you could do that in JS. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 4, 2009 at 11:58 PM, Luther Baker lutherba...@gmail.com wrote: I have a minor question regarding the FeedbackPanel. I'd like to have the panel display a subtle red background on ERROR and a subtle green background on INFO. Obviously there can be more than one LI - but assuming its all errors or info ... using css on the LI isn't enough. For instance, the LI bullet shows up outside of the LI background. The css background color therefore needs to be on the UL of the resulting: ul wicket:id=feedbackul class=feedbackPanel li wicket:id=messages class=feedbackPanelINFO span wicket:id=message class=feedbackPanelINFOLogin failed. Please try again./span /li /ul Unfortunately, error or info, I the FeedbackPanel only uses feedbackPanel as the style and can't really make the background consistent with the general notice being displayed. Is there an easy way around this? I guess I want to make the UL green or red, depending on the type of message being displayed (understanding that more than one type can be displayed). -Luther - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org