[Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Edward Yakop
Hi,

I'm one of the maintainer of ops4j-pax-wicket. Atm, I'm trying to
migrate pax-wicket to wicket-2.0 that can be found at
(https://scm.ops4j.org/repos/ops4j/branches/pax/wicket-2.0).

One of the problem that I found during migration is the fact that
WicketFilter uses reflection to instantiate application factory by
using the FilterConfig.getInitParam( applicationFactoryClassName ).
Since this is not advisable in OSGi (Due to problem of ensuring
whoever export the wicket bundle must have it's classloader be able to
load the application factory) and HttpService does not support Filter.
It would be better if the old pattern of WicketServlet is supported.

code
public class WicketServlet
{

  protected WicketFilter newWicketFilter()
  {
return new WicketFilter();
  }

  public void init()
  {
wicketFilter = newWicketFilter();
filter.init(new FilterConfig()
{
...
});
  }
}
/code

This way, I would be able to override the instantiation of
WicketFilter without having to reimplement my FilterConfig.

For example, my wicket servlet will look like like:
code
final class MyWicketServlet extends WicketServlet
{
private final IWebApplicationFactory m_appFactory;

MyWicketServlet( IWebApplicationFactory factory )
{
m_appFactory = factory;
}

protected final WicketFilter newWicketFilter()
{
   return new WicketFilter()
   {
  protected IWebApplicationFactory getApplicationFactory()
  {
 return MyWicketServlet.this.m_appFactory;
  }
   };
}
}
/code

This way, reflection will not be used anymore in both instantiating
WebApplication (bypassing ContextParamWebApplicationFactory class) and
IWebApplicationFactory.

Regards,
Edward Yakop

Note:
Can we please remove the log.info part to mark WicketServlet is deprecated.
code
public WicketServlet()
{
  // log warning
  log.info();
  log.info(DEPRECATED! Please use WicketFilter instead.);
  log.info();
}
/code

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread tooy li(Gmail)
I find echo2 have more components and more ajax support. and also support html 
layout. so what's the advantage of wicket ?  or some one can tell me the 
disadvantage of echo?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Johan Compagner

We will remove the warnings about the deprication when we will release 1.3
/2.0
for now we want to point people as much as possible to the wicket filter.

The wicket servlet will still be there.

So you just want a factory method in wicket servlet where you can make the
wicket filter?
can you add a RFE for this:
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420

then i will add the factory method asap.


johan

On 1/30/07, Edward Yakop [EMAIL PROTECTED] wrote:


Hi,

I'm one of the maintainer of ops4j-pax-wicket. Atm, I'm trying to
migrate pax-wicket to wicket-2.0 that can be found at
(https://scm.ops4j.org/repos/ops4j/branches/pax/wicket-2.0).

One of the problem that I found during migration is the fact that
WicketFilter uses reflection to instantiate application factory by
using the FilterConfig.getInitParam( applicationFactoryClassName ).
Since this is not advisable in OSGi (Due to problem of ensuring
whoever export the wicket bundle must have it's classloader be able to
load the application factory) and HttpService does not support Filter.
It would be better if the old pattern of WicketServlet is supported.

code
public class WicketServlet
{

  protected WicketFilter newWicketFilter()
  {
return new WicketFilter();
  }

  public void init()
  {
wicketFilter = newWicketFilter();
filter.init(new FilterConfig()
{
...
});
  }
}
/code

This way, I would be able to override the instantiation of
WicketFilter without having to reimplement my FilterConfig.

For example, my wicket servlet will look like like:
code
final class MyWicketServlet extends WicketServlet
{
private final IWebApplicationFactory m_appFactory;

MyWicketServlet( IWebApplicationFactory factory )
{
m_appFactory = factory;
}

protected final WicketFilter newWicketFilter()
{
   return new WicketFilter()
   {
  protected IWebApplicationFactory getApplicationFactory()
  {
 return MyWicketServlet.this.m_appFactory;
  }
   };
}
}
/code

This way, reflection will not be used anymore in both instantiating
WebApplication (bypassing ContextParamWebApplicationFactory class) and
IWebApplicationFactory.

Regards,
Edward Yakop

Note:
Can we please remove the log.info part to mark WicketServlet is
deprecated.
code
public WicketServlet()
{
  // log warning
  log.info();
  log.info(DEPRECATED! Please use WicketFilter instead.);
  log.info();
}
/code

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Modal Window Bug (important)

2007-01-30 Thread Matej Knopp
You don't need to remove the line. The bug is very difficult to 
reproduce, I can't even describe how to trigger it.

The default behavior in newer version will be setCookieName(null), so 
the window position will not be persisted. Unless you manually call 
setCookieName(someCookieName);

-Matej

Carfield Yim wrote:
 Where can I get more information about this bug? I use ModalWindow for
 a few place and this look fine to me, how can I trigger this bug?
 
 By the way, should I remove this line once I update wicket library?
 
 On 1/30/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi,

 It seems that quite a lot of people are using ModalWindow lately. I just
 want to inform you that there is a bug in modal window that can cause it
 to eat all your browser's cookies. The bug is fixed in svn, but not in
 the last release (1.2.4).

 Fortunately, preventing this bug is fairly easy. All you have to do is
 call setCookieName on your modal window.

 So either
 setCookieName(null) - if you don't want it to remember size in cookies

 or

 setCookieName(myModalWindowName) - if you want it to remember the size


 -Matej

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [wicket-2.0] WicketServlet deprecation and WicketFilter

2007-01-30 Thread Edward Yakop
Hi,

Done.
https://issues.apache.org/jira/browse/WICKET-245

Regards,
Edward Yakop

On 1/30/07, Johan Compagner [EMAIL PROTECTED] wrote:
 We will remove the warnings about the deprication when we will release
 1.3/2.0
 for now we want to point people as much as possible to the wicket filter.

 The wicket servlet will still be there.

 So you just want a factory method in wicket servlet where you can make the
 wicket filter?
 can you add a RFE for this:
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420

 then i will add the factory method asap.


 johan


 On 1/30/07, Edward Yakop [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm one of the maintainer of ops4j-pax-wicket. Atm, I'm trying to
  migrate pax-wicket to wicket-2.0 that can be found at
 
 (https://scm.ops4j.org/repos/ops4j/branches/pax/wicket-2.0
 ).
 
  One of the problem that I found during migration is the fact that
  WicketFilter uses reflection to instantiate application factory by
  using the FilterConfig.getInitParam( applicationFactoryClassName ).
  Since this is not advisable in OSGi (Due to problem of ensuring
  whoever export the wicket bundle must have it's classloader be able to
  load the application factory) and HttpService does not support Filter.
  It would be better if the old pattern of WicketServlet is supported.
 
  code
  public class WicketServlet
  {
 
protected WicketFilter newWicketFilter()
{
  return new WicketFilter();
}
 
public void init()
{
  wicketFilter = newWicketFilter();
  filter.init(new FilterConfig()
  {
  ...
  });
}
  }
  /code
 
  This way, I would be able to override the instantiation of
  WicketFilter without having to reimplement my FilterConfig.
 
  For example, my wicket servlet will look like like:
  code
  final class MyWicketServlet extends WicketServlet
  {
  private final IWebApplicationFactory m_appFactory;
 
  MyWicketServlet( IWebApplicationFactory factory )
  {
  m_appFactory = factory;
  }
 
  protected final WicketFilter newWicketFilter()
  {
 return new WicketFilter()
 {
protected IWebApplicationFactory getApplicationFactory()
{
   return MyWicketServlet.this.m_appFactory;
}
 };
  }
  }
  /code
 
  This way, reflection will not be used anymore in both instantiating
  WebApplication (bypassing
 ContextParamWebApplicationFactory class) and
  IWebApplicationFactory.
 
  Regards,
  Edward Yakop
 
  Note:
  Can we please remove the log.info part to mark WicketServlet is
 deprecated.
  code
  public WicketServlet()
  {
// log warning
 
 log.info();
log.info(DEPRECATED! Please use WicketFilter instead.);
log.info
 ();
  }
  /code
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
My boss like me to add some script to detect browser dimensions and
set better height / width to modalwindow, there is some site telling
me how to get the dimensions. The only way I know is adding hidden
fields to webpages and update those fields using javascript.

However, if something changed at javascript side it is easy to forget
update at HTML side and deliver software with bugs to clients. Just
wonder if wicket provide any API which help to update session variable
or hidden field with custom javascript so that it is easier to
maintain?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread Igor Vaynberg

the biggest differences afaik are:

echo2 is ajax only - ie your site doesnt work without javascript

echo2 uses swing-like layout managers not html

-igor


On 1/30/07, tooy li(Gmail) [EMAIL PROTECTED] wrote:


I find echo2 have more components and more ajax support. and also support
html layout. so what's the advantage of wicket ?  or some one can tell me
the disadvantage of echo?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IndicatingAjaxSubmitButton

2007-01-30 Thread Ayodeji Aladejebi

I would suggest that the Button be set to disabled mode onClick just to
discourage a user from clicking again and a long transaction situation.

?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem restarting application in Tomcat

2007-01-30 Thread Johan Compagner

i dont think that null pointer is fixed for 1.2.x
at least i didn't do that check.

Maybe we should?

johan


On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


try the code from the latest 1.2.x branch

-igor


On 1/29/07, Luis Pablo Gallo [EMAIL PROTECTED]  wrote:

 I tried in both modes, and it makes no difference.

 On 1/29/07, Igor Vaynberg [EMAIL PROTECTED]  wrote:
 
  did you deploy your app in development or deployment mode?
 
  -igor
 
 
  On 1/29/07, Luis Pablo Gallo  [EMAIL PROTECTED] wrote:
  
   I saw that thread, but either I don't understand it or it doesn't
   have the solution.
  
   On 1/29/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
http://www.nabble.com/Wicket-Exceptions-tf3013426.html#a8368437
   
-igor
   
   
On 1/29/07, Luis Pablo Gallo [EMAIL PROTECTED] wrote:

 If it's something outside of Wicket it has nothing to do with my
 application because there isn't any line of a class of mine in the 
stack
 trace, such stack trace is:

 java.lang.NullPointerException
 at wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java
 :390)
 at wicket.markup.MarkupParser.readAndParse(MarkupParser.java
 :196)
 at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
 at
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:354)
 at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198)
 at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
 :106)
 at
 wicket.MarkupContainer.getAssociatedMarkupStream(
 MarkupContainer.java:827)
 at wicket.markup.html.WebPage.commonInit(WebPage.java:235)
 at wicket.markup.html.WebPage.init(WebPage.java:120)
 at ...

 and, as I said, happens when I restart the application in a
 Tomcat server. In my local development environment this doesn't 
