Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-08 Thread Martin Dietze
On Tue, October 07, 2008, Jeremy Thomerson wrote: Maybe supply some code as an example of what you're doing. I really didn't understand your scenario below. See the code below. I use a button panel which allows me to setup form buttons in different ways within a page class hierarchy, i.e. an

a way to show jfreechart tooltip on the image

2008-10-08 Thread rolandpeng
This is my sample code to to show jfreechart tooltip on the image. The key is to override onComponentTagBody() and use replaceComponentTagBody(). the parameter imageMapId used in ChartUtilities.getImageMap(imageMapId, info); should also markded in html file ,for example

Using static HTML in wicket

2008-10-08 Thread Markus Strickler
Hi- we have a CMS generating a bunch of static html pages. Now I have to add some dynamic content to each of these pages using wicket. The pages have the basic HTML structure, navigation and some text blob, wicket has to add the page title, whatever JavaScript it requires for form

RE: AbstractPageStore memory implementation instead of disk

2008-10-08 Thread Ard Schrijvers
Hello, Again, serialization and writing to filesystem are two completely different things. Are you *really* sure that the writing (which is done in separate thread btw) is really the bottleneck? I have No, I am not really sure. But, I suspect(ed...i am in doubt now :-) ) the writing mainly

AjaxPagingNavigator and IndicatingAjaxLink

2008-10-08 Thread Reinout van Schouwen
Hi all, I tried extending the AjaxPagingNavigator class to provide some feedback while loading the next page using IndicatingAjaxLink. The (not-compiling) code I wrote is below. I couldn't make it work because the protected methods in AjaxPagingNavigator return a Link, as AjaxLink is a sibling of

Re: Call the server from a javascript function

2008-10-08 Thread Adriano dos Santos Fernandes
jWeekend escreveu: Adriano, Create the AbstractAjaxBehaiour you want, call getCallbackUrk() on it and use the returned URL as a parameter to wicketAjaxGet in the JavaScript you're generating. Thanks, Cemal. I'm now able to go further. Adriano

Re: Using static HTML in wicket

2008-10-08 Thread Markus Strickler
Hi Sven, thanks for the reply. What I don't quite get is how I would be able to use the markup from seerat static pages as template for a single wicket page. Thanks again, -markus Zitat von Sven Meier [EMAIL PROTECTED]: You can use a single Wicket page using the static html of your CMS

Re: AjaxPagingNavigator and IndicatingAjaxLink

2008-10-08 Thread Reinout van Schouwen
Op woensdag 08-10-2008 om 02:56 uur [tijdzone -0700], schreef Michael Sparer: why not just let your IndicatingPagingNavigator implement IAjaxIndicatorAware - then you got your feedback and also have it at one place (only one indicator) instead of multiple indicators as each ajaxlink would have

Problem with upload (works on xp, error on linux)

2008-10-08 Thread Herbert Winter
hello list, I am a new user of wicket and try to make a simple fileupload like the example at http://www.wicket-library.com/wicket-examples/upload/ The examples work when I deploy to tomcat on win xp. However when I use the war on linux ( e.g. Apache Tomcat/6.0.18 | suns java 1.6.0_10-rc2-b32 |

Re: Using static HTML in wicket

2008-10-08 Thread Sven Meier
You can use a single Wicket page using the static html of your CMS as its markup. Sprinkle your templates or content (depending who's in charge) with wicket ids: div wicket:id=shoppingCart/div With custom component resolving you can then inject the dynamic parts, i.e. Wicket panels mainly.

Re: Wicket Community Meetup in South Florida?

2008-10-08 Thread shetc
Well, it's been a week since my original topic was hijacked for a discussion on removing the wicket:id from XML output. Returning to the original point, there has been no response to my idea of organizing a meetup here in South Florida. Therefore, I declare myself to be the Lone Wicketeer of

Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-08 Thread John Krasnay
Hi Martin, Programmatically generating the markup as you've done below is not really the Wicket way, which is probably why you're bumping up against other Wicket design decisions. I've solved similar problems using a RepeatingView as follows: ButtonPanel.html wicket:panel div class=buttons

Re: AjaxPagingNavigator and IndicatingAjaxLink

2008-10-08 Thread Michael Sparer
alright, but that's more CSS fiddling than wicket related have fun tweaking your styles ;-) regards, Michael Reinout van Schouwen-4 wrote: Op woensdag 08-10-2008 om 02:56 uur [tijdzone -0700], schreef Michael Sparer: why not just let your IndicatingPagingNavigator implement

Re: Wicket Community Meetup in South Florida?

2008-10-08 Thread Nino Saturnino Martinez Vazquez Wael
Hehe, I would be happy to show up. I just need a sponsor for the flight over the ocean hotel :) If I dont find anyone, i'll just shoot out some more wicket games:) shetc wrote: Well, it's been a week since my original topic was hijacked for a discussion on removing the wicket:id from XML

