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

2007-06-29 Thread Maurice Marrink
Neither am i :) And you could be right about me misusing the
principal, but using the actions of a permission for read write and
then logically separating permissions with read from permissions with
write in different principals does not seem like stretch to me.

Maurice

On 6/29/07, craigdd [EMAIL PROTECTED] wrote:

 I understand what you are saying and I see how you have accomplished
 something similar to what I'm trying to do, however it seems to me that you
 are miss using the concept of a Principal.  I'm not a security expert but a
 principal seems to point to an individual and not with something called
 write.  Write fits a little better into the concepts of ACL.

 -Craig


 Mr Mean wrote:
 
  By the way, I'm not saying wicket security is bad, other than my example
  I
  think it is a well put together framework that beats the hell out of
  using
  JAAS.
 
  Thanks, i appreciate that :)
 
  I've had a pretty good look at wicket security but the conclusion that
  I've
  come to with that is it only supports the fact that you have pre defined
  roles within your application.
 
 
  Well i am not saying it is impossible to declare and add new
  permissions / principals at runtime but i think it is generally
  undesirable to do so. Instead you should make your principals fine
  grained enough to be used as building blocks for  roles.
 
  I'm currently working on a multi tenant web application where the
  application provided a set of permission, such and read / write access to
  an
  object and each tenant in the application defines their own role heirachy
  based on those permissions.
 
  This is exactly what we are doing in our application. We have
  literally +- 1000 principals defined in our system. By allowing the
  users to group principals together they can build there own roles. We
  have multiple organizations in our application and each of them can
  completely redesign there user roles in the system (well only up to a
  point because we could not allow that, but that aside they could). We
  provide each organization with a set of default roles as we think will
  suit most of them but they are completely free to alter/ rename/
  delete/ whatever do with those roles because we do not depend on the
  roles but on the underlying principals, which are controlled by us. A
  big help is the fact that we made our principals imply each other
  (write implies read, etc)  So when a user designs there roles they
  don't have to check read access to page A and write access to page A
  but can suffice with write access to page A. Although most of our
  principals handle a couple of related pages we also have principals
  going as deep as individual components. For instance we have a large
  data grid, the principals are fine grained enough to give you read or
  write access up to the individual cell.
 
  Correct me if i am wrong but this seems to be what you want too.
 
  Maurice
 
 
  On 6/28/07, craigdd [EMAIL PROTECTED] wrote:
 
  I've had a pretty good look at wicket security but the conclusion that
  I've
  come to with that is it only supports the fact that you have pre defined
  roles within your application.
 
  I'm currently working on a multi tenant web application where the
  application provided a set of permission, such and read / write access to
  an
  object and each tenant in the application defines their own role heirachy
  based on those permissions.
 
  We are currently using acegi and I'm trying to figure out the best way to
  bake acl into wicket's components.  Example, a link is set to invisible
  if
  the authenticated use doesn't contain a role with the given permission of
  that link.  So lets say the link is to delete an object, the user must
  have
  a role with the permission to delete that object or the link will not
  show
  on the page.
 
  By the way, I'm not saying wicket security is bad, other than my example
  I
  think it is a well put together framework that beats the hell out of
  using
  JAAS.
 
  -Craig
 
 
  Mr Mean wrote:
  
   If you mean java Jaas like acl than swarm is what you are looking for.
   Optionally if you really want to use jaas and not some look alike i
   made up you could practically copy swarm and replace most objects with
   there jaas counterparts.
   However i chose not to use jaas because  we are using that in one of
   our projects right now and although it works it is less than optimal
   :) As soon as we make the switch to wicket 1.3.0 jaas will be replaced
   by swarm.
  
   You can also check out the example project here
  
  https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples
  
  
   Maurice
  
   On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   wicket's security model is completely generic
  
   see IAuthorizationStrategy - it is very abstract and thus can be used
  to
   implement any kind of authorization
  
   wicket-auth is just an example that implements basic role-based model
  
   see 

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:

 dependency
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 version1.0.1/version
 /dependency
 dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.14/version
 /dependency


 -igor


 On 6/28/07, *Nino Saturnino Martinez Vazquez Wael* 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Sorry for hanging on this for a couple of days...

 using the wicket 1.3 beta 2 release and

 mvn install on wicket quickstart project and the deploying on
 tomcat 6,
 with the war from target folder yields this on my laptop:


 jun 29, 2007 12:57:44 AM org.apache.catalina.core.StandardContext
 filterStart
 SEVERE: Exception starting filter quickstart
 java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
 at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:57)
 at
 org.apache.wicket.protocol.http.WicketFilter
 .clinit(WicketFilter.java:73)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

 at
 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0 (Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
 (ApplicationFilterConfig.java:397)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java
 :3693)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
 at
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
 at
 org.apache.catalina.core.ContainerBase.addChild
 (ContainerBase.java:741)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
 at
 org.apache.catalina.startup.HostConfig.deployWARs
 (HostConfig.java:714)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent
 (HostConfig.java:311)
 at
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
 at org.apache.catalina.core.StandardHost.start
 (StandardHost.java:719)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start
 (StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke (Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Jun 29, 2007 12:57:46 AM
 org.apache.catalina.core.ApplicationContext log
 INFO: ContextListener: contextInitialized()
 Jun 29, 2007 12:57:46 AM
 org.apache.catalina.core.ApplicationContext log
 INFO: SessionListener: contextInitialized()
 Jun 29, 2007 12:58:22 AM
 org.apache.catalina.core.StandardHostValve custom
 SEVERE: Exception Processing ErrorPage[errorCode=401,
 location=/401.jsp]

 Igor Vaynberg wrote:
 
 
  On 6/27/07, *Nino Saturnino Martinez Vazquez Wael*
   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
 
  Hi I
 
  am trying to start the quickstart project on tomcat and it
 throws
  servere: Error FilterStart error. We've tried 

[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=bc=d).

This is how:

WebRequest request = getWebRequestCycle().getWebRequest();
String baseUrl = request.getURL();


The API docs say:

getURL
public abstract java.lang.String getURL()
Retrieves the absolute URL of this request for local use. 

Returns:
The absolute request URL for local use



However, I am getting something that looks like

/hello///?wicket:interface=2:form.requestPassword::IFormSubmitListener

I don't mind anything after the ?, but I do need the _absolute_ URL,
meaning everything in the form I wrote above.

Did I misunderstand the API docs?


Thanks!
Dave




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
something similar to what I'm trying to do, however it seems to me that
you
are miss using the concept of a Principal.  I'm not a security expert but
a
principal seems to point to an individual and not with something called
write.  Write fits a little better into the concepts of ACL.

-Craig


Mr Mean wrote:

 By the way, I'm not saying wicket security is bad, other than my
example
 I
 think it is a well put together framework that beats the hell out of
 using
 JAAS.

 Thanks, i appreciate that :)

 I've had a pretty good look at wicket security but the conclusion that
 I've
 come to with that is it only supports the fact that you have pre
defined
 roles within your application.


 Well i am not saying it is impossible to declare and add new
 permissions / principals at runtime but i think it is generally
 undesirable to do so. Instead you should make your principals fine
 grained enough to be used as building blocks for  roles.

 I'm currently working on a multi tenant web application where the
 application provided a set of permission, such and read / write access
to
 an
 object and each tenant in the application defines their own role
heirachy
 based on those permissions.

 This is exactly what we are doing in our application. We have
 literally +- 1000 principals defined in our system. By allowing the
 users to group principals together they can build there own roles. We
 have multiple organizations in our application and each of them can
 completely redesign there user roles in the system (well only up to a
 point because we could not allow that, but that aside they could). We
 provide each organization with a set of default roles as we think will
 suit most of them but they are completely free to alter/ rename/
 delete/ whatever do with those roles because we do not depend on the
 roles but on the underlying principals, which are controlled by us. A
 big help is the fact that we made our principals imply each other
 (write implies read, etc)  So when a user designs there roles they
 don't have to check read access to page A and write access to page A
 but can suffice with write access to page A. Although most of our
 principals handle a couple of related pages we also have principals
 going as deep as individual components. For instance we have a large
 data grid, the principals are fine grained enough to give you read or
 write access up to the individual cell.

 Correct me if i am wrong but this seems to be what you want too.

 Maurice


 On 6/28/07, craigdd [EMAIL PROTECTED] wrote:

 I've had a pretty good look at wicket security but the conclusion that
 I've
 come to with that is it only supports the fact that you have pre
defined
 roles within your application.

 I'm currently working on a multi tenant web application where the
 application provided a set of permission, such and read / write access
to
 an
 object and each tenant in the application defines their own role
heirachy
 based on those permissions.

 We are currently using acegi and I'm trying to figure out the best way
to
 bake acl into wicket's components.  Example, a link is set to invisible
 if
 the authenticated use doesn't contain a role with the given permission
of
 that link.  So lets say the link is to delete an object, the user must
 have
 a role with the permission to delete that object or the link will not
 show
 on the page.

 By the way, I'm not saying wicket security is bad, other than my
example
 I
 think it is a well put together framework that beats the hell out of
 using
 JAAS.

 -Craig


 Mr Mean wrote:
 
  If you mean java Jaas like acl than swarm is what you are looking
for.
  Optionally if you really want to use jaas and not some look alike i
  made up you could practically copy swarm and replace most objects
with
  there jaas counterparts.
  However i chose not to use jaas because  we are using that in one of
  our projects right now and although it works it is less than optimal
  :) As soon as we make the switch to wicket 1.3.0 jaas will be
replaced
  by swarm.
 
  You can also check out the example project here
 

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples
 
 
  Maurice
 
  On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  wicket's security model is completely generic
 
  see IAuthorizationStrategy - it is very abstract and thus can be
used
 to
  implement any kind of authorization
 
  wicket-auth is just an example that implements basic role-based
model
 
  see wicket-stuff wasp and swarm projects
 
  http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
 
  -igor
 
 
  On 6/21/07, craigdd [EMAIL PROTECTED] wrote:
  
   Is wicket security based only on 

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 by
jvm classloader, and the other is by jetty.

What that mean is that you either have some jar files in you classpath or in
WEB-INF/lib or you have some classes in WEB-INF/classes that uses jar files
in you classpath.

get if it don´t worx

/Flemming



On 6/29/07, Watter [EMAIL PROTECTED] wrote:




Flemming Boller wrote:

 Hi

 Well after some   debugging, searching nabble.com etc.. I finally
 found out what the problem was.

 After printing out the classloaders of the
 MySession.class.getClassloader()
 and the GetSesion().getClass().getCla...  I found out it was 2
 differentclassloaders.

 Reading at some Jetty forums about other similar problems I found out
that
 because
 my Intellij was setup (by me :-) to compile output to WEB-INF/classes,
 that
 would require the wicket.jar files (and others) to be placed under
 WEB-INF/lib.

 BUT Intellij did not do that. It just referenced the jar files in my
local
 maven repo.

 So, after setting Intellij to compile to project-root/classes it worx
now.

 I hope somebody can use this, because...dammit this has taken time...

 Well thanks for you quick responses!

 /Flemming

Flemming,

I wonder if you might explain what caused your problem in a little more
detail as my rather simple mind didn't quite comprehend. ;)

I am receiving the exact same error as you and I suspect that the cause
lies
in something like the same area, however our situations do appear to be at
least slightly different.

I am using the ReloadingWicketFilter. One of the dangers one must watch
out
for when using it is loading the same class in two different classloaders
exactly as you described. I am using Maven 2 and mvn jetty:run to deploy
my application for local testing. Everything seems to work fine until I
use
my browser back button and click on a link from the page I went back to;
any
link. At that point I receive the exact same exception you described
earlier
in this thread. If I disable the ReloadingWicketFilter, then the
application
behaves normally and I do not receive an error.

I compile my classes to the default location (i.e.
module_home/target/classes) and I see that when maven starts, this
location
is added to the classpath. For additional information, one could look at
the
thread where I've been hashing through this:

http://www.nabble.com/http://www.nabble.com/Re%3A-Using-hot-reloading-of-classes-with-Spring-%28Was%3A-Has-something-changed-in-markup-inheritance-%29-p11335416.html

Clearly, I'm loading my custom WebSession class into two different
classloaders, but for the life me I can't figure out where or how. Given
your experience, do you have any suggestions?

Matt





--
View this message in context:
http://www.nabble.com/Classcastexception-and-getSession-tf3979399.html#a11352814
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 ${ComponentPermission}
nl.topicus.krypton.web.pages.PageA, inherit, render;
};
grant principal ${RechtenSet} PageA.write
{
//write permission for all form components on page A
permission ${ComponentPermission}
nl.topicus.krypton.web.pages.PageA:form, inherit, enable;
};
grant principal ${RechtenSet} PageA.delete
{
//allow separate delete links to be clicked
permission ${ComponentPermission}
nl.topicus.krypton.web.pages.PageA:deleteLink1, enable;
permission ${ComponentPermission}
nl.topicus.krypton.web.pages.PageA:deleteLink2, enable;
};

I know the api doc for principal states which can be used to
represent any entity, such as an individual, a corporation, or a login
id. I admit it is shamelessly copied from java.security.Principal :)
And now that i think about i can see the way we use principals like
permissions now actually comes from our dealings with jaas. But i
still feel it is not a big issue. I'll just rewrite the api doc ;)

Maurice

On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 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
  something similar to what I'm trying to do, however it seems to me that
 you
  are miss using the concept of a Principal.  I'm not a security expert but
 a
  principal seems to point to an individual and not with something called
  write.  Write fits a little better into the concepts of ACL.
 
  -Craig
 
 
  Mr Mean wrote:
  
   By the way, I'm not saying wicket security is bad, other than my
 example
   I
   think it is a well put together framework that beats the hell out of
   using
   JAAS.
  
   Thanks, i appreciate that :)
  
   I've had a pretty good look at wicket security but the conclusion that
   I've
   come to with that is it only supports the fact that you have pre
 defined
   roles within your application.
  
  
   Well i am not saying it is impossible to declare and add new
   permissions / principals at runtime but i think it is generally
   undesirable to do so. Instead you should make your principals fine
   grained enough to be used as building blocks for  roles.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write access
 to
   an
   object and each tenant in the application defines their own role
 heirachy
   based on those permissions.
  
   This is exactly what we are doing in our application. We have
   literally +- 1000 principals defined in our system. By allowing the
   users to group principals together they can build there own roles. We
   have multiple organizations in our application and each of them can
   completely redesign there user roles in the system (well only up to a
   point because we could not allow that, but that aside they could). We
   provide each organization with a set of default roles as we think will
   suit most of them but they are completely free to alter/ rename/
   delete/ whatever do with those roles because we do not depend on the
   roles but on the underlying principals, which are controlled by us. A
   big help is the fact that we made our principals imply each other
   (write implies read, etc)  So when a user designs there roles they
   don't have to check read access to page A and write access to page A
   but can suffice with write access to page A. Although most of our
   principals handle a couple of related pages we also have principals
   going as deep as individual components. For instance we have a large
   data grid, the principals are fine grained enough to give you read or
   write access up to the individual cell.
  
   Correct me if i am wrong but this seems to be what you want too.
  
   Maurice
  
  
   On 6/28/07, craigdd [EMAIL PROTECTED] wrote:
  
   I've had a pretty good look at wicket security but the conclusion that
   I've
   come to with that is it only supports the fact that you have pre
 defined
   roles within your application.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write access
 to
   an
   object and each tenant in the application defines their own role
 heirachy
   based on those permissions.
  
   We are currently using acegi and I'm trying to figure out the best way
 to
   bake acl into wicket's components.  Example, a link is set to invisible
   if
   the authenticated use doesn't contain a role with the given permission
 of
   that link.  So lets 

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 is deleted from DB. That means,
 before performing any operation related to that entity; first it will
 check
 if that entity exists or not. If that entity no longer exist then it will
 through custom exception.
 When this exception occurs I am redirecting it to my Error page.

 For this I have added following piece of code to Application page.
 @Override
 protected IRequestCycleFactory getDefaultRequestCycleFactory() {
 return new IRequestCycleFactory(){
 /**
  * Serial Version UID
  */
 private static final long serialVersionUID = 1L;

 public RequestCycle newRequestCycle(wicket.Session session,
 Request request, Response response) {
 return new

 WebRequestCycle((WebSession)session,(WebRequest)request,(WebResponse)response){

 @Override
 public Page onRuntimeException(Page page,
 RuntimeException exception) {
 if(exception instanceof CustomEntityException){
 return new MyErrorPage();
 }
 return super.onRuntimeException(page, exception);
 }
 };
 }

 };
 }

 This works fine in case of AjaxLink but not in case of Link

 Am I missing something for this implementation to work for Link?
 Is there any other option to meet this requirement?
 
 
 set a breakpoint and make sure your if clause is getting hit. the
 exception
 might get wrapped in another, so you might have to search for root cause
 and
 do instanceof on that.
 
 -igor
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Custom-Exception-in-onClick-of-Link-tf3993262.html#a11339624
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-Exception-in-onClick-of-Link-tf3993262.html#a11356516
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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..

 Igor Vaynberg wrote:
 add this into your pom:

 dependency
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 version1.0.1/version
 /dependency
 dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.14/version
 /dependency


 -igor


 On 6/28/07, *Nino Saturnino Martinez Vazquez Wael* 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Sorry for hanging on this for a couple of days...

 using the wicket 1.3 beta 2 release and

 mvn install on wicket quickstart project and the deploying on
 tomcat 6,
 with the war from target folder yields this on my laptop:


 jun 29, 2007 12:57:44 AM org.apache.catalina.core.StandardContext
 filterStart
 SEVERE: Exception starting filter quickstart
 java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
 at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:57)
 at
 org.apache.wicket.protocol.http.WicketFilter
 .clinit(WicketFilter.java:73)
...

/Gwyn


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 Wicket - JExcel example
 
 Cell cell = sheet.getCell(col, row);
 values[row][col] = new XCell(row,
 col,cell.getContents());
 
 return values[row][col].getData();
 
 
 The Cell object is from JExcel and its where Datatype should be retrieved
 from
 
 2. To validate,
 
 You can write a default wicket validator (See Validator examples),
 The validator can access the Textfield arrays and then check for validity
 
 its shouldn't be too difficult anyway
 
 
 
 On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:

 I think that is within the scope of the JExcel API and not a wicket
 thing.
 Refer to the JExcel API doc first

 On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I am Newbie of Wicket. I have downloaded sample example to read XLS
 file
 
  using Wicket with JExcel.
  It's working fine.
 
  My doubt is 1.How can I retrieve the datatype of each cell? and 2. How
  to
  validate the each cell values?
 
  Please give me some Suggestions.
 
  Thanking You.
  Regards,
  Edi
  --
  View this message in context:
  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 --


 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 show me if yu find.

Look for a javascript library that can allow a user to dynamically expand
the textfield lenght with his mouse. so that we can attach that Behavior to
each Textfield



On 6/29/07, Edi [EMAIL PROTECTED] wrote:



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 Wicket - JExcel example

 Cell cell = sheet.getCell(col, row);
 values[row][col] = new XCell(row,
 col,cell.getContents());

 return values[row][col].getData();


 The Cell object is from JExcel and its where Datatype should be
retrieved
 from

 2. To validate,

 You can write a default wicket validator (See Validator examples),
 The validator can access the Textfield arrays and then check for
validity

 its shouldn't be too difficult anyway



 On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:

 I think that is within the scope of the JExcel API and not a wicket
 thing.
 Refer to the JExcel API doc first

 On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I am Newbie of Wicket. I have downloaded sample example to read XLS
 file
 
  using Wicket with JExcel.
  It's working fine.
 
  My doubt is 1.How can I retrieve the datatype of each cell? and 2.
How
  to
  validate the each cell values?
 
  Please give me some Suggestions.
 
  Thanking You.
  Regards,
  Edi
  --
  View this message in context:
  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 --




-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 navigation.

Looking on the Internet I found some interesting tricks [1] and [2].
Basically that make use of a hidden  iframe to store the history.

Perhaps a solution to handle versioning for a generic ajax action could be
very complex.

But a specific behaviour just to handle AjaxTabbedPanel versioning I think
it would not so difficult.

I will make some experiment and let you know.



Thank Paolo


[1] http://dev2dev.bea.com/pub/a/2006/01/ajax-back-button.html
[2]
http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html





On 6/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 not really, that part (the client part) is not really implemented yet.

 waiting for someone to do it :)