happen.
 Thanks,

   Luis Pablo


 On 1/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Problems like that should have been fixed for a while now, so
  it may
  be something outside of Wicket. But could you give us your
  complete
  stacktrace please?
 
  Eelco
 
  On 1/29/07, Luis Pablo Gallo  [EMAIL PROTECTED]
  wrote:
 I have an app developed with wicket 1.2.4 running on a
  Tomcat 5.5.20.
   Whenever I upload a new jar archive with changes in
  my  classes and I
   restart the application (not the hole server) I get a
  NullPointerException
   in the XmlPullParser that has nothing to do with my
  application classes. I
   saw something in the mailing list archives talking about
  leaving the HTML
   files outside the jar file, but that doesn't seem to be the
  right solution.
 Can any of you help me with this? Thanks in advance,
  
   Luis Pablo
  
  
  
-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the
  chance to share your
   opinions on IT  business topics through brief surveys - and
  earn cash
  
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  
-
 
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
  to share your
  opinions on IT  business topics through brief surveys - and
  earn cash
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys - and
 earn cash

 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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



   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys - and 

Re: [Wicket-user] Problem restarting application in Tomcat

2007-01-30 Thread Johan Compagner

ahh you already checked in the same thing i guess :)

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


looks like the npe was hiding the real exception, i just checked in a
change that should fix that. update from svn wicket-1.2.x branch and
deploy that, then look for the exception in the log and let us know what it
is.

-igor


On 1/29/07, Luis Pablo Gallo [EMAIL PROTECTED] wrote:

 I can't reproduce it either. It happens on the hosting where we have our
 client's app running. In my development environment I can't make this
 happen, so I can't trace it. But this is really annoying and delays our
 work, that's why we're trying to find its source and solution.
 So I should try the latest sources? If there is no other option to try
 maybe I'll do it.
 thanks

 Luis Pablo

 On 1/29/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  i dont know. we are not sure what is causing it since it only affects
  a very small set of our users and none of the core devs can reproduce it on
  their setups. we did some work to what we think is a related issue (running
  out of open file handles) so it might help or it might not.
 
  -igor
 
 
  On 1/29/07, Luis Pablo Gallo  [EMAIL PROTECTED] wrote:
  
   I'm using the latest release. Is this a fixed issue in the source
   files?
  
   On 1/29/07, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
   
try the code from the latest 1.2.x branch
   
-igor
   
   
On 1/29/07, Luis Pablo Gallo  [EMAIL PROTECTED]  wrote:

 I tried in both modes, and it makes no difference.

 On 1/29/07, Igor Vaynberg [EMAIL PROTECTED]  wrote:
 
  did you deploy your app in development or deployment mode?
 
  -igor
 
 
  On 1/29/07, Luis Pablo Gallo  [EMAIL PROTECTED]
  wrote:
  
   I saw that thread, but either I don't understand it or it
   doesn't have the solution.
  
   On 1/29/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
   
http://www.nabble.com/Wicket-Exceptions-tf3013426.html#a8368437
   
-igor
   
   
On 1/29/07, Luis Pablo Gallo [EMAIL PROTECTED]
wrote:

 If it's something outside of Wicket it has nothing to do
 with my application because there isn't any line of a class 
of mine in the
 stack trace, such stack trace is:

 java.lang.NullPointerException
 at wicket.markup.parser.XmlPullParser.parse(
 XmlPullParser.java:390)
 at wicket.markup.MarkupParser.readAndParse(
 MarkupParser.java:196)
 at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java
 :279)
 at
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
 MarkupCache.java:354)
 at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :198)
 at wicket.markup.MarkupCache.getMarkupStream(
 MarkupCache.java:106)
 at
 wicket.MarkupContainer.getAssociatedMarkupStream(
 MarkupContainer.java:827)
 at wicket.markup.html.WebPage.commonInit(WebPage.java
 :235)
 at wicket.markup.html.WebPage.init(WebPage.java:120)
 at ...

 and, as I said, happens when I restart the application
 in a Tomcat server. In my local development environment this 
doesn't happen.
 Thanks,

   Luis Pablo


 On 1/29/07, Eelco Hillenius [EMAIL PROTECTED]
 wrote:
 
  Problems like that should have been fixed for a while
  now, so it may
  be something outside of Wicket. But could you give us
  your complete
  stacktrace please?
 
  Eelco
 
  On 1/29/07, Luis Pablo Gallo [EMAIL PROTECTED]
  wrote:
 I have an app developed with wicket 1.2.4 running
  on a Tomcat 5.5.20.
   Whenever I upload a new jar archive with changes in
  my  classes and I
   restart the application (not the hole server) I get
  a NullPointerException
   in the XmlPullParser that has nothing to do with my
  application classes. I
   saw something in the mailing list archives talking
  about leaving the HTML
   files outside the jar file, but that doesn't seem to
  be the right solution.
 Can any of you help me with this? Thanks in
  advance,
  
   Luis Pablo
  
  
  
-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get
  the chance to share your
   opinions on IT  business topics through brief
  surveys - and earn cash
  
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___

Re: [Wicket-user] ui framework choice

2007-01-30 Thread Andrew Klochkov
Scott Swank wrote:
 The stylesheet is not very simple though. -- Yup, that's that stage
 we're
 at.  :)

It's much easier to change modal window markup by overriding javascript
function Wicket.Window.getMarkup.

-- 
Andrew Klochkov


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Flavia Paganelli
Hi!

I'm working on a page that provides ajax behavior but also supports 
simple request-response without javascript.
I realized I need a component that provides the behavior of both 
AjaxFallbackLink and AjaxSubmitLink at the same time. On one hand I need 
it to be a submit link, because on click it has to access the data 
entered by the user. And on the other hand I also would like that my 
form worked even when javascript is not enabled.

Both requirements don't seem so odd, so I wonder if someone already had 
the same problem and found a solution for it. I've been looking at the 
classes to try to implement a new component with this characteristics, 
but I got lost.

Maybe there is an alternative solution that I'm not seeing...

