Re: [Wicket-user] i18n messages in HTML
the whole idea is of this thread that we don't want to have to add all kind of components on every place to localize youre html of all youre labels. I do see a good reason for that (maybe you as an american don's use i18n a lot ;)) Now i have slept a night over it i think we need to keep it simple first Don't start with the input type=button value=xxx and then an extra wicket attribute for localizing the value Do this with a button component so make it a real wicket component and do it youre self. I do think that we should try to support labels notation like this: wicket:message key=xx or span wicket:message=key are both fine by me For the second the question is do we keep the span in the output of is is body only? On 11/10/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hmm isnt all this already possible without having to do anything? public class Message extends WebMarkupContainer { public Message(String id) { super(id); } protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { ValueMap attrs=openTag.getAttributes(); if (attrs.containsKey(wicket:message)) { String message=getLocalizer().getString(attrs.getString(wicket:message), this); replaceComponentTagBody(findMarkupStream(), openTag, message); } else { super.onComponentTagBody(markupStream, openTag); } } } this is the message component that emulates wicket:message key add it to the page and then in your page simply render it multiple times add(new Message(message)); span wicket:id=message wicket:message=res1this is message replaced 1/spanbr/ span wicket:id=message wicket:message=res2this is message replaced 2/spanbr/ something like it can also be used to do that inline attribute replacement. no postprocessing or anything like that needed if we want this to be a builtin feature we can simply add one of these to every page with some name that we reserve. -Igor On 11/9/05, pepone pepone [EMAIL PROTECTED] wrote: Other way of handle tranlations can be take and aproach simiar to Qt ui tollkiti try to explain it a bitwhe you localiced and application all string in html are desired to be translatewe can parser html files and assign and unique id to each string to be translateprovide a singuel file for each locale with string-id=string-translationapplication can plug a diferent translation file depending of current localehave this make any sense? On 11/9/05, Johan Compagner [EMAIL PROTECTED] wrote: then call it wicket:message=value=my-key so thatwicket:message key=..Default Text/wicket:message and input type=button value=My Val wicket:message=value=my-key/uses the same kind of notation.Als value=My Val can then be seen as the default value if the value is not found for the given locale?That would be nice i think.johan On 11/9/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: good idea, except I would like to make a =. wicket:i18n=value=my-key Juergen On 11/9/05, Scott Sauyet [EMAIL PROTECTED] wrote: Johan Compagner wrote:i can live with: wicket:message key=..Default Text/wicket:message This makes sense. input type=button value=message:key=my-key/ I don't think this one does.It breaks the previewability of pages which is one of Wicket's hallmarks. How about something likeinput type=button value=My Val wicket:attr=value:message:my-key/ orwicket:i18n=value:my-key Wicket could then replace the value attribute entirely, but the preview is still available. This could also contain a comma-separated list of attribute-name/attribute-value-keys if there are multiple attributes to replace (not that I can think of a use-case right now...)-- Scott --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --play tetris http://pepone.on-rez.com/tetris--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play:
Re: [Wicket-user] i18n messages in HTML
Every time we're running into syntax discussions (see 'replacing OGNL') I feel that Wicket is deviating from the Java way. I think all the following suggestions would better be left unimplemented: input wicket:message=value=my-key type=.../ input wicket:message=value=my-key, class=another-key.../ input value=message:key=my-key type=... / span wicket:message=my-key.../span p wicket:message=$=greeting, class=greeting-classHello./p This is leaning in the direction of Tapestry (with special $prefixes) or real attribute languages (http://www.zope.org/Wikis/DevSite/Projects/ZPT/AttributeLanguage). TAL is great but Wicket's main selling point is (and should stay) Java. Every input field has a Wicket component anyway, so the origin of their attribute values should be in Java models, attribute modifiers or behaviours - not in HTML. The initial request for easier 18n of static labels was valid: wicket:message key=myKeyDefault Message/wicket:message IMHO this is striking similar to our auto linking tag: wicket:link autolink=true ... /wicket:link Anything else is opening a can of worms. Just my 2 cents Sven I think this is starting to get all out of hand and when I suggested this whole thing I didn't think it was going to be crazy likethis. Perhaps the attribute thing is best left to doing it thenormal Wicket way. I think the only thing I really need for i18nin terms of changing attributes is for a button or submit form elementand those are easy enough to add in each page. I think we need a simple solution which gets the job done for other cases where, for example, you do: First Name: input type=text/ Last name: etc. Currently, I have to add a label in the page/form for every single label I want for a form field, which honestly is kind of a pain. So, I suggest we add the wicket:message tag which has this: wicket:message key=myKeyDefault Message/wicket:message Nice and simple. I think this will cover most cases where peopleuse i18n and if attribute support is needed people will just have toadd it to a component manually in the page code. Thoughts? --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] FormFeedbackIndicator
We're trying to test a TextField wit a FormFeedbackIndicator. but we keep getting a 'the following Components failed to render' error on testform.indicator.FormFeedbackIndicator when we submit the form with errors. java: ... testfield = new RequiredTextField(text, new PropertyModel(ValidatePage.this, textValue)); testfield.add(LengthValidator.max(5)); FormComponentFeedbackIndicator i = new FormComponentFeedbackIndicator(indicator); i.setIndicatorFor(testfield); form.add(i); ... html: input type=text wicket:id=text/div wicked:id=indicator/div What are we doing wrong? Marco Ruud --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: FormFeedbackIndicator
Typo, sorry, ofcourse I meant FormComponentFeedbackIndicator We're trying to test a TextField wit a FormFeedbackIndicator. but we keep getting a 'the following Components failed to render' error on testform.indicator.FormFeedbackIndicator when we submit the form with errors. java: ... testfield = new RequiredTextField(text, new PropertyModel(ValidatePage.this, textValue)); testfield.add(LengthValidator.max(5)); FormComponentFeedbackIndicator i = new FormComponentFeedbackIndicator(indicator); i.setIndicatorFor(testfield); form.add(i); ... html: input type=text wicket:id=text/div wicked:id=indicator/div What are we doing wrong? Marco Ruud --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] simple bookmarkable url
thats my point. there are thousands of possibilities as to how to do this. thats why we are trying to create something flexible instead of catering to one specific solution. in the meantime, you can still do what you want without any changes to wicket. -Igor On 11/9/05, Jeff Miller [EMAIL PROTECTED] wrote: I understand. That is why I suggested a url that was more like a typicalurl (no page=) and did not require any special configuration by the developer. Another possibility would be to override Page2.html to mean bookmarkablePage=wicket.examples.template.Page2 so that url: http://www.wicket-library.com/wicket-examples/template/Page2.html is the same as: http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 Jeff Igor Vaynberg [EMAIL PROTECTED] wrote: you can create a regular _expression_ to go from page=name to bookmarkablePage=namethat along with page aliases whill get you where you want to go we are concentrating our efforts on 1.2. your request is pretty simple to implement, but we are trying to figure out how to create pluggable and flexible url handlers for 1.2 so that you will be able to do that yourself. everyone has a different idea of how they want their urls to look. today we add page=name, tomorrow someone asks for p=name and so on and so forth. so instead of doing this case by case we are figuring out how to have something general that is easy to customize.-Igor On 11/8/05, Jeff Miller [EMAIL PROTECTED] wrote: Thanks.I'll take a look.With the proper regular _expression_, I maybe able to affect any url.I don't want to program a rule for each url.I was hoping you Wicket developers would tell me that my proposal was faily simple to add to Wicket.I was looking for the simple url's tobe as easy and automatic as other Wicket features [no XML configuration :) ]Jeff--- Igor Vaynberg [EMAIL PROTECTED] wrote: or use a url rewriting filter like http://tuckey.org/urlrewrite/ -Igor On 11/8/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: you know you can have that today by implementing it yourself? Take a look WebRequestCrawlerSave and you'll see that you can easily change bookmarkablePage to page; you can make it case insensitive etc. Juergen On 11/8/05, Dan Gould [EMAIL PROTECTED] wrote: Jeff Miller wrote:I considered recommending page=. It would be better thanbookmarkablePage=. Allowing page= in conjunction with alias wouldcertainly allow simpler urls. +1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Jeff Miller [EMAIL PROTECTED]__Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com--- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Jeff Miller [EMAIL PROTECTED] Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] i18n messages in HTML
[EMAIL PROTECTED] wrote: Every time we're running into syntax discussions (see 'replacing OGNL') I feel that Wicket is deviating from the Java way. I think all the following suggestions would better be left unimplemented: input wicket:message=value=my-key type=.../ input wicket:message=value=my-key, class=another-key.../ input value=message:key=my-key type=... / span wicket:message=my-key.../span p wicket:message=$=greeting, class=greeting-classHello./p Although most of these were my suggestions, I agree. There seems to be little need for this. But the original wicket:message key=my-keyDefault value/wicket:message still seems to be a good idea. -- Scott --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
+1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel.IMHO such an addition would be very useful.SvenYou mean for tag text, correct? span wicket:message= hello.message /What do you think about wicket:message key=../.Than it is clearthat the whole label is wicket specific,span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key?JuergenOn 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user.Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/spanI'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on,for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /,w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complexi18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywherein the HTML.So for example, you could have: input type=submit value=message: label.submit /That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages.I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages.InTapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywherein the HTML.So for example, you could have: input type=submit value=message: label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server.Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server.Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play:
Re: [Wicket-user] i18n messages in HTML
I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages. I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages. In Tapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: where do I put controller/dispatcher logic?
Thanks for all the responses about this topic. The specific thing I'm trying to accomplish is this: I'm building a site with a standard sort of template page (which includes a navigation pane, a content pane, a search pane, the usual stuff). Every request needs to fire a query to a data store before rendering the page, and the query results need to be available to every panel on the page. The links embedded throughout the page allow the user to make additional requests, with refined parameters. These follow-on queries need to be able to invoke additional templates other than the master template. So my question is, being new to Component web frameworks, where does global stuff (such as the queries) occur? I can't put the query logic into individual components associated with individual panels. The queries have to be called outside the context of any page or panel. How do I stop talking about the request lifecycle and pages, and start talking about components, in the context of this sort of use case? Thanks,Steve
Re: [Wicket-user] Re: where do I put controller/dispatcher logic?
If they are not in the scope of components but in the scope of a request, than it's fine to put the logic in a custom request cycle. Nothing wrong with that. Just wanted to make sure you have to be in that scope :) Eelco On 11/10/05, Steven McNeel [EMAIL PROTECTED] wrote: Thanks for all the responses about this topic. The specific thing I'm trying to accomplish is this: I'm building a site with a standard sort of template page (which includes a navigation pane, a content pane, a search pane, the usual stuff). Every request needs to fire a query to a data store before rendering the page, and the query results need to be available to every panel on the page. The links embedded throughout the page allow the user to make additional requests, with refined parameters. These follow-on queries need to be able to invoke additional templates other than the master template. So my question is, being new to Component web frameworks, where does global stuff (such as the queries) occur? I can't put the query logic into individual components associated with individual panels. The queries have to be called outside the context of any page or panel. How do I stop talking about the request lifecycle and pages, and start talking about components, in the context of this sort of use case? Thanks, Steve --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] eclipse refactoring plugin
Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse-3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i will check it in tonight. -Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote: Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote: H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.html I created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer . Essentially if you have a page called SomePage class and you rename it to SomeOtherPage all resources SomePage.* in the same package will be renamed to SomeOtherPage.* If there is any interest i can make it available as a wicket-stuff project. keeping in mind that it was my first forray into eclipse, so i cannot guarantee it works 100%. -Igor -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] eclipse refactoring plugin
Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor,Eclipse warns me that Discouraged access: The typeRenameResourceChange is not accessible due to restriction on requiredlibrary D:\Programme\eclipse-3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong?What is the easiest way to deploy it. I know I can copy the jars.Isn't there menu entry to deploy it into a specific eclipseinstallation?thanksJuergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i will check it in tonight. -Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote: Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote:H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.htmlI created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer .Essentially if you have a page called SomePage class and you rename it to SomeOtherPage all resources SomePage.* in the same package will be renamed to SomeOtherPage.*If there is any interest i can make it available as a wicket-stuff project. keeping in mind that it was my first forray into eclipse, so i cannot guarantee it works 100%.-Igor --Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 ---SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] eclipse refactoring plugin
#: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration. At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one. hth, ./alex -- .w( the_mindstorm )p. On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i will check it in tonight. -Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote: Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote: H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.html I created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer . Essentially if you have a page called SomePage class and you rename it to SomeOtherPage all resources SomePage.* in the same package will be renamed to SomeOtherPage.* If there is any interest i can make it available as a wicket-stuff project. keeping in mind that it was my first forray into eclipse, so i cannot guarantee it works 100%. -Igor -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] eclipse refactoring plugin
unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -IgorUsually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration.At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one.hth,./alex--.w( the_mindstorm )p. On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i will check it in tonight. -Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote:Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote: H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.html I created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer . Essentially if you have a page called SomePage class and you rename it to SomeOtherPage all resources SomePage.* in the same package will be renamed to SomeOtherPage.* If there is any interest i can make it available as a wicket-stuff project. keeping in mind that it was my first forray into eclipse, so i cannot guarantee it works 100%. -Igor -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and
Re: [Wicket-user] i18n messages in HTML
First draft version available in CVS HEAD Juergen On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages. I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages. In Tapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play:
Re: [Wicket-user] eclipse refactoring plugin
#: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor Let me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-). ./alex -- .w( the_mindstorm )p. ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanks On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration. At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one. hth, ./alex -- .w( the_mindstorm )p. On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i will check it in tonight. -Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote: Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote: H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.html I created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer . Essentially if you have a page called SomePage class and you rename it to SomeOtherPage all resources SomePage.* in the same package will be renamed to SomeOtherPage.* If there is any interest i can make it available as a wicket-stuff project. keeping in mind that it was my first forray into eclipse, so i cannot guarantee it works 100%. -Igor -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very
Re: [Wicket-user] eclipse refactoring plugin
well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -Igor On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -IgorLet me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-)../alex--.w( the_mindstorm )p.ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanks On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration. At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one. hth, ./alex -- .w( the_mindstorm )p. On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now it handles all basic cases, like renaming a class that inherits from markup container and renaming an inner class that inherits from the markup container. one case that is not handled is renaming files for a class that does not inherit from the markup container but has inner classes that do. i would like this to be a community driven effort because i do not have a ton of time to put into this, so any contributions are welcome. And if someone has eclipse experience and wouldnt mind looking over it and giving pointers that would be great too. -Igor On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote:i will check it in tonight.-Igor On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote: Definitely would be nice. On 11/6/05, Martijn Dashorst [EMAIL PROTECTED] wrote: H YEAH! Martijn On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Hi guys, ive been doing some refactoring lately and got really tired of renaming the .html and .properties file after i renamed the page or panel class. This sucks especially when you have inner classes and you have to rename all inner resources like SomePage$SomeInnerPanel.html I created a small plugin for eclispe that does the renaming of all non-java resources when you rename a class that extends wicket.MarkupContainer .
Re: [Wicket-user] eclipse refactoring plugin
#: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 2:50 AM :# well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -Igor I see. I am not a Wicket user (or at least not yet - just been around to figure out if the framework is gonna help me). I guess the editor you are speaking about is quite new. Why? Because usually the multi-tab editors are presenting the same information/file but in different formats, while here you are speaking about 3 different sources. However it looks like the steps to be followed are the following: 1/ look in the WTP to see how this multi-tab editors are done 2/ take the XHTML editor from there 3/ create a component/or whatever we call it that presents together the Eclipse Java editor, an XHTML editor and the Eclipse properties editor. This definitely should work. My approach would be to look what interfaces a source editor must provide and than create a simple implementation based on pure SWT/JFace with multiple tabs. I remember a discussion on the Wicket ML where the markup (HTML file) wasn't named exactly as the Java source. I am not sure if this is supported or not. In case it is supported, than the things may become more complex, as you should go down to the Eclipse Java source parser and extract the exact piece of information to retrieve the HTML name. what do you think about these? do they make any sense to you? ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor Let me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-). ./alex -- .w( the_mindstorm )p. ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanks On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration. At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one. hth, ./alex -- .w( the_mindstorm )p. On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the jars. Isn't there menu entry to deploy it into a specific eclipse installation? thanks Juergen On 11/6/05, Igor Vaynberg [EMAIL PROTECTED] wrote: got access to a laptop, and just checked it in. its in wicket-stuff/wicketeer as i said this is my first go at an eclipse plugin so im sure the code isnt as elegant as it could be right now
Re: [Wicket-user] eclipse refactoring plugin
well it sounds resonable. but it also sounds like a lot of research and learning, unfortunately i dont think i have time for all that. i barely have enough time to work on wicket and wicket-spring integration stuff. so if someone wants to pick this up they are more then welcome to :) the code is all there in wicket-stuff/wicketeer project. -Igor On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on11/11/2005 2:50 AM :# well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -IgorI see. I am not a Wicket user (or at least not yet - just been around to figure out if the framework is gonna help me).I guess the editor you are speaking about is quite new. Why? Because usually the multi-tab editorsare presenting the same information/file but in different formats, while here you are speaking about 3 different sources. However it looks like the steps to be followed are the following:1/ look in the WTP to see how this multi-tab editors are done2/ take the XHTML editor from there3/ create a component/or whatever we call it that presents together the Eclipse Java editor, an XHTML editor and the Eclipse properties editor.This definitely should work. My approach would be to look what interfaces a source editor mustprovide and than create a simple implementation based on pure SWT/JFace with multiple tabs. I remember a discussion on the Wicket ML where the markup (HTML file) wasn't named exactly as theJava source. I am not sure if this is supported or not. In case it is supported, than the things maybecome more complex, as you should go down to the Eclipse Java source parser and extract the exact piece of information to retrieve the HTML name.what do you think about these? do they make any sense to you?./alex--.w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor Let me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-). ./alex -- .w( the_mindstorm )p. ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanks On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MF file. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or open source plugin and get your inspiration. At least this worked for me while developing a couple of Eclipse plugins, including the TestNG one. hth, ./alex -- .w( the_mindstorm )p.On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Igor, Eclipse warns me that Discouraged access: The type RenameResourceChange is not accessible due to restriction on required library D:\Programme\eclipse- 3.1\eclipse\plugins\org.eclipse.jdt.ui_3.1.1.jar Any idea what I'm doing wrong? What is the easiest way to deploy it. I know I can copy the
Re: [Wicket-user] eclipse refactoring plugin
#: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 3:16 AM :# well it sounds resonable. but it also sounds like a lot of research and learning, unfortunately i dont think i have time for all that. i barely have enough time to work on wicket and wicket-spring integration stuff. so if someone wants to pick this up they are more then welcome to :) the code is all there in wicket-stuff/wicketeer project. -Igor Understandable. My schedule for this end of year is very tight, so I will most probably not be able to do it. However, if somebody is starting to work on it, probable I will be able to offer some hints. Not planning to sound bad: but I was wondering if the effort is really worth it: 1 click instead of 3 (and maybe some less navigation). ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 2:50 AM :# well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -Igor I see. I am not a Wicket user (or at least not yet - just been around to figure out if the framework is gonna help me). I guess the editor you are speaking about is quite new. Why? Because usually the multi-tab editors are presenting the same information/file but in different formats, while here you are speaking about 3 different sources. However it looks like the steps to be followed are the following: 1/ look in the WTP to see how this multi-tab editors are done 2/ take the XHTML editor from there 3/ create a component/or whatever we call it that presents together the Eclipse Java editor, an XHTML editor and the Eclipse properties editor. This definitely should work. My approach would be to look what interfaces a source editor must provide and than create a simple implementation based on pure SWT/JFace with multiple tabs. I remember a discussion on the Wicket ML where the markup (HTML file) wasn't named exactly as the Java source. I am not sure if this is supported or not. In case it is supported, than the things may become more complex, as you should go down to the Eclipse Java source parser and extract the exact piece of information to retrieve the HTML name. what do you think about these? do they make any sense to you? ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor Let me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-). ./alex -- .w( the_mindstorm )p. ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanks On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen, I get the same warning. Im not really sure why its there. What im thinking is just copying and pasting that class into the plugin's source. As i said, this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant file by right clicking on the MANIFEST.MF and going to pde tools/build ant file and then doing the build using ant. When its done you get the jar file you can drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think the coolest feature this plugin can have is small tabs in the bottom of the editor that would let you switch between java/html/properties files, much like the editor you get when you double click the MANIFEST.MFfile. But i have absolutely no clue as to how to do that, so for now i will stick to small features i can figure out how to do - like auto file renaming, etc. -Igor Usually, while doing this it is a good idea to identify that feature in some core plugin or
Re: [Wicket-user] eclipse refactoring plugin
I think it is worth it because it consolidates what usually is three different editor tabs into one, so i can access more things quickly. i have a 21 screen and i can only see about 6-7 tabs at a time, this plugin would double/tripple that real-estate. and it eliminates all the scrolling you have to do in the package manager, or clicking that link button all the time. -Igor On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on11/11/2005 3:16 AM :# well it sounds resonable. but it also sounds like a lot of research and learning, unfortunately i dont think i have time for all that. i barely have enough time to work on wicket and wicket-spring integration stuff. so if someone wants to pick this up they are more then welcome to :) the code is all there in wicket-stuff/wicketeer project. -IgorUnderstandable. My schedule for this end of year is very tight, so I will most probably not be ableto do it. However, if somebody is starting to work on it, probable I will be able to offer some hints. Not planning to sound bad: but I was wondering if the effort is really worth it: 1 click instead of3 (and maybe some less navigation)../alex--.w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 2:50 AM :# well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -Igor I see. I am not a Wicket user (or at least not yet - just been around to figure out if the framework is gonna help me). I guess the editor you are speaking about is quite new. Why? Because usually the multi-tab editors are presenting the same information/file but in different formats, while here you are speaking about 3 different sources. However it looks like the steps to be followed are the following: 1/ look in the WTP to see how this multi-tab editors are done 2/ take the XHTML editor from there 3/ create a component/or whatever we call it that presents together the Eclipse Java editor, an XHTML editor and the Eclipse properties editor. This definitely should work. My approach would be to look what interfaces a source editor must provide and than create a simple implementation based on pure SWT/JFace with multiple tabs. I remember a discussion on the Wicket ML where the markup (HTML file) wasn't named exactly as the Java source. I am not sure if this is supported or not. In case it is supported, than the things may become more complex, as you should go down to the Eclipse Java source parser and extract the exact piece of information to retrieve the HTML name. what do you think about these? do they make any sense to you? ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor inside a multitabbed editor yet, so its been hard to get my expiration :) unfortunately i just dont have the time to become an eclipse guru to work on this. maybe you can help out. -Igor Let me know what are your future thoughts on the plugin and I will evaluate if I am really able to provide help :-). ./alex -- .w( the_mindstorm )p. ps: if you want to reach me offline pls use the_mindstorm[at]evolva[dot]ro. thanksOn 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:01 AM :# Juergen,I get the same warning. Im not really sure why its there. What im thinkingis just copying and pasting that class into the plugin's source. As i said,this is my first time fiddling with eclipse. The easiest way i found to deploy it is to let eclipse generate an ant fileby right clicking on the MANIFEST.MF and going to pde tools/build ant fileand then doing the build using ant. When its done you get the jar file youcan drop into the plugins folder. Maybe we can set up an update site if there is more interest. I think thecoolest feature this plugin can have is small tabs in the bottom of the
Re: [Wicket-user] i18n messages in HTML
Jeurgen, I think the attribute feature should be removed. I think it is just un-Wicket-like, and I think others agree as I read form the emails in this thread. As I mentioned before I think when it comes to attributes, it is best to just do it from within the component manually instead of the way you have it. Thoughts? --AndrewOn 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: First draft version available in CVS HEADJuergenOn 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. SvenYou mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../.Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote:Juergen Donnerstag wrote: I'm all for making things easier for the user.Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/spanI'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitelywon't work.Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERYhandy. Now, in a project I'm working on,for a i18n input form, half ofthe form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and spanwicket:id=lbl / it would be more handy to have 'something like' spanwicket:message= hello.message /span or wicket:messagekey=hello.message /,w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complexi18n messageswhich would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere inthe HTML.So for example, you could have:input type=submit value=message: label.submit /That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter andappend it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body;only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based)pre-processor (like we do merging of inherited markup) prior to addingthe markup to the cache. How likely is it that you'll find message: and it is not intended tobe a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g....${price} That won't be possible either. Only simple text. AsAttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModiferto cover everything else.Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only.And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you canstill have myPage_en.html; myPage_nl.html etc may which as well coverminor changes in the layout due to labels being of differents length; right-to-left languages etc.JuergenOn 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote:In my app I never hard-code text so I'm constantly adding Labels to mypages.I was wondering if it would make sense to have a shortcut, similarto how Tapestry does it, for dsplaying localization messages.In Tapestry,you can do this: title=message:page-title, where page-title is the lookupinto the property file. Perhaps Wicket could have something like this:span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere inthe HTML.So for example, you could have: input type=submit value=message: label.submit /Thoughts? --Andrew
[Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse
I am trying to use SortablePagableExportable table listed in wicket example 1.1 rc2, especialy, ExamplePse. Table header is created by SortableListViewHeaders.java as add(new SortableListViewHeaders(header, table) {...} hardcoded in html as below: thead wicket:id=header tr th wicket:id=city class=sortableCity/th th wicket:id=project class=sortableProject/th thHours/th thTask/th /tr /thead I have a table (name1, name2,..., column 0: value1, value2, ..., column 1: value1, value2,) passed at runtime as String[]. I guess there is a way to supply the table header at runtime using span. But I didn't succeed. If someone ever tried this, please give me a hand. Thank you. Vivi _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
I think/ agree that while Wicket's strong point lies in the fact that we keep things clean and code-centric, having easy localized string replacement without going through the whole requirement of having Wicket components in a matching hierarchy is a very good exception to the rule. Eelco On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Yes, the attribute thing doesn't realy look wicket like, that is true. But I still think that some kind of i18n (message) retrieval e.g. for button texts can be improved. A button is something I would like to be easily modifyable especially in multi-language application. Of course you can do it already, just create a new component derived from Button and attach an attribute modifier. Easy. But isn't it such a genereal requirement that it does make sense to implement such functionality in wickets core button component? Something like: Default is given in html markup. Search for id.attributeName=text and if found, replace the default. Juergen On 11/11/05, Andrew Berman [EMAIL PROTECTED] wrote: Jeurgen, I think the attribute feature should be removed. I think it is just un-Wicket-like, and I think others agree as I read form the emails in this thread. As I mentioned before I think when it comes to attributes, it is best to just do it from within the component manually instead of the way you have it. Thoughts? --Andrew On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: First draft version available in CVS HEAD Juergen On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other
Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse
I guess the sources would have to be modified. I don't think it is supported out-of-the box. Please bare in mind that these components are experimental only and have been developed at the very beginning of wicket. In the meantime the community has developed a much improved paged / sortable table handling which you'll find in wicket-extensions. Which reminds me to update the examples to make use of the new components. Juergen On 11/11/05, Huiping Yan [EMAIL PROTECTED] wrote: I am trying to use SortablePagableExportable table listed in wicket example 1.1 rc2, especialy, ExamplePse. Table header is created by SortableListViewHeaders.java as add(new SortableListViewHeaders(header, table) {...} hardcoded in html as below: thead wicket:id=header tr th wicket:id=city class=sortableCity/th th wicket:id=project class=sortableProject/th thHours/th thTask/th /tr /thead I have a table (name1, name2,..., column 0: value1, value2, ..., column 1: value1, value2,) passed at runtime as String[]. I guess there is a way to supply the table header at runtime using span. But I didn't succeed. If someone ever tried this, please give me a hand. Thank you. Vivi _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse
see repeater examples in the wicket-examples project, specifically the DataTable. -Igor On 11/10/05, Huiping Yan [EMAIL PROTECTED] wrote: I am trying to use SortablePagableExportable table listed in wicket example1.1 rc2, especialy, ExamplePse.Table header is created bySortableListViewHeaders.java asadd(new SortableListViewHeaders(header, table) {...} hardcoded in html as below:thead wicket:id=headertrth wicket:id=city class=sortableCity/thth wicket:id=project class=sortableProject/th thHours/ththTask/th/tr /theadI have a table (name1, name2,..., column 0: value1, value2, ..., column 1:value1, value2,) passed at runtime as String[].I guess there is a way to supply the table header at runtime using span.But I didn't succeed.If someone ever tried this, please give me a hand.Thank you.Vivi_ Express yourself instantly with MSN Messenger! Download today - it's FREE!http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user