How to use IAuthorizationStrategy to control TabbedPanel title?

2009-11-17 Thread Haulyn R. Jason
Hi,

I use IAuthorizationStrategy to control all my applications, but I do not
know how to control TabbedPanel.

I have three panels, I can control the panel itself, but in the same way, I
write code to control the tabbledPanel title to display or not, it does not
work.

Is there a way to control that? Thanks.

-- 
Thanks!

VVThumb Production

Location:  Shumagang 6H-8, Jinan, Shandong, China 25
Mobile: +086-15864011231
email: haulynja...@vvthumb.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
msn:saharab...@gmail.com msn%3asaharab...@gmail.com
yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com
Twitter: http://twitter.com/saharabear
Linkedin: http://www.linkedin.com/in/haulyn

Haulyn Jason


500 error from server with very quickly click on component

2009-11-17 Thread Haulyn R. Jason
Hi:

My architecture is using wicket as UI layer, then use Hessian as RPC web
service. I find a problem, everything works well in common condition, if I
click a link very quickly twice or more at the same time, the page must be
crashed or the server will return 500 error. I try to use JMeter to test my
service server, I believe that my service server  has no problem, I mean it
can not because of service server performance issue for 500.

Maybe wicket is stateful but hessian is stateless? I try to debug it but
nothing was found. Can anyone help me ?

-- 
Thanks!

VVThumb Production

Location:  Shumagang 6H-8, Jinan, Shandong, China 25
Mobile: +086-15864011231
email: haulynja...@vvthumb.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
msn:saharab...@gmail.com msn%3asaharab...@gmail.com
yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com
Twitter: http://twitter.com/saharabear
Linkedin: http://www.linkedin.com/in/haulyn

Haulyn Jason


Re: 500 error from server with very quickly click on component

2009-11-17 Thread Haulyn R. Jason
Hi, Makundi, I try to set threadpool to the max, always 500 on the way

On Wed, Nov 18, 2009 at 3:51 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Not knowing anything about anything.. maybe your threadpool runs short?

 **
 Martin

 2009/11/18 Haulyn R. Jason saharab...@gmail.com:
  Hi:
 
  My architecture is using wicket as UI layer, then use Hessian as RPC web
  service. I find a problem, everything works well in common condition, if
 I
  click a link very quickly twice or more at the same time, the page must
 be
  crashed or the server will return 500 error. I try to use JMeter to test
 my
  service server, I believe that my service server  has no problem, I mean
 it
  can not because of service server performance issue for 500.
 
  Maybe wicket is stateful but hessian is stateless? I try to debug it but
  nothing was found. Can anyone help me ?
 
  --
  Thanks!
 
  VVThumb Production
 
  Location:  Shumagang 6H-8, Jinan, Shandong, China 25
  Mobile: +086-15864011231
  email: haulynja...@vvthumb.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
  msn:saharab...@gmail.com msn%3asaharab...@gmail.com 
 msn%3asaharab...@gmail.com msn%253asaharab...@gmail.com
  yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com 
 yahoo%3ajia_hao...@yahoo.com yahoo%253ajia_hao...@yahoo.com
  Twitter: http://twitter.com/saharabear
  Linkedin: http://www.linkedin.com/in/haulyn
 
  Haulyn Jason
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Thanks!

VVThumb Production

Location:  Shumagang 6H-8, Jinan, Shandong, China 25
Mobile: +086-15864011231
email: haulynja...@vvthumb.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
msn:saharab...@gmail.com msn%3asaharab...@gmail.com
yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com
Twitter: http://twitter.com/saharabear
Linkedin: http://www.linkedin.com/in/haulyn

Haulyn Jason


How to update model when using AjaxFallbackLink

2009-11-12 Thread Haulyn R. Jason
Hi:

I am using AjaxFallbackLink.

I have a ListView in a container, and a AjaxFallbackLink per row for delete
the current row. But When I click the link, I find the data is deleted but
the current ListView doesn't refresh. I think that's because the list object
didn't be refreshed, but I do not know where to put my code.

The following is my AjaxFallbackLink code:

item.add(new AjaxFallbackLink(removeLink) {

@Override
public void onClick(AjaxRequestTarget target) {
_resourceForm.setEnabled(false);
_securityService.removeResource(resource);
_resources = _securityService.queryResources();
 I update my list model here
info(success);
target.addComponent(_listContainer);
target.addComponent(_resourceForm);
}
});

Is there something I forget to?

-- 
Thanks!

VVThumb Production

Location:  Shumagang 6H-8, Jinan, Shandong, China 25
Mobile: +086-15864011231
email: haulynja...@vvthumb.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
msn:saharab...@gmail.com msn%3asaharab...@gmail.com
yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com
Twitter: http://twitter.com/saharabear
Linkedin: http://www.linkedin.com/in/haulyn

Haulyn Jason


Re: How to update model when using AjaxFallbackLink

2009-11-12 Thread Haulyn R. Jason
Hi, Santos:

That works,thanks. I just update my list, but forget to maintain listview's
model.



On Thu, Nov 12, 2009 at 8:11 PM, Pedro Santos pedros...@gmail.com wrote:

 listOnListViewModel.remove(resource);
 than you remove the data form your db (service.remove()), and your view

 On Thu, Nov 12, 2009 at 10:06 AM, Haulyn R. Jason saharab...@gmail.com
 wrote:

  Hi:
 
  I am using AjaxFallbackLink.
 
  I have a ListView in a container, and a AjaxFallbackLink per row for
 delete
  the current row. But When I click the link, I find the data is deleted
 but
  the current ListView doesn't refresh. I think that's because the list
  object
  didn't be refreshed, but I do not know where to put my code.
 
  The following is my AjaxFallbackLink code:
 
 item.add(new AjaxFallbackLink(removeLink) {
 
 @Override
 public void onClick(AjaxRequestTarget target) {
 _resourceForm.setEnabled(false);
 _securityService.removeResource(resource);
 _resources =
 _securityService.queryResources();
   I update my list model here
 info(success);
 target.addComponent(_listContainer);
 target.addComponent(_resourceForm);
 }
 });
 
  Is there something I forget to?
 
  --
  Thanks!
 
  VVThumb Production
 
  Location:  Shumagang 6H-8, Jinan, Shandong, China 25
  Mobile: +086-15864011231
  email: haulynja...@vvthumb.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
  msn:saharab...@gmail.com msn%3asaharab...@gmail.com 
 msn%3asaharab...@gmail.com msn%253asaharab...@gmail.com 
  msn%3asaharab...@gmail.com msn%253asaharab...@gmail.com 
 msn%253asaharab...@gmail.com msn%25253asaharab...@gmail.com
  yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com 
 yahoo%3ajia_hao...@yahoo.com yahoo%253ajia_hao...@yahoo.com 
  yahoo%3ajia_hao...@yahoo.com yahoo%253ajia_hao...@yahoo.com 
 yahoo%253ajia_hao...@yahoo.com yahoo%25253ajia_hao...@yahoo.com
  Twitter: http://twitter.com/saharabear
  Linkedin: http://www.linkedin.com/in/haulyn
 
  Haulyn Jason
 



 --
 Pedro Henrique Oliveira dos Santos