Any help will be very much appreciated.

saludos,

Flavia

-- 
Flavia Paganelli
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-30 Thread Nathan Hamblen
I'm interested in this too, btw. I was looking into Groovy before but 
stopped when it appeared that 1.0 wouldn't support annotations well 
enough for Hibernate Annotations. Then I thought about stealing Grails' 
ActiveRecord clone, but I don't really like ActiveRecord any better than 
HA so I decided to wait until Groovy catches up with Java 5. (For me, 
this is all about not writing, generating, or seeing getters and 
setters in my beans.) So keep us posted please.

Nathan


nilo.de.roock wrote:
 I never heard of https://pnuts.dev.java.net/ before, I looked briefly at it.
 It's amazing how many excellent stuff is around, once you start looking for
 it. It's fun to talk about software, it's part of the ego, we all have our
 own preferences. I like Wicket a lot, we agree on that I suppose. I also
 like Windows, Opera, Dreamweaver, NetBeans and Groovy ( and Java most of all
 of course ). Things you probably don't like except for Java. I like Groovy
 and Wicket a lot. That explains the idea.
 
 But this remains irrelevant as long as I haven't got any code. First things
 first.
 -nilo


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-01-30 Thread Scott Swank

Very kind, thank you.

On 1/29/07, Jonathan Locke [EMAIL PROTECTED] wrote:




Sounds very smart.  I firmly believe that Wicket can peform and scale as
well as being productive and maintainable.  Let me know if you run into a
need for consulting help in this arena (or any other).


Scott Swank wrote:

 Right now we're focused on developer productivity, code-to-weight ratio
 and
 code clarity.  If this goes over then we'll look at performance.

 Scott

 On 1/29/07, Christopher Gardner [EMAIL PROTECTED] wrote:

 I apologize if this has been mentioned, but is comparative performance
 and
 load testing planned?  I'd love to see Wicket rule on this.


 On 1/29/07, Scott Swank [EMAIL PROTECTED] wrote:
 
  One week (of two) into the JSF vs. Wicket comparison here at
 Vegas.comthings are going nicely -- team Wicket is finished while team
 JSF is trying
  to get Ajax functionality working.  There were four people working on
 each
  implementation, but JSF is so far behind that an additional person
was
 added
  to the JSF team and one of the Wicket folk was moved from Wicket to
JSF
 --
  i.e. three folk working on Wicket and 6 on JSF in an effort to catch
  up.  The three of us remaining are working on:
 
  * overriding components' css -- i.e. a custom look/feel for
ModalWindow
  * unit test integration
  * cleaner use of dynamic models
 
  Cheers,
  Scott
 
  --
  Scott Swank
  reformed mathematician
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys - and earn
cash
 
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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





 --
 Scott Swank
 reformed mathematician


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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-user--ui-framework-choice-tf3137969.html#a8703686
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-01-30 Thread Scott Swank

Interesting, I'll dig into that a bit.  (Or more accurately, I'll pass this
on to the fellow who's actually working on the ModalWindow  DatePicker css
for our demo).

Cheers,
Scott

On 1/30/07, Andrew Klochkov [EMAIL PROTECTED] wrote:


Scott Swank wrote:
 The stylesheet is not very simple though. -- Yup, that's that stage
 we're
 at.  :)

It's much easier to change modal window markup by overriding javascript
function Wicket.Window.getMarkup.

--
Andrew Klochkov


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Fallback Submit Link

2007-01-30 Thread Igor Vaynberg

you say you want it to work even if javascript is disabled, but then you
cannot submit the form using a link! so you have to user a button to submit
it, and that is easy then, just look at the sourcecode from AjaxFallbackLink
and add the ajax behavior to a button instead of a link.

-igor


On 1/30/07, Flavia Paganelli [EMAIL PROTECTED] wrote:


Hi!

I'm working on a page that provides ajax behavior but also supports
simple request-response without javascript.
I realized I need a component that provides the behavior of both
AjaxFallbackLink and AjaxSubmitLink at the same time. On one hand I need
it to be a submit link, because on click it has to access the data
entered by the user. And on the other hand I also would like that my
form worked even when javascript is not enabled.

Both requirements don't seem so odd, so I wonder if someone already had
the same problem and found a solution for it. I've been looking at the
classes to try to implement a new component with this characteristics,
but I got lost.

Maybe there is an alternative solution that I'm not seeing...

Any help will be very much appreciated.

saludos,

Flavia

--
Flavia Paganelli
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do you load an external image?

2007-01-30 Thread Scott Swank

I went back to this last night and it just worked the way it should have in
the first place without any changes.  I imagine that we had something mucked
up in our app's resource stream locator.

Thanks again.

On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


ah, so the image doesnt even render, i see. i thought that url you
showed was in the image's src. so this thread doesnt have anything to
do with the staticimage component itself???

-igor


On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:
 No markup is produced.  It's in a ModalWindow.  Here's the dump from the
 Ajax debug window:

 INFO: Initiating Ajax GET request on

/wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random=
0.46680841416499696
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 On 1/24/07, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  that is very peculiar, i dont see a reason for it to look for a
packaged
 resource, what does the produced markup look like?
 
  -igor
 
 
 
 
  On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:
  
   And the html tag is simply:
  
  img wicket:id=productImage /
  
   Thank you.
  
  
   On 1/24/07, Scott Swank  [EMAIL PROTECTED] wrote:
  
The image is added to the panel like so:
   
   add(new StaticImage(productImage, 
 http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg
 ));
   
And that uses a convenience constructor I added to the original
 StaticImage:
   
package com.vegas.wicket;
   
import wicket.markup.ComponentTag;
import wicket.markup.html.WebComponent;
import wicket.model.IModel;
import wicket.model.Model;
   
public class StaticImage extends WebComponent
{
private static final long serialVersionUID =
 -7600332611457262341L;
   
public StaticImage(String id, IModel model)
{
super(id, model);
}
   
public StaticImage(String id, String url)
{
this(id, new Model(url));
}
   
protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, img);
tag.put(src, getModelObjectAsString());
}
}
  
  
  
   --
   Scott Swank
   reformed mathematician
  

-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
   opinions on IT  business topics through brief surveys - and earn
cash
  

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 



 --
 Scott Swank
 reformed mathematician

-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Is there anyone can compare echo2 and wicket 2?

2007-01-30 Thread Igor Vaynberg

also compare the different styles of custom component creation:

here is a tutorial for echo2
http://wiki.nextapp.com/echowiki/WritingYourOwnComponentPeersPart1

another point to consider is that development is much easier with
echostudio, but it costs money.

-igor


On 1/30/07, tooy li(Gmail) [EMAIL PROTECTED] wrote:


I find echo2 have more components and more ajax support. and also support
html layout. so what's the advantage of wicket ?  or some one can tell me
the disadvantage of echo?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Fwd: [pax-wicket] Support for wicket 2.0

2007-01-30 Thread Eelco Hillenius
FYI,

Eelco

-- Forwarded message --
From: Edward Yakop [EMAIL PROTECTED]
Date: Jan 30, 2007 12:37 AM
Subject: [pax-wicket] Support for wicket 2.0
To: General OPS4J general@lists.ops4j.org


Hi,

Pax-wicket now supports wicket-2.0. The code is lightly tested via
pax-wicket-example and it is running successfully.

The code can be checked out from
https://scm.ops4j.org/repos/ops4j/branches/pax/wicket-2.0

Regards,
Edward Yakop

Note:
* You will need to mvn install wicket, wicket-auth-roles and
wicket-extensions 2.0-SNAPSHOT that can be check out from
http://svn.apache.org/repos/asf/incubator/wicket/trunk
* If mvn install fails because of wicket test fails please move each
src/main/test before mvn install.
* This code is considered EXTREMELY experimental, please do not use in project.

___
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Igor Vaynberg

wicket does this for you

 pasted from eelco's reply to another thread ===
Just FYI, in case you need to know whether your client supports
JavaScript, can be determined with:

