wicket vs Tibco general interface

2009-04-07 Thread Ying
Hi, Anyone compare wicket with Tibco General Interface? Tibco's stuff seems very impressive. Also I found it's very difficult to have a more advanced example for each wicket components.API doc and examples only list the very basic one.(ie: I want a single click behavior inside Palette which I

Re: Spring integration problem

2009-04-07 Thread nino martinez wael
Instead of using a test stub, i'd use jmock or some similar mock framework and get a little more control :) 2009/4/6 Olivier Michallat omichal...@gmail.com: The problem is that your unit tests run out of the web container, you can't rely on a servlet context listener to load the Spring context

Re: Spring integration problem

2009-04-07 Thread nino martinez wael
code will then look like this: mockery.checking(new Expectations() { { oneOf(eventRepository).update(with(any(Event.class))); } });

authorizing a tab

2009-04-07 Thread Linda van der Pal
I'm trying to disable a tab in a TabbedPanel based on authorization. I'm using wicket-auth-roles, and it works in other places, for example for buttons. Could anybody tell me what I'm doing wrong? The tab just keeps on showing, and if you click on it you go to a page that states that you don't

retrieve value at mouse click in palette

2009-04-07 Thread Ying
Hi,   I try to retrieve the value of  highlighted choice in palette by single click. Is there any sample code to do that anywhere? I cannot find anything from google or wicket book. Ying - To unsubscribe, e-mail:

override isEnabed of FinishButton

2009-04-07 Thread Martin Tilma
Hello, I have a Wizard with a FinishButton. I want the button always be enabled. Because the method isEnabled is final I cant override it. I think coping the button and change the isEnabled method to always return true is a bit ugly. What is de best way to do it? Regards, Martin --

setting TreeState in Wicket session?

2009-04-07 Thread 彭光裕
I have a based web page which contains a wicket Tree, and need to keep the treestate for each extend webpages. So I override the newTreeState( ) as below: Tree cMenuTree = new Tree(menuTree, createTreeModel()) { @Override protected ITreeState newTreeState() {

Is localizing parts of the service layer (which is using Spring 2.5) a good idea?

2009-04-07 Thread Kent Larsson
Hi, This is more of a general design question and I would really appreciate some input. Do you localize the service layer as well as the Wicket presentation layer? I have a specific use case. When a user register a new account the service layer sends an e-mail message with an activation link.

Re: authorizing a tab

2009-04-07 Thread Marieke Vandamme
I think I had the same problem a while ago. Look at the solution in discussion underneath: http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-td13949910.html#a13965618 Linda van der Pal wrote: I'm trying to disable a tab in a TabbedPanel based on authorization. I'm using

stateless AjaxFallbackLink

2009-04-07 Thread Sergey Didenko
Hi, Is it correct that there is no stateless AjaxFallbackLink alternative? Which can pass through parameters? If so I would probably implement one if it's not very hard. Could you give good advises on this? Directions, approaches and so on. Right now I think first I have to study

Integrating Wicket + Google Guice + Warp-persistence

2009-04-07 Thread Eduardo Nunes
Hi there, After a long period of reading, now I'm starting to code my application using these frameworks: Wicket, Google Guice and Warp-persistence. I facet a conceptual problem (IMHO) about how initialize google guice. I read a lot of source codes on the internet and most of them, if not all,

Radio onBeforeRender funny business?

2009-04-07 Thread Martin Makundi
Hi! Radio.onBeforeRender: @Override protected void onBeforeRender() { // prefix markup id of this radio with its group's id // this will make it easier to identify all radios that belong to a specific group

How to use Wicket in cluster to avoid memory problem?

2009-04-07 Thread Wenke Ji
Hi I am new to Wicket , in using wicket , the system often tells me the memory is not enough. Is there any one kindly tell me how to use wicket in cluster to avoid it or any document/example for it? Thanks your time so much! Best Regards Ji

Re: AppleTV!

2009-04-07 Thread Matthew Hanlon
Very cool! I am an AppleTV hobbyist myself. Do you have a blog post or something regarding the steps you took to do this? I'd be curious to check it out! -Matt. On Mon, Apr 6, 2009 at 23:55, Igor Vaynberg igor.vaynb...@gmail.com wrote: thats pretty freaking cool :) -igor On Mon, Apr 6,

EmptyAjaxRequestTarget invokes failurescript when link is pressed on page

2009-04-07 Thread Mikko Pukki
Hi, We just noticed that if user is on a page and ajax request is executing, pressing a link can cause AbstractDefaultAjaxBehavior's failurescript to be executed on the browser. We noticed that this happens at least in cases where pressing a link forwards user to other page by setting a

Re: How to use Wicket in cluster to avoid memory problem?

2009-04-07 Thread Johan Compagner
the system which is that? On Tue, Apr 7, 2009 at 15:54, Wenke Ji jiwe...@gmail.com wrote: Hi I am new to Wicket , in using wicket , the system often tells me the memory is not enough. Is there any one kindly tell me how to use wicket in cluster to avoid it or any document/example for it?

Re: How to use Wicket in cluster to avoid memory problem?

2009-04-07 Thread Martijn Dashorst
without telling us what you currently use for your settings, we won't be able to help you. how much memory did you allocate for your server. Does it only run your wicket app, did you use loadabledetachablemodels, did you profile your application to see if there's a leak or if you keep too much

Re: override isEnabed of FinishButton

2009-04-07 Thread jcgarciam
I guess, you can try to override protected void onBeforeRender() and make something like: protected void onBeforeRender(){ this.setEnabled(true); super.onBeforeRender(); } Martin Tilma wrote: Hello, I have a Wizard with a FinishButton. I want the button always be enabled. Because

Re: DatePicker, TextField and AjaxEventBehavior

2009-04-07 Thread Caisi
Hi I am having the same problem as you had. I've changed DateField to DateTextField but I have still the original value. Please help. Caisi Michal Hybler wrote: If someone have same problem I have solved that by using DateTextField instead of DateField from wicket extension. M. Michal

Re: AppleTV!

2009-04-07 Thread John Armstrong
I just added my first post on this a few nights ago and I will be filling in the blanks soon. There is a prototype roadmap I am moving through that will ensure I have all the pieces to justify spending time designing the actual app. http://www.siberian.org/ John- On Tue, Apr 7, 2009 at 6:30 AM,

Validating DropDownChoice

2009-04-07 Thread Chris
I have a DropDownChoice defined as follows. // Model for populating Condition Dropdown IModel conditions = new LoadableDetachableModel() { public Object load() { ListConditions c = new ArrayList(); try { c = dao.getConditions(); } catch (DaoException e) { } return c; } }; //

AW: Validating DropDownChoice

2009-04-07 Thread Stefan Lindner
Is it a normal form without AjaxSubmitButton? -Ursprüngliche Nachricht- Von: Chris [mailto:ch...@carlsoncentral.com] Gesendet: Dienstag, 7. April 2009 16:53 An: users@wicket.apache.org Betreff: Validating DropDownChoice I have a DropDownChoice defined as follows. // Model for

YUI Menu2 Examples Broken?

2009-04-07 Thread James Carman
I tried launching the YUI Menu2 stuff today and it looks like the latest changes have broken the YUI menu support. The menus show up as a normal ul/li list. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: authorizing a tab

2009-04-07 Thread Brill Pappin
You could also use one of the two PageTabPanel components we wrote at wicketskunkworks.org which would allow you to secure the content of a tab using normal page authorization. There is not much in the way of docs at the moment but you can check out both components from:

Re: Found this in logs: Unable to redirect to: ?wicket:interface=:2:1:::,

2009-04-07 Thread Johan Compagner
most of the time if those things happen you have send something yourself into the buffer somehow/somewhere johan On Sun, Apr 5, 2009 at 20:15, Daniel Toffetti dto...@yahoo.com.ar wrote: Hi all, I've found this exception in the catalina logs: 05/04/2009 14:51:17

Re: wicket vs Tibco general interface

2009-04-07 Thread Igor Vaynberg
what do you mean by single click behavior inside the palette? -igor On Mon, Apr 6, 2009 at 9:49 PM, Ying dongy...@gmail.com wrote: Hi,  Anyone compare wicket with Tibco General Interface? Tibco's stuff seems very impressive.  Also I found it's very difficult to have a more advanced example

Re: Employ JQuery Accordion in Wicket

2009-04-07 Thread Rodolfo Hansen
Try out wickext ... http://code.google.com/p/wickext/ On Wed, Apr 1, 2009 at 8:30 AM, HHB hubaghd...@yahoo.ca wrote: Hey, My team lead is insisting on employing JQuery Accordion in our Wicket application. As you know that the Accordion consists of pairs of headers and contents panels. The

Re: Is localizing parts of the service layer (which is using Spring 2.5) a good idea?

2009-04-07 Thread Igor Vaynberg
both wicket and spring allow you to customize how text bundles are loaded. you can create a spring bundle loader that uses your webapplication.properties file or a wicket bundle loader that uses your spring bundle. either way you can then have business tier and web share certain text bundles for

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Igor Vaynberg
that is expected since onbeforerender is called before every render. if (!getmarkupid().startswith(getgroup().getmarkupid()) { setmarkupid(getgroup().getmarkupid()+-+getmarkupid()); } -igor On Tue, Apr 7, 2009 at 6:41 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi!

Re: retrieve value at mouse click in palette

2009-04-07 Thread Igor Vaynberg
why do you think its such a good idea to post the same question more then once? -igor On Tue, Apr 7, 2009 at 4:51 AM, Ying dongy...@gmail.com wrote: Hi,   I try to retrieve the value of  highlighted choice in palette by single click. Is there any sample code to do that anywhere? I cannot

Re: EmptyAjaxRequestTarget invokes failurescript when link is pressed on page

2009-04-07 Thread Matej Knopp
Please open jira issue - or assign the code you posted to existing one. I'll apply it. -Matej On Tue, Apr 7, 2009 at 3:30 PM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, We just noticed that if user is on a page and ajax request is executing, pressing a link can cause

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Igor Vaynberg
ah, thought you posted a snippet from your code. fixed. -igor On Tue, Apr 7, 2009 at 10:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that is expected since onbeforerender is called before every render. if (!getmarkupid().startswith(getgroup().getmarkupid()) {  

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Martin Makundi
ah, thought you posted a snippet from your code. No, wazn'tme. fixed. It looks like a hack. Wouldn't it be better fixed by overriding public String getMarkupId() ? ** Martin On Tue, Apr 7, 2009 at 10:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that is expected since

Re: retrieve value at mouse click in palette

2009-04-07 Thread Sean W
Ying, is an HTML color picker perhaps what you are looking for? Try http://cpicker.com/, I found it to be a good one. Ying-9 wrote: Hi,   I try to retrieve the value of  highlighted choice in palette by single click. Is there any sample code to do that anywhere? I cannot find anything

Re: Integrating Wicket + Google Guice + Warp-persistence

2009-04-07 Thread Eduardo Nunes
No comments? On Tue, Apr 7, 2009 at 10:05 AM, Eduardo Nunes esnu...@gmail.com wrote: Hi there,  After a long period of reading, now I'm starting to code my application using these frameworks: Wicket, Google Guice and Warp-persistence. I facet a conceptual problem (IMHO) about how initialize

Re: wicket vs Tibco general interface

2009-04-07 Thread yxd0018
I think the thread subject indicated my question. The palette question is just an example I encountered when trying to do something with wicket. I have a separate question just for palette. Appreciate any input regarding comparison with Tibco General interface. igor.vaynberg wrote: what do

Re: retrieve value at mouse click in palette

2009-04-07 Thread Igor Vaynberg
add(new palette(.) { protected component newchoicescomponent() { component choices=super.newchoicescomponent(); choices.add(new ajaxeventbehavior(click) { protected void onevent(ajaxrequettarget t) { // do whatever you need }});}}); -igor On Tue, Apr 7,

Re: AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Igor Vaynberg
new link(edit) { onclick() { setresponsepage(new editpage(getpage().getpagereference(), getmodel())); } } class editpage { public editpage(pagereference ref, imodel model) { setresponsepage(ref.getpage()); } } -igor On Tue, Apr 7, 2009 at 12:12 PM, Roman Zechner

Re: AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Roman Zechner
thanks!! Igor Vaynberg wrote: new link(edit) { onclick() { setresponsepage(new editpage(getpage().getpagereference(), getmodel())); } } class editpage { public editpage(pagereference ref, imodel model) { setresponsepage(ref.getpage()); } } -igor On Tue, Apr 7,

Re: Integrating Wicket + Google Guice + Warp-persistence

2009-04-07 Thread Igor Vaynberg
first! -igor On Tue, Apr 7, 2009 at 10:46 AM, Eduardo Nunes esnu...@gmail.com wrote: No comments? On Tue, Apr 7, 2009 at 10:05 AM, Eduardo Nunes esnu...@gmail.com wrote: Hi there,  After a long period of reading, now I'm starting to code my application using these frameworks: Wicket,

AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Roman Zechner
how can i make sure to get back to the same page of a AjaxFallbackDefaultDataTable that i came from after a redirect? e.g.: 1. i am on page 3 of a table of persons (listpage). 2. i click on a row to edit a person (detailpage). 3. after submitting changes, i redirect to the listpage again, but i

Expand/collaspe panel component?

2009-04-07 Thread Phillip Rhodes
I know that I can write one, but I was looking for a panel that can can expand/collapse if a plus/minus sign is clicked. I will appreciate it if you could point out one. Thanks. - To unsubscribe, e-mail:

Re: retrieve value at mouse click in palette

2009-04-07 Thread yxd0018
Don't know whether my previous email was successful or not. Apology if this is duplicate. I want to do same thing as http://www.nabble.com/How-can-I-get-hold-of-a-palette's-selected-item--td2001571 4.html Basically want to use palette and capture value user clicks in the choice list, which

ModalWindow: What's With the Delay?

2009-04-07 Thread James Carman
Does anyone know what a ModalWindow does after it shows itself? I've got a ModalWindow that shows just fine, but then it takes forever to become responsive (on a page that takes a while to render due to a large-ish table on it). The way I know when it's going to become responsive is when I'm

Re: Wicket and (or) restlet

2009-04-07 Thread Wilhelmsen Tor Iver
Jonathan, can you elaborate? Why do you think jersey is better? Have you any experience of integrating it with wicket? We use Jersey for REST here, mostly because it is Sun's reference implementation of JAX-RS (and thus will most likely be updated fastest). As for the options: * Restlet:

WICKET 2178

2009-04-07 Thread steven.katz
Hi, I submitted this bug back in March and have not seen any indication that it has been noticed. I was wondering if there is something else I need to do. This issue is preventing us from migrating to 1.3.5 which we would like to do to get the fix for WICKET-1679. Thanks, Steve Katz

Re: retrieve value at mouse click in palette

2009-04-07 Thread yxd0018
Also, how could I disable default double click action in palette? Thanks for your code. Appreciate a little more help. How do I get the highlighted object from palette? I have this ListScenarioDefinition choiceList = getAllScenarios(); ListScenarioDefinition selectedChoice =

Wicket Noob: Long cannot be cast to java.lang.String

2009-04-07 Thread David Brown
Hello Wicket dev, gurus and mortals, I was successfully using Wicket to build the UI for my new web-app gig. I have studied the javadoc: org.apache.wicket.markup.html.form, org.apache.wicket.MarkupContainer and others until bleary-eyed. The web-page I am using will display correctly the values

Re: retrieve value at mouse click in palette

2009-04-07 Thread Igor Vaynberg
with a bit of javascript: this.options[this.selectedIndex] which you then append to the generated url. -igor On Tue, Apr 7, 2009 at 2:55 PM, yxd0018 ying_d...@ml.com wrote: Thanks for your code. Appreciate a little more help. How do I get the highlighted object from palette? I have this

Re: retrieve value at mouse click in palette

2009-04-07 Thread Igor Vaynberg
component choices=super.newchoicescomponent() { oncomponenttag(tag) { super.oncomponenttag(tag); tag.getattributes().remove(ondblclick); } } -igor On Tue, Apr 7, 2009 at 3:10 PM, yxd0018 ying_d...@ml.com wrote: Also, how could I disable default double click action in palette?

Re: Wicket Noob: Long cannot be cast to java.lang.String

2009-04-07 Thread Igor Vaynberg
textfield.settype(Long.class) -igor On Tue, Apr 7, 2009 at 4:15 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello Wicket dev, gurus and mortals, I was successfully using Wicket to build the UI for my new web-app gig. I have studied the javadoc: org.apache.wicket.markup.html.form,

Re: Wicket Noob: Long cannot be cast to java.lang.String

2009-04-07 Thread Johan Compagner
You seem to have a String validator on a number field. What do you want to test a range? Or max value of that long? Use a different validor On 08/04/2009, David Brown dbr...@sexingtechnologies.com wrote: Hello Wicket dev, gurus and mortals, I was successfully using Wicket to build the UI for my

id attribute of Component Tag in renderHead?

2009-04-07 Thread Craig Tataryn
Within a component's renderHead method is it possible to get the value of the id attribute for the component tag? For instance, I have: div wicket:id=multi id=boo/div And within renderHead if I use getMarkupId() I get multi1 back, if I use getMarkupId(false) I get null. The JavaDoc for

Re: retrieve value at mouse click in palette

2009-04-07 Thread yxd0018
I have no idea about JS, where is the generated url? Could U post some sample code pls? Appreciate very much. igor.vaynberg wrote: with a bit of javascript: this.options[this.selectedIndex] which you then append to the generated url. -igor On Tue, Apr 7, 2009 at 2:55 PM, yxd0018

Re: id attribute of Component Tag in renderHead?

2009-04-07 Thread Craig Tataryn
FYI, the only way I can seem to get the id value within renderHead is to use Component's getMarkupAttributes(), but the JavaDoc tells me not to use this method as it's supposed to be used by Wicket internally only. And they use capital letters too when telling me this. What to do, what to