-- 
Thanks!

VVThumb Production

Location:  Shumagang 6H-8, Jinan, Shandong, China 25
Mobile: +086-15864011231
email: haulynja...@vvthumb.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
msn:saharab...@gmail.com msn%3asaharab...@gmail.com
yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com
Twitter: http://twitter.com/saharabear
Linkedin: http://www.linkedin.com/in/haulyn

Haulyn Jason


How to get Session in Application

2009-11-07 Thread Haulyn R. Jason
Hi,

I want to implement IAuthorizationStrategy in MyApplication, but I do
not know how to get WicketSession, I need to get Component Action List
from WicketSession. Is there some reference?

-- 
Many thanks!

Haulyn Microproduction

You can access me via:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get Session in Application

2009-11-07 Thread Haulyn R. Jason
Hi, I tried this, but I got the following:

you can only locate or create sessions in the context of a request
cycle when I start the application.





On Sat, Nov 7, 2009 at 7:38 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Session.get()?

 http://wicket.apache.org/docs/1.4/org/apache/wicket/Session.html#get%28%29

 In your custom session class, you can add your own get() method that
 returns your specific type:

 public static MySession get()
 {
  return (MySession)Session.get();
 }

 Then, you don't have to cast:

 MySession.get().getMySessionInformationThatImInterestedIn();

 On Sat, Nov 7, 2009 at 5:22 AM, Haulyn R. Jason saharab...@gmail.com wrote:
 Hi,

 I want to implement IAuthorizationStrategy in MyApplication, but I do
 not know how to get WicketSession, I need to get Component Action List
 from WicketSession. Is there some reference?

 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me via:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get Session in Application

2009-11-07 Thread Haulyn R. Jason
Hi, James:

I just using the following code, then I get that error.

getSecuritySettings().setAuthorizationStrategy(
new IAuthorizationStrategy(){
SecuritySession session = SecuritySession.get();
public boolean isActionAuthorized(Component component, Action action) {
 return session.auth(component,action)
}
   public T extends Component boolean
isInstantiationAuthorized(ClassT clazz) {
return session.auth(clazz);
}
}
);






On Sat, Nov 7, 2009 at 8:01 PM, James Carman
jcar...@carmanconsulting.com wrote:
 What session are you trying to access during the application startup?
 A session is tied to a user's session as they browse your site.  Who's
 browsing upon application startup?

 On Sat, Nov 7, 2009 at 6:42 AM, Haulyn R. Jason saharab...@gmail.com wrote:
 Hi, I tried this, but I got the following:

 you can only locate or create sessions in the context of a request
 cycle when I start the application.





 On Sat, Nov 7, 2009 at 7:38 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Session.get()?

 http://wicket.apache.org/docs/1.4/org/apache/wicket/Session.html#get%28%29

 In your custom session class, you can add your own get() method that
 returns your specific type:

 public static MySession get()
 {
  return (MySession)Session.get();
 }

 Then, you don't have to cast:

 MySession.get().getMySessionInformationThatImInterestedIn();

 On Sat, Nov 7, 2009 at 5:22 AM, Haulyn R. Jason saharab...@gmail.com 
 wrote:
 Hi,

 I want to implement IAuthorizationStrategy in MyApplication, but I do
 not know how to get WicketSession, I need to get Component Action List
 from WicketSession. Is there some reference?

 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me via:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get Session in Application

2009-11-07 Thread Haulyn R. Jason
Thanks James, I works well,  that means no request, no session.


On Sat, Nov 7, 2009 at 8:27 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Don't try to access the session so early.  Just get it inside each
 method, because those methods will be called during a request cycle.
 Basically, remove your member variable that holds the session and just
 use SecuritySession.get() in its place.

 On Sat, Nov 7, 2009 at 7:23 AM, Haulyn R. Jason saharab...@gmail.com wrote:
 Hi, James:

 I just using the following code, then I get that error.

 getSecuritySettings().setAuthorizationStrategy(
    new IAuthorizationStrategy(){
    SecuritySession session = SecuritySession.get();
    public boolean isActionAuthorized(Component component, Action action) {
         return session.auth(component,action)
    }
   public T extends Component boolean
 isInstantiationAuthorized(ClassT clazz) {
        return session.auth(clazz);
    }
 }
 );






 On Sat, Nov 7, 2009 at 8:01 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 What session are you trying to access during the application startup?
 A session is tied to a user's session as they browse your site.  Who's
 browsing upon application startup?

 On Sat, Nov 7, 2009 at 6:42 AM, Haulyn R. Jason saharab...@gmail.com 
 wrote:
 Hi, I tried this, but I got the following:

 you can only locate or create sessions in the context of a request
 cycle when I start the application.





 On Sat, Nov 7, 2009 at 7:38 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Session.get()?

 http://wicket.apache.org/docs/1.4/org/apache/wicket/Session.html#get%28%29

 In your custom session class, you can add your own get() method that
 returns your specific type:

 public static MySession get()
 {
  return (MySession)Session.get();
 }

 Then, you don't have to cast:

 MySession.get().getMySessionInformationThatImInterestedIn();

 On Sat, Nov 7, 2009 at 5:22 AM, Haulyn R. Jason saharab...@gmail.com 
 wrote:
 Hi,

 I want to implement IAuthorizationStrategy in MyApplication, but I do
 not know how to get WicketSession, I need to get Component Action List
 from WicketSession. Is there some reference?

 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Many thanks!

 Haulyn Microproduction

 You can access me via:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me via:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Haulyn R. Jason
