Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Mead
Hello lars vonk, yes, I did. Other component is ok, just Panel component cause some NullException. did you access SpringContext in Panel, and its that OK? Thanks for your help. Best regards, === At 2008-03-07, 16:22:58 you wrote: === did you inject the CmsFacade in you

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
Hi Igor, it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... Yes, but shouldn't the visibility be reevaluated anyway after the link is clicked? The clicking of the link, button, etc. usually changes the state of

Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
Could you post the code of the panel and the stacktrace of the nullpointer? On Fri, Mar 7, 2008 at 8:55 AM, Mead [EMAIL PROTECTED] wrote: well, a Panel Component could not get spring context beans, it got java.lang.NullPointerException, but a WebPage Component is ok. I use

RE: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Kai Mütz
[EMAIL PROTECTED] wrote: Hello lars vonk, yes, I did. Other component is ok, just Panel component cause some NullException. did you access SpringContext in Panel, and its that OK? Thanks for your help. I do and it works. But I use the Annotation-based approach:

Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Mead
Hello lars vonk, following is a segment of web.xml context-param param-nameapplicationBean/param-name param-valuewicketApplication/param-value /context-param context-param param-namecontextConfigLocation/param-name

Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
Same here I use the annotation based approach and no problems there. It should work in your case as well. Are you sure the nullpointer is because the CmsFacade is null? Or is the nullpoiner in the getSomeBS() method? On Fri, Mar 7, 2008 at 9:40 AM, Kai Mütz [EMAIL PROTECTED] wrote: [EMAIL

Re: ListView#isVisible dilemma

2008-03-07 Thread Edvin Syse
Maeder Thomas skrev: what he should do is follow the delete call with a listview.detach() call Probably just being thick here, but how does calling listview.detach() hide the listview? The point is not to hide the listview, but to refresh the content. I think Igor meant model.detach(),

Re: Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Mead
Hello lars vonk, I find I have two WebApplication: aWebApplication, bWebApplication and aWebApplication inject the spring context(in the web.xml), and b havenot inject. but bWebApplication extends aWebApplication{} in bWebApplication I call the method following: aWebApplication app =

Re: Re: Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Mead
Hello All, If I config the two WebApplication like downstair, It only direct to one Application, and another WebApplication couldn't be accessed. servlet servlet-nameWicketApplication/servlet-name servlet-class

Re: Markup Rendering issues

2008-03-07 Thread Jörn Zaefferer
On Wed, Mar 5, 2008 at 5:01 PM, Erik van Oosten [EMAIL PROTECTED] wrote: Hi Jörn, -- Ids This one of the exceptions in just taking existing HTML. Our designers also use jquery and solved the problem by using classes. Something like: class=idCommentForm. For jquery it doesn't matter much,

Re: Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
I have no experience with two WicketApplications. I am not sure if this is a good idea. But besides that: I think you need to tell the bApplication it should use the org.apache.wicket.spring.SpringWebApplicationFactory, the same way you did with the WicketApplication servlet. Since the

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
But wasn't hiding the listview the original point of the question? Thomas -Original Message- From: Edvin Syse [mailto:[EMAIL PROTECTED] Sent: Freitag, 7. März 2008 10:15 To: users@wicket.apache.org Subject: Re: ListView#isVisible dilemma Maeder Thomas skrev: what he should do

Wickettester assertPageLink does not work for extended PageLink

2008-03-07 Thread Herman Suijs
Hi everyone, I'm using an extended PageLink which overrides the isVisible(). Now I want to test it with the wickettester as a PageLink. This gives an unclear error message: 'unexpected'. What happens is that the tester tries to get the IPageLink from the PageLink with reflection, but because

How to mount a form?

2008-03-07 Thread Jörn Zaefferer
Hi, I'm trying to mount a form, eg. a login form to /login/, resulting in something like form action=/login//. There are a lot of classes related to mounting, though everything I found so far refers to pages. Just mounting a Form subclass doesn't yield anything at all. Thanks for any hints Jörn

nljug wicket presentation

2008-03-07 Thread Maurice Marrink
I just heard about a new Wicket presentation that will be held at the dutch java user group. Presentation: http://www.nljug.org/pages/events/content/jspring_2008/sessions/00035/ Program:http://www.nljug.org/pages/events/content/jspring_2008/sessions/?template=showprogram.htmlfs=1 Speaker will be

Re: nljug wicket presentation

2008-03-07 Thread lars vonk
Yes that's me. You're assumptions are right. Lars On Fri, Mar 7, 2008 at 11:45 AM, Maurice Marrink [EMAIL PROTECTED] wrote: I just heard about a new Wicket presentation that will be held at the dutch java user group. Presentation:

Re: Feedback on proposed Groovy DSL syntax for Wicket

2008-03-07 Thread Dmitry Kandalov
On Thursday 06 March 2008 18:59:59 graemer wrote: So as some of you may know I've been updating the Grails Wicket plug-in. I didn't know but I tried the plug-in a couple of weeks ago (with help of your blog) and it worked fine expect that I couldn't make wicket classes reload. I should look at

RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
How can I get hold of the current request cycle in a subclass of WebResource? In public final class RepositoryFileResource extends WebResource { /* ... */ public IResourceStream getResourceStream() { RequestCycle cycle = RequestCycle.get(); cycle is null. P.S. I am

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
I should add that I want the cycle in order to access the context of my external content repository. I am setting up this context as described in http://markmail.org/message/varxr2or2ba6tr7g . On 07.03.2008, at 12:19, Kaspar Fischer wrote: How can I get hold of the current request cycle in a

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread lars vonk
Hi, What we did is use the spring testing (see http://static.springframework.org/spring/docs/2.5.x/reference/testing.html) capabilities for this: We created an abstract base class that all test cases that need to test wicket pages or components @RunWith(SpringJUnit4ClassRunner.class)

Re: RequestCycle.get() in WebResource

2008-03-07 Thread lars vonk
I guess you can't. Since you are in the Application init method I don't think there is a requestcycle available (request cycles represents the processing of a request). Lars On Fri, Mar 7, 2008 at 12:19 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: How can I get hold of the current request cycle

Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
Hi, We are using the wicket-auth stuff on our site. However rather than having a separate page for login we have a modal window in our page (not a wicket modal window, but a custom one, its basically a wicket panel in the page). Is there any way to make my code for popping up the modal execute

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
On 07.03.2008, at 13:01, lars vonk wrote: I guess you can't. Since you are in the Application init method I don't think there is a requestcycle available (request cycles represents the processing of a request). I am not trying to get the request cycle inside my application's init(), but in

Re: ListView#isVisible dilemma

2008-03-07 Thread Edvin Syse
But wasn't hiding the listview the original point of the question? No, hiding was not the issue. The issue was that because the model was consulted in the isVisible() method of the ListView, the deletion wouldn't be visible before the page was rerendered using the page-constructor (hence,

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
I i know you started the thread, but...from the initial post: He overrides isVisible on the ListView, and does: @Override public boolean isVisible() { return ((List)myModel.getObject()).size() 0; } .. so THE LIST WONT BE VISIBLE if the list is empty. etc... The CAPITALS are mine.

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
yes there is not request cycle when doing resources why do you need it? johan On Fri, Mar 7, 2008 at 1:06 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: On 07.03.2008, at 13:01, lars vonk wrote: I guess you can't. Since you are in the Application init method I don't think there is a

How to enclode WebResource requests in transaction (Was: RequestCycle.get() in WebResource)

2008-03-07 Thread Kaspar Fischer
I have a general question on how to wrap transaction boundaries around requests to a WebResource. As discussed in the thread http://markmail.org/message/tbpg65xd5x26v7xf there are two possible requests: an ordinary web request (with a RequestCycle) and a HEAD request (where no

Junit required for WicketTester?

2008-03-07 Thread reikje
Do you have to have junit.jar in the classpath if you want to use WicketTester? We are using TestNG here and in a regular TestNG test case (where the class is annotated with @Test), I get java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError. -- View this message in context:

Re: How to enclode WebResource requests in transaction (Was: RequestCycle.get() in WebResource)

2008-03-07 Thread Johan Compagner
do you need a transaction around the resource when only the lastModifiedTimeStamp is ask for? is your resource really cachable? johan On Fri, Mar 7, 2008 at 2:15 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: I have a general question on how to wrap transaction boundaries around requests to a

Re: How to mount a form?

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Think out of the box... Mount a page, and pass the parameters to the form, exact same result as mapping the form.. regards Nino Jörn Zaefferer wrote: Hi, I'm trying to mount a form, eg. a login form to /login/, resulting in something like form action=/login//. There are a lot of classes

Re: Problem when MIgrating from 1.2 to 1.3 - Parameters removed from HomePage URL

2008-03-07 Thread Rajiv Jivan
Are we talking about the same thing? Your patch removes the trailing / while in my case without the trailing / the parameters aren't recognized. On Thu, Mar 6, 2008 at 6:11 PM, David Leangen [EMAIL PROTECTED] wrote: I've already filed an issue and submitted a patch for this:

RE: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread Warren
I used AbstractAjaxTimerBehavior as kind of a password protected screen saver and the following code to get a modal window to open when the page is loaded. Body is a WebMarkuContainer representing the body tag. I used the standard Wicket modal window with a Panel. body.add(new

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
head request must be really fast because the happen a lot and you should not be loading so much then So you just have to see if you can create a resourcestream that only has the right timestamp johan On Fri, Mar 7, 2008 at 12:31 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: I should add that

Enabling/disabling components dynamically

2008-03-07 Thread Serzhas
Greetings. Let me explain: suppose we have a page with few components, where page itself can have few different modes - READ-ONLY, EDIT or CREATE mode. When in EDIT/CREATE mode, we want to let user to change components values. In READ-ONLY mode all components should be immutable. What is the best

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
Johan, thanks a lot for your explanations! On 07.03.2008, at 15:47, Johan Compagner wrote: do you need a transaction around the resource when only the lastModifiedTimeStamp is ask for? Yes, unfortunately. is your resource really cachable? I am writing a WebResource that returns files

Re: ListView#isVisible dilemma

2008-03-07 Thread Igor Vaynberg
i did mean listview.detach(), which will also detach the model...seemed simpler to me -igor On Fri, Mar 7, 2008 at 1:15 AM, Edvin Syse [EMAIL PROTECTED] wrote: Maeder Thomas skrev: what he should do is follow the delete call with a listview.detach() call Probably just being

RE: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
Yea, that would work, but its still having to manually intercept every link that might go to a login protected area. I was wondering if there was any way to automatically call the 'modal.show(target);' instead of redirecting to the login page. Warren Bell wrote: I used

Re: ListView#isVisible dilemma

2008-03-07 Thread Igor Vaynberg
On Fri, Mar 7, 2008 at 12:31 AM, Maeder Thomas [EMAIL PROTECTED] wrote: Hi Igor, it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... Yes, but shouldn't the visibility be reevaluated anyway after the link is

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
see for example Image that one can old an Resource directly to make a session relative resource so yes resources can be serialized On Fri, Mar 7, 2008 at 5:31 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: Johan, thanks a lot for your explanations! On 07.03.2008, at 15:47, Johan Compagner wrote:

Re: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread Maurice Marrink
I am not that familiar with the Wicket-auth api but i can tell you that an ajaxpopup is not going to work unless your link is an ajaxlink to. So you would have to build a custom popup that would show on the page using a flag (show/hide) and a regular request which means all your processing logic

Re: Enabling/disabling components dynamically

2008-03-07 Thread Maurice Marrink
2 ideas quicky come to mind: - use a page global flag indicating the current mode. Then have every component on the page overwrite there isEnabled method to use that flag - build 2 panel one for read and one for edit, add either one depending on the mode to the page (using one id) Maurice On

Re: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
Thats a good point, I can just subclass AjaxLink, and make sure that it does a check if the user is logged in before doing the main code, if not then show my login box, then i can continue on to what the link was actually supposed to do. I do agree it would be easier to just redirect to a

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
Thanks, now I get it. Probably just being thick here, but how does calling listview.detach() hide the listview? it doesnt hide the listview, but it detaches the model. the problem was: suppose you have one item in the list 1) check listview visibility - loads the detachable model

Re: Junit required for WicketTester?

2008-03-07 Thread Igor Vaynberg
i think tester uses junit's asserts, so yes. -igor On Fri, Mar 7, 2008 at 6:33 AM, reikje [EMAIL PROTECTED] wrote: Do you have to have junit.jar in the classpath if you want to use WicketTester? We are using TestNG here and in a regular TestNG test case (where the class is annotated with

Re: Sorting a list

2008-03-07 Thread jeredm
I was thinking about the move up/move down solutions, but my list is too large. I have found that with lists more than a few rows tall, the user starts using the fork to eye technique. For now I am just going to implment the sort in the db...so each row gets the row's number in a text box and

Wicketstuff Rome / RSS reader page/panel etc..

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Hi Just wonder if there are such a thing(could'nt find it)? If not would it be okay if I added it? regards. -- -Wicket for love -Jme for fun Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Checkout the blog tutorial, the unit test part http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial Jörn Zaefferer wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is

Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Check this out, it uses springcontext... Im in a very pasty mood today:) http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial Mead wrote: well, a Panel Component could not get spring context beans, it got java.lang.NullPointerException, but a WebPage Component is ok. I use

Re: Sorting a list

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
hmm what about this one? http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo Not sure if its in the scriptaculous integration though.. regards Nino PS if you want a reload to occur, could'nt just add an onchange/onblur behavior where you enter the row number? that way if the

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Eek I might have been wrong.. Sorry.. Nino Saturnino Martinez Vazquez Wael wrote: Checkout the blog tutorial, the unit test part http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial Jörn Zaefferer wrote: Hi, my wicket applicatin uses the SpringComponentInjector and

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Igor Vaynberg
spring wiki page shows how to set it up... -igor On Fri, Mar 7, 2008 at 3:11 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is present. I'd

Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Eeek 2 secs.. try to add this in your constructor of the panel: InjectorHolder.getInjector().inject(this); regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Check this out, it uses springcontext... Im in a very pasty mood today:)

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
No I think its okay:) writing too many mails.. Check it out.. And ask.. Nino Saturnino Martinez Vazquez Wael wrote: Eek I might have been wrong.. Sorry.. Nino Saturnino Martinez Vazquez Wael wrote: Checkout the blog tutorial, the unit test part

Re: right click popup context menu

2008-03-07 Thread Doug Leeper
Take a look at wicket-contrib-yui. There is a context menu (built on top of YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu There are some examples in wicketstuff-yui-examples for the Context Menu (tree and list/data view) Note: these are SVN projects located at

Load file from DB

2008-03-07 Thread Kaspar Fischer
Hi there, I am struggling in implementing a (Web)Resource to load a file (not an image) from an external source. Does anybody have/know of an example that illustrates * where/when to open the connection to the DB and start a transaction, * fetch the file, and * close the transaction? I am

Re: nljug wicket presentation

2008-03-07 Thread lars vonk
Depends on which date the meetup is? Lars On Fri, Mar 7, 2008 at 12:25 PM, Johan Compagner [EMAIL PROTECTED] wrote: translate it to English and do it also on the wicket meeting? On Fri, Mar 7, 2008 at 11:48 AM, lars vonk [EMAIL PROTECTED] wrote: Yes that's me. You're assumptions are

PageLink and css class attribute

2008-03-07 Thread BretChampoux
Is there a way to programmatically alter the class attribute of the html that is generated from a PageLink component? I've been looking and haven't been able to find anything. Thanks in advance for any assistance. -- View this message in context:

Re: PageLink and css class attribute

2008-03-07 Thread Igor Vaynberg
see (Simple)AttributeModifier -igor On Fri, Mar 7, 2008 at 11:30 AM, BretChampoux [EMAIL PROTECTED] wrote: Is there a way to programmatically alter the class attribute of the html that is generated from a PageLink component? I've been looking and haven't been able to find anything.

RE: right click popup context menu

2008-03-07 Thread Karen Schaper
Thanks for the reply Doug. I actually found this project and now have a context menu appearing when clicking on the id column for a row. Now I just need to make my different actions actually work and the table refreshed. Right now I using the TestAction inner class that is in your example. In

DropDownChoice getting value into the model

2008-03-07 Thread rmattler
I've tried for 1 1/2 days to get this simple Drop Down to work and I'm feeling stupid. My mom tells me I'm smart.:-( Everything works fine until I try to save it. I get the following error. I think it is trying to put the SelectOption object into the Model but I don't know how to tell it to

Re: Wicketstuff Rome / RSS reader page/panel etc..

2008-03-07 Thread Sean Sullivan
Try wicketstuff-rome: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-rome/ http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-rome-examples/ On 3/7/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Just wonder if there are

Wicket 1.3 relative path problem

2008-03-07 Thread Renan Camponez
Hi.. I have a image.. in my HTML it is img src=resources/images/ibFind.gif/.. After wicket, it is img src=../../../../resources/images/ibFind.gif But I need to have absolute path instead of ../../../ What should I override? What is responsible to do that replace? I've already tried to

Re: DropDownChoice getting value into the model

2008-03-07 Thread Igor Vaynberg
two problems 1) loadable detachable models do not support the setobject() call, because they are...loadable. so you should use a different kind of model. 2) yes, selectoption object will be put into your model, dropdown choice works like this: DropDownChoiceT(String id, IModelT model,

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Igor Vaynberg
use ContextImage class also current wicket takes over contextroot/resources directory, so you might want to use something else. -igor On Fri, Mar 7, 2008 at 12:43 PM, Renan Camponez [EMAIL PROTECTED] wrote: Hi.. I have a image.. in my HTML it is img src=resources/images/ibFind.gif/..

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mutz
[EMAIL PROTECTED] wrote: I've tried for 1 1/2 days to get this simple Drop Down to work and I'm feeling stupid. My mom tells me I'm smart.:-( Everything works fine until I try to save it. I get the following error. I think it is trying to put the SelectOption object into the Model but I

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Renan Camponez
Igor, Thanks for quick answer... My problem is a little more difficult to solve.. The problem is that I have a servlet at /app/mainservlet who handle if all requests... If i do a request to wicket Page, it redirects me to wicket servlet.. But my URL remains the same.. That means that I'm acessing

Re: Wicketstuff Rome / RSS reader page/panel etc..

2008-03-07 Thread Ryan Sonnek
Are you looking for how to *publish* RSS feeds, or consume them? the wicketstuff-rome project helps with publishing RSS feeds from within your application. If you're looking to consume rss feeds, ROME makes it pretty trivial to do. Not sure how much value there is for a generic display RSS

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Igor Vaynberg
so a nonwicket /app/mainservlet servlet redirects to the wicket servlet? -igor On Fri, Mar 7, 2008 at 1:05 PM, Renan Camponez [EMAIL PROTECTED] wrote: Igor, Thanks for quick answer... My problem is a little more difficult to solve.. The problem is that I have a servlet at

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Renan Camponez
Exacly.. On Fri, Mar 7, 2008 at 6:34 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: so a nonwicket /app/mainservlet servlet redirects to the wicket servlet? -igor On Fri, Mar 7, 2008 at 1:05 PM, Renan Camponez [EMAIL PROTECTED] wrote: Igor, Thanks for quick answer... My problem is a

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Renan Camponez
The problem is that at wicket 1.2 it works... Bcs wicket 1.2 use /myapp/wicketservlet/blabla.. On Fri, Mar 7, 2008 at 6:39 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: hrm, dont know if we support that kind of thing, or took it into consideration while testing. can you not use wicket as a

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Igor Vaynberg
wicket 1.3 is not backwards compatible with 1.2 -igor On Fri, Mar 7, 2008 at 1:45 PM, Renan Camponez [EMAIL PROTECTED] wrote: The problem is that at wicket 1.2 it works... Bcs wicket 1.2 use /myapp/wicketservlet/blabla.. On Fri, Mar 7, 2008 at 6:39 PM, Igor Vaynberg [EMAIL PROTECTED]

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Thanks for the quick reply. But you answer doesn't make sense to me. Why do loadable models work for a text field but not a drop down? If I have NY stored in the database, New York is loaded onto the form but when the form is submitted the selected value of the drop down is not saved into the

Re: Wicket 1.3 relative path problem

2008-03-07 Thread Renan Camponez
I know that... Thats my problem.. :) On Fri, Mar 7, 2008 at 6:47 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket 1.3 is not backwards compatible with 1.2 -igor On Fri, Mar 7, 2008 at 1:45 PM, Renan Camponez [EMAIL PROTECTED] wrote: The problem is that at wicket 1.2 it works... Bcs

Re: nljug wicket presentation

2008-03-07 Thread Maurice Marrink
Still to be determined but mostlikely candidates are Friday April 4th, Monday April 7th, Tuesday April 8th. See http://cwiki.apache.org/confluence/display/WICKET/Wicket+Community+meetups+-+Amsterdam Maurice On Fri, Mar 7, 2008 at 8:28 PM, lars vonk [EMAIL PROTECTED] wrote: Depends on which

Re: DropDownChoice getting value into the model

2008-03-07 Thread Igor Vaynberg
perhaps because your textfield is setting a property of the object loaded by the model, not the object itself. -igor On Fri, Mar 7, 2008 at 1:48 PM, rmattler [EMAIL PROTECTED] wrote: Thanks for the quick reply. But you answer doesn't make sense to me. Why do loadable models work for a

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to Wicket and I'm pretty far with rebuilding an application we are using internally. Has anybody proposed an alternative or a wrapper to DropDownChoices? Vitaly Tsaplin wrote: The DropDownBox component

Sort order in DataView with ListDataProvider

2008-03-07 Thread Michael Mehrle
I'm passing a ListDataProvider when creating a DataView that shows rows of comments. Each comment has a name, a date, and a message. I am creating the ListDataProvider with an ArrayList, which also has been sorted with a Comparator on the date. For whatever reason on the final page my comments

Re: Sort order in DataView with ListDataProvider

2008-03-07 Thread Igor Vaynberg
paste your code -igor On Fri, Mar 7, 2008 at 2:03 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm passing a ListDataProvider when creating a DataView that shows rows of comments. Each comment has a name, a date, and a message. I am creating the ListDataProvider with an ArrayList, which

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mutz
[EMAIL PROTECTED] wrote: It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to Wicket and I'm pretty far with rebuilding an application we are using internally. Has anybody proposed an alternative or a wrapper to DropDownChoices? Have you tried something like:

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Thanks for trying but I get: WicketMessage: No get method defined for class: class java.lang.String expression: state Kai Mütz wrote: [EMAIL PROTECTED] wrote: It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to Wicket and I'm pretty far with rebuilding

Re: Sorting a list

2008-03-07 Thread jeredm
That is the library that Ryan had a Wicket wrapper for that I tried and couldn't get working. The onblur may work. I will have to build a test to see if it is too much for the feel I am looking for. Thanks everybody for the great ideas! Nino.Martinez wrote: hmm what about this one?

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mütz
[EMAIL PROTECTED] wrote: Thanks for trying but I get: WicketMessage: No get method defined for class: class java.lang.String expression: state Have you defined a getter/setter for field state in your vendor class? - To

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Yes @Column(name = state, length = 2) public String getState() { return this.state; } public void setState(String state) { this.state = state; } Kai Mütz wrote: [EMAIL PROTECTED] wrote: Thanks for trying but I get:

RE: right click popup context menu

2008-03-07 Thread Doug Leeper
In the populateItem, you will need to do the following: contextMenuBehavior.applyAttributes(item, popupMenu, new Model( rowId)); Where rowId is the value you are looking for when the action has been selected (the targetId in the onClick method) private class MyAction extends

RE: Sort order in DataView with ListDataProvider

2008-03-07 Thread Michael Mehrle
Okay - some needed input first: - addComments is called inside the constructor of a Panel. - FooCommentComparator sorts on a java.util.Date field inside of FooComment - FooComment has a user, date, and message field - For some reason the panel shows the comments sorted by the comment's message

RE: Problem when MIgrating from 1.2 to 1.3 - Parameters removed from HomePage URL

2008-03-07 Thread David Leangen
I dunno. I thought you were talking about mounted urls, whose urls displays are rendered by a UrlCodingStrategy. If you're using the QueryStringUrlCodingStrategy, then my guess is that it's relevant. If you want to know for sure, try applying the patch to your local wicket, or maybe try adding

RE: right click popup context menu

2008-03-07 Thread Karen Schaper
Yep. I have that working just as you described below. Glad I'm doing it correctly. Thanks -Original Message- From: Doug Leeper [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 5:43 PM To: users@wicket.apache.org Subject: RE: right click popup context menu In the

Resource String from Localizer

2008-03-07 Thread mnwicket
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

Javascript not evaluating with AbstractAutoCompleteBehavior

2008-03-07 Thread Andrew Berman
Hello, If I have the following code: textField.add(new AbstractAutoCompleteBehavior() { /** * */ private static final long serialVersionUID = 1L; @Override protected void onRequest(final String input,

Re: Javascript not evaluating with AbstractAutoCompleteBehavior

2008-03-07 Thread Matej Knopp
The autocomplete component doesn't use the wicket ajax pipeline so that ajaxrequesttarget methods will not work for request invoked by the autocomplete behavior. -Matej On Sat, Mar 8, 2008 at 4:50 AM, Andrew Berman [EMAIL PROTECTED] wrote: Hello, If I have the following code:

Any Wicket way to submit 2 forms with 1 submit button?

2008-03-07 Thread Justin Morgan - Logic Sector
Here's a problem that other people may have encountered. Hopefully there's a Wicket way to solve it. The scenario... I have two forms on my Contact Us page. There is a login form at the top of the page with a submit button. There's also the contact form at the bottom of the same page,

Re: DropDownChoice getting value into the model

2008-03-07 Thread Per Newgro
But in java.lang.String there is no state property. You added a list of Strings to the ddc. But you have to add your vendor objects. The display in ddc will be done by ChoiceRenderer. Cheers Per Am Freitag, 7. März 2008 23:34:35 schrieb rmattler: Yes @Column(name = state, length = 2)