Re: [Wicket-user] Possible session issue in my app?

2006-07-15 Thread Eelco Hillenius
Where do you store which user is currently selected? In the
wicket-examples project, there are several examples of how you could
do this, e.g. the library example. And maybe wicket-auth-roles might
give you some ideas too.

Do you maybe use a static reference to your user? A singleton that
stores user data? Typically you wouldn't have to worry about thread
safety with Wicket.


Eelco


On 7/15/06, Steve Moitozo [EMAIL PROTECTED] wrote:
 Thanks Igor. I was storing some data in the Application object but have
 now moved everything to the Session object. However, I am still
 experiencing the same behavior.

  From what I understand it's OK to store data in pages because they are
 placed in the user's session. Is this correct?

 Here is some more detail:

 ENVIRONMENT:
 SuSE Linux 10
 Java/compiler/1.5.0_07
 Wicket/1.2RC3
 Wicket Extensions/1.2RC3
 Jetty/5.1.11RC0


 MY Application CLASS:

 public class PwdMgrWebApplication extends WebApplication
 {
/**
 * The logger
 */
private Log logger = LogFactory.getLog(PwdMgrWebApplication.class);


// docs from super
public void init() {

   // put an authorization strategy in place
   SimplePageAuthorizationStrategy authzStrategy = new
 SimplePageAuthorizationStrategy(PwdMgrAuthenticatedWebPage.class,
 PageLogin.class)
  {
 protected boolean isAuthorized()
 {
// Authorize access based on user authentication in the session
return (((PwdMgrWebSession)Session.get()).isAuthenticated());
 }
  };

  getSecuritySettings().setAuthorizationStrategy(authzStrategy);

}


/**
 * @see wicket.protocol.http.WebApplication#getSessionFactory()
 */
public ISessionFactory getSessionFactory(){
return new ISessionFactory()
{
public Session newSession()
{
return new 
 PwdMgrWebSession(PwdMgrWebApplication.this);
}
};
}


// docs from super
public Class getHomePage(){
   return PageHome.class;
}

 }



 -S2
 --
 Steve Moitozo II


 Igor Vaynberg wrote:
  are you storing data in the Application object?
 
  you should be storing it in the Session object
 
  -Igor
 
 
  On 7/14/06, *Steve Moitozo*  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  I have whipped up a shiny new Wicket application and I just noticed
  something that is a bit of a show stopper for me.
 
  If I login as BOB and a friend logs in as LARRY and I click on a link my
  application thinks I'm LARRY! Have I stored user data in the wrong
  place? Any ideas?
 
  -S2
  --
  Steve Moitozo II
 
 
  
  -
  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


 -
 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 

[Wicket-user] Wicket adoption

2006-07-15 Thread Julian Klappenbach
We're trying to identify major sites that have used Wicket.  Is there a
site that details adoption so far?  Or could users on this list reply
with sites they know of?  If the latter, please respond in private -- I
wouldn't want to add the noise to this list.

mailto:[EMAIL PROTECTED]

-jjk 


-
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] Wicket adoption

2006-07-15 Thread Eelco Hillenius
Hi,

I can only give you a couple of sites that I know for sure wouldn't
mind to be referenced.
Teachscape (in progress): www.teachscape.com (65,000+ users, multiple
man years development)
Servoy: www.servoy.com
Finan: www.finan.nl (financial analyses product, market leader in Holland)
Several multi-man year projects at Topicus.
It is used by a Canadian and Kenyan university and possibly in the new
season by a Dutch and English university as the framework of choice
for teaching web app development.

For the rest... I know that Wicket is used in some large projects,
including a US governement body, but I'm not on the top of the
details. We've had 12,000+ downloads in May, 6,000+ in April and June,
and have been in the top 50 of most active projects of sourceforge for
the last few months. That all said, the current team doesn't (want to)
care too much about references and statistics as we would like Wicket
to be an old skool open source project where we work on technical
merrits rather than popularity/ commercial gain. I hope you'll find
Wicket useful for your purposes in that respect.

Eelco


On 7/15/06, Julian Klappenbach [EMAIL PROTECTED] wrote:
 We're trying to identify major sites that have used Wicket.  Is there a
 site that details adoption so far?  Or could users on this list reply
 with sites they know of?  If the latter, please respond in private -- I
 wouldn't want to add the noise to this list.

 mailto:[EMAIL PROTECTED]

 -jjk


 -
 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] Possible session issue in my app?