I am care about Can I upgrade all my applications from 1.4.3 to 1.5 as
easy as possible.

On Fri, Oct 30, 2009 at 4:27 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 I'm still eager to make WicketTester a first class citizen.

 Martijn

 On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:

    Thanks for your answer,

 Daniel


 igor.vaynberg wrote:

 the focus of this release is to rewrite url and page handling. the
 focus is on flexibility and pluggability as well as simplification of
 use to the end user.

 the other major feature is the markupfragment implementation, which
 will allow users access to the markup the component is attached to,
 possibly, at a time earlier then render time.

 other then that there will probably be smaller features that will not
 go into 1.4.x because they require an api break.

 -igor

 On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote:

    Besides, it would be very interesting to know what changes and new
 features are planned.

 Cheers,

 Daniel




 --
 View this message in context: 
 http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tree markup

2009-10-28 Thread Haulyn R. Jason
Hi, I just want to lear something here. I do not know how to solve
your problem, but can you tell me how can you add links to the tree
component?

Thanks.


On Thu, Oct 29, 2009 at 6:52 AM,  bvrol...@cmbi.ru.nl wrote:
 I'm using the wicket tree, which works nice. However, when the tree
 element is longer than the width of the tree, the line just continues
 'invisible' behind it. I have been trying for hours now to get a scrollbar
 to appear, but no luck so far.
 Any ideas?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tree markup

2009-10-28 Thread Haulyn R. Jason
Hi, I know how to add links. override newLink method. Thanks again.

On Thu, Oct 29, 2009 at 7:35 AM, Haulyn R. Jason saharab...@gmail.com wrote:
 Hi, I just want to lear something here. I do not know how to solve
 your problem, but can you tell me how can you add links to the tree
 component?

 Thanks.


 On Thu, Oct 29, 2009 at 6:52 AM,  bvrol...@cmbi.ru.nl wrote:
 I'm using the wicket tree, which works nice. However, when the tree
 element is longer than the width of the tree, the line just continues
 'invisible' behind it. I have been trying for hours now to get a scrollbar
 to appear, but no luck so far.
 Any ideas?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Many thanks!

 Haulyn Microproduction

 You can access me with the following ways:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com, hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason




-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WhiteSpaces in PasswordTextField

2009-10-26 Thread Haulyn R. Jason
You can override it, I think so.


On Mon, Oct 26, 2009 at 5:33 PM, vela vela@gmail.com wrote:

 Hello again,

 How to change the default value to false




 --
 View this message in context: 
 http://www.nabble.com/WhiteSpaces-in-PasswordTextField-tp26047182p26056628.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Need help with error with in my list code

2009-10-25 Thread Haulyn R. Jason
I do not think JavaReble is a good tool for Wicket. Try Glassfish with
hot deploy with netbeans, works very well with Wicket.

On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com wrote:
 Update:

 I found out what the was.
 I was running Jetty via JavaRebel agent.
 Somehow JavaRebel could not load in the changes in the Java code properly
 and that was what caused the code error.
 There was nothing wrong with the code.

 Thanks.


 On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote:

 Hi,

 I'm very new to wicket and need some help with what I thought is very
 straight forward code.

 Wicket Version 1.4.3
 Code:

 -- Html -

 form wicket:id=dataForm
 Grouping: select wicket:id=grouping size=6/select
 Additional Remarks:
 textarea wicket:id=additionalRemarks
 name=additionalRemarks/textarea
 input type=submit value=In Process /
 /form

 -- Java --

 Form dataForm = new Form(dataForm) {
       @Override
       protected void onSubmit() {
       System.out.println(Form 4 submitted);
       }
 };

 dataForm.add(new TextArea(additionalRemarks, new
 Model(additionalRemarks)));
 ListString groupings = Arrays.asList(Group 1, Group 2);
 DropDownChoice grouping = new DropDownChoice(grouping, groupings);
 dataForm.add(grouping);
 add(dataForm);

 When I visit my page, I keep getting the error:

 --- Error -

 WicketMessage: Unable to find component with id 'grouping' in
 [MarkupContainer [Component id = dataForm]]. This means that you declared
 wicket:id=grouping in your markup, but that you either did not add the
 component to your page at all, or that the hierarchy does not match.

 It points to select wicket:id=grouping size=6 in my html.

 Removing the select lets the page render correctly.

 Is the error caused by me adding a DropDownChoice component to a Form? I've
 looked at the web examples and they dont seem to have a problem and yet my
 simple select form cannot run. Did I misunderstand the component hierarchy?
 DropDownList cannot be added to a Form?

 Help will be appreciated.





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Hi, all:

I have a page which is protected by MySession.isLogin().

I want to unit test this page and write the following code:

---
WicketTester tester = new WicketTester(new WebsiteApplication());

tester.createRequestCycle();
tester.setupRequestAndResponse();
tester.startPage(GmailImportPage.class);

WebsiteSession session = (WebsiteSession)tester.getWicketSession();
Member m = new Member();
m.setId(2);
session.setMember(m);

tester.assertRenderedPage(GmailImportPage.class);
---
But, the result is: expected: GmailImportPage but was IndexPage

that right, IndexPage is my Index Page setting by WebsiteApplication,
I think maybe I lost some steps, can anybody help me?

Thanks.



-- 
Many thanks!

Haulyn Microproduction

Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Thanks very much, it works!

