annotated class

2008-02-14 Thread freak182
Hello, Im developing an app using hibernate annotations.My problem is when i configure my appContext.xml the annotated class cannot be found. here is the code snippet of appContext.xml found in WEB-INF/config. !-- Session factory bean for Hibernate -- bean

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Here is a Thread dump from Tomcat (after I have undeployed my app). It doesn't speak about PageSavingThread, but if anybody see something wrong [2008-02-14 12:43:17] [1334 prunsrv.c] [debug] Procrun log initialized [2008-02-14 12:43:17] [info] Procrun (2.0.3.0) started [2008-02-14

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-14 Thread Bohtvaroh
Hello. I your case you will suffer from weak domain model rules. Look at http://martinfowler.com/bliki/AnemicDomainModel.html for more info. DTOs - is the best approach, but there must be some best practices for using them. Alexander Martijn Dashorst wrote: You could do that. If you are

Wicket.Tree has no properties

2008-02-14 Thread Juan Gabriel Arias
Hi all, i'm getting this error in my Ajax Debug Window. /tr/table]]/component/ajax-response*INFO: * Response parsed. Now invoking steps... *ERROR: *Exception evaluating javascript: TypeError: Wicket.Tree has no properties *INFO: *Response processed successfully. I have a simple LinkTree,

RE: AjaxTabbedPanel notworking in IE 6

2008-02-14 Thread rik rik
I've noticed the same behaviour using ie7 Using AjaxTabbedPanel the first tab works, the second works, but the third doesn't work, in the ajax debug inspector I have the same message indicated by Wen. If I use TabbedPanel, it works perfectly on ie, too. I've noticed the same message also when

Re: annotated class

2008-02-14 Thread C S
Here's another example of what to put in WEB-INF/web.xml context-param param-namecontextConfigLocation/param-name param-value classpath:applicationContext.xml classpath:applicationContext-acegi-security.xml

Re: AjaxTabbedPanel notworking in IE 6

2008-02-14 Thread Martijn Dashorst
OK, please make a JIRA issue with a quickstart [1] attached that exhibits this problem. Martijn [1] http://wicket.apache.org/quickstart.html On 2/14/08, rik rik [EMAIL PROTECTED] wrote: I've noticed the same behaviour using ie7 Using AjaxTabbedPanel the first tab works, the second works, but

Re: Problem to nest list within data DefaultDataTable which already have data provider