2006-07-15 Thread Steve Moitozo
I get the same behavior using two different computers or two different 
browsers on the same computer.

I've used both Firefox and Safari.

-S2
-- 
Steve Moitozo II


Julian Klappenbach wrote:
 Curious:
 
 Are you attempting to log into the application using the same computer
 for both users?  What browser are you using?
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Steve
 Moitozo
 Sent: Friday, July 14, 2006 1:49 PM
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] Possible session issue in my app?
 
 I have whipped up a shiny new Wicket application and I just noticed
 something that is a bit of a show stopper for me.
 
 If I login as BOB and a friend logs in as LARRY and I click on a link my
 application thinks I'm LARRY! Have I stored user data in the wrong
 place? Any ideas?
 
 -S2
 --
 Steve Moitozo II
 
 
 
 -
 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] More CSS support in wicket?

2006-07-15 Thread Ayodeji Aladejebi
i think wicket needs to kind of improve CSS templating support. I think more than just a resource...more of CSS and WebPage\Panel integration support needs to be in wicket especially when yu needs to create widgets where you want to generate certain Styles on the fly...anyway it's not like an urgently needed feature but just a kind of suggestion that may reduce the stress in bindingtwo tightly close couples like HTML and CSS
thanks-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 
[EMAIL PROTECTED]Web: www.dabarobjects.comCommunity:www.cowblock.net

-
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] Fwd: help,

2006-07-15 Thread ketan gote
hellofriendssorry for mailing u directly.but i am having problem.i have taken wicket autocomplete text field ,for which i have to set unicode .ie the related data which is coming have to be shown in My Langauage(ie asian marathi/hindi)
pls send me mail direcly if possible.wating for reply-- RegardsKetan D.Gote

-- RegardsKetan D.Gote

-
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] Wicket Hibernate Application Transactions

2006-07-15 Thread Iman Rahmatizadeh
Hi,
AFAIK, there are three ways of implementing application transactions, 
lazy loading, etc. stuff  with Wicket  Hibernate :
1 - The hard way, where you pass object ids, and load  save them in 
each request cycle using a new session
2 - The detached object way, where you attach the old objects in each 
request cycle to a new session
3 - Using long sessions, where you keep a session during multiple 
requests and finally close when the unit of work is finished

What I've seen in the examples  wicket-phonebook is mostly number 1. 
However, as soon as you start working like 2 or 3, problems start. 
Things seem to get too complicated in these two scenarios(Actually I'm 
starting to think , despite its disadvantages, number 1 is better for a 
component web framework).
I would like to know if anybody has been working on these or has come up 
with a convenient solution to the problems arising here.

Iman


-
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] Why resources are not cached ?

2006-07-15 Thread Ingram Chen
It is hard to describe my question clearly... I notice that if I use resource such as _javascript_Reference or PackageResourceReference, the browser won't cache these resources and always send request to server. My page has losts of 
.gif, .js, .css in package and it causes a lot of overhead. I guess there is somewhere in wicket to set header like no-cache, no-store for these resource... Is this behavior  intensional ? How do I turn off this ?
(It's better that I can turn off this globally)  -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen

-
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] More CSS support in wicket?

2006-07-15 Thread Eelco Hillenius
Could you please be more specific to what kind kind of additional
support you would like to see? Could you give a few end-user (from the
perspective of framework users of course) examples of what you'd like?

Eelco


On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 i think wicket needs to kind of improve CSS templating support. I think more
 than just a resource...more of CSS and WebPage\Panel integration support
 needs to be in wicket especially when yu needs to create widgets where you
 want to generate certain Styles on the fly...anyway it's not like an
 urgently needed feature but just a kind of suggestion that may reduce the
 stress in bindingtwo tightly close couples like HTML and CSS

 thanks








 --
 It takes insanity to drive in sanity - Me

 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com

 Community:
 www.cowblock.net

 -
 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] Possible session issue in my app?

2006-07-15 Thread Eelco Hillenius
Yeah, like I said, you probably actually work on the same data with
different sessions. Likely, you use a static reference or a singleton
somewhere for the currently logged on user.

Eelco