On Thu, Oct 22, 2009 at 6:17 PM, Martin Grigorov mcgreg...@e-card.bg wrote:
 El jue, 22-10-2009 a las 17:07 +0800, Haulyn R. Jason escribió:
 Hi, all:

 I have a page which is protected by MySession.isLogin().

 I want to unit test this page and write the following code:

 ---
         WicketTester tester = new WicketTester(new WebsiteApplication());

         tester.createRequestCycle();
         tester.setupRequestAndResponse();
 put a User in the Session here and then isLogin() will pass
         tester.startPage(GmailImportPage.class);

         WebsiteSession session = (WebsiteSession)tester.getWicketSession();
         Member m = new Member();
         m.setId(2);
         session.setMember(m);

         tester.assertRenderedPage(GmailImportPage.class);
 ---
 But, the result is: expected: GmailImportPage but was IndexPage

 that right, IndexPage is my Index Page setting by WebsiteApplication,
 I think maybe I lost some steps, can anybody help me?

 Thanks.





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.4.2 Released!

2009-10-10 Thread Haulyn R. Jason
Congratulations, I will upgrade next week.

On Sat, Oct 10, 2009 at 8:05 PM, Giovanni pino_o...@yahoo.com wrote:

 Wow!!!

 I will upgrade my project for a major italian bank on coming monday.

 Thanks a lot for all your efforts in developing this great web framework!

 Best regards,
 giovanni

  
 Resources are limited, Imagination is unlimited.






 
 From: Igor Vaynberg igor.vaynb...@gmail.com
 To: users@wicket.apache.org; d...@wicket.apache.org;
 annou...@wicket.apache.org
 Sent: Sat, October 10, 2009 8:27:47 AM
 Subject: Wicket 1.4.2 Released!

 The Apache Wicket project is proud to announce the second maintenance
 release of Apache Wicket 1.4.

 Download Apache Wicket 1.4
 ---

 You can download the release here:
 http://www.apache.org/dyn/closer.cgi/wicket/1.4.2

 Or use this in your Maven pom's to upgrade to the new version:

 dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.2/version
 /dependency

 Release Notes - Wicket - Version 1.4.2

 ** Bug
  * [WICKET-2393] - Passwords should not be trimmed
  * [WICKET-2430] - Malformed \u encoding in
 MultipleUploadField_sl.properties
  * [WICKET-2433] - Ajax support for multipart forms broken in a nested form
  * [WICKET-2434] - RequestCycle urlFor ignores existing parameters
 when appending provided params
  * [WICKET-2436] - invalid DataTable markup breaks table layout
  * [WICKET-2438] - AjaxEventBehavior not working on feedback
 message components
  * [WICKET-2453] - Form.findForm(Component c) bug. When form is
 part of Border and form component like TextField is inside another
 Border , component cannot resolve its form.
  * [WICKET-2456] - DateTextField cannot work with default converter
 (or javadoc wrong)
  * [WICKET-2457] - Flash/ExternalInterface does not work in IE if
 movie is fetched via Wicket/Ajax
  * [WICKET-2458] - JavascriptUtils.escapeQuotes() misses escaping
 double quotes
  * [WICKET-2461] - AjaxPagingNavigationIncrementLink does not work
 without AjaxPagingNavigator component
  * [WICKET-2463] - Ajax miltipart form submitting ignores
 setDefaultFormProcessing(false)
  * [WICKET-2466] - javadoc the CryptedUrlWebRequestCodingStrategy
 needs to be update/corrected to reflect the usage of session-id for
 encryption and hence URLs which were bookmarkable before will NOT
 remain bookmarkable.
  * [WICKET-2475] - NPE after application hot redeployment
  * [WICKET-2477] - AjaxEditableChoiceLabel does not detach choices model
  * [WICKET-2478] - TabbedPanel rendering bug
  * [WICKET-2485] - IComponentResolvers are not supported inside
 wicket:enclosure
  * [WICKET-2488] - QuickFix proposal
 WicketTesterHelper.assertEquals(final Collection? expects, final
 Collection? actuals) should compare list sizes

 ** Improvement
  * [WICKET-626] - profile Wicket for 1.4.0
  * [WICKET-2435] - TabbedPanel extract factory method for tabs-container
  * [WICKET-2439] - Improve MixedParamUrlCodingStrategy, introduce Hybrid
  * [WICKET-2444] - Internal Spring beans should be ignored
  * [WICKET-2445] - FormInput.java needs the validators updated.
  * [WICKET-2449] - Fix javadoc biggest mistakes - mainly @Deprecated tags
  * [WICKET-2454] - IE8: be more verbose if ajax refresh fails
  * [WICKET-2469] - Allow using a different FileItemFactory by
 extracting a method in MultipartServletWebRequest class
  * [WICKET-2492] - Application_pt_BR.properties path

 ** New Feature
  * [WICKET-2395] - add MixedParamHybridUrlCodingStrategy
  * [WICKET-2483] - Access to WizardModel.conditions

 ** Wish
  * [WICKET-2120] - widen visibiliy of GuiceProxyTargetLocator  and
 findBindingAnnotation
  * [WICKET-2462] - Would it possible add chinese resource label for
 WizardButton eg. CancelButton, NextButton and PreviousButton etc.
  * [WICKET-2489] - need to know if a component has been added to
 the AjaxRequestTarget

 We thank you for your patience and support.

 The Wicket Team

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org







-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason


How to implement session validation?

2009-10-08 Thread Haulyn R. Jason
Hi,
I read some articles to find how to use session validation to protect my
application. When the Admin Login, some pages are protected by session with
attribute admin_id, and when the common user login, some other pages are
protected by cookie with attribute user_id. I do not want to add code to
all pages and panels I created to validate session and cookie. Then I find a
way: use IAuthorizationStrategy. But I just want to validate admin by
session, and validate common user by cookie.

I am not sure is there a good way to implement this. I read some articles,
something mentions about WebApplication Inheritance, but I can not
understand this.

Who can help me about this problem, or give me some urls as reference.

Thanks!

-- 
Many thanks!

Haulyn Microproduction

You can access me via the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason


Re: confused about component parent field

2009-09-28 Thread Haulyn R. Jason
Hi, Pedro,

after debug, I found the problem, and I add this line before my code:

this.getParent().addOrReplace(currentPanel),
this line resolve the problem.

Thanks :)