FYI Paolo, we've been chatting about this before and had some ideas,
but it's a hard problem to solve. Unlike GWT (who does a good job
supporting the back button with Ajax), Wicket doesn't 'own' the
browser, so we'd have to use complicated workarounds, especially since
it has to be aligned with our normal page versioning. But biggest
problem right now that keeps us working on this is lack of time.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 delete?) {
  @Override
  protected void onCancel() {
  replaceWith(DeleteLink.this);
  }
 
  @Override
  protected void onConfirm() {
  Filter filter =
  (Filter)getParent().getParent().getModelObject();
  service.delete(filter);
  replaceWith(DeleteLink.this);
  }
  });
  }

 Code looks fine to me. And I'm using replaceWith quite a bit and it
 works fine. Can you try to set a break point in onClick, see if it
 arrives there and step into the replace code?


The onClick() is definitely getting called (I set breakpoints this
morning...) but the panel just isn't getting replaced.  Now, is there any
problem with replacing a link (in this case) with a panel?  There's no
impedence mismatch between the a and the span that would normally get
used?


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 wicket 1.4 (in a nicer way than this (generic utility
method), of course):

final StringBuilder
builder = new StringBuilder();
StackTraceElement[]
elements = t.getStackTrace();
for (int i = 0; i 
elements.length; i++) {
builder.append
(elements[i]);
}
throw new
WicketRuntimeException(After  + timeout +  the Pagemap 
+
pageMapName +  is still locked by:  + t
+ ,
giving up trying to get the page for path:  + path + \nStack
Trace:  + builder.toString());



Eelco Hillenius wrote:

 makes sense all right.  is there any way we could print out a stack
trace
 of
 the thread that's holding the monitor we're trying to grab?  maybe via
 JMX?
 this would be extremely useful when this exception is thrown!

 We've had a thread about that, and the conclusion was that this is
 possible (I believe Johan built it) but only with Java 5.

 Eelco


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 for this
kind
we just make it public.

johan


On 6/29/07, Maurice Marrink [EMAIL PROTECTED] wrote:


Hi,
I am in the process of making wasp and swarm play nicer within a
clustered environment.
Johan suggested calling dirty() whenever i make a change in the
session (which is where i store everything indirectly). But because i
have login method on my authorization strategy (which should call
dirty after a login) and Session.dirty() is protected i can not call
dirty unless i expose it in my WaspSession. Before i do that however i
thought i check here if there was a special reason not to make dirty()
public. I could not come up with one especially since bind is also
public which kind of has the same (side)effect.

So my question, what is the reason dirty() is not public and if there
is no reason could you make it public.

Thanks,

Maurice

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, 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 wicket 1.4 (in a nicer way than this (generic utility
  method), of course):
 
  final
 StringBuilder builder = new StringBuilder();
 
 StackTraceElement[]
 elements = t.getStackTrace();
  for (int
 i = 0; i  elements.length; i++) {
 
 builder.append(elements[i]);
  }
  throw new
 WicketRuntimeException(After  + timeout +  the Pagemap 
 
 +
 pageMapName +  is still locked by:  + t
 
 +
 , giving up trying to get the page for path:  + path + \nStack
  Trace:  + builder.toString());
 
 
 
  Eelco Hillenius wrote:
  
   makes sense all right.  is there any way we could print out a stack
 trace
   of
   the thread that's holding the monitor we're trying to grab?  maybe via
   JMX?
   this would be extremely useful when this exception is thrown!
  
   We've had a thread about that, and the conclusion was that this is
   possible (I believe Johan built it) but only with Java 5.
  
   Eelco
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 [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, 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 wicket 1.4 (in a nicer way than this (generic
utility
  method), of course):
 
  final
 StringBuilder builder = new StringBuilder();
 
 StackTraceElement[]
 elements = t.getStackTrace();
  for (int
 i = 0; i  elements.length; i++) {
 
 builder.append(elements[i]);
  }
  throw new
 WicketRuntimeException(After  + timeout +  the Pagemap 
 
 +
 pageMapName +  is still locked by:  + t
 
 +
 , giving up trying to get the page for path:  + path + \nStack
  Trace:  + builder.toString());
 
 
 
  Eelco Hillenius wrote:
  
   makes sense all right.  is there any way we could print out a stack
 trace
   of
   the thread that's holding the monitor we're trying to grab?  maybe
via
   JMX?
   this would be extremely useful when this exception is thrown!
  
   We've had a thread about that, and the conclusion was that this is
   possible (I believe Johan built it) but only with Java 5.
  
   Eelco
  
  

-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 show me if yu
 find.
 
 Look for a javascript library that can allow a user to dynamically expand
 the textfield lenght with his mouse. so that we can attach that Behavior
 to
 each Textfield
 
 
 
 On 6/29/07, Edi [EMAIL PROTECTED] wrote:


 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 Wicket - JExcel example
 
  Cell cell = sheet.getCell(col, row);
  values[row][col] = new XCell(row,
  col,cell.getContents());
 
  return values[row][col].getData();
 
 
  The Cell object is from JExcel and its where Datatype should be
 retrieved
  from
 
  2. To validate,
 
  You can write a default wicket validator (See Validator examples),
  The validator can access the Textfield arrays and then check for
 validity
 
  its shouldn't be too difficult anyway
 
 
 
  On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 
  I think that is within the scope of the JExcel API and not a wicket
  thing.
  Refer to the JExcel API doc first
 
  On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
  
  
   Hi,
  
   I am Newbie of Wicket. I have downloaded sample example to read XLS
  file
  
   using Wicket with JExcel.
   It's working fine.
  
   My doubt is 1.How can I retrieve the datatype of each cell? and 2.
 How
   to
   validate the each cell values?
  
   Please give me some Suggestions.
  
   Thanking You.
   Regards,
   Edi
   --
   View this message in context:
   http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  --
 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11357007
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 PROTECTED] wrote:

  Hi
 
  I am encountering a behaviour on 1.3 trunk forminput on
  wicket-examples which I think wasn't the same before.(been away from wicket
  for a while)
 
  When I clear the String TextField (which is a requiredTextField) to
  force an error , my values on the
  Radio/Check/Group seems to be cleared as well...
 
  Is this normal?


 this is definetely not normal, please file a bug report.

 -igor



  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



Index: 
/Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
===
--- 
/Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
  (revision 551819)
+++ 
/Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
  (working copy)
@@ -123,7 +123,7 @@
item.add(new Radio(radio, 
item.getModel()));
item.add(new Label(number, 
item.getModelObjectAsString()));
};
-   };
+   }.setReuseItems(true);
group.add(persons);
 
CheckGroup checks = new CheckGroup(numbersCheckGroup);
@@ -135,7 +135,8 @@
item.add(new Check(check, 
item.getModel()));
item.add(new Label(number, 
item.getModelObjectAsString()));
};
-   };
+   }.setReuseItems(true);
+   
checks.add(checksList);
 
add(new ListMultipleChoice(siteSelection, SITES));
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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(new AttributeModifier(style,true, new
Model(background-color: #FF;)));
   fc.error(error.toolongvalue,null);
 }else{
 fc.add(new AttributeModifier(style,true, new
Model(background-color: normal-color;)));
}

   }
 });
item.add(tx);


something like dat...just buzz around
On 6/29/07, Edi [EMAIL PROTECTED] wrote:



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 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 show me if yu
 find.

 Look for a javascript library that can allow a user to dynamically
expand
 the textfield lenght with his mouse. so that we can attach that Behavior
 to
 each Textfield



 On 6/29/07, Edi [EMAIL PROTECTED] wrote:


 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 Wicket - JExcel example
 
  Cell cell = sheet.getCell(col, row);
  values[row][col] = new XCell(row,
  col,cell.getContents());
 
  return
values[row][col].getData();
 
 
  The Cell object is from JExcel and its where Datatype should be
 retrieved
  from
 
  2. To validate,
 
  You can write a default wicket validator (See Validator examples),
  The validator can access the Textfield arrays and then check for
 validity
 
  its shouldn't be too difficult anyway
 
 
 
  On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 
  I think that is within the scope of the JExcel API and not a wicket
  thing.
  Refer to the JExcel API doc first
 
  On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
  
  
   Hi,
  
   I am Newbie of Wicket. I have downloaded sample example to read
XLS
  file
  
   using Wicket with JExcel.
   It's working fine.
  
   My doubt is 1.How can I retrieve the datatype of each cell? and 2.
 How
   to
   validate the each cell values?
  
   Please give me some Suggestions.
  
   Thanking You.
   Regards,
   Edi
   --
   View this message in context:
   http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  
 

-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  --
 
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this 

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 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(new AttributeModifier(style,true, new
Model(background-color: #FF;)));
fc.error(error.toolongvalue,null);
  }else{
  fc.add(new AttributeModifier(style,true, new
Model(background-color: normal-color;)));
 }

}
  });
  item.add(tx);


something like dat...just buzz around
On 6/29/07, Edi [EMAIL PROTECTED]  wrote:


 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 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 show me if yu
  find.
 
  Look for a javascript library that can allow a user to dynamically
 expand
  the textfield lenght with his mouse. so that we can attach that
 Behavior
  to
  each Textfield
 
 
 
  On 6/29/07, Edi [EMAIL PROTECTED] wrote:
 
 
  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 Wicket - JExcel example
  
   Cell cell = sheet.getCell(col, row);
   values[row][col] = new
 XCell(row,
   col,cell.getContents());
  
   return
 values[row][col].getData();
  
  
   The Cell object is from JExcel and its where Datatype should be
  retrieved
   from
  
   2. To validate,
  
   You can write a default wicket validator (See Validator examples),
   The validator can access the Textfield arrays and then check for
  validity
  
   its shouldn't be too difficult anyway
  
  
  
   On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  
   I think that is within the scope of the JExcel API and not a
 wicket
   thing.
   Refer to the JExcel API doc first
  
   On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
   
   
Hi,
   
I am Newbie of Wicket. I have downloaded sample example to read
 XLS
   file
   
using Wicket with JExcel.
It's working fine.
   
My doubt is 1.How can I retrieve the datatype of each cell? and
 2.
  How
to
validate the each cell values?
   
Please give me some Suggestions.
   
Thanking You.
Regards,
Edi
--
View this message in context:
   
 http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
   
  
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
 take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
   --
  
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by 

