Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Carfield Yim
Should be just override WebPage. getMarkupType()

http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType()

On 3/1/07, Matt Welch [EMAIL PROTECTED] wrote:
 I'd like my template files to have an extension other than .html. Is that
 possible?



 -
 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] there is no way to preprocess raw markup in wicket 1.1?

2007-02-21 Thread Carfield Yim
That would be great

On 2/22/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Unfortunately, it would be a pain to separate out the examples I have, but
 there are some unit tests under wicket.markup.outputTransformer that I'm
 pretty sure will get you going.

 hth,
 jim


  On 2/20/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  Could you give me an example to show how it work?
 
  On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
   Probably the thing that makes it difficult to use is that by default
   it looks for an xsl in the package of the component the
   XsltTransformerBehavior is being applied to, with the name of its
   componentId.
  
   So if you have a component foo.bar.MyComp.java you want to transform,
   and it is added to the hierarchy with myId, then it will look for
   foo.bar.myid.xsl to apply for the transform.
  
   But you can also submit the full path and file name to the
   XsltTransformerBehavior's constructor.
  
   Other than that, it couldn't be easier to use. Just add(new
   XsltTransformerBehavior())
  
   On 2/20/07, Carfield Yim  [EMAIL PROTECTED] wrote:
Not really related to the original question, I try to use it before
but fail as I cannot find any example show how to work with this,
could you point some resource to me to take a look?
   
On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
 There is also XsltTransformerBehavior (in wicket.markup.transformer
 )

 hth,
 jim

 On 2/20/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  search for IMarkupFilter
 
  Juergen
 
  On 2/19/07, wouvlfe [EMAIL PROTECTED]  wrote:
  
   oops, should have been more clear about what i want to do
   i want to be able to preprocess some of the tags (that do not
 have wicket
   ids) in the markup and modify them if necessary
  
   example:
   modify the original tag:
   /a/b/c
  
   to the tag:
   /e/f
  
   that is, change the static paths in certain scenarios
  
   is there a way this can be done through wicket?
   (i dont want to add a 50 different wicket tags for 50 different
 static
   resources in my markup file. So I would need to do this without
 wicket tags)
  
   i think Igor pointed me to IMarkupFilter but that didnt help me
 accomplish
   what I want.
   The filters dont seem to allow me to modify raw markup.
   dont know why but wicket LOVES to make classes and methods
 final.
   so there is no way i can use polymorphism to extend
 functionalities of
   wicket's base classes
  
   vk
  
  
  
   Timo Rantalaiho wrote:
   
On Mon, 19 Feb 2007, wouvlfe wrote:
I simply want to be able to modify the values of some static
 paths in the
raw html markup
   
it seems that there is no way to do it in wicket 1.1 ??
i started by looking into markup filters
when i wrote my own markup parser, i couldnt find a way to
 replace
portions
of the raw html
   
It would help to know more specifically what you are trying
to achieve.
   
But if you want to change URLs to static resources, you
might be better off providing a custom resource locator
   
   
   
 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
   
or if paths are produced by wicket components, tweaking your
own versions of the components.
   
- Timo
   
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/ 
   
   
 -
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/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
   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

Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?

2007-02-20 Thread Carfield Yim
Not really related to the original question, I try to use it before
but fail as I cannot find any example show how to work with this,
could you point some resource to me to take a look?

On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
 There is also XsltTransformerBehavior (in wicket.markup.transformer)

 hth,
 jim

 On 2/20/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  search for IMarkupFilter
 
  Juergen
 
  On 2/19/07, wouvlfe [EMAIL PROTECTED] wrote:
  
   oops, should have been more clear about what i want to do
   i want to be able to preprocess some of the tags (that do not have wicket
   ids) in the markup and modify them if necessary
  
   example:
   modify the original tag:
   /a/b/c
  
   to the tag:
   /e/f
  
   that is, change the static paths in certain scenarios
  
   is there a way this can be done through wicket?
   (i dont want to add a 50 different wicket tags for 50 different static
   resources in my markup file. So I would need to do this without wicket 
   tags)
  
   i think Igor pointed me to IMarkupFilter but that didnt help me accomplish
   what I want.
   The filters dont seem to allow me to modify raw markup.
   dont know why but wicket LOVES to make classes and methods final.
   so there is no way i can use polymorphism to extend functionalities of
   wicket's base classes
  
   vk
  
  
  
   Timo Rantalaiho wrote:
   
On Mon, 19 Feb 2007, wouvlfe wrote:
I simply want to be able to modify the values of some static paths in 
the
raw html markup
   
it seems that there is no way to do it in wicket 1.1 ??
i started by looking into markup filters
when i wrote my own markup parser, i couldnt find a way to replace
portions
of the raw html
   
It would help to know more specifically what you are trying
to achieve.
   
But if you want to change URLs to static resources, you
might be better off providing a custom resource locator
   
   
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
   
or if paths are produced by wicket components, tweaking your
own versions of the components.
   
- Timo
   
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/ 
   
-
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/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
   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
  
 
  -
  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

Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?

2007-02-20 Thread Carfield Yim
Could you give me an example to show how it work?

On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Probably the thing that makes it difficult to use is that by default
 it looks for an xsl in the package of the component the
 XsltTransformerBehavior is being applied to, with the name of its
 componentId.

 So if you have a component foo.bar.MyComp.java you want to transform,
 and it is added to the hierarchy with myId, then it will look for
 foo.bar.myid.xsl to apply for the transform.

 But you can also submit the full path and file name to the
 XsltTransformerBehavior's constructor.

 Other than that, it couldn't be easier to use. Just add(new
 XsltTransformerBehavior())

 On 2/20/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Not really related to the original question, I try to use it before
  but fail as I cannot find any example show how to work with this,
  could you point some resource to me to take a look?
 
  On 2/21/07, James McLaughlin [EMAIL PROTECTED] wrote:
   There is also XsltTransformerBehavior (in wicket.markup.transformer)
  
   hth,
   jim
  
   On 2/20/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
search for IMarkupFilter
   
Juergen
   
On 2/19/07, wouvlfe [EMAIL PROTECTED] wrote:

 oops, should have been more clear about what i want to do
 i want to be able to preprocess some of the tags (that do not have 
 wicket
 ids) in the markup and modify them if necessary

 example:
 modify the original tag:
 /a/b/c

 to the tag:
 /e/f

 that is, change the static paths in certain scenarios

 is there a way this can be done through wicket?
 (i dont want to add a 50 different wicket tags for 50 different static
 resources in my markup file. So I would need to do this without 
 wicket tags)

 i think Igor pointed me to IMarkupFilter but that didnt help me 
 accomplish
 what I want.
 The filters dont seem to allow me to modify raw markup.
 dont know why but wicket LOVES to make classes and methods final.
 so there is no way i can use polymorphism to extend functionalities of
 wicket's base classes

 vk



 Timo Rantalaiho wrote:
 
  On Mon, 19 Feb 2007, wouvlfe wrote:
  I simply want to be able to modify the values of some static paths 
  in the
  raw html markup
 
  it seems that there is no way to do it in wicket 1.1 ??
  i started by looking into markup filters
  when i wrote my own markup parser, i couldnt find a way to replace
  portions
  of the raw html
 
  It would help to know more specifically what you are trying
  to achieve.
 
  But if you want to change URLs to static resources, you
  might be better off providing a custom resource locator
 
 
  http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
 
  or if paths are produced by wicket components, tweaking your
  own versions of the components.
 
  - Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  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/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
 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

   
-
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

Re: [Wicket-user] Why does setResponse sometimes does notResponse?

2007-02-17 Thread Carfield Yim
 available, and I cannot think of a good end-user reason why this
 couldn't be called. The getMarkupId method can in fact be called in

if it is possible to make every method work at constructor, of course
this is not necessary. It just my personal suggestion if this is not
possible

-
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] Why does setResponse sometimes does notResponse?

2007-02-15 Thread Carfield Yim
On 2/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you shouldnt be calling setresponsepage inside constructors

 try RestartResponseException

 -igor


Other than setresponsepage(), there are also methods like
getMarkupId() , which are not work properly in constructor. May be we
can add flag for those object ( or all component ?) to indicate if the
object is inited or not, then throws exception and recommend user to
use alternative? e.g.:

boolean inited = false;
[constructor] () {
   .
   inited = true;
}

public String getMarkupId() {
if(!inited) {
throws new illegalstateexception(Cannot use getMarkupId() at
constructor, please add AttributeModifier and specify you own Markup
ID);
} else
return markupId;
}

May be more difficult to do similar thing at
RequestCycle.setresponsepage() , what do you think about this?

-
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] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-13 Thread Carfield Yim
Sorry for latest reply but it is fixed

On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Could you confirm whether it is fixed in the new version please?

 Eelco


 On 2/6/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Don't know why I just get this email. Thanks a lot
 
  On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Oh, I thought you were using the 1.3 branch. Your problem is probably
   related to a bug with header contributions we had/ have in 1.2.4 and
   which should be fixed for 1.2.5.
  
   Eelco
  
  
   On 2/6/07, Carfield Yim [EMAIL PROTECTED] wrote:
  The project I'm working on uses mounted pages and header 
  contributions
  all over the place, without any problems. Any chance you can isolate
  this into a quickstart project or test case?
 
   
