Best way to implement OSIV (open session in view) pattern in Wicket

2008-12-06 Thread Azzeddine Daddah
Hi guys, I want to use Hibernate in my Wicket web application. I've found a way to to this by creating: - a custom WebApplication to initialise and destroy the SessionFactory. - a custom WebRequestCycle to handle opening and closing/committing connections and transactions Is this a good

Re: wickethub.org

2008-12-15 Thread Azzeddine Daddah
+1 On Mon, Dec 15, 2008 at 5:52 PM, francisco treacy francisco.tre...@gmail.com wrote: thanks daniel for the input. wickethub ideally could also be used to keep track of abandoned projects, so i might add a date of last activity -something like that- if it makes sense. how many times you

Re: debugging

2008-12-23 Thread Azzeddine Daddah
Start tomcat using catalina jpda start :) 1. Open the startup script in (your_tomcat_home)/bin (WIN: startup.bat, UNIX: startup.sh) 2. Add the following lines at the first blank line in the file WINDOWS: set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket UNIX: export

wicketstuff-annotation and Wicket 1.4

2008-12-30 Thread Azzeddine Daddah
Hi guys, Does someone already tried to use wicketstuff-annotation with Wicket 1.4? They say in the wicketstuff site that it depends on wicket 1.3.3 but isn't tested yet with 1.4. Gr. Hbiloo

Re: wicketstuff-annotation and Wicket 1.4

2009-01-05 Thread Azzeddine Daddah
with 1.4 make sure you are using the project in wicketstuff-core jeremy is pointing out. On Tue, Dec 30, 2008 at 5:57 AM, Azzeddine Daddah waarhei...@gmail.com wrote: Hi guys, Does someone already tried to use wicketstuff-annotation with Wicket 1.4? They say in the wicketstuff site

Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Azzeddine Daddah
Hi, I've two text fields wrapped in a container. What I want to do is to let the user remove these fields via a link. This is my code which does not work. The wrapper container stills appear even the link is submitted: html xmlns:wicket wicket:panel div wicket:id=container input

Re: Component doesn't disappear when removing it via an ajax link

2009-02-03 Thread Azzeddine Daddah
@wicket.apache.org Subject: Re: Component doesn't disappear when removing it via an ajax link Run Wicket in development mode and investigate what happens in the Wicket Ajax Debug dialog (right bottom corner of your browser). ** Martin 2009/2/3 Azzeddine Daddah waarhei...@gmail.com

Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
Hi guys, Does somebody knows if there is already such a Wicket lib/component where you can select more then one value. Something like this one http://www.emposha.com/javascript/jquery/jquerymultiselect.html, http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
implement the first one in due time. It is not as fluid as i would hope though. http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah waarhei...@gmail.comwrote: Hi guys, Does somebody knows if there is already

How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
Hello everyone, Could someone please tell me how I can clear the selected value of an AutoCompleteTextField. I've an AutoCompleteTextField and a link which should clear the value of the text field after clicking it. I would also do some effects after clearing this value. Below my code: final

Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
of the form to empty and then call target.addComponet(tagsContainer); what kind of effect do you want? If you need to call javascript you can use target.appendJavaScript()... Luca 2009/2/12 Azzeddine Daddah waarhei...@gmail.com Hello everyone, Could someone please tell me how I can

Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
; } } return choices.iterator(); } } Regards, Hbiloo On Thu, Feb 12, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If you copy-paste your code here we can probably dig into it better ... ** Martin 2009/2/12 Azzeddine Daddah waarhei...@gmail.com

Re: How can I clear the value of an AutoCompleteTextField

2009-02-13 Thread Azzeddine Daddah
target.appendJavascript(String.format(document.getElementById(%s).value = '', tagsTextfield.getMarkupId()));does not clear the text field. Any idea how to do this? Hbiloo On Thu, Feb 12, 2009 at 10:15 PM, Azzeddine Daddah waarhei...@gmail.comwrote: This is what I've till now. Clearing

Effects library in Wicket