((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

which works (best) when you do:

getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

in your application's init method.
===

if you set gatherextendedbrowserinfo(true) that will also give you the
window size in clientinfo properties

-igor


On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:


My boss like me to add some script to detect browser dimensions and
set better height / width to modalwindow, there is some site telling
me how to get the dimensions. The only way I know is adding hidden
fields to webpages and update those fields using javascript.

However, if something changed at javascript side it is easy to forget
update at HTML side and deliver software with bugs to clients. Just
wonder if wicket provide any API which help to update session variable
or hidden field with custom javascript so that it is easier to
maintain?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
Yep. You can take a look at wicket.examples.hellobrowser to see it in
action. You can customize this by overriding
wicket.RequestCycle#newClientInfo() (which would obviously have to be
in a custom request cycle). Take a look at
wicket.markup.html.pages.BrowserInfoPage to see how it all works in
case you want to built it from scratch yourself.

Eelco


On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 wicket does this for you

  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:

 ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



  On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
  My boss like me to add some script to detect browser dimensions and
  set better height / width to modalwindow, there is some site telling
  me how to get the dimensions. The only way I know is adding hidden
  fields to webpages and update those fields using javascript.
 
  However, if something changed at javascript side it is easy to forget
  update at HTML side and deliver software with bugs to clients. Just
  wonder if wicket provide any API which help to update session variable
  or hidden field with custom javascript so that it is easier to
  maintain?
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
Hi, I need to change the number of column in a table upon the client page size.

How do I get the size of the browser page? Consider that I receive a
request from a simple search form and I have to compute the number of
column after that request.

Is there a wicket way to get the size of the page?
The only other way is to get via javascript the size and manually put
it in the search request. This code will go in html so it could just
be a temporary solution.

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg

 pasted from eelco's reply to another thread ===
Just FYI, in case you need to know whether your client supports
JavaScript, can be determined with:

((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

which works (best) when you do:

getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

in your application's init method.
===

if you set gatherextendedbrowserinfo(true) that will also give you the
window size in clientinfo properties

-igor


On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:


Hi, I need to change the number of column in a table upon the client page
size.

How do I get the size of the browser page? Consider that I receive a
request from a simple search form and I have to compute the number of
column after that request.

Is there a wicket way to get the size of the page?
The only other way is to get via javascript the size and manually put
it in the search request. This code will go in html so it could just
be a temporary solution.

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

If you add a component as an Ajax target, but you have not called
setOutputMarkupId(true) on the component then the ajax call will never find
its target and will silently fail.  Should this raise a runtime exception or
is there a use case where we would want the Ajax call to silently fail?

Thank you,
Scott

--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Nick Heudecker

The Ajax debug window tells you that it couldn't find a component with the
relevant id.  It's available in development mode.

On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:


If you add a component as an Ajax target, but you have not called
setOutputMarkupId(true) on the component then the ajax call will never find
its target and will silently fail.  Should this raise a runtime exception or
is there a use case where we would want the Ajax call to silently fail?

Thank you,
Scott

--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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






--
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

Good point, thank you.  Still, should it raise a Java exception or are there
cases where one would want it to fail?

On 1/30/07, Nick Heudecker [EMAIL PROTECTED] wrote:


The Ajax debug window tells you that it couldn't find a component with the
relevant id.  It's available in development mode.

On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:

 If you add a component as an Ajax target, but you have not called
 setOutputMarkupId(true) on the component then the ajax call will never find
 its target and will silently fail.  Should this raise a runtime exception or
 is there a use case where we would want the Ajax call to silently fail?

 Thank you,
 Scott

 --
 Scott Swank
 reformed mathematician

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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





--
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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






--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Igor Vaynberg

it does in 1.3 and 2.0

-igor


On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:


Good point, thank you.  Still, should it raise a Java exception or are
there cases where one would want it to fail?

On 1/30/07, Nick Heudecker  [EMAIL PROTECTED] wrote:

 The Ajax debug window tells you that it couldn't find a component with
 the relevant id.  It's available in development mode.

 On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:

  If you add a component as an Ajax target, but you have not called
  setOutputMarkupId(true) on the component then the ajax call will never find
  its target and will silently fail.  Should this raise a runtime exception or
  is there a use case where we would want the Ajax call to silently fail?
 
  Thank you,
  Scott
 
  --
  Scott Swank
  reformed mathematician
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 --
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com

 Eventful - Intelligent Event Management
 http://www.eventfulhq.com

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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





--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-30 Thread nilo.de.roock

I am going ahead with Groovy. ( It's seem to be a love / hate thing with
Groovy, but that only proves that it has a strong 'personality' ).  I'll
keep the list posted.

( 
Off-topic: this is a blog article about Groovy and Hibernate: 

http://jroller.com/page/mohanradhakrishnan?entry=prototyping_with_groovy
)
-nilo


n8han wrote:
 
 I'm interested in this too, btw. I was looking into Groovy before but 
 stopped when it appeared that 1.0 wouldn't support annotations well 
 enough for Hibernate Annotations. Then I thought about stealing Grails' 
 ActiveRecord clone, but I don't really like ActiveRecord any better than 
 HA so I decided to wait until Groovy catches up with Java 5. (For me, 
 this is all about not writing, generating, or seeing getters and 
 setters in my beans.) So keep us posted please.
 
 Nathan
 
 
 nilo.de.roock wrote:
 I never heard of https://pnuts.dev.java.net/ before, I looked briefly at
 it.
 It's amazing how many excellent stuff is around, once you start looking
 for
 it. It's fun to talk about software, it's part of the ego, we all have
 our
 own preferences. I like Wicket a lot, we agree on that I suppose. I also
 like Windows, Opera, Dreamweaver, NetBeans and Groovy ( and Java most of
 all
 of course ). Things you probably don't like except for Java. I like
 Groovy
 and Wicket a lot. That explains the idea.
 
 But this remains irrelevant as long as I haven't got any code. First
 things
 first.
 -nilo
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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-user--Groovy-integration--Scripting-languages-tf3121629.html#a8716576
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

Sweet.

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


it does in 1.3 and 2.0

-igor


On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:

 Good point, thank you.  Still, should it raise a Java exception or are
 there cases where one would want it to fail?

 On 1/30/07, Nick Heudecker  [EMAIL PROTECTED] wrote:
 
  The Ajax debug window tells you that it couldn't find a component with
  the relevant id.  It's available in development mode.
 
  On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:
 
   If you add a component as an Ajax target, but you have not called
   setOutputMarkupId(true) on the component then the ajax call will never 
find
   its target and will silently fail.  Should this raise a runtime exception 
or
   is there a use case where we would want the Ajax call to silently fail?
  
   Thank you,
   Scott
  
   --
   Scott Swank
   reformed mathematician
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys - and earn
   cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  --
  Nick Heudecker
  Professional Wicket Training  Consulting
  http://www.systemmobile.com
 
  Eventful - Intelligent Event Management
  http://www.eventfulhq.com
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 --
 Scott Swank
 reformed mathematician

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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






--
Scott Swank
reformed mathematician
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2007-01-30 Thread dukejansen

I have tried the suggestion, and am still having trouble.

In my base page component, I have the following code at the end of the
constructor:

   setVersioned(false);
 
In addition, I have the following code in my extension of
WebApplication.init:

getSessionSettings().setMaxPageMaps(1);
getPageSettings().setMaxPageVersions(1);
getPageSettings().setVersionPagesByDefault(false);

Despite all of this, if I navigate to the URL for one of these pages, then
navigate to that URL again with different parameters, I see two pages in my
session. In fact, I always see between 1 and 5 pages in session. It seems to
max out at 5:

p:null:7 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 7]
p:null:8 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 8]
p:null:5 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 5]
p:null:9 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 9]
p:null:6 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 6]

I'm thinking that the original suggestion may not have been correct for the
problem I'm trying to solve. How can I ensure that when they navigate to the
same URL with new parameters, Wicket creates a new page and abandons the
previous instance of that page?

I'm guessing I would need to override whatever factory method creates pages
so that it can check the page map and remove any previous instances of the
page before creating and returning a new one.

-Jason


