Enforcing CSS Styles to be Loaded From Server ?

2009-08-17 Thread FaRHaN
I want to customize themes for my website for each Valid User, for that purpose i have a unique StyleSheet for each user. When a user Logs IN, a respective CSS file turned ON. The problem exist when a user Logs IN again after modifying styles (theme) of his website, the latest CSS file not

Re: pannels with diffrent width and height

2009-08-17 Thread burnst...@burnstone.ch
Gerald Fernando schrieb: i used table but it will not be placed in the full page even i put table height and width = 100% if possible please explain little bit about div with CSS float: etc. in the page template. div with CSS float means, that you use the float: CSS attribute to layout the

Re: Populating a model with form data from external site

2009-08-17 Thread bgooren
Sophia, There are a number of solutions to this. I will name two: 1) Use a stateless form, take a look at the HTML (and form action) it generates, and post to that form from an external site. I have not tested this myself, but I expect it will work like a charm. Since the form is stateless, it

Re: Enforcing CSS Styles to be Loaded From Server ?

2009-08-17 Thread bgooren
Farhan, Please take a look at IResourceSettings (accessible from the application object). More specifically at http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/settings/IResourceSettings.html#setAddLastModifiedTimeToResourceReferenceUrl(boolean)

Re: Enforcing CSS Styles to be Loaded From Server ?

2009-08-17 Thread FaRHaN
Thanks Bas... It really works. From: bgooren b...@iswd.nl To: users@wicket.apache.org Sent: Monday, August 17, 2009 11:27:12 AM Subject: Re: Enforcing CSS Styles to be Loaded From Server ? Farhan, Please take a look at IResourceSettings (accessible from the

Re: Design of components utilizing JS, was: Wicket and JQuery - lavalamp

2009-08-17 Thread Joseph Pachod
m a totally newbie in the JS domain so your ramark really helps me learning this stuff. Have a look at http://docs.jquery.com/Plugins/Authoring It provides lot of interesting hints on how to write jQuery plugins :) ++ -

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
Sure? But I will loose control over how transactions are managed... El vie, 14-08-2009 a las 22:14 +0200, nino martinez wael escribió: Yup so you should either use open session in view or more preferred AFAIK detachable models. 2009/8/14 Russell Simpkins russellsimpk...@hotmail.com:

Controlling the order of resource files

2009-08-17 Thread Arie Fishler
Hello, The normal way wicket goes over resource files is based on locale and different component names, application name etc. What's the best practice for a situation in which I would like my application to find the resource file based on a skin. This means that for the same classes set (same

Re: Controlling the order of resource files

2009-08-17 Thread bgooren
Arie, This is possible out-of-the-box using Session.setStyle(); Setting a style will make wicket consider resource files and property files with the style you've specified. The following is from the Component javadoc: Style - The style (skin) for a component is available through getStyle(),

SV: Controlling the order of resource files

2009-08-17 Thread Wilhelmsen Tor Iver
It is like I need another selection mechanism for resource file which is not the locale but something that is specific to the logic of my application. Look at styles, i.e. Session.setStyle(String) and the documentation there for resource lookup. Basically the style tag goes before the

Re: DefaultDataTable gets no CSS styling

2009-08-17 Thread Kringlan
For anyone who might be interested... for all I know Igor is right and the DataTable component does not add any CSS itself. This seems very odd to me as a default styling would be nice to have. Anyway, I managed to find the styling used in the Wicket-examples page and i just added it to my own

Re: Controlling the order of resource files

2009-08-17 Thread Arie Fishler
Many thanks guys...this is exactly what I meant. Happy this is found in the base of wicket. Anoter example of how flexible and great wicket is:) Cheers..great day to all. Arie. On Mon, Aug 17, 2009 at 11:17 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: It is like I need another selection

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
Why will you lose that? 2009/8/17 Gonzalo Aguilar Delgado g...@aguilardelgado.com: Sure? But I will loose control over how transactions are managed... El vie, 14-08-2009 a las 22:14 +0200, nino martinez wael escribió: Yup so you should either use open session in view or more preferred

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
Ok. Maybe I don't understand... Let me show the situation. I have Spring + portlet + hibernate config with transactions working with the current configuration: I have my DAO objects under package com.level2crm.hibernate.enterprise.dao.contact And model under com.level2crm.model I configured one

Re: crud app with wicket

2009-08-17 Thread Ivan Dudko
Thank you guys! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
Hmm I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies. And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? 2009/8/17 Gonzalo

Tree based on database

2009-08-17 Thread Oliver-Sven Fritsch
Hi everybody! Still new to Wicket I'm trying to get a wicket tree with nodes from a database. What I got so far is a simple JTree put onto a JFrame. What I don't understand is how to geht my tree onto a wicket web page. I'm kinda confused on how to get things working. As far as I now wicket

how to create a TabPanel as a separate class.

2009-08-17 Thread Gerald Fernando
Hello Friends, This is my need what i want whenever i need this tabbedPanel i want to place in any page public class choicePanel extends TabbedPanel{ super(); } not like public class choicePanel extends webpage i have created the above one but it shows the error that he constructor

Re: Tree based on database

2009-08-17 Thread jWeekend
Oliver, Wicket (core and extensions) has several tree components and they all currently use Swing's TreeModel (javax.swing.tree.TreeModel). I say currently as this is the case upto and including Wicket 1.4 but there is some discussion about using a new type of model, more suited to webapps, in

Re: how to create a TabPanel as a separate class.

2009-08-17 Thread Eyal Golan
it's exactly what it says. TabbedPanel doesn't have the default constructor. You must give it at least ID. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really

