about linkTree

2010-07-26 Thread 蔡茂昌
hi,i have a problem , is there any way for changing the icon of the linkTree, is there any complete sample, thank you .

Re: Wicket archetype for hibernate 3.5 and spring 3

2010-07-26 Thread danisevsky
It seems nice. Could you please give me advice how to use it? I am not fimiliar with mavem. Thanks. 2010/7/25 Jochen Mader pflanzenmoer...@gmail.com I created a Maven archetype for wicket application containing the following things: - Everything is configured using Spring 3 - Hibernate 3.5

IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread Joseph Pachod
hello I wanted to do an Component.IVisitor for all children components implementing IFormModelUpdateListener. However, IVisitor requires something extending Component, which IFormModelUpdateListener can't do (it's an interface). As such, I had to dump all generics info and do instanceof to

Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread avrahamr
You can still visit all components and manually check if it is an instanceof IFormModelUpdateListener On Mon, Jul 26, 2010 at 12:10 PM, Joseph Pachod [via Apache Wicket] ml-node+2302070-350349768-293...@n4.nabble.comml-node%2b2302070-350349768-293...@n4.nabble.com wrote: hello I wanted to

Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread Johan Compagner
you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan On Mon, Jul 26, 2010 at 11:09, Joseph Pachod j...@thomas-daily.de wrote: hello I wanted to do

Re: Size of ListView