2009-02-15 Thread Azzeddine Daddah
Hi Wicket users, Is there any effects library integrated in Wicket? In the Wicket examples they just use the reference of the javascript files in the head of the page and then append the javascript causing the effect to the component like: target.appendJavascript(new Effect.Highlight($(' +

Re: DropDownChoice always sets its model to null

2009-02-28 Thread Azzeddine Daddah
a property model instead of recipe.getcategories() -igor On Sat, Feb 28, 2009 at 8:17 AM, Azzeddine Daddah waarhei...@gmail.com wrote: Hi, I'm trying to use a DropDownChoice to display and store the selected category in the database. The value selected in the drop down is correctly

Re: DropDownChoice always sets its model to null

2009-02-28 Thread Azzeddine Daddah
(); } }); } } } On Sat, Feb 28, 2009 at 6:24 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: where is the code that creates your form? and is Recipe serializable? -igor On Sat, Feb 28, 2009 at 8:58 AM, Azzeddine Daddah waarhei...@gmail.com wrote

Re: DropDownChoice always sets its model to null

2009-02-28 Thread Azzeddine Daddah
The category is still null. Could someone tell me where it goes wrong? Thanks, Hbiloo On Sat, Feb 28, 2009 at 6:39 PM, Azzeddine Daddah waarhei...@gmail.comwrote: The Recipe object is indeed serializable. Below some code from the AddRecipeForm and Recipe: public class Recipe implements

Attempt to set model object on null model of component when submitting a form

2008-09-16 Thread Azzeddine Daddah
Hi, I've the following code: private static final ListString SEARCH_DOMAINS = Arrays.asList(AA, BB); ... private void addSearchForm() { Form searchForm = new Form(searchForm); searchForm.add(new DropDownChoice(searchDomain, SEARCH_DOMAINS)); searchForm.add(new

Re: Attempt to set model object on null model of component when submitting a form

2008-09-16 Thread Azzeddine Daddah
: Azzeddine Daddah [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2008 15:01 An: users@wicket.apache.org Betreff: Attempt to set model object on null model of component when submitting a form Hi, I've the following code: private static final ListString SEARCH_DOMAINS = Arrays.asList

Localized string retrieved with a warning message

2008-09-18 Thread Azzeddine Daddah
Hi, I get the following warning message when trying to retrieve a localized string: *Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling

Re: Localized string retrieved with a warning message

2008-09-18 Thread Azzeddine Daddah
PROTECTED]wrote: Don't call getString() on your final StringResourceModels, rather just pass the models to the links, then you shouldn't bet the warning anymore regards, Michael Azzeddine Daddah wrote: Hi, I get the following warning message when trying to retrieve a localized

Strange exception when trying to use wicketstuff-annotation library

2008-10-15 Thread Azzeddine Daddah
Hi, When trying to use the wicketstuff-annotation library I got a very strange Exception: *log4j:ERROR Error occured while converting date.*. This causes that my application couldn't be started up. When removing this jar and his dependencies from the lib and just use the normal Wicket mounting

Re: Small question about URL rewriting

2008-10-15 Thread Azzeddine Daddah
-with-wicket Regards, Daan On 15 okt 2008, at 11:19, Azzeddine Daddah wrote: Hi, I wanna just know if there is a way to rewrite URLs. For example to do something like this: From: http://mydomain.com/product/productNumber/12345 To: http://mydomain.com/product/this-is-my-product Regards

How to append a javascript code part to the head once

2008-10-16 Thread Azzeddine Daddah
Hi there, I've a problem with appending a part of a javascript code to the head once for all my concrete behavior classes. Below what I do at this moment: JQueryBehavior class public abstract class JQueryBehavior extends AbstractBehavior { private static final String JQUERY_1_2_6 =

Re: wicket log4j MDC

2009-03-30 Thread Azzeddine Daddah
) { return null; } } Azzeddine Daddah www.hbiloo.com On Mon, Mar 30, 2009 at 4:11 PM, daniel.lipski...@gmail.com wrote: Hi I would like to add MDC information(i.e. user login) to my loggs (log4j). To do that I have to call MDC.put at the beggining of request handling. Im looking

Re: GWT vs. Wicket?