I still need time to figure out how to work with maven and setup the
repository, may be later. However, after trace and test for a while, I
find that it can be fixed if I change
   
HeaderContributor.forCss(xxx.class, xxx.css);
   
to
   
new HeaderContributor(new
HeaderContributor.CSSReferenceHeaderContributor(xxx.class,
xxx.css)){
private static final long serialVersionUID = 1L;
@Override
public void onRendered(Component arg0) {
super.onRendered(arg0);
cleanup();
}
}
   
where the AbstractHeaderContributor.processedEntries is actually
forcing the draw CSS link method to execution more than one time.
   
I feel this is a bug but I don't know why I don't notice that before.
May be it is something changed at 1.2.4?
   
-
Using Tomcat but need to do more? Need to support web services, 
security?
Get stuff done quickly with pre-integrated technology to make your job 
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
   -
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job 
   easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-13 Thread Carfield Yim
Just try WicketTester#assertContains , however, the bugs doesn't
appear if I use assertRenderedPage() method. E.g. the following test
press even if I use the library contains that bugs:

tester.assertRenderedPage(Logon.class);
tester.assertContains(resources/package.Logon/logon.css);
tester.assertRenderedPage(Logon.class);
tester.assertContains(resources/package.Logon/logon.css);

However, if I use method render(), the test fail to execute because
the response is null.

Anyway , as the library already fixed so probably not much point to
create a testcase to reproduce the bug really, for me I just leave the
testcase as a document for future reference. Hope the information help
wicket team somehow

On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 How about using WicketTester#assertContains ?

 Eelco


 On 2/6/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Just post a issue at tracker, see if that helpful. By the way, I would
  like to create a test case for this issue. Just wonder can I get the
  render HTML from WicketTester so that I can assert if the CSS link
  exist or not if I render twice?
 
 
 
  On 2/7/07, Carfield Yim [EMAIL PROTECTED] wrote:
 The project I'm working on uses mounted pages and header contributions
 all over the place, without any problems. Any chance you can isolate
 this into a quickstart project or test case?

  
   I still need time to figure out how to work with maven and setup the
   repository, may be later. However, after trace and test for a while, I
   find that it can be fixed if I change
  
   HeaderContributor.forCss(xxx.class, xxx.css);
  
   to
  
   new HeaderContributor(new
   HeaderContributor.CSSReferenceHeaderContributor(xxx.class,
   xxx.css)){
   private static final long serialVersionUID = 1L;
   @Override
   public void onRendered(Component arg0) {  
 super.onRendered(arg0);
   cleanup();
   }
   }
  
   where the AbstractHeaderContributor.processedEntries is actually
   forcing the draw CSS link method to execution more than one time.
  
   I feel this is a bug but I don't know why I don't notice that before.
   May be it is something changed at 1.2.4?
  
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] low wicket performance - intensive file system usage

