Re: how to pass parameters while setting page expired error page

2008-06-05 Thread Johan Compagner
class SessionExpiredLoginPage extends LoginPage() { SessionExpiredLoginPage() { super(); info(xx) } } On Wed, Jun 4, 2008 at 6:25 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > I want to pass some param so I can know in LoginPage that it is called > because

Re: Multi-ModalWindow

2008-06-05 Thread Nino Saturnino Martinez Vazquez Wael
Everything is possible, is just time that sets the limits. Did you see the example? http://www.wicket-library.com/wicket-examples/ajax/modal-window.1 freak182 wrote: Hello, It is possible to have multiple modal window in a page pop-up?what i mean is that, if there is a message from user1, the

Re: Multi-ModalWindow

2008-06-05 Thread freak182
Hello, I saw it..but i dont want a modal window open inside another modal window...what i mean is that in the same page will open another modal window..bcoz i have a trigger that opens a modal window in page (not clicked by the user)...now when a new trigger comes in another modal window should op

Re: jsesionid written into url when using tomcat behind apache & mod_jk

2008-06-05 Thread Nino Saturnino Martinez Vazquez Wael
Post a cleaninfied version of your apache conf..? Also did you look at the wiki, and some time ago I posted an apache conf example... Although not using mod_jk... http://www.nabble.com/Page-templates-per-virtual-host-ts16299142.html#a16328617 it's these bits: ProxyPass /images http://10

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
like matej already told you There is no default "slot" or field.. A component with no model doesnt have a a slot what so ever. johan On Wed, Jun 4, 2008 at 11:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > like i said, i dont mind removing the default slot if we add nice > automatic detachme

Re: Multi-ModalWindow

2008-06-05 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, Im not sure that actually are a modal window. Arent it more of a stackable toaster? This is not directly on the spot, but you'll get the idea. Im working on a toaster using scriptaculous.. If I have the time I could probably do something the lines of that. http://www.demay-fr.net:8080/

Re: Best way of validating FileUploadField

2008-06-05 Thread Michael Sparer
Might be a bit off-topic, but I just wanted to add that if you're validating if the file has the correct content-type you shouldn't rely on the getContentType method, as it determines the type just using the extension. I did rely on that and to prevent users from uploading annoying animated gifs,

Re: Multi-ModalWindow

2008-06-05 Thread freak182
Hello, That would be nice if you can do some meebo thing about modal window...you know,my trigger was came from comet. if i can open-up another window, if there was a trigger, that would be great...thats why im looking on how to open-up a new modal window...the tosater are great but i think it did

Re: Does wicket favor composite session obj?

2008-06-05 Thread Johan Compagner
are you sure you store it correctly? for example is the LoginData object the same? (if you do a system out of that or check it in the debugger) Because if it is then the user field that it should have cant be just suddenly null johan On Wed, Jun 4, 2008 at 11:47 PM, smallufo <[EMAIL PROTECTED]>

Re: Best way of validating FileUploadField

2008-06-05 Thread Ned Collyer
Michael Sparer wrote: > > Might be a bit off-topic, but I just wanted to add that if you're > validating if the file has the correct content-type you shouldn't rely on > the getContentType method, as it determines the type just using the > extension. I did rely on that and to prevent users from

RE: Problem: Check within a ListView

2008-06-05 Thread Kai Mütz
Igor Vaynberg wrote: > it is possible, just depends on how you set up your models. it is not > possible by directly reading the collection of checkgroup, but you > can come up with a different way. > The checkgroup is part of a form based on a CompoundPropertyModel wrapp

PatternValidation on timestamp / RawInputPatternValidator

2008-06-05 Thread Thomas Lutz
hi list ! In my form model bean I've got an attribute of type java.sql.Timestamp. Unfortunately I've got to perform a regular expression validation on the input. Adding a PatternValidator does not work, as first the converter is called, and afterwards the validators. Within the validator int

RE: how to pass parameters while setting page expired error page

2008-06-05 Thread Patel, Sanjay
That's what I am doing right now. I was just wondering if there is another way so there is no need to create another page just to add one line (info(xxx)). Thanks for your time. Sanjay. -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2008 3:39