On 7/15/06, Steve Moitozo [EMAIL PROTECTED] wrote:
 I get the same behavior using two different computers or two different
 browsers on the same computer.

 I've used both Firefox and Safari.

 -S2
 --
 Steve Moitozo II


 Julian Klappenbach wrote:
  Curious:
 
  Are you attempting to log into the application using the same computer
  for both users?  What browser are you using?
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Steve
  Moitozo
  Sent: Friday, July 14, 2006 1:49 PM
  To: wicket-user@lists.sourceforge.net
  Subject: [Wicket-user] Possible session issue in my app?
 
  I have whipped up a shiny new Wicket application and I just noticed
  something that is a bit of a show stopper for me.
 
  If I login as BOB and a friend logs in as LARRY and I click on a link my
  application thinks I'm LARRY! Have I stored user data in the wrong
  place? Any ideas?
 
  -S2
  --
  Steve Moitozo II
 
 
 
  -
  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] Why resources are not cached ?

2006-07-15 Thread Ingram Chen
I got the cause. I configure ssl in web.xml as: security-constraint  web-resource-collection   web-resource-nameWicketPage/web-resource-name   url-pattern/app/*/url-pattern
  /web-resource-collection  user-data-constraint   transport-guaranteeCONFIDENTIAL/transport-guarantee  /user-data-constraint /security-constraint
this will cause, /app* which including /app/resources/* are all forced to go https.(the browser does not cache url via https protocol...) My requirement is all pages required high security, but .gif, .js, and .css don't. 
Is there any suggestion to configure SSL for all of wicket page but not including other resources ?  On 7/15/06, Ingram Chen 
[EMAIL PROTECTED] wrote:It is hard to describe my question clearly... 
I notice that if I use resource such as _javascript_Reference or PackageResourceReference, the browser won't cache these resources and always send request to server. My page has losts of 
.gif, .js, .css in package and it causes a lot of overhead. I guess there is somewhere in wicket to set header like no-cache, no-store for these resource... Is this behavior  intensional ? How do I turn off this ?
(It's better that I can turn off this globally)  -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 

http://www.javaworld.com.tw/roller/page/ingramchen

-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen

-
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] Wicket Hibernate Application Transactions

2006-07-15 Thread Eelco Hillenius
I never actually used 2, so I wouldn't know of problems, but 1 is more
space efficient, while 2 is not that much resource (processor,
database) efficient, so 1 would have my preference anyway.

I think 3 makes sense if you have a good business reason for that. But
I haven't seen a lot of actual situations where that would really be
the case (though I can think of some).

1 Is a good choice for most cases I think.

Eelco


On 7/15/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 Hi,
 AFAIK, there are three ways of implementing application transactions,
 lazy loading, etc. stuff  with Wicket  Hibernate :
 1 - The hard way, where you pass object ids, and load  save them in
 each request cycle using a new session
 2 - The detached object way, where you attach the old objects in each
 request cycle to a new session
 3 - Using long sessions, where you keep a session during multiple
 requests and finally close when the unit of work is finished

 What I've seen in the examples  wicket-phonebook is mostly number 1.
 However, as soon as you start working like 2 or 3, problems start.
 Things seem to get too complicated in these two scenarios(Actually I'm
 starting to think , despite its disadvantages, number 1 is better for a
 component web framework).
 I would like to know if anybody has been working on these or has come up
 with a convenient solution to the problems arising here.

 Iman


 -
 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] Fwd: help,

2006-07-15 Thread Eelco Hillenius
You wouldn't do that component by component, but rather for your whole
page. One way of setting the encoding of a page is to make this the
first line of your page markup:

?xml version=1.0 encoding=UTF-8 ?

Some discussion is here
http://www.wicket-wiki.org.uk/wiki/index.php/Markup_encoding too, and
you could take a closer look at some examples (like FormInput).

Eelco


On 7/15/06, ketan gote [EMAIL PROTECTED] wrote:
 hello

 friends

 sorry for mailing u directly.
 but i am having problem.
 i have taken wicket autocomplete text field ,
 for which i have to set unicode .
 ie the related data which is coming have to be shown in My Langauage(ie
 asian marathi/hindi)
 pls send me mail direcly if possible.
 wating for reply

 --
 Regards

 Ketan D.Gote


 --
 Regards

 Ketan D.Gote

 -
 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] Wicket Hibernate Application Transactions

2006-07-15 Thread Nathan Hamblen
#1 may sound hard, and you might think you're missing out on some good 
Wicket abstraction, but it can work seamlessly. Once the objects are 
loaded, you shouldn't have to think about their database IDs again. An 
IModel implementation can do the grunt work internally:

http://databinder.net/wsvn/Databinder/databinder/trunk/src/main/java/net/databinder/models/HibernateObjectModel.java?op=file

You can even do a save in a base form class's onSubmit. Believe me, if 
#1 were the hard way I wouldn't be doing it!

Nathan


Iman Rahmatizadeh wrote:
 Hi,
 AFAIK, there are three ways of implementing application transactions, 
 lazy loading, etc. stuff  with Wicket  Hibernate :
 1 - The hard way, where you pass object ids, and load  save them in 
 each request cycle using a new session
 2 - The detached object way, where you attach the old objects in each 
 request cycle to a new session
 3 - Using long sessions, where you keep a session during multiple 
 requests and finally close when the unit of work is finished
 
 What I've seen in the examples  wicket-phonebook is mostly number 1. 
 However, as soon as you start working like 2 or 3, problems start. 
 Things seem to get too complicated in these two scenarios(Actually I'm 
 starting to think , despite its disadvantages, number 1 is better for a 
 component web framework).
 I would like to know if anybody has been working on these or has come up 
 with a convenient solution to the problems arising here.
 
 Iman



-
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] Generating a fully qualified url for a page

2006-07-15 Thread Philip A. Chapman




I have a need to create a url to be put into an email. The code is in a service class without direct access to a Page or Component. At first glance, I thought that WebRequestCycle.urlFor would do the trick. I soon found out that it only gives me the relative path. After some work, I came up with the following code:

	import javax.servlet.http.HttpServletRequest;
	import wicket.Page;
	import wicket.PageParameters;
	import wicket.RequestCycle;
	import wicket.protocol.http.WebRequest;
	import wicket.protocol.http.WebRequestCycle;


	/**
	 * Builds a fully qualified path to the indicated page with the given
	 * parameters.
	 * @param pageClass The class of the Wicket page to link to.
	 * @param pageParameters The parameters to send to the page. Send an empty
	 * PageParameters instance if there are no parameters to send.
	 * @return The url in the form of a String.
	 */
	public String buildFullyQualifiedPath(
			Class? extends PagepageClass, PageParameters pageParameters
		)
	{
		StringBuilder sb = new StringBuilder();
		WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
		HttpServletRequest req = ((WebRequest)cycle.getRequest()).getHttpServletRequest();
		sb.append(http://).append(req.getServerName());
		if (req.getServerPort() != 80) {
			sb.append(':').append(req.getServerPort());
		}
		sb.append(cycle.urlFor(null, pageClass, pageParameters));
		return sb.toString();
	}

This works well enough, but seems a bit hackish. I was wondering if anyone else had come up with a better solution.

Thanks,





-- 
Philip A. Chapman

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








signature.asc
Description: This is a digitally signed message part

-
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] Google IG - How to