Re: Removing an element from ListView with AjaxFallbackButton

2009-08-17 Thread Major Péter
So I'm populating an item into the LV, which is gonna have a Remove button, so when I'm add the AFB in the onsubmit I write to remove the ListItem which I'm currently populating?? The LV looks like this final ListViewIMAccount listview = new ListViewIMAccount(ims, new PropertyModel(person,

Re: Tree based on database

2009-08-17 Thread Oliver-Sven Fritsch
Thanks for your reply. I guess defining the TreeModel is exactly my problem. I tried to find a tutorial on how to do so based on my database entries but I don't seem to find any. Maybe this is basic java knowledge and I'm searching at the wrong spots. But a little how to would be great because

Re: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread Mathias Nilsson
After plugin in the pom file resources resource filteringfalse/filtering directorysrc/main/resources/directory /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes

Re: Removing an element from ListView with AjaxFallbackButton

2009-08-17 Thread Erik van Oosten
Perhaps you can use the list editor: http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ Regards, Erik. Major Péter wrote: Any help would be appreciated. Thanks Regards, Peter -- Erik van Oosten http://day-to-day-stuff.blogspot.com/

Re: Tree based on database

2009-08-17 Thread jWeekend
Oliver, It's not difficult but you may need to break the problem down a bit if you are new to some of this stuff. Then we can address any bits you really need help with. Broadly speaking, you could: 1 - create a simple database schema to experiment with and populate the relevant table(s) with

ListView Validation

2009-08-17 Thread jpalmer1026
I'm trying to display a validation message for an item contained in a list view but the validation message isn't getting displayed. Is there something special that needs to be done to display validation messages for list view items?

Re: Tree based on database

2009-08-17 Thread Oliver-Sven Fritsch
Cemal, thanks for your reply! right now I'am at step 3 of your guide. I got the database schema with entries in it, my connection works well and queries the database and delivers a ResultSet. :-) The code I posted in my first email does work perfectly well, it even sorts the child nodes in

Re: ListView Validation

2009-08-17 Thread jWeekend
see setReuseItems on ListView. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com jpalmer1026 wrote: I'm trying to display a validation message for an item contained in a list view but the validation message isn't getting displayed. Is

How to use Guice to inject Service to LoadableDetachableModel

2009-08-17 Thread Haulyn R. Jason
Hi, all: I have a class which is likes below: public class DetachableMemberModel extends LoadableDetachableModelMember { private final long id; public DetachableMemberModel(Member m) { this(m.getId()); } public DetachableMemberModel(long id) { if (id == 0) {

Re: ListView Validation

2009-08-17 Thread Major Péter
Yes, with the setReuseItems(true) you just enabled that, the list won't forget the contents on validation fail. If you would like to use custom validation messages, check out the Application.properties file in wicket.jar, there you can see the original messages, and also the format of message

Re: how to use wicket tree in extension

2009-08-17 Thread jWeekend
Assuming the class diagram at http://jweekend.com/dev/ArticlesPage/ is up-to-date for your version of Wicket, perhaps you can override protected ITreeState newTreeState() to return an ITreeState that you pass between pages (or, put in your custom WebSession if that makes more sense in your app or

Re: How to use Guice to inject Service to LoadableDetachableModel

2009-08-17 Thread Haulyn R. Jason
Hi, I got these blow: java.lang.IllegalStateException: InjectorHolder has not been assigned an injector. Use InjectorHolder.setInjector() to assign an injector. In most cases this should be done once inside SpringWebApplication subclass's init() method. I didn't use spring. I use wicket with

Re: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread jWeekend
The quick fix is: in Project Properties/Java Build Path/Source) set Included: *.* (and make sure *.html is not Excluded) for the folder your html is in, most likely src/main/java if you keep your templates next to your Java source files. Regards - Cemal jWeekend OO Java Technologies, Wicket

Re: how to use wicket tree in extension

2009-08-17 Thread Igor Vaynberg
instead of navigating between pages and passing the tree state around why not simply swap panels. that way the tree instance is the same and keeps its state. -igor On Mon, Aug 17, 2009 at 8:23 AM, Haulyn R. Jasonsaharab...@gmail.com wrote: Yes, that's right, is that a way to tell the new

Re: How to use Guice to inject Service to LoadableDetachableModel

2009-08-17 Thread Igor Vaynberg
the easiest thing is to inject your component and pass the reference into your model. outside that there is salve.googlecode.com that lets you inject any object. InjectorHolder.getInjector() doesnt work with guice because it is possible to have more then one injector - one per module. -igor On

Re: how to use wicket tree in extension

2009-08-17 Thread jWeekend
Yes, Igor's solution is easier (and will remember other tree state beyond just which nodes are expanded) if you are able to use this panel swapping technique instead of your current markup-inheritance solution for the common menu (tree). It looks like a common decision one has to make: whether

Re: Improving maven/wicket deployment process

2009-08-17 Thread Tauren Mills
Janos and Jeremy, Thank you both for your feedback! After considering your answers, I think that using Maven profiles is most in line with my needs. And the suggestion to use the command line -Dwicket.configuration=deployment parameter will certainly help. I've never used Hudson before, but I'm

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies. Will check. I didn't know about filter order... Will also check it. Thanks! And are you sure that your filter (

RE: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread Dale Ogilvie
Thanks, that worked. I wonder why this isn't automatically set up in the quickstart? -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, 18 August 2009 5:25 a.m. To: users@wicket.apache.org Subject: Re: MarkupnotFoundException in eclipse 3.4.2 The