Re: [Wicket-user] DropDownChoice binding question
not sure what's wrong with your code, but i've done enum selection in voicetribe with code that looks like the following: add(new DropDownChoice("genre", new Model() { @Override public Object getObject(Component component) { return Genre.valuesSortedByLocalizedName(); } }, new IChoiceRenderer() { public Object getDisplayValue(Object object) { return ((Genre)object).getLocalizedName(); } public String getIdValue(Object object, int index) { return object.toString(); } })); Flavius wrote: > > > I tried this: > > DropDownChoice severityChoice = new > DropDownChoice("size", > Arrays.asList(SIZE.values()), > new ChoiceRenderer() > { > public Object getDisplayValue(Object object) > { > return ((SIZE)object).getName(); > } > > public String getIdValue(Object object, int > index) > { > return ((SIZE)object).getId(); > } > }); > > The page renders fine. But when I submit the form, I get this error: > > WicketMessage: unable to set object Small, model: > Model:classname=[wicket.model.CompoundPropertyModel] > > Root cause: > > wicket.util.convert.ConversionException: Cannot parse 'Small' using format > [EMAIL PROTECTED] > at > wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) > > As I understand it, it's trying to set an int in the Shirt model for size, > but the drop down returned the Small object. What I really need is > Small.getId(). So I need to tell the form to bind the id property of the > return object to the field "size" > > > > > Nick Heudecker wrote: >> >> IChoiceRenderer allows you to specify the id and display values for a >> DropDownChoice. It's exactly what you're looking for. To explain a bit: >> >> getDisplayValue(...) - returns the value you want the user to see. >> "Small", >> "Medium", etc. This is where you'd return SIZE.getName(). >> getIdValue(...) returns the value submitted to the application. This is >> where you'd return SIZE.getId(). >> >> > > -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8104968 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice binding question
you are passing a list of enum objects into the list model of the dropdown choice, that means the one selected object out of that list - of type enum - will be set into the model object. so there are two ways to do this you can pass in a list of ints into the choice component, that way the selected int will be set into your model or you can write a model decorator that does the transform class SizeEnumToIntModel extends Model { private final IModel delegate; public SizeEnumToIntModel(IModel delegate) { this.delegate=delegate; } public Object getObject(Component c) {return Size.forValue( delegate.getObject(c); // convert int to enum } public void setObject(Component c, Object o) { delegate.setObject(((Size)o).getintvalue(); // convert enum to int } public void detach() { delegate.detach(); } } then new DropDownChoice(id, new SizeEnumToIntModel(new PropertyModel(form, "size")) you lose the nice compound model syntax, but oh well you might also be able to use a convert to accomplish the same, but i havent looked into that -igor On 12/30/06, Flavius <[EMAIL PROTECTED]> wrote: I tried this: DropDownChoice severityChoice = new DropDownChoice("size", Arrays.asList(SIZE.values()), new ChoiceRenderer() { public Object getDisplayValue(Object object) { return ((SIZE)object).getName(); } public String getIdValue(Object object, int index) { return ((SIZE)object).getId(); } }); The page renders fine. But when I submit the form, I get this error: WicketMessage: unable to set object Small, model: Model:classname=[wicket.model.CompoundPropertyModel] Root cause: wicket.util.convert.ConversionException: Cannot parse 'Small' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException( AbstractConverter.java:72) As I understand it, it's trying to set an int in the Shirt model for size, but the drop down returned the Small object. What I really need is Small.getId(). So I need to tell the form to bind the id property of the return object to the field "size" Nick Heudecker wrote: > > IChoiceRenderer allows you to specify the id and display values for a > DropDownChoice. It's exactly what you're looking for. To explain a bit: > > getDisplayValue(...) - returns the value you want the user to see. > "Small", > "Medium", etc. This is where you'd return SIZE.getName(). > getIdValue(...) returns the value submitted to the application. This is > where you'd return SIZE.getId(). > > -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8104039 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Store to EJB3/AJP Entity
looking forward to it maciej -igor On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey Igor ! I am happy that this is welcome. I will clean up the code a little bit and put it to public for review. Maciej > -Ursprüngliche Nachricht- > Von: wicket-user@lists.sourceforge.net > Gesendet: 31.12.06 01:42:45 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] Session Store to EJB3/AJP Entity it would be nice if this could be put into wicket-contrib-ejb project in wicket stuff > > we have been thinking aout providing a JdbcSessionStore which is the same thing but more generic. > > -igor > > > > On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello! > > What do you think about storing wicket session data to an ejb3 entity? I have played around with glassfish and have implemented an AjpSessionStore which stores all wicket session data. The main advantages of this in my situation are: > > > - Huge reduction of memory consumption for storing wicket sessions in memory > - Easier clustering by using a central databes (tested on Postgres / Oracle / DB2 CE) > - Nearly no performance reduction compared to traditional session storage > > - Database sessions are maintained by an EJB3 Timer bean (clean up on session destroy and timed base deletion) > > Would it be helpful to someone to post the code or constribute it? > > Maciej Andreas Bednarz > Germany, Hannover > > - > 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.php&p=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.php&p=sourceforge&CID=DEVDEV > > - > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- mfG Bednarz, Hannover - 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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice binding question
Can I see a bit more of your code? What you've posted looks good, so it's possible something else is causing the problem. You could try ##wicket on Freenode for more help. On 12/30/06, Flavius <[EMAIL PROTECTED]> wrote: I tried this: DropDownChoice severityChoice = new DropDownChoice("size", Arrays.asList(SIZE.values()), new ChoiceRenderer() { public Object getDisplayValue(Object object) { return ((SIZE)object).getName(); } public String getIdValue(Object object, int index) { return ((SIZE)object).getId(); } }); The page renders fine. But when I submit the form, I get this error: WicketMessage: unable to set object Small, model: Model:classname=[wicket.model.CompoundPropertyModel] Root cause: wicket.util.convert.ConversionException: Cannot parse 'Small' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException( AbstractConverter.java:72) As I understand it, it's trying to set an int in the Shirt model for size, but the drop down returned the Small object. What I really need is Small.getId(). So I need to tell the form to bind the id property of the return object to the field "size" Nick Heudecker wrote: > > IChoiceRenderer allows you to specify the id and display values for a > DropDownChoice. It's exactly what you're looking for. To explain a bit: > > getDisplayValue(...) - returns the value you want the user to see. > "Small", > "Medium", etc. This is where you'd return SIZE.getName(). > getIdValue(...) returns the value submitted to the application. This is > where you'd return SIZE.getId(). > > -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8104039 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice binding question
I tried this: DropDownChoice severityChoice = new DropDownChoice("size", Arrays.asList(SIZE.values()), new ChoiceRenderer() { public Object getDisplayValue(Object object) { return ((SIZE)object).getName(); } public String getIdValue(Object object, int index) { return ((SIZE)object).getId(); } }); The page renders fine. But when I submit the form, I get this error: WicketMessage: unable to set object Small, model: Model:classname=[wicket.model.CompoundPropertyModel] Root cause: wicket.util.convert.ConversionException: Cannot parse 'Small' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) As I understand it, it's trying to set an int in the Shirt model for size, but the drop down returned the Small object. What I really need is Small.getId(). So I need to tell the form to bind the id property of the return object to the field "size" Nick Heudecker wrote: > > IChoiceRenderer allows you to specify the id and display values for a > DropDownChoice. It's exactly what you're looking for. To explain a bit: > > getDisplayValue(...) - returns the value you want the user to see. > "Small", > "Medium", etc. This is where you'd return SIZE.getName(). > getIdValue(...) returns the value submitted to the application. This is > where you'd return SIZE.getId(). > > -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8104039 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice binding question
IChoiceRenderer allows you to specify the id and display values for a DropDownChoice. It's exactly what you're looking for. To explain a bit: getDisplayValue(...) - returns the value you want the user to see. "Small", "Medium", etc. This is where you'd return SIZE.getName(). getIdValue(...) returns the value submitted to the application. This is where you'd return SIZE.getId(). On 12/30/06, Flavius <[EMAIL PROTECTED]> wrote: Greetings, I am trying to take the value (only) of a DropDownChoice and put it in a model set on the Form. Ideally, I'd like to use a (java 5) enum, but any type of name value pair will work. For example, if I'm trying to set the size of a Shirt class, here is my Shirt, and a sample enum: public class Shirt { private int size; private int color; //. . . //(setters and getters removed to compact) } public static enum SIZE { Small("2"), Medium("4"), Large("6"), private String id; SIZE(String id) { this.id = id; } public String getId() { return id; } public String getName() { return id + " - " + this.toString(); } } Now, in my Form, I set the shirt as a model. When I add my "size" DropDownChoice to the form, I am binding it to the size field of my Shirt class: private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new Shirt())); DropDownChoice sizeChoice = new DropDownChoice("size", Arrays.asList(SIZE.values()), new ChoiceRenderer("name", "id")); sizeChoice.setRequired(true); add(sizeChoice); //. . . } } When I submit this form, it fails because I get a "Small", "Medium", or "Large" object back. What I want is the "id" of the selected object. I looked at the examples in DropDownChoicePage.java in the compref package of the wicket examples and I could do that: create a list of Integers and use a switch or other technique to get the display value. What I really want to do is bind the id property of the enum to the Shirt.size property. I've done this in reverse with a PropertyModel, binding a property of the model to a field on the page. I having some trouble doing it this way. I read through a number of the posts on DropDownChoice as a search item. None seem to hit the nail on the head. One poster mentioned using ChoiceRenderer, but I'm not following how that would work. Any suggestions would be greatly appreciated! I'm using Wicket 1.2.3 and java 5 in Tomcat. -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8103832 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DropDownChoice binding question
Greetings, I am trying to take the value (only) of a DropDownChoice and put it in a model set on the Form. Ideally, I'd like to use a (java 5) enum, but any type of name value pair will work. For example, if I'm trying to set the size of a Shirt class, here is my Shirt, and a sample enum: public class Shirt { private int size; private int color; //. . . //(setters and getters removed to compact) } public static enum SIZE { Small("2"), Medium("4"), Large("6"), private String id; SIZE(String id) { this.id = id; } public String getId() { return id; } public String getName() { return id + " - " + this.toString(); } } Now, in my Form, I set the shirt as a model. When I add my "size" DropDownChoice to the form, I am binding it to the size field of my Shirt class: private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new Shirt())); DropDownChoice sizeChoice = new DropDownChoice("size", Arrays.asList(SIZE.values()), new ChoiceRenderer("name", "id")); sizeChoice.setRequired(true); add(sizeChoice); //. . . } } When I submit this form, it fails because I get a "Small", "Medium", or "Large" object back. What I want is the "id" of the selected object. I looked at the examples in DropDownChoicePage.java in the compref package of the wicket examples and I could do that: create a list of Integers and use a switch or other technique to get the display value. What I really want to do is bind the id property of the enum to the Shirt.size property. I've done this in reverse with a PropertyModel, binding a property of the model to a field on the page. I having some trouble doing it this way. I read through a number of the posts on DropDownChoice as a search item. None seem to hit the nail on the head. One poster mentioned using ChoiceRenderer, but I'm not following how that would work. Any suggestions would be greatly appreciated! I'm using Wicket 1.2.3 and java 5 in Tomcat. -- View this message in context: http://www.nabble.com/DropDownChoice-binding-question-tf2900580.html#a8103832 Sent from the Wicket - User mailing list archive at Nabble.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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Store to EJB3/AJP Entity
Hey Igor ! I am happy that this is welcome. I will clean up the code a little bit and put it to public for review. Maciej > -Ursprüngliche Nachricht- > Von: wicket-user@lists.sourceforge.net > Gesendet: 31.12.06 01:42:45 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] Session Store to EJB3/AJP Entity it would be nice if this could be put into wicket-contrib-ejb project in wicket stuff > > we have been thinking aout providing a JdbcSessionStore which is the same > thing but more generic. > > -igor > > > > On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello! > > What do you think about storing wicket session data to an ejb3 entity? I have > played around with glassfish and have implemented an AjpSessionStore which > stores all wicket session data. The main advantages of this in my situation > are: > > > - Huge reduction of memory consumption for storing wicket sessions in memory > - Easier clustering by using a central databes (tested on Postgres / Oracle / > DB2 CE) > - Nearly no performance reduction compared to traditional session storage > > - Database sessions are maintained by an EJB3 Timer bean (clean up on session > destroy and timed base deletion) > > Would it be helpful to someone to post the code or constribute it? > > Maciej Andreas Bednarz > Germany, Hannover > > - > 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.php&p=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.php&p=sourceforge&CID=DEVDEV > > - > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- mfG Bednarz, Hannover - 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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Store to EJB3/AJP Entity
it would be nice if this could be put into wicket-contrib-ejb project in wicket stuff we have been thinking aout providing a JdbcSessionStore which is the same thing but more generic. -igor On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello! What do you think about storing wicket session data to an ejb3 entity? I have played around with glassfish and have implemented an AjpSessionStore which stores all wicket session data. The main advantages of this in my situation are: - Huge reduction of memory consumption for storing wicket sessions in memory - Easier clustering by using a central databes (tested on Postgres / Oracle / DB2 CE) - Nearly no performance reduction compared to traditional session storage - Database sessions are maintained by an EJB3 Timer bean (clean up on session destroy and timed base deletion) Would it be helpful to someone to post the code or constribute it? Maciej Andreas Bednarz Germany, Hannover - 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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
you can use a shared resource (which can also be mounted) instead -igor On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: I would like to use a page so that I can have bookmarkable urls to my rss feeds. On 12/30/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > instead of building a page why not just build a link - like DownloadLink > - but instead of streaming a file stream an output of your rss library. or a > combination link/shared resource if you want mounting. > > -igor > > > On 12/30/06, Ryan Sonnek < [EMAIL PROTECTED]> wrote: > > > > I'm building an rss page similar to the one on the wiki (http://cwiki.apache.org/WICKET/rss-page.html > > ), but I'd like to have the rss library i'm using write out the rss > > instead of duplicating all the markup and components. > > > > Is it possible for a page to programatically write out to the stream > > without having a markup file at all? > > > > > > - > > 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.php&p=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.php&p=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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Session Store to EJB3/AJP Entity
Hello! What do you think about storing wicket session data to an ejb3 entity? I have played around with glassfish and have implemented an AjpSessionStore which stores all wicket session data. The main advantages of this in my situation are: - Huge reduction of memory consumption for storing wicket sessions in memory - Easier clustering by using a central databes (tested on Postgres / Oracle / DB2 CE) - Nearly no performance reduction compared to traditional session storage - Database sessions are maintained by an EJB3 Timer bean (clean up on session destroy and timed base deletion) Would it be helpful to someone to post the code or constribute it? Maciej Andreas Bednarz Germany, Hannover - 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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
I would like to use a page so that I can have bookmarkable urls to my rss feeds. On 12/30/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: instead of building a page why not just build a link - like DownloadLink - but instead of streaming a file stream an output of your rss library. or a combination link/shared resource if you want mounting. -igor On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > I'm building an rss page similar to the one on the wiki (http://cwiki.apache.org/WICKET/rss-page.html > ), but I'd like to have the rss library i'm using write out the rss > instead of duplicating all the markup and components. > > Is it possible for a page to programatically write out to the stream > without having a markup file at all? > > > - > 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.php&p=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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] simulating javascript events in WicketTester
Hi, I'm trying to write some tests for a page that uses ajax to update itself. The page initializes in an accessible mode (not dependent on Javascipt) and when the javascript callback is made the page adds the javascript dependent components. To test this I wanted to check that all components are added to the page correctly, but it seems that the callback is never made. How do I fire javascript events (onload in this case) in the test? I've tried WicketTester.executeAjaxEvent() but this seems to work only on components where an AjaxBehaviour is added, in this case I've added an onLoad event on the page with a AbstractDefaultAjaxBehavior subclass. Thanks in advance, Ivo van Dongen (www.webical.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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
instead of building a page why not just build a link - like DownloadLink - but instead of streaming a file stream an output of your rss library. or a combination link/shared resource if you want mounting. -igor On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: I'm building an rss page similar to the one on the wiki ( http://cwiki.apache.org/WICKET/rss-page.html), but I'd like to have the rss library i'm using write out the rss instead of duplicating all the markup and components. Is it possible for a page to programatically write out to the stream without having a markup file at all? - 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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
have your page implement IMarkupResourceStreamProvider -igor On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: I'm building an rss page similar to the one on the wiki ( http://cwiki.apache.org/WICKET/rss-page.html), but I'd like to have the rss library i'm using write out the rss instead of duplicating all the markup and components. Is it possible for a page to programatically write out to the stream without having a markup file at all? - 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.php&p=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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
I wrote up a quick blog to demonstrate this solution in case anyone is interested. I've built a "better" wicket RSS page that can handle any of the RSS formats along with Atom. if anyone's interested, this could probably go into wicket-stuff too. http://jroller.com/page/wireframe?entry=wicket_feedpage On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: As a followup, I was able to override the onRender() method to stream my content, but I still need an empty markup file or else wicket throws an exception. are any "risks" with going with this approach, and is there any way to get around the empty markup file? On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > I'm building an rss page similar to the one on the wiki (http://cwiki.apache.org/WICKET/rss-page.html > ), but I'd like to have the rss library i'm using write out the rss > instead of duplicating all the markup and components. > > Is it possible for a page to programatically write out to the stream > without having a markup file at all? > - 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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page without markup file
As a followup, I was able to override the onRender() method to stream my content, but I still need an empty markup file or else wicket throws an exception. are any "risks" with going with this approach, and is there any way to get around the empty markup file? On 12/30/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: I'm building an rss page similar to the one on the wiki ( http://cwiki.apache.org/WICKET/rss-page.html), but I'd like to have the rss library i'm using write out the rss instead of duplicating all the markup and components. Is it possible for a page to programatically write out to the stream without having a markup file at all? - 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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] page without markup file
I'm building an rss page similar to the one on the wiki ( http://cwiki.apache.org/WICKET/rss-page.html), but I'd like to have the rss library i'm using write out the rss instead of duplicating all the markup and components. Is it possible for a page to programatically write out to the stream without having a markup file at all? - 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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-2.0 snapshots
Some searching led me to believe it is run by Stefan Arentz from Polar Roze in the same city as I am writing this (Amsterdam, The Netherlands). http://stefan.arentz.nl/2006/05/18/new-maven-repository/ http://stefan.arentz.nl/2006/11/02/17407-jar-files-later/ Regards, Erik. Ryan Sonnek schreef: > Does anyone know who runs the http://maven.sateh.com/wicket/ site? -- Erik van Oosten http://day-to-day-stuff.blogspot.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.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user