Re: Contructor model

2008-06-05 Thread Manuel Corrales
Hi, i will rephrase. I have a class Customer on my domain, and Customer do not have a default constructor. Lets assume Customer have a constructor with a String: public class Customer { Customer(String name) { ... } } It is possible to create a wicket model, to create a new instance

Form validators expand in a ListView per each refresh

2008-06-05 Thread Martin Makundi
Hi! I have a Form whose components are populated using a listView. Each listView component has a formValidator. Now each time I refresh the listview it is redrawn and all the new validators are newly added to the form in addition to the existing validators (from the previous refresh). For examp

Re: Contructor model

2008-06-05 Thread Gwyn Evans
Are you looking for something like: public class MyPage extends WebPage { public MyPage(String name) { setModel(new Model(new Customer(name)); ... /Gwyn On Thu, Jun 5, 2008 at 2:22 PM, Manuel Corrales <[EMAIL PROTECTED]> wrote: > Hi, i will rephrase. I have a class Customer on my domai

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Martin Makundi
Hi! The only workaround I came up with is as follows: public void validate(Form form) { if (!form.contains(selectionField, true)) { return; } ... } It is not elegant and the stack keeps growing. I first tried to remove the validator if it exists, but that brought up some nasty thr

Re: PatternValidation on timestamp / RawInputPatternValidator

2008-06-05 Thread Thomas Lutz
As a "workaround" I've implemented a form validator, as this was a way to access the raw input. in case anybody is interested, find the source below. I am pretty sure, that there are others out there, that need to validate the rawinput, before any conversion is applied, and do not want to mix

Re: Contructor model

2008-06-05 Thread Manuel Corrales
Half way there :) public class MyPage extends WebPage { public MyPage(String name) { setModel(new Model(new Customer(name)); that what i want, but instead of having name as a parameter on the page constructor, i would like to have it from the same form the other Customer data is being filled.

Re: Contructor model

2008-06-05 Thread Gwyn Evans
In which case, maybe something along the lines of... MyPage() { displayedName = ""; setModel(new CompoundPropertyModel(new Customer(displayedName)); Form form = new Form() { void onSubmit() { Customer customer = (Customer)getModelObject(); if (!displayedName.equals(customer.g

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Maurice Marrink
Can't you use setReuseItems(true), that way the populate method will be called less frequently and thus will generate less validators. Don't use the removeall in combination with the reuse that will negate the effect :) Maurice On Thu, Jun 5, 2008 at 3:57 PM, Martin Makundi <[EMAIL PROTECTED]> wr

Re: Contructor model

2008-06-05 Thread Manuel Corrales
I will try that, thanks! On Thu, Jun 5, 2008 at 11:25 AM, Gwyn Evans <[EMAIL PROTECTED]> wrote: > In which case, maybe something along the lines of... > > MyPage() { > displayedName = ""; > setModel(new CompoundPropertyModel(new Customer(displayedName)); > Form form = new Form() { >void on

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Martin Makundi
I use setReuseitems true yes. I must call the removeAll because my models have changed (I am rendering a table and the table structure / colspan / rowspan / elements changes). I have not found another way to update the markup than calling removeAll. Now, the removeAll should probably remove all t

ModalWindow

2008-06-05 Thread nanotech
Hi All, I am using panel inside a ModalWindow. I have few questions regarding Modal Window. 1. It seems that setInitialWidth(800) is not being honoured. No matter what size I set it comes out to be same size. 2. Also, when I try to increase horiznontal size of modal window (by dragging )then i

ListChoice Crashing on 13th Load

2008-06-05 Thread wfroud
Hi, I've been having trouble getting my app to run for any reasonable period of time without crashing. I've laid out a basic page that contains a ListChoice component, after loading this page 13 times (when I have more components it's far less) it just hangs indefinitely. I'm sure the problem

Re: Problem: Check within a ListView

2008-06-05 Thread Igor Vaynberg
right, so like that its not going to work. you need a model in between that can buffer values and insert missing checked by disabled values. -igor On Thu, Jun 5, 2008 at 4:36 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg wrote: >> it is possible, just depends

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Igor Vaynberg
i didnt mean the memory slot, i ment the actual default model each component can have. if i can write something like this: add(new webmarkupcontainer("foo") { private imodel model; protected void isvisible() { return model.getobject()!=null; }); then i am perfectly happy. notice how there is

Re: ListChoice Crashing on 13th Load

2008-06-05 Thread John Krasnay
You are not closing your JDBC connections, and are therefore you are running out of connections in your connection pool. I would STRONGLY advise against using raw JDBC. You have no idea how difficult it is to correctly clean up after JDBC. At the very least look into Spring's JdbcTemplate class, a

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread pkcinna
[x] Should be avoided, I prefer the way 1.3 works. Because sometimes I still run into web servers like websphere 5.x that still depend on jdk 1.4 (also some tomcat 5.5 hosting sites). The beauty of Wicket is its simplicity and adding generics doesn't seem be worth the cost. I like generics bu

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Igor Vaynberg
you should use embedded forms form->listview->item->form+formvalidators->formcomponents instead of form+formvalidators->listview->item->formcomponents -igor On Thu, Jun 5, 2008 at 7:55 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > I use setReuseitems true yes. > > I must call the removeAll b

Re: scriptaculous toaster

2008-06-05 Thread Ryan Sonnek
Not sure what this 'toaster' is, but i really like the multiple effect! is it available in 1.8 or is this in scriptaculous 2.0? We have a scriptaculous header contributor using the ScriptaculousAjaxBehavior.newJavascriptBindingBehavior(). do you need something different? On Wed, Jun 4, 2008 at

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
For that we have 1.3 1.4 will be java 5 On 6/5/08, pkcinna <[EMAIL PROTECTED]> wrote: > >[x] Should be avoided, I prefer the way 1.3 works. Because sometimes I > still run into web servers like websphere 5.x that still depend on jdk 1.4 > (also some tomcat 5.5 hosting sites). The beauty of W

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread James Carman
This might also screw up stuff like CompoundPropertyModel, no? We discussed this a bit on ##wicket. On Thu, Jun 5, 2008 at 11:44 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i didnt mean the memory slot, i ment the actual default model each > component can have. if i can write something like th

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Igor Vaynberg
yes. thats what i meant by wrapping. when/if we evaluate this we can obviously put more thought into what it will effect and how to make it all work. right now it was just a two minute idea i had, and it may yet forever stay that way. -igor On Thu, Jun 5, 2008 at 10:16 AM, James Carman <[EMAIL PR

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread James Carman
Personally, I find CompoundPropertyModel too "magicy" for my tastes anyway. Yes, it's very convenient to just use property names for component ids and it all just works out fine, but that can sometimes be difficult to understand from a new person's perspective. When learning a technology, I don't

Refreshing a List view

2008-06-05 Thread Ricky
Hi, I have a RefreshingView which has a delete button in it (this deletes the model present in the backing list for the view.) The problem is that when a delete is performed on DB, (see onSubmit( ) for *deletePlanObjectiveDetailButton below) *the size of the list changes, Is there a way to "refre

Re: Refreshing a List view

2008-06-05 Thread Sam Barnum
Ricky, what are you using as the model for your refreshing view? You should be using some sort of detachable model that re-fetches the items for the list from the DB each time. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Jun 5, 2008, at 10:32 AM, Ricky wrote: Hi, I h

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Eelco Hillenius
There are plenty of cases where there isn't much risk and where using CompoundPropertyModels is just convenient and leads to nicer readable (imho) code. I use those models quite a bit, and I like them. I use plenty of other (custom LDMs mainly) as well though. Eelco On Thu, Jun 5, 2008 at 10:29 A

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Eelco Hillenius
On Thu, Jun 5, 2008 at 10:20 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yes. thats what i meant by wrapping. when/if we evaluate this we can > obviously put more thought into what it will effect and how to make it > all work. right now it was just a two minute idea i had, and it may > yet forev

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread James Carman
On Thu, Jun 5, 2008 at 1:45 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Thu, Jun 5, 2008 at 10:20 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> yes. thats what i meant by wrapping. when/if we evaluate this we can >> obviously put more thought into what it will effect and how to make it >>

Item.getIndex() on DefaultDataTable

2008-06-05 Thread Flavius
I'm using a DefaultDataTable and I want to get the index of the selected item. However the index always returns 0. Is this by design? new AbstractColumn(new Model("Test Label")) { public void populateItem(Item item, String componentId, I

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Eelco Hillenius
> Right, we need to figure out what we're going to do for 1.4. Have we > decided on that? It seems like a lot of folks like the idea of making > the model methods non-final on Component, thereby allowing components > to "type themselves" by overriding them (using JDK5 covariant return > types) wh

Re: ListChoice Crashing on 13th Load

2008-06-05 Thread Eelco Hillenius
On Thu, Jun 5, 2008 at 8:44 AM, John Krasnay <[EMAIL PROTECTED]> wrote: > You are not closing your JDBC connections, and are therefore you are > running out of connections in your connection pool. Yep, probably something like that. > I would STRONGLY advise against using raw JDBC. You have no ide

DataProvider as model for AutoCompleteTextField?

2008-06-05 Thread Michael Mehrle
I have written a DataProvider as the model for a ListView, and would also like to use it for a AutoCompleteTextField. I have done that successfully in the past by explicitly accessing the iterator() method. But I was hoping to be able to simply assign it as a model somehow. Is this possible? Th

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
next week a good rest? next week i dont have much rest.. I am on vacation! Bern, Switzerland! johan On Thu, Jun 5, 2008 at 8:05 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Right, we need to figure out what we're going to do for 1.4. Have we > > decided on that? It seems like a lot of f

RE: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Stefan Lindner
Johan Compagner wrote >next week i dont have much rest.. I am on vacation! >Bern, Switzerland! You are visiting an EM match? That's not a rest? :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Tsutomu Yano
On 2008/06/02, at 5:44, Eelco Hillenius wrote: > 1) Generifying* Wicket [X] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give Wicket. For me, the most

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Martin Makundi
Tnx. I had form->listview->item->formcomponents,formvalidators Should the embedded forms be renderBodyOnly? I think HTML does not approve embedded forms, does it? So should I tweak this using renderBodyOnly or similar? ** Martin 2008/6/5 Igor Vaynberg <[EMAIL PROTECTED]>: > you should use embed

Re: How can I customize Autocomplete?

2008-06-05 Thread taygolf
I am bumping this because this is an issue I know people are interested in. I am not the only one wanting the choices for autocomplete to be shown on a null value. I know technically you have this fixed in 1.4-m2 but you still have to press the down arrow. I would like the choices to show up autom

Does StringResourceModel honor container's key (rather than its own ?)

2008-06-05 Thread smallufo
I have a Web Page , containing a Panel , both components have the same key in each property files (but with different values). I found in the Panel , when calling new StringResourceModel("key" , this , null) , it will return Page's key value , not its own value . Is it intentional ? or a bug ? Wic

Stateless AutoComplete

2008-06-05 Thread nate roe
I'm using Wicket 1.2, and it appears that when a user's session times out, my implementation of AbstractAutoCompleteTextRenderer stops working. I assume that when the session times out, the server returns errors and the partial page update fails. I would like to know if there is a good way to mak

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Igor Vaynberg
html doesnt approve of embedded forms, but wicket does. it will just work. -igor On Thu, Jun 5, 2008 at 12:36 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Tnx. I had form->listview->item->formcomponents,formvalidators > > Should the embedded forms be renderBodyOnly? > > I think HTML does not a

Re: Does StringResourceModel honor container's key (rather than its own ?)

2008-06-05 Thread James Carman
Show some code. What is "this" at the point you're instantiating SRM? On Thu, Jun 5, 2008 at 4:29 PM, smallufo <[EMAIL PROTECTED]> wrote: > I have a Web Page , containing a Panel , both components have the same key > in each property files (but with different values). > I found in the Panel , wh

RequestLogger - AtomicInteger change

2008-06-05 Thread Jeremy Thomerson
If you enable the default request logger (in 1.4-*), it throws a NullPointerException. The problem comes from this commit from Johan: http://fisheye6.atlassian.com/browse/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestLogger.java?r1=646020&r2=646810 The field "active" wa

Re: RequestLogger - AtomicInteger change

2008-06-05 Thread Jeremy Thomerson
Also, if one int was changed to AtomicInteger, shouldn't the rest also? It's obviously a concurrency issue. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 5, 2008 at 4:38 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > If you enable the default request logger (in 1.4-*), it thr

Re: Does StringResourceModel honor container's key (rather than its own ?)

2008-06-05 Thread smallufo
2008/6/6 James Carman <[EMAIL PROTECTED]>: > Show some code. What is "this" at the point you're instantiating SRM? > The following codes are written in MyPanel's constructor: collapseExpandText = new Label("collapseExpandText"); collapseExpandText.setOutputMarkupPlaceholderTag(true); if (checkG

Re: RequestLogger - AtomicInteger change

2008-06-05 Thread Johan Compagner
fixed On Thu, Jun 5, 2008 at 11:40 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Also, if one int was changed to AtomicInteger, shouldn't the rest also? > It's obviously a concurrency issue. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On Thu, Jun 5, 2008 at 4:38 PM, Jeremy T

Wizard Form problems in IE

2008-06-05 Thread Michael Laccetti
I've implemented a Wizard that uses dynamic steps to process things based on user input. Everything works under Firefox, but when I started testing in IE I've noticed that the next/back button do not seem to do anything. The form is posted, but the same step is rendered. I turned on debug loggin

Issues with Bookmarkable targets

2008-06-05 Thread David Leangen
I've been stepping through the code, but I'm having a tough time figuring this one out... Using 1.3. I have one page mounted on: /mount1 And another mounted on: /mount1/tree On the /mount1/tree page, I have a tree component. Problem is that whenever I click on a node in the tree, I am t

RE: (Class>) casting troubles

2008-06-05 Thread Rod Good
Thanks Peter (and Martin and Larry). My issue was specifically with overriding Class> getHomePage() from the Application class, when extending AuthenticatedWebApplication. It looks the same as the problem below, but not quite... Is there an idiom for overriding getHomePage() in Wicket 1.4

very slow autocomplete box in IE6

2008-06-05 Thread Rod Good
Hi, I have a default AutoCompleteTextField on a form which is executing extremely slowly for the up / down arrow cursors when I run it in IE6. The getChoices() method is implemented efficiently, using a TreeMap and the tailMap() method to avoid iterating over the whole map. Worst case is 10 it

Re: (Class>) casting troubles

2008-06-05 Thread Jeremy Thomerson
I haven't read the whole thread, but you should be fine as long as your returned page class uses generics... Here's what I use in one app, no warnings, no casts: @Override public Class> getHomePage() { return Home.class; } public class Home extends WebPage { } -- Jeremy Th

RE: (Class>) casting troubles

2008-06-05 Thread Rod Good
Thanks Jeremy, that definitely looks like the problem. -Original Message- From: Jeremy Thomerson [mailto:[EMAIL PROTECTED] Sent: Friday, 6 June 2008 1:01 PM To: users@wicket.apache.org Subject: Re: (Class>) casting troubles I haven't read the whole thread, but you should be fine as long

Re: Does StringResourceModel honor container's key (rather than its own ?)

2008-06-05 Thread James Carman
I would suggest starting from a "quickstart" application and adding in the code that illustrates this issue. If you can come up with something that you think is a bug, file a JIRA issue. On Thu, Jun 5, 2008 at 5:42 PM, smallufo <[EMAIL PROTECTED]> wrote: > 2008/6/6 James Carman <[EMAIL PROTECTED]

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Martin Makundi
Will wicket approve if I say the nested form is a tag? Should it care? ** Martin 2008/6/6 Igor Vaynberg <[EMAIL PROTECTED]>: > html doesnt approve of embedded forms, but wicket does. it will just work. > > -igor > > On Thu, Jun 5, 2008 at 12:36 PM, Martin Makundi > <[EMAIL PROTECTED]> wrote: >>

strange links

2008-06-05 Thread Tomasz Prus
I have links like this in page source. My boss wants i remove these dots. Can anyone help me ?