Re: Streaming a huge ZIP file
Thanks all! On Dec 12, 2007 8:48 AM, Thomas Singer [EMAIL PROTECTED] wrote: IIRC, DownloadLink and Igor's anonymous class will lock the session, so if you have one downloading over a very slow connection, other users will get a timeout. I beleive I have separate sessions for each user, so only the same users other tabs would experience unresponsiveness, right? We'll test and report back soon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Component.visitParents visits the calling component as well
On Dec 11, 2007 10:24 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: hm, i dont think it is correct. wondering if we can change it this late in the game though...open a jira issue please. eelco its your baby...is this intentional or is it a bug? That's too long ago for me to remember. I do think it is a bit too late to change now, as any change might break lots of clients. We could keep it on the topic list for 1.4 if people want. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to know the markupStream of a border body
Hi, I have a simple border: wicket:border test wicket:body/ /wicket:border and when I use this border I add content in the body: div wicket:id=myBorder more text more text /div Now, I want to know what is the markupStream of this border. I'm trying with MarkupStream st =getBodyContainer().getAssociatedMarkupStream(false); MarkupStream st =getBodyContainer().getMarkupStream(); But in don't receive the correct markupStream. The correct markupStream of this example should be: more text more text Thanks!! -- View this message in context: http://www.nabble.com/How-to-know-the-markupStream-of-a-border-body-tp14291014p14291014.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When to use getModelObject, getConvertedInput, getInput
Ok that's cool but on an AjaxFormComponentUpdatingBehavior the model is null/hasn't been set so you can't use it? What happens if you want to base a decision on the value that the user has just changed to? On 11/12/2007, Johan Compagner [EMAIL PROTECTED] wrote: you shouldn't call getConvertedInput() or getInput yourself except if you where making a special formcomponent itself. The model of an component lives as long as the component does. But the dropdownchoice (or all select tag components) have another special thing call IChoiceRenderer That first tries to convert the string to an option object. johan On Dec 11, 2007 1:47 PM, wicket user [EMAIL PROTECTED] wrote: Hi, This is more a question of understanding models and input of a particular component, lets say DropDownChoice (DDC) for example. You give it a model initially on creation, this has nothing to do with, in the case of a DDC the selected values as that is supplied by the Choices paramater in the constuctor. So we now have a DDC configured. A user comes along and selects a value, if we have and AjaxFormComponentUpdatingBehavior associated we see that the getModelObject returns null as well as getConvertedInput but getInput actually has something but it's in string form. Is this because we are intercepting the event before the input is converted to the model? Basically I'm never sure when to use which accessor and the trial and error method that I have been using so far is starting to scare me. I guess the lifecycle of model is what I really need to understand and googling hasn't thrown up much. I have read the wiki article on models but it doesn't go into details such as this... Anyway, it will be a nice thing to not have nagging me over xmas! thanks simon
Re: How to get resources from our web-app context ?
Thank you so much. That was helpful. It works now :) On 12/12/07, wicket user [EMAIL PROTECTED] wrote: this is what spec says getRealPath public java.lang.String *getRealPath*(java.lang.String path) Returns a String containing the real path for a given virtual path. For example, the path /index.html returns the absolute file path on the server's filesystem would be served by a request for http://host/contextPath/index.html;, where contextPath is the context path of this ServletContext.. The real path returned will be in a form appropriate to the computer and operating system on which the servlet container is running, including the proper path separators. This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive). *Parameters:*path - a String specifying a virtual path*Returns:*a Stringspecifying the real path, or null if the translation cannot be performedSo if the file is with in your context, then you should be able to get it using the getRealPath(), if it's out side then you will have to specify the absolute path. -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML code inside language file
Marco Aurélio Silva a écrit : Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic and I need to use the i tag. But when wicket renders the text the i tag is showed on screen instead make the word italic. Any suggestion? Thank you Marco Hi, just call setEscapeModelStrings(false) on your label ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML code inside language file
Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic and I need to use the i tag. But when wicket renders the text the i tag is showed on screen instead make the word italic. Any suggestion? Thank you Marco
Re: HTML code inside language file
And is there a way to this without a label, houst with the wicket:message? On Dec 12, 2007 1:23 PM, Sébastien Piller [EMAIL PROTECTED] wrote: Marco Aurélio Silva a écrit : Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic and I need to use the i tag. But when wicket renders the text the i tag is showed on screen instead make the word italic. Any suggestion? Thank you Marco Hi, just call setEscapeModelStrings(false) on your label ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to know the markupStream of a border body
and why do you need to know the markup stream? -igor On Dec 12, 2007 12:42 AM, buealb [EMAIL PROTECTED] wrote: Hi, I have a simple border: wicket:border test wicket:body/ /wicket:border and when I use this border I add content in the body: div wicket:id=myBorder more text more text /div Now, I want to know what is the markupStream of this border. I'm trying with MarkupStream st =getBodyContainer().getAssociatedMarkupStream(false); MarkupStream st =getBodyContainer().getMarkupStream(); But in don't receive the correct markupStream. The correct markupStream of this example should be: more text more text Thanks!! -- View this message in context: http://www.nabble.com/How-to-know-the-markupStream-of-a-border-body-tp14291014p14291014.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wish list for 1.4
+1 for 1.4 = 1.3 + Generics (nuthin' else) On Dec 12, 2007 11:37 AM, Uwe Schäfer [EMAIL PROTECTED] wrote: Igor Vaynberg schrieb: go nuts Transparent clustering support out of the box and enabled by default those who need it will be able to enable it. for all the other 98%, this adds unneeded resource-utilization etc. if in doubt, leave it out. -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom styles for trees
I'd like to remove the folder and page icons from a LinkTree and I'm not entirely sure how to go about it. As far as I can tell I need to create a LinkIconPanel instead and then add a blank image component to it... Or is there some way I can reference the image and set it's visible flag? Why isn't this all done in css? or is it and I'm just missing something... Many thanks for any help, - Loren
accessing parent model from child component -- redundant markup element using same field
Hello. A newbie here. Is there a way for a child component to get access to the model added to the parent component? I have two labels in the child component that use the same model field. Since each label requires unique id, I can't use CompoundPropertyModel, can i? I saw the example with BoundCompoundPropertyModel, but that needs access to the model. So how can i get the model that was added to the parent? I stepped into child component in debugger. Both getParent() and getModel() return null. Thanks in advance, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom styles for trees
Ah! thank you. I apologize if I'm resurrecting a dead horse, but why isn't this done with css? I saw some discussion about it from last summer, but the last comment in the thread suggested that the status quo was easy enough. My unasked for two cents is any thing you can do to isolate look and feel from code is a good thing, and overriding a css class to get this effect is more intuitive than overriding a method in the super class. Are there any plans to change this? - Loren On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote: You need to override the getImageResourceReference method of LabelIconPanel (or LinkIconPanel). Look at the default implementation in LabelIconPanel. -Matej On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote: I'd like to remove the folder and page icons from a LinkTree and I'm not entirely sure how to go about it. As far as I can tell I need to create a LinkIconPanel instead and then add a blank image component to it... Or is there some way I can reference the image and set it's visible flag? Why isn't this all done in css? or is it and I'm just missing something... Many thanks for any help, - Loren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom styles for trees
You could submit a suggestion on jira... After all this is open source :-) Am 12.12.2007 um 23:39 schrieb Loren Cole: Ah! thank you. I apologize if I'm resurrecting a dead horse, but why isn't this done with css? I saw some discussion about it from last summer, but the last comment in the thread suggested that the status quo was easy enough. My unasked for two cents is any thing you can do to isolate look and feel from code is a good thing, and overriding a css class to get this effect is more intuitive than overriding a method in the super class. Are there any plans to change this? - Loren On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote: You need to override the getImageResourceReference method of LabelIconPanel (or LinkIconPanel). Look at the default implementation in LabelIconPanel. -Matej On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote: I'd like to remove the folder and page icons from a LinkTree and I'm not entirely sure how to go about it. As far as I can tell I need to create a LinkIconPanel instead and then add a blank image component to it... Or is there some way I can reference the image and set it's visible flag? Why isn't this all done in css? or is it and I'm just missing something... Many thanks for any help, - Loren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wish list for 1.4
its a wish list, whether those things are going to make it into 1.4 or not can be decided later we havent had the official discussion of what 1.4 will be yet... -igor On Dec 12, 2007 11:04 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: go nuts http://cwiki.apache.org/confluence/display/WICKET/Wicket+1.4+Wish+List -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wish list for 1.4
Make Swarm (or at least Wasp) part of wicket core. Hey, its a wish list, right? :) Maurice On Dec 12, 2007 11:56 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: add that to the wishlist with a description of what it is johan -igor On Dec 12, 2007 12:41 PM, Johan Compagner [EMAIL PROTECTED] wrote: No i am againt that, 1.4 will just be a normal release cycle (we can discuss what normal is). We will quickly make a generic version as a first beta but then also other features and other more breaking fixes will go into this version, for example inheritance with support for multiple places to override is also on my 1.4 todo. I am not goint to support 3 versions. 1.3,1.4 and what then is trunk. On 12/12/07, Frank Bille [EMAIL PROTECTED] wrote: Didn't we say 1.4 = 1.3+generic only? You know a quick release and then 1.5 /2.0/2008? Frank On Dec 12, 2007 8:04 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: go nuts http://cwiki.apache.org/confluence/display/WICKET/Wicket+1.4+Wish+List -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom styles for trees
Hi There are no plans to do this. If you want to control this using CSS just develop your own alternative to LinkIconPanel, it shouldn't be difficult. The reason why there are images resource used to specify the icon is that it's easier to control this from code while using CSS would be IMHO too losely coupled. This might seem to be an overkill for couple of icons, but if you have e.g. filesystem browser with various icon for each file type I think the more strict control over the icons makes sense. Anyway, as i said, if you want to have this controlled by CSS it is also possible. With custom node panel. -Matej On Dec 12, 2007 11:39 PM, Loren Cole [EMAIL PROTECTED] wrote: Ah! thank you. I apologize if I'm resurrecting a dead horse, but why isn't this done with css? I saw some discussion about it from last summer, but the last comment in the thread suggested that the status quo was easy enough. My unasked for two cents is any thing you can do to isolate look and feel from code is a good thing, and overriding a css class to get this effect is more intuitive than overriding a method in the super class. Are there any plans to change this? - Loren On Dec 12, 2007 3:28 PM, Matej Knopp [EMAIL PROTECTED] wrote: You need to override the getImageResourceReference method of LabelIconPanel (or LinkIconPanel). Look at the default implementation in LabelIconPanel. -Matej On Dec 12, 2007 9:27 PM, Loren Cole [EMAIL PROTECTED] wrote: I'd like to remove the folder and page icons from a LinkTree and I'm not entirely sure how to go about it. As far as I can tell I need to create a LinkIconPanel instead and then add a blank image component to it... Or is there some way I can reference the image and set it's visible flag? Why isn't this all done in css? or is it and I'm just missing something... Many thanks for any help, - Loren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]