Re: Confusion with placeholder tags
Thanks Martijn, I had a mixup between those methods. On Sat, Dec 27, 2008 at 10:45 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: setOutputMarkupPlaceholderTag is for ajax refreshes. See setRenderBodyOnly() or use wicket:container in your markup. Martijn On Fri, Dec 26, 2008 at 4:02 PM, David Ojeda dojeda-l...@integra.la wrote: Hello all, I am trying to implement a panel with a table whose tr's are Fragments. I am using ListView in order to generate several table rows, but my rendered table has some markup that I wish to eliminate: 1.- the span wicket:id=caption tag, which I thought would be eliminated when calling .setOutputMarkupPlaceholderTag(false) 2.- the span wicket:id=menuitemrv tag. I do not understand why this tag appears outside the tbody tag. I have tried setOutputMarkupPlaceholderTag in the ListView, but it doesn't work either. Clearly, there is something about placeholder tags that I do not understand at all. Could anyone please help me with this? Any other suggestion on how to implement this table is welcome. Thanks a lot. Here is my panel code/markup and the rendered panel : ** Source Code: MyPanel.html: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.sourceforge.net/; wicket:panel table width=155 cellspacing=0 cellpadding=0 align=center tbody tr td align=center class=tbmenu table cellspacing=0 style=width: 155px; border: 0px; padding: 0px tbody span wicket:id=menuitemrv !-- menu item -- tr wicket:id=menuitemmenu goes here/tr !-- end menu item -- /span /tbody /table /td /tr /tbody /table wicket:fragment wicket:id=menuitemfragment td onmouseout=this.style.color='' style=height: 26px; width =157px; vertical-align: middle; padding-left: 25px; text-align: left; background: url('images/menu-inicial.gif'); background-repeat: no-repeat; onmouseover=this.style.color='#c32127' class=tbmenuitem a wicket:id=link onmouseout=this.style.color='' onmouseover=this.style.color='#c32127' class=tbmenuitem href=# span wicket:id=captioncaption/span /a /td /wicket:fragment /wicket:panel MyPanel.java: public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id,model); changeableComponent = contentPanel; Arrays.asList(new String[] { item 1, item 2 }) ListView lview = new ListView(menuitemrv, model) { //private int counter = 0; @Override protected void populateItem(ListItem listitem) { final String menuitemstr = (String) listitem.getModelObject(); listitem.add(new MenuItemFragment(menuitem,menuitemfragment, new Model(menuitemstr))); } }; lview.setOutputMarkupPlaceholderTag(false); add(lview); } class MenuItemFragment extends Fragment { public MenuItemFragment(String id, String markupId, IModel model) { super(id, markupId, MainMenuPanel.this, model); AjaxFallbackLink link = new AjaxFallbackLink(link) { @Override public void onClick(AjaxRequestTarget target) { } }; link.add(new Label(caption,model).setOutputMarkupPlaceholderTag(false)); add(link); } } } ** Rendered panel: table cellspacing=0 cellpadding=0 align=center width=155 tbody tr td align=center class=tbmenu span wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spantable cellspacing=0 style=border: 0px none ; padding: 0px; width: 155px; tbody tr wicket:id=menuitem td class=tbmenuitem onmouseover=this.style.color='#c32127' style=background: transparent url(images/menu-inicial.gif) no-repeat scroll 0% 0%; height: 26px; vertical-align: middle; padding-left: 25px; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; onmouseout=this.style.color='' a onmouseover=this.style.color='#c32127' id=link1
Re: Modal window not appearing in IE
I hava same problem. watch wicket ajax debug windows, response content is empty in IE 6 *INFO: *Received ajax response (69 characters) *INFO: * ?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response *INFO: *Response parsed. Now invoking steps... but response content is correct in FireFox 3.x. when debug server side code, i found that the ajax link action code invoked without error message print both IE and FF. On Tue, Dec 23, 2008 at 03:00, ecornett e.corn...@alumni.utexas.net wrote: Here is my Ajax debug output: INFO: focus set on linkida INFO: INFO: Initiating Ajax POST request on ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup:lookup-form:menuBar:menubarlinks:0:menuitemul:menuitemlinks:1:linkid:1:IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=truerandom=0.8349472295319197 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (11295 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script script type=text/javascript src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css / link rel=stylesheet type=text/css href=resources/com.agillaire.web.lookup.PopupMenuPanel/lookup.css / script id=com-agillaire-web-lookup-LookupPanel-LookupForm-1-0 language=JavaScript type=text/javascript myHover = function() { var sfEls = document.getElementById(menu).getElementsByTagName(LI); for (var i=0; isfEls.length; i++) { sfEls[i]^.onmouseover=function() { this.className+= myhover; } sfEls[i]^.onmouseout=function() { this.className=this.className.replace(new RegExp( myhover\\b), ); } } } if (window.attachEvent) window.attachEvent(onload, myHover); /script /head]]/header-contributioncomponent id=insurance_lookup_modal10 ![CDATA[div id=insurance_lookup_modal10 style=display:none div id=content1b div class=modal-lookup name=primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup div class=lookup-form id=lookup_form40 labelInsurance Lookup/labelinput name=primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup:lookup-form:lookup type=text value=/ ul id=menu li ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup:lookup-form:menuBar:menubarlinks:0:linkid:1:ILinkListener:: ... ul li # Practice List /lili # Name /lili # Address /lili # City /lili # State /lili # Zip /lili # P.O. Box /li /ul /li /ul /div /div div id=insurance_list48 Name div class=page_nav id=nav49 emlt;lt;/emnbsp;emlt;/em em1/em emgt;/emnbsp;emgt;gt;/em /div table class=list_table tr class=list_header thCompany Name/th thAddress 1/th thAddress 2 Date/th thCity/th thState/th thZip/th /tr tr class=even-row td # Aetna /td td111 Main St./td tdPO Box 1234/td tdChicago/td tdIllinois/td td61234/td /trtr class=odd-row td # Aetna /td td113 Main Ave./td td/td tdDallas/td tdTexas/td td75071/td /trtr class=even-row td # Blue Cross /td td112 Houston Ave./td td/td tdDallas/td tdTexas/td td75072/td /tr /table
Re: Modal window not appearing in IE
Here is my modalwindow code: final ModalWindow mwCreateOrder = new ModalWindow(mwCreateOrder); add(mwCreateOrder); final CreateOrderPanel createOrderPanel = new CreateOrderPanel(mwCreateOrder, mwCreateOrder.getContentId(), shop.getShopNum()); mwCreateOrder.setContent(createOrderPanel); mwCreateOrder.setTitle(发起新的团购订单); mwCreateOrder.setCookieName(mwCreateOrder); mwCreateOrder.setWidthUnit(em); mwCreateOrder.setHeightUnit(em); mwCreateOrder.setInitialWidth(460); mwCreateOrder.setInitialHeight(500); mwCreateOrder.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { public boolean onCloseButtonClicked(AjaxRequestTarget target) { return true; } }); mwCreateOrder.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { if (createOrderPanel.isModalResult()) { setResponsePage(page); } } }); AjaxLink lnkCreateOrder = new AjaxLink(toCreateOrder) { @Override public void onClick(AjaxRequestTarget target) { mwCreateOrder.show(target); } }; lnkCreateOrder.setVisible(currentGroup != null); add(lnkCreateOrder); html code a href=# wicket:id=toCreateOrder�_始�F��/a div wicket:id=mwCreateOrder/div On Sat, Dec 27, 2008 at 21:16, 新希望软件 -- 俞宏伟 nhsoft@gmail.com wrote: I hava same problem. watch wicket ajax debug windows, response content is empty in IE 6 *INFO: *Received ajax response (69 characters) *INFO: * ?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response *INFO: *Response parsed. Now invoking steps... but response content is correct in FireFox 3.x. when debug server side code, i found that the ajax link action code invoked without error message print both IE and FF. On Tue, Dec 23, 2008 at 03:00, ecornett e.corn...@alumni.utexas.netwrote: Here is my Ajax debug output: INFO: focus set on linkida INFO: INFO: Initiating Ajax POST request on ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup:lookup-form:menuBar:menubarlinks:0:menuitemul:menuitemlinks:1:linkid:1:IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=truerandom=0.8349472295319197 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (11295 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script script type=text/javascript src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css / link rel=stylesheet type=text/css href=resources/com.agillaire.web.lookup.PopupMenuPanel/lookup.css / script id=com-agillaire-web-lookup-LookupPanel-LookupForm-1-0 language=JavaScript type=text/javascript myHover = function() { var sfEls = document.getElementById(menu).getElementsByTagName(LI); for (var i=0; isfEls.length; i++) { sfEls[i]^.onmouseover=function() { this.className+= myhover; } sfEls[i]^.onmouseout=function() { this.className=this.className.replace(new RegExp( myhover\\b), ); } } } if (window.attachEvent) window.attachEvent(onload, myHover); /script /head]]/header-contributioncomponent id=insurance_lookup_modal10 ![CDATA[div id=insurance_lookup_modal10 style=display:none div id=content1b div class=modal-lookup name=primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup div class=lookup-form id=lookup_form40 labelInsurance Lookup/labelinput name=primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup:lookup-form:lookup type=text value=/ ul id=menu li
Problem with inline javascript
Hi! Is there any way to make Wicket use unobtrusive way to attach ajax behaviors to html elements instead of putting them inline into html? I have a problem as I have a TextField to input search pattern and then I use Ajax to show popUp with search results. The thing is the search results always updates the search results list when the key is being pressed in the TextField. I wanted to add the keyboard navigation, and therefore disable the update behavior while the keys that are pressed are Arrows or Enter. Unfortunately when the Ajax Update thing is inline in html as onkeyup attribute - the only way to do that in jQuery is to remove this attribute. Unbind and stuff does not work. I hope that you understand what I want to do :) Maybe you have some suggestions on how to do that. Thanks in advance ;) -- View this message in context: http://www.nabble.com/Problem-with-inline-javascript-tp21186429p21186429.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: Problem with inline javascript
How are you doing the auto-complete? AutoCompleteTextField uses the following code, which renders in the head of the page - not inline. You could / should use it in your own behaviors as well. response.renderOnDomReadyJavascript(your js); -- Jeremy Thomerson http://www.wickettraining.com On Sat, Dec 27, 2008 at 12:35 PM, Piotr Jakubowski pio...@gmail.com wrote: Hi! Is there any way to make Wicket use unobtrusive way to attach ajax behaviors to html elements instead of putting them inline into html? I have a problem as I have a TextField to input search pattern and then I use Ajax to show popUp with search results. The thing is the search results always updates the search results list when the key is being pressed in the TextField. I wanted to add the keyboard navigation, and therefore disable the update behavior while the keys that are pressed are Arrows or Enter. Unfortunately when the Ajax Update thing is inline in html as onkeyup attribute - the only way to do that in jQuery is to remove this attribute. Unbind and stuff does not work. I hope that you understand what I want to do :) Maybe you have some suggestions on how to do that. Thanks in advance ;) -- View this message in context: http://www.nabble.com/Problem-with-inline-javascript-tp21186429p21186429.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
bug in firefox in file uploads?
i get the stack trace below when uploading files in 1.4-rc1 it only happens in firefox. safari seems to be fine. is this a known problem or should i file a bug? thanks, jon WARN - Form - Upload failed: Processing of multipart/form-data request failed. null org.apache.wicket.util.upload.FileUploadException: Processing of multipart/form-data request failed. null at org.apache.wicket.util.upload.FileUploadBase.parseRequest(FileUploadBase.java:360) at org.apache.wicket.util.upload.ServletFileUpload.parseRequest(ServletFileUpload.java:115) at org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:133) at org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:476) at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1577) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:839) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1191) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1270) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1371) at org.apache.wicket.RequestCycle.request(RequestCycle.java:498) 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:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) 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:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:841) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: org.mortbay.jetty.EofException at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:300) at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:944) at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:905) at org.apache.wicket.util.upload.MultipartFormInputStream.readBodyData(MultipartFormInputStream.java:553) at org.apache.wicket.util.upload.FileUploadBase.parseRequest(FileUploadBase.java:337) ... 33 more -- View this message in context: http://www.nabble.com/bug-in-firefox-in-file-uploads--tp21186555p21186555.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: WebPage for serving binary image data
Although I haven't tested this theory, I used the ThreadLocal because I am fairly sure that the shared resources are shared across threads (multiple simultaneous requests) without synchronization. Therefore, you need to keep the parameters between method invocations, but can't keep it in a normal field because multiple requests could be reading / writing them simultaneously. That code was not the best code - but it's a workaround because the parameters are blown away before you are in your method that creates the image. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Dec 27, 2008 at 1:31 AM, smallufo small...@gmail.com wrote: Thank you, it works ! Though I am not sure why ThreadLocal is needed here ... Anyway , the solution is much pretty than WebPage. BR -- 2008/12/27 Jeremy Thomerson jer...@wickettraining.com It's not a WebPage because you're not serving a page - it is a mounted resource. Why do you want to force it to be a page? It's a bookmarkable resource - which is what you're serving. The type is set by DynamicImageResource - look in getResourceStream or getResourceState. On Fri, Dec 26, 2008 at 1:51 PM, smallufo small...@gmail.com wrote: Hi , thank you for replying. 2008/12/26 Jeremy Thomerson jer...@wickettraining.com Then, you can include it in your page: JAVA: add(new Image(img, new ResourceReference( WicketApplication.IMAGE_KEY))); HTML: img wicket:id=img / http://localhost:8080/foo http://localhost:8080/foo?text=fffwidth=200 My question is ... is /foo a bookmarkable mounted WebPage ? If it is , where did you set the ContentType to image/png ? I cannot find such code ... If it is not a WebPage , how should I accomplish this by a WebPage ? I don't need the dynamic-generated image to be included in the WebPage's img tag. BR -- smallufo -- Jeremy Thomerson http://www.wickettraining.com
Re: how to start wicketstuff-core's GMAP2
The one in wicketstuff-core (push-parent/push-examples) works - use same instructions. I don't know anything about those projects (or why there is one in core and one above it). But the one in core works. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Dec 27, 2008 at 12:30 AM, 新希望软件 -- 俞宏伟 nhsoft@gmail.com wrote: now, the GMAP2 example works, thanks. but i found that wicketstuff-push example can not works. i found that the web.xml file of wicketstuff-push has some problem. the web.xml content in example war file as follow: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app id=WebApp_ID display-namewicketstuff-push-examples/display-name welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list /web-app On Sat, Dec 27, 2008 at 02:45, Jeremy Thomerson jer...@wickettraining.comwrote: Do you have maven installed? If so, it should just be like this: svn co https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core cd wicketstuff-core mvn -N clean install cd gmap2-parent mvn clean install cd gmap2-examples mvn jetty:run Now browse http://localhost:8080/gmap2-examples/ Notice that in the first mvn clean install there is -N - this is non-recursive so you only build the parent wicketstuff-core POM module and not all the children. Also note that GMap2 (and all wicketstuff-core projects) are currently built against Wicket 1.4-SNAPSHOT. You may have to look to the old 1.3.x branch in wicket stuff and experiment on your own to get a 1.3.5 version. Or just change the pom and compile against 1.3.5, and fix any compile errors (probably mostly generics). Hope this helps. The other option (if you don't have Maven) is to get the latest war from http://wicketstuff.org/maven/repository/org/wicketstuff/gmap2-examples/1.4-SNAPSHOT/ -- Jeremy Thomerson http://www.wickettraining.com On Fri, Dec 26, 2008 at 7:27 AM, 新希望软件 -- 俞宏伟 nhsoft@gmail.com wrote: First Sorry for my poor english. I have checked out wicketstuff-core source code, but i do not know how to generate wicket-core jars and example war. I want to run GMAP2 example, and then want to add GMAP2 to my wicket project(now using wicket 1.3.5). thanks. -- 新希望软件---俞宏伟 Addr:宁波市人民路645弄312号(日湖国贸)1304室 Site:http://www.nhsoft.cn gtalk:nhsoft@gmail.com Tel: 0574-87280538 Fax: 0574-27825902 Mobile:13780081921
Re: [OT] wicket users around the world
St. Charles, IL (an hour west of Chicago) First created two new Wicket apps for production and now migrating existing apps to wicket. -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21186824.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: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14
Rodolfo - why is there still a wicketstuff-push folder in trunk [1]? I didn't notice until today when a user asked a question about it. Was it an oversight, or is it something different? Just Curious and Confused, Jeremy Thomerson http://www.wickettraining.com On Tue, Dec 9, 2008 at 6:46 AM, Rodolfo Hansen rhan...@kindleit.net wrote: Hi, a new version of wicketstuff-push was moved to the wicketstuff-core group of projects, as push-parent (as was specified in the wiki) A couple of new things were done: It is no longer compatible with java 1.4, is built for wicket 1.4 and requires jetty 6.1.14. The dependencies on dojo have been reduced even further, so this package is basically just a cometd client/server project for wicket. The RemoveListener is now working and is extended with a new type of WicketRemoveListener that allows access to the Wicket Application Singleton and the session that registered the singleton (i thought of a couple of ways to register them, and decided to choose the one present in the code for it) Please let me know of any suggestions, ideas for the proj.
Re: [OT] wicket users around the world
Polish guy working in Denmark :) -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21188237.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
Using the org.apache.wicket.jmx MBeans with WebSphere
Hi All, I'm relatively new to using JMX and I would very much like to use the Wicket MBeans with my WebSphere 6.1 Wicket application. I know how to use Spring to register my own simple MBeans with WebSphere, but can't figure out how to register the Wicket ones. For example, if I try to register org.apache.wicket.jmx.Application then I get a Spring BeanInstantiationException, which is caused by not having a default constructor in that MBean. So I looked in the Application class thinking that I would extend it by adding the missing default constructor. That's when I realized that the main constructor signature wants an instance of the Wicket Application class passed to it. And that's where I got stuck. Does anyone have some advice on what it is that I'm doing wrong? Thanks, Steve -- View this message in context: http://www.nabble.com/Using-the-org.apache.wicket.jmx-MBeans-with-WebSphere-tp21188288p21188288.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
Modal Window height
Hello all, I am using a modal window with a panel inside. I would like the modal window to have the same height of my panel, so I was wondering if anyone has been able to do this. Apparently, I can only set the height to specific int-values, rather than auto. I am using wicket and wicket-extensions 1.3.5 Best regards, David
Re: Using the org.apache.wicket.jmx MBeans with WebSphere
Steve, I don't know that much about Wicket JMX either, but... I just added wicket-jmx-1.4-rc1.jar to my CLASSPATH and the Wicket MBean shows up in jconsole. I also add the -Dcom.sun.management.jmxremote option to the JVM startup. Phil On Sat, Dec 27, 2008 at 4:33 PM, shetc sh...@bellsouth.net wrote: Hi All, I'm relatively new to using JMX and I would very much like to use the Wicket MBeans with my WebSphere 6.1 Wicket application. I know how to use Spring to register my own simple MBeans with WebSphere, but can't figure out how to register the Wicket ones. For example, if I try to register org.apache.wicket.jmx.Application then I get a Spring BeanInstantiationException, which is caused by not having a default constructor in that MBean. So I looked in the Application class thinking that I would extend it by adding the missing default constructor. That's when I realized that the main constructor signature wants an instance of the Wicket Application class passed to it. And that's where I got stuck. Does anyone have some advice on what it is that I'm doing wrong? Thanks, Steve -- View this message in context: http://www.nabble.com/Using-the-org.apache.wicket.jmx-MBeans-with-WebSphere-tp21188288p21188288.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 -- Phil Grimm Mobile: (858) 335-3426 Skype: philgrimm336
Re: Modal Window height
Hi, try modalwindow.setUseInitialHeight(false); -Matej On Sat, Dec 27, 2008 at 9:39 PM, David Ojeda dojeda-l...@integra.la wrote: Hello all, I am using a modal window with a panel inside. I would like the modal window to have the same height of my panel, so I was wondering if anyone has been able to do this. Apparently, I can only set the height to specific int-values, rather than auto. I am using wicket and wicket-extensions 1.3.5 Best regards, David - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
Bengaluru (formerly Bangalore) , India Used it for 1.5 yrs on a project -swaroop belur On Fri, Dec 12, 2008 at 12:27 AM, francisco treacy francisco.tre...@gmail.com wrote: to know a little bit more of our great (and vast) community, i was just wondering if you're keen on sharing where you come from and/or where you work with wicket... for instance, here argentinian/belgian working with wicket in antibes, france francisco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Dynamically generating an img tag
Hi, I'm trying to generate an img tag pointing to a Google chart at http://chart.apis.google.com/. I'm getting the chart URL as a string and I need to generate the img tag in order to display it as an image. I'm trying to use a Label, like: HTML: div wicket:id=imgDisplayimg tag goes here/div Java: // prefix and sufix hold the start and end of the img tag String imgTag = prefix + getImgURL() + sufix; add(new Label(imgDisplay, imgTag)); Problem is, and are not interpreted as markup delimiters, but as normal characters, so all I've got is the URL displayed as a literal where the image should be displayed. Is there a simple way to do something like this? Thanks so much, Cristina -- View this message in context: http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190259.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: Dynamically generating an img tag
Hi Cristina, Java: // prefix and sufix hold the start and end of the img tag String imgTag = prefix + getImgURL() + sufix; add(new Label(imgDisplay, imgTag)); try: add(new Label(imgDisplay, imgTag).setEscapeModelStrings(false)); Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamically generating an img tag
you might also look at this: http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts Cristina wrote: Hi, I'm trying to generate an img tag pointing to a Google chart at http://chart.apis.google.com/. I'm getting the chart URL as a string and I need to generate the img tag in order to display it as an image. I'm trying to use a Label, like: HTML: div wicket:id=imgDisplayimg tag goes here/div Java: // prefix and sufix hold the start and end of the img tag String imgTag = prefix + getImgURL() + sufix; add(new Label(imgDisplay, imgTag)); Problem is, and are not interpreted as markup delimiters, but as normal characters, so all I've got is the URL displayed as a literal where the image should be displayed. Is there a simple way to do something like this? Thanks so much, Cristina -- View this message in context: http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190506.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