[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 get
the actual data for the page is effectively immediate!

I'm curently using a DefaultDataTable and the quick hack is to just
hard-code DataProvider.size() to just return a fixed number, but while
that's probably OK, it's sub-optimal (it is just a util for my own
use though, really).  Having said that, I'd be interested in
alternative suggestions.

It's the Production DB only that shows this behaviour (which is
probably related to them not purging the the old data for 4 years or
so, so I'm limited as to what might be possible with the DB itself).

-- 
Best regards,
 Gwyn  mailto:[EMAIL PROTECTED]


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 to.   
there're 3 classes: BasePage, and HomePage, SignInPage which extend 
BasePage.  i'm creating RefreshingView in the BasePage.

the code is below.  am i doing something wrong?

Thanks,
Vadim

HTML:
ul 
   li wicket:id=refreshingView
 a href=# wicket:id=item[Item Here]/a
   /li
/ul

Java:
public class BasePage
{
Form form = new ...;
final ListIModel items = new ArrayListIModel();
items.add(new AbstractReadOnlyModel()
  {
 private static final long serialVersionUID = 1L;
@Override
 public Object getObject()
{
return (new Link(item)
{
//@Override
//		  public boolean isEnabled() { return (getPage().getClass() != 
HomePage.class); }

  @Override
  public void onClick() { setResponsePage(HomePage.class); }
// });
}.setAutoEnable(true));
}
 });
items.add(new AbstractReadOnlyModel()
{
private static final long serialVersionUID = 1L;
@Override
public Object getObject()
{
  return (new Link(item)
{
//  @Override
//		public boolean isEnabled() { return (getPage().getClass() != 
SignInPage.class); }

@Override
public void onClick()
{ setResponsePage(SignInPage.class); }
//  });
}.setAutoEnable(true));
}
   });

form.add(new RefreshingView(refreshingView)
{
@Override
protected Iterator getItemModels() { return items.iterator(); }
@Override
protected void populateItem(Item item_)
{
   AbstractLink al = (AbstractLink) item_.getModelObject();
   if (item_.getIndex() == 0)
	 item_.add(new AttributeAppender(class, true, new 
Model(firstelement), ));

   item_.add(al);
}
   });

add(form);
}

_
Don’t miss your chance to WIN $10,000 and other great prizes from Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 of time/cpu to return, whereas to get
 the actual data for the page is effectively immediate!

 I'm curently using a DefaultDataTable and the quick hack is to just
 hard-code DataProvider.size() to just return a fixed number, but while
 that's probably OK, it's sub-optimal (it is just a util for my own
 use though, really).  Having said that, I'd be interested in
 alternative suggestions.

 It's the Production DB only that shows this behaviour (which is
 probably related to them not purging the the old data for 4 years or
 so, so I'm limited as to what might be possible with the DB itself).
   
I smell Postgres and just going to go out on a limb here.. :) triggers 
that update a counts table, db maintenance, or search the postgres 
perform archive for other ways to achieve this.. I'm pretty sure I see 
this question nearly every two weeks and from what I've read and 
remember it pretty much falls on the responsibility of the backend.  
There's also certainly more commentary in the wicket-users archives as well.

Good luck,

./C

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 exception

BUt validate is not working. so i am not able validate. please explain. I am
using your code only.

Please check
http://cwiki.apache.org/WICKET/how-to-work-with-excel-in-wicket-using-jexcel-api.html


Ayodeji Aladejebi wrote:
 
 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 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(new AttributeModifier(style,true, new
 Model(background-color: #FF;)));
 fc.error(error.toolongvalue,null);
   }else{
   fc.add(new AttributeModifier(style,true, new
 Model(background-color: normal-color;)));
  }

 }
   });
   item.add(tx);


 something like dat...just buzz around
 On 6/29/07, Edi [EMAIL PROTECTED]  wrote:
 
 
  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 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 show me if yu
   find.
  
   Look for a javascript library that can allow a user to dynamically
  expand
   the textfield lenght with his mouse. so that we can attach that
  Behavior
   to
   each Textfield
  
  
  
   On 6/29/07, Edi [EMAIL PROTECTED] wrote:
  
  
   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 Wicket - JExcel example
   
Cell cell = sheet.getCell(col, row);
values[row][col] = new
  XCell(row,
col,cell.getContents());
   
return
  values[row][col].getData();
   
   
The Cell object is from JExcel and its where Datatype should be
   retrieved
from
   
2. To validate,
   
You can write a default wicket validator (See Validator examples),
The validator can access the Textfield arrays and then check for
   validity
   
its shouldn't be too difficult anyway
   
   
   
On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   
I think that is within the scope of the JExcel API and not a
  wicket
thing.
Refer to the JExcel API doc first
   
On 6/28/07, Edi  [EMAIL PROTECTED] wrote:


 Hi,

 I am Newbie of Wicket. I have downloaded sample example to read
  XLS
file

 using Wicket with JExcel.
 It's working fine.

 My doubt is 1.How can I retrieve the datatype of each cell? and
  2.
   How
 to
 validate the each cell values?

 Please give me some Suggestions.

 Thanking You.
 Regards,
 Edi
 --
 View this message in context:

  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
 Sent from the Wicket - User mailing list archive at Nabble.com.




   
  
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
  take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
   
--
   
   
   
   
  
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
   

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 disable the link this will be the place to do 
it.  anything else?


Thanks



From: Martijn Dashorst [EMAIL PROTECTED]
Reply-To: wicket-user@lists.sourceforge.net
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] RefreshingView and Link.setAutoEnable
Date: Fri, 29 Jun 2007 14:14:18 +0200

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 auto-enabling
if (getAutoEnable())
{
// the link is enabled if this link doesn't link to the 
current page
return !linksTo(getPage());
}
return super.isEnabled();
}

Martijn

On 6/29/07, Vadim Tesis [EMAIL PROTECTED] wrote:
 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 to.
 there're 3 classes: BasePage, and HomePage, SignInPage which extend
 BasePage.  i'm creating RefreshingView in the BasePage.
 the code is below.  am i doing something wrong?

 Thanks,
 Vadim

 HTML:
 ul 
 li wicket:id=refreshingView
   a href=# wicket:id=item[Item Here]/a
 /li
 /ul

 Java:
 public class BasePage
 {
 Form form = new ...;
 final ListIModel items = new ArrayListIModel();
 items.add(new AbstractReadOnlyModel()
{
  private static final long serialVersionUID = 1L;
 @Override
  public Object getObject()
 {
 return (new Link(item)
 {
 //@Override
 //public boolean isEnabled() { return 
(getPage().getClass() !=

 HomePage.class); }
   @Override
   public void onClick() { 
setResponsePage(HomePage.class); }

 // });
 }.setAutoEnable(true));
 }
   });
 items.add(new AbstractReadOnlyModel()
 {
 private static final long serialVersionUID = 1L;
 @Override
 public Object getObject()
 {
   return (new Link(item)
 {
 //  @Override
 //  public boolean isEnabled() { return 
(getPage().getClass() !=

 SignInPage.class); }
 @Override
 public void onClick()
 { setResponsePage(SignInPage.class); }
 //  });
 }.setAutoEnable(true));
 }
 });

 form.add(new RefreshingView(refreshingView)
 {
 @Override
 protected Iterator getItemModels() { return items.iterator(); }
 @Override
 protected void populateItem(Item item_)
 {
AbstractLink al = (AbstractLink) item_.getModelObject();
if (item_.getIndex() == 0)
  item_.add(new AttributeAppender(class, true, new
 Model(firstelement), ));
item_.add(al);
 }
 });

 add(form);
 }

 _
 Don't miss your chance to WIN $10,000 and other great prizes from 
Microsoft

 Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/



 
-

 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



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 auto-enabling
if (getAutoEnable())
{
// the link is enabled if this link doesn't link to the 
current page
return !linksTo(getPage());
}
return super.isEnabled();
}

Martijn

On 6/29/07, Vadim Tesis [EMAIL PROTECTED] wrote:
 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 to.
 there're 3 classes: BasePage, and HomePage, SignInPage which extend
 BasePage.  i'm creating RefreshingView in the BasePage.
 the code is below.  am i doing something wrong?

 Thanks,
 Vadim

 HTML:
 ul 
 li wicket:id=refreshingView
   a href=# wicket:id=item[Item Here]/a
 /li
 /ul

 Java:
 public class BasePage
 {
 Form form = new ...;
 final ListIModel items = new ArrayListIModel();
 items.add(new AbstractReadOnlyModel()
{
  private static final long serialVersionUID = 1L;
 @Override
  public Object getObject()
 {
 return (new Link(item)
 {
 //@Override
 //public boolean isEnabled() { return (getPage().getClass() !=
 HomePage.class); }
   @Override
   public void onClick() { setResponsePage(HomePage.class); }
 // });
 }.setAutoEnable(true));
 }
   });
 items.add(new AbstractReadOnlyModel()
 {
 private static final long serialVersionUID = 1L;
 @Override
 public Object getObject()
 {
   return (new Link(item)
 {
 //  @Override
 //  public boolean isEnabled() { return (getPage().getClass() !=
 SignInPage.class); }
 @Override
 public void onClick()
 { setResponsePage(SignInPage.class); }
 //  });
 }.setAutoEnable(true));
 }
 });

 form.add(new RefreshingView(refreshingView)
 {
 @Override
 protected Iterator getItemModels() { return items.iterator(); }
 @Override
 protected void populateItem(Item item_)
 {
AbstractLink al = (AbstractLink) item_.getModelObject();
if (item_.getIndex() == 0)
  item_.add(new AttributeAppender(class, true, new
 Model(firstelement), ));
item_.add(al);
 }
 });

 add(form);
 }

 _
 Don't miss your chance to WIN $10,000 and other great prizes from Microsoft
 Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 how
the link is rendered!), which can have a lot of consequences, or
analyzing the bytecode (which may have some security issues), and try
to come up with something magical.

 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 disable the link this will be the place to do
 it.  anything else?

This is a correct analysis of the situation.

Martijn

