Re: AjaxButton without a Form
Thank you...just found that out myself and was about to update this forum. Gerolf Seitz wrote: you can have input type=button wicket:id=linkButton/ in markup and new AjaxLink(linkButton) {...} in java code. Gerolf On Tue, May 20, 2008 at 2:35 AM, mnwicket [EMAIL PROTECTED] wrote: That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17525287.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxButton without a Form
Is there a good way to create a button, say AjaxButton that does depend on a form? Basically I just want to create my own button with in the content of a modal window to close it. -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17330924.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxButton without a Form
That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorting and ListView
I'm using a ListView to display contents of a List of a domain object. Pretty simply. However, the domain has a name on it that is internationalized, ie it will used a key value from a dot properties file. The issue is is that the List of object must be sorted based on the internationalized value of the name. Currently I'm using the localizer to get the internationalized values and then sorting the List but the localizer complains, something about not being attached to a page yet. Does anyone else have a better way of doing this? -- View this message in context: http://www.nabble.com/Sorting-and-ListView-tp16493832p16493832.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sorting and ListView
This issue isn't about how to sort, this issue is at what point do you grab the translated name. Mathias P.W Nilsson wrote: Couldn't you just use the Comparator? Add all items to a list, with the translated name implement Comparator and make the sort. Return the sorted list as a model. -- View this message in context: http://www.nabble.com/Sorting-and-ListView-tp16493832p16494145.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I elegantly put feedback per form field?
Take a look at the Forms with Flair example at http://londonwicket.org/ -Craig Ned Collyer wrote: How can I elegantly put a feedback panel per form field eg, Email address is required Email: [__] This is not a valid phone number Phone: [asfafadsfafa] This seems like a common scenario, but it seems rather verbose to implement. What should I extend to enable this? A form? A text field? A panel and add the required items. An example would be appreciated. Rgds Ned -- View this message in context: http://www.nabble.com/How-do-I-elegantly-put-feedback-per-form-field--tp16172288p16180547.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket ModalWindow vs Other
Just out of curiosity, are most people using the ModalWindow provided by the extensions project or are they wrapping a custom component around an existing javascript lib? If the second option, what libs are people using and can anyone provide their experiences and possibly code. -- View this message in context: http://www.nabble.com/Wicket-ModalWindow-vs-Other-tp16100093p16100093.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resource String from Localizer
Is it possible to get a resource string from a Localizer that hasn't been added to a Page yet? My situation is that I have an object called Role, the role can be setup by the a client and there are also default roles for all clients that are setup by the application with a resource key attached to it. The default roles has a resource key on the object. The issue I'm running into is that when displaying a list of roles I need to know the actual value of the resource key before being added to the Page so I can sort the roles by name. Side note, the value of the resource key is located in the Application.properties file. -Craig -- View this message in context: http://www.nabble.com/Resource-String-from-Localizer-tp15910188p15910188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Security - runtime ACLs and Roles help plz
Ned, I went through the same type of situation and came to the simple conclusion, wicket security just does not cut it for complicated security structures. In the end I rolled my own and it seems to work quite nice. I think the only difference between what I did and you are saying is that my application couldn't create permissions on the fly, basically there is a defined set of createBlah, editBlah permissions that were attached to extended security components, ie links...but from there the users of the application could create as many roles attached to as many different permissions as needed. Ned Collyer wrote: With wicket security (either wasp/swarm, or wicket-auth-roles) can things like Roles and Permissions be created through a web interface? Eg, I need a system whereby I can add new roles (or principals) through the web interface, and define their permission to a ACLs which are determined by which which plugins the system is configured to use. Each plugin will implement some interface, and expose the ACLs that it has available. - these will not be manually configured, and should not require any java code change when I add a plugin to the system. I'm having trouble mapping this to either swarm or wicket-auth-roles. (and trouble explaining it well ;)) I believe wicket-auth-roles is more component oriented, but reading about this stuff makes my head swim. Can anyone either steer me in the right direction, or point at an example that gets these ACLs and roles from a datastore at run time. -- View this message in context: http://www.nabble.com/Wicket-Security---runtime-ACLs-and-Roles-help-plz-tp15115011p15141818.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Session backed by something other than HTTP Session
I've worked on a couple applications in the past were they have decided not to use the HTTP Session and instead create their own structure, basically a session type of object gets stored in the database per request. Although I don't really love this direction but I have seen some benefits. My question regarding to Wicket is has anyone done something similar while using Wicket? How easy / feasible would it be to have the Wicket session backed by an applications own structure? -- View this message in context: http://www.nabble.com/Wicket-Session-backed-by-something-other-than-HTTP-Session-tp14741289p14741289.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML .properties reload
I just upgraded from wicket beta2 to rc1 and found that my HTML pages and .properties aren't automatically being reloaded as usual. Did something change? I didn't see anything in the release notes. Thanks -- View this message in context: http://www.nabble.com/HTML---.properties-reload-tf4959815.html#a14205374 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]