On Mon, Sep 28, 2009 at 7:25 PM, Pedro Santos pedros...@gmail.com wrote:

 Hi Haulyn, if you call

 currentPanel.replaceWith(targetPanel);

 an got
 java.lang.IllegalStateException: This method can only be called on a
 component that has already been added to its parent.

 the only thing that can cause that exception is: currentPanel hasn't an
 parent.

 Work direct with the parent when you swap panels, just to make sure you
 will
 not fall in that exception. You have a list of then right? Use:
 parent.replace(childChoicedOnListOfPanelToSwap)

 On Sat, Sep 26, 2009 at 10:24 PM, Haulyn R. Jason saharab...@gmail.com
 wrote:

  Hi, all
  I design a component for display a navigation bar with panel swap tech.
  I define a Panel as the name of currentPanel and use DashboardPanel to
  instance it., and define a ListPanel to generate the navigation bar.
  Other people will transfer the list to my component, and when the Link be
  clicked, my component will execute these codes:
 
  currentPanel.replaceWith(targetPanel);
  currentPanel = targetPanel;
 
  but I get the following error message:
 
  WicketMessage: Method onLinkClicked of interface
  org.apache.wicket.markup.html.link.ILinkListener targeted at component
  [MarkupContainer [Component id = url]] threw an exception
 
  Root cause:
 
  java.lang.IllegalStateException: This method can only be called on a
  component that has already been added to its parent.
 
 
  I debug the application and I find there is a parent field in the
  currentPanel, in the begining, the value of parent field is Panel,
  but parent field of targetPanel from the ListPanel which is
  transfered from other application is NULL.
 
 
  I am confused on the parent field, who can tell me which part I forget
  to use the panel swapping tech?
 
 
 
  --
  Many thanks!
 
  Haulyn Microproduction
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com, hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 



 --
 Pedro Henrique Oliveira dos Santos




-- 
Many thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net/
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


confused about component parent field

2009-09-26 Thread Haulyn R. Jason
Hi, all
I design a component for display a navigation bar with panel swap tech.
I define a Panel as the name of currentPanel and use DashboardPanel to
instance it., and define a ListPanel to generate the navigation bar.
Other people will transfer the list to my component, and when the Link be
clicked, my component will execute these codes:

currentPanel.replaceWith(targetPanel);
currentPanel = targetPanel;

but I get the following error message:

WicketMessage: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at component
[MarkupContainer [Component id = url]] threw an exception

Root cause:

java.lang.IllegalStateException: This method can only be called on a
component that has already been added to its parent.


I debug the application and I find there is a parent field in the
currentPanel, in the begining, the value of parent field is Panel,
but parent field of targetPanel from the ListPanel which is
transfered from other application is NULL.


I am confused on the parent field, who can tell me which part I forget
to use the panel swapping tech?



-- 
Many thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Haulyn R. Jason
Hi, all
I have a WebMarkupContainer in my page, and I need to create some links to
this WebMarkupContainer.But I do not have markup like a wicket:id=
foo/a, because I do not know how many links I need to create, but I do
not know how to create links without markup.

Can anyone help me? Thanks very much!

-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Haulyn R. Jason
Hi, Peter,  happy to meet you here.
Label, Sounds good, but How can I get the html String generated by Link
class with onClicked method override?

On Wed, Sep 23, 2009 at 5:45 PM, Peter Thomas ptrtho...@gmail.com wrote:

 On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov mcgreg...@e-card.bg
 wrote:

  El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió:
   Hi, all
   I have a WebMarkupContainer in my page, and I need to create some links
  to
   this WebMarkupContainer.But I do not have markup like a wicket:id=
   foo/a, because I do not know how many links I need to create, but I
 do
   not know how to create links without markup.
  
   Can anyone help me? Thanks very much!
  
  Use RepeatingView, ListView or something like them.
 
 
 
 Sound like you want to create a bookmark kind of link e.g. a
 href=#fooClick Me!/a will take you to a name=fooBlah/a

 You can use a Label, put any HTML you want as the String / Model and have
 it
 rendered, just do setEscapeModelStrings(false)

 - Peter




-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: confused about wicket Tree component with panel swapping

2009-08-20 Thread Haulyn R. Jason
can anybody help me? thanks.

On Wed, Aug 19, 2009 at 11:15 PM, Haulyn R. Jason saharab...@gmail.comwrote:

 Hi, all
 I refactor my pages from inheritance to panel swapping with a tree for
 navigation. But I can not make the tree work.

 I add some links like this:
 add(new Link(settingPageLink) {
 @Override
 public void onClick() {
 currentPanel.replaceWith(settingPanel);
 currentPanel = settingPanel;
 }
 });
 these links works well, but the following code does not work:
  Tree tree = new Tree(tree, treeModel) {
 @Override
 protected void onNodeLinkClicked(AjaxRequestTarget target,
 TreeNode node) {
 DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)
 node;
 NavigationTreeNode navigationTreeNode =
 (NavigationTreeNode) treeNode.getUserObject();
 if (navigationTreeNode.isURL) {
 Panel clickedPanel =
 navigationTreeNode.getClickedPanel();
 currentPanel.replaceWith(clickedPanel);
 currentPanel = clickedPanel;
 } else {
 super.onNodeLinkClicked(target, node);
 }
 }
 };

 I do not know how to make this tree work. Do I  lose something?

 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason





-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: [announce] Wicket 1.4.1

2009-08-19 Thread Haulyn R. Jason
congratulations.

On Thu, Aug 20, 2009 at 1:21 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 Apache Wicket 1.4.1 Released

 The Apache Wicket project is proud to announce the first maintenance
 release of Apache Wicket 1.4.

 Download Apache Wicket 1.4.1
 -
 You can download the release here:
 http://www.apache.org/dyn/closer.cgi/wicket/1.4.1

 Or use this in your Maven pom's to upgrade to the new version:

 dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.1/version
 /dependency

 Changes
 -
 The most notable change in this release is the transparent support for
 multipart form submissions via Ajax. Wicket is now smart enough to
 submit a form using a hidden iframe rather then the standard
 XMLHttpRequest if the form contains file upload fields.

 A complete list of changes can be found in our Jira instance[0].

 --

 We thank you for your patience and support.

 The Wicket Team

 [0]
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314113

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: Need Wicket Book