-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 [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, 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 wicket 1.4 (in a nicer way than this (generic
 utility
method), of course):
   
final
   StringBuilder builder = new StringBuilder();
   
  
 StackTraceElement[]
   elements = t.getStackTrace();
for
 (int
   i = 0; i  elements.length; i++) {
   
   builder.append(elements[i]);
}
throw
 new
   WicketRuntimeException(After  + timeout +  the Pagemap 
   
  
 +
   pageMapName +  is still locked by:  + t
   
  
 +
   , giving up trying to get the page for path:  + path + \nStack
Trace:  + builder.toString());
   
   
   
Eelco Hillenius wrote:

 makes sense all right.  is there any way we could print out a stack
   trace
 of
 the thread that's holding the monitor we're trying to grab?  maybe
 via
 JMX?
 this would be extremely useful when this exception is thrown!

 We've had a thread about that, and the conclusion was that this is
 possible (I believe Johan built it) but only with Java 5.

 Eelco


  
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
--
View this message in context:
  
 http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Wicket joins the Apache Software Foundation as Apache Wicket
  Join the wicket community at irc.freenode.net: ##wicket
  Wicket 1.2.6 contains a very important fix. Download Wicket now!
  http://wicketframework.org
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




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...  sigh/

On 6/29/07, Johan Compagner [EMAIL PROTECTED] wrote:


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 delete?) {
   @Override
   protected void onCancel() {
   replaceWith(DeleteLink.this);
   }
  
   @Override
   protected void onConfirm() {
   Filter filter =
   (Filter)getParent().getParent().getModelObject();
   service.delete(filter);
   replaceWith(DeleteLink.this);
   }
   });
   }
 
  Code looks fine to me. And I'm using replaceWith quite a bit and it
  works fine. Can you try to set a break point in onClick, see if it
  arrives there and step into the replace code?


 The onClick() is definitely getting called (I set breakpoints this
 morning...) but the panel just isn't getting replaced.  Now, is there any
 problem with replacing a link (in this case) with a panel?  There's no
 impedence mismatch between the a and the span that would normally get
 used?



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 an example, they have an Authentication object that has a
method getPrincipal which if you read their javadoc makes it pretty clear
that an authenticated entity has one principal, which also seems to fit with
JAAS.

-Craig


Mr Mean wrote:
 
 Neither am i :) And you could be right about me misusing the
 principal, but using the actions of a permission for read write and
 then logically separating permissions with read from permissions with
 write in different principals does not seem like stretch to me.
 
 Maurice
 
 On 6/29/07, craigdd [EMAIL PROTECTED] wrote:

 I understand what you are saying and I see how you have accomplished
 something similar to what I'm trying to do, however it seems to me that
 you
 are miss using the concept of a Principal.  I'm not a security expert but
 a
 principal seems to point to an individual and not with something called
 write.  Write fits a little better into the concepts of ACL.

 -Craig


 Mr Mean wrote:
 
  By the way, I'm not saying wicket security is bad, other than my
 example
  I
  think it is a well put together framework that beats the hell out of
  using
  JAAS.
 
  Thanks, i appreciate that :)
 
  I've had a pretty good look at wicket security but the conclusion that
  I've
  come to with that is it only supports the fact that you have pre
 defined
  roles within your application.
 
 
  Well i am not saying it is impossible to declare and add new
  permissions / principals at runtime but i think it is generally
  undesirable to do so. Instead you should make your principals fine
  grained enough to be used as building blocks for  roles.
 
  I'm currently working on a multi tenant web application where the
  application provided a set of permission, such and read / write access
 to
  an
  object and each tenant in the application defines their own role
 heirachy
  based on those permissions.
 
  This is exactly what we are doing in our application. We have
  literally +- 1000 principals defined in our system. By allowing the
  users to group principals together they can build there own roles. We
  have multiple organizations in our application and each of them can
  completely redesign there user roles in the system (well only up to a
  point because we could not allow that, but that aside they could). We
  provide each organization with a set of default roles as we think will
  suit most of them but they are completely free to alter/ rename/
  delete/ whatever do with those roles because we do not depend on the
  roles but on the underlying principals, which are controlled by us. A
  big help is the fact that we made our principals imply each other
  (write implies read, etc)  So when a user designs there roles they
  don't have to check read access to page A and write access to page A
  but can suffice with write access to page A. Although most of our
  principals handle a couple of related pages we also have principals
  going as deep as individual components. For instance we have a large
  data grid, the principals are fine grained enough to give you read or
  write access up to the individual cell.
 
  Correct me if i am wrong but this seems to be what you want too.
 
  Maurice
 
 
  On 6/28/07, craigdd [EMAIL PROTECTED] wrote:
 
  I've had a pretty good look at wicket security but the conclusion that
  I've
  come to with that is it only supports the fact that you have pre
 defined
  roles within your application.
 
  I'm currently working on a multi tenant web application where the
  application provided a set of permission, such and read / write access
 to
  an
  object and each tenant in the application defines their own role
 heirachy
  based on those permissions.
 
  We are currently using acegi and I'm trying to figure out the best way
 to
  bake acl into wicket's components.  Example, a link is set to
 invisible
  if
  the authenticated use doesn't contain a role with the given permission
 of
  that link.  So lets say the link is to delete an object, the user must
  have
  a role with the permission to delete that object or the link will not
  show
  on the page.
 
  By the way, I'm not saying wicket security is bad, other than my
 example
  I
  think it is a well put together framework that beats the hell out of
  using
  JAAS.
 
  -Craig
 
 
  Mr Mean wrote:
  
   If you mean java Jaas like acl than swarm is what you are looking
 for.
   Optionally if you really want to use jaas and not some look alike i
   made up you could practically copy swarm and replace most objects
 with
   there jaas counterparts.
   However i chose not to use jaas because  we are using that in one of
   our projects right now and although it works it is less than optimal
   

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 replacement wouldn't really change the state
 of the DT so when it rerenders itself it would render it's entire tree as it
 iterates across all the rows and overwrite what I just changed.  That sounds
 like the probably culprit.  Thoughts?


 On 6/29/07, Evan Chooly  [EMAIL PROTECTED] wrote:
  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...  sigh/
 
 
 
  On 6/29/07, Johan Compagner  [EMAIL PROTECTED] wrote:
   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 delete?) {
  @Override
  protected void onCancel() {
  replaceWith(DeleteLink.this);
  }
 
  @Override
  protected void onConfirm() {
  Filter filter =
  (Filter)getParent().getParent().getModelObject();
  service.delete(filter);
  replaceWith(DeleteLink.this);
  }
  });
  }

 Code looks fine to me. And I'm using replaceWith quite a bit and it
 works fine. Can you try to set a break point in onClick, see if it
 arrives there and step into the replace code?
   
   
The onClick() is definitely getting called (I set breakpoints this
 morning...) but the panel just isn't getting replaced.  Now, is there any
 problem with replacing a link (in this case) with a panel?  There's no
 impedence mismatch between the a and the span that would normally get
 used?
   
   
   
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 has 0 or more Actions.

Permissions and actions are named pretty straight forward i think.

Maurice

On 6/29/07, craigdd [EMAIL PROTECTED] wrote:

 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 an example, they have an Authentication object that has a
 method getPrincipal which if you read their javadoc makes it pretty clear
 that an authenticated entity has one principal, which also seems to fit with
 JAAS.

 -Craig


 Mr Mean wrote:
 
  Neither am i :) And you could be right about me misusing the
  principal, but using the actions of a permission for read write and
  then logically separating permissions with read from permissions with
  write in different principals does not seem like stretch to me.
 
  Maurice
 
  On 6/29/07, craigdd [EMAIL PROTECTED] wrote:
 
  I understand what you are saying and I see how you have accomplished
  something similar to what I'm trying to do, however it seems to me that
  you
  are miss using the concept of a Principal.  I'm not a security expert but
  a
  principal seems to point to an individual and not with something called
  write.  Write fits a little better into the concepts of ACL.
 
  -Craig
 
 
  Mr Mean wrote:
  
   By the way, I'm not saying wicket security is bad, other than my
  example
   I
   think it is a well put together framework that beats the hell out of
   using
   JAAS.
  
   Thanks, i appreciate that :)
  
   I've had a pretty good look at wicket security but the conclusion that
   I've
   come to with that is it only supports the fact that you have pre
  defined
   roles within your application.
  
  
   Well i am not saying it is impossible to declare and add new
   permissions / principals at runtime but i think it is generally
   undesirable to do so. Instead you should make your principals fine
   grained enough to be used as building blocks for  roles.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write access
  to
   an
   object and each tenant in the application defines their own role
  heirachy
   based on those permissions.
  
   This is exactly what we are doing in our application. We have
   literally +- 1000 principals defined in our system. By allowing the
   users to group principals together they can build there own roles. We
   have multiple organizations in our application and each of them can
   completely redesign there user roles in the system (well only up to a
   point because we could not allow that, but that aside they could). We
   provide each organization with a set of default roles as we think will
   suit most of them but they are completely free to alter/ rename/
   delete/ whatever do with those roles because we do not depend on the
   roles but on the underlying principals, which are controlled by us. A
   big help is the fact that we made our principals imply each other
   (write implies read, etc)  So when a user designs there roles they
   don't have to check read access to page A and write access to page A
   but can suffice with write access to page A. Although most of our
   principals handle a couple of related pages we also have principals
   going as deep as individual components. For instance we have a large
   data grid, the principals are fine grained enough to give you read or
   write access up to the individual cell.
  
   Correct me if i am wrong but this seems to be what you want too.
  
   Maurice
  
  
   On 6/28/07, craigdd [EMAIL PROTECTED] wrote:
  
   I've had a pretty good look at wicket security but the conclusion that
   I've
   come to with that is it only supports the fact that you have pre
  defined
   roles within your application.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write access
  to
   an
   object and each tenant in the application defines their own role
  heirachy
   based on those permissions.
  
   We are currently using acegi and I'm trying to figure out the best way
  to
   bake acl into wicket's components.  Example, a link is set to
  invisible
   if
   the authenticated use doesn't contain a role with the given permission
  of
   that link.  So lets say the link is to delete an object, the user must
   have
   a role with the permission to delete that object or the link will not
   show
   on the page.
  
   By the way, I'm not saying wicket 

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
iterates across all the rows and overwrite what I just changed.  That sounds
like the probably culprit.  Thoughts?

On 6/29/07, Evan Chooly  [EMAIL PROTECTED] wrote:


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...  sigh/

On 6/29/07, Johan Compagner  [EMAIL PROTECTED] wrote:

 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 delete?) {
@Override
protected void onCancel() {
replaceWith(DeleteLink.this);
}
   
@Override
protected void onConfirm() {
Filter filter =
(Filter)getParent().getParent().getModelObject();
service.delete(filter);
replaceWith(DeleteLink.this);
}
});
}
  
   Code looks fine to me. And I'm using replaceWith quite a bit and it
   works fine. Can you try to set a break point in onClick, see if it
   arrives there and step into the replace code?
 
 
  The onClick() is definitely getting called (I set breakpoints this
  morning...) but the panel just isn't getting replaced.  Now, is there any
  problem with replacing a link (in this case) with a panel?  There's no
  impedence mismatch between the a and the span that would normally get
  used?
 
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