2008-02-14 Thread wiki
I want to nest list of answers in Data Table which already have data provider .Below code gives error IColumn[] columns= { new PropertyColumn(new Model(ID),questiontext), new AbstractColumn(new Model(Answer Body)) { public void populateItem(Item cell,String

org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Sven Schliesing
Hi, I'm trying to set up testing for my Wicket Application but ran across this error message: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession The page (LoginPage) I'm testing does: (CustomSession) Session.get(); This is the point where the error

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Hello, thank you for your answer. I wrote a */META-INF/context.xml* file with that in it: ?xml version="1.0" encoding="UTF-8"? Context path="/servlet" reloadable="true" docBase="${catalina.home}/webapps" parameter nameantiJARLocking/name valuetrue/value /parameter /Context

Re: Wicket.Tree has no properties

2008-02-14 Thread Matej Knopp
Looks like the tree javascript has not been loaded. Can you create a quickstart that reproduces this? -Matej On Thu, Feb 14, 2008 at 2:55 PM, Juan Gabriel Arias [EMAIL PROTECTED] wrote: Hi all, i'm getting this error in my Ajax Debug Window. /tr/table]]/component/ajax-response*INFO: *

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-14 Thread Martijn Lindhout
Hi Nick, I prefer the same approach as you, because my domain model is rich and gives me direct feedback of what goes wrong when somebody wants to change the model state. This works well for editing simple domain objects, but one of the challenges I'm facing now is: how do I implement multiaction

Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
Hi, In theory, all Serializable classes should have a serialVersionUID, but to provide one to every annonymous inner class used everywhere in a Wicket app is just too much. So I decided to turn off that warning in Eclipse, and not to use serialVersionUID any more, but what is the implication?

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-14 Thread James Carman
I don't know that the Memento design pattern will necessarily solve the problem you're talking about. So, you have a persistent Order entity object in your application (is the order saved to the db already)? And you want to add OrderLine objects (also persistent) to it, but you don't want that

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-14 Thread Martijn Lindhout
the scenario you sketched is right. The order is persisted and some orderlines also. The point is, when I click the 'add line' or 'remove line', a request cycle is executed, the LoadableDetachableModel is loaded, items are removed and/or added and I have to commit that to the database. Or where do

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-14 Thread James Carman
Most (again I say most; Amazon doesn't) shopping carts die with your session. If you don't place your order and you close your browser, you lose what you've collected thus far. So, you could store your shopping cart (Order) information in your session if that sort of functionality is o.k. with

Wicket Quickstart maven archetype - Archetype repository missing

2008-02-14 Thread OliZilla
Currently when I run the mvn quickstart command provided by the quickstart web page, maven complains: ... [INFO] [archetype:create] [INFO] Archetype repository missing. Using the one from [org.apache.wicket:wicket-archetype-quickstart:1.3.0-beta3 - http://repo1.maven.org/maven2] found in

Custom tag processing

2008-02-14 Thread behlma
Hi there, I'm looking for a hint if the following can be done easily *without* the use of a templating language like FreeMarker or Velocity, as I think Wicket itself is a pretty good templating engine. Suppose I have a TextArea field and want to create an email on the fly, with certain

AjaxSelfUpdatingTimerBehavior, AjaxFallbackDefaultDataTable and a Form

2008-02-14 Thread Murat Yücel
Hi All I have some problem with the combination written in the subject. I have a panel which has a form. On that form i append a AjaxFallbackDefaultDataTable. One of the columns include a checkbox so i can submit the selected values. This was working just fine until i wanted the table to be auto

wicketstuff-rome and authentification.

2008-02-14 Thread Murat Yücel
Hi All I have started using the wicketstuff-rome project to generate rss feed. Before this was just done in a servlet. The servlet would check the parameters submitted. If they were valid then the rss feed would get generated. The parameters are username, password. Is it possible to add

Re: Is serialVersionUID really required?

2008-02-14 Thread Johan Compagner
not that importand it is just easier to cluster over different jvms (which doesnt happen a lot) but it is also easier to upgrade an existing code. Because the generated serialVersionUID does change for the most stupid ways (i guess they have to do that but most of the time i don;t care if i added

Re: Wicket Quickstart maven archetype - Archetype repository missing

2008-02-14 Thread Raphaël Piéroni
This is because of the recent release of maven archetype 2.0-alpha-1 release. Please consider calling the old plugin version the time for the maven team to fix the problem. mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ... Cheers. Raphaël 2008/2/14, OliZilla [EMAIL

Re: wicketstuff-rome and authentification.

2008-02-14 Thread Ryan Sonnek
you can mount the wicket rss feed as a bookmarkable url and use a filter to ensure security. Not sure if wicket has the concept of securing application resources currently built in? On Thu, Feb 14, 2008 at 9:55 AM, Murat Yücel [EMAIL PROTECTED] wrote: Hi All I have started using the

Re: Problem on undeploy

2008-02-14 Thread Sébastien Piller
Yes, I made a syntax error... but even with the syntax bellow, the problem stills... Context path="/servlet" reloadable="true" docBase="servlet" antiJARLocking="true" /Context Sbastien Piller a crit: But the problem stills Have I done a syntax error?

RE: Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
Johan, Thanks for the reply. Just need some further comfirmation. Here is my scenario: 1) The app is packaged in a single war. 2) No distributed deployment - everything is on the app server (Tomcat 6.0). 3) Only user agent is web browser. No remote client (RMI, java web start etc.). 4) Same JVM

Re: Is serialVersionUID really required?

2008-02-14 Thread Johan Compagner
if you redeploy a new version where you did some changes in components that would now generate another id then the sessions that are on disk cant be loaded anymore so you loose your sessions if you had an id. And you dont change it because you want to be able to deserialize because you dont added

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Timo Rantalaiho
On Thu, 14 Feb 2008, Sven Schliesing wrote: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? Yep, you should provide it an ApplicationContext more suitable for testing. There is the handy MockContext in wicket-spring that you can use. We

Re: Wicket Ideal Bandwidth

2008-02-14 Thread Johan Compagner
optimize your website for 33k6 ! (then it will workr on 128kbs) Where are the old days where pages where normal sizes... Currently nobody cares anymore (currently looking at the mobile e90 webbrowser) johan On Wed, Feb 13, 2008 at 10:47 AM, carloc [EMAIL PROTECTED] wrote: Hi guys, What

Re: wicketstuff-rome and authentification.

2008-02-14 Thread Maurice Marrink
For swarm 1.3.1 i am working on this. It allows you to use the same authorization / authentication mechanism as your wicket app. in effect the policy files. You can try it out by letting your pom get the latest 1.3-SNAPSHOT. Some feedback is welcome. Maurice On Thu, Feb 14, 2008 at 5:03 PM, Ryan

Re: Doubt about getList().indexOf() usage in ListView.moveUpLink, moveDownLink, removeLink

2008-02-14 Thread Igor Vaynberg
because the problem is that between the time the list was rendered and the time you click the link the underlying list might have changed, so the move operation might be invoked on the wrong item...i think we just chose a safer default... -igor On Thu, Feb 14, 2008 at 1:58 AM, Henrik Lundahl

Re: annotated class

2008-02-14 Thread Igor Vaynberg
isnt this a question for the spring list? -igor On Thu, Feb 14, 2008 at 1:04 AM, freak182 [EMAIL PROTECTED] wrote: Hello, Im developing an app using hibernate annotations.My problem is when i configure my appContext.xml the annotated class cannot be found. here is the code snippet of

Re: Wicket.Tree has no properties

2008-02-14 Thread Juan Gabriel Arias
Yes. The problem occurs when i add a javascript file in the html header script src=myFile.js language=javascript type=text/javascript / No matter the content of the file, the tree fails if i have this in my markup. Any idea? Juan

Overlay div on ajax call

2008-02-14 Thread JulianS
I am trying to overlay a mask div during an ajax call but there is obviously something I don't understand. I would appreciate any advice. If I do the following in my ajax button subclass, the mask gets displayed but never hidden. The order of the script parameter versus my style string makes no

RE: wicket-security Custom Access Denied Page

2008-02-14 Thread Warren
Maurice, I have a couple more questions. In my MySwarmStrategy hasPermission(...) method I only have to look up the principals that have the denied permission in them, correct? Here is my overide hasPermission(...) method: public boolean hasPermission(Permission p) {

Re: AjaxSelfUpdatingTimerBehavior, AjaxFallbackDefaultDataTable and a Form

2008-02-14 Thread Martin Funk
How about using an AjaxCheckBox? That way a state change in the checkbox will be propagated to the server immediately. mf 2008/2/14, Murat Yücel [EMAIL PROTECTED]: Hi All I have some problem with the combination written in the subject. I have a panel which has a form. On that form i append

Re: wicket-security Custom Access Denied Page

2008-02-14 Thread Maurice Marrink
On Thu, Feb 14, 2008 at 7:13 PM, Warren [EMAIL PROTECTED] wrote: Maurice, I have a couple more questions. In my MySwarmStrategy hasPermission(...) method I only have to look up the principals that have the denied permission in them, correct? Correct Here is my overide hasPermission(...)

AjaxRequestTarget and dynamic form component

2008-02-14 Thread Jay Hogan
Hello wicket-users, Here's what I'm trying to do. I'm designing a SearchPanel component that accepts a ListSearchField and renders these items on a search form. The SearchField object has properties for search field name, search operator (an enum), search value and a list of allowed search

RE: wicket-security Custom Access Denied Page

2008-02-14 Thread Warren
Maurice, When you say: Also don't forget to filter the principals from the hive with the principals contained in your subject. you are only interested in the principals not contained in your hive. Haven't we allready done that when we check if the permission has failed when the

How to NOT use wicket's Role class

2008-02-14 Thread Bruce McGuire
Hello. My application has a need for more roles than user and admin. Can someone point me to links etc. on the simplest method of using more than these roles please? This class seems to be final, so extending it won't do the trick. Something of a similar complexity is desired, though.

Re: Overlay div on ajax call

2008-02-14 Thread Timo Rantalaiho
On Thu, 14 Feb 2008, JulianS wrote: I am trying to overlay a mask div during an ajax call but there is obviously something I don't understand. I would appreciate any advice. We've done it a bit differently -- all styling (including the high z-index) in CSS, and just the visibility control by

Re: How to NOT use wicket's Role class

2008-02-14 Thread Igor Vaynberg
you can always copy and paste that code into your project and hack away at it. wicket-roles is really just an example project. -igor On Thu, Feb 14, 2008 at 11:39 AM, Bruce McGuire [EMAIL PROTECTED] wrote: Hello. My application has a need for more roles than user and admin. Can

Re: Overlay div on ajax call

2008-02-14 Thread Martijn Dashorst
See wicketstuff-minis' veil Martijn On 2/14/08, JulianS [EMAIL PROTECTED] wrote: I am trying to overlay a mask div during an ajax call but there is obviously something I don't understand. I would appreciate any advice. If I do the following in my ajax button subclass, the mask gets

Re: Wicket.Tree has no properties

2008-02-14 Thread Juan Gabriel Arias
I know, this is really weird... but if i put an empty js file, the tree stops working. I finally moved the code from myFile.js to the HTML page, and its working fine... Juan On Thu, Feb 14, 2008 at 3:46 PM, Juan Gabriel Arias [EMAIL PROTECTED] wrote: Yes. The problem occurs when i add a

Re: How to NOT use wicket's Role class

2008-02-14 Thread Janos Cserep
Bruce, Just use simpel strings as your role names: Roles roles = new Roles(OWNER,SUPERVISOR); roles.hasAnyRole(new Roles(OWNER)) - this will be true I usually put these as public final static Strings into my WebApplication class... Janos On Thu, Feb 14, 2008 at 8:39 PM, Bruce McGuire [EMAIL

Re: wicket-security Custom Access Denied Page

2008-02-14 Thread Maurice Marrink
Nope, you are correct. My mind must have been on vacation when i wrote that :) Sorry for the confusion. Maurice On Thu, Feb 14, 2008 at 8:32 PM, Warren [EMAIL PROTECTED] wrote: Maurice, When you say: Also don't forget to filter the principals from the hive with the principals

Re: AjaxRequestTarget and dynamic form component

2008-02-14 Thread Jay Hogan
Timo, Thanks for your response. Here's a practical example of how this component will be used. Let's say I have an employee table out in some database that has firstName, lastName and department fields. I need to give HR a web page that allows them to search for employees based on firstName,

Re: AjaxRequestTarget and dynamic form component

2008-02-14 Thread Timo Rantalaiho
On Thu, 14 Feb 2008, Jay Hogan wrote: Here's what I'm trying to do. I'm designing a SearchPanel component that accepts a ListSearchField and renders these items on a search form. The SearchField object has properties for search field name, search operator (an enum), search value and a list of

Re: Overlay div on ajax call

2008-02-14 Thread JulianS
Timo Rantalaiho wrote: We've done it a bit differently -- all styling (including the high z-index) in CSS, and just the visibility control by IAjaxIndicatorAware. Hi Timo If you have an example you can share I'd appreciate it. Julian -- View this message in context:

Re: AjaxRequestTarget and dynamic form component

2008-02-14 Thread Igor Vaynberg
you shouldnt rerender the entire form, just some div that surrounds the area you are changing i have something similar going, and there i have a div that is around the label+editor, so i repaint that diff when i need to swap it out with a different editor... -igor On Thu, Feb 14, 2008 at 12:39

Re: Overlay div on ajax call

2008-02-14 Thread JulianS
Martijn Dashorst wrote: See wicketstuff-minis' veil Martijn Thanks for the suggestion. I've tried it, and it works fine when you are trying to veil a component in response to an action, then unveil it in response to another, However, if I try to enable the veil at the start of an ajax

Disabling Modal Unload Confirmation

2008-02-14 Thread UPBrandon
I have a page that uses ModalWindows and I would like to disable the JavaScript confirmation that is displayed when you try to leave the page while a modal window is open. As recommended by developers here, I added Wicket.Window.unloadConfirmation = false; in my page header to disable those

Re: Disabling Modal Unload Confirmation

2008-02-14 Thread Mats Norén
UPBrandon wrote: I have a page that uses ModalWindows and I would like to disable the JavaScript confirmation that is displayed when you try to leave the page while a modal window is open. As recommended by developers here, I added Wicket.Window.unloadConfirmation = false; in my page header to

Re: How to NOT use wicket's Role class

2008-02-14 Thread Jonathan Locke
sorry, i really just ran out of time writing the auth-roles package and so it's closer to an example than something fully reusable. in my own projects i don't use auth-roles exactly as is. instead, i use a Role enum and keep a Set of those role objects in my User object stored via hibernate.

Re: Problem on undeploy

2008-02-14 Thread TahitianGabriel
Have you also tried the antiResourceLocking=true parameter? That's the one I use and it works! Pills wrote: Yes, I made a syntax error... but even with the syntax bellow, the problem stills... lt;Context path=/servlet reloadable=true docBase=servlet antiJARLocking=truegt;

RequestCycle Request and storeing objects?

2008-02-14 Thread Warren
What is the proper way to store objects into the request and retrieve them in your page? Is this the correct way: RequestCycle.get().getPageParameters().put(myObject, myObect); And from my Page: MyObject myObect = (MyObect)getWebRequestCycle().getPageParameters().get(myObject); And can you

Re: RequestCycle Request and storeing objects?

2008-02-14 Thread Igor Vaynberg
what is the usecase of storing something in the request? -igor On Thu, Feb 14, 2008 at 5:02 PM, Warren [EMAIL PROTECTED] wrote: What is the proper way to store objects into the request and retrieve them in your page? Is this the correct way:

Re: RequestCycle Request and storeing objects?

2008-02-14 Thread Matej Knopp
You can use request cycle metadata (RequestCycle.setMetaData) -Matej On Fri, Feb 15, 2008 at 2:45 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: what is the usecase of storing something in the request? -igor On Thu, Feb 14, 2008 at 5:02 PM, Warren [EMAIL PROTECTED] wrote: What is the

RE: RequestCycle Request and storeing objects?

2008-02-14 Thread Warren
I am storieng org.apache.wicket.security.hive.authorization.Principal objects that are associated with why a user was denied access to a page. I then want to access the names of these Principals from my Accessed Denied page in order to construct a Accessed Denied message. I want to store these

RE: wicket-security Custom Access Denied Page

2008-02-14 Thread Warren
Maurice, I had to make some changes in order for it to work. I added the Permission names to the ManyToManyMap instead of the Permission itself and then query the map by the Permission name. It would not return any Principals the original way. The hive file I am testing with only has three

Re: Wicket Quickstart maven archetype - Archetype repository missing

2008-02-14 Thread Nino Saturnino Martinez Vazquez Wael
Thanks. Had a million problems yesterday, thought it was because I ran on a windoze box. Raphaël Piéroni wrote: This is because of the recent release of maven archetype 2.0-alpha-1 release. Please consider calling the old plugin version the time for the maven team to fix the problem. mvn

Re: wicketstuff-rome and authentification.

2008-02-14 Thread Nino Saturnino Martinez Vazquez Wael
It would be really cool to have such a feature.. Im, thinking on wicket-auth here.. Ryan Sonnek wrote: you can mount the wicket rss feed as a bookmarkable url and use a filter to ensure security. Not sure if wicket has the concept of securing application resources currently built in? On Thu,

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Nino Saturnino Martinez Vazquez Wael
You could also take a look at the blog tutorial, has the solution for this as I remember.. http://cwiki.apache.org/WICKET/blog-tutorial.html From another example here: final ApplicationContext context = new ClassPathXmlApplicationContext( applicationContext.xml);

Re: RequestCycle Request and storeing objects?

2008-02-14 Thread Igor Vaynberg
yep, use request cycle metadata - that is the quicker/cleanest way -igor On Thu, Feb 14, 2008 at 6:14 PM, Warren [EMAIL PROTECTED] wrote: I am storieng org.apache.wicket.security.hive.authorization.Principal objects that are associated with why a user was denied access to a page. I then