2006-07-15 Thread Bruno Borges
The Personalized Home's Google webpage has a support for dynamic panels, in which the user can add, remove and positionate the panels around the page.www.google.com/ig
How could that be implemented using Wicket? :)[]'s-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622

-
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] Google IG - How to

2006-07-15 Thread Eelco Hillenius
If you rip the trick they are using, it is trivial to implement such a
thing e.g. as a panel or border. No need for extra server side state
either, except for if you want to persist the layout for any next
session to pick up.

Eelco


On 7/15/06, Bruno Borges [EMAIL PROTECTED] wrote:
 The Personalized Home's Google webpage has a support for dynamic panels, in
 which the user can add, remove and positionate the panels around the page.

 www.google.com/ig

  How could that be implemented using Wicket? :)

 []'s
 --
 Bruno Borges
 Summa Technologies Inc.
 www.summa-tech.com
 (11) 8565-7739 - (11) 3846-1622

 -
 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] Fwd: help,

2006-07-15 Thread Johan Compagner
Maybe if Ketan is already doing that and that still doesn't workDoes the autocomplete text field not do a get request?And get request are not automaticly seen as UTF-8. (the parameters) by tomcat.That is a property that must be set in the connector declaration in the config xml file
I don't know it right now from the top of my head need to search that.johanOn 7/15/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:You wouldn't do that component by component, but rather for your whole
page. One way of setting the encoding of a page is to make this thefirst line of your page markup:?xml version=1.0 encoding=UTF-8 ?Some discussion is here
http://www.wicket-wiki.org.uk/wiki/index.php/Markup_encoding too, andyou could take a closer look at some examples (like FormInput).EelcoOn 7/15/06, ketan gote 
[EMAIL PROTECTED] wrote: hello friends sorry for mailing u directly. but i am having problem. i have taken wicket autocomplete text field , for which i have to set unicode .
 ie the related data which is coming have to be shown in My Langauage(ie asian marathi/hindi) pls send me mail direcly if possible. wating for reply -- Regards
 Ketan D.Gote -- Regards Ketan D.Gote - 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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] Generating a fully qualified url for a page