Warn that data on page modified mechanism

2008-10-08 Thread Arie Fishler
Hi, I would like to consult on implementing a generic mechanism for checking whether some data on a page modified before leaving that page. The use case is: - Page has some form fields or other controls - User has entered some data to the form - Before submitting the form user clicked on a link

Re: AjaxPagingNavigator and IndicatingAjaxLink

2008-10-08 Thread Michael Sparer
why not just let your IndicatingPagingNavigator implement IAjaxIndicatorAware - then you got your feedback and also have it at one place (only one indicator) instead of multiple indicators as each ajaxlink would have its own ... e.g. public class IndicatingAjaxPagingNavigator extends

Ajax upload - expert help needed

2008-10-08 Thread lodewijkdans
Hi, I am pretty new to Wicket, yet not new to development and the web (at all). I want to hear your advise on the following functionality which I intend to build using Wicket: I want to make two components that work together through ajax. 1) The first is an upload component that instead of

Validation on Custom Panel

2008-10-08 Thread Srikanth.NT
Hi I have built a new custom panel(custompanel.java) with 12 text fields. It has a configuration file called custompanel.properties which has something like component1.required=true component2.required=true component1.maxlength=200 These properties can be overridden by page.properties. When I

Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?

2008-10-08 Thread fstof
Hey man, I'm looking for something similar, have you got it working? AshleyAbraham wrote: Just to clarify: I have created three classes, the parent class is the AjaxWizardButton similar to Wicket's WizardButton and the two child classes are AjaxCancelButton and AjaxFinishButton similar to

Re: Serializing model. DetachedModel or not

2008-10-08 Thread jensiator
There it was!!! If found it with your hint. I was holding in to the reference. Thank you. Jens Alenius igor.vaynberg wrote: if wicket tries to serialize the object you are trying to hold on to a reference of it outside the ldm somewhere in your code. eg object o=ldm.getobject();

Re: Serializing model. DetachedModel or not

2008-10-08 Thread Scott Swank
And don't forget final scopes: final Thing thing = component.getModelObject(); add(new Label(this, that) { @Override public boolean isVisible() { return thing.isGreen(); } }); For the object thing to be accessible in the anonymous inner class it had to be declared final. Because the

Re: Using static HTML in wicket

2008-10-08 Thread Sven Meier
Hi Markus, mount a single page: mount(new MixedParamUrlCodingStrategy(content, ContentPage.class, new String[] {contentId})); In the constructor you can get hold of the requested content's id: public ContentPage(PageParameters params){ this.contentId = params.get(contentId); }

Set link target within LinkTree nodes

2008-10-08 Thread Seven Corners
I'm generating a LinkTree that will sit in the left frame of a frameset. I want the leaf nodes to contain links to pages that will open in the right frame of the frameset. The LinkTree has a few link types but there is no built-in support for setting the link's target. Eelco has a nice example

comcept of hirearchy

2008-10-08 Thread miro
// My page public Index() { super(); add(getContent()); } protected Component getContent(){ RicolaGroupbox ricolaGroupbox= new RicolaGroupbox(csrHome,ESP); ricolaGroupbox.add(new

Re: comcept of hirearchy

2008-10-08 Thread Arie Fishler
Seems to me like the hierarchy is ok. What's missing from the code you provided is the id of the component you defined as InboxMenuLabel(). Are you sure it was named inboxMenu? Arie public InboxMenuContainer() { super(inbox);

Re: Create Contact Us Page

2008-10-08 Thread newbieabc
Thanks! Worked great :-) Timo Rantalaiho wrote: On Tue, 07 Oct 2008, newbieabc wrote: I have another related question... Often it's a good idea to start a new thread with a descriptive subject for new questions. I want to change one of the Contact page form component's visibility

Re: comcept of hirearchy