2007-06-29 Thread PostCard





   






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 that are available.

-Craig


Mr Mean wrote:
 
 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 has 0 or more Actions.
 
 Permissions and actions are named pretty straight forward i think.
 
 Maurice
 
 On 6/29/07, craigdd [EMAIL PROTECTED] wrote:

 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 an example, they have an Authentication object that has a
 method getPrincipal which if you read their javadoc makes it pretty
 clear
 that an authenticated entity has one principal, which also seems to fit
 with
 JAAS.

 -Craig


 Mr Mean wrote:
 
  Neither am i :) And you could be right about me misusing the
  principal, but using the actions of a permission for read write and
  then logically separating permissions with read from permissions with
  write in different principals does not seem like stretch to me.
 
  Maurice
 
  On 6/29/07, craigdd [EMAIL PROTECTED] wrote:
 
  I understand what you are saying and I see how you have accomplished
  something similar to what I'm trying to do, however it seems to me
 that
  you
  are miss using the concept of a Principal.  I'm not a security expert
 but
  a
  principal seems to point to an individual and not with something
 called
  write.  Write fits a little better into the concepts of ACL.
 
  -Craig
 
 
  Mr Mean wrote:
  
   By the way, I'm not saying wicket security is bad, other than my
  example
   I
   think it is a well put together framework that beats the hell out
 of
   using
   JAAS.
  
   Thanks, i appreciate that :)
  
   I've had a pretty good look at wicket security but the conclusion
 that
   I've
   come to with that is it only supports the fact that you have pre
  defined
   roles within your application.
  
  
   Well i am not saying it is impossible to declare and add new
   permissions / principals at runtime but i think it is generally
   undesirable to do so. Instead you should make your principals fine
   grained enough to be used as building blocks for  roles.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write
 access
  to
   an
   object and each tenant in the application defines their own role
  heirachy
   based on those permissions.
  
   This is exactly what we are doing in our application. We have
   literally +- 1000 principals defined in our system. By allowing the
   users to group principals together they can build there own roles.
 We
   have multiple organizations in our application and each of them can
   completely redesign there user roles in the system (well only up to
 a
   point because we could not allow that, but that aside they could).
 We
   provide each organization with a set of default roles as we think
 will
   suit most of them but they are completely free to alter/ rename/
   delete/ whatever do with those roles because we do not depend on the
   roles but on the underlying principals, which are controlled by us.
 A
   big help is the fact that we made our principals imply each other
   (write implies read, etc)  So when a user designs there roles they
   don't have to check read access to page A and write access to page A
   but can suffice with write access to page A. Although most of our
   principals handle a couple of related pages we also have principals
   going as deep as individual components. For instance we have a large
   data grid, the principals are fine grained enough to give you read
 or
   write access up to the individual cell.
  
   Correct me if i am wrong but this seems to be what you want too.
  
   Maurice
  
  
   On 6/28/07, craigdd [EMAIL PROTECTED] wrote:
  
   I've had a pretty good look at wicket security but the conclusion
 that
   I've
   come to with that is it only supports the fact that you have pre
  defined
   roles within your application.
  
   I'm currently working on a multi tenant web application where the
   application provided a set of permission, such and read / write
 access
  to
   an
   object and each tenant in the application defines their own role
  heirachy
   based on those permissions.
  
   We are currently using acegi and I'm trying to figure out the best
 way
  to
   bake 

[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 I use a RestartResponseAtInterceptPageException(); to go to
the password change page from the sign in page, after submission I get
directed back to the sign in page. Can I specify the intended original
destination without setting a response page and passing it as a page
parameter?

 

Thank you,

 

~Mark

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 replacement wouldn't really change the
state
 of the DT so when it rerenders itself it would render it's entire tree
as it
 iterates across all the rows and overwrite what I just changed.  That
sounds
 like the probably culprit.  Thoughts?


 On 6/29/07, Evan Chooly  [EMAIL PROTECTED] wrote:
  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...  sigh/
 
 
 
  On 6/29/07, Johan Compagner  [EMAIL PROTECTED] wrote:
   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 delete?)
{
  @Override
  protected void onCancel() {
  replaceWith(DeleteLink.this);
  }
 
  @Override
  protected void onConfirm() {
  Filter filter =
  (Filter)getParent().getParent().getModelObject();
  service.delete(filter);
  replaceWith(DeleteLink.this);
  }
  });
  }

 Code looks fine to me. And I'm using replaceWith quite a bit and
it
 works fine. Can you try to set a break point in onClick, see if
it
 arrives there and step into the replace code?
   
   
The onClick() is definitely getting called (I set breakpoints this
 morning...) but the panel just isn't getting replaced.  Now, is there
any
 problem with replacing a link (in this case) with a panel?  There's no
 impedence mismatch between the a and the span that would normally
get
 used?
   
   
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
  

-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 



-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list

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 would:

select num_rows
from all_tables
where owner = 'FOO'
and table_name = 'BAR';

instead of

select count(*)
from foo.bar


On 6/29/07, C. Bergström [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 DB such that
  select COUNT(*) from mytable
  takes a non-trivial amount of time/cpu to return, whereas to get
  the actual data for the page is effectively immediate!
 
  I'm curently using a DefaultDataTable and the quick hack is to just
  hard-code DataProvider.size() to just return a fixed number, but while
  that's probably OK, it's sub-optimal (it is just a util for my own
  use though, really).  Having said that, I'd be interested in
  alternative suggestions.
 
  It's the Production DB only that shows this behaviour (which is
  probably related to them not purging the the old data for 4 years or
  so, so I'm limited as to what might be possible with the DB itself).
 
 I smell Postgres and just going to go out on a limb here.. :) triggers
 that update a counts table, db maintenance, or search the postgres
 perform archive for other ways to achieve this.. I'm pretty sure I see
 this question nearly every two weeks and from what I've read and
 remember it pretty much falls on the responsibility of the backend.
 There's also certainly more commentary in the wicket-users archives as well.

 Good luck,

 ./C

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 would:

 select num_rows
 from all_tables
 where owner = 'FOO'
 and table_name = 'BAR';

 instead of

 select count(*)
 from foo.bar


 On 6/29/07, C. Bergström [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 DB such that
   select COUNT(*) from mytable
   takes a non-trivial amount of time/cpu to return, whereas to get
   the actual data for the page is effectively immediate!
  
   I'm curently using a DefaultDataTable and the quick hack is to just
   hard-code DataProvider.size() to just return a fixed number, but while
   that's probably OK, it's sub-optimal (it is just a util for my own
   use though, really).  Having said that, I'd be interested in
   alternative suggestions.
  
   It's the Production DB only that shows this behaviour (which is
   probably related to them not purging the the old data for 4 years or
   so, so I'm limited as to what might be possible with the DB itself).
  
  I smell Postgres and just going to go out on a limb here.. :) triggers
  that update a counts table, db maintenance, or search the postgres
  perform archive for other ways to achieve this.. I'm pretty sure I see
  this question nearly every two weeks and from what I've read and
  remember it pretty much falls on the responsibility of the backend.
  There's also certainly more commentary in the wicket-users archives as well.
 
  Good luck,
 
  ./C

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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:
 Cool. I have invited a colleague of mine.

 Frank


 On 6/25/07, *Nino Saturnino Martinez Vazquez Wael* 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 sure...

 Flemming Boller wrote:
  could it be 17, then it is fine by me :-)
 
  have to get to frederiksberg...
 
  /FLemming
 
 
  On 6/25/07, *Nino Saturnino Martinez Vazquez Wael*
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
 
  O, then 16 a clock at jayway dk it is?
 
  Jayway address:
  Jakob Danefærdsvej 6b
  Frederiksberg C
 
  regards Nino
 
  Flemming Boller wrote:
   Great idea with the calendar!
  
   It is the same with me, after 16-17 is the best for me too.
  
  
   /Flemming
  
   On 6/22/07, *Frank Bille*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  wrote:
  
   On 6/22/07, * Nino Saturnino Martinez Vazquez Wael*
   [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  wrote:
  
   I've created a public google calendar for us:
  
  
 

http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com
  

http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com

  
  

http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com
  

http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com

  
   And entered your proposition Flemming. It looks ok
 for me.
  
  
   Cool, thx.
  
   I normally can't meet before 16-17. So it's either after
4
  or in
   the weekends.
  
   Frank
  
  
 

-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2
 express and
  take
   control of your XML. No limits. Just data. Click to
 get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 


 
  
  
 

-

   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express
 and take
   control of your XML. No limits. Just data. Click to get it
 now.
   http://sourceforge.net/powerbar/db2/
  
 


 
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take
  control of your XML. No limits. Just data. Click to get it
now.
  http://sourceforge.net/powerbar/db2/
  

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: you could use Integer.MAX_VALUE.

The DB's Oracle (8i, I think), but the metadata approach doesn't help,
as if I'm using size, it should be the size for the filtered results,
which may be in effect, otherwise I might as well use a fixed result.

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(*)

/Gwyn


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 DB such that
 select COUNT(*) from mytable
 takes a non-trivial amount of time/cpu to return, whereas to get
 the actual data for the page is effectively immediate!

 I'm curently using a DefaultDataTable and the quick hack is to just
 hard-code DataProvider.size() to just return a fixed number, but while
 that's probably OK, it's sub-optimal (it is just a util for my own
 use though, really).  Having said that, I'd be interested in
 alternative suggestions.

 It's the Production DB only that shows this behaviour (which is
 probably related to them not purging the the old data for 4 years or
 so, so I'm limited as to what might be possible with the DB itself).
   
 I smell Postgres and just going to go out on a limb here.. :) triggers
 that update a counts table, db maintenance, or search the postgres 
 perform archive for other ways to achieve this.. I'm pretty sure I see
 this question nearly every two weeks and from what I've read and 
 remember it pretty much falls on the responsibility of the backend.  

Oracle! :-)  I've tried the db maintenance route but they don't want
to go there - the count is only needed for the Page N of M
NavigationHeader, but would be dynamic (when the table is filtered),
so a counts table wouldn't work.

