Re: London Wicket event on Wednesday
Ah if only plane tickets were a little bit cheaper... On Tue, Jun 2, 2009 at 1:01 AM, Alastair Maw m...@almaw.com wrote: Hi, folks. Quick reminder that there's a London Wicket Users Group meet-up on Wednesday evening at Google UK in Victoria. It's rather late in the day for me to be announcing the topic of my talk, but it's going to be interesting: *Bookmarkable Everything* Wicket is great at managing server side state for you, but you still write a lot of boilerplate code for users to easily bookmark your pages. AJAX makes the problem ten times harder. Come along on Wednesday for instant parameterised pain relief. Sign up here: http://jweekend.co.uk/dev/LWUGReg Alastair -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Wicket + RSS
np:) 2009/5/31 Fernando Wermus fernando.wer...@gmail.com: It is solved. Thanks! On Sun, May 31, 2009 at 1:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: java.lang.RuntimeException: Unable to parse feed: http://feeds.feedburner.com/code_poet at org.wicketstuff.rome.SyndEntryListModel.load(SyndEntryListModel.java:31) at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:114) at org.apache.wicket.Component.getModelObject(Component.java:1565) at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:217) at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524) at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127) at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) at org.apache.wicket.Component.beforeRender(Component.java:1041) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590) at org.apache.wicket.Component.onBeforeRender(Component.java:3727) at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) at org.apache.wicket.Component.beforeRender(Component.java:1041) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590) at org.apache.wicket.Component.onBeforeRender(Component.java:3727) at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205) at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) at org.apache.wicket.Component.beforeRender(Component.java:1041) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590) at org.apache.wicket.Component.onBeforeRender(Component.java:3727) at org.apache.wicket.Page.onBeforeRender(Page.java:1458) at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) at org.apache.wicket.Component.beforeRender(Component.java:1041) at org.apache.wicket.Component.prepareForRender(Component.java:2167) at org.apache.wicket.Page.renderPage(Page.java:892) at org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1226) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399) at org.apache.wicket.RequestCycle.request(RequestCycle.java:529) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356) On Sun, May 31, 2009 at 1:37 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Nino, I got this error running a simple code. It couldn read rss from Code Poet! On Sun, May 31, 2009 at 1:27 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Nino, So I have to install it locally... ps: I am looking just to publish rss right now. thanks On Sun, May 31, 2009 at 1:15 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: It's here http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-rome/1.3-SNAPSHOT/ So shouldnt be a problem.. Are you looking publish rss with wicket or wicket to consume rss and show it on a page? wicketstuff rome will let you do both afaik... 2009/5/31 Fernando Wermus fernando.wer...@gmail.com: Hi all, I am looking to publish some RSS into a wicket site. I thought to have a look at wicket-stuff rome, but I couldn't get it. I am using it with wicket 1.3.6 repository idwicket-snaps/id urlhttp://wicketstuff.org/maven/repository/url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /repository + dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-rome/artifactId version1.3-SNAPSHOT/version /dependency -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail:
Re: London Wicket event on Wednesday
Paul, Very droll! Our London Wicket Events [1][2] are not only free, we feed our guests (fresh Pizza for those arriving before 18:30) and frequently give away goodies like copies of Wicket In Action. We sometimes pay our international presenters' expenses, and it is not unheard of for us to cover expenses of some guests (like students) and to provide accommodation for quite a few of our international guests over the last 2 years. And, Al has even been known to dish out Google memorabilia including stuff as odd as Google director's chairs, if I remember correctly!? But of course, the main thing is that our guests enjoy a regular (first Wednesday of every 2nd month) event where people that have any sort of interest in Wicket can come along, meet others with some common interests, mingle with well known and respected names in the field, and enjoy excellent presentations which are always instructive and usually pretty entertaining, as we work up a bit of a thirst before popping down to the pub. Regards - Cemal jWeekend http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg/ [2] http://code.google.com/p/londonwicket/ Paul Szulc wrote: Ah if only plane tickets were a little bit cheaper... On Tue, Jun 2, 2009 at 1:01 AM, Alastair Maw m...@almaw.com wrote: Hi, folks. Quick reminder that there's a London Wicket Users Group meet-up on Wednesday evening at Google UK in Victoria. It's rather late in the day for me to be announcing the topic of my talk, but it's going to be interesting: *Bookmarkable Everything* Wicket is great at managing server side state for you, but you still write a lot of boilerplate code for users to easily bookmark your pages. AJAX makes the problem ten times harder. Come along on Wednesday for instant parameterised pain relief. Sign up here: http://jweekend.co.uk/dev/LWUGReg Alastair -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- View this message in context: http://www.nabble.com/London-Wicket-event-on-Wednesday-tp23823819p23827430.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket event on Wednesday
Ah, you see, I didn't know that! But still I belive it would be just wrong to ask you for travel expanses just so could fly to London, chat with guys and fly back home... BUT but I could maybe craft some cool presentation for the wicket user group and visit you guys as presenter? Tell me what you think. On Tue, Jun 2, 2009 at 8:57 AM, jWeekend jweekend_for...@cabouge.comwrote: Paul, Very droll! -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Data getting lost upon form submission
I just thought of something, might this be a serialization problem? And if so, any clue on how I can solve it? Linda. Linda van der Pal wrote: Forgot to copy this line (which came just before the start of the form): setDefaultModel(new CompoundPropertyModelUser(user)); Linda van der Pal wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Data getting lost upon form submission
Do you see any error messages in the output? On Tue, Jun 2, 2009 at 6:13 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I just thought of something, might this be a serialization problem? And if so, any clue on how I can solve it? Linda. Linda van der Pal wrote: Forgot to copy this line (which came just before the start of the form): setDefaultModel(new CompoundPropertyModelUser(user)); Linda van der Pal wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Data getting lost upon form submission
No error messages that I can find. It's just that when I fill in the form, the value gets entered (the role is added to the list). And when I try to save those values, the values in question (the roles) are gone. (i.e. the list is empty) Linda James Carman wrote: Do you see any error messages in the output? On Tue, Jun 2, 2009 at 6:13 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I just thought of something, might this be a serialization problem? And if so, any clue on how I can solve it? Linda. Linda van der Pal wrote: Forgot to copy this line (which came just before the start of the form): setDefaultModel(new CompoundPropertyModelUser(user)); Linda van der Pal wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.44/2140 - Release Date: 05/28/09 18:09:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.49/2149 - Release Date: 06/01/09 17:55:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Data getting lost upon form submission
Have you tried using a Check, rather than a CheckBox? Take a look at the form input example here (view the source code): http://www.wicketstuff.org/wicket13/forminput/ On Fri, May 29, 2009 at 5:39 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data, but also *validates it*, which I don't want (I don't want validation messages to appear when changing the value of the drop down). If it where an AjaxButton I would be able to just setDefaultFormProcessing(false), but I don't see anything like that in AjaxFormSubmitBehavior... Is there a way to do this? Regards, Daniel.
Re: Data getting lost upon form submission
That seems to be even worse than CheckBox, as now it doesn't even show the roles that are saved in the database anymore. (Which it did do before with the CheckBox.) Linda James Carman wrote: Have you tried using a Check, rather than a CheckBox? Take a look at the form input example here (view the source code): http://www.wicketstuff.org/wicket13/forminput/ On Fri, May 29, 2009 at 5:39 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.50/2150 - Release Date: 06/02/09 06:47:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
weird changes on ajaxeditablemultilinelabel
Hey everyone, I am having a little problem with multiline editable labels. I add some text in Spanish with some special characters, but now this happens when I activate the field to edit the text and leave it again without actually changing anything: BEFORE: Encerrados en el hotel... calor Después del estrago aéreo ¿Y que persona eres tu? Baja! Te fías de la retórica Te juro si supiera que te daña, nunca partiría No, no, no Si solo con valor me lo pidieras, no te dejaría No, no, no ... AFTER: Encerrados en el hotel... calor Después del estrago aéreo ¿Y que persona eres tu? Baja! Te fÃas de la retórica Te juro si supiera que te daña, nunca partirÃa No, no, no Si solo con valor me lo pidieras, no te dejarÃa No, no, no How can I avoid this kind of change? Thnx in advance. DG - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Data getting lost upon form submission
Well, that seems to be the way you're supposed to do this stuff. I'd tinker with it, starting with the example code, to see if you can get it working. On Tue, Jun 2, 2009 at 7:14 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: That seems to be even worse than CheckBox, as now it doesn't even show the roles that are saved in the database anymore. (Which it did do before with the CheckBox.) Linda James Carman wrote: Have you tried using a Check, rather than a CheckBox? Take a look at the form input example here (view the source code): http://www.wicketstuff.org/wicket13/forminput/ On Fri, May 29, 2009 at 5:39 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.50/2150 - Release Date: 06/02/09 06:47:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Data getting lost upon form submission
Thanks for pointing me in that direction. I haven't quite got it working yet, but at least it is now showing me the role the user has. Linda James Carman wrote: Well, that seems to be the way you're supposed to do this stuff. I'd tinker with it, starting with the example code, to see if you can get it working. On Tue, Jun 2, 2009 at 7:14 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: That seems to be even worse than CheckBox, as now it doesn't even show the roles that are saved in the database anymore. (Which it did do before with the CheckBox.) Linda James Carman wrote: Have you tried using a Check, rather than a CheckBox? Take a look at the form input example here (view the source code): http://www.wicketstuff.org/wicket13/forminput/ On Fri, May 29, 2009 at 5:39 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the roles. I have debugged it and I see that it actually puts the roles in an instance of User, but when I get to the code that actually saves it all, the roles are empty again. (So they have been put in a different instance, but why and how?) Here's the form: // The form FormUser form = new FormUser(userdetailform); add(form); // The name-field form.add(new TextFieldString(name).setRequired(true)); // The roles-field CheckGroup rolesGroup = new CheckGroup(roles); CheckBox ownerRole = new CheckBox(owner); rolesGroup.add(ownerRole); form.add(rolesGroup); And here's the User class (name is a variable in DomainObject): public class User extends DomainObject { private String password; private ListRole roles; public User(final Integer id) { super(id); roles = new ArrayListRole(); } public void setPassword(final String password) { this.password = password; } public String getPassword() { return password; } public void setRoles(final ListRole roles) { this.roles = roles; } public ListRole getRoles() { return roles; } public void addRole(final Role role) { this.roles.add(role); } private boolean hasRole(final RoleName roleName) { for (Role role: roles) { if (role.getName().equals(roleName)) { return true; } } return false; } public boolean isOwner() { return hasRole(RoleName.OWNER); } private void setRole(final RoleName roleName, final Integer friendId, final boolean addRole) { Role role = new Role(roleName, friendId); if (addRole) { addRole(role); } else { this.roles.remove(role); } } public void setOwner(final boolean addRole) { setRole(RoleName.OWNER, null, addRole); } } Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.50/2150 - Release Date: 06/02/09 06:47:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.50/2150 - Release Date: 06/02/09 06:47:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
where I can find soures for wicketstuff-rome
Hi. I have problems with wicketstuff-rome: wrong encoding of rss in production server. encoding is correct on my ubuntu development computer.. I don't find source code (nor in maven repo nor in svn) or issue tracker Where I can find soures for wicketstuff-rome ? How to fix problem with encoding? -- Rzhevskiy Dmitry
Re: London Wicket event on Wednesday
Paul, I thought you meant tickets for our London Wicket Events [1] (free) tickets are not cheap?!? - I probably misunderstood or totally missed your plane word! Send me a note with Skype id and your timezone using our contact us page [2] if you are seriously considering preparing and delivering a presentation at one of our future events. Regards - Cemal jWeekend http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg/ [2] http://jweekend.com/dev/ContactUs Paul Szulc wrote: Ah, you see, I didn't know that! But still I belive it would be just wrong to ask you for travel expanses just so could fly to London, chat with guys and fly back home... BUT but I could maybe craft some cool presentation for the wicket user group and visit you guys as presenter? Tell me what you think. On Tue, Jun 2, 2009 at 8:57 AM, jWeekend jweekend_for...@cabouge.comwrote: Paul, Very droll! -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- View this message in context: http://www.nabble.com/London-Wicket-event-on-Wednesday-tp23823819p23831338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket event on Wednesday
On Tue, Jun 2, 2009 at 2:09 PM, jWeekend jweekend_for...@cabouge.comwrote: Paul, I thought you meant tickets for our London Wicket Events [1] (free) tickets are not cheap?!? - I probably misunderstood or totally missed your plane word! yeah, misunderstanding :) not so droll right now aint it ;) Send me a note with Skype id and your timezone using our contact us page [2] if you are seriously considering preparing and delivering a presentation at one of our future events. sure, I will Regards - Cemal jWeekend http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg/ [2] http://jweekend.com/dev/ContactUs Paul Szulc wrote: Ah, you see, I didn't know that! But still I belive it would be just wrong to ask you for travel expanses just so could fly to London, chat with guys and fly back home... BUT but I could maybe craft some cool presentation for the wicket user group and visit you guys as presenter? Tell me what you think. On Tue, Jun 2, 2009 at 8:57 AM, jWeekend jweekend_for...@cabouge.comwrote: Paul, Very droll! -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- View this message in context: http://www.nabble.com/London-Wicket-event-on-Wednesday-tp23823819p23831338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: WIA ch 13 DAO creation (just a lot of cheese?)
Hello James, thanks for the reply. Please find included below the Test.java body as found in the .domain directory: public class Test implements DomainObject { public Long getId() { return null; } } - Original Message - From: James Carman jcar...@carmanconsulting.com To: users@wicket.apache.org Sent: Monday, June 1, 2009 9:39:32 PM GMT -06:00 US/Canada Central Subject: Re: WIA ch 13 DAO creation (just a lot of cheese?) Does Test extend DomainObject? On Mon, Jun 1, 2009 at 10:32 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello wicket bunch, I have a curious situation using the WIA ch13 DAO/hibernate code. When I try to introduce a third class aptly named: Test in the domain and a DAO interface named: TestDao and then a class: TestDaoImpl I get the unresolvable Error: *** Bound mismatch: The type Test is not a valid substitute for the bounded parameter T extends DomainObject of the type AbstractHibernateDaoImplT Yet, this is perfectly valid for the existing class: Cheese and CheeseDaoImpl. Any ideas? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: where I can find soures for wicketstuff-rome
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicketstuff-rome/ https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicketstuff-rome-examples/ El mar, 02-06-2009 a las 16:01 +0400, Dima Rzhevskiy escribió: Hi. I have problems with wicketstuff-rome: wrong encoding of rss in production server. encoding is correct on my ubuntu development computer.. I don't find source code (nor in maven repo nor in svn) or issue tracker Where I can find soures for wicketstuff-rome ? How to fix problem with encoding? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Conflicting settings? isInputNullable and setConvertEmptyInputStringToNull ?
Hi! I find isInputNullable and setConvertEmptyInputStringToNull conflicting or at least confusing... what is their relation to each other? Now I get a conversion error for an empty date string which is supposed to be null when it is empty.. The getInput listens to isInputNullable and converts the empty input into an empty string.. but it should definitely be null. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Access to the bookmarkable pages map
After web application initialization, in which WebApplication.mount() is called on each bookmarkable page, Wicket obviously has a map of some description to allow it to look up the mounted pages based on the path. Is this map available to application code to look up? My code also needs a way of converting application path to BookmarkablePage class so that I can construct some BookmarkablePageLinks and rather than duplicate this internal path - page class map I was hoping that there is some way that application code can access that map. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WIA ch 13 DAO creation (just a lot of cheese?)
the book has a forum that may be a better place to ask this. www.wicketinaction.com/support -igor On Tue, Jun 2, 2009 at 6:44 AM, David Brown dbr...@sexingtechnologies.com wrote: Hello James, thanks for the reply. Please find included below the Test.java body as found in the .domain directory: public class Test implements DomainObject { public Long getId() { return null; } } - Original Message - From: James Carman jcar...@carmanconsulting.com To: users@wicket.apache.org Sent: Monday, June 1, 2009 9:39:32 PM GMT -06:00 US/Canada Central Subject: Re: WIA ch 13 DAO creation (just a lot of cheese?) Does Test extend DomainObject? On Mon, Jun 1, 2009 at 10:32 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello wicket bunch, I have a curious situation using the WIA ch13 DAO/hibernate code. When I try to introduce a third class aptly named: Test in the domain and a DAO interface named: TestDao and then a class: TestDaoImpl I get the unresolvable Error: *** Bound mismatch: The type Test is not a valid substitute for the bounded parameter T extends DomainObject of the type AbstractHibernateDaoImplT Yet, this is perfectly valid for the existing class: Cheese and CheeseDaoImpl. Any ideas? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data, but also *validates it*, which I don't want (I don't want validation messages to appear when changing the value of the drop down). If it where an AjaxButton I would be able to just setDefaultFormProcessing(false), but I don't see anything like that in AjaxFormSubmitBehavior... Is there a way to do this? Regards, Daniel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: weird changes on ajaxeditablemultilinelabel
make sure your servlet container and the pages you serve are all using utf-8 encoding -igor 2009/6/2 Dorothée Giernoth dorothee.giern...@kds-kg.de: Hey everyone, I am having a little problem with multiline editable labels. I add some text in Spanish with some special characters, but now this happens when I activate the field to edit the text and leave it again without actually changing anything: BEFORE: Encerrados en el hotel... calor Después del estrago aéreo ¿Y que persona eres tu? Baja! Te fías de la retórica Te juro si supiera que te daña, nunca partiría No, no, no Si solo con valor me lo pidieras, no te dejaría No, no, no ... AFTER: Encerrados en el hotel... calor Después del estrago aéreo ¿Y que persona eres tu? Baja! Te fÃas de la retórica Te juro si supiera que te daña, nunca partirÃa No, no, no Si solo con valor me lo pidieras, no te dejarÃa No, no, no How can I avoid this kind of change? Thnx in advance. DG - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Access to the bookmarkable pages map
this map is an implementation detail, so we do not expose it, eg in the future there may not even be a map but an internal data structure to optimize lookups. a very simple solution is for you to take a step back, build your own map, and then use that map to initialize the mounts. no duplication and no headaches. you can build bookmarkable links simply using urlfor(page.class). if the page is mounted you will get a mount link instead of the standard ?wicketbookmarkablepage=class -igor On Tue, Jun 2, 2009 at 8:07 AM, Chris Colman chr...@stepaheadsoftware.com wrote: After web application initialization, in which WebApplication.mount() is called on each bookmarkable page, Wicket obviously has a map of some description to allow it to look up the mounted pages based on the path. Is this map available to application code to look up? My code also needs a way of converting application path to BookmarkablePage class so that I can construct some BookmarkablePageLinks and rather than duplicate this internal path - page class map I was hoping that there is some way that application code can access that map. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Conflicting settings? isInputNullable and setConvertEmptyInputStringToNull ?
they seem to be the same thing. we should deprecate setConvertEmptyInputStringToNull. please open a jira issue. -igor On Tue, Jun 2, 2009 at 6:50 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I find isInputNullable and setConvertEmptyInputStringToNull conflicting or at least confusing... what is their relation to each other? Now I get a conversion error for an empty date string which is supposed to be null when it is empty.. The getInput listens to isInputNullable and converts the empty input into an empty string.. but it should definitely be null. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
Yes, I know it is tricky, but the fact is I don't think I would really need type conversion in this case. I will try to explain myself. I have the following UI: |OPERATOR |V| |INPUT1=aBc| |INPUT2=DeF | ...being OPERATOR the DropDownChoice, and both INPUT1 and INPUT2 two TextFields (String TextFields, to be precise). Both INPUT1 and INPUT2 are required (when they are visible, of course). When I change the value on OPERATOR, the UI will change, hiding INPUT1 and INPUT2 but showing INPUT3, another TextField which should have the same contents that were on INPUT1 before: |OPERATOR |V| |INPUT3=aBc| The problem is that, when changing OPERATOR, I need to read the value from INPUT1 to set it into INPUT3, but if INPUT2 is empty I will receive a validation message telling me that it is required... which it is, but I just want Wicket to validate that when I want to *really* submit the form, and not now that I am only changing the operator. Thanks. Regards, Daniel. igor.vaynberg wrote: how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data, but also *validates it*, which I don't want (I don't want validation messages to appear when changing the value of the drop down). If it where an AjaxButton I would be able to just setDefaultFormProcessing(false), but I don't see anything like that in AjaxFormSubmitBehavior... Is there a way to do this? Regards, Daniel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not--validate-it--tp23830542p23835836.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
well, if you do not want to *submit* the form then dont use ajaxformSUBMITbehavior :) with little work you can roll your own behavior that does a simple ajax get and appends whatever values you need from formcomponents to the url. that way the form is not submitted and you have access to the raw values. -igor On Tue, Jun 2, 2009 at 9:16 AM, dfernandez dfernan...@users.sourceforge.net wrote: Yes, I know it is tricky, but the fact is I don't think I would really need type conversion in this case. I will try to explain myself. I have the following UI: |OPERATOR |V| |INPUT1=aBc | |INPUT2=DeF | ...being OPERATOR the DropDownChoice, and both INPUT1 and INPUT2 two TextFields (String TextFields, to be precise). Both INPUT1 and INPUT2 are required (when they are visible, of course). When I change the value on OPERATOR, the UI will change, hiding INPUT1 and INPUT2 but showing INPUT3, another TextField which should have the same contents that were on INPUT1 before: |OPERATOR |V| |INPUT3=aBc | The problem is that, when changing OPERATOR, I need to read the value from INPUT1 to set it into INPUT3, but if INPUT2 is empty I will receive a validation message telling me that it is required... which it is, but I just want Wicket to validate that when I want to *really* submit the form, and not now that I am only changing the operator. Thanks. Regards, Daniel. igor.vaynberg wrote: how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data, but also *validates it*, which I don't want (I don't want validation messages to appear when changing the value of the drop down). If it where an AjaxButton I would be able to just setDefaultFormProcessing(false), but I don't see anything like that in AjaxFormSubmitBehavior... Is there a way to do this? Regards, Daniel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not--validate-it--tp23830542p23835836.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
file upload
I am using wicket file upload , In our application users want to upload big files with the size of 50 MB+, Do I need any additional support of or wicket file upload allows this ?
Re: file upload
wicket file upload will do just fine. -igor On Tue, Jun 2, 2009 at 9:29 AM, tubin gen fachh...@gmail.com wrote: I am using wicket file upload , In our application users want to upload big files with the size of 50 MB+, Do I need any additional support of or wicket file upload allows this ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: file upload
Not sure what the wicket default is but you may want to do in your application: getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(100)); On Tue, Jun 2, 2009 at 12:37 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: wicket file upload will do just fine. -igor On Tue, Jun 2, 2009 at 9:29 AM, tubin gen fachh...@gmail.com wrote: I am using wicket file upload , In our application users want to upload big files with the size of 50 MB+, Do I need any additional support of or wicket file upload allows this ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A button like BookmarkablePageLink
I guess that'll work. I'll let you know. Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Jun 2, 2009 at 12:49 AM, James Carman jcar...@carmanconsulting.comwrote: Try attaching your link to a button On Mon, Jun 1, 2009 at 5:39 PM, Eyal Golan egola...@gmail.com wrote: Hi, It may be newbie question. How do I create a button that opens a new web page in a different window / tab? The same as BookmarkablePageLink with PopupSettings etc. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
composite wizard
Hi all, I have two different wizard which can be use alone or can be use one after the another. Which is the best solution to these case? Thanks -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: composite wizard
...I forgot to tell that the second wizard has some info in the model dependent from the first wizard. On Tue, Jun 2, 2009 at 11:16 AM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I have two different wizard which can be use alone or can be use one after the another. Which is the best solution to these case? Thanks -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: close button for a page
or: button onclick=window.close() / somewhere in your markup. Martijn On Tue, Jun 2, 2009 at 8:34 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: add(new webmarkupcontainer(close) { oncomponenttag(tag) { tag.put(onclick, window.close();); }}); a wicket:id=closeclose/a -igor On Tue, Jun 2, 2009 at 11:18 AM, Eyal Golan egola...@gmail.com wrote: Hello, How do I make a button that will close a page. Not a Modal window, but a page that was opened using BookmarkablePageLink with PopupSettings. I've been searching for the solution without success. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Spring Autowired and @SpringBean
Not sure if this will help, but I have the following in my Spring configuration file: ?xml version=1.0 encoding=utf-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd context:annotation-config / context:component-scan base-package=path.to.my.beans.impl / /beans For each bean implementation I use @org.springframework.stereotype.Component, and for each property that needs to be set on these beans I use @org.springframework.beans.factory.annotation.Autowired. This way you can do the following: @Component public class FooServiceImpl implements FooService { @Autowired private BarService bar; public void doSomething() { // Does something } public void setBar(BarService bar) { this.bar = bar; } } And in your Wicket pages you use: public class MyPage extends Page { @SpringBean private FooService service; public MyPage() { super(); service.doSomething(); } } And of course, don't forget the SpringComponentInjector (which you already have) - and the required fields in your web.xml: context-param param-namecontextConfigLocation/param-name param-valueclasspath:your_application_context.xml/param-value /context-param Hope this helps, Jeroen
hibernate lazy loading byte code instrumentation and wicket serialization
I am thinking of using byte code instrumentation for lazy loading of properties , I use hibernate entities as model for most of my pages and wonderingbyte code instrumentation will cause any issues for serialization ?
Re: Mix generic HTML for Wicket
I would recommend you take a look at Wicket in Action. On Tue, Jun 2, 2009 at 3:34 PM, sjtirtha sjtir...@gmail.com wrote: Hi, I'm a newbie with wicket. I see that all sample always require .html and .java on the same folder with the same name. When I look into the .html files. They always contain simple html. Is there any possibility that I have a generic html and a generic wicket component that can be used shows DB tables. Regards, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: hibernate lazy loading byte code instrumentation and wicket serialization
considering you should be using LDM models and so you do not have direct references to entities - no. -igor On Tue, Jun 2, 2009 at 1:26 PM, tubin gen fachh...@gmail.com wrote: I am thinking of using byte code instrumentation for lazy loading of properties , I use hibernate entities as model for most of my pages and wondering byte code instrumentation will cause any issues for serialization ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: close button for a page
hanks igor and martin Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Jun 2, 2009 at 9:53 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: or: button onclick=window.close() / somewhere in your markup. Martijn On Tue, Jun 2, 2009 at 8:34 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: add(new webmarkupcontainer(close) { oncomponenttag(tag) { tag.put(onclick, window.close();); }}); a wicket:id=closeclose/a -igor On Tue, Jun 2, 2009 at 11:18 AM, Eyal Golan egola...@gmail.com wrote: Hello, How do I make a button that will close a page. Not a Modal window, but a page that was opened using BookmarkablePageLink with PopupSettings. I've been searching for the solution without success. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: unit test of AjaxLazyLoadPanel and ModalWindow
done, and improved, with junit test :) https://issues.apache.org/jira/browse/WICKET-2306 igor.vaynberg wrote: maybe you should paste it into a jira issue so we can commit it into code. -igor On Thu, May 28, 2009 at 7:36 PM, Antony Stubbs antony.stu...@gmail.com wrote: And here's a nicer version to add to your library: /** * Triggers an {...@link AjaxLazyLoadPanel} to fetch it's contents. * * @param wc the {...@link WicketTester} to execute the behaviour ( {...@link WicketTester#executeBehavior} ). * @param container contains the {...@link AjaxLazyLoadPanel} to trigger */ private void executeAjaxLazyLoadPanel(final WicketTester wc, Panel container) { container.visitChildren( AjaxLazyLoadPanel.class, new IVisitorAjaxLazyLoadPanel() { �...@override public Object component(AjaxLazyLoadPanel component) { ListIBehavior behaviors = component.getBehaviors(); // get the AbstractAjaxBehaviour which is responsible for // getting the contents of the lazy panel AbstractAjaxBehavior b = (AbstractAjaxBehavior) behaviors.get( 0 ); // tell wicket tester to execute it :) wc.executeBehavior( b ); // continue with visitation rights, or not, i don't care return CONTINUE_TRAVERSAL; } } ); } Antony Stubbs wrote: And boom! Thanks for the inspiration Frank! final WicketTester wc = constructBasicPanel(); wc.debugComponentTrees(); wc.dumpPage(); // delicious is the constructed panel, which contains a AjaxLazyLoadPanel... // visit it's children, looking for the AjaxLazyLoadPanel delicious.visitChildren( AjaxLazyLoadPanel.class, new IVisitorAjaxLazyLoadPanel(){ @Override public Object component(AjaxLazyLoadPanel component) { // get the AbstractAjaxBehaviour which is responsible for getting the contents of the lazy panel ListIBehavior behaviors = component.getBehaviors(); final AbstractAjaxBehavior b; b = (AbstractAjaxBehavior) behaviors.get( 0 ); // tell wicket tester to execute it :) wc.executeBehavior( b ); // continue with visitation rights, or not, i don't care return null; }} ); wc.debugComponentTrees(); wc.dumpPage(); // and volah, your lazy panel is now replaced with the contents :) wc.assertComponent( panel:lazy:content:repeaterContainer:bookmarks:1, Item.class ); wc.assertInvisible( panel:lazy:content:noBookmarks ); Let me know what you think or if you have any improvements! Antony Stubbs wrote: Thanks for the info Frank. Any tips on how to do so? Frank Bille wrote: On Thu, Apr 24, 2008 at 8:10 PM, qk wuhanqiangk...@gmail.com wrote: 1. after the page was rendered using WicketTester.startPage(), the real content (the one that returned by getLazyLoadComponent()) was not loaded by default. I always got an empty panel. Is there a way that I can have the real content rendered? Wicket tester doesn't parse javascript, so it can't execute the ajax callback. You have to do that yourself. Frank - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773356.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23845062.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org