2008-10-08 Thread Arie Fishler
Label should be in a span tag...not label? On Wed, Oct 8, 2008 at 7:55 PM, miro [EMAIL PROTECTED] wrote: yes.. Here is the code private class InboxMenuLabel extends Label { public InboxMenuLabel() { super(inboxMenu,InboxMenu);

Re: comcept of hirearchy

2008-10-08 Thread James Carman
What does CSRRicolaContainer extend? On Wed, Oct 8, 2008 at 1:34 PM, miro [EMAIL PROTECTED] wrote: // My page public Index() { super(); add(getContent()); } protected Component getContent(){ RicolaGroupbox

Re: right click popup context menu

2008-10-08 Thread mkamneng
Hello Doug, I'm still looking forward to hear from you. I'm new in wicket and I have at the moment time to investigate why a lot of wicket-contrib-yui components can't be added in wicket components (wicket version 13 and 1.4). I will be very happy if you can give me some advise where to start

Re: comcept of hirearchy

2008-10-08 Thread James Carman
On Wed, Oct 8, 2008 at 2:06 PM, Arie Fishler [EMAIL PROTECTED] wrote: Label should be in a span tag...not label? Why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: comcept of hirearchy

2008-10-08 Thread miro
It extends WebMarkupContainer . jwcarman wrote: What does CSRRicolaContainer extend? On Wed, Oct 8, 2008 at 1:34 PM, miro [EMAIL PROTECTED] wrote: // My page public Index() { super(); add(getContent()); } protected Component

Re: comcept of hirearchy

2008-10-08 Thread James Carman
Why are you calling super.add() as opposed to merely add()? On Wed, Oct 8, 2008 at 3:06 PM, miro [EMAIL PROTECTED] wrote: It extends WebMarkupContainer . jwcarman wrote: What does CSRRicolaContainer extend? On Wed, Oct 8, 2008 at 1:34 PM, miro [EMAIL PROTECTED] wrote: // My page

Re: comcept of hirearchy

2008-10-08 Thread miro
Altogether my problem is html for nested components I have a page to this added component A (container) and to this added component B (Link) page A B now how would html look for this div wicket id=A UL

Re: comcept of hirearchy

2008-10-08 Thread miro
just to make sure iam adding to container (CSRRicolaContainer ) and not to the page jwcarman wrote: Why are you calling super.add() as opposed to merely add()? On Wed, Oct 8, 2008 at 3:06 PM, miro [EMAIL PROTECTED] wrote: It extends WebMarkupContainer . jwcarman wrote: What does

Re: initial GMap2 bounds question

2008-10-08 Thread Sven Meier
Regretfully there's no direct API call in GMap2 supporting your case. Here's a description how to do it with Javascript only: http://econym.googlepages.com/basic14.htm We could make up a function that hides the details: GMap2#fitMarkers(ListMarker) Martin, what do you think? Sven Doug

Re: initial GMap2 bounds question

2008-10-08 Thread Doug Leeper
I achieved what I was looking for. Here is what I did: map.add(new HeaderContributor(new IHeaderContributor() { private static final long serialVersionUID = 1L; public void renderHead(IHeaderResponse response)

Re: initial GMap2 bounds question

2008-10-08 Thread Martin Funk
Sven Meier wrote: Regretfully there's no direct API call in GMap2 supporting your case. Here's a description how to do it with Javascript only: http://econym.googlepages.com/basic14.htm We could make up a function that hides the details: GMap2#fitMarkers(ListMarker) Martin, what do you

nested components

2008-10-08 Thread miro
My problem is html for nested components I have a page to this added component A (container) and to this added component B (label) page A B now how would html look for this div wicket id=A label wicket:id=B/label

RE: nested components

2008-10-08 Thread Serkan Camurcuoglu
according to your previous mail, in the markup you sent, there's a hierarchy csrHome - inbox - inboxMenu but in the exception you get, it says that it cannot find inboxMenu below path 0:csrHome.RicolaGroupbox which suggests that you actually have a component with id RicolaGroupbox in the

RE: nested components

2008-10-08 Thread Serkan Camurcuoglu
moreover, if the markup that you sent is a real copy/paste, then in this line div wicket id=inbox the colon in the middle of wicket:id seems to be missing.. -Original Message- From: Serkan Camurcuoglu [mailto:[EMAIL PROTECTED] Sent: Thu 10/9/2008 12:43 AM To: users@wicket.apache.org

Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?

2008-10-08 Thread AshleyAbraham
Yes, I did make it to work by creating those two Ajax buttons and putting them in a class which extends WizardButtonBar class and overrided the newButtonBar() in the Wizard class to pass that. Its been a while since I did it, so I dont have the exact details on the tip of my finger. Hope it

Re: comcept of hirearchy

2008-10-08 Thread Timo Rantalaiho
On Wed, 08 Oct 2008, miro wrote: div wicket:id=csrHome div wicket id=inbox ^ h3label wicket:id=inboxMenu/label/h3 You're missing a colon (:) there in the wicket:id declaration of inobx. That's why

Re: comcept of hirearchy

2008-10-08 Thread Timo Rantalaiho
On Wed, 08 Oct 2008, miro wrote: just to make sure iam adding to container (CSRRicolaContainer ) and not to the page jwcarman wrote: Why are you calling super.add() as opposed to merely add()? It doesn't work like this, super. doesn't change anything there. To add to the page you