2007-02-13 Thread Carfield Yim
On 2/13/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
 I think I found the cause of our performance problems - we map wicket
 servlet to /*. If I change it to /app, things become much much faster.

Interesting...

 The problem is that our customer doesn't want to have redirect on the
 main page, and at the same time this page is not static. Any suggestions?


How about just have an index.html at / that redirect to /app?

META HTTP-EQUIV=Refresh CONTENT=0; URL=app

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Carfield Yim
On 2/10/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi.

 The major problem is (amongst other problems) that you have page from
 another host in modal window. Generally, this is going to cause some
 trouble, because it's cross site scripting. The browsers are trying to
 prevent that.

I have to do that because I need to read a file of that host...

 Another thing is that I don't understand how you can submit wicket form
 to another host. Because to submit form in wicket (unless the form is
 stateless, which is possibility only 1.x or 2.0) you need first to
 create page instance, and then use the instance number in the post url,
 as well as the FormSubmitListener listener and form component path.

I guess you think what I do is something like

form action=http://host2/app/page; method=post

But I am not, in fact, I just use an iframe for now:

iframe src=http://host2/app/page;/iframe

It ok to display page , but after I submit at page, it show page
expire, and only IE have this problem

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Carfield Yim
On 2/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i remember there was a discussion about this...embedding wicket pages in
 iframes. and i believe the deal was that IE doesnt pass the cookies to the
 iframe so it cannot find the session on a submit. you have to enable url
 rewriting i guess.

I see, would you let me know more information like rewrite what?
Include the sessionid in URL? Will you still remember the subject
words of that discuss so that I can search?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I add some javascript to make sure the main page will occupy whole browser?

2007-02-09 Thread Carfield Yim
Thanks!

On 2/9/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Carfield Yim:

  How can I add that javascript to onload event of that main page?

 Use getBodyContainer().addOnLoadModifier()
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-09 Thread Carfield Yim
Still have problem with this issue... I 've to include the page in a
iframe but still not working.

On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] writing unit tests

2007-02-09 Thread Carfield Yim
WicketTester is good for me for most case... may be you can share the
complications you have?

On 1/31/07, Nino Wael [EMAIL PROTECTED] wrote:




 Hi



 I've been wondering about best practices for writing unit tests with wicket?



 Looking around the source of wicket, I can see that most uses junit. A few
 places wicket tester are used.



 Last time I wrote a test I tried writing using jwebunit and http unit (as I
 remember). I tried using the wicket test framework, but it gave me some
 complications (might be because I was new to the wicket world). Also this
 was on wicket 1.x.



 What do others do?



 -Nino Wael


 -
 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



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Carfield Yim
On 2/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 a couple of ways

 like you said have a dummy homepage, but use restartresponse exception to
 redirect to another page

Haven't try this one, thanks.

 or override gethomepageclass in application and return a different one based
 on the loggedin user -- not sure if that will work very well, but worth a
 try

Are you mean something like

public Class? extends WebPage getHomePage() {
if(getRequestCycle().getSession().getUser().isAdmin())
return Admin.class;
else
return User.class;
}

If yes then I tried, but this is not work as expected, always just
return first class for first request

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-02-08 Thread Carfield Yim
A very old question but only get time to fix now. And found that the
problem only occur at  startPage(final Page page) but not
startPage(final ITestPageSource source) , so I change all test to this
method. Most work ok, just have one get the other exception

java.lang.IllegalArgumentException: Argument pageClass must be not null
at 
wicket.request.target.component.BookmarkablePageRequestTarget.init(BookmarkablePageRequestTarget.java:101)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.init(BookmarkablePageRequestTarget.java:69)
at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java:374)
at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:173)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
at wicket.RequestCycle.step(RequestCycle.java:992)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at 
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:318)
at 
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:307)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:231)
at com.genuco.base.LogonTest.testMain(LogonTest.java:32)

Anyone have any idea?

On 1/5/07, Johan Compagner [EMAIL PROTECTED] wrote:
 this is currently the code:

 public final Page startPage(final Page page)
 {
 setHomePage(DummyHomePage.class);
 processRequestCycle(page);

 Page last = getLastRenderedPage();

 createRequestCycle();   this line should
 make sure that the touch works...
 getWicketSession().touch(page);
 if (page != last)
 {
 getWicketSession().touch(last);
 }
 return last;
 }

 but it can be that it is purely 1.3

 johan


  On 1/5/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  On 12/28/06, Carfield Yim [EMAIL PROTECTED] wrote:
   On 12/27/06, Johan Compagner [EMAIL PROTECTED] wrote:
which version of wicket is that?
That should be fixed.
  
   Wicket 1.2.3, may be I should upgrade to 1.2.4
  
  Just upgrade to 1.2.4 and this problem is still there. And I've double
  verify that RequestCycle SHOULD be there as creating wickettester
  should trigger that RequestCycle creation
 
  wicket.WicketRuntimeException: Can not set the attribute. No
  RequestCycle available
  at wicket.Session.setAttribute(Session.java:933)
  at wicket.PageMap.put (PageMap.java:526)
  at wicket.Session.touch(Session.java:744)
  at
 wicket.util.tester.WicketTester.startPage(WicketTester.java:264)
  at
 com.genuco.web.pages.account.MainTest.testMain(MainTest.java
 :29)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
  at
 org.junit.internal.runners.TestMethodRunner.runUnprotected
 (TestMethodRunner.java:81)
  at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
  at
 org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java
 :75)
  at
 org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
  at
 org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
  at
 org.junit.internal.runners.TestClassMethodsRunner.run
 (TestClassMethodsRunner.java:35)
  at
 org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
  at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java
 :34)
  at
 org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
  at
 org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
  at
 org.junit.internal.runners.TestClassRunner$1.runUnprotected
 (TestClassRunner.java:42)
  at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
  at
 org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
  at
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
  at
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
 (RemoteTestRunner.java:460

Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Carfield Yim
On 2/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see feedbackmessage.setescapemessages()

 not sure why that is different from setescapemodelstrings... any other devs
 think it should be the same? probably more intuitive that way

I personally feel the intuitive way is not the escape by default.
However, whatever the default is true or false are ok

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Can I tell DataTable not to escape HTML?

2007-02-07 Thread Carfield Yim
I try to put a br/ at record but it really show that br/ to the
screen. Can I tell DataTable not to escape HTML?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I tell DataTable not to escape HTML?

2007-02-07 Thread Carfield Yim
Oh, just get it , I can use Component.setEscapeModelStrings() for this issue

On 2/7/07, Carfield Yim [EMAIL PROTECTED] wrote:
 I try to put a br/ at record but it really show that br/ to the
 screen. Can I tell DataTable not to escape HTML?


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do redirect in wicket?

2007-02-06 Thread Carfield Yim
This blog probably help -
http://spatula.net/blog/2006/11/adding-generic-authorization-to-wicket.html

If you prefer reading Chinese, may be this message help more :
http://www.javaworld.com.tw/jute/post/view?bid=42id=169359sty=3age=0

On 2/6/07, Zhang Hailong [EMAIL PROTECTED] wrote:
 Hi all,

 How to redirect to a wicket or non-wicket page in wicket? For example, if a
 guest want to access a authorized page, I want to redirect it to the login
 page.
 How to do this?

 Thanks in advance.


 Regards,
 Hailong Zhang

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-06 Thread Carfield Yim
  The project I'm working on uses mounted pages and header contributions
  all over the place, without any problems. Any chance you can isolate
  this into a quickstart project or test case?
 

I still need time to figure out how to work with maven and setup the
repository, may be later. However, after trace and test for a while, I
find that it can be fixed if I change

HeaderContributor.forCss(xxx.class, xxx.css);

to

new HeaderContributor(new
HeaderContributor.CSSReferenceHeaderContributor(xxx.class,
xxx.css)){
private static final long serialVersionUID = 1L;
@Override
public void onRendered(Component arg0) {
super.onRendered(arg0);
cleanup();
}
}

where the AbstractHeaderContributor.processedEntries is actually
forcing the draw CSS link method to execution more than one time.

I feel this is a bug but I don't know why I don't notice that before.
May be it is something changed at 1.2.4?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-06 Thread Carfield Yim
Just post a issue at tracker, see if that helpful. By the way, I would
like to create a test case for this issue. Just wonder can I get the
render HTML from WicketTester so that I can assert if the CSS link
exist or not if I render twice?



On 2/7/07, Carfield Yim [EMAIL PROTECTED] wrote:
   The project I'm working on uses mounted pages and header contributions
   all over the place, without any problems. Any chance you can isolate
   this into a quickstart project or test case?
  

 I still need time to figure out how to work with maven and setup the
 repository, may be later. However, after trace and test for a while, I
 find that it can be fixed if I change

 HeaderContributor.forCss(xxx.class, xxx.css);

 to

 new HeaderContributor(new
 HeaderContributor.CSSReferenceHeaderContributor(xxx.class,
 xxx.css)){
 private static final long serialVersionUID = 1L;
 @Override
 public void onRendered(Component arg0) {  
   super.onRendered(arg0);
 cleanup();
 }
 }

 where the AbstractHeaderContributor.processedEntries is actually
 forcing the draw CSS link method to execution more than one time.

 I feel this is a bug but I don't know why I don't notice that before.
 May be it is something changed at 1.2.4?


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-06 Thread Carfield Yim
Don't know why I just get this email. Thanks a lot

On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Oh, I thought you were using the 1.3 branch. Your problem is probably
 related to a bug with header contributions we had/ have in 1.2.4 and
 which should be fixed for 1.2.5.

 Eelco


 On 2/6/07, Carfield Yim [EMAIL PROTECTED] wrote:
The project I'm working on uses mounted pages and header contributions
all over the place, without any problems. Any chance you can isolate
this into a quickstart project or test case?
   
 
  I still need time to figure out how to work with maven and setup the
  repository, may be later. However, after trace and test for a while, I
  find that it can be fixed if I change
 
  HeaderContributor.forCss(xxx.class, xxx.css);
 
  to
 
  new HeaderContributor(new
  HeaderContributor.CSSReferenceHeaderContributor(xxx.class,
  xxx.css)){
  private static final long serialVersionUID = 1L;
  @Override
  public void onRendered(Component arg0) {
  super.onRendered(arg0);
  cleanup();
  }
  }
 
  where the AbstractHeaderContributor.processedEntries is actually
  forcing the draw CSS link method to execution more than one time.
 
  I feel this is a bug but I don't know why I don't notice that before.
  May be it is something changed at 1.2.4?
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue of using HeaderContributor.forCss [was Re: Problem of clicking a wicket link]

2007-02-06 Thread Carfield Yim
On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Could you confirm whether it is fixed in the new version please?

Look like 1.2.5 not yet release?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem of clicking a wicket link

2007-02-05 Thread Carfield Yim
The application I work with will send a email to user to activate his
account after registration. The activate message is something like


==
Registration completed, here is your login detail:
username: carfield
password: carfield

Please go to 
[http://host/path/activation/?userid=110300key=DA273E8825C2C26F3181F852C305BA9F]
to activate your account
==

The work ok for jetty and resin, but at tomcat 5.5, when user click
the link, he will redirecto to

http://host/path/activation//wicket:pageMapName/wicket-5

But just copy and paste the link work ok, can anyone have any idea of
why will this happen?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem of clicking a wicket link

2007-02-05 Thread Carfield Yim
On 2/6/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On 2/5/07, Carfield Yim [EMAIL PROTECTED] wrote:
  The application I work with will send a email to user to activate his
  account after registration. The activate message is something like
 
 
  ==
  Registration completed, here is your login detail:
  username: carfield
  password: carfield
 
  Please go to 
  [http://host/path/activation/?userid=110300key=DA273E8825C2C26F3181F852C305BA9F]
  to activate your account
  ==
 
  The work ok for jetty and resin, but at tomcat 5.5, when user click
  the link, he will redirecto to
 
  http://host/path/activation//wicket:pageMapName/wicket-5
 
  But just copy and paste the link work ok, can anyone have any idea of
  why will this happen?

 No idea. /activation is a mounted bookmarkable page?

Yes , it is, and if I remove the mount and just use the long
bookmarkable link, it work ok.

The other issue I just found is after I click this link, whatever long
or mounted one, the add(HeaderContributor.forCss()) fail to add the
link rel like

link rel=stylesheet type=text/css
href=/resources/package.Class/xxx.css/link

There is no exception or warning , just whole stop from adding to
HTML. Will anyone have any idea about this?

Appearance it is the first issue triggered this.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem of clicking a wicket link

2007-02-05 Thread Carfield Yim
On 2/6/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Yes , it is, and if I remove the mount and just use the long
  bookmarkable link, it work ok.
 
  The other issue I just found is after I click this link, whatever long
  or mounted one, the add(HeaderContributor.forCss()) fail to add the
  link rel like
 
  link rel=stylesheet type=text/css
  href=/resources/package.Class/xxx.css/link
 
  There is no exception or warning , just whole stop from adding to
  HTML. Will anyone have any idea about this?

 The project I'm working on uses mounted pages and header contributions
 all over the place, without any problems. Any chance you can isolate
 this into a quickstart project or test case?

I will try to do, in fact that work ok for my local Jetty , it just
get problem at tomcat 5.5 at freebsd

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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-02-04 Thread Carfield Yim
Sorry of get back late, I geuss I know why.

For my application there are some authentication logic, some pages can
view before login, some pages cannot.

For the pages that can only view after login, that investigation code
work properly. But for the pages that can view before login, that code
look like no executing.

For some reasons I don't have any Public pages use modalwindow any
more, so this is not an issue for me anymore. See if the above
information useful for wicket dev team any more

On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Look like that  investigation code haven't executed. Which method is
  actually execute that  investigation code ?

 Does the browserinfo example in wicket-examples work for you?

 Try a break point in BrowserInfoPage, or specifically it's internal
 class 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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How can I add some javascript to make sure the main page will occupy whole browser?

2007-02-02 Thread Carfield Yim
We have a small version of login windows which exist within an iframe.
After the user login we need to make the main page occupy the whole
browser windows.

How can I add that javascript to onload event of that main page?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Carfield Yim
For some delete link, I've add a confirm() javascript for
Link.getOnClickScript() . However I found that even I click cancel at
the javascript popup wicket will still execute the link. (delete the
record in my case)

How can I press the cancel message to wicket?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I add some javascript to make sure the mainpage will occupy whole browser?

2007-02-02 Thread Carfield Yim
I guess I know how to write the javascript. The probably is how can I
trigger the onload event at wicket

On 2/2/07, Nino Wael [EMAIL PROTECTED] wrote:
 You could write parent.location, and redirect to the page you want to fill 
 the whole page. But im not sure if it's a dirty hack.

 As Web developer tool bar reports it as access denied in FF.

 Looking forward to hear about some other ideas..


 -Nino

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim
 Sent: 2. februar 2007 10:15
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] How can I add some javascript to make sure the 
 mainpage will occupy whole browser?

 We have a small version of login windows which exist within an iframe.
 After the user login we need to make the main page occupy the whole
 browser windows.

 How can I add that javascript to onload event of that main page?

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Carfield Yim
Sorry, look like Link.getOnClickScript() is actually work, just I only
call 'confirm xxx' but not ' return confrm xxx'

On 2/2/07, Justin Lee [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: RIPEMD160

 More simply, you could do this:

 add(new AttributeModifier(onClick, true,
new Model(javascript:return confirm('Are you sure you want to delete
 this?');)));

 Igor Vaynberg wrote:
  package wicket.misc;
 
  import wicket.Component;
  import wicket.ajax.ClientEvent;
  import wicket.behavior.AbstractBehavior;
  import wicket.markup.ComponentTag;
  import wicket.model.IModel;
 
  public class JavascriptConfirm extends AbstractBehavior {
 
  private final ClientEvent event;
 
  private final IModelString message;
 
  public JavascriptConfirm(final ClientEvent event, final
  IModelString message) {
  super();
  this.event = event;
  this.message = message;
  }
 
  public void onComponentTag(Component component, ComponentTag tag) {
  StringBuilder handler = new StringBuilder(128);
  handler.append(if (!confirm(');
  handler.append(message.getObject());
  handler.append(')) {return false;} );
 
  String script = tag.getAttributes().getString( event.getEvent());
  if (script != null) {
  handler.append(script);
  }
 
  tag.put(event.getEvent(), handler.toString());
  }
 
  @Override
  public void detach(Component component) {
  super.detach(component);
  message.detach();
  }
  }
 
  -igor
 
 
  On 2/2/07, *Carfield Yim*  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  For some delete link, I've add a confirm() javascript for
  Link.getOnClickScript() . However I found that even I click cancel at
  the javascript popup wicket will still execute the link. (delete the
  record in my case)
 
  How can I press the cancel message to wicket?
 
  
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your
  job easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
  
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

 - --
 Justin Lee
 http://www.antwerkz.com
 AIM : evan chooly
 Skype : evanchooly
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2.1 (Cygwin)

 iD8DBQFFw1DxJnQfEGuJ90MRA354AJ4/9yW2G9jqCsBoA49/TceCy5/0oACbBiyz
 wutmcOpbx+Q/sD5Kx0wSK2E=
 =hDch
 -END PGP SIGNATURE-

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is there easy way to make AjaxFallbackDefaultDataTable non-sortable?

2007-02-02 Thread Carfield Yim
This work very nice, thx

On 2/1/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Use other Column constructors (one parameter less).

 Martijn

 On 2/1/07, Carfield Yim [EMAIL PROTECTED] wrote:
  There is some table we don't want user to sort, can I make
  AjaxFallbackDefaultDataTable not able to sort or I have to create my
  DataView?
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 The target of the RedirectPage is another wicket form running at
 difference host. In firefox it work ok but in IE it always show page
 expire after I submit the form. Does anybody experience this also?

Hi, have asked this several day before... no one have similar problem?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is there easy way to make AjaxFallbackDefaultDataTable non-sortable?

2007-02-01 Thread Carfield Yim
There is some table we don't want user to sort, can I make
AjaxFallbackDefaultDataTable not able to sort or I have to create my
DataView?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
 you'd need to use some distributed session mechanism. Just a guess...

Might be, Can I just include the sessionid as hidden field / url to
fix that? I probably cannot have too complicate distributed session
mechanism

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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-31 Thread Carfield Yim
 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.

I see, as I only override the IRequestCycleFactory but not the
setting, I guess that investigation code should work anyway? But I
cannot make it work... How can I gather more information to debug?

-
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-31 Thread Carfield Yim
On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  I see, as I only override the IRequestCycleFactory but not the
  setting, I guess that investigation code should work anyway? But I
  cannot make it work... How can I gather more information to debug?

 Set a break point in WebRequestCycle#newClientInfo.

 Oh, and don't forget that that method won't be triggered until your
 code calls getSession().getClientInfo() somewhere :)

Interesting, when I override that method as following , I get only one
properties print:

@Override
protected ClientInfo newClientInfo() {
final WebClientInfo ci =
(WebClientInfo)super.newClientInfo();
for (int i = 0; i 
ci.getProperties().getPropertyNames().length; i++) {
final String key =
ci.getProperties().getPropertyNames()[i];
final Object value = ci.getProperties().get(key);
System.out.println(key+: +value);
}
return ci;
}

Only print:
browserOpera: true

Look like that  investigation code haven't executed. Which method is
actually execute that  investigation 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] Problem of try to prevent startTransaction and commit

2007-01-31 Thread Carfield Yim
As most of the webpages does not need transaction support, thus I have
a marker interface to prevent transaction start and commit for those
webpage, which work like follow:

@Override
protected void onBeginRequest() {
super.onBeginRequest();
if (arg1.getPage() ==null || !(arg1.getPage()
instanceof NoTransactionRequired))
try {
sqlMap.startTransaction();
} catch (SQLException e) {
logger.log(startTransaction fail, e);
}
}

@Override
protected void onEndRequest() {
super.onEndRequest();
if (arg1.getPage() ==null || !(arg1.getPage()
instanceof NoTransactionRequired))
try {
sqlMap.commitTransaction();
} catch (Exception e) {
logger.log(commitTransaction fail, e);
} finally {
try {
sqlMap.endTransaction();
} catch (SQLException e) {
logger.log(endTransaction fail, e);
}
}
}

However I found that this is not very reliable and sometime there will
have transaction started but haven't get close or no transaction start
but try to close the transaction. Anyone know why?

By the way, I am thinking about something like

private boolean transactionStarted;
@Override
protected void onBeginRequest() {
super.onBeginRequest();
HttpUtil.setNoCacheHeaders((WebResponse) arg2);
arg2.setContentType(text/html; charset=UTF-8);
arg2.setCharacterEncoding(UTF-8);
if (arg1.getPage() ==null || !(arg1.getPage()
instanceof NoTransactionRequired))
try {
sqlMap.startTransaction();

transactionStarted = true;

} catch (SQLException e) {
logger.log(startTransaction fail, e);
}
}

@Override
protected void onEndRequest() {
super.onEndRequest();
if (transactionStarted)
try {
sqlMap.commitTransaction();
} catch (Exception e) {
logger.log(commitTransaction fail, e);
} finally {
try {
sqlMap.endTransaction();
} catch (SQLException e) {
logger.log(endTransaction fail, e);
}
}
}

Do you think this is ok to put a global variable at RequestCycle, is
it belong to that session only and for each request it will create a
new RequestCycle?

-
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] MultipartForm

2007-01-31 Thread Carfield Yim
I think we are not suppose to have form inside anyother form.

On 1/31/07, Matthes Rieke [EMAIL PROTECTED] wrote:
 Hi everybody,

 i've got a problem with multipart-forms. i have a form with some input-field 
 and inside this form there is another form for uploading an image:

 form wicket:id=

   input type=text.../

   form enctype=multipart/form-data wicket:id=...
 input type=file.../
 input type=submit value=upload the file.../
   /form

   input type=text.../
   input type=text.../
   input type=submit value=submit the form .../

 form

 Wicket always sets the outer form to multipart (automatically adds 
 enctype=...), but i do not submit any multipart in the outer form and so i 
 get an exception that there is not multipart submitted.

 how can i tell wicket, that the outer form does not contain multipart 
 content? setMultiPart(false) did not help!

 thanks and greets,
 Matthes
 --
 Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
 Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

 -
 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] ui framework choice

2007-01-31 Thread Carfield Yim
On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 one thing to keep in mind is that the modalwindow was _not meant_ to be very
 customizable. it was meant to be a dropin component that you would use as

However, people like every component to be very customizable, that is
what client expect from our software :-/

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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-31 Thread Carfield Yim
On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you are free to write your own if the one we provide doesnt fit your needs
 :) we didnt use any api you dont have access to to create this one.

Sure, no offence, in fact I am happy to use ModalWindow. I just say
what we expect for our software some time is a lot difference from
what user expected

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MultipartForm

2007-01-31 Thread Carfield Yim
On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, we already do enough hacking to allow users to nest forms eventhough
 it is not allowed in the html spec. what wicket does is turn all inner form
 tags into divs and use its magic to route the values/call events. but when
 it comes to multipart there isnt much we can do because at the end there is
 only one top level form, and if you have upload fields then that form has to
 be multipart.

Excellent idea, but how about just don't allow it? Even if it work but
I feel it is kind of hard to maintain and manage. How many people
really need this?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] 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


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 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] Modal Window Bug (important)

2007-01-29 Thread Carfield Yim
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


Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Carfield Yim
I personally think gmail presentation is simple and user friendly

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 Hi,

 We're adding some Ajax support to our pages and some of the components can
 take a long time to load. To the user it is not clear if anything is
 happening so we want to add a sign that a request is in progress, something
 like an animated gif. This should pop-up on each XMLhttpRequest and
 disappear when the call is completed. What would be a good way to accomplish
 this?

 Thanks in advance,
 Ivo van Dongen

 -
 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] external request response - best approach

2007-01-28 Thread Carfield Yim
Are you refer to something like verisign payflow pro API? For me I
will just have a form and open an HTTP connection at onSubmit() method
just like the example they've given.

On 1/28/07, De Soca [EMAIL PROTECTED] wrote:

 Hello,

 I have a requirement to validate credit card via an external service
 (external to our wicket application) then display the approriate response to
 the client.

 How best to approach this task the wicket way.

 1. Should I do a redirect? If so how do I get the response

 2. I saw mention here of using a RequestTarger but I can find no such
 class.

 Of course this whole operation occurs in an HTTPS session.

 All suggestions appreciated.

 Thanks in advance.
 --
 View this message in context: 
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
 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


-
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] in-progress indicator

2007-01-28 Thread Carfield Yim
Sorry I misunderstand your question, I don't know about that. May be
you can see how wicket implement the AJAX DEBUG link?

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 I agree, but what I meant to ask is how to go about this? I thought of using
 an AjaxCallDecorator, but that would mean that it must be added to each
 component that makes an ajax call. I was wondering if somebody had an easier
 idea.


 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
  I personally think gmail presentation is simple and user friendly
 
  On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
   Hi,
  
   We're adding some Ajax support to our pages and some of the components
 can
   take a long time to load. To the user it is not clear if anything is
   happening so we want to add a sign that a request is in progress,
 something
   like an animated gif. This should pop-up on each XMLhttpRequest and
   disappear when the call is completed. What would be a good way to
 accomplish
   this?
  
   Thanks in advance,
   Ivo van Dongen
  
  
 -
   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 to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, just try it today, I have code like:

dateField.setOutputMarkupId(true);
final String javascript=Calendar.setup({ inputField :
\+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y %H:%M\, button
: \trigger\ });;

However, the ID generated at input field is
main_border_cust_menu_orderSearchForm_startTime_date_textfield but
in the script I get from getMarkupId() is date_textfield, which, is
the wicket:id I've specified.

Am I need to do something else to get the generated ID ?

On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Component c=...
 String javascript=calendar blah=new
 calendar(`+c.getmarkupid()+'`);...)

 new label(script,
 javascript).setescapemodelstrings(false);
 script wicket:id=script/script

 is the easiest way for very simple javascript stings

 there is also PackagedTextTemplate for more complex stings that require
 variable replacement, as well as CssTemplate and JavasScriptTemplate. have a
 look.

 -igor



 On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  I found a datetime picket with is more suitable for my application and
  I would like to integrate that javascript to my application.
 
  I can get the markup id using getMarkId() method of Component. However
  I don't know how to press it to that javascript. I have talk of look
  of
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
  and I wonder can I have similar ${backGroundElementId} at HTML
  template instead of js file?
 
 
 -
  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 to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, this work nice

On 1/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 in 1.x you cannot call getmarkupid() from the constructor, so you have to
 use an attribute modifier with imodel to retrieve the id during render time
 once all the components have been linked to their parents

 -igor



 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  Thanks, just try it today, I have code like:
 
  dateField.setOutputMarkupId(true);
  final String javascript=Calendar.setup({ inputField :
  \+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y
 %H:%M\, button
  : \trigger\ });;
 
  However, the ID generated at input field is
 
 main_border_cust_menu_orderSearchForm_startTime_date_textfield
 but
  in the script I get from getMarkupId() is date_textfield, which, is
  the wicket:id I've specified.
 
  Am I need to do something else to get the generated ID ?
 
  On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   Component c=...
   String javascript=calendar blah=new
   calendar(`+c.getmarkupid()+'`);...)
  
   new label(script,
   javascript).setescapemodelstrings(false);
   script wicket:id=script/script
  
   is the easiest way for very simple javascript stings
  
   there is also PackagedTextTemplate for more complex stings that require
   variable replacement, as well as CssTemplate and JavasScriptTemplate.
 have a
   look.
  
   -igor
  
  
  
   On 1/26/07, Carfield Yim  [EMAIL PROTECTED] wrote:
   
I found a datetime picket with is more suitable for my application and
I would like to integrate that javascript to my application.
   
I can get the markup id using getMarkId() method of Component. However
I don't know how to press it to that javascript. I have talk of look
of
  
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
and I wonder can I have similar ${backGroundElementId} at HTML
template instead of js file?
   
   
  
 -
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 set a markup ID of a HTML element to javascript

2007-01-26 Thread Carfield Yim
I found a datetime picket with is more suitable for my application and
I would like to integrate that javascript to my application.

I can get the markup id using getMarkId() method of Component. However
I don't know how to press it to that javascript. I have talk of look
of http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
and I wonder can I have similar ${backGroundElementId} at HTML
template instead of js file?

-
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] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Carfield Yim
The target of the RedirectPage is another wicket form running at
difference host. In firefox it work ok but in IE it always show page
expire after I submit the form. Does anybody experience this also?

-
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 set a markup ID of a HTML element to javascript

2007-01-26 Thread Carfield Yim
 1) Why don't just just set the markup id in your markup?

   input id=timeField wicket:id=startTime ...

 Then you can access it normally with JavaScript. Wicket will
 honour HTML ids set in the HTML template.


Because that component will use mulitple time in same page, if I do so
that the ID will be confilct each other

 2) I don't think so, but you can certainly use a Wicket
 component to output it if you like:

   div id=myIdContainer wicket:id=timeFieldId style=visibility: 
 hidden/div

   new Label(parent, timeFieldId, timeField.getMarkupId());

 or something such. Normally 1) is more straight forward
 though.

I don't know how to use that. The HTML like

input type=text wicket:id=date_textfield id=date_textfield 
size=15
a href=javascript:NewCal('date_textfield','ddmmm',true,24)
img src=images/cal.gif width=16 height=16 border=0 /
/a

But doing that is not ok, as date_textfield will duplication with same component

-
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] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Carfield Yim
On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Is that a wicket form? Is it a completely different application? How it
 is related to modal window?

Yes, it is wicket form at completely difference application
(difference host). One application call that page through ModalWindow
and RedirectPage, the code is


final ModalWindow modal = new ModalWindow(ajaxpanel);
modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
modal.setPageCreator(new PageCreator() {
private static final long serialVersionUID = 1L;
public Page createPage() {
return  new RedirectPage(http://host2/app/tickdatasearch;);
}
});
add(modal);
add(new AjaxFallbackLink(tickdatasearch) {
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
modal.show(target);
}
});

-
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] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Carfield Yim
By the way, I just deploy the application of another host to my
localhost and test, it work ok. Does anyone know the reason of this
happening?

On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });


-
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 close ModalWindow?

2007-01-24 Thread Carfield Yim
Look like I need a AjaxRequestTarget, but how can I get it? Or I can
just create one?

http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#close(wicket.ajax.AjaxRequestTarget)

-
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 close ModalWindow?

2007-01-24 Thread Carfield Yim
Sorry, I get it, I have to create some ajax button or link to work with this


On 1/24/07, Carfield Yim [EMAIL PROTECTED] wrote:
 Look like I need a AjaxRequestTarget, but how can I get it? Or I can
 just create one?

 http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#close(wicket.ajax.AjaxRequestTarget)


-
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] Issue of ModalView in firefox

2007-01-18 Thread Carfield Yim
The top bar with close button are missing, is it a know bug or only my problem?

-
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] skandinavian characters encoding lost...

2007-01-15 Thread Carfield Yim
Appearancely , tomcat 5.5 don't get this problem for me, at least for
Chinese character

On 1/16/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html

 Juergen

 On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote:
  Actually I also remember asking about this before, hmm...
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van 
  Oosten
  Sent: 15. januar 2007 15:43
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] skandinavian characters encoding lost...
 
  No, that's not it.
  I vaguely remember that Tomcat needs a setting in its configuration
  files before it will serve UTF-8 content. Otherwise it will silently
  convert it to ISO8859-1.
 
  Erik.
 
 
  Martijn Dashorst wrote:
   Perhaps this:
   http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
  
   found through: http://woogle.billen.dk/search/q/tomcat%20encoding
  
   Martijn
  
   On 1/15/07, Erik van Oosten [EMAIL PROTECTED] wrote:
  
   Well according to Johan its only for POSTs that Tomcat can be a problem.
   I just tried for at least 10 minutes to find a reference to the exact
   thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
   point, but I can not find it anymore.
  
   If someone can find it, or put it back on the Wicket Wiki, that would be
   great.
  
   Cheers,
   Erik.
  
 
  --
  Erik van Oosten
  http://www.day-to-day-stuff.blogspot.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
 
  -
  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] [AjaxFormComponentUpdatingBehaviour] updating a component

2007-01-11 Thread Carfield Yim
Just wonder, why don't make default of outputMarkupid as true?

On 1/12/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 add the second line here:
 final Label usernameValidation= new Label(username_validation, new
 PropertyModel(this, usernameValid));
 usernameValidation.setOutputMarkupId(true);

 // username


 On 1/11/07, Henning Bredel [EMAIL PROTECTED] wrote:
  Sorry for format, ... my mail-software kicked the spaces,...
 
  -
  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
 


 --
 Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org

 -
 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] [AjaxFormComponentUpdatingBehaviour] updating a component

2007-01-11 Thread Carfield Yim
I personally think most desigers or client side javacript programmer
just like to know the ID, may be we can use wicket:id as id of tag
element so they know what it is?

On 1/12/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Because the id of tag elements is something that is used by designers
 or client side javascript. Defaulting to true would complicate or even
 make it impossible to write your own javascript/css.

 Martijn

 On 1/11/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Just wonder, why don't make default of outputMarkupid as true?
 
  On 1/12/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   add the second line here:
   final Label usernameValidation= new Label(username_validation, new
   PropertyModel(this, usernameValid));
   usernameValidation.setOutputMarkupId(true);
  
   // username
  
  
   On 1/11/07, Henning Bredel [EMAIL PROTECTED] wrote:
Sorry for format, ... my mail-software kicked the spaces,...
   
-
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
   
  
  
   --
   Vote for Wicket at the 
   http://www.thebeststuffintheworld.com/vote_for/wicket
   Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
   http://wicketframework.org
  
   -
   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
 


 --
 Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org

 -
 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 is closed when form inside content panel is submitted

2007-01-09 Thread Carfield Yim
I just get the problem, solved by using ajax form button, you can see
how I solve it at
http://www.nabble.com/Submit-a-form-at-ModalWindow-cause-the-ModalWindow-close.-tf2912895.html#a8139020


On 1/9/07, Nili Adoram [EMAIL PROTECTED] wrote:
 Hi all,

 I have a panel (named AdvancedSearchPanel) containing a Form with a
 SubmitLink.

 I open this panel inside a modal dialog:

 final ModalWindow modal;
 add(modal = new ModalWindow(modalAdvancedSearch));

 final AdvancedSearchPanel searchPanel = new
 AdvancedSearchPanel(modal
 .getContentId());
 modal.setContent(searchPanel);

 When the form is submitted, a message is displayed  (Reloading this
 page will cause the modal window disappear.)  and the modal window is
 closed.

 However, the CloseButtonCallback and WindowClosedCallback are not called.

 These callbacks are only called if the close button is clicked.

 What causes the submit button to close the window?
 How can verify that these callbacks are invoked whenever the window is
 closed?

 Thanks,
 Nili



 -
 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] Stateless wicket [was] Re: Wicket2 and Wicket 1.2.x

2007-01-08 Thread Carfield Yim
I just setup a tool call MessAdmin to check the size of httpsession,
and I found that single login consume 14.6 MB , well, may be MessAdmin
give me a wrong number. However, if that is the fact, I think I need
to find some way to reduce the session memory consumption. If I use
the stateless support at wicket 1.3, will it reduce the session size a
lot?

On 1/9/07, Korbinian Bachl [EMAIL PROTECTED] wrote:


 Hi Johan,

 i dont know much about 1.3, as I never looked at it - but im glad that you
 also see Problems there and rellay want to thank you for your time spent on
 things like that,

 Regards




  
  Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im
 Auftrag von Johan Compagner
 Gesendet: Montag, 8. Januar 2007 13:38

 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x


 But what has this to do with 2.0?
 1.3 also has the exact same stateless support as 2.0 so also the same
 problems
 And yes the Indexed one is the thing that i still need to fix. Will look it
 as soon as i can.

 Als that url encoding stuff is also bothering me. We do it now all over the
 place and in all
 kind of places a bit different. Very confusing.

 johan



 On 1/7/07, Korbinian Bachl [EMAIL PROTECTED]  wrote:
  I didnt say its alpha however, i thought Johan also wants to refactory
  the way PageParameters and URLs are encoded / decoded as its currently not
  equal (depends on the mounted-strategy and returns different variations
 e.g:
  you get the input in BookMarkablePage but the encoded version in
  IndexedURlPageParameter-version)this is IMHO still a
 big showstopper as
  it disables you to change the mounting strategy on the fly
 
  Regards
 
 
   -Ursprüngliche Nachricht-
   Von: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] Im
 Auftrag
   von Eelco Hillenius
   Gesendet: Samstag, 6. Januar 2007 23:31
   An: wicket-user@lists.sourceforge.net
   Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x
  
   It is imho not alpha though. We haven't decided on what to
   call the first release of 2.0, but I'd be for beta. Also, I
   think most drastic API changes are done. The last big one
   seems to be the onAttach thing that is discussed on the list
   right now.
  
   Eelco
  
   On 1/6/07, Korbinian Bachl [EMAIL PROTECTED]  wrote:
HI,
   
wicket 2.0 is not beta yet ! - there are many api-changes and still
will be, as many things are on dev list. Also,  even not all JUnit
tests are passed in current-trunk.
   
regards
   
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Im Auftrag von
 Ayodeji Aladejebi
 Gesendet: Samstag, 6. Januar 2007 18:42
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x

 ok seen it on the wiki

 On 1/6/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  Hey have been seeing lots of questions about Wicket 2.0
 probably most
  ppl are already migrating to it even though its still beta.
 I am still
  stuck on 1.2.x series cuz am on real live projects based on
 1.2.x. Now
  apart from generics in IModel etc, am I missing anything by not
  migrating to 2.0 yet? where can i read about Wicket 2.0 coming
  features and changes?
 
  thanks
 
 
 
 
 
 
  --
  Aladejebi Ayodeji A.,
 
  DabarObjects Solutions
  Phone: 234 9 273 2 555
  Mobile: +234 803 589 1780
  Email: [EMAIL PROTECTED]
  Web: www.dabarobjects.com
  Blog: blog.dabarobjects.com
 
  Participate, Collaborate, Innovate Join Community:
  http://www.cowblock.net/
 
  Get A Free Blog:
  http://blogs.cowblock.net/
 


 --
 Aladejebi Ayodeji A.,

 DabarObjects Solutions
 Phone: 234 9 273 2 555
 Mobile: +234 803 589 1780
 Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com
 Blog: blog.dabarobjects.com

 Participate, Collaborate, Innovate
 Join Community:
 http://www.cowblock.net/

 Get A Free Blog:
 http://blogs.cowblock.net/


 --
 ---
 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=sourceforge
CID=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
   

[Wicket-user] Can I show a drop down choice list at tabs?

2007-01-07 Thread Carfield Yim
Just like http://sourceforge.net/index.php one?

-
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] Can I show a drop down choice list at tabs?

2007-01-07 Thread Carfield Yim
Just wonder if somebody already done that somewhere. If I need to
implement this, could you point me to some resource on working on
custom javascript with wicket?

On 1/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 sure, you will have to write something from scratch. use the existing
 TabbedPanel as a base and instead of just using a list as the tab title use
 a link and some javascript popup menu.

 -igor


  On 1/7/07, Carfield Yim [EMAIL PROTECTED] wrote:
  Just like http://sourceforge.net/index.php one?
 
 
 -
  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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-05 Thread Carfield Yim
Ok, I finally find out what going wrong, it is the AjaxSubmitButton
only trigger the onError() method but not onSubmit() method, is it the
excepted behaviour?

By the way, after the form process finished it will forward to another
page ( actually after add a new account it will redirect to edit page
of that account ) . It work ok but wicket will popup an alarm box
about ModalWindows closing, can I suppress this warning?

On 1/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 On 1/4/07, Carfield Yim [EMAIL PROTECTED] wrote:
  On 1/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   you click on the wicket ajax debug link at the bottom of the page and it
   should open. then look for errors in the output.
  
  There is not error, just info, and I don't understand the meaning of
  those info message, do you know if there reference

 you can paste the output if you want here

   or better yet create a quickstart that reproduces the problem - that is
   probably the fastest way to get help
  
  quickstart? you mean a simple application and put it some where at web
  and post the link here?

 yep

 -igor


 
 -
  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] When will RequestCycle.detach() being called?

2007-01-05 Thread Carfield Yim
On 12/28/06, Carfield Yim [EMAIL PROTECTED] wrote:
 On 12/27/06, Johan Compagner [EMAIL PROTECTED] wrote:
  which version of wicket is that?
  That should be fixed.

 Wicket 1.2.3, may be I should upgrade to 1.2.4

Just upgrade to 1.2.4 and this problem is still there. And I've double
verify that RequestCycle SHOULD be there as creating wickettester
should trigger that RequestCycle creation

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:264)
at com.genuco.web.pages.account.MainTest.testMain(MainTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-
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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-05 Thread Carfield Yim
On 1/5/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Navigating to different page is a bit tricky unfortunately. There is no
 easy way of disabling the alert. This should be addressed in future
 version. For now I'd suggest you to try to close the window
 (ModalWindow.close(...)) and navigate to the target page in modal window
 onclose handler.

Thx, that should work for me

-
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] Question about wicket-auth-roles

2007-01-05 Thread Carfield Yim
According to the example AnnotationsPanelsPage.java , look like I just
setup the role at user object and it will read the Annotations for the
permission.

Just wonder is the Annotations only for the class extending wicket API
like WebPage and Panel or it will work for all objects running at that
VM?

-
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] When will RequestCycle.detach() being called?

2007-01-05 Thread Carfield Yim
 but it can be that it is purely 1.3

So I need to wait for version 1.3 you mean?

-
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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-04 Thread Carfield Yim
On 1/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you click on the wicket ajax debug link at the bottom of the page and it
 should open. then look for errors in the output.

There is not error, just info, and I don't understand the meaning of
those info message, do you know if there reference

 or better yet create a quickstart that reproduces the problem - that is
 probably the fastest way to get help

quickstart? you mean a simple application and put it some where at web
and post the link here?

-
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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
If I have a form inside a ModalWindow, submit the form will cause the
ModalWindow close. Can I prevent this behaviour?

-
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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
I have refer to

http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
and
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ClockPage

But I cannot make the ModalWIndow updatable, Basically it is a form
contain a listview which will update after the user make some search, I
added an AjaxSelfUpdatingTimerBehavior to that listview and try to make
it update after the form submit, but it don't work, would you let me
know what am I doing wrong? BTW, I have validate that
AjaxSubmitButton.onsubmit is executed


public NewAccount(String id) {
super(id);
WicketUtil.standardHeader(this);
add(new NewAccountForm(form));
add(new FeedbackPanel(feedback));
add(userListView = new ListView(users, userList) {
private static final long serialVersionUID = 1L;

public void populateItem(final ListItem listItem) {
final User user = (User) listItem.getModelObject();
listItem.add(new Link(href) {
private static final long serialVersionUID = 1L;

@Override
public void onClick() {
try {
final Account account = new Account();
account.setAccountID(WicketUtil.getAccountId());
WicketUtil.addAccountForUser(user, account);
redirectToInterceptPage(new Edit(account));
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
}.add(new Label(label, user.getUsername(;
}
});
userListView.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(1)));
}

public final class NewAccountForm extends Form {
private static final long serialVersionUID = 1L;

private String keyword;

public String getKeyword() {
return keyword;
}

public String getKeywordWildcard() {
return keyword == null ? % : % + keyword.toLowerCase() +
%;
}

public void setKeyword(String keyword) {
this.keyword = keyword;
}

public NewAccountForm(final String id) {
super(id);
final TextField username;
add(username = new RequiredTextField(keyword, new
PropertyModel(this, keyword)));
add(new AjaxSubmitButton(ajax-submit-button, this) {
private static final long serialVersionUID = 1L;
protected void onSubmit(AjaxRequestTarget target, Form
form) {
try {
final boolean isNew =
Boolean.parseBoolean(getRequest().getParameter(isnew));
if (isNew) {

if(UsernameValidator.userNameDuplication(username, null))
NewAccount.this.error(user with same
username already exist);
else {
final User user = new User();
user.setUsername(getKeyword());
final Account account = new Account();

account.setAccountID(WicketUtil.getAccountId());
if
(WicketUtil.addCustomer(NewAccount.this, user, account, true))
redirectToInterceptPage(new
Edit(account));
}
} else {
userList.clear();

userList.addAll(Application.sqlMap.queryForList(searchUserByNameOrEmail,

getKeywordWildcard()));
if (userList.size()  0) {
NewAccount.this.info(Just click at the
username to add new account for that user);
}
userListView.modelChanged();
target.addComponent(userListView);
}
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
});
}
}

On 1/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 You can't.

 You have to submit the form using ajax.

 Martijn

 On 1/3/07, Carfield Yim [EMAIL PROTECTED] wrote:
  If I have a form inside a ModalWindow, submit the form will cause the
  ModalWindow close. Can I prevent this behaviour?
 
 
-
  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

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
My gmail crop my message but I can see it at sourceforge archive... I
don't know why. So I just resend my message again in case another
people only see an empty message

I have refer to

http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage

 and

http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ClockPage


But I cannot make the ModalWIndow updatable, Basically it is a form
contain a listview which will update after the user make some search, I
added an AjaxSelfUpdatingTimerBehavior to that listview and try to make
it update after the form submit, but it don't work, would you let me
know what am I doing wrong? BTW, I have validate that
AjaxSubmitButton.onsubmit is executed


public NewAccount(String id) {
super(id);
WicketUtil.standardHeader(this);
add(new NewAccountForm(form));
add(new FeedbackPanel(feedback));
add(userListView = new ListView(users, userList) {
private static final long serialVersionUID = 1L;

public void populateItem(final ListItem listItem) {
final User user = (User) listItem.getModelObject();
listItem.add(new Link(href) {
private static final long serialVersionUID = 1L;

@Override
public void onClick() {
try {
final Account account = new Account();
account.setAccountID(WicketUtil.getAccountId());
WicketUtil.addAccountForUser(user, account);
redirectToInterceptPage(new Edit(account));
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
}.add(new Label(label, user.getUsername(;
}
});
userListView.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(1)));
}

public final class NewAccountForm extends Form {
private static final long serialVersionUID = 1L;

private String keyword;

public String getKeyword() {
return keyword;
}

public String getKeywordWildcard() {
return keyword == null ? % : % + keyword.toLowerCase() +
%;
}

public void setKeyword(String keyword) {
this.keyword = keyword;
}

public NewAccountForm(final String id) {
super(id);
final TextField username;
add(username = new RequiredTextField(keyword, new
PropertyModel(this, keyword)));
add(new AjaxSubmitButton(ajax-submit-button, this) {
private static final long serialVersionUID = 1L;
protected void onSubmit(AjaxRequestTarget target, Form
form) {
try {
final boolean isNew =
Boolean.parseBoolean(getRequest().getParameter(isnew));
if (isNew) {

if(UsernameValidator.userNameDuplication(username, null))
NewAccount.this.error(user with same
username already exist);
else {
final User user = new User();
user.setUsername(getKeyword());
final Account account = new Account();

account.setAccountID(WicketUtil.getAccountId());
if
(WicketUtil.addCustomer(NewAccount.this, user, account, true))
redirectToInterceptPage(new
Edit(account));
}
} else {
userList.clear();

userList.addAll(Application.sqlMap.queryForList(searchUserByNameOrEmail,

getKeywordWildcard()));
if (userList.size()  0) {
NewAccount.this.info(Just click at the
username to add new account for that user);
}
userListView.modelChanged();
target.addComponent(userListView);
}
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
});
}
}

-
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] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
On 1/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 http://woogle.billen.dk/search/q/listview%20ajax

Have tried 
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
but fail. How can I use the AJAX debug window to see what going wrong?

-
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] What is the meaning of versioned?

2007-01-01 Thread Carfield Yim
From the javadoc of setVersioned:

Parameters:
isVersioned - True to turn on versioning for this component, false to
turn it off for this component and any children.

But what is the meaning of versioned? What is the result if I turn it on or off?

-
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] Unit test fail probably cause by authenication

2006-12-27 Thread Carfield Yim
I am really sorry, after detail tracing system, I found that there is
some parts of code will throw
RestartResponseAtInterceptPageException...

On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 set a breakpoint in your auth strategy and see what it is doing, sounds like
 a bug in there

 -igor


 On 12/26/06, Carfield Yim  [EMAIL PROTECTED] wrote:
 
  On 12/27/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   well looks like you are expecting main page but getting a login? so your
   auth strategy is redirecting, thus the test fails
  
  But for the unit test session, I already did below:
 
  public static class Tester extends WicketTester {
  @Override
  protected ISessionFactory getSessionFactory() {
  return new ISessionFactory() {
  public Session newSession() {
  com.genuco.util.component.Session
 session = new
  com.component.Session(Tester.this);
  session.setAuthenticated(true);
  return session;
  }
  };
  }
  }
 
  So the auth should be bypassed, do you have any idea that why I still
  getting this error?
 
 
 -
  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] When will RequestCycle.detach() being called?

2006-12-27 Thread Carfield Yim
I just get another exception from the unit test, this is kind of
strangle that complaint about No RequestCycle available:

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:262)

However, just before I call startPage I add
Assert.assertNotNull(RequestCycle.get()) and it is passed, and this
only occur for one test cases I have, just wonder when will
RequestCycle.detach() being called so RequestCycle.current begin set
to null?

-
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] When will RequestCycle.detach() being called?

2006-12-27 Thread Carfield Yim
On 12/27/06, Johan Compagner [EMAIL PROTECTED] wrote:
 which version of wicket is that?
 That should be fixed.

Wicket 1.2.3, may be I should upgrade to 1.2.4

 And it is not strange becuase in that startPage we did call touch on the
 page/session

Strangle is I have several other unit test of webpage and only this
one have problem

 after the complete processRequestcycle was called.


-
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] Architectural issues using Borders for page layout

2006-12-27 Thread Carfield Yim
I feel using Markup interitance over Border is more similar to using
interitance over composition of code reuse. Markup interitance is more
convenience to use but if you like to do something more dynamice, like
change layout according to role, I think Border is more flexible for
that? Please correct me if I am wrong

On 12/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 I agree with Igor. See
 http://wicketframework.org/ExampleMarkupInheritance.html for a small
 example of markup inheritance.

 Martijn

 On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  imho much better to use markup inheritance for a common layout. that example
  was written before markup inheritance was around.
 
  -igor
 
 
 
  On 12/27/06, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  
   hi, I am new to wicket, I have just done some examples tutorial starting
  from the QuickStart app.
  
   I am beginning to build a real webapp and I am wondering about the main
  layout structure
  
   I have done the Navomatic example and I am wondering if a good way is to
  use borders to define the structure of the page (I need a simple header,
  footer, navigation, body layout).
  
   In the navomatic example I have a add(NavomaticBorder()) in each page and
  if I want a page body with some wicket component I have to add them to
  navomaticInstance and not to the page (I have tried adding the ajax counter
  for example... it does not comes for free, counter is showed but click does
  not increment, ajax error...)
  
   Back to main problem, this create some architecture issues (replication
  and non-standard add method). I could create a template page that
  incapsulate the navomatic layout and with a custom add method that uses
  that... but is this a good way to do things?
  
   Thanks for advices.
  
  
  -
   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
 
 
 


 --
 Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org

 -
 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] Unit test fail probably cause by authenication

2006-12-26 Thread Carfield Yim
Anyone have any idea?

On 12/22/06, Carfield Yim [EMAIL PROTECTED] wrote:
 The unit test is just create a WebPage and assert it, stacktrace as
 below and look like the authenication will forward to Logon page if it
 is not authenication . However, in the session I have set it always
 return true if it is unit test. Anybody have any idea?

 junit.framework.ComparisonFailure: null expected:[Mai]n but was:[Logo]n
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at 
 wicket.util.tester.WicketTester.assertRenderedPage(WicketTester.java:760)
at com.genuco.web.pages.order.MainTest.testMain(MainTest.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at 
 org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at 
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
 org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at 
 org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at 
 org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at 
 org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at 
 org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
 org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
 org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
at 
 org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
 org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at 
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


-
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] Logging issue at tomcat

2006-12-26 Thread Carfield Yim
I already have

wicket.util.resource= Info
wicket.util.thread.Task = Info

But I still getting a lot of log message related at tomcat stdout.log.
For jetty and resin it will not do that . Anybody know how to make
tomcat don't log those information?

-
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] Unit test fail probably cause by authenication

2006-12-26 Thread Carfield Yim
On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well looks like you are expecting main page but getting a login? so your
 auth strategy is redirecting, thus the test fails

But for the unit test session, I already did below:

public static class Tester extends WicketTester {
@Override
protected ISessionFactory getSessionFactory() {
return new ISessionFactory() {
public Session newSession() {
com.genuco.util.component.Session session = new
com.component.Session(Tester.this);
session.setAuthenticated(true);
return session;
}
};
}
}

So the auth should be bypassed, do you have any idea that why I still
getting this error?

-
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 any event like onTabChangeEvent?

2006-12-21 Thread Carfield Yim
I have a page form which contain a TabbedPanel(), I would like the
form show submit button or not depend which tab is clicked. How can I
do that? Is there any event like onTabChangeEvent so that I can show
or hidden submit button once user click difference tab

-
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] Unit test fail probably cause by authenication

2006-12-21 Thread Carfield Yim
The unit test is just create a WebPage and assert it, stacktrace as
below and look like the authenication will forward to Logon page if it
is not authenication . However, in the session I have set it always
return true if it is unit test. Anybody have any idea?

junit.framework.ComparisonFailure: null expected:[Mai]n but was:[Logo]n
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at 
wicket.util.tester.WicketTester.assertRenderedPage(WicketTester.java:760)
at com.genuco.web.pages.order.MainTest.testMain(MainTest.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-
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 can I do URL mapping in wicket?

2006-12-20 Thread Carfield Yim
Thanks for remind, actually this is what the problem occur...

If it is just

servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping

Then everything is alright, but I had do is putting

servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping
servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/login/url-pattern
/servlet-mapping
servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/signup/url-pattern
/servlet-mapping
servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/report/url-pattern
/servlet-mapping
servlet-mapping
servlet-namewicket/servlet-name
url-pattern/app/edit_profile/url-pattern
/servlet-mapping

to web.xml. That make cause problems that I encounter before. The
reason of adding these is I don't know mount feature before and try to
write my own forwarding logic in my Application class. In order to
doing that I need to do that otherwise it will complaint about
resource not found.

On 12/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 that is pretty weird, what is your servlet mapping?

 -igor


 On 12/19/06, Carfield Yim [EMAIL PROTECTED]  wrote:
 
  On 12/20/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   no, you shouldnt, its really funny that it forwards to your logon page,
 is
   that your homepage?
  
  No, my homepage is other class. And eventually I found the solution, If I
 do
 
  mountBookmarkablePage(/signup, Registration.class);
 
  Then it forward to login page, but
 
  mountBookmarkablePage(/signup/, Registration.class);
 
  Then it work as expected... I guess wicket is looking for a url
  directory like http://localhost:8080/wicket/app/signup/
 ??

-
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 can I do URL mapping in wicket?

2006-12-19 Thread Carfield Yim
I have, but in the AbstractPageAuthorizationStrategy, I have skip the
registration.class already. In fact, I need the uri mapping work with
authorization scheme, is it not possible?

And even I remove that AbstractPageAuthorizationStrategy, I still have
this behaviour.

On 12/19/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Perhaps you made Registration protected with some kind of authorization
 scheme?

  Erik.

 Carfield Yim schreef:
  I don't know why but I cannot get it to work,
 
  After I add the map, say
  mountBookmarkablePage(/signup, Registration.class);
 
  If I go to URL:
 
  http://192.168.1.79:8080/wicket/app/signup
 
  then wicket forward me to
 
  http://192.168.1.79:8080/wicket/app/signup?wicket:bookmarkablePage=:com.xxx.base.Logon
 
  And just show the login page instead of registration page
 
 
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.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


-
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] Directly map a bean to HTML form

2006-12-19 Thread Carfield Yim
This look really cool, I just define the bean and the framework
determine HTML input type for me, is that similar support from wicket
for this?

http://beanform.sourceforge.net/

-
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 can I do URL mapping in wicket?

2006-12-19 Thread Carfield Yim
On 12/19/06, Carfield Yim [EMAIL PROTECTED] wrote:
 I have, but in the AbstractPageAuthorizationStrategy, I have skip the
 registration.class already. In fact, I need the uri mapping work with
 authorization scheme, is it not possible?

Just wonder, is it really cannot be done?

-
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 can I do URL mapping in wicket?

2006-12-19 Thread Carfield Yim
On 12/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 working fine over here, make sure your auth strategy really is skipping that
 class

The strangle thing is that even if I remove the auth. logic, It still
forward to

http://192.168.1.79:8080/wicket/app/signup?wicket:bookmarkablePage=:com.xxx.base.Logon

Any possible reason of this? Do I need to have any setup of using
mountBookmarkablePage? The way I use it is just one line of code

mountBookmarkablePage(/signup, Registration.class);

Do I need to do anything else?

-
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 can I do URL mapping in wicket?

2006-12-19 Thread Carfield Yim
On 12/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no, you shouldnt, its really funny that it forwards to your logon page, is
 that your homepage?

No, my homepage is other class. And eventually I found the solution, If I do

mountBookmarkablePage(/signup, Registration.class);

Then it forward to login page, but

mountBookmarkablePage(/signup/, Registration.class);

Then it work as expected... I guess wicket is looking for a url
directory like http://localhost:8080/wicket/app/signup/ ??

-
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 component caching

2006-12-18 Thread Carfield Yim
look like there is strangle browser cache for ajax component
(modalwindow is the one I get this problem) . Even if I setup HTTP to
no-cache:

response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache);
//response.setHeader(Cache-Control, private);
response.setDateHeader(Expires, 0);

And most of the content refresh nicely. However, the CSS that
modalwindow referencing is still in cache. Not sure anyone have the
problem before?

-
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 component caching

2006-12-18 Thread Carfield Yim
I am now put the CSS to classpath, after the CSS the browser don't get
the new one. And this only happen in ModalWindows, normal webpage will
fetch the CSS after it change

On 12/18/06, Matej Knopp [EMAIL PROTECTED] wrote:
 Why should be the css not cached?
 Where do you put the code you are mentioning? Because request that
 fetches css (and other resources) is different than request for a page /
 ajax request and wicket treats it differently.

 What's the reason of not caching css?

 -Matej

 Carfield Yim wrote:
  look like there is strangle browser cache for ajax component
  (modalwindow is the one I get this problem) . Even if I setup HTTP to
  no-cache:
 
  response.setHeader(Pragma, no-cache);
  response.setHeader(Cache-Control, no-cache);
  //response.setHeader(Cache-Control, private);
  response.setDateHeader(Expires, 0);
 
  And most of the content refresh nicely. However, the CSS that
  modalwindow referencing is still in cache. Not sure anyone have the
  problem before?
 
  -
  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
 


 --

  get professional wicket training and consultation
  http://www.wicket-support.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


-
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 component caching

2006-12-18 Thread Carfield Yim
 Where do you put the code you are mentioning? Because request that

Forget to mention about this, I put this block of code at
onBeginRequest() of my custom IRequestCycleFactory.newRequestCycle() .
Which, I suppose the CSS put at class will change the HTTP response
header when somebody request it. But may be it is not the case, not
sure

-
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 component caching

2006-12-18 Thread Carfield Yim
On 12/18/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 There is indeed a good case for not caching css in development mode. It
 is a mortal sin in deployment mode.

Exactly, but look like it is hard to not cache CSS for AJAX request,
and I just double confirmed that for normal webpage, it work perfectly

-
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 can I do URL mapping in wicket?

2006-12-18 Thread Carfield Yim
This is much more complicate than what I thought, I try to add some
code to isPageAuthorized() method when the user login as also change
the onBeginRequest() method, but it does work and it is hard to figure
out what going wrong.

Is there already any support of URL mapping that say map

http://localhost:8080/wicket/app/signup

to

http://localhost:8080/wicket/app?wicket:bookmarkablePage=:com.xxx.web.pages.system.Registration

-
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 can I do URL mapping in wicket?

2006-12-18 Thread Carfield Yim
On 12/19/06, Nick Heudecker [EMAIL PROTECTED] wrote:
 Are you talking about page mounting?  Take a look at
 mountBookmarkablePage(...) in the Application class.

I don't know why but I cannot get it to work,

After I add the map, say
mountBookmarkablePage(/signup, Registration.class);

If I go to URL:

http://192.168.1.79:8080/wicket/app/signup

then wicket forward me to

http://192.168.1.79:8080/wicket/app/signup?wicket:bookmarkablePage=:com.xxx.base.Logon

And just show the login page instead of registration page

-
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


  1   2   >