dukejansen wrote:
 
 Did not know about that functionality. Sounds perfect. Then for pages
 which must always have bookmarkable URL, we can always extend a base class
 that sets itself to unversioned, and for other non-bookmarkable pages we
 can still rely on the standard behavior with back button support.
 
 Thanks!
 
 -Jason
 
 
 Johan Compagner wrote:
 
 Ahh so you are using pages with state. (you use ajax)
 You just don't want to version them? Because for navigation you only use
 bookmarkable pages
 
 Just have one base page that does serVersioned(false)
 then all your pages are unversioned.
 
 johan
 
 
 On 1/24/07, dukejansen [EMAIL PROTECTED] wrote:


 Sorry, guess I misunderstood. Still trying to wrap my head around these
 concepts.

 We have an app that is all bookmarkable pages so far, but we may
 encounter
 cases without them further down the road.

 But even for our bookmarkable pages, they may have lots of activity on
 them
 which is ajax actions which update the model behind the scenes. The way
 wicket wires components to their models is still very beneficial, as is
 the
 markup inheritance and java-centric development model, etc.

 As an example, we currently have a search results page which must always
 include all search criteria in the URL. So right now we have multiple
 panels
 with various search criteria. When the user updates the form elements
 and
 clicks search, we let wicket update all the backing models for us,
 then
 we
 assemble a new URL based on the updated models, and redirect to the new
 URL.

 This is instead of what might be a more familiar web model where the
 form
 data is simply submitted TO the new URL -- instead, we are submitting to
 wicket, letting wicket do all the updates to our backing state, and then
 we
 just construct a new URL to represent the new criteria and redirect to
 it.

 I won't deny that this is a bit wacky, but it was the only way I could
 find
 to ensure that my search criteria are included in the URL, but we still
 get
 wicket's free behavior of updating all model data. The trick is that we
 are
 abandoning the updated model data and redirecting to a new page...

 Not sure how well I've explained this. If there was a way to get wicket
 to
 simply use bookmarkable URLs when it does the form submission, I'd be
 happy
 to fall back on wicket.

 Also, FYI, we are using a lot of the Wicket ajax behavior for updating
 state
 which does NOT need to be in the URL.

 -Jason


 Johan Compagner wrote:
 
  But i was talking about the settings maxpageversions.
  thats not the same thing as how many there can be in the pagemap
  That depends on the page map that is used (in 1.3 or 2.0)
  AccessStackPageMap uses by default 5 because that is EvictionStrategy:
 
  private IPageMapEvictionStrategy pageMapEvictionStrategy = new
  LeastRecentlyAccessedEvictionStrategy(5);
 
  The PageMap of the secondlevelcache only has one active in the
 session.
 
  But you are making an app where all the urls are again bookmarkable
 and
  you
  don't use forms anywhere?
  or if you use for (with wicket 1.2) you handle the post in the
 constructor
  of the page itself?
  Thats not really where wicket is made for, your throw away pretty much
 90%
  of what makes wicket.
 
  johan
 
 
 
  On 1/24/07, dukejansen [EMAIL PROTECTED] wrote:
 
 
  I think the current method name makes sense, but what is unclear is
  whether
  the CURRENT 

Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2007-01-30 Thread Igor Vaynberg

hmm

getSessionSettings().setPageMapEvictionStrategy(new
IPageMapEvictionStrategy() {
public void evict(IPageMap pageMap) {
 syncrhonized (Session.get()) {pageMap.clear();}
}
}

-igor



On 1/30/07, dukejansen [EMAIL PROTECTED] wrote:



I have tried the suggestion, and am still having trouble.

In my base page component, I have the following code at the end of the
constructor:

   setVersioned(false);

In addition, I have the following code in my extension of
WebApplication.init:

getSessionSettings().setMaxPageMaps(1);
getPageSettings().setMaxPageVersions(1);
getPageSettings().setVersionPagesByDefault(false);

Despite all of this, if I navigate to the URL for one of these pages, then
navigate to that URL again with different parameters, I see two pages in
my
session. In fact, I always see between 1 and 5 pages in session. It seems
to
max out at 5:

p:null:7 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 7]
p:null:8 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 8]
p:null:5 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 5]
p:null:9 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 9]
p:null:6 = [Page class =
com.removed.wicket.page.search.SearchResultsPage, id = 6]

I'm thinking that the original suggestion may not have been correct for
the
problem I'm trying to solve. How can I ensure that when they navigate to
the
same URL with new parameters, Wicket creates a new page and abandons the
previous instance of that page?

I'm guessing I would need to override whatever factory method creates
pages
so that it can check the page map and remove any previous instances of the
page before creating and returning a new one.

-Jason


dukejansen wrote:

 Did not know about that functionality. Sounds perfect. Then for pages
 which must always have bookmarkable URL, we can always extend a base
class
 that sets itself to unversioned, and for other non-bookmarkable pages we
 can still rely on the standard behavior with back button support.

 Thanks!

 -Jason


 Johan Compagner wrote:

 Ahh so you are using pages with state. (you use ajax)
 You just don't want to version them? Because for navigation you only
use
 bookmarkable pages

 Just have one base page that does serVersioned(false)
 then all your pages are unversioned.

 johan


 On 1/24/07, dukejansen [EMAIL PROTECTED] wrote:


 Sorry, guess I misunderstood. Still trying to wrap my head around
these
 concepts.

 We have an app that is all bookmarkable pages so far, but we may
 encounter
 cases without them further down the road.

 But even for our bookmarkable pages, they may have lots of activity on
 them
 which is ajax actions which update the model behind the scenes. The
way
 wicket wires components to their models is still very beneficial, as
is
 the
 markup inheritance and java-centric development model, etc.

 As an example, we currently have a search results page which must
always
 include all search criteria in the URL. So right now we have multiple
 panels
 with various search criteria. When the user updates the form elements
 and
 clicks search, we let wicket update all the backing models for us,
 then
 we
 assemble a new URL based on the updated models, and redirect to the
new
 URL.

 This is instead of what might be a more familiar web model where the
 form
 data is simply submitted TO the new URL -- instead, we are submitting
to
 wicket, letting wicket do all the updates to our backing state, and
then
 we
 just construct a new URL to represent the new criteria and redirect to
 it.

 I won't deny that this is a bit wacky, but it was the only way I could
 find
 to ensure that my search criteria are included in the URL, but we
still
 get
 wicket's free behavior of updating all model data. The trick is that
we
 are
 abandoning the updated model data and redirecting to a new page...

 Not sure how well I've explained this. If there was a way to get
wicket
 to
 simply use bookmarkable URLs when it does the form submission, I'd be
 happy
 to fall back on wicket.

 Also, FYI, we are using a lot of the Wicket ajax behavior for updating
 state
 which does NOT need to be in the URL.

 -Jason


 Johan Compagner wrote:
 
  But i was talking about the settings maxpageversions.
  thats not the same thing as how many there can be in the pagemap
  That depends on the page map that is used (in 1.3 or 2.0)
  AccessStackPageMap uses by default 5 because that is
EvictionStrategy:
 
  private IPageMapEvictionStrategy pageMapEvictionStrategy = new
  LeastRecentlyAccessedEvictionStrategy(5);
 
  The PageMap of the secondlevelcache only has one active in the
 session.
 
  But you are making an app where all the urls are again bookmarkable
 and
  you
  don't use forms anywhere?
  or if you use for (with wicket 1.2) you handle the post in the
 constructor
  of the page itself?
  Thats not really where wicket is made 

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
thanks for quick reply.

With this method I receive just the desktop window size and bit depth
(i.e. 1280*800*24 for me) but what I need is the size of the browser
window.

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:

 ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  Hi, I need to change the number of column in a table upon the client page
 size.
 
  How do I get the size of the browser page? Consider that I receive a
  request from a simple search form and I have to compute the number of
  column after that request.
 
  Is there a wicket way to get the size of the page?
  The only other way is to get via javascript the size and manually put
  it in the search request. This code will go in html so it could just
  be a temporary solution.
 
  Thanks.
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
to be complete, this are the info i receive with java 1.5 under ubuntu
linux, running under maven 2 jetty plugin (6.1) and with firefox
2.0.0.1

On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 thanks for quick reply.

 With this method I receive just the desktop window size and bit depth
 (i.e. 1280*800*24 for me) but what I need is the size of the browser
 window.

 On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   pasted from eelco's reply to another thread ===
  Just FYI, in case you need to know whether your client supports
  JavaScript, can be determined with:
 
  ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
 
  which works (best) when you do:
 
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 
  in your application's init method.
  ===
 
  if you set gatherextendedbrowserinfo(true) that will also give you the
  window size in clientinfo properties
 
  -igor
 
 
 
  On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  
   Hi, I need to change the number of column in a table upon the client page
  size.
  
   How do I get the size of the browser page? Consider that I receive a
   request from a simple search form and I have to compute the number of
   column after that request.
  
   Is there a wicket way to get the size of the page?
   The only other way is to get via javascript the size and manually put
   it in the search request. This code will go in html so it could just
   be a temporary solution.
  
   Thanks.
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief surveys - and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg

hmm thought we already had that, guess we need to add it

feel free to file a jira issue for this, and def feel free to create a patch
:)

-igor


On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:


thanks for quick reply.

With this method I receive just the desktop window size and bit depth
(i.e. 1280*800*24 for me) but what I need is the size of the browser
window.

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:


((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  Hi, I need to change the number of column in a table upon the client
page
 size.
 
  How do I get the size of the browser page? Consider that I receive a
  request from a simple search form and I have to compute the number of
  column after that request.
 
  Is there a wicket way to get the size of the page?
  The only other way is to get via javascript the size and manually put
  it in the search request. This code will go in html so it could just
  be a temporary solution.
 
  Thanks.
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
I will be very happy to do that but I need some help cause I am really
a wicket newbie.

I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
that, I suppose, get all the info we should need.

First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
#init() and so far it is the only difference I can expect in #init()
after getGatherExtendedBrowserInfo() is checked to be true, I think I
am missing something or I am watching in the wrong places.

Any advice?

I will fill the jira report tomorrow.

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 hmm thought we already had that, guess we need to add it

 feel free to file a jira issue for this, and def feel free to create a patch
 :)


 -igor


 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  thanks for quick reply.
 
  With this method I receive just the desktop window size and bit depth
  (i.e. 1280*800*24 for me) but what I need is the size of the browser
  window.
 
  On 1/30/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
    pasted from eelco's reply to another thread ===
   Just FYI, in case you need to know whether your client supports
   JavaScript, can be determined with:
  
  
 ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
  
   which works (best) when you do:
  
  
 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
  
   in your application's init method.
   ===
  
   if you set gatherextendedbrowserinfo(true) that will also give you the
   window size in clientinfo properties
  
   -igor
  
  
  
   On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
   
Hi, I need to change the number of column in a table upon the client
 page
   size.
   
How do I get the size of the browser page? Consider that I receive a
request from a simple search form and I have to compute the number of
column after that request.
   
Is there a wicket way to get the size of the page?
The only other way is to get via javascript the size and manually put
it in the search request. This code will go in html so it could just
be a temporary solution.
   
Thanks.
   
   
  
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
opinions on IT  business topics through brief surveys - and earn cash
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys - and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Conny Kühne

Hi,

my scenario is as follows:

I have a registration form (non ajax) and want to add a link that checks the
availability of the username
(i.e., if it has already been taken) via ajax.

So I need a way to get the value of a form field without submitting the
form. Ideally the value of the form field
should be read (or it's model updated) when the ajax link is clicked.

Is there a convinient way to achieve this behavior.

Best regards,
Conny
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to include a form field in the ajax request without form submit

2007-01-30 Thread Igor Vaynberg

see ajaxformcomponentupdatingbehavior

-igor


On 1/30/07, Conny Kühne [EMAIL PROTECTED] wrote:


Hi,

my scenario is as follows:

I have a registration form (non ajax) and want to add a link that checks
the availability of the username
(i.e., if it has already been taken) via ajax.

So I need a way to get the value of a form field without submitting the
form. Ideally the value of the form field
should be read (or it's model updated) when the ajax link is clicked.

Is there a convinient way to achieve this behavior.

Best regards,
Conny

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
I added the functionality, see: http://issues.apache.org/jira/browse/WICKET-248

You can use the example 'hellobrowser' from wicket-examples to track
what is going on and test whether it works for you.

Eelco


On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 I will be very happy to do that but I need some help cause I am really
 a wicket newbie.

 I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
 that, I suppose, get all the info we should need.

 First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
 #init() and so far it is the only difference I can expect in #init()
 after getGatherExtendedBrowserInfo() is checked to be true, I think I
 am missing something or I am watching in the wrong places.

 Any advice?

 I will fill the jira report tomorrow.

 On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  hmm thought we already had that, guess we need to add it
 
  feel free to file a jira issue for this, and def feel free to create a patch
  :)
 
 
  -igor
 
 
  On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
   thanks for quick reply.
  
   With this method I receive just the desktop window size and bit depth
   (i.e. 1280*800*24 for me) but what I need is the size of the browser
   window.
  
   On 1/30/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 pasted from eelco's reply to another thread ===
Just FYI, in case you need to know whether your client supports
JavaScript, can be determined with:
   
   
  ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
   
which works (best) when you do:
   
   
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
   
in your application's init method.
===
   
if you set gatherextendedbrowserinfo(true) that will also give you the
window size in clientinfo properties
   
-igor
   
   
   
On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:

 Hi, I need to change the number of column in a table upon the client
  page
size.

 How do I get the size of the browser page? Consider that I receive a
 request from a simple search form and I have to compute the number of
 column after that request.

 Is there a wicket way to get the size of the page?
 The only other way is to get via javascript the size and manually put
 it in the search request. This code will go in html so it could just
 be a temporary solution.

 Thanks.


   
  -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
  share
your
 opinions on IT  business topics through brief surveys - and earn cash

   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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

   
   
   
  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
opinions on IT  business topics through brief surveys - and earn cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief surveys - and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT 

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
Note, btw, that this polling is only done the first time you request
for the client properties object. You should use ClientProperties with
care, and if you really need to depend on the client window dimensions
(think twice about whether that is what you really want as well), you
may consider polling this with each request. See BrowserInfoPage.html
for the JavaScript fragment that does that.

Eelco


On 1/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I added the functionality, see: 
 http://issues.apache.org/jira/browse/WICKET-248

 You can use the example 'hellobrowser' from wicket-examples to track
 what is going on and test whether it works for you.

 Eelco


 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  I will be very happy to do that but I need some help cause I am really
  a wicket newbie.
 
  I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
  that, I suppose, get all the info we should need.
 
  First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
  #init() and so far it is the only difference I can expect in #init()
  after getGatherExtendedBrowserInfo() is checked to be true, I think I
  am missing something or I am watching in the wrong places.
 
  Any advice?
 
  I will fill the jira report tomorrow.
 
  On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   hmm thought we already had that, guess we need to add it
  
   feel free to file a jira issue for this, and def feel free to create a 
   patch
   :)
  
  
   -igor
  
  
   On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
thanks for quick reply.
   
With this method I receive just the desktop window size and bit depth
(i.e. 1280*800*24 for me) but what I need is the size of the browser
window.
   
On 1/30/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:


   ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:


   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  Hi, I need to change the number of column in a table upon the client
   page
 size.
 
  How do I get the size of the browser page? Consider that I receive a
  request from a simple search form and I have to compute the number 
  of
  column after that request.
 
  Is there a wicket way to get the size of the page?
  The only other way is to get via javascript the size and manually 
  put
  it in the search request. This code will go in html so it could just
  be a temporary solution.
 
  Thanks.
 
 

   -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
   share
 your
  opinions on IT  business topics through brief surveys - and earn 
  cash
 

   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 



   -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to 
 share
   your
 opinions on IT  business topics through brief surveys - and earn cash

   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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



   
   
   -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
opinions on IT  business topics through brief surveys - and earn cash
   
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   

[Wicket-user] Editable DataView - Spreadsheet like

2007-01-30 Thread Wolfgang Gehner
Hi there,

Ive been combing DataView with AjaxEditableLabel to make a dataview
editable. This seems to have problems when the dataview has lotsa
lines, like in a spreadsheet - creating too many (X x Y) components.
Has someone created a spreadsheet-like wicket component that doesn't
have that problem and would be willing to share the code?
Thanks a lot,
Wolfgang

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
great!

of course the change is only in the trunk. I see on jira that you
marked it for 1.3 as well as for 2.0.
As far as i know, trunk will go in 2.0. There will be a 1.3?

My options right now are to build trunk and try to port my app from
1.2 to 2.0. But if exists a 1.3 branch I guess it should be easier to
port my 1.2 app, isn't it? My problem is that I do not know if 1.3
exists and will be a release or if you will go directly to 2.0.

Thanks.

On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I added the functionality, see: 
 http://issues.apache.org/jira/browse/WICKET-248

 You can use the example 'hellobrowser' from wicket-examples to track
 what is going on and test whether it works for you.

 Eelco


 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  I will be very happy to do that but I need some help cause I am really
  a wicket newbie.
 
  I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
  that, I suppose, get all the info we should need.
 
  First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
  #init() and so far it is the only difference I can expect in #init()
  after getGatherExtendedBrowserInfo() is checked to be true, I think I
  am missing something or I am watching in the wrong places.
 
  Any advice?
 
  I will fill the jira report tomorrow.
 
  On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   hmm thought we already had that, guess we need to add it
  
   feel free to file a jira issue for this, and def feel free to create a 
   patch
   :)
  
  
   -igor
  
  
   On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