2010-07-26 Thread Vincent Lussenburg
Hi Igor, Excellent suggestion! It took some experimenting, but we managed to get it to work. add(new PropertyListViewMonthAmount(month, new XListViewModel(x)) { { setReuseItems(false); setVersioned(false); } @Override

Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread Joseph Pachod
avrahamr wrote: You can still visit all components and manually check if it is an instanceof IFormModelUpdateListener that's what I did , dumping generics info on the way - To unsubscribe, e-mail:

Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread Joseph Pachod
Johan Compagner wrote: you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan I don't get it, sorry. How could I cast safely there ?

Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread Joseph Pachod
Joseph Pachod wrote: Johan Compagner wrote: you can use: public final S extends Component Object visitChildren(final Class? clazz, final IVisitorS visitor) then you have to cast yes, but you can cast safely. johan I don't get it, sorry. How could I cast safely there ?

Wicket Candy?

2010-07-26 Thread Martin Makundi
Hi! Has someone implemented Candy on Wicket as an extension to tabbed panels? http://vimeo.com/13560319 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: TextFieldInteger

2010-07-26 Thread T Ames
I just whipped up a test, this is working - at least on 1.4.1         FormVoid form = new FormVoid(form);         add(form);         final TextFieldInteger textInt = new TextFieldInteger(textInt, new ModelInteger());         textInt.setType(Integer.class);         form.add(textInt); I did not

Re: TextFieldInteger

2010-07-26 Thread T Ames
If I take out the setType method, still no cast error, but the Integer checking is not done - feedback panel does not receive an error. On Mon, Jul 26, 2010 at 9:23 AM, T Ames tamesw...@gmail.com wrote: I just whipped up a test, this is working - at least on 1.4.1         FormVoid form = new

How to call javascript from panel constructor

2010-07-26 Thread zoran
Hi, I have a panel that sets some properties at its constructor. Then I want to use one of this properties to set a javascript slider, so I need to call javascript code like $('#slider').slider('option','value',+expLevVal+); I know how I can do this when I have some event, like link or button

Re: Forums tools ready-to-use?

2010-07-26 Thread Josh Kamau
Please check www.xaloon.org. This project contains some nice ready to use components for wicket including: - blog; - comments panel; - sports component; - plugin administration console; - registration and activation panel; Regards. Josh On Sun, Jul 25, 2010 at 7:30 PM, Paolo

Re: How to call javascript from panel constructor

2010-07-26 Thread Martin Grigorov
class MyPanel implements IHeaderContributor { // ctor public void renderHead(IHeaderResponse response) { response.renderJavascript( mySliderJavascript ); } } On Mon, Jul 26, 2010 at 3:39 PM, zoran jeremy...@gmail.com wrote: Hi, I have a panel that sets some properties at

Re: How to call javascript from panel constructor

2010-07-26 Thread Michael O'Cleirigh
Hello, You need to use a behaviour in your panel to emit the javascript. panel.setOutputMarkupId (true); panel.setOutputMarkupIdPlaceholder(true); panel.add(new AbstractBehaviour () { public void renderHead(IHeaderResponse response) { // markupid is determined for this

Re: How to call javascript from panel constructor

2010-07-26 Thread zoran
Thank you Mike, This works. Regards, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302432.html Sent from the Wicket - User mailing list archive at Nabble.com.

don't find the html resource for a component

2010-07-26 Thread Fernando Wermus
Hi all, I am rendering emails with wicket in two different ways: 1. Into an onclick's link. 2. Calling a back end that is implemented with Blazeds (Flex). In this case, when the page is rendering, it doesn't find the html resource associated to the component within cache. I got (cache)

Re: don't find the html resource for a component

2010-07-26 Thread Fernando Wermus
I wanna add that first case is working, however second not. On Mon, Jul 26, 2010 at 11:49 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all, I am rendering emails with wicket in two different ways: 1. Into an onclick's link. 2. Calling a back end that is implemented with

Re: Size of ListView

2010-07-26 Thread Igor Vaynberg
no, this will not work for the larger usecase. like i mentioned before, if you place links or textfields or anything but labels into listitems they will not work. -igor On Mon, Jul 26, 2010 at 3:41 AM, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: Hi Igor, Excellent suggestion! It

Re: Size of ListView

2010-07-26 Thread Igor Vaynberg
no, this will not work for the larger usecase. like i mentioned before, if you place links or textfields or anything but labels into listitems they will not work. -igor On Mon, Jul 26, 2010 at 3:41 AM, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: Hi Igor, Excellent suggestion! It

Re: Passing raw value to html

2010-07-26 Thread Igor Vaynberg
i think this was discussed already (for this exact usecase even), search the archives. -igor On Mon, Jul 26, 2010 at 8:42 AM, Sam Barrow s...@sambarrow.com wrote: Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
I'll look it up. I always search before asking, I just wasn't able to find this since it's kind of a difficult set of keywords to search google for. On Mon, 2010-07-26 at 08:45 -0700, Igor Vaynberg wrote: i think this was discussed already (for this exact usecase even), search the archives.

Re: Passing raw value to html

2010-07-26 Thread Igor Vaynberg
first result http://wicket.markmail.org/search/?q=analytics%20javascript -igor On Mon, Jul 26, 2010 at 8:49 AM, Sam Barrow s...@sambarrow.com wrote: I'll look it up. I always search before asking, I just wasn't able to find this since it's kind of a difficult set of keywords to search google

Re: Passing raw value to html

2010-07-26 Thread Arjun Dhar
My 2 cents : I think the problem is more of inserting javaScript into markup as key words perhaps ?! :) http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration : Dont forget to check the video out if you have the time

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
I'm not trying to insert javascript, I'm just trying to pass a few characters into a template. I just happen to be using it in a situation where javascript is involved. On Mon, 2010-07-26 at 09:24 -0700, Arjun Dhar wrote: My 2 cents : I think the problem is more of inserting javaScript into

Re: Passing raw value to html

2010-07-26 Thread Arjun Dhar
Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth, heres an example: ... HashMap variables = new HashMap(); variables.put(alert, helloworld); TextTemplate textTemplate=new TextTemplate();

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
Yes that's exactly what I was looking for, I found the example in the mailing list. Thanks! On Mon, 2010-07-26 at 09:30 -0700, Arjun Dhar wrote: Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth,

Re: Size of ListView

2010-07-26 Thread Vincent Lussenburg
I suppose so.. Well, at least it's a loophole for big chucks of readonly data. Thanks for your replies! Groet, Vincent On Jul 26, 2010, at 17:22, Igor Vaynberg igor.vaynb...@gmail.com wrote: no, this will not work for the larger usecase. like i mentioned before, if you place links or

Re: Works in Development Mode but not in Production Mode

2010-07-26 Thread Adam Bender
Shortly after we discovered this issue we made the same modification to our application. While not absolutely fool proof (and what is anyway?) it does shorten the loop on discovering these issues. However, I have actually seen this create its own problems when developing with a heavy use of

Re: Passing raw value to html

2010-07-26 Thread MZemeck
Let me know if you find a solution for this... Sam Barrow s...@sambarrow.com 07/26/2010 11:43 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Passing raw value to html Is there a way to pass a raw value to be displayed in a wicket markup file? I'm

Re: Passing raw value to html

2010-07-26 Thread MZemeck
I saw the replies and the markmail link, thanks guys... mzem...@osc.state.ny.us 07/26/2010 01:51 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Passing raw value to html Let me know if you find a solution for this... Sam Barrow

colocating wicket with servlets...

2010-07-26 Thread Erik Brakkee
I would like to colocate a wicket application with a servlet. What I want is for the servlet to have access to the wicket session. Looking at the code I see that Session.get() uses thread-specific storage, so I want the wicket filter to intercept all requests. Next, I want to make sure that

Re: colocating wicket with servlets...

2010-07-26 Thread Erik van Oosten
Hi Erik, Non-bookmarkable links either start with /resources or take the form /?wicket... You could indeed manage that by creating your own RequestCodingStrategy, but having done so a couple of times, I would like to warn you not to tweak too much. In Wicket 1.5 it is probably going to be a

Re: colocating wicket with servlets...

2010-07-26 Thread Igor Vaynberg
see WicketSessionFilter -igor On Mon, Jul 26, 2010 at 11:37 AM, Erik Brakkee erik.brak...@gmail.com wrote: I would like to colocate a wicket application with a servlet. What I want is for the servlet to have access to the wicket session. Looking at the code I see that Session.get() uses

Re: colocating wicket with servlets...

2010-07-26 Thread Erik Brakkee
On Mon, Jul 26, 2010 at 9:15 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: see WicketSessionFilter -igor Indeed, looking at the source code of WicketFilter, it does not seem to set the session for the current thread when one of the ignored paths is used.

Re: Forums tools ready-to-use?

2010-07-26 Thread Vytautas Racelis
Thanks Josh;) Forum support is in feature plans, but it is not currently implemented. -- Regards, Vytautas Racelis --- phone:+370-600-34389 www.xaloon.org www.leenle.com www.allcarindex.com On 07/26/2010 04:46 PM, Josh Kamau wrote: Please check www.xaloon.org.

Expiring pages in form submit and onAfterRender...

2010-07-26 Thread Erik Brakkee
Hi, I am experimenting a bit with page expiry. One solution that works is to remove the page from the pagemap in the submit of a form. However, removing the page from the pagemap in the onAfterRender() of a page does not seem to work. In fact, I see the same page id and version being rendered

RequiresHttps and Apache mod_ssl

2010-07-26 Thread Ed _
Hi, Trying to get some pages of the application to be secured using SSL. But want SSL to be handled by Apache in the production env. Is there a way to Configure Pages to require the https:// url without having to handle ssl in the app. thanks, Ed

Re: Expiring pages in form submit and onAfterRender...

2010-07-26 Thread Erik Brakkee
Made some progress. Now I am removing the page from the page map in the onDetach() and now expiry is really successful. Even so successful that the form submit fails because the page has expired. This is of course logical because the page object is still needed to process the form submit and now I

Error integrating with Hibernate and Spring

2010-07-26 Thread Luther Baker
I'm sure I'm doing something incorrectly. For the most part, I copied the Spring config file from http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ but upon startup, I'm getting the following error. Specifically, I can't find where the listener type [wicketApplication] is

Re: Forums tools ready-to-use?

2010-07-26 Thread Paolo
very good. I could use comments panel to let users to let messages on my web site. Does it need Spring integration? Where is stored comments info: texts,emails,authors? I need a database suppport? I saw also a interesting ReCaptcha plugin. But now I am interesting in ReCaptcha Mailhide (

HttpsRequestCycleProcessor Configuration

2010-07-26 Thread Josh Chappelle
Hi, My problem is not specific to wicket but I'm hoping that someone in the community has fought this battle before and is willing to lend a helping hand. I am using the HttpsRequestCycleProcessor and I only have the @RequireHttps annotation on one page, the registration page. I have apache

[OT] CSS 3 border radius fallback script

2010-07-26 Thread nino martinez wael
Hi I know this is off topic. But has anyone knowledge of a javascript that will detect if the browser has support for css 3 border radius and if it does not, put in borders on appropriate elements? I might be able todo something with together with jquery and liquid canvas if such a script does

Re: [OT] CSS 3 border radius fallback script

2010-07-26 Thread Witold Czaplewski
Hi Nino, take a look at curved-corner: http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser http://code.google.com/p/curved-corner/ cheers, Witold Am Tue, 27 Jul 2010 07:27:36 +0200 schrieb nino martinez wael nino.martinez.w...@gmail.com: Hi I know this is off topic. But