I think the key this time is just to accept some loss of functionality
(jumping direct to a page) is that allows me to do away with the call
to size(), but I just wanted to check I wasn't missing a better way
than drilling my way down into DefaultDataTable.

/Gwyn


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 you would represent a
role as a principal.

As JAAS is the default authorization mechnism in Java, it is arguably
the 'industry standard' (for Java). Whether it is what you prefer is
another question. I think people find users/ roles easier to
understand, but personally I like the more abstracted model of JAAS;
whether you want to model groups, roles a combination of the two or
even something different, it fits seamlessly.

My 2c,

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 back and fwd navigation.

We don't actually think it is meaningless. Just very hard for us to
implement. We (or rather, Johan) did some work preparing the server
side for this, and we have been talking about it a lot behind the
scenes (yesterday even), but we probably will need a couple of weeks
of intens work to really get this working. If we would be able to pull
this off at all, which tbh isn't a certainty right now.

 Looking on the Internet I found some interesting tricks [1] and [2].
 Basically that make use of a hidden  iframe to store the history.

Thanks. We were already aware of those techniques though. The main
problems we are facing are:
* Currently we don't assume pages are using ajax per se. We don't
'own' the browser, an we don't have a unified model of how ajax has to
work.
* We have to align the ajax versioning with our normal versioning,
which is not easy.

 Perhaps a solution to handle versioning for a generic ajax action could be
 very complex.

 But a specific behaviour just to handle AjaxTabbedPanel versioning I think
 it would not so difficult.

 I will make some experiment and let you know.

If you up with something smart, please share! :)

Cheers,

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 of a role to
given permissions and actions.  So back to what I said before, swarm is
really nice when you have an application with pre-defined roles instead of
an application that is more fluid and tenants can create their own structure
of roles.

-Craig


Eelco Hillenius wrote:
 
 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 you would represent a
 role as a principal.
 
 As JAAS is the default authorization mechnism in Java, it is arguably
 the 'industry standard' (for Java). Whether it is what you prefer is
 another question. I think people find users/ roles easier to
 understand, but personally I like the more abstracted model of JAAS;
 whether you want to model groups, roles a combination of the two or
 even something different, it fits seamlessly.
 
 My 2c,
 
 Eelco
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11364093
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 times on
the link and have *3* on one window/tab and click 4 times in the other one
and have *4*, instead of 7 which is the default behavior.


Know this point its kind of arguable, so I need to find ways to both doit
and may be recommend against it as it may not be a good practice.

To put this in a concrete question:

Is it possible to handle each instance of a browser (Being this a window,
either a new tab or new window, or even a new process)  like a new session
instance?

To do a little test I built a small application with only a home page that
prints out a UUID randomly generated in my MyWicketSession. Very simple
code, in the session constructor:

this.UUID=uuid = UUID.randomUUID().toString();

and in the Home page

*info*(getMyWicketSession().getUUID());

This generates the same value when I hit a new tab and enter the URL or when
I ask the browser for a new Window.

This must be the correct behavior and I have nothing against it, but can I
have independent state management. I don't want to go sessionless.


Best regards,
f(t)
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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){

  if(fc.getValue() is greater than 20){
fc.add(new AttributeModifier(style,true, new
Model(background-color: #FF;)));
fc.error(error.toolongvalue,null);
  }else{
  fc.add(new AttributeModifier(style,true, new
Model(background-color: normal-color;)));
 }

}
  });
  item.add(tx);


something like dat...just buzz around



ayyayay, i guess no matter how you try to engineer the api people always
find ways to abuse it :)

TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid()) {
tag.put(class,error); } }};
tf.add(StringValidator.maxLength(20));

-igor



On 6/29/07, Edi [EMAIL PROTECTED]  wrote:



 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 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 show me if yu
  find.
 
  Look for a javascript library that can allow a user to dynamically
 expand
  the textfield lenght with his mouse. so that we can attach that
 Behavior
  to
  each Textfield
 
 
 
  On 6/29/07, Edi [EMAIL PROTECTED] wrote:
 
 
  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 Wicket - JExcel example
  
   Cell cell = sheet.getCell(col, row);
   values[row][col] = new
 XCell(row,
   col,cell.getContents());
  
   return
 values[row][col].getData();
  
  
   The Cell object is from JExcel and its where Datatype should be
  retrieved
   from
  
   2. To validate,
  
   You can write a default wicket validator (See Validator examples),
   The validator can access the Textfield arrays and then check for
  validity
  
   its shouldn't be too difficult anyway
  
  
  
   On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  
   I think that is within the scope of the JExcel API and not a
 wicket
   thing.
   Refer to the JExcel API doc first
  
   On 6/28/07, Edi  [EMAIL PROTECTED] wrote:
   
   
Hi,
   
I am Newbie of Wicket. I have downloaded sample example to read
 XLS
   file
   
using Wicket with JExcel.
It's working fine.
   
My doubt is 1.How can I retrieve the datatype of each cell? and
 2.
  How
to
validate the each cell values?
   
Please give me some Suggestions.
   
Thanking You.
Regards,
Edi
--
View this message in context:
   
 http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
   
  
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
 take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
   --
  
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 times on
the link and have *3* on one window/tab and click 4 times in the other one
and have *4*, instead of 7 which is the default behavior.


Know this point its kind of arguable, so I need to find ways to both doit
and may be recommend against it as it may not be a good practice.

To put this in a concrete question:

Is it possible to handle each instance of a browser (Being this a window,
either a new tab or new window, or even a new process)  like a new session
instance?

To do a little test I built a small application with only a home page that
prints out a UUID randomly generated in my MyWicketSession. Very simple
code, in the session constructor:

this.UUID=uuid = UUID.randomUUID().toString();

and in the Home page

*info*(getMyWicketSession().getUUID());

This generates the same value when I hit a new tab and enter the URL or
when I ask the browser for a new Window.

This must be the correct behavior and I have nothing against it, but can I
have independent state management. I don't want to go sessionless.


Best regards,
f(t)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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'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 - 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 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 times on
 the link and have 3 on one window/tab and click 4 times in the other one and
 have 4, instead of 7 which is the default behavior.
  
  
   Know this point its kind of arguable, so I need to find ways to both
 doit and may be recommend against it as it may not be a good practice.
  
   To put this in a concrete question:
  
   Is it possible to handle each instance of a browser (Being this a
 window, either a new tab or new window, or even a new process)  like a new
 session instance?
  
   To do a little test I built a small application with only a home page
 that prints out a UUID randomly generated in my MyWicketSession. Very simple
 code, in the session constructor:
  
   this.UUID=uuid = UUID.randomUUID().toString();
  
   and in the Home page
  
   info(getMyWicketSession().getUUID());
  
   This generates the same value when I hit a new tab and enter the URL or
 when I ask the browser for a new Window.
  
   This must be the correct behavior and I have nothing against it, but can
 I have independent state management. I don't want to go sessionless.
  
  
   Best regards,
   f(t)
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, you get a 3. Then if you open a new tab, and click on
the link on the new tab, you get 4. not 3. Again, to dissipate confusions, I
don't think that is wrong at all. But I was just asking if it is possible to
have multiple states in multiple tabs.

thanks,

f(t)


On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote:


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'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 - 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 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 times
on
 the link and have 3 on one window/tab and click 4 times in the other one
and
 have 4, instead of 7 which is the default behavior.
  
  
   Know this point its kind of arguable, so I need to find ways to both
 doit and may be recommend against it as it may not be a good practice.
  
   To put this in a concrete question:
  
   Is it possible to handle each instance of a browser (Being this a
 window, either a new tab or new window, or even a new process)  like a
new
 session instance?
  
   To do a little test I built a small application with only a home
page
 that prints out a UUID randomly generated in my MyWicketSession. Very
simple
 code, in the session constructor:
  
   this.UUID=uuid = UUID.randomUUID().toString();
  
   and in the Home page
  
   info(getMyWicketSession().getUUID());
  
   This generates the same value when I hit a new tab and enter the URL
or
 when I ask the browser for a new Window.
  
   This must be the correct behavior and I have nothing against it, but
can
 I have independent state management. I don't want to go sessionless.
  
  
   Best regards,
   f(t)
  

-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 



-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 img src=# wicket:id=foo
tag in your html, then in your java, provide the correct url to the
WebResource for src.

On Fri, 2007-06-29 at 18:15 +, [EMAIL PROTECTED] wrote:
 How to display a BufferedImage on Wicket Component?
 
 Han
 
 _
 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 - 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 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 times on
 the link and have *3* on one window/tab and click 4 times in the other
 one and have *4*, instead of 7 which is the default behavior.


 Know this point its kind of arguable, so I need to find ways to both
 doit and may be recommend against it as it may not be a good practice.

 To put this in a concrete question:

 Is it possible to handle each instance of a browser (Being this a
 window, either a new tab or new window, or even a new process)  like a new
 session instance?

 To do a little test I built a small application with only a home page
 that prints out a UUID randomly generated in my MyWicketSession. Very simple
 code, in the session constructor:

 this.UUID=uuid = UUID.randomUUID().toString();

 and in the Home page

 *info*(getMyWicketSession().getUUID());

 This generates the same value when I hit a new tab and enter the URL or
 when I ask the browser for a new Window.

 This must be the correct behavior and I have nothing against it, but can
 I have independent state management. I don't want to go sessionless.


 Best regards,
 f(t)


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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.

 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, you get a 3. Then if you open a new tab, and click
 on the link on the new tab, you get 4. not 3. Again, to dissipate
 confusions, I don't think that is wrong at all. But I was just asking if it
 is possible to have multiple states in multiple tabs.


the answer is yes, and it is also transparent - eg you dont have to do
anything as long as you use default page store

if you use sessionstore then you need to turn on that setting i told you
about.