2009-04-08 Thread Azzeddine Daddah
, Azzeddine Daddah www.hbiloo.com On Wed, Apr 8, 2009 at 4:46 PM, Casper Bang cas...@jbr.dk wrote: Peter Thomas did a great side by side you should checkout: Good article, if perhaps a bit one-sided. I can understand how separation-of-concerns/composability comes slightly more natural

Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Azzeddine Daddah
Looks great, and you can see that it's PRO. I think that the tabs do not work under Safari. You can see the selected tab is active but the content does not change. Congratulations anyway. Regards, Hbiloo On Mon, Apr 20, 2009 at 7:22 PM, nino martinez wael nino.martinez.w...@gmail.com wrote:

Re: New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread Azzeddine Daddah
Looks great. Yet another cool website built in Wicket :). I liked especially the integration of the photo gallery, it's beautiful. Cheers, Azzeddine Daddah www.hbiloo.com On Thu, Apr 23, 2009 at 10:18 AM, Giannis Koutsoubos kouts...@kproject.grwrote: Inlaconia.gr is a travel and business

AttributeModifier not added to a ListView item via an AjaxLink

2009-06-23 Thread Azzeddine Daddah
Hi Wicket users, I've a ListView in a ListView. The 1st ListVeiw holds categories. The 2nd ListView holds links (topics) which I want to be highlighted if the link (topic) is clicked. The problem is that the wrapped list (container) is getting refreshed, but the CSS class is not set for the

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Azzeddine Daddah
think you may have to return the highlight value dynamically. Try this alternative: item.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { �...@override public Object getObject() {      return highlight  } }); On Tue, Jun 23, 2009 at 5:56 PM, Azzeddine Daddah waarhei

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Azzeddine Daddah
, Azzeddine Daddah waarhei...@gmail.comwrote: Thanks Vasu for your replay. I've tried your suggestion, but didn't work. This is what I get in the Ajax debuger when I click a certain item: ... li   a id=topicLink31 href=# onclick=var wcall=wicketAjaxGet('?wicket:interface=:0:container:categories:3

Re: Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-25 Thread Azzeddine Daddah
Martijn, I tried your solustion(s), but the CSS class of the topicLabel still not updated. public TestPage() { final WebMarkupContainer container = new WebMarkupContainer(container); container.setOutputMarkupId(true); container.add(new ListViewCategory(categories,

Component.getPage() always returns null

2009-06-26 Thread Azzeddine Daddah
Hi everybody, I want to create a text blur effect behavior so that when the text field gets focussed, the value will be empty and when blurred the value will be set to the default value. I use the Wickext library which integrates jQuery in Wicket. The problem is that the component's page in the

Re: Links

2010-02-24 Thread Azzeddine Daddah
public class MyLink extends LinkVoid { public MyLink(String id) { super(id); } @Override public void onClick() { // Your code here } } add(new MyLink(restartLink)); add(new MyLink(cancelLink)); On Wed, Feb 24, 2010 at 4:22 PM, hill180 hill...@gmail.com

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Azzeddine Daddah
+1 On Mon, Mar 17, 2008 at 9:22 AM, Jan Vissers [EMAIL PROTECTED] wrote: +1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Azzeddine Daddah www.hbiloo.com

Re: Writing to .properties files and make changes happen?

2008-04-04 Thread Azzeddine Daddah
archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Azzeddine Daddah www.hbiloo.com

What is the best way to create layouts in Wicket?

2008-04-27 Thread Azzeddine Daddah
Hi there, I'm new to Wicket trying to build my first application :). I've already token a look at Creating layouts using markup inheritance tutorial from the Wicket website, but still have some questions: Suppose that I've a base page which I want that some of my pages inherits the layout from

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Azzeddine Daddah
that it is better to use panels or fragments and instead of using setXXX, just initialize everyting in its place according to an internal state. Start with one hard coded layout and then tune it using an internal state, for example. ** Martin 2008/4/28 Azzeddine Daddah [EMAIL PROTECTED

Re: idea: automatic component repo

2008-06-18 Thread Azzeddine Daddah
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Azzeddine Daddah www.hbiloo.com