Re: [Wicket-user] VOTE: how should localized attributes work?
thus im quite new, 2[x] as its the only way to have a preview wich works in WYSIWYG editors and wont be ** up (hopefully...) by your next designer who changed the text so it looks better... On 8/3/06, Dirk Markert [EMAIL PROTECTED] wrote: 2 [x] 2006/8/3, Eelco Hillenius [EMAIL PROTECTED]: For localized attributes - so that you don't have to attach attribute modifiers all over the place for that sole reason - we have two alternative approaches in mind. For end-users this would either look like: 1) input type=submit value=wicket:i18n:my_key/ which is compact, or 2) input type=submit value=Default Value wicket:message=value:my_key/ which works better if you want to keep your components preview-able. What do you prefer (vote open to anyone that want to join in)? 1 [ ] 2 [ ] Eelco (I have to think about what I like a bit more myself, but currently I lean towards 2 as I think it is cleaner and supports preview-ability) -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV DEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV DEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforge CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE: how should localized attributes work?
On Fri, 2006-08-04 at 08:50 +0200, Korbinian Bachl wrote: thus im quite new, 2[x] be ** up (hopefully...) by your next designer who changed the text so it looks better... This a good point, with option 1 it is likely that designers touch the value-attribute. In option 2, it doesn't matter. (i already voted, so don't recount this) Joni - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket -- JSR 168 Portlet -- WSRP ?
I assume you have checked out wicket-portal-examples? It hasn't received a release yet, but you can find it in SVN: https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/ Martijn On 8/3/06, Christofer Jennings [EMAIL PROTECTED] wrote: Sorry if this question is off topic, but has anyone made a Wicket app, exposed via WSRP (via JSR 168 I assume)? ,chris - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] problems migrating the application to the latestwicket
Hi Eelco, Thanks very much for the reply, i assume the problem is some class path issue, because the same set of files works the way it is supposed to work on another machine. Regards Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, August 03, 2006 5:23 PM Subject: Re: [Wicket-user] problems migrating the application to the latestwicket Hi, I can't find anything wrong with your code by looking at it. Maybe you could submit a complete example (include the base classes and markup files) in e.g. a quickstart project so that we can take a look at it? QWicket is a great way to get a project in a few clicks: http://www.antwerkz.com/qwicket/app/project Eelco On 8/2/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I am trying to migrate my application to the latest version of wicket and i am having troubles. The first thing that i identified is that the buttons on submit is not getting called. The findSubmittingButton() method in the Form object is returning null. I am attaching sample files on how i am doing it. I don't know what am i doing wrong here. Any help is greatly appreciated. thanks dipu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE: how should localized attributes work?
1 [X] Btw. We are using ${key} everywhere (customized markup parsing) and it's much more convenient than wicket:message :-) -Matej Eelco Hillenius wrote: For localized attributes - so that you don't have to attach attribute modifiers all over the place for that sole reason - we have two alternative approaches in mind. For end-users this would either look like: 1) input type=submit value=wicket:i18n:my_key/ which is compact, or 2) input type=submit value=Default Value wicket:message=value:my_key/ which works better if you want to keep your components preview-able. What do you prefer (vote open to anyone that want to join in)? 1 [ ] 2 [ ] Eelco (I have to think about what I like a bit more myself, but currently I lean towards 2 as I think it is cleaner and supports preview-ability) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE: how should localized attributes work?
1 [ ] 2 [X] input type=submit value=Default Value wicket:message=value:my_key/ If you want to express it without a default value, that would be written as: input type=submit value=my_key wicket:message=value/ And if Wicket is going to support multiple attributes: input type=submit value=my_value_key alt=my_alt_key wicket:message=value alt/ -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE: how should localized attributes work?
But this:input type=submit value=my_key wicket:message=value/i really don't like.That is worsed of both worlds. You still don't have default/preview but you do have an extra input attribute to parse. Ok knowing that something must be i18n is easier.But you are right about that it looks neather when with multiply attributes.But this should also work fine:input type=submit value=Default Value alt=Test wicket:message=value:my_key alt:my_key2/ johanOn 8/4/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: 1 [ ]2 [X] input type=submit value=Default Value wicket:message=value:my_key/ If you want to express it without a default value, that would bewritten as:input type=submit value=my_key wicket:message=value/And if Wicket is going to support multiple attributes: input type=submit value=my_value_key alt=my_alt_key wicket:message=value alt/-- Jean-Baptiste QuenotakaJohn Banana Qwerty http://caraldi.com/jbq/-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] no-cache in development mode
Hi, I like to have browser be automatically instructed not to cache anything when in Wicket development mode. (I can't count the times I did not remember to clear the cache after making some modification in a CSS and couldt not find why the changes were not visible). May be it's there and I couldn't find it. I eventually it by detecting development mode programatically and inserting meta http-equiv=pragma content=no-cache/ into the head element. May be there is/should be a simpler way to achieve this ? Pierre-Yves - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] no-cache in development mode
Hi, the only 100% way is to deactivate the cache in the browser itself - as i found out some versions dont count on that no-cache, if they get the data for the same connection within short time, they usually use the chunks in the 0-time cache, especially if its embedded (like CSS files). the best thin is to use a WebDeveloper toolbar like the one for Firefox from Chris Prederick ( http://chrispederick.com/work/webdeveloper/ ) as it gives u fast access to the little things and allows you to ignore certain things like JS, or send faked data input in fields. Regards -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 4. August 2006 10:44 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] no-cache in development mode Hi, I like to have browser be automatically instructed not to cache anything when in Wicket development mode. (I can't count the times I did not remember to clear the cache after making some modification in a CSS and couldt not find why the changes were not visible). May be it's there and I couldn't find it. I eventually it by detecting development mode programatically and inserting meta http-equiv=pragma content=no-cache/ into the head element. May be there is/should be a simpler way to achieve this ? Pierre-Yves -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforge CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup getModelObject() null ?
hello,the code is like this ://final RadioGroup radioGroup = new RadioGroup(myValue);System.out.println(nat model: + radioGroup.getModelObject()); //this //outputs null everytime - that's my problemfinal ListString optLabelList = Arrays.asList(new String[] {Opt1, Opt2 }); //ListView radioList = new ListView(myOpts, optLabelList) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem item) { int number = item.getIndex(); // final Radio radio = new Radio(radio, new Model(new Integer(number))); radio.add(new AjaxEventBehavior(onchange) { protected void onEvent(AjaxRequestTarget target) { //some ajax event } }); item.add(radio); item.add(new Label(label, optLabelList.get(number))); }};radioList.setReuseItems(true); radioGroup.add(radioList);add(radioGroup);//this is part of a panel,in a form,onsubmit it updates the pojo,but if i return to this panel,the radiogroup model is null. i tried to set the initial value of myValue to 1 and the correct radio gets selected.but the model of the radiogroup is still nullthanks,Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Form-question
Hi, I've got a form problem that I don't really now how to handle. I've got three entities Person, PersonProperty and PropertyType. A Person has a SetPersonProperty A PersonProperty has a reference to a Person, a PropertyType and contains a value. What I would like to do is to edit a users dynamic properties by showing them all on screen. In a previous email to the list there was an example of a Master-Detail form which seemed to be a good start. Code below: ListView dynamicProperties = new ListView(propertiesAsList) { protected void populateItem(ListItem item) { TextField valueField = new TextField(value); valueField.setOutputMarkupId(true); FormComponentFeedbackBorder feedbackBorder = new FormComponentFeedbackBorder(feedback); feedbackBorder.setRenderBodyOnly(true); feedbackBorder.add(valueField); item.add(feedbackBorder); Label label = new Label(propertyType.name); label.add(new AttributeModifier(for, true, new Model(item.getId(; item.add(label); } protected IModel getListItemModel(IModel listViewModel, int index) { return new CompoundPropertyModel(super.getListItemModel(listViewModel, index)); } }.setReuseItems(true); This works great for editing the values of the dynamic properties a user has already set, but what I would like to do is to iterate all the possible ones, ie the PropertyType:s and get the values from the PersonProperty if one exist or create one if it doesn't. I think I need some model-trickery to achieve this but I can't really see it. Any help would be appreciated! //Mats - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IBATIS (and Spring)
Just to follow up on this, I'd flag the fact that there's a rather impressive code generation tool for iBATIS called Abator that can do a *lot* of the basic work needed if you've got a DB table to point it at! I might even have to go back branch wicket-phonebook to show it at some stage! /Gwyn On 28/07/06, Gwyn Evans [EMAIL PROTECTED] wrote: While there's nothing too Wicket-specific needed to use iBATIS with Wicket, I've nevertheless created a page on the Wiki that may be of interest if anyone's considering it's use. It also shows an example of Spring configuration and covers Oracle paging, but they're peripheral to the main point - See http://www.wicket-wiki.org.uk/wiki/index.php/IBATIS for more info. /Gwyn -- Download Wicket 1.2.1 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup getModelObject() null ?
final RadioGroup radioGroup = new RadioGroup(myValue);System.out.println(nat model: + radioGroup.getModelObject()); //this //outputs null everytime - that's my problemwhy wouldnt it output null? you havent set the model on the RadioGroup so it is null unless there is a compound model somewhere higher that has a getMyValue() -IgorOn 8/4/06, Alex Parvulescu [EMAIL PROTECTED] wrote: hello,the code is like this ://final RadioGroup radioGroup = new RadioGroup(myValue);System.out.println(nat model: + radioGroup.getModelObject()); //this //outputs null everytime - that's my problemfinal ListString optLabelList = Arrays.asList(new String[] {Opt1, Opt2 }); //ListView radioList = new ListView(myOpts, optLabelList) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem item) { int number = item.getIndex(); // final Radio radio = new Radio(radio, new Model(new Integer(number))); radio.add(new AjaxEventBehavior(onchange) { protected void onEvent(AjaxRequestTarget target) { //some ajax event } }); item.add(radio); item.add(new Label(label, optLabelList.get(number))); }};radioList.setReuseItems(true); radioGroup.add(radioList);add(radioGroup);//this is part of a panel,in a form,onsubmit it updates the pojo,but if i return to this panel,the radiogroup model is null. i tried to set the initial value of myValue to 1 and the correct radio gets selected.but the model of the radiogroup is still nullthanks,Alex -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form-question
yep this will indeed require model trickery which is not really that tricky.public class PersonPropertyModel extends AbstractModel { private final IModel person; private final IModel type; //imagine a constructor here// Object getObject(Component c) { Person p=person.getObject(c); PropertyType t=type.getObject(c); return p.getPropertyOfType(t); } void setObject(Component c, Object o) { Person p=person.getObject(c); PropertyType t=type.getObject(c); p.setPropertyOfType(t, (PersonProperty)o); } ondetach() { person.detach(); type.detach(); } }so this is just a simple wrapper to a map that can insert new values. the trick is that the model knows the person and the type which are the two extra pieces of info you need to know except for the property itself. notice i made person and type models because i dont know how big they are and if you want to keep them in session. -Igor On 8/4/06, Mats Norén [EMAIL PROTECTED] wrote: Hi,I've got a form problem that I don't really now how to handle.I've got three entities Person, PersonProperty and PropertyType.A Person has a SetPersonPropertyA PersonProperty has a reference to a Person, a PropertyType and contains a value.What I would like to do is to edit a users dynamic properties byshowing them all on screen.In a previous email to the list there was an example of aMaster-Detail form which seemed to be a good start. Code below: ListView dynamicProperties = new ListView(propertiesAsList) {protected void populateItem(ListItem item) {TextField valueField = new TextField(value); valueField.setOutputMarkupId(true);FormComponentFeedbackBorder feedbackBorder = newFormComponentFeedbackBorder(feedback);feedbackBorder.setRenderBodyOnly (true);feedbackBorder.add(valueField);item.add(feedbackBorder);Label label = new Label(propertyType.name); label.add(new AttributeModifier(for, true, newModel(item.getId(;item.add(label);}protected IModel getListItemModel(IModellistViewModel, int index) { return newCompoundPropertyModel(super.getListItemModel(listViewModel, index));}}.setReuseItems(true);This works great for editing the values of the dynamic properties a user has already set, but what I would like to do is to iterate allthe possible ones, ie the PropertyType:s and get the values from thePersonProperty if one exist or create one if it doesn't.I think I need some model-trickery to achieve this but I can't really see it. Any help would be appreciated!//Mats-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket -- JSR 168 Portlet -- WSRP ?
Thanks guys! On 8/4/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I assume you have checked out wicket-portal-examples? It hasn't received a release yet, but you can find it in SVN: https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/ Martijn On 8/3/06, Christofer Jennings [EMAIL PROTECTED] wrote: Sorry if this question is off topic, but has anyone made a Wicket app, exposed via WSRP (via JSR 168 I assume)? ,chris - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net Martijn On 8/3/06, Christofer Jennings [EMAIL PROTECTED] wrote: Sorry if this question is off topic, but has anyone made a Wicket app, exposed via WSRP (via JSR 168 I assume)? ,chris - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket -- JSR 168 Portlet -- WSRP ?
Still being worked on (by Janne, and possibly soon by Ate as well), so the more people that can test/ play with it, the better. Eelco On 8/4/06, Julian Klappenbach [EMAIL PROTECTED] wrote: Thanks guys! On 8/4/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I assume you have checked out wicket-portal-examples? It hasn't received a release yet, but you can find it in SVN: https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/ Martijn On 8/3/06, Christofer Jennings [EMAIL PROTECTED] wrote: Sorry if this question is off topic, but has anyone made a Wicket app, exposed via WSRP (via JSR 168 I assume)? ,chris - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net Martijn On 8/3/06, Christofer Jennings [EMAIL PROTECTED] wrote: Sorry if this question is off topic, but has anyone made a Wicket app, exposed via WSRP (via JSR 168 I assume)? ,chris - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] links in a DataTable
I created a table with wicket (1.2.1) using a DataTable (DefaultDataTable) and a DataProvider (SortableDataProvider). My table has one column like PropertyColumn(new Model(name'), name, name). Is it possible to have a linkable name instead of a plain name? Here's the code: ListIColumn projectColumns = new ArrayListIColumn(); projectColumns.add(new PropertyColumn(new Model(name), name, name)); ProjectDataProvider projectDataProvider = getDataProvider(); DataTable projectDataTable = new DefaultDataTable(projects, projectColumns, projectDataProvider, 10); add(projectDataTable); Here's my HTML: wicket:extend table wicket:id=projects cellspacing=0 cellpadding=2 class=grid/table /wicket:extend Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] generating e-mail reports with wicket
Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?AlexOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a templatewith basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] links in a DataTable
Thats exactly what I did...here is how I implemented it. I use this a lot, maybe slap it in extensions?wicket:panela href="" wicket:id=linkspan wicket:id=labellink/span/a /wicket:panelpackage com.whatever;import wicket.extensions.markup.html.repeater.data.table.PropertyColumn;import wicket.extensions.markup.html.repeater.refreshing.Item;import wicket.markup.html.basic.Label ;import wicket.markup.html.link.Link;import wicket.markup.html.link.PopupSettings;import wicket.markup.html.panel.Panel;import wicket.model.IModel;abstract public class LinkPropertyColumn extends PropertyColumn { PopupSettings popupSettings; IModel labelModel; public LinkPropertyColumn(IModel displayModel, String sortProperty, String propertyExpression, PopupSettings popupSettings) { this(displayModel, sortProperty, propertyExpression); this.popupSettings = popupSettings; } public LinkPropertyColumn(IModel displayModel, IModel labelModel) { super(displayModel, null); this.labelModel = labelModel; } public LinkPropertyColumn(IModel displayModel, String sortProperty, String propertyExpression) { super(displayModel, sortProperty, propertyExpression); } public LinkPropertyColumn(IModel displayModel, String propertyExpressions) { super(displayModel, propertyExpressions); } @Override public void populateItem(Item item, String componentId, IModel model) { item.add(new LinkPanel(item, componentId, model)); } public abstract void onClick(Item item, String componentId, IModel model); public class LinkPanel extends Panel { public LinkPanel(final Item item, final String componentId,final IModel model) { super(componentId); Link link = new Link(link) { @Overridepublic void onClick() { LinkPropertyColumn.this.onClick(item, componentId, model);} }; link.setPopupSettings(popupSettings); add(link); IModel tmpLabelModel = labelModel; if (labelModel == null) {tmpLabelModel = createLabelModel(model); } link.add(new Label(label, tmpLabelModel)); } }} On 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: instead of using a property column you have to implement your own column that creates a panel/fragment with the link and text-Igor On 8/4/06, Decebal Suiu [EMAIL PROTECTED] wrote: I created a table with wicket (1.2.1) using aDataTable (DefaultDataTable) and a DataProvider(SortableDataProvider).My table has one column like PropertyColumn(newModel(name'), name, name).Is it possible to have a linkable name instead of a plain name?Here's the code: ListIColumn projectColumns = newArrayListIColumn(); projectColumns.add(new PropertyColumn(newModel(name), name, name)); ProjectDataProvider projectDataProvider =getDataProvider(); DataTable projectDataTable = newDefaultDataTable(projects, projectColumns,projectDataProvider, 10); add(projectDataTable); Here's my HTML:wicket:extendtable wicket:id=projects cellspacing=0cellpadding=2class=grid/table /wicket:extendThanks,Decebal__Do You Yahoo!?Tired of spam?Yahoo! Mail has the best spam protection around http://mail.yahoo.com-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] generating e-mail reports with wicket
One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
Re: [Wicket-user] generating e-mail reports with wicket
yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it.-IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] generating e-mail reports with wicket
You can introduce push/pop methods on RequestCycle in the next version of wicket.AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash
Re: [Wicket-user] generating e-mail reports with wicket
request cycle is not the only problem. we have application and session threadlocals as well.-IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote:You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay
Re: [Wicket-user] generating e-mail reports with wicket
For Application Session you have set() methods. So, you can backup current values and then restore them.AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:request cycle is not the only problem. we have application and session threadlocals as well. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] generating e-mail reports with wicket
we can add a set() to request cycle as well :)-IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote:For Application Session you have set() methods. So, you can backup current values and then restore them. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: request cycle is not the only problem. we have application and session threadlocals as well. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [Wicket-user] generating e-mail reports with wicket
And if you can do it in 1.2.2 it would be great.AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:we can add a set() to request cycle as well :) -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: For Application Session you have set() methods. So, you can backup current values and then restore them. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: request cycle is not the only problem. we have application and session threadlocals as well. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash
Re: [Wicket-user] generating e-mail reports with wicket
add an rfe so it doesnt slip, or of course a patch would be welcome :)-IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote:And if you can do it in 1.2.2 it would be great. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we can add a set() to request cycle as well :) -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: For Application Session you have set() methods. So, you can backup current values and then restore them. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: request cycle is not the only problem. we have application and session threadlocals as well. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: One more roadblock... RequestCycle constructor current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle. AlexOn 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call: if (component instanceof Page) { // Use the default Page request target, if component is a Page new PageRequestTarget((Page)component).respond(requestCycle); }checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null: if (page != null) { page.endComponentRender(component); }Is it a bug in wicket?Alex On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, for instance if you need something like I needed forwww.burgerweeshuis.nl (years ago): administrators maintain a template with basic scripting facilities (accessing context variables, conditionals, etc). In that case using Velocity is simpler.EelcoOn 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well...if you are generating html emails and you have common display panels already in place for pojos, why not reuse those? you get to reuse the layout, css, etc with almost no effort. -IgorOn 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fair enough. I wouldn't say I'm against it per se. But for many cases imo it is overkill. Eelco On 8/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i disagree, i think wicket is in itself a great templating engine in 3.0 i would like to separate the layers more so you can easily build up components and render them to anywhere - gets you a component-oriented templating engine :) -Igor On 8/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote: It is possible, and you should look at our junit test cases to get some inspiration. Whether it is recommended... I don't know. I'd go for something simple like a Velocity template. Wicket components are meant for interaction, something you don't need when creating email messages. Eelco On 8/3/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to reuse some of the components I have to generate e-mail reports. Is it possible? Thank you, Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of IT Join
Re: [Wicket-user] links in a DataTable
Thanks, I've used that (and the way I do it) in a new page on the Wiki http://www.wicket-wiki.org.uk/wiki/index.php/Extensions:datatablelinks /Gwyn On 04/08/06, Joe Toth [EMAIL PROTECTED] wrote: Thats exactly what I did...here is how I implemented it. I use this a lot, maybe slap it in extensions? wicket:panel a href=# wicket:id=linkspan wicket:id=labellink/span/a /wicket:panel package com.whatever; import wicket.extensions.markup.html.repeater.data.table.PropertyColumn; import wicket.extensions.markup.html.repeater.refreshing.Item; import wicket.markup.html.basic.Label ; import wicket.markup.html.link.Link; import wicket.markup.html.link.PopupSettings; import wicket.markup.html.panel.Panel; import wicket.model.IModel; abstract public class LinkPropertyColumn extends PropertyColumn { PopupSettings popupSettings; IModel labelModel; public LinkPropertyColumn(IModel displayModel, String sortProperty, String propertyExpression, PopupSettings popupSettings) { this(displayModel, sortProperty, propertyExpression); this.popupSettings = popupSettings; } public LinkPropertyColumn(IModel displayModel, IModel labelModel) { super(displayModel, null); this.labelModel = labelModel; } public LinkPropertyColumn(IModel displayModel, String sortProperty, String propertyExpression) { super(displayModel, sortProperty, propertyExpression); } public LinkPropertyColumn(IModel displayModel, String propertyExpressions) { super(displayModel, propertyExpressions); } @Override public void populateItem(Item item, String componentId, IModel model) { item.add(new LinkPanel(item, componentId, model)); } public abstract void onClick(Item item, String componentId, IModel model); public class LinkPanel extends Panel { public LinkPanel(final Item item, final String componentId, final IModel model) { super(componentId); Link link = new Link(link) { @Override public void onClick() { LinkPropertyColumn.this.onClick(item, componentId, model); } }; link.setPopupSettings(popupSettings); add(link); IModel tmpLabelModel = labelModel; if (labelModel == null) { tmpLabelModel = createLabelModel(model); } link.add(new Label(label, tmpLabelModel)); } } } On 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: instead of using a property column you have to implement your own column that creates a panel/fragment with the link and text -Igor On 8/4/06, Decebal Suiu [EMAIL PROTECTED] wrote: I created a table with wicket (1.2.1) using a DataTable (DefaultDataTable) and a DataProvider (SortableDataProvider). My table has one column like PropertyColumn(new Model(name'), name, name). Is it possible to have a linkable name instead of a plain name? Here's the code: ListIColumn projectColumns = new ArrayListIColumn(); projectColumns.add(new PropertyColumn(new Model(name), name, name)); ProjectDataProvider projectDataProvider = getDataProvider(); DataTable projectDataTable = new DefaultDataTable(projects, projectColumns, projectDataProvider, 10); add(projectDataTable); Here's my HTML: wicket:extend table wicket:id=projects cellspacing=0 cellpadding=2 class=grid/table /wicket:extend Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [Wicket-user] Form-question
Thanks, I'll give it a try! On 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yep this will indeed require model trickery which is not really that tricky. public class PersonPropertyModel extends AbstractModel { private final IModel person; private final IModel type; //imagine a constructor here// Object getObject(Component c) { Person p=person.getObject(c); PropertyType t=type.getObject(c); return p.getPropertyOfType(t); } void setObject(Component c, Object o) { Person p=person.getObject(c); PropertyType t=type.getObject(c); p.setPropertyOfType(t, (PersonProperty)o); } ondetach() { person.detach(); type.detach(); } } so this is just a simple wrapper to a map that can insert new values. the trick is that the model knows the person and the type which are the two extra pieces of info you need to know except for the property itself. notice i made person and type models because i dont know how big they are and if you want to keep them in session. -Igor On 8/4/06, Mats Norén [EMAIL PROTECTED] wrote: Hi, I've got a form problem that I don't really now how to handle. I've got three entities Person, PersonProperty and PropertyType. A Person has a SetPersonProperty A PersonProperty has a reference to a Person, a PropertyType and contains a value. What I would like to do is to edit a users dynamic properties by showing them all on screen. In a previous email to the list there was an example of a Master-Detail form which seemed to be a good start. Code below: ListView dynamicProperties = new ListView(propertiesAsList) { protected void populateItem(ListItem item) { TextField valueField = new TextField(value); valueField.setOutputMarkupId(true); FormComponentFeedbackBorder feedbackBorder = new FormComponentFeedbackBorder(feedback); feedbackBorder.setRenderBodyOnly (true); feedbackBorder.add(valueField); item.add(feedbackBorder); Label label = new Label(propertyType.name); label.add(new AttributeModifier(for, true, new Model(item.getId(; item.add(label); } protected IModel getListItemModel(IModel listViewModel, int index) { return new CompoundPropertyModel(super.getListItemModel(listViewModel, index)); } }.setReuseItems(true); This works great for editing the values of the dynamic properties a user has already set, but what I would like to do is to iterate all the possible ones, ie the PropertyType:s and get the values from the PersonProperty if one exist or create one if it doesn't. I think I need some model-trickery to achieve this but I can't really see it. Any help would be appreciated! //Mats - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] html compression (whitespace removal)
Hi All,Is it possible to remove unnecessary whitespaces (end-of-line space characters) from wicket output without changing original templates? I'm sorry if this question was answered before...Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] html compression (whitespace removal)
I think you're looking for IMarkupSettings#setCompressWhitespace Eelco On 8/4/06, Alexei Sokolov [EMAIL PROTECTED] wrote: Hi All, Is it possible to remove unnecessary whitespaces (end-of-line space characters) from wicket output without changing original templates? I'm sorry if this question was answered before... Alex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user