thanks for quick reply.
   
With this method I receive just the desktop window size and bit depth
(i.e. 1280*800*24 for me) but what I need is the size of the browser
window.
   
On 1/30/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:


   ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:


   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  Hi, I need to change the number of column in a table upon the client
   page
 size.
 
  How do I get the size of the browser page? Consider that I receive a
  request from a simple search form and I have to compute the number 
  of
  column after that request.
 
  Is there a wicket way to get the size of the page?
  The only other way is to get via javascript the size and manually 
  put
  it in the search request. This code will go in html so it could just
  be a temporary solution.
 
  Thanks.
 
 

   -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
   share
 your
  opinions on IT  business topics through brief surveys - and earn 
  cash
 

   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 



   -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to 
 share
   your
 opinions on IT  business topics through brief surveys - and earn cash

   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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



   
   
   -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
opinions on IT  business topics through brief surveys - and earn cash
   
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   -
   Take 

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Igor Vaynberg

https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.x

i believe

-igor


On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:


great!

of course the change is only in the trunk. I see on jira that you
marked it for 1.3 as well as for 2.0.
As far as i know, trunk will go in 2.0. There will be a 1.3?

My options right now are to build trunk and try to port my app from
1.2 to 2.0. But if exists a 1.3 branch I guess it should be easier to
port my 1.2 app, isn't it? My problem is that I do not know if 1.3
exists and will be a release or if you will go directly to 2.0.

Thanks.

On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I added the functionality, see:
http://issues.apache.org/jira/browse/WICKET-248

 You can use the example 'hellobrowser' from wicket-examples to track
 what is going on and test whether it works for you.

 Eelco


 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  I will be very happy to do that but I need some help cause I am really
  a wicket newbie.
 
  I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
  that, I suppose, get all the info we should need.
 
  First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
  #init() and so far it is the only difference I can expect in #init()
  after getGatherExtendedBrowserInfo() is checked to be true, I think I
  am missing something or I am watching in the wrong places.
 
  Any advice?
 
  I will fill the jira report tomorrow.
 
  On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   hmm thought we already had that, guess we need to add it
  
   feel free to file a jira issue for this, and def feel free to create
a patch
   :)
  
  
   -igor
  
  
   On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
thanks for quick reply.
   
With this method I receive just the desktop window size and bit
depth
(i.e. 1280*800*24 for me) but what I need is the size of the
browser
window.
   
On 1/30/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:


  
((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:


   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give
you the
 window size in clientinfo properties

 -igor



 On 1/30/07, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  Hi, I need to change the number of column in a table upon the
client
   page
 size.
 
  How do I get the size of the browser page? Consider that I
receive a
  request from a simple search form and I have to compute the
number of
  column after that request.
 
  Is there a wicket way to get the size of the page?
  The only other way is to get via javascript the size and
manually put
  it in the search request. This code will go in html so it
could just
  be a temporary solution.
 
  Thanks.
 
 

  
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
to
   share
 your
  opinions on IT  business topics through brief surveys - and
earn cash
 

  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 



  
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
to share
   your
 opinions on IT  business topics through brief surveys - and
earn cash

  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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



   
   
  
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share
   your
opinions on IT  business topics through brief surveys - and earn
cash
   
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Eelco Hillenius
 of course the change is only in the trunk.

Trunk and wicket-1.x.

 I see on jira that you
 marked it for 1.3 as well as for 2.0.
 As far as i know, trunk will go in 2.0. There will be a 1.3?

Yeah, 1.3 is actually the version that is most heavily under
development right now. It is basically 1.2 with a lot of 2.0 back
ports. We wanted to keep 1.2 free of API breaks, but took that liberty
for 1.3: http://cwiki.apache.org/WICKET/migrate-13.html. Of course,
not everything is back ported from 2.0, most notably the constructor
change, adoption of Java 5 features and the model interface change are
2.0 only. Read more here:
http://cwiki.apache.org/WICKET/migrate-20.html (and keep in mind that
this document describes from 1.2 to 2.0, so there's a considerable
overlap with the 1.2-1.3 port.

 My options right now are to build trunk and try to port my app from
 1.2 to 2.0. But if exists a 1.3 branch I guess it should be easier to
 port my 1.2 app, isn't it? My problem is that I do not know if 1.3
 exists and will be a release or if you will go directly to 2.0.

Yep. Though we didn't make January, we *still* plan on releasing 1.3
asap. You can find it and build it from
https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.x

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
I can get the SCREEN_HEIGHT value using
http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT
but this is kind of hard to work with in my case as I need to guess
the height of the browsing area of the browser.

Can I get the body element height? I found some resource at web -
http://www.quirksmode.org/js/doctypes.html . Can I refer to value of
some valuables there?

On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yep. You can take a look at wicket.examples.hellobrowser to see it in
 action. You can customize this by overriding
 wicket.RequestCycle#newClientInfo() (which would obviously have to be
 in a custom request cycle). Take a look at
 wicket.markup.html.pages.BrowserInfoPage to see how it all works in
 case you want to built it from scratch yourself.

 Eelco


 On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  wicket does this for you
 
   pasted from eelco's reply to another thread ===
  Just FYI, in case you need to know whether your client supports
  JavaScript, can be determined with:
 
  ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
 
  which works (best) when you do:
 
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 
  in your application's init method.
  ===
 
  if you set gatherextendedbrowserinfo(true) that will also give you the
  window size in clientinfo properties
 
  -igor
 
 
 
   On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
   My boss like me to add some script to detect browser dimensions and
   set better height / width to modalwindow, there is some site telling
   me how to get the dimensions. The only way I know is adding hidden
   fields to webpages and update those fields using javascript.
  
   However, if something changed at javascript side it is easy to forget
   update at HTML side and deliver software with bugs to clients. Just
   wonder if wicket provide any API which help to update session variable
   or hidden field with custom javascript so that it is easier to
   maintain?
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief surveys - and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] [wicket-1.x, wicket-2.0] ServletWebRequest#getRelativeURL()

2007-01-30 Thread Edward Yakop
Hi,

I have a small bug to fix for ServletWebRequest#getRelativeURL(). For
some odd reason, for resources (images, css etcs) to be displayed for
Felix http service, ServletWebRequest#getServletPath() and
#getContextPath() must be swapped. Due to getRelativeURL() uses
httpServletRequest.getServletPath()  to initialize the url variable
instead of calling ServletWebRequest#getServletPath(), the returned
string is invalid in this setup.

Can we change the implementation of getRelativeURL()
from
code
public String getRelativeURL()
{
   ...
   String url = httpServletRequest.getServletPath();
   final String pathInfo = httpServletRequest.getPathInfo();

   ...
   return url;
}
/code

to
code
public String getRelativeURL()
{
   ...
   String url = getServletPath(); // Modified line
   final String pathInfo = httpServletRequest.getPathInfo();

   ...
   return url;
}
/code

The use case why this is a bug when we have a login page that does not
have redirection pages, getRelativeURL() returns
/mountPoint/mountPoint/, instead of only /mountPoint/.

Regards,
Edward Yakop

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Igor Vaynberg

this has been added in svn today

see the wicket-1.x branch

-igor


On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:


I can get the SCREEN_HEIGHT value using

http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT
but this is kind of hard to work with in my case as I need to guess
the height of the browsing area of the browser.

Can I get the body element height? I found some resource at web -
http://www.quirksmode.org/js/doctypes.html . Can I refer to value of
some valuables there?

On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yep. You can take a look at wicket.examples.hellobrowser to see it in
 action. You can customize this by overriding
 wicket.RequestCycle#newClientInfo() (which would obviously have to be
 in a custom request cycle). Take a look at
 wicket.markup.html.pages.BrowserInfoPage to see how it all works in
 case you want to built it from scratch yourself.

 Eelco


 On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  wicket does this for you
 
   pasted from eelco's reply to another thread ===
  Just FYI, in case you need to know whether your client supports
  JavaScript, can be determined with:
 
 