2009-08-18 Thread Haulyn R. Jason
I have both Pro Wicket and Wicket in Action. They are all great!

2009/8/18 Major Péter majorpe...@sch.bme.hu

 Yes Wicket In Action is a great book, but there is an another book: Pro
 Wicket from Karthik Gurumurthy, which could be also helpful.

 Peter

 2009-08-18 08:26 keltezéssel, Jeroen Steenbeeke írta:

  I realize you asked for freely available information sources, but you
 really
 can't go wrong with Wicket in Action:
 http://manning.com/dashorst/
 It isn't that expensive at $45, and you get a PDF copy as well. You can
 also
 skip the dead tree version and get just the PDF for $27.50. And I'm not
 just
 saying this because Martijn is a co-worker, it really is an excellent
 book.
 - Jeroen

 2009/8/18 Haulyn R. Jasonsaharab...@gmail.com

  you can start from wicket tutorial, live demo
 http://wicketstuff.org/wicket13/and the quick start is very good:
 http://wicket.apache.org/quickstart.html




 On Tue, Aug 18, 2009 at 1:26 PM, Gerald Fernando
 gerald.anto.ferna...@gmail.com  wrote:

  Hello Friends,

 Am Gerald Fernando as well as new to Wicket.
 I was assigned to do a  project using Wicket.
 So first i Need to study well Wicket(from the very basic steps)
 What can be Achieved and What cant be Achieved.
 please tell me the Books for Wicket(Free DownLoad).
 so that i can go ahead.
 from the basic i want to study throughly
 please Help me



 --
 Thanksregards,
 Gerald A




 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: How can i load my css

2009-08-18 Thread Haulyn R. Jason
Hi, I didn't use this style, but I leave my css in resources folder, and use
the following code
here:add(CSSPackageResource.getHeaderContribution(AbstractWebPage.class,
resources/base.css));

everything works well.



On Tue, Aug 18, 2009 at 3:58 PM, Per Newgro per.new...@gmx.ch wrote:

 Hi *,

 i would like to add a css-class to my div to display a background image. So
 i've added this to css

 my.css
 div.myimg {
   background: url(navi_items.gif) no-repeat;
   width: 12px;
   height: 10px;
   cursor: pointer;
 }

 The navi_items.gif is located in
 - webapp
   - WEB-INF
   - webresources
  - my.css
  - navi_items.gif


 If i add this to my HomePage.html
   link rel=stylesheet href=webresources/my.css type=text/css
 media=all /
 everything works fine.

 But with the following code in my HomePage i get the error message below

 HomePage.java
 public HomePage() {
  // add .. for every package level of Application to come to application
 root
  add(HeaderContributor.forCss(new
 CompressedResourceReference(../../../webresources/my.css)));
 }

 error-message
 ERROR - SharedResources-
 
 ERROR - SharedResources- Your path looks like:
 ../../../webresources/my.css
 ERROR - SharedResources- For security reasons moving up '../'
 is disabled by default. Please see
 ERROR - SharedResources-
 IResourceSettings.getParentFolderPlaceholder() and PackageResourceGuard for
 more details
 ERROR - SharedResources-
 
 WARN  - PackageResource- Unable to find package resource [path
 = webresources/my.css, style = null, locale = null]

 Setting the parentFolderPlaceholder to $up$ and use
 $up$/$up$/$up$/webresources/my.css solved the error message display but
 the css
 is still not loaded.

 This was formerly working (wicket1.3.6). With wicket-1992 and wicket1.3.7
 it was disabled. But how can i load my css now?

 Cheers
 Per

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: Wicket Job offer

2009-08-18 Thread Haulyn R. Jason
All the things are interesting, but can you share some experience about
inject component or model with guice? I am trying Salve solution.

On Fri, Aug 14, 2009 at 6:02 PM, Wayne Pope 
waynemailingli...@googlemail.com wrote:

 Hello all,

 We are looking for a long term wicket developer to join our very small
 company here in Monaco/Nice area.
 Salary is in the range of 2500 to 4500 a month Euro depending on
 experience.
 Starting with a 6 month contract moving to a full time position afterwards.
 English speaking working environment

 You'll be working on an online B2B application. Technologies used:
 Wicket 1.4
 Java 6
 Guice
 Maven
 Warp
 Hibernate
 Mysql
 Lucene search
 Open office headless
 Commons
 Ant
 Tomcat
 Linux and Solaris
 Hosted in the cloud.
 JQuery
 XHTML/css


 Please contact me DIRECTLY if you are interested - NOT THE MAILING LIST!
 This position is NOT available as a remote/work from home position.

 many thanks
 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: How to use Guice to inject Service to LoadableDetachableModel

2009-08-18 Thread Haulyn R. Jason
Hi, all:
I try to use
Injector injector =
getMetaData(GuiceInjectorHolder.INJECTOR_KEY).getInjector();
DependencyLibrary.addLocator(new GuiceBeanLocator(injector));
in the init() of Application, and use @Dependence instead of @Inject, but I
got NullPointException.