-igor




 thanks,

 f(t)


  On 6/29/07, Matej Knopp [EMAIL PROTECTED]  wrote:
 
  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'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 - 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 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
  times on
   the link and have 3 on one window/tab and click 4 times in the other
  one and
   have 4, instead of 7 which is the default behavior.


 Know this point its kind of arguable, so I need to find ways to
  both
   doit and may be recommend against it as it may not be a good
  practice.

 To put this in a concrete question:

 Is it possible to handle each instance of a browser (Being this
  a
   window, either a new tab or new window, or even a new process)  like
  a new
   session instance?

 To do a little test I built a small application with only a home
  page
   that prints out a UUID randomly generated in my MyWicketSession.
  Very simple
   code, in the session constructor:

 this.UUID=uuid = UUID.randomUUID().toString();

 and in the Home page

 info(getMyWicketSession().getUUID());

 This generates the same value when I hit a new tab and enter the
  URL or
   when I ask the browser for a new Window.

 This must be the correct behavior and I have nothing against it,
  but can
   I have independent state management. I don't want to go sessionless.


 Best regards,
 f(t)

  
  -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
  take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

   https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
   
  
  -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  

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 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.

 The DB's Oracle (8i, I think), but the metadata approach doesn't help,
 as if I'm using size, it should be the size for the filtered results,
 which may be in effect, otherwise I might as well use a fixed result.

 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(*)

 /Gwyn


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, it adds +1, the number of times you click on it.

If you click 3 times, you get a 3. Then if you open a new tab, and click
on the link on the new tab, you get 4. not 3. Again, to dissipate
confusions, I don't think that is wrong at all. But I was just asking if it
is possible to have multiple states in multiple tabs.



the answer is yes, and it is also transparent - eg you dont have to do
anything as long as you use default page store

if you use sessionstore then you need to turn on that setting i told you
about.

-igor




thanks,


f(t)


On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote:

 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'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 - 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 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 times
 on
  the link and have 3 on one window/tab and click 4 times in the other
 one and
  have 4, instead of 7 which is the default behavior.
   
   
Know this point its kind of arguable, so I need to find ways to
 both
  doit and may be recommend against it as it may not be a good practice.
   
To put this in a concrete question:
   
Is it possible to handle each instance of a browser (Being this a
  window, either a new tab or new window, or even a new process)  like a
 new
  session instance?
   
To do a little test I built a small application with only a home
 page
  that prints out a UUID randomly generated in my MyWicketSession. Very
 simple
  code, in the session constructor:
   
this.UUID=uuid = UUID.randomUUID().toString();
   
and in the Home page
   
info(getMyWicketSession().getUUID());
   
This generates the same value when I hit a new tab and enter the
 URL or
  when I ask the browser for a new Window.
   
This must be the correct behavior and I have nothing against it,
 but can
  I have independent state management. I don't want to go sessionless.
   
   
Best regards,
f(t)
   
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is 

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, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 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.
  
   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, you get a 3. Then if you open a new tab, and click
 on the link on the new tab, you get 4. not 3. Again, to dissipate
 confusions, I don't think that is wrong at all. But I was just asking if it
 is possible to have multiple states in multiple tabs.
 
 
  the answer is yes, and it is also transparent - eg you dont have to do
 anything as long as you use default page store
 
  if you use sessionstore then you need to turn on that setting i told you
 about.
 
  -igor
 
 
 
 
  
  
   thanks,
  
   f(t)
  
  
  
   On 6/29/07, Matej Knopp [EMAIL PROTECTED]  wrote:
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'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 - 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 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
 times on
 the link and have 3 on one window/tab and click 4 times in the other
 one and
 have 4, instead of 7 which is the default behavior.
  
  
   Know this point its kind of arguable, so I need to find ways to
 both
 doit and may be recommend against it as it may not be a good
 practice.
  
   To put this in a concrete question:
  
   Is it possible to handle each instance of a browser (Being this
 a
 window, either a new tab or new window, or even a new process)  like
 a new
 session instance?
  
   To do a little test I built a small application with only a home
 page
 that prints out a UUID randomly generated in my MyWicketSession.
 Very simple
 code, in the session constructor:
  
   this.UUID=uuid = UUID.randomUUID().toString();
  
   and in the Home page
  
   info(getMyWicketSession().getUUID());
  
   This generates the same value when I hit a new tab and enter the
 URL or
 when I ask the browser for a new Window.
  
   This must be the correct behavior and I have nothing against it,
 but can
 I have independent state management. I don't want to go sessionless.
  
  
   Best regards,
   f(t)
  

 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and
 take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  

 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 

 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just 

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 in
case you are experiencing any problems, you should turn on multiwindow
support (manually) even for SecondLevelCacheSessionStore.

-Matej

On 6/29/07, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 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.
  
   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, you get a 3. Then if you open a new tab, and
click
 on the link on the new tab, you get 4. not 3. Again, to dissipate
 confusions, I don't think that is wrong at all. But I was just asking if
it
 is possible to have multiple states in multiple tabs.
 
 
  the answer is yes, and it is also transparent - eg you dont have to do
 anything as long as you use default page store
 
  if you use sessionstore then you need to turn on that setting i told
you
 about.
 
  -igor
 
 
 
 
  
  
   thanks,
  
   f(t)
  
  
  
   On 6/29/07, Matej Knopp [EMAIL PROTECTED]  wrote:
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'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 - 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 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
 times on
 the link and have 3 on one window/tab and click 4 times in the
other
 one and
 have 4, instead of 7 which is the default behavior.
  
  
   Know this point its kind of arguable, so I need to find ways
to
 both
 doit and may be recommend against it as it may not be a good
 practice.
  
   To put this in a concrete question:
  
   Is it possible to handle each instance of a browser (Being
this
 a
 window, either a new tab or new window, or even a new
process)  like
 a new
 session instance?
  
   To do a little test I built a small application with only a
home
 page
 that prints out a UUID randomly generated in my MyWicketSession.
 Very simple
 code, in the session constructor:
  
   this.UUID=uuid = UUID.randomUUID().toString();
  
   and in the Home page
  
   info(getMyWicketSession().getUUID());
  
   This generates the same value when I hit a new tab and enter
the
 URL or
 when I ask the browser for a new Window.
  
   This must be the correct behavior and I have nothing against
it,
 but can
 I have independent state management. I don't want to go
sessionless.
  
  
   Best regards,
   f(t)
  


-
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and
 take
   control of your XML. No limits. Just data. Click to get it
now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  

 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 


-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
take
  control of your XML. No limits. Just data. Click to get it
now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 




-
 This 

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 memories...

Cheers
ZedroS

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=bc=d).

 This is how:

 WebRequest request = getWebRequestCycle().getWebRequest();
 String baseUrl = request.getURL();


 The API docs say:

 getURL
 public abstract java.lang.String getURL()
 Retrieves the absolute URL of this request for local use.

 Returns:
 The absolute request URL for local use



 However, I am getting something that looks like

 /hello///?wicket:interface=2:form.requestPassword::IFormSubmitListener

 I don't mind anything after the ?, but I do need the _absolute_ URL,
 meaning everything in the form I wrote above.

 Did I misunderstand the API docs?


 Thanks!
 Dave




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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=bc=d).

This is how:

WebRequest request = getWebRequestCycle().getWebRequest();
String baseUrl = request.getURL();


The API docs say:

getURL
public abstract java.lang.String getURL()
Retrieves the absolute URL of this request for local use.

Returns:
The absolute request URL for local use



However, I am getting something that looks like

/hello///?wicket:interface=2:
form.requestPassword::IFormSubmitListener

I don't mind anything after the ?, but I do need the _absolute_ URL,
meaning everything in the form I wrote above.



you have access to httpservletrequest from which you can reconstruct the
full url by concatenating all the pieces.

((webrequest)getrequest()).gethttpservletrequest()


Did I misunderstand the API docs?


please add a jira issue to have this fixed

-igor


Thanks!

Dave




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 there was much call for this, but we may
well have been wrong. There is an issue for this. Please vote if you
want it sorting.

https://issues.apache.org/jira/browse/WICKET-579


Regards,

Al

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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://conferences.oreillynet.com/pub/w/58/bof.html

Thoughts?

Sean
Portland, Oregon
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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:


body
   span wicket:id=libBorder   
   iframe wicket:id=bFrame src=[source] name=bottom/

   /span
/body

public class Map extends WebPage {
   public static final String BOTTOM_FRAME_NAME = bottom;

   public Map(final PageParameters pps) {
   Border borderUser = new LibBorderUser(libBorder);
   add(borderUser);
   
   InlineFrame iframe = new InlineFrame(bFrame,

  PageMap.forName(BOTTOM_FRAME_NAME),Display.class);
   add(iframe);
   }
}

Han

_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
 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(new AttributeModifier(style,true, new
 Model(background-color: #FF;)));
 fc.error(error.toolongvalue,null);
   }else{
   fc.add(new AttributeModifier(style,true, new
 Model(background-color: normal-color;)));
  }

 }
   });
   item.add(tx);


 something like dat...just buzz around


ayyayay, i guess no matter how you try to engineer the api people always
find ways to abuse it :)

TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid()) {
tag.put(class,error); } }};
tf.add(StringValidator.maxLength(20));

-igor



On 6/29/07, Edi  [EMAIL PROTECTED]  wrote:
 
 
  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 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 show me if
  yu
   find.
  
   Look for a javascript library that can allow a user to dynamically
  expand
   the textfield lenght with his mouse. so that we can attach that
  Behavior
   to
   each Textfield
  
  
  
   On 6/29/07, Edi [EMAIL PROTECTED] wrote:
  
  
   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 Wicket - JExcel example
   
Cell cell = sheet.getCell(col, row);
values[row][col] = new
  XCell(row,
col,cell.getContents());
   
return
  values[row][col].getData();
   
   
The Cell object is from JExcel and its where Datatype should be
   retrieved
from
   
2. To validate,
   
You can write a default wicket validator (See Validator
  examples),
The validator can access the Textfield arrays and then check for
   validity
   
its shouldn't be too difficult anyway
   
   
   
On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED]  wrote:
   
I think that is within the scope of the JExcel API and not a
  wicket
thing.
Refer to the JExcel API doc first
   
On 6/28/07, Edi  [EMAIL PROTECTED] wrote:


 Hi,

 I am Newbie of Wicket. I have downloaded sample example to
  read XLS
file

 using Wicket with JExcel.
 It's working fine.

 My doubt is 1.How can I retrieve the datatype of each cell?
  and 2.
   How
 to
 validate the each cell values?

 Please give me some Suggestions.

 Thanking You.
 Regards,
 Edi
 --
 View this message in context:

  http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
 Sent from the Wicket - User mailing list archive at Nabble.com
  .




   
  
  -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
  take
 control of your XML. No limits. Just data. Click to get it
  now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
   
--
   
   
   
   
  
  -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
   http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   This SF.net email is sponsored by DB2