((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
 
  which works (best) when you do:
 
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 
  in your application's init method.
  ===
 
  if you set gatherextendedbrowserinfo(true) that will also give you the
  window size in clientinfo properties
 
  -igor
 
 
 
   On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
   My boss like me to add some script to detect browser dimensions and
   set better height / width to modalwindow, there is some site telling
   me how to get the dimensions. The only way I know is adding hidden
   fields to webpages and update those fields using javascript.
  
   However, if something changed at javascript side it is easy to
forget
   update at HTML side and deliver software with bugs to clients. Just
   wonder if wicket provide any API which help to update session
variable
   or hidden field with custom javascript so that it is easier to
   maintain?
  
  
 
-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
   opinions on IT  business topics through brief surveys - and earn
cash
  
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share your
  opinions on IT  business topics through brief surveys - and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
Thanks a lot, however for now I use the following code to get the screen height:

final ClientProperties prop =
((WebClientInfo)modal.getSession().getClientInfo()).getProperties();
final int screenHeight =
prop.getInt(ClientProperties.SCREEN_HEIGHT, 800);

However it just return 800 for all browse (I am using 1400x1050), am I
using wrong method?

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 this has been added in svn today

 see the wicket-1.x branch

 -igor



 On 1/30/07, Carfield Yim [EMAIL PROTECTED]  wrote:
  I can get the SCREEN_HEIGHT value using
 
 http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT
  but this is kind of hard to work with in my case as I need to guess
  the height of the browsing area of the browser.
 
  Can I get the body element height? I found some resource at web -
  http://www.quirksmode.org/js/doctypes.html . Can I refer
 to value of
  some valuables there?
 
  On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Yep. You can take a look at wicket.examples.hellobrowser to see it in
   action. You can customize this by overriding
   wicket.RequestCycle#newClientInfo() (which would
 obviously have to be
   in a custom request cycle). Take a look at
   wicket.markup.html.pages.BrowserInfoPage to see how it
 all works in
   case you want to built it from scratch yourself.
  
   Eelco
  
  
   On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
wicket does this for you
   
 pasted from eelco's reply to another thread ===
Just FYI, in case you need to know whether your client supports
JavaScript, can be determined with:
   
   
 ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
   
which works (best) when you do:
   
   
 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
   
in your application's init method.
===
   
if you set gatherextendedbrowserinfo(true) that will also give you the
window size in clientinfo properties
   
-igor
   
   
   
 On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
 My boss like me to add some script to detect browser dimensions and
 set better height / width to modalwindow, there is some site telling
 me how to get the dimensions. The only way I know is adding hidden
 fields to webpages and update those fields using javascript.

 However, if something changed at javascript side it is easy to
 forget
 update at HTML side and deliver software with bugs to clients. Just
 wonder if wicket provide any API which help to update session
 variable
 or hidden field with custom javascript so that it is easier to
 maintain?


   
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share
your
 opinions on IT  business topics through brief surveys - and earn
 cash

   
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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

   
   
   
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
opinions on IT  business topics through brief surveys - and earn cash
   
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys - and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net 's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
It's probably null, in which case it returns 800 (the second parameter
you provide which is the default value in case the property wasn't
found.

You probably still have to do:

getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

in your application's init method.

Also, note the section on ClientProperties in
http://cwiki.apache.org/WICKET/migrate-13.html for Wicket 1.3.

Eelco


On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
 Thanks a lot, however for now I use the following code to get the screen 
 height:

 final ClientProperties prop =
 ((WebClientInfo)modal.getSession().getClientInfo()).getProperties();
 final int screenHeight =
 prop.getInt(ClientProperties.SCREEN_HEIGHT, 800);

 However it just return 800 for all browse (I am using 1400x1050), am I
 using wrong method?

 On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  this has been added in svn today
 
  see the wicket-1.x branch
 
  -igor
 
 
 
  On 1/30/07, Carfield Yim [EMAIL PROTECTED]  wrote:
   I can get the SCREEN_HEIGHT value using
  
  http://wicket.sourceforge.net/apidocs/wicket/protocol/http/ClientProperties.html#SCREEN_HEIGHT
   but this is kind of hard to work with in my case as I need to guess
   the height of the browsing area of the browser.
  
   Can I get the body element height? I found some resource at web -
   http://www.quirksmode.org/js/doctypes.html . Can I refer
  to value of
   some valuables there?
  
   On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
Yep. You can take a look at wicket.examples.hellobrowser to see it in
action. You can customize this by overriding
wicket.RequestCycle#newClientInfo() (which would
  obviously have to be
in a custom request cycle). Take a look at
wicket.markup.html.pages.BrowserInfoPage to see how it
  all works in
case you want to built it from scratch yourself.
   
Eelco
   
   
On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 wicket does this for you

  pasted from eelco's reply to another thread ===
 Just FYI, in case you need to know whether your client supports
 JavaScript, can be determined with:


  ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()

 which works (best) when you do:


  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.
 ===

 if you set gatherextendedbrowserinfo(true) that will also give you the
 window size in clientinfo properties

 -igor



  On 1/30/07, Carfield Yim [EMAIL PROTECTED] wrote:
  My boss like me to add some script to detect browser dimensions and
  set better height / width to modalwindow, there is some site telling
  me how to get the dimensions. The only way I know is adding hidden
  fields to webpages and update those fields using javascript.
 
  However, if something changed at javascript side it is easy to
  forget
  update at HTML side and deliver software with bugs to clients. Just
  wonder if wicket provide any API which help to update session
  variable
  or hidden field with custom javascript so that it is easier to
  maintain?
 
 

  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share
 your
  opinions on IT  business topics through brief surveys - and earn
  cash
 

  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



  -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
 opinions on IT  business topics through brief surveys - and earn cash

  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

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



   
   
  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
opinions on IT  business topics through brief surveys - and earn cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  

Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Carfield Yim
On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 It's probably null, in which case it returns 800 (the second parameter
 you provide which is the default value in case the property wasn't
 found.

 You probably still have to do:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.


I've do that already. However, I've my custom IRequestCycleFactory,
may be I need to do something special for my IRequestCycleFactory?

 Also, note the section on ClientProperties in
 http://cwiki.apache.org/WICKET/migrate-13.html for Wicket 1.3.

Cool, look like API of 1.3.x is much more easy to use

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
 You probably still have to do:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

 in your application's init method.

Maybe a little explanation wouldn't hurt here :)

By default, IRequestCycleSettings gatherExtendedBrowserInfo setting is
false, resulting in the ClientProperties object to be initialized from
just the user agent string that the browser sends with the request.
This is ok for basic stuff, but for most interesting stuff, you really
need some Javascript to investigate the browser and push that answer
back to you. If you set the gatherExtendedBrowserInfo property to
true, Wicket will do a sneaky redirect to a page that does this
investigating. That page will gather the info a return to the server
trying several methods (for e.g. in case Javascript is not supported).
After that, the original request will be handled again (literally
again, not from the point it was left) and the client properties with
extended info will be available for you.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Invitation from Md Mozammel Haque

2007-01-30 Thread Md Mozammel Haque
Hello,

Md Mozammel Haque (mozammel) is building his online friends network on :
http://en.facebox.com


Accept this friendship request and join Facebox!
http://en.facebox.com/go/register/id=866609107i=t71

Create a personal Facebox web page with
- Blog
- Photo album
- Guestbook
- Friends network
- Videos
- Music
- And much more...


Are you already a member? Add Md Mozammel Haque as a friend:
http://en.facebox.com/mozammel/friends/view=add

Don't know who Md Mozammel Haque is? Visit his Facebox profile page.:
http://en.facebox.com/mozammel

Do you not wish to receive these e-mails? Block your e-mail address:
http://en.facebox.com/go/nomails/invite/[EMAIL 
PROTECTED]code=16747142i=t7id=866609107
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I add custom javascript to wicket application

2007-01-30 Thread Eelco Hillenius
  You probably still have to do:
 
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 
  in your application's init method.
 

 I've do that already. However, I've my custom IRequestCycleFactory,
 may be I need to do something special for my IRequestCycleFactory?

Nope, unless you did overwrite wicket.RequestCycle#newClientInfo()
yourself or you didn't extend from WebRequestCycle or one of it's
subclasses (unlikely).

You could try to track what happens by setting break points in
WebRequestCycle#newClientInfo() and
BrowserInfoPage$PostBackForm#onSubmit.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user