On Tue, Aug 18, 2009 at 9:30 PM, Haulyn R. Jason saharab...@gmail.comwrote:

 Hi, all:
 The process of compiling salve is passed, and I tried to setup it and
 testing. But, how can I get guice injector from wicket?
 I use the code below in my wicket Application's init function,

 DependencyLibrary.addLocator(new GuiceBeanLocator(injector));

 but how can I get the guice injector?

 thanks!



 On Tue, Aug 18, 2009 at 5:31 PM, Haulyn R. Jason saharab...@gmail.comwrote:

 Hi, Igor, Thanks for your reply, I tried salve but when I compile it,
 there are some testing failures. Can you help me to find a binary download
 link? Or any other solutions are also great! I need to make salve run with
 wicket and guice.
 Thanks.


 On Tue, Aug 18, 2009 at 1:34 AM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:

 the easiest thing is to inject your component and pass the reference
 into your model.

 outside that there is salve.googlecode.com that lets you inject any
 object.

 InjectorHolder.getInjector() doesnt work with guice because it is
 possible to have more then one injector - one per module.

 -igor

 On Mon, Aug 17, 2009 at 8:26 AM, Haulyn R. Jasonsaharab...@gmail.com
 wrote:
  Hi, all:
  I have a class which is likes below:
 
 
  public class DetachableMemberModel extends
 LoadableDetachableModelMember {
 
 private final long id;
 
 public DetachableMemberModel(Member m) {
 this(m.getId());
 }
 
 public DetachableMemberModel(long id) {
 if (id == 0) {
 throw new IllegalArgumentException();
 }
 this.id = id;
 }
 
 @Override
 public int hashCode() {
 return Long.valueOf(id).hashCode();
 }
 
 @Override
 public boolean equals(final Object obj) {
 if (obj == this) {
 return true;
 } else if (obj == null) {
 return false;
 } else if (obj instanceof DetachableMemberModel) {
 DetachableMemberModel other = (DetachableMemberModel) obj;
 return other.id == id;
 }
 return false;
 }
 
 @Override
 protected Member load() {
 // I do not know how to inject this service to
  Object DetachableMemberModel
 return memberService.query(id);
 }
  }
 
  please see the last method of this class, I do not know how to inject
  memberService to this class.
  If I use @Inject private MemberService memberService, I have to inject
 this
  class to the WebPage, but I can not bind DetachableMemberModel to any
  interface.
 
  So, I do not know to to implement this, can anybody help me? Thanks
 very
  much.
 
  --
  --
  Enjoy. Thanks!
 
  Haulyn Microproduction
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  yahoo: jia_hao...@yahoo.com
  msn: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason





 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason





-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: is there a way to inject service to wicket sortable models?

2009-08-18 Thread Haulyn R. Jason
!!!I am so stupid, I didn't check the source of wicket, just image that
InjectorHolder keep it's own context with Guice Injector, but it is not.
just like Guice, I need to inject(this), but the first, I have to get
Injector. I try to use InjectorHolder.getInjector(), but I got null, then I
try to
use 
WebsiteApplication.get().getMetaData(GuiceInjectorHolder.INJECTOR_KEY).getInjector().injectMembers(this);
ok, I got the application, everything works well now!


Thanks everyone, and especially thanks to Igor. I do not need to use salve
now, but I am interesting at salve, if I have time, I will deep in it.

On Wed, Aug 19, 2009 at 10:27 AM, Haulyn R. Jason saharab...@gmail.comwrote:

 I do this, but it looks that just work for spring but not Guice.


 On Wed, Aug 19, 2009 at 10:24 AM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:

 it is possible if you can get a hold of a ConfigurableInjector
 instance which is usually obtained via InjectorHolder.getInjector().
 once you do you can call injector.inject(this) in the constructor of
 the class and it will be injected.

 -igor

 On Tue, Aug 18, 2009 at 6:35 PM, Haulyn R. Jasonsaharab...@gmail.com
 wrote:
  Thanks Igor,
  If it is possible to inject service to models in wicket,  I will go to
 salve
  mailing list for help. Thank you.
 
 
  On Wed, Aug 19, 2009 at 12:00 AM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:
 
  a) use 1.1 jars - link to their maven repo is on the front page under
 news
  b) salve is a bytecode instrumentor - that means you have to
  instrument your classes. there are various ways to do it: eclipse/idea
  plugin, maven plugin, jvm agent. how to set all this up is on the
  salve wiki.
  c) salve has its own mailing list - if your questions are salve
  related please use that instead of polluting this list.
 
  -igor
 
  On Tue, Aug 18, 2009 at 8:09 AM, Haulyn R. Jasonsaharab...@gmail.com
  wrote:
   Hi, all
   I sent an email about how to inject service object to wicket sortable
   models, and got some suggestions. then I tried these below:
  
   1.make sure that guice works well with wicket. I can inject service
 to
  Pages
   by set method with @Inject.
   2.I know I can not inject to models, so I add the following jars
 (salve)
  to
   the classpath:
  salve-contract-2.0-SNAPSHOT.jar
  salve-depend-2.0-SNAPSHOT.jar
  salve-depend-guice-2.0-SNAPSHOT.jar
  salve-inst-2.0-SNAPSHOT.jar
   3.I use the following code to tell wicket about the guice module
  @Override
  public void addComponentInstantiationListener() {
  addComponentInstantiationListener(new
 GuiceComponentInjector(this,
   new WebsiteModule()));
  }
   4.I use the folling code to get Guice Injector
Injector injector =
   getMetaData(GuiceInjectorHolder.INJECTOR_KEY).getInjector();
(with debug info, I get injector, and I believe it is not null)
   5.init Salve with following code:
   DependencyLibrary.addLocator(new GuiceBeanLocator(injector));
  
  
  
   ok, I use @Dependency instead of @Inject as:
   @Dependency private ServiceProvider provider;
  
   but with debug info, provider always be null and I got
  nullpointException.
  
  
   Can anybody help me to find what steps I forget?
  
   Thanks!
  
   --
   --
   Enjoy. Thanks!
  
   Haulyn Microproduction
  
   Mobile: +086-15864011231
   email: saharab...@gmail.com,
   hmp.hau...@foxmail.com
   website: http://haulynjason.net
   gtalk: saharab...@gmail.com
   yahoo: jia_hao...@yahoo.com
   msn: saharab...@gmail.com
   skype: saharabear
   QQ: 378606292
  
   Haulyn Jason
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  --
  Enjoy. Thanks!
 
  Haulyn Microproduction
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  yahoo: jia_hao...@yahoo.com
  msn: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason





-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


How to use Guice to inject Service to LoadableDetachableModel

2009-08-17 Thread Haulyn R. Jason
Hi, all:
I have a class which is likes below:


public class DetachableMemberModel extends LoadableDetachableModelMember {

private final long id;

public DetachableMemberModel(Member m) {
this(m.getId());
}

public DetachableMemberModel(long id) {
if (id == 0) {
throw new IllegalArgumentException();
}
this.id = id;
}

@Override
public int hashCode() {
return Long.valueOf(id).hashCode();
}

@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
} else if (obj == null) {
return false;
} else if (obj instanceof DetachableMemberModel) {
DetachableMemberModel other = (DetachableMemberModel) obj;
return other.id == id;
}
return false;
}

