Re: getting img src of dynamic image
Why don't you just pass your BufferedDynamicImageResource to an org.apache.wicket.markup.html.image.Image? That should work just fine if what you're generating in plotPolyGate.getResult().getImage() is 'static'. If it's not static, you can use the Image with an IModel containing the appropriate Resource. On Sun, Nov 22, 2009 at 2:55 PM, Simon Schafferer simon.schaffe...@gmx.at wrote: Hi, initial situation: I`m interfacing R with Java and provide some of the R functionalities within a web interface. Therefore all my images are BufferedImages from R. For drawing a polygon gate on one of the images I need the src of the Image for the JavaScript function that allows the user to draw a gate. I used this work around to get to the image source: Resource polyGateImageResource; BufferedDynamicImageResource dynamicresource = new BufferedDynamicImageResource(); dynamicresource.setImage(plotPolyGate.getResult().getImage()); polyGateImageResource = dynamicresource; String modifier = http://localhost:8080/; + polyGateImage.getRequest().getURL().replace(:::,) + tabs:panel:polyGateImage::IResourceListener::; polyGateImage.add(new SimpleAttributeModifier(src, modifier)); The String modifier contains: http://localhost:8080/?wicket:interface=polyGateMap:6:tabs:panel:polyGateImage::IResourceListener:: I don't think that this is a good approach to get the URL of a dynamic image, so i wonder if anybody knows a better solution. Greetings Simon -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 - 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: Session timeout - AJAX-enabled controls
If it's implemented in 1.4 then it's enough for me, guess I will migrate to that version then. Thanks for help, everyone involved. David Matousek Carlo Camerino napsal(a): i have verified that this fix has already been implemented in 1.4 is there any chance that this would be backported to the 1.3 branch? from what i understand, there would be no more releases for the 1.3 is this correct? 2009/11/21 Igor Vaynberg igor.vaynb...@gmail.com http://www.wicket-library.com/wicket-examples/ is running a very old version, may even be 1.2.x. you should use wicketstuff.org/wicket14 -igor 2009/11/20 David Matoušek david.matou...@monetplus.cz: It was happening to me on Wicket examples page too. Especially on AjaxFallbackDataTable Example. ?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage I just checked it but now it seems to be working correctly. What version of Wicket are examples on url: http://www.wicket-library.com/wicket-examples/ running and were they changed lately? I am using 1.3.6 so maybe it was fixed in 1.4.x versions. David Matousek I do not have that problem: if session expires any action the user does triggering a server round trip, AJAX or not, on a protected page redirects me to the login page... Can you post more details? Best, Ernesto 2009/11/20 Carlo Camerino carlo.camer...@gmail.com yes we also have this prob lem For example i use a wicket in dicating ajax button in our logi n page. If thne user doesn t click a link that moves a page he will not be able to k now that the session has i ndeed expired. The screen o ly shows the rotating image but nothing happens. but if i use a normal submit li nk, im immeddiately redirected.. Some clients didnt mind it bbut some clients do thanks On 11/20/09, Igor Vaynberg igor.vaynb...@gmail.com wrote: afair any ajax interaction on an expired page causes the same reaction as a non-ajax interaction - going to the page expired page. open a bug with a quickstart if that is not the case. -igor 2009/11/19 David Matoušek david.matou...@monetplus.cz: Hi, I have a problem with ajax behavior, that i use to fill various dropdowns by data from database. When session expires(user was inactive), non-ajax controls correctly redirect me to some kind of Error page. Thats correct. Components that have defined ajax behavior to update another components don't redirect, and doesn't update another components either. Is that Wicket feature, or a bug? Can components with ajax behaviors be forced to redirect to error page on session expire like non-ajax ones do? Any suggestions? Thanks for reply David Matousek -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. - 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 -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista.
Re: Forms and detached JPA ( Hibernate) Objects
Thanks for the answers. Due to extreme pressure in the current project i will go with the option proposed by james and build 'shadow' copy of the object to edit in the form, hopefully finding time later to look into more generic solution. I just thought that most applications using wicket and an ORM would run into this problem and that i just missed something, e.g. that there would a easy solution for this. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
MockHttpServletResponse, status vs code
MockHttpServletResponse has two fields, status and code, which is ambigious. sendError method changes code, while setStatus changes status field. I think these two should be merged to mimic servlet api (if one calls sendError, then error status is available via getStatus). If no objections, I'll file a JIRA issue.
Re: UploadWebRequest is actually a UploadWebRequest$MultipartRequest
ok where should I log it? On Fri, Nov 20, 2009 at 7:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: looks like a bug. -igor On Fri, Nov 20, 2009 at 8:55 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hello, we get the following warning in our logs: (UploadProgressBar.java:106) - UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details. We do override in the application: @Override protected WebRequest newWebRequest(javax.servlet.http.HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); }; When I debug UploadProgressBar I see that: if (!(RequestCycle.get().getRequest() instanceof UploadWebRequest)) { log.warn(UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details.); } However RequestCycle.get().getRequest() is returning a UploadWebRequest$MultipartRequest instance. What are we doing wrong or is this a bug? thanks - 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
wicketstuff-jwicket: disable link on drag and drop
How can be a link (IndicatingAjaxLink) disabled on drag-and-drop ? I have something like this: myLink = new IndicatingAjaxLink(id); myLink.add(new DraggableBehavior() { { setName(foo); setRevert(DraggableBehavior.DragRevertMode.ALWAYS); setRevertDuration(0); } }); Thanks, Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff-jwicket, drag-and-drop, Internet Explorer 7/8
I'm getting Javascript errors (unspecified error, object not found) using jwicket drag-and-drop on IE 7/8. After an error, IE disables Javascript (can be 'restored' just by page reload). Any help welcome, thanks in advance, Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
JWeekend
i just wanna say sorry for not comming to the jweekend. But i am ill. I spewed the whole weekend. I tried to push myself with coffe at sturbucks next to foyles but it didn't helped much. So i decided to go back home. I regret this very much. Is there any recording of the jweekend available? Thanks in advance. Chris
Re: How to hide wicket related information from URL
If you use stateful components (i.e. a link, etc.) on a page, the page state has to be recorded into the URL. But I think you can use hybridurlencodingstrategy and it will at least look much nicer - without wicket:interface in it, etc. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 23, 2009 at 12:03 AM, Vipresh Sharma sharma.vipr...@gmail.comwrote: Hi, This is my first question about removing Wicket related/generated info from URL, Is there any way to hide framework related info on URL like a PageMap version and all other thing which Wicket generates. May the question is not well described because I newbie with Wicket, I Just want URL should be with my Page Parameters only with current Page path. Ex. https://login.yahoo.com/config/mail.jsp?.src=ym.intl=ca I hope Now my question is more clear. Regards, Vipresh
Re: UploadWebRequest is actually a UploadWebRequest$MultipartRequest
https://issues.apache.org/jira/browse/WICKET -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 23, 2009 at 3:53 AM, Wayne Pope waynemailingli...@googlemail.com wrote: ok where should I log it? On Fri, Nov 20, 2009 at 7:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: looks like a bug. -igor On Fri, Nov 20, 2009 at 8:55 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hello, we get the following warning in our logs: (UploadProgressBar.java:106) - UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details. We do override in the application: @Override protected WebRequest newWebRequest(javax.servlet.http.HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); }; When I debug UploadProgressBar I see that: if (!(RequestCycle.get().getRequest() instanceof UploadWebRequest)) { log.warn(UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details.); } However RequestCycle.get().getRequest() is returning a UploadWebRequest$MultipartRequest instance. What are we doing wrong or is this a bug? thanks - 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
Can @SpringBeans be optional?
Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have one abstractwebsession they can share, but unfortunately I'll get an exception when starting the app without the rememberMeService defined in the xml. It wouldn't make sense to define one to satisfy the error. The only solution I had so far was to inject it into the application class, where i can do so without @springbeans and thus a service can be null, but is there any way I can configure springbeans to not throw an error on startup for optional services?
setVisible(false) kills DraggableBehavior()
The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { @Override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com
Re: setVisible(false) kills DraggableBehavior()
What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { �...@override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setVisible(false) kills DraggableBehavior()
Sorry, this is from the jwicket-ui-dragdrop-1.4.1 project. org.wicketstuff.jwicket.ui.dragdrop.DraggableBehavior I don't know what is in it :-( This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { @Override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com
Re: ExternalLink takes IModelString for label
https://issues.apache.org/jira/browse/WICKET-2588 igor.vaynberg wrote: yep, so we cant fix it in 1.4.x, but add an rfe for 1.5 -igor On Sun, Nov 22, 2009 at 2:24 PM, Peter Dotchev dotc...@gmail.com wrote: Hi Wicketeers, I just noticed that this constructor public ExternalLink(final String id, final IModelString href, final *IModelString* label) takes IModelString for label. This is somewhat limiting since the model could hold a number or a date for example. Actually passing a raw IModel with any object inside works just fine. It would be more appropriate if this constructor takes IModel? for the label as done in Label constructor. Unfortunately ExternalLink offers a public method getLabel() that returns the label as IModelString. So it seems changing it would break compatibility. Using wicket 1.4.1. Best regards, Peter - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/ExternalLink-takes-IModel%3CString%3E-for-label-tp26470239p26477595.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: setVisible(false) kills DraggableBehavior()
This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { �...@override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setVisible(false) kills DraggableBehavior()
Note that in the AjaxLink I create a new replacement panel, add a dragging behavior to it and then replace the old one with it (code below). My question is that even though I add a draggable behavior to the new panel and do the proper replacement, it stops working as soon as I start of with an invisible panel (with setOutputMarkupPlaceholderTag(true)). I thought the whole objective of setOutputMarkupPlaceholderTag is to just to do an inline style change to invisible while holding the rest of the code including the component id's the same). public void setQuestionFormatPanel(QuestionEditorPanel qfp){ questioneditorpanel.replaceWith(qfp); this.questioneditorpanel=qfp; } On Mon, Nov 23, 2009 at 2:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { @Override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com -- Pieter Claassen musmato.com
Re: Wicket datepicker disable weekdays
Hi Leo... Thanks... It helped me further on. I made it work, in a non-wicket purely javascript version. But something goes wrong in the wicket datepicker version. I override the getAdditionalJavascript method for the DatePicker with the following: @Override protected String getAdditionalJavascript() { String myRenderer = var myCustomRenderer = function(workingDate, cell) {\n + cell.innerHTML = 'x';\n + YAHOO.util.Dom.addClass(cell, 'disallowed');\n + return YAHOO.widget.Calendar.STOP_RENDER;\n}; return myRenderer + \n YAHOO.wicket[' + getComponentMarkupId() + DpJs'].addWeekdayRenderer(1, myCustomRenderer);; But for some reason i can't associate the customRenderer with the datepicker. Any hint's on how to do that ? I must admit i am relatively new to wicket. Thanks in advance. Muro On Fri, Nov 20, 2009 at 9:26 PM, Leo Erlandsson leo.erlands...@tyringe.comwrote: This is certainly possible. You need to use YUI Calendar Renderers. They are documented in the YUI Cal2 API Doc. You can find an example of what you are trying to achieve here (thanks Google): http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Basically, you'll want to do this for all disallowed weekdays: var myCustomRenderer = function(workingDate, cell) { cell.innerHTML = X; YAHOO.util.Dom.addClass(cell, disallowed); return YAHOO.widget.Calendar.STOP_RENDER; } YAHOO.example.calendar.cal1.addWeekdayRenderer(1, myCustomRenderer); This will put an X on all Sundays, making them disabled. Also, it will add a CSS class ('disallowed') that can be customized if you want to change the appearance of disabled cells. -- View this message in context: http://old.nabble.com/Wicket-datepicker-disable-weekdays-tp26444084p26447477.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket + jdbc template app
Thank you! I have just implement it! I am using c3p0 and SQL DAO without Spring or any Persistent framework. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: setVisible(false) kills DraggableBehavior()
Last time I checked, and it's been a while, the setOutputMarkupPlaceholderTag behavior was to create an element like div id='wicketId' style='not visible' / and then when you set it back to visible you end up with the proper html: div id='wicketId'content here/div. I don't know anything about the draggable behavior but I assume it must be client-side stuff attached to the DOM node. When you set the panel back to visible wicket will do an outer html replace and you end up with a new DOM node that doesn't have your draggable behavior attached. BTW, this is a bit of speculation but sounds reasonable eh? Craig -Original Message- From: pieter claassen [mailto:pieter.claas...@gmail.com] Sent: Monday, November 23, 2009 8:22 AM To: Martin Makundi Cc: users@wicket.apache.org Subject: Re: setVisible(false) kills DraggableBehavior() Note that in the AjaxLink I create a new replacement panel, add a dragging behavior to it and then replace the old one with it (code below). My question is that even though I add a draggable behavior to the new panel and do the proper replacement, it stops working as soon as I start of with an invisible panel (with setOutputMarkupPlaceholderTag(true)). I thought the whole objective of setOutputMarkupPlaceholderTag is to just to do an inline style change to invisible while holding the rest of the code including the component id's the same). public void setQuestionFormatPanel(QuestionEditorPanel qfp){ questioneditorpanel.replaceWith(qfp); this.questioneditorpanel=qfp; } On Mon, Nov 23, 2009 at 2:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { @Override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: setVisible(false) kills DraggableBehavior()
OK so I just read the entire thread now I see that you are adding the behavior to the new panel as well. So you can probably ignore my last post. -Original Message- From: Craig McIlwee [mailto:craig.mcil...@openroadsconsulting.com] Sent: Monday, November 23, 2009 9:17 AM To: users@wicket.apache.org Subject: RE: setVisible(false) kills DraggableBehavior() Last time I checked, and it's been a while, the setOutputMarkupPlaceholderTag behavior was to create an element like div id='wicketId' style='not visible' / and then when you set it back to visible you end up with the proper html: div id='wicketId'content here/div. I don't know anything about the draggable behavior but I assume it must be client-side stuff attached to the DOM node. When you set the panel back to visible wicket will do an outer html replace and you end up with a new DOM node that doesn't have your draggable behavior attached. BTW, this is a bit of speculation but sounds reasonable eh? Craig -Original Message- From: pieter claassen [mailto:pieter.claas...@gmail.com] Sent: Monday, November 23, 2009 8:22 AM To: Martin Makundi Cc: users@wicket.apache.org Subject: Re: setVisible(false) kills DraggableBehavior() Note that in the AjaxLink I create a new replacement panel, add a dragging behavior to it and then replace the old one with it (code below). My question is that even though I add a draggable behavior to the new panel and do the proper replacement, it stops working as soon as I start of with an invisible panel (with setOutputMarkupPlaceholderTag(true)). I thought the whole objective of setOutputMarkupPlaceholderTag is to just to do an inline style change to invisible while holding the rest of the code including the component id's the same). public void setQuestionFormatPanel(QuestionEditorPanel qfp){ questioneditorpanel.replaceWith(qfp); this.questioneditorpanel=qfp; } On Mon, Nov 23, 2009 at 2:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter QuestionEditPanel.java == . questioneditorpanel=new Label(questionformatpanel,new Model()); questioneditorpanel.add(new DraggableBehavior()); questioneditorpanel.setOutputMarkupId(true); //questioneditorpanel.setVisible(false); questioneditorpanel.setOutputMarkupPlaceholderTag(true); I replace each of the these questioneditorpanels with an ajax link and add a new DraggableBehavior to each new QuestionEditorPanel as required. AjaxFallbackLink editor = new AjaxFallbackLink(editor) { @Override public void onClick(AjaxRequestTarget target) { QuestionEditorPanel replacement=new QuestionEditorPanel(questionformatpanel, questionmodel,templatemodel,panel); panel.setQuestionFormatPanel(replacement); replacement.add(new DraggableBehavior()); target.addComponent(replacement); } -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com -- Pieter Claassen musmato.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
Wicket Form Resubmit
How do I allow my user to resubmit a form that was marked as invalid on the first attempt once the invalid fields have been corrected. Wicket appears to not resubmit the form. Thanks. Rick
Re: How to hide wicket related information from URL
have a look at the following: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html This has what you're looking for -- View this message in context: http://old.nabble.com/How-to-hide-wicket-related-information-from-URL-tp26473196p26480233.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to hide wicket related information from URL
Thanks Buddy! you send me the right direction Vipresh On 2009-11-23, at 7:38 AM, sajid7 wrote: have a look at the following: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html This has what you're looking for -- View this message in context: http://old.nabble.com/How-to-hide-wicket-related-information-from-URL-tp26473196p26480233.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
Reused Component with a form inside another form
Hello, Suppose that you have a simple one to one relationship for example: Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel ? because in this Panel I will also have a form, with also a submit button.. For the model, I think I can do something like add(new AddressPanel(new PropertyModel(patientModel,address)) but how the form can be merged ? Thanks for help Arnaud - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can @SpringBeans be optional?
not right now. you can always file an rfe to add something like @SpringBean(optional=true) -igor On Mon, Nov 23, 2009 at 3:46 AM, Anthony DePalma fatef...@gmail.com wrote: Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have one abstractwebsession they can share, but unfortunately I'll get an exception when starting the app without the rememberMeService defined in the xml. It wouldn't make sense to define one to satisfy the error. The only solution I had so far was to inject it into the application class, where i can do so without @springbeans and thus a service can be null, but is there any way I can configure springbeans to not throw an error on startup for optional services? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Reused Component with a form inside another form
a) wicket supports embedded forms and will handle that for you. b) there is no need to have the form inside addresspanel, you can have formcomponents only and then put the addresspanel into a form. -igor On Mon, Nov 23, 2009 at 8:37 AM, Arnaud Garcia arn...@imagemed-87.com wrote: Hello, Suppose that you have a simple one to one relationship for example: Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel ? because in this Panel I will also have a form, with also a submit button.. For the model, I think I can do something like add(new AddressPanel(new PropertyModel(patientModel,address)) but how the form can be merged ? Thanks for help Arnaud - 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: Can @SpringBeans be optional?
Define a getter for your service that returns null by default, and in your Spring enabled session return the injected bean. Martijn On Mon, Nov 23, 2009 at 12:46 PM, Anthony DePalma fatef...@gmail.com wrote: Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have one abstractwebsession they can share, but unfortunately I'll get an exception when starting the app without the rememberMeService defined in the xml. It wouldn't make sense to define one to satisfy the error. The only solution I had so far was to inject it into the application class, where i can do so without @springbeans and thus a service can be null, but is there any way I can configure springbeans to not throw an error on startup for optional services? -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Reused Component with a form inside another form
HTML doesn't like forms inside of forms. What don't you just create an address panel that belongs inside a form, but which does not provide its own form? -Original Message- From: Arnaud Garcia [mailto:arn...@imagemed-87.com] Sent: Monday, November 23, 2009 10:37 AM ...Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel ? because in this Panel I will also have a form, with also a submit button.. ...but how the form can be merged ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: method assertWarningMessages
Hi again, This question seems to be simple, no ? Do I have to open a JIRA ? Bernard Bernard Lupin wrote: Hi all, Components have 3 methods to put information in a feedback panel : info(), warn() and error(). But in the WicketTester class, there are only 2 asserts available : assertInfoMessages() and assertErrorMessages(). How can I verify my warning messages ? I can't find an assertWarnMessages. Even googling 'wicket +assertWarnMessages' returns nothing. Am I missing something ? Many thanks, Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/method-assertWarningMessages-tp26411632p26481845.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
css not managed by wicket
Hello! I'm trying to make my web application to use a .css stylesheet. As far as I understood reading http://cwiki.apache.org/WICKET/including-css-resources.html and Wicket in Action book I should be able to make any html page to work in the following configuration: say, Base.html includes: head link rel=stylesheet type=text/css href=style.css/ /head and to put the css file into web app directory (root of your war file). So the deployed project structure (say, in tomcat) would be like this: tomcat webapps/myapp --/META-INF --/WEB-INF /classes /pages -/Base.html -/Base.java -/Page1.html -/Page1.java - extends Base --/style.css However, when I access my Page1 page in browser (which extends Base page both in java and html and seems to be working), I see, that the URL to css is rewritten to ../style.css, which tries to reach style.css directly in tomcat webapps and doesn't find it there. Could anyone explain me what am I doing wrong? Thanks in advance, Ilya
Re: css not managed by wicket
Just put /style.css Otherwise wicket is trying to guess the relative url. In most cases it guesses wrong so I have adopted the practice of using resource urls relative to the root of the domain. ** Martin 2009/11/23 Ilya German ilja.germ...@parex.lv: Hello! I'm trying to make my web application to use a .css stylesheet. As far as I understood reading http://cwiki.apache.org/WICKET/including-css-resources.html and Wicket in Action book I should be able to make any html page to work in the following configuration: say, Base.html includes: head link rel=stylesheet type=text/css href=style.css/ /head and to put the css file into web app directory (root of your war file). So the deployed project structure (say, in tomcat) would be like this: tomcat webapps/myapp --/META-INF --/WEB-INF /classes /pages -/Base.html -/Base.java -/Page1.html -/Page1.java - extends Base --/style.css However, when I access my Page1 page in browser (which extends Base page both in java and html and seems to be working), I see, that the URL to css is rewritten to ../style.css, which tries to reach style.css directly in tomcat webapps and doesn't find it there. Could anyone explain me what am I doing wrong? Thanks in advance, Ilya - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: css not managed by wicket
hi, consider use this annotations: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-merged-resources here a blog which explains the features it has: http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html#more-128 it will help i hope. bye On Mon, Nov 23, 2009 at 2:14 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Just put /style.css Otherwise wicket is trying to guess the relative url. In most cases it guesses wrong so I have adopted the practice of using resource urls relative to the root of the domain. ** Martin 2009/11/23 Ilya German ilja.germ...@parex.lv: Hello! I'm trying to make my web application to use a .css stylesheet. As far as I understood reading http://cwiki.apache.org/WICKET/including-css-resources.html and Wicket in Action book I should be able to make any html page to work in the following configuration: say, Base.html includes: head link rel=stylesheet type=text/css href=style.css/ /head and to put the css file into web app directory (root of your war file). So the deployed project structure (say, in tomcat) would be like this: tomcat webapps/myapp --/META-INF --/WEB-INF /classes /pages -/Base.html -/Base.java -/Page1.html -/Page1.java - extends Base --/style.css However, when I access my Page1 page in browser (which extends Base page both in java and html and seems to be working), I see, that the URL to css is rewritten to ../style.css, which tries to reach style.css directly in tomcat webapps and doesn't find it there. Could anyone explain me what am I doing wrong? Thanks in advance, Ilya - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Reused Component with a form inside another form
Wicket supports nested forms since 1.3 transparently. Martijn On Monday, November 23, 2009, Frank Silbermann frank.silberm...@fedex.com wrote: HTML doesn't like forms inside of forms. What don't you just create an address panel that belongs inside a form, but which does not provide its own form? -Original Message- From: Arnaud Garcia [mailto:arn...@imagemed-87.com] Sent: Monday, November 23, 2009 10:37 AM ...Patient has an Address. Since an Address can be used somewhere else in the code, for adding a new one, you have to create a simple AdressPanel with a form inside... So, how can I reuse this component in the PatientPanel ? because in this Panel I will also have a form, with also a submit button.. ...but how the form can be merged ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javax.crypto.BadPaddingException on expired sessions using CryptedUrlWebRequestCodingStrategy
fatefree wrote: Re: javax.crypto.BadPaddingException on expired sessions using CryptedUrlWebRequestCodingStrategy As it turned out this was not caused by the cryptedurl coding strategy as I thought, but rather my custom request cycle was overriding onRuntimeException and returning its own error page, thus overriding the PageExpired page. This strategy worked fine when I removed my code. -- View this message in context: http://old.nabble.com/javax.crypto.BadPaddingException-on-expired-sessions-using--CryptedUrlWebRequestCodingStrategy-tp26190032p26484296.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
Custom error page interfering with page expired
A while back I posted that I was having problems with what I thought was the CryptedUrlWebRequestCodingStrategy. I've learn since that my custom error handling was the problem, so I wanted to take a step back and ask how I should be doing this. I have a requirement that on an internal error (besides a session expired exception), users are redirected to an error page with a form allowing them to submit some information. Unfortunately, I need to save the error as well, so the easy way of using getApplicationSettings().setInternalErrorPage(ErrorPage.class) is not sufficient because I have no reference to the error in hand. My error page takes an exception as a constructor argument, so what should I do to allow the exception to be sent for regular errors, but ignored for PageExpiredExceptions? Should I still be looking at a custom request cycle? PS, previously my request cycle (which killed my expired page) looked like this: @Override public final Page onRuntimeException(final Page cause, final RuntimeException e) { return new ErrorPage(e); } I tried to check the instance of e for PageExpiredException and return that page, but that seemed to cause an infinite loop. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Can @SpringBeans be optional?
Technically speaking from the Dependency Injection koolaid doctrine, the best way to solve the problem is to have a null implementation of your service that does nothing. The code you are writing doesn't have to have complex if/else logic as it's able to assume the service is always there. The null implementation is wired in for the app that doesn't use it. Alternatively, create your accessor (getRememberMeService()) in the session that will access the ApplicationContext itself. It will determine if the bean exists or not and return the appropriate value. Since it allows for lazy initialization, it also addresses any issues from the ApplicationContext not being set up in time during unit testing. -Original Message- From: Anthony DePalma [mailto:fatef...@gmail.com] Sent: Monday, November 23, 2009 6:47 AM To: users@wicket.apache.org Subject: Can @SpringBeans be optional? Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have one abstractwebsession they can share, but unfortunately I'll get an exception when starting the app without the rememberMeService defined in the xml. It wouldn't make sense to define one to satisfy the error. The only solution I had so far was to inject it into the application class, where i can do so without @springbeans and thus a service can be null, but is there any way I can configure springbeans to not throw an error on startup for optional services? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom error page interfering with page expired
@Override public final Page onRuntimeException(final Page cause, final RuntimeException e) { Throwable t=e; while (t!=null) { if (t instanceof pageexpiredexception) { return super.onRuntimeException(cause, e); } t=t.getcause(); } return new ErrorPage(e); } -igor On Mon, Nov 23, 2009 at 11:29 AM, Anthony DePalma fatef...@gmail.com wrote: A while back I posted that I was having problems with what I thought was the CryptedUrlWebRequestCodingStrategy. I've learn since that my custom error handling was the problem, so I wanted to take a step back and ask how I should be doing this. I have a requirement that on an internal error (besides a session expired exception), users are redirected to an error page with a form allowing them to submit some information. Unfortunately, I need to save the error as well, so the easy way of using getApplicationSettings().setInternalErrorPage(ErrorPage.class) is not sufficient because I have no reference to the error in hand. My error page takes an exception as a constructor argument, so what should I do to allow the exception to be sent for regular errors, but ignored for PageExpiredExceptions? Should I still be looking at a custom request cycle? PS, previously my request cycle (which killed my expired page) looked like this: �...@override public final Page onRuntimeException(final Page cause, final RuntimeException e) { return new ErrorPage(e); } I tried to check the instance of e for PageExpiredException and return that page, but that seemed to cause an infinite loop. - 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: Can @SpringBeans be optional?
That's not a dependency injection thing. It's a design pattern called the Null Object pattern. On Mon, Nov 23, 2009 at 12:38 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: Technically speaking from the Dependency Injection koolaid doctrine, the best way to solve the problem is to have a null implementation of your service that does nothing. The code you are writing doesn't have to have complex if/else logic as it's able to assume the service is always there. The null implementation is wired in for the app that doesn't use it. Alternatively, create your accessor (getRememberMeService()) in the session that will access the ApplicationContext itself. It will determine if the bean exists or not and return the appropriate value. Since it allows for lazy initialization, it also addresses any issues from the ApplicationContext not being set up in time during unit testing. -Original Message- From: Anthony DePalma [mailto:fatef...@gmail.com] Sent: Monday, November 23, 2009 6:47 AM To: users@wicket.apache.org Subject: Can @SpringBeans be optional? Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have one abstractwebsession they can share, but unfortunately I'll get an exception when starting the app without the rememberMeService defined in the xml. It wouldn't make sense to define one to satisfy the error. The only solution I had so far was to inject it into the application class, where i can do so without @springbeans and thus a service can be null, but is there any way I can configure springbeans to not throw an error on startup for optional services? - 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 JMX
Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date. http://old.nabble.com/Integrate-wicket-contrib-jmx-panel-into-wicket-jmx-td14778294.html Anyone has tried to fix this ? Regards, rodrigob. ps: thanks for wicket ! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketStuff JMX
i guess its waiting for someone with time to bring it back up to speed. -igor On Mon, Nov 23, 2009 at 1:05 PM, rodrigo benenson rodrigo.benen...@gmail.com wrote: Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date. http://old.nabble.com/Integrate-wicket-contrib-jmx-panel-into-wicket-jmx-td14778294.html Anyone has tried to fix this ? Regards, rodrigob. ps: thanks for wicket ! - 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 JMX
i think it fell apart -igor On Mon, Nov 23, 2009 at 1:30 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Wasn't it integrated into wicket-jmx? Or did that fall apart with Gerolf going AWOL? Martijn On Mon, Nov 23, 2009 at 10:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i guess its waiting for someone with time to bring it back up to speed. -igor On Mon, Nov 23, 2009 at 1:05 PM, rodrigo benenson rodrigo.benen...@gmail.com wrote: Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date. http://old.nabble.com/Integrate-wicket-contrib-jmx-panel-into-wicket-jmx-td14778294.html Anyone has tried to fix this ? Regards, rodrigob. ps: thanks for wicket ! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Adding markup to ListView containing tag?
What I would like is to be able to have markup like this: div id=triage-items div id=triage-1fancy markup here/div div id=triage-2fancy markup here/div /div Along with this, to provide javascript effects on hover/focus for the individual items in the list. The problem is that I can't do this with Wicket easily. I basically get markup like this: divfancy markup here/div divfancy markup here/div I attempted to create a panel with a panel with the ListView to do what I wanted, but it ended up looking like this: divdivfancy markup here/div/div divdivfancy markup here/div/div Which is no-where near what I want. I'm trying to work with the Wicket in Action book and the short section on repeating lists doesn't provide enough to help me get it working. All my attempts at writing the id attribute using the examples in the book don't work (no ID is ever created). Can anyone help my sanity? While I do care about the markup, it's less important than the end target of adding the AJAX effects to the items in the list. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding markup to ListView containing tag?
div id=triage-items div id=triage-1 wicket:id=listviewfancy markup here/div /div class mypage extends webpage implements iheadercontributor { public mypage() { add(new listview(listview,...) { protected item newitem(string id, int idx) { return new item(id, idx) { protected oncomponenttag(tag) { tag.put(class,fancyitem); } }; }); } renderhead(resp) { resp.renderondomreadyjavascript($(.fancyitem.whatever_jquery_thing_you_want); } } -igor On Mon, Nov 23, 2009 at 2:41 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: What I would like is to be able to have markup like this: div id=triage-items div id=triage-1fancy markup here/div div id=triage-2fancy markup here/div /div Along with this, to provide javascript effects on hover/focus for the individual items in the list. The problem is that I can't do this with Wicket easily. I basically get markup like this: divfancy markup here/div divfancy markup here/div I attempted to create a panel with a panel with the ListView to do what I wanted, but it ended up looking like this: divdivfancy markup here/div/div divdivfancy markup here/div/div Which is no-where near what I want. I'm trying to work with the Wicket in Action book and the short section on repeating lists doesn't provide enough to help me get it working. All my attempts at writing the id attribute using the examples in the book don't work (no ID is ever created). Can anyone help my sanity? While I do care about the markup, it's less important than the end target of adding the AJAX effects to the items in the list. - 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
Mapping image src and href in production
I am relatively new to Wicket and currently using Wicket 1.4.2 with Tomcat 6.0. I would like to understand the recommended way of handling static images with Wicket in production. Suppose I have the following image: img src=/images/logo.gif alt=Company Logo / This image is static and do not want to create a wicket:id for it and change the Java code to set up. What are my options here? Should I configure Wicket to map /images folder to WEB-INF/images? Or should I configure a filter in web.xml to do that? Or should I run a web server which handles /images URL? What is the recommended option for production or development? Is there any tutorial that explains how to organize Wicket source code and image resource directories and tie them together? Thanks, Alec P.S. I read Wicket FAQ and other online resources, but no central place that describes best practices. Even in Wicket In Action almost all images have wicket:id which puts a lot of burden on the Java developer.
Re: Mapping image src and href in production
there is no best practices because there is no standard way of packaging images in webapps, and so there are many ways to solve the problem. if you are packing all your images under WEB-INF/images: you cannot serve images straight out of WEB-INF, so you will have to create a servlet. map it to /images/* and away you go. alternatively you can simply put your images under webapp/images instead of webapp/WEB-INF/images and access them using the static image tag you provided as an example. -igor On Mon, Nov 23, 2009 at 6:01 PM, Alec Swan alecs...@gmail.com wrote: I am relatively new to Wicket and currently using Wicket 1.4.2 with Tomcat 6.0. I would like to understand the recommended way of handling static images with Wicket in production. Suppose I have the following image: img src=/images/logo.gif alt=Company Logo / This image is static and do not want to create a wicket:id for it and change the Java code to set up. What are my options here? Should I configure Wicket to map /images folder to WEB-INF/images? Or should I configure a filter in web.xml to do that? Or should I run a web server which handles /images URL? What is the recommended option for production or development? Is there any tutorial that explains how to organize Wicket source code and image resource directories and tie them together? Thanks, Alec P.S. I read Wicket FAQ and other online resources, but no central place that describes best practices. Even in Wicket In Action almost all images have wicket:id which puts a lot of burden on the Java developer. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
PageParameters an URLEncode
Hi! Sorry for simple question. Do we need URLEncode when we use new PageParameters(param=value1); -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org