2006-07-15 Thread Johan Compagner
what i would do is make the real server/port configurable in your application objectSo that you can just do String fullUrl = YourApplication.get().getServerUrl() + urlFor(xxx);That is much better because you have no idea that 
req.getServerName(); will work for youTomcat could be virtual hosted or what ever..johanOn 7/15/06, Philip A. Chapman 
[EMAIL PROTECTED] wrote:


  
  


I have a need to create a url to be put into an email. The code is in a service class without direct access to a Page or Component. At first glance, I thought that WebRequestCycle.urlFor would do the trick. I soon found out that it only gives me the relative path. After some work, I came up with the following code:


	import javax.servlet.http.HttpServletRequest;
	import wicket.Page;
	import wicket.PageParameters;
	import wicket.RequestCycle;
	import wicket.protocol.http.WebRequest;
	import wicket.protocol.http.WebRequestCycle;


	/**
	 * Builds a fully qualified path to the indicated page with the given
	 * parameters.
	 * @param pageClass The class of the Wicket page to link to.
	 * @param pageParameters The parameters to send to the page. Send an empty
	 * PageParameters instance if there are no parameters to send.
	 * @return The url in the form of a String.
	 */
	public String buildFullyQualifiedPath(
			Class? extends PagepageClass, PageParameters pageParameters
		)
	{
		StringBuilder sb = new StringBuilder();
		WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
		HttpServletRequest req = ((WebRequest)cycle.getRequest()).getHttpServletRequest();
		sb.append(http://).append(req.getServerName());
		if (req.getServerPort() != 80) {
			sb.append(':').append(req.getServerPort());
		}
		sb.append(cycle.urlFor(null, pageClass, pageParameters));
		return sb.toString();
	}

This works well enough, but seems a bit hackish. I was wondering if anyone else had come up with a better solution.

Thanks,




-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP






-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.2.2 (GNU/Linux)iD8DBQBEuVY+AdpynRSGw3URAjzcAJ0XZwQUtbm2cKpXdOqMNBIZmTI25wCfZrOFboGcZGmASaI337gzbhqjeZ0==ki1E-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.nethttps://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] Possible session issue in my app?

2006-07-15 Thread Steve Moitozo
Thanks! With your help I have solved my issue.

With your clues and some digging I discovered that I was using a 
singleton service. The service stored the user's identity in the class 
rather than keeping it in method scope. I moved everything to method 
scope and this solved my issues.

Thanks again.

-S2
-- 
Steve Moitozo II


Eelco Hillenius wrote:
 Yeah, like I said, you probably actually work on the same data with
 different sessions. Likely, you use a static reference or a singleton
 somewhere for the currently logged on user.
 
 Eelco
 
 
 On 7/15/06, Steve Moitozo [EMAIL PROTECTED] wrote:
 I get the same behavior using two different computers or two different
 browsers on the same computer.

 I've used both Firefox and Safari.

 -S2
 --
 Steve Moitozo II


 Julian Klappenbach wrote:
 Curious:

 Are you attempting to log into the application using the same computer
 for both users?  What browser are you using?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Steve
 Moitozo
 Sent: Friday, July 14, 2006 1:49 PM
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] Possible session issue in my app?

 I have whipped up a shiny new Wicket application and I just noticed
 something that is a bit of a show stopper for me.

 If I login as BOB and a friend logs in as LARRY and I click on a link my
 application thinks I'm LARRY! Have I stored user data in the wrong
 place? Any ideas?

 -S2
 --
 Steve Moitozo II



 -
 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