@Override
protected Member load() {
// I do not know how to inject this service to
Object DetachableMemberModel
return memberService.query(id);
}
}

please see the last method of this class, I do not know how to inject
memberService to this class.
If I use @Inject private MemberService memberService, I have to inject this
class to the WebPage, but I can not bind DetachableMemberModel to any
interface.

So, I do not know to to implement this, can anybody help me? Thanks very
much.

-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: How to use Guice to inject Service to LoadableDetachableModel

2009-08-17 Thread Haulyn R. Jason
Hi,
I got these blow:
java.lang.IllegalStateException: InjectorHolder has not been assigned an
injector. Use InjectorHolder.setInjector() to assign an injector. In most
cases this should be done once inside SpringWebApplication subclass's init()
method.


I didn't use spring. I use wicket with guice. I do not know how to solve
this.

confused by:... done once inside SpringWebApplication subclass's init()
method



On Tue, Aug 18, 2009 at 12:10 AM, Haulyn R. Jason saharab...@gmail.comwrote:

 I try to add this line, but it doesn't work.
 I try to test a simple service binding in guice module, it works well with
 : @Inject ITestService testService;


 Thanks.



 On Tue, Aug 18, 2009 at 12:01 AM, Arie Fishler arie@gmail.com wrote:

 in the ctor just add this line

 InjectorHolder.*getInjector*().inject(*this*);


 On Mon, Aug 17, 2009 at 6:26 PM, Haulyn R. Jason saharab...@gmail.com
 wrote:

  Hi, all:
  I have a class which is likes below:
 
 
  public class DetachableMemberModel extends
 LoadableDetachableModelMember
  {
 
 private final long id;
 
 public DetachableMemberModel(Member m) {
 this(m.getId());
 }
 
 public DetachableMemberModel(long id) {
 if (id == 0) {
 throw new IllegalArgumentException();
 }
 this.id = id;
 }
 
 @Override
 public int hashCode() {
 return Long.valueOf(id).hashCode();
 }
 
 @Override
 public boolean equals(final Object obj) {
 if (obj == this) {
 return true;
 } else if (obj == null) {
 return false;
 } else if (obj instanceof DetachableMemberModel) {
 DetachableMemberModel other = (DetachableMemberModel) obj;
 return other.id == id;
 }
 return false;
 }
 
 @Override
 protected Member load() {
 // I do not know how to inject this service to
  Object DetachableMemberModel
 return memberService.query(id);
 }
  }
 
  please see the last method of this class, I do not know how to inject
  memberService to this class.
  If I use @Inject private MemberService memberService, I have to inject
 this
  class to the WebPage, but I can not bind DetachableMemberModel to any
  interface.
 
  So, I do not know to to implement this, can anybody help me? Thanks very
  much.
 
  --
  --
  Enjoy. Thanks!
 
  Haulyn Microproduction
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  yahoo: jia_hao...@yahoo.com
  msn: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 




 --
 --
 Enjoy. Thanks!

 Haulyn Microproduction

 Mobile: +086-15864011231
 email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 yahoo: jia_hao...@yahoo.com
 msn: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292

 Haulyn Jason





-- 
--
Enjoy. Thanks!

Haulyn Microproduction

Mobile: +086-15864011231
email: saharab...@gmail.com,
 hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


how to use wicket tree in extension

2009-08-14 Thread Haulyn R. Jason
Hi,all:

I design a page with a tree for page navigation. But I can not find more
information from Internet to learn how to use the Tree component.

I can display the tree as

menu1
|-sub_menu1
|-sub_menu2
menu2
|-sub_menu3
|-sub_menu4

and I remove root node, make all tree expand while init the tree, but I do
not know how to add links to the sub_menus, I tried to add some code like
this:
@Override
protected void onNodeLinkClicked(AjaxRequestTarget target,
TreeNode node) {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)
node;
NavigationTreeNode navigationTreeNode = (NavigationTreeNode)
treeNode.getUserObject();
if (navigationTreeNode.isURL) {
setResponsePage(navigationTreeNode.getURL());
super.onNodeLinkClicked(target, node);
} else {
super.onNodeLinkClicked(target, node);
}
}

this looks work well, but when I clink on a link, the page redirect to the
target page, but I can not keep the tree with the selected node expand.

Can anyone help me or give me some reference URLs? Thanks!

-- 
--
Enjoy. Thanks!

Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason


Re: how to use wicket tree in extension

2009-08-14 Thread Haulyn R. Jason
No, just use Tree in extension package.

On Fri, Aug 14, 2009 at 11:17 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 are you using LinkTree?

 -igor

 On Fri, Aug 14, 2009 at 12:15 AM, Haulyn R. Jasonsaharab...@gmail.com
 wrote:
  Hi,all:
 
  I design a page with a tree for page navigation. But I can not find more
  information from Internet to learn how to use the Tree component.
 
  I can display the tree as
 
  menu1
 |-sub_menu1
 |-sub_menu2
  menu2
 |-sub_menu3
 |-sub_menu4
 
  and I remove root node, make all tree expand while init the tree, but I
 do
  not know how to add links to the sub_menus, I tried to add some code like
  this:
 @Override
 protected void onNodeLinkClicked(AjaxRequestTarget target,
  TreeNode node) {
 DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)
  node;
 NavigationTreeNode navigationTreeNode =
 (NavigationTreeNode)
  treeNode.getUserObject();
 if (navigationTreeNode.isURL) {
 setResponsePage(navigationTreeNode.getURL());
 super.onNodeLinkClicked(target, node);
 } else {
 super.onNodeLinkClicked(target, node);
 }
 }
 
  this looks work well, but when I clink on a link, the page redirect to
 the
  target page, but I can not keep the tree with the selected node expand.
 
  Can anyone help me or give me some reference URLs? Thanks!
 
  --
  --
  Enjoy. Thanks!
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com, hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  yahoo: jia_hao...@yahoo.com
  msn: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
--
Enjoy. Thanks!

Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
yahoo: jia_hao...@yahoo.com
msn: saharab...@gmail.com
skype: saharabear
QQ: 378606292

贾昊林 Haulyn Jason