Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Ayodeji Aladejebi
alas...igor has rescued us pls give me some time to update the code wih this approach and send it to yu On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/29/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > that should be simple, although my wicket is bit rusty at the moment, I > thi

[Wicket-user] Problem with the InlineFrame

2007-06-29 Thread hanxu198312
I would like to use the InlineFrame, but the InlineFrame does not work. The codes are as follows: public class Map extends WebPage { public static final String BOTTOM_FRAME_NAME = "bottom"; public Map(final PageParameters pps) { Border

[Wicket-user] Wicket get together at O'Reilly Open Source convention? (Portland Oregon USA)

2007-06-29 Thread Sean Sullivan
The O'Reilly open source convention is happening July 23-27 in Portland Oregon (USA): http://conferences.oreillynet.com/os2007/ Are there any Wicket people coming to Portland for OSCON? I could organize an informal gathering or (perhaps) an official birds-of-feather session: http://conferen

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Al Maw
Gwyn Evans wrote: > What I was wondering was if anyone had any suggestions about a table > object that just did 'next'/'prev' paging, rather than working out > "Page N of M", although I'll try & work out if "select count(id)" is > faster/less cost than "select count(*)" In the past we didn't think

Re: [Wicket-user] Trying to retrieve the absolute URL

2007-06-29 Thread Igor Vaynberg
On 6/29/07, David Leangen <[EMAIL PROTECTED]> wrote: Hello! I'm wondering if something has changed in 1.2.6 and the API docs are out of date, or if I just misunderstood the API docs... I am trying to get the URL of the request (the complete URL in the form http://my.company.com/blah/hello?a=b

Re: [Wicket-user] Trying to retrieve the absolute URL

2007-06-29 Thread ZedroS Schwart
Hi I had already asked a similar question months ago. As I remember it, the possibility to get the absolute URL had been left over since it could be misleading depending of the actual deployement. As such, you have to save it somewhere in your app and call it when needed. But it's just some memo

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Francisco Diaz Trepat - gmail
Thanks Matej I'll check it out. I am building the sample right now to get a more real experience. f(t) On 6/29/07, Matej Knopp <[EMAIL PROTECTED]> wrote: Err, the fact is, it turned out that there are some flaws considering multi window support and secondlevelcachesessionstore (default). So i

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Matej Knopp
Err, the fact is, it turned out that there are some flaws considering multi window support and secondlevelcachesessionstore (default). So in case you are experiencing any problems, you should turn on multiwindow support (manually) even for SecondLevelCacheSessionStore. -Matej On 6/29/07, Francisc

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
There is no performance difference between count(*) and count(not_nullable_column). Stick with count(*), since it's clearer what you really want. On 6/29/07, Gwyn Evans <[EMAIL PROTECTED]> wrote: > On Friday, June 29, 2007, 12:36:34 PM, Martijn <[EMAIL PROTECTED]> wrote: > > > The most interestin

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Francisco Diaz Trepat - gmail
Excelent. Thanks Igor. On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/29/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > > I think you misunderstood. First of all, I don't have any problems. > > Is just a question, that is intended to get insight in this matter. > >

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Igor Vaynberg
On 6/29/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: I think you misunderstood. First of all, I don't have any problems. Is just a question, that is intended to get insight in this matter. If you have an adding link like the one in the samples. And click it any number of times,

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Francisco Diaz Trepat - gmail
I think you misunderstood. First of all, I don't have any problems. Is just a question, that is intended to get insight in this matter. If you have an adding link like the one in the samples. And click it any number of times, it adds +1, the number of times you click on it. If you click 3 times

[Wicket-user] How to display a BufferedImage on Wicket Component

2007-06-29 Thread hanxu198312
How to display a BufferedImage on Wicket Component? Han _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com - This SF.net email is sponsored by DB2 Expr

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Matej Knopp
It is possible what you have one page instance/version opened in three tabs. How does the link you are clicking on when creating new tabs look like? -Matej On 6/29/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > 1.3 incubator beta and currently STILL drooling for the beta 2. > > I'

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Francisco Diaz Trepat - gmail
1.3 incubator beta and currently STILL drooling for the beta 2. I'll check it out. Thanks igor. On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - g

Re: [Wicket-user] How to display a BufferedImage on Wicket Component

2007-06-29 Thread Philip A. Chapman
Take a look at WebResource or DynamicWebResource for serving up your BufferedImage. You'll just need to put an http://www.hotmail.com > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the F

Re: [Wicket-user] How to display a BufferedImage on Wicket Component

2007-06-29 Thread Igor Vaynberg
On 6/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: How to display a BufferedImage on Wicket Component? http://wicketstuff.org/wicket13/images/ -igor Han _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com -

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Igor Vaynberg
what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doin

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Igor Vaynberg
On 6/29/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new TextField("cell", new PropertyModel(values[row][col],"data")); tx.add(new IValidator(){ public void validate(FormComponent fc)

[Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Francisco Diaz Trepat - gmail
Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 time

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread Craig Lenzen
> A subject is the root/ abstract entity for a user, principals are > views or identities of a subject and in JAAS you would represent a > role as a principal. I agree with your statement which leads me to the fact that the principal should really be a role in swarm and the hive file is a mapping

Re: [Wicket-user] AjaxTabbedPanel and back button (Wicket 1.2.x)

2007-06-29 Thread Eelco Hillenius
> Eelco .. I understand, and moreover in general versioning on ajax operation > is meaning less. > > But in some cases like tab operation would be nice, because from the user > point of view changing tab switch is like changing the page content. So > would be useful to let interact with browser bac

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread Eelco Hillenius
> Right now swarm operates the following way: A user is associated with > 1 or more Subjects, each Subject has 0 or more Principals. This sounds right to me, and is like how JAAS works. A subject is the root/ abstract entity for a user, principals are views or identities of a subject and in JAAS

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Gwyn Evans
On Friday, June 29, 2007, 12:32:35 PM, C. <[EMAIL PROTECTED]> wrote: > Gwyn Evans wrote: >> Hi, >> >> Anyone got any suggestions as to the best way to provide a paging >> data view without requiring using size() to actually count the records >> in DB? >> >> I've got a site that has a production

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Gwyn Evans
On Friday, June 29, 2007, 12:36:34 PM, Martijn <[EMAIL PROTECTED]> wrote: > The most interesting questions is of course: what database? Perhaps > someone here knows how to get the count(*) faster? you might want to > do a select count(primary_key) instead of *. > As an answer to your question: yo

Re: [Wicket-user] Copenhagen Wicket Users Group - interested?

2007-06-29 Thread Flemming Boller
Yes! See you on tuesday. On 6/26/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: the more the better:) So did we agree on the agenda? 1. Testing Wicket apps 2. Some Wicket Hibernate 3. Showing of the stuff we've done with wicket? regards Nino Frank Bille wrote:

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
Of course this metadata-level cardinality may be generated daily and hence may not be current, but for the purposes of paging it's probably entirely sufficient unless you expect a user to walk through many, many pages of data. On 6/29/07, Scott Swank <[EMAIL PROTECTED]> wrote: > Any modern databas

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
Any modern database uses a "cost-based optimizer" to determine its query execution plans. This means that at a minimum the database knows how many rows each table contains. This means that you just have to find this metadata -- then you can use that in lieu an actual count(*). On oracle you woul

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
That's a good idea i'll remember for the future. Instead I had the better idea of using a modal window for the delete confirmation. Purty. On 6/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Try a reuse items strategy to see if that works? Martijn On 6/29/07, Evan Chooly <[EMAIL PRO

[Wicket-user] RestartResponseAtInterceptPageException / continueToOriginalDestination

2007-06-29 Thread Mark Southern
I have an authorization scheme where by the user is presented with a sign in page. After signing in, a check is made to see if they need to change their password. If so, they are redirected to a change password page. After that they should be redirected back to their intended page. However, if

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread craigdd
The way it sounds is that principal should really be renamed to role. Roles typically have 0 or more permissions. Although if you consider the hive as a mapping of roles to permissions then you are really back to what I said earlier where swarm is handy if your application pre-defines the roles

[Wicket-user] You just have received a virtual postcard from a good friend !!!

2007-06-29 Thread PostCard
You just have received a virtual postcard from my name! You can pick up your postcard at the following web address:

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Martijn Dashorst
Try a reuse items strategy to see if that works? Martijn On 6/29/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > A thought occurred to me. I'm doing this panel replacement inside a > DataTable. So when the DT rerenders could it be overwriting the change I > just made? Because this panel replaceme

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread Maurice Marrink
I am open to suggestions for alternate names, or if someone could point me to the naming standards :) Right now swarm operates the following way: A user is associated with 1 or more Subjects, each Subject has 0 or more Principals. Each Principal is mapped to 1 or more Permissions. Each Permission

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
A thought occurred to me. I'm doing this panel replacement inside a DataTable. So when the DT rerenders could it be overwriting the change I just made? Because this panel replacement wouldn't really change the state of the DT so when it rerenders itself it would render it's entire tree as it it

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread craigdd
Just my two cents but I think the API should change, or I guess not really the API but the implementation(swarm) to better reflect industry naming standards which will hopefully cut down on the confusion and hopefully make it a little easier to integrate other security frameworks. I use acegi as

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Evan Chooly
It is not. I'm not entirely sure what's broken here. I'm assuming that tests exist in wicket for this and that it works there so the problem has *got* to be on my end. I'm just not seeing it. I'll turn logging back on and dig through each line. There's just so much info there... On 6/29/07

Re: [Wicket-user] pagemap locking

2007-06-29 Thread Matej Knopp
What we should have is some kind of listener. Which you could use to easily plugin your own behavior (even dumpThreads if you want). I wated to do this some time ago, but then we stopped getting those exception so i let it be. -Matej On 6/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > its a

Re: [Wicket-user] RefreshingView and Link.setAutoEnable

2007-06-29 Thread Martijn Dashorst
How would the Link know to which page it is linking? You need to provide protected boolean linksTo(final Page page) See the code for Link#isEnabled(): /** * @see wicket.Component#isEnabled() */ public boolean isEnabled() { // If we're aut

Re: [Wicket-user] RefreshingView and Link.setAutoEnable

2007-06-29 Thread Martijn Dashorst
On 6/29/07, Vadim Tesis <[EMAIL PROTECTED]> wrote: > i see. i guess i assumed that the Link knows about the page it's linking > from setResponsePage() in onClick(). Heh, you have too much awe for Wicket: that would require either running the onClick upfront (the isenabled check also determines ho

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Edi
your first line shows final TextField tx = new TextField("cell", new PropertyModel(values[row][col],"data")); But I got java.lang.IllegalArgumentException: Parameter modelObject cannot be null I have put final TextField tx = new TextField("cell", model); but this time I did not get any exce

Re: [Wicket-user] RefreshingView and Link.setAutoEnable

2007-06-29 Thread Vadim Tesis
i see. i guess i assumed that the Link knows about the page it's linking from setResponsePage() in onClick(). so, in this use case is there any difference whether to override linksTo() or isEnabled()? i think overriding isEnabled() is more generic, if latter i'll need to add more logic to disa

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread C. Bergström
Gwyn Evans wrote: > Hi, > > Anyone got any suggestions as to the best way to provide a paging > data view without requiring using size() to actually count the records > in DB? > > I've got a site that has a production DB such that > "select COUNT(*) from mytable" > takes a non-trivial amount

[Wicket-user] RefreshingView and Link.setAutoEnable

2007-06-29 Thread Vadim Tesis
all, i'm trying to create a list of links using Refreshing view in wicket 1.3. for some reason if i call Link.setAutoEnable(true) it doesn't really work, the link is enabled all the time. however if i override Link.isEnabled() method it works, the link becomes disabled on the page it points

Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Martijn Dashorst
The most interesting questions is of course: what database? Perhaps someone here knows how to get the count(*) faster? you might want to do a select count(primary_key) instead of *. As an answer to your question: you could use Integer.MAX_VALUE. Martijn -- Wicket joins the Apache Software Found

[Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Gwyn Evans
Hi, Anyone got any suggestions as to the best way to provide a paging data view without requiring using size() to actually count the records in DB? I've got a site that has a production DB such that "select COUNT(*) from mytable" takes a non-trivial amount of time/cpu to return, whereas to

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Ayodeji Aladejebi
and dont forget to create a resource key for the "error.toolongvalue". You should hae it in yor property file that maps to your class On 6/29/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Ayodeji Aladejebi
that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new TextField("cell", new PropertyModel(values[row][col],"data")); tx.add(new IValidator(){ public void validate(FormComponent fc){ if(fc.getValue() is greater than 20){ fc.add(ne

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Edi
Or, tell me how to validate, if the text box value exceeds 20 characters, I want to change the color of the text box. HOW? Ayodeji Aladejebi wrote: > > well, > yu can use String.length to do dat. but be aware it might jumble your > table > because some Text will be *This is a very long text th

Re: [Wicket-user] FormInput Example on 1.3 Clearing Radio/Check/Box on error

2007-06-29 Thread Joshua Lim
the bug is in the wicket-examples using a ListView in a Form without setResueItems set On 6/29/07, Joshua Lim <[EMAIL PROTECTED]> wrote: Here it is : https://issues.apache.org/jira/browse/WICKET-710 On 6/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > On 6/28/07, Joshua Lim <[EMAIL PROT

Re: [Wicket-user] pagemap locking

2007-06-29 Thread Johan Compagner
its a native call that isn't there in java 4 private native static StackTraceElement[][] dumpThreads(Thread[] threads); johan On 6/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: We could try retrotranslator to see what kind of code is emitted? Martijn On 6/29/07, Johan Compagner <[EMAI

Re: [Wicket-user] pagemap locking

2007-06-29 Thread Martijn Dashorst
We could try retrotranslator to see what kind of code is emitted? Martijn On 6/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > Yeah i think that code i also did see, this should go into the next version > yes. > But i dont see how we can do that easy for java 4 > > johan > > > On 6/28/07, Jon

Re: [Wicket-user] replaceWith() not working

2007-06-29 Thread Johan Compagner
it is not by accident an ajax request right? On 6/28/07, Evan Chooly <[EMAIL PROTECTED]> wrote: On 6/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > public void onClick() { > > DeleteLink.this.replaceWith(new > > ConfirmDeletePanel(DeleteLink.this.getId(), "really d

Re: [Wicket-user] AjaxTabbedPanel and back button (Wicket 1.2.x)

2007-06-29 Thread Paolo Di Tommaso
Eelco .. I understand, and moreover in general versioning on ajax operation is meaning less. But in some cases like tab operation would be nice, because from the user point of view changing tab switch is like changing the page content. So would be useful to let interact with browser back and fwd

Re: [Wicket-user] pagemap locking

2007-06-29 Thread Johan Compagner
Yeah i think that code i also did see, this should go into the next version yes. But i dont see how we can do that easy for java 4 johan On 6/28/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: yeah, i just figured that out. i'll just patch our wicket for now. but we should add this for wick

Re: [Wicket-user] Session.dirty()

2007-06-29 Thread Johan Compagner
i guess it could be public, it isnt public because most of the time you alter a variable inside session and then call dirty on the session itself But if you know your object is hold on to by the session and you are in that object itself, changing it then yes you also have to call dirty so i guess

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Ayodeji Aladejebi
well, yu can use String.length to do dat. but be aware it might jumble your table because some Text will be *This is a very long text that can expand the Textfield too much* and some will be just "Hi". I had to make that trade off as well i am looking for some javascript technique maybe yu can s

Re: [Wicket-user] Wicket with JExcel

2007-06-29 Thread Edi
Hi, In your sample code, tx.add(new AttributeModifier("size",true, new Model(String.valueOf(8; It shows all the size of textbox is same. I want to change the size of text box value according to text each contents Ayodeji Aladejebi wrote: > > meanwhile, > if yu look at this code in the W

Re: [Wicket-user] wicket 1.3 and tomcat 5.5 filterStart severe error?

2007-06-29 Thread Gwyn Evans
On Friday, June 29, 2007, 8:03:08 AM, Nino <[EMAIL PROTECTED]> wrote: See http://www.nabble.com/remove-test-scope-for-slf4j-in-pom.xml-t3913261.html for background. > thanks, now its working.. Thought that dependencies would have been > setup... So belived that something else was causing it..

Re: [Wicket-user] Custom Exception in onClick of Link

2007-06-29 Thread Javed
Thanks Igor for your quick response. It really helped to solve this problem Regards, Javed igor.vaynberg wrote: > > On 6/28/07, Javed <[EMAIL PROTECTED]> wrote: >> >> >> I have created one custom Exception class which will be thrown from pages >> or >> panel when particular entity say "ABC" i

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread Maurice Marrink
Actually that is already how they work. Even though the Principal class does not have methods for getting and setting the Permissions. The mapping is done in the policy file like this. grant principal ${RechtenSet} "PageA.read" { //read permission for all of page A permission ${ComponentPe

Re: [Wicket-user] Classcastexception and getSession

2007-06-29 Thread Flemming Boller
Yeah! I don´t know whybut I think I will remember this puzzle a looong time :-) /Flemming On 6/28/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Heh... nice discovered one! This one goes into the books of nasty things not to do. Martijn -- Wicket joins the Apache Software Foundation

Re: [Wicket-user] Classcastexception and getSession

2007-06-29 Thread Flemming Boller
I would at least try two thing. System.out the classloaders of the getSession() class and the Typecasted class. That way you know for sure. If the two classloaders is sun.misc.AppClassLoaderand the other is ContextClassloader (or something like that) then you know that one class is loaded

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread Igor Vaynberg
take maurice's post and substitute word permission for word principal, define user/principal as an object that has a set of permissions, and it makes perfect sense. -igor On 6/28/07, craigdd <[EMAIL PROTECTED]> wrote: I understand what you are saying and I see how you have accomplished some

[Wicket-user] Trying to retrieve the absolute URL

2007-06-29 Thread David Leangen
Hello! I'm wondering if something has changed in 1.2.6 and the API docs are out of date, or if I just misunderstood the API docs... I am trying to get the URL of the request (the complete URL in the form http://my.company.com/blah/hello?a=b&c=d). This is how: WebRequest request = getWebRequest

Re: [Wicket-user] wicket 1.3 and tomcat 5.5 filterStart severe error?

2007-06-29 Thread Nino Saturnino Martinez Vazquez Wael
thanks, now its working.. Thought that dependencies would have been setup... So belived that something else was causing it.. Igor Vaynberg wrote: > add this into your pom: > > > org.slf4j > slf4j-log4j12 > 1.0.1 > > > log4j >