[Wicket-user] (no subject)

2007-07-20 Thread Bertram Poe


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2007-07-17 Thread Rainey


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


Re: [Wicket-user] (no subject)

2007-07-09 Thread Al Maw
Eelco Hillenius wrote:
 I think getContextPath is what I need. I am trying to port my app
 to wicket 1.3 where getContextPath is no longer present in
 ApplicationSettings.
 
 I think it moved to WebApplication.
 
 But be sure to read this
 http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
 and search the mailing list. I'm not an expert on this topic, but
 there have been several discussions on this.

I am an expert on this topic, or as much of one as you'll find, anyway.
;-)

Wicket 1.3 has a ContextImage component which will do what you want. 
Version 1.3 does a good job generally of letting you not worry about 
mounting things behind proxies and all this stuff, by magically 
generating relative URLs for you, which work just fine with mounted pages.

Personally, I'd store the images outside of your webapp root and either 
get Wicket (use a resource) or a servlet to serve them for you. That way 
you can authenticate people properly and things. It's not really any 
extra overhead. Tomcat/whatever uses a servlet internally to serve the 
default images, and that's just an inputstream to outputstream copy. It 
may even be less overhead if you do it manually, as it won't need to 
worry about sniffing the mime type of the file. Nothing magic here.

It's also not clear to me where your images would live if you deploy 
your webapp as a WAR file, or whether your user-submitted images would 
survive a webapp redeploy regardless of that. You should keep data 
outside your webapp root. Java isn't PHP.

Regards,

Al
-- 
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

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


Re: [Wicket-user] (no subject)

2007-07-08 Thread Gerolf Seitz

((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getServletPath()

hth,
 gerolf

On 7/8/07, Alexander Lohse [EMAIL PROTECTED] wrote:


Hi,

I guess this has been asked several times, but I was unable to find a
hint:

From within a component I need to create a absolute url to static
files located in my webapp directory.
How do I retrieve the servlets path?

Thank you for any help.

Best regards,

Alex

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

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


Re: [Wicket-user] (no subject)

2007-07-08 Thread Eelco Hillenius
 ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getServletPath()

Doesn't he need getContextPath?

Or you can do WebApplication#getServletContext().

I don't think you typically need it though. If you let a component
print out subdir/foo.jpg for the source attribute, it will pick that
up relatively to your web app context.

Eelco

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


Re: [Wicket-user] (no subject)

2007-07-08 Thread Alexander Lohse
Hi Eelco,

I think getContextPath is what I need. I am trying to port my app  
to wicket 1.3 where getContextPath is no longer present in  
ApplicationSettings.
If I just add a relative path, I get problems when I have a manually  
edited mountPath like mountBookmarkablePage(/some/other/strange/ 
dir, Page.class), right?

I guess it gets even more confusing when I use Apache to tunnel the  
requests from, let's say

http://myipaddress:8080/project-name/app/somePage

to

http://www.project-domain.xy/somePage

right?

How does anyone else solve user-image-uploads ?
I would not want wicket to handle all the images displayed, because I  
think this adds unnecessary overhead as my application has a whole  
lot of read-only users.

Best regards,

Alex

Am 08.07.2007 um 19:37 schrieb Eelco Hillenius:

 ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest 
 ().getServletPath()

 Doesn't he need getContextPath?

 Or you can do WebApplication#getServletContext().

 I don't think you typically need it though. If you let a component
 print out subdir/foo.jpg for the source attribute, it will pick that
 up relatively to your web app context.

 Eelco

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

__

Alexander Lohse • Entwicklungsleitung  Projektmanagement
Tel +49 38374 752 11 • Fax +49 38374 752 23
http://www.humantouch.de

Human Touch Medienproduktion GmbH
Am See 1 • 17440 Klein Jasedow • Deutschland

Geschäftsführung:
Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684



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


Re: [Wicket-user] (no subject)

2007-07-08 Thread Eelco Hillenius
 I think getContextPath is what I need. I am trying to port my app
 to wicket 1.3 where getContextPath is no longer present in
 ApplicationSettings.

I think it moved to WebApplication.

But be sure to read this
http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
and search the mailing list. I'm not an expert on this topic, but
there have been several discussions on this.

Cheers,

Eelco

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


[Wicket-user] (no subject)

2007-07-07 Thread Alexander Lohse
Hi,

I guess this has been asked several times, but I was unable to find a  
hint:

 From within a component I need to create a absolute url to static  
files located in my webapp directory.
How do I retrieve the servlets path?

Thank you for any help.

Best regards,

Alex

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


[Wicket-user] (No subject)

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


[Wicket-user] (no subject)

2007-05-10 Thread 财务方面合作
尊敬的负责人(经理/财务):您好!

深圳万利豪商贸发展有限公司:在我公司持续稳定的发展中实业雄厚;有着一定的

社会关系。在我公司每月进项多销项少,每月有余额发票。对外联系些业务贵公司

在平时作帐及销售方面是需要用些票据可在我公司代开。如商品销售、地税建筑安

装、其它服务、运输、广告发票等……收费1.5%左右;还可代办海关缴款书。


在我公司成立多年一直坚持以信用,所开绝对真票;更希望贵公司共同合作快乐!


本公司的承诺:以最优惠的价格和最及时的服务满足你的要求;提供到位。如
贵公司有些担心,可在电脑网上查证或确认后再付款。 

以真诚的服务合作一次,必成永久的朋友!
欢迎来电联系! 
联 系 人 :谢先生
电 话 :135102224450755-81934682
 [EMAIL PROTECTED]
本公司是群发的如带来不便请多包涵 



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


[Wicket-user] (no subject)

2007-04-18 Thread 莫高习
 

 

 

 nigel  

[EMAIL PROTECTED]

[EMAIL PROTECTED]

 

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


[Wicket-user] (no subject)

2007-01-09 Thread Wolfgang Gehner
Hi there, we want to integrate Wicket with other rendering
technologies. One example is including wicket pages in a jsp.

I created a use case as an Eclipse project based on Wicket trunk of today.
zip is available at http://issues.apache.org/jira/browse/WICKET-202

Run the application as usual with Start - run as java application,
then go to http://localhost:8081/quickstart/index.jsp

Two problems:

1. Upon first entry on index.jsp, clicking Open Dialog and closing
redirects to App Main page, console shows INFO -
uestTargetResolverStrategy - component not enabled or visible,
redirecting to calling page, component: null

2. Incrementing values on [Wicket Page2] and opening and closing
Dialog on [Wicket Page1] *sometimes* results in PageExpired Error,
usually after some wait.

I wonder what to do to stabilize this. We hope we can make Wicket
coexist with other technologies such as JSP. After all, everything is
just servlets :-)

Regards,


Wolfgang

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


[Wicket-user] (no subject)

2006-09-16 Thread Willie Krause
Hi Martijn

Thanks for your reply, it sorted me out. Removed the wicket-contrib-dojo 
jarfile from WEB-INF/lib and everything works now (I did not explicitly use any 
of the classes contained in the dojo jar, but included it because I want to 
eventually do some dojo related stuff - anycase it works now, will worry about 
dojo later). Just glad I can move on :-)

Willie



 Willie,
 It appears that somehow you have a wicket-1.1 dependency in your
 application. What other libraries do you use in your project?
 wicket-contrib-dojo, wicket-contrib-scriptaculous, etc?
 Martijn

On 9/16/06, Willie Krause [EMAIL PROTECTED] wrote:
  Hi All
 
  I am brand new to wicket, so excuse a possible stupid question. I 
  downloaded wicket-1.2.2 and created a basic page and application, just so I 
  get started evaluating wicket. However, I get an error from Tomcat when the 
  application starts up:
 
  java.lang.NoClassDefFoundError: wicket/AjaxHandler
 
  I have googled and tried the mailing list archive without success. All I 
  could establish was that the AjaxHandler class has been removed from wicket 
  at some point. I have only the latest distribution files of wicket, and 
  somewhere something is still trying to use this missing class. The basic 
  application and page I have created does nothing but add a Label component. 
  It cannot be made any simpler.
 
  I am not using the quickstart project as a starting point. I just created a 
  blank web project in eclipse, copied the wicket libs and dependancies to 
  the right place and started from scratch.
 
  Any help/pointers will be greatly appreciated. I am very keen to get over 
  this hurdle, because it seems like it might be the first component-based 
  web framework I might consider using. After a frustrating start, however, I 
  am close to defaulting back to whatever I used previously, but don't want 
  to give up too quickly, just now I miss out on a possible good thing just 
  because of one frustrating day. I have to at least get my hands dirty on a 
  small app before reaching a verdict.
 
  Thanks in advance for feedback

-
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] (no subject)

2006-01-13 Thread pepone pepone
Hello all

is posible with wicket 1.2 set a default parameter to homePage

thanks
--
play tetris http://pepone.on-rez.com/tetris


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
if you need a default parameter why not set it in the default constructor? and have both default and pageparams constructor forward to an init method?-IgorOn 1/13/06, 
pepone pepone [EMAIL PROTECTED] wrote:
Hello allis posible with wicket 1.2 set a default parameter to homePagethanks--play tetris http://pepone.on-rez.com/tetris---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2006-01-13 Thread pepone pepone
my Home page now is like this

public class Home extends BasePage
{
private MainMenu mainMenu;
private SearchPanel searchPanel;
private HomeView homeView;
public Home()
{
add(mainMenu=new MainMenu(MainMenu));
add(searchPanel=new SearchPanel(SearchPanel));
add(homeView=new HomeView(HomeView));
}
};

HomeView instaciate difrent panels depending of pageParameters. and
depending of what panel instaciate the panel can need to read a
diferent parameter.





On 1/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 if you need a default parameter why not set it in the default constructor?
 and have both default and pageparams constructor forward to an init method?

 -Igor



 On 1/13/06, pepone pepone [EMAIL PROTECTED] wrote:
  Hello all
 
  is posible with wicket 1.2 set a default parameter to homePage
 
  thanks
  --
  play tetris http://pepone.on-rez.com/tetris
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opclick
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




--
play tetris http://pepone.on-rez.com/tetris


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
so something like this should work:public class Home { Home() { PageParameters default=new PageParameters(); default.put(.. init(default); } Home(PageParameters params) {
 init(params); } init(PageParameters params) {   add(mainMenu=new MainMenu(MainMenu));add(searchPanel=new SearchPanel(SearchPanel));
add(homeView=new HomeView(HomeView)); }-IgorOn 1/13/06, pepone pepone 
[EMAIL PROTECTED] wrote:my Home page now is like thispublic class Home extends BasePage
{private MainMenu mainMenu;private SearchPanel searchPanel;private HomeView homeView;public Home(){add(mainMenu=new MainMenu(MainMenu));
add(searchPanel=new SearchPanel(SearchPanel));add(homeView=new HomeView(HomeView));}};HomeView instaciate difrent panels depending of pageParameters. and
depending of what panel instaciate the panel can need to read adiferent parameter.On 1/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 if you need a default parameter why not set it in the default constructor? and have both default and pageparams constructor forward to an init method? -Igor On 1/13/06, pepone pepone 
[EMAIL PROTECTED] wrote:  Hello all   is posible with wicket 1.2 set a default parameter to homePage   thanks
  --  play tetris http://pepone.on-rez.com/tetris---  This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log files  for problems?Stop!Download the new AJAX search engine that makes  searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opclick  ___  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net  https://lists.sourceforge.net/lists/listinfo/wicket-user
 --play tetris http://pepone.on-rez.com/tetris---This SF.net
 email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2006-01-13 Thread pepone pepone
Must i open a bug for this issue?
On 1/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 hmm
 looks like the constructor with PageParameters is still being called instead
 of the default Home() constructor

 Caused by: wicket.WicketRuntimeException: Can't instantiate page using
 constructor public oz.web.html.portal.Home (wicket.PageParameters) and
 argument

 i think this is an incorrect behaviour. if no page params are specified the
 default constructor should be used.

 -Igor




 On 1/13/06, pepone pepone [EMAIL PROTECTED] wrote:
 
  This not works for me with wicket-wicket-1.2-20060108
 
  I changue my code to this
 
  public Home()
  {
  PageParameters params=new PageParameters();
  params.put(page,Home);
  params.put(action,view);
  params.put(node,/homeDocument.html);
  init(params);
  }
 
  public Home(PageParameters params) {
  init(params);
  }
 
  public void init(PageParameters params) {
  add(mainMenu=new MainMenu(MainMenu));
  add(searchPanel=new
 SearchPanel(SearchPanel));
  add(homeView=new HomeView(HomeView));
  }
 
  now when i go to
 
 http://localhost:8080/oz-portal/app?bookmarkablePage=oz.web.html.portal.Homeaction=viewnode=%2FhomeDocument.htmlpage=Home
  page rendres ok
 
  but when go to http://localhost:8080/oz-portal/app i get
 this exception
 
  wicket.WicketRuntimeException: Could not create home page
  at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java
 :334)
  at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:101)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java
 :48)
  at wicket.RequestCycle.step(RequestCycle.java:951)
  at wicket.RequestCycle.steps(RequestCycle.java:1057)
  at wicket.RequestCycle.request(RequestCycle.java:534)
  at wicket.protocol.http.WicketServlet.doGet
 (WicketServlet.java:199)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at org.mortbay.jetty.servlet.ServletHolder.handle
 (ServletHolder.java:428)
  at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
  at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
  at org.mortbay.http.HttpContext.handle
 (HttpContext.java:1530)
  at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
  at
 org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
  at org.mortbay.http.HttpServer.service
 (HttpServer.java:909)
  at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
  at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
  at org.mortbay.http.HttpConnection.handle
 (HttpConnection.java:833)
  at
 org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
  at
 org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
  at org.mortbay.util.ThreadPool$PoolThread.run
 (ThreadPool.java:534)
  Caused by: wicket.WicketRuntimeException: Can't instantiate page using
  constructor public oz.web.html.portal.Home(wicket.PageParameters) and
  argument
  at wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java:156)
  at
 wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:84)
  at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java
 :318)
  ... 21 more
  Caused by: java.lang.reflect.InvocationTargetException
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at
 java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  at
 wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:142)
  ... 23 more
  Caused by: java.lang.NullPointerException
  at oz.web.html.portal.HomeView.getView(Unknown
 Source)
  at oz.web.html.portal.WidgetStack .init(Unknown Source)
  at oz.web.html.portal.HomeView.init(Unknown Source)
  at oz.web.html.portal.Home.init(Unknown Source)
  at oz.web.html.portal.Home.init(Unknown Source)
  ... 28 more
  On 1/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   so something like this should work:
  
   public class Home {
  Home() {
PageParameters default=new PageParameters();
default.put(..
init(default);
  }
  Home(PageParameters params) {
  

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
im fixing it right nowwill prob have it fixed before you open the bug :)-IgorOn 1/13/06, pepone pepone 
[EMAIL PROTECTED] wrote:Must i open a bug for this issue?On 1/14/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: hmm looks like the constructor with PageParameters is still being called instead of the default Home() constructor
 Caused by: wicket.WicketRuntimeException: Can't instantiate page using constructor public oz.web.html.portal.Home (wicket.PageParameters) and argument i think this is an incorrect behaviour. if no page params are specified the
 default constructor should be used. -Igor On 1/13/06, pepone pepone [EMAIL PROTECTED] wrote: 
  This not works for me with wicket-wicket-1.2-20060108   I changue my code to this   public Home()  {  PageParameters params=new PageParameters();
  params.put(page,Home);  params.put(action,view);  params.put(node,/homeDocument.html);
  init(params);  }   public Home(PageParameters params) {  init(params);  }   public void init(PageParameters params) {
  add(mainMenu=new MainMenu(MainMenu));  add(searchPanel=new SearchPanel(SearchPanel));  add(homeView=new HomeView(HomeView));
  }   now when i go to  
http://localhost:8080/oz-portal/app?bookmarkablePage=oz.web.html.portal.Homeaction="">  page rendres ok   but when go to 
http://localhost:8080/oz-portal/app i get this exception   wicket.WicketRuntimeException: Could not create home page  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget
(DefaultRequestTargetResolverStrategy.java :334)  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:101)  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java :48)  at wicket.RequestCycle.step(RequestCycle.java:951)  at wicket.RequestCycle.steps
(RequestCycle.java:1057)  at wicket.RequestCycle.request(RequestCycle.java:534)  at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:199)  at javax.servlet.http.HttpServlet.service
(HttpServlet.java:596)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)  at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:428)  at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)  at org.mortbay.http.HttpContext.handle
 (HttpContext.java:1530)  at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)  at org.mortbay.http.HttpContext.handle(HttpContext.java
:1482)  at org.mortbay.http.HttpServer.service (HttpServer.java:909)  at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)  at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:982)  at org.mortbay.http.HttpConnection.handle (HttpConnection.java:833)  at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
  at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)  at org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:534)  Caused by: wicket.WicketRuntimeException
: Can't instantiate page using  constructor public oz.web.html.portal.Home(wicket.PageParameters) and  argument  at wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java
:156)  at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:84)  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java
 :318)  ... 21 more  Caused by: java.lang.reflect.InvocationTargetException  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39)  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java
:27)  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:142)  ... 23 more
  Caused by: java.lang.NullPointerException  at oz.web.html.portal.HomeView.getView(Unknown Source)  at oz.web.html.portal.WidgetStack .init(Unknown Source)  at 
oz.web.html.portal.HomeView.init(Unknown Source)  at oz.web.html.portal.Home.init(Unknown Source)  at oz.web.html.portal.Home.init(Unknown Source)  ... 28 more
  On 1/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   so something like this should work: public class Home {
  Home() {  PageParameters default=new PageParameters();  default.put(..  init(default);  }  Home(PageParameters params) {
   init(params);  }init(PageParameters params) {  add(mainMenu=new MainMenu(MainMenu));   add(searchPanel=new
   SearchPanel(SearchPanel));  add(homeView=new HomeView(HomeView));   }   -Igor
   On 1/13/06, pepone pepone  [EMAIL PROTECTED] wrote:   
my Home page now is like this   public class Home extends BasePage{private MainMenu mainMenu;
private 

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
argh, maybe not. i fixed it, but that it broke a lof of tests. looks like this bug has been around for a while and weve come to depend on wicket working like it is. i am going to start a thread on it in devel list.
meantime change your page to do this:public Home() {  init(constructDefaultParams()); }   public Home(PageParameters params) {
 if (params.size()==0) { init(constructDefaultParams()); } else { init(params); }  }-IgorOn 1/13/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:
im fixing it right nowwill prob have it fixed before you open the bug :)-IgorOn 1/13/06, pepone pepone
 
[EMAIL PROTECTED] wrote:Must i open a bug for this issue?On 1/14/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: hmm looks like the constructor with PageParameters is still being called instead
 of the default Home() constructor
 Caused by: wicket.WicketRuntimeException: Can't instantiate page using constructor public oz.web.html.portal.Home (wicket.PageParameters) and argument i think this is an incorrect behaviour. if no page params are specified the
 default constructor should be used. -Igor On 1/13/06, pepone pepone 
[EMAIL PROTECTED] wrote: 
  This not works for me with wicket-wicket-1.2-20060108   I changue my code to this   public Home()  {  PageParameters params=new PageParameters();
  params.put(page,Home);  params.put(action,view);  params.put(node,/homeDocument.html);
  init(params);  }   public Home(PageParameters params) {  init(params);  } 
  public void init(PageParameters params) {
  add(mainMenu=new MainMenu(MainMenu));  add(searchPanel=new SearchPanel(SearchPanel));  add(homeView=new HomeView(HomeView));
  }   now when i go to  

http://localhost:8080/oz-portal/app?bookmarkablePage=oz.web.html.portal.Homeaction="">  page rendres ok   but when go to 

http://localhost:8080/oz-portal/app i get this exception   wicket.WicketRuntimeException: Could not create home page  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget

(DefaultRequestTargetResolverStrategy.java :334)  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:101)  at

 wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java :48)  at wicket.RequestCycle.step(RequestCycle.java:951)  at wicket.RequestCycle.steps

(RequestCycle.java:1057)  at wicket.RequestCycle.request(RequestCycle.java:534)  at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:199)  at javax.servlet.http.HttpServlet.service

(HttpServlet.java:596)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)  at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:428)  at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)  at org.mortbay.http.HttpContext.handle

 (HttpContext.java:1530)  at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)  at org.mortbay.http.HttpContext.handle(HttpContext.java

:1482)  at org.mortbay.http.HttpServer.service (HttpServer.java:909)  at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)  at org.mortbay.http.HttpConnection.handleNext

(HttpConnection.java:982)  at org.mortbay.http.HttpConnection.handle (HttpConnection.java:833)  at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

  at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)  at org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:534)  Caused by: wicket.WicketRuntimeException

: Can't instantiate page using  constructor public oz.web.html.portal.Home(wicket.PageParameters) and  argument  at wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java

:156)  at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:84)  at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java

 :318)  ... 21 more  Caused by: java.lang.reflect.InvocationTargetException  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39)  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java

:27)  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:142)  ... 23 more
  Caused by: java.lang.NullPointerException  at oz.web.html.portal.HomeView.getView(Unknown Source)  at oz.web.html.portal.WidgetStack .init(Unknown Source)
  at 
oz.web.html.portal.HomeView.init(Unknown Source)  at oz.web.html.portal.Home.init(Unknown Source)  at oz.web.html.portal.Home.init(Unknown Source)  ... 28 more
  On 1/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   so something like this should work:
 public class Home {
  Home() {  

Re: [Wicket-user] (no subject)

2006-01-13 Thread Timo Stamm

pepone pepone schrieb:

This not works for me with wicket-wicket-1.2-20060108


As a workaround, you can simply subclass this page and call the super 
constructor with default parameters in the constructor:



public class HomePage extends MyBasePageWhichRequiresParameters {
static PageParameters params = new PageParameters();
{
params.put(page,Home);
params.put(action,view);
params.put(node,/homeDocument.html);
}

public HomePage() {
super(params);
}
}



Timo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] (no subject)

2005-08-31 Thread hicham abassi
-- 

hicham ABASSI
[EMAIL PROTECTED]


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] (no subject)

2005-07-27 Thread [EMAIL PROTECTED]
Hi,

I'm trying to modify NestedList.html found in the wicket examples to make
li a HREF. In otherwords I want the list item to link to an external
site.
I modified the NestedList.html to:

ul
span wicket:id=rows
a wicket:id=myLink
  li wicket:id=row
span wicket:id=labelThe lable here!/span
  /li
/a
  span wicket:id=nested/
/span
  /ul

and defined the myLink component in the NestedLink.java class as:

row.add(new ExternalLink(myLink, http://www.google.com;,
modelObject.toString())); 

But I get the error: wicket.markup.MarkupException: Unable to find
component with id 'myLink' in [MarkupContainer  

What am I doing wrong? Or is there a better way to do this? Any code to
demonstrate?

Thanks

F





mail2web - Check your email from the web at
http://mail2web.com/ .




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2005-07-27 Thread Johan Compagner

what is row? where you add that externling link to?
I see you have a row wicket component (the id) but myLink is not the 
child of that but the parent?

So looking at youre code you should do:

myLink = new External()
myLink.add(new Xxx(rows))

[EMAIL PROTECTED] wrote:

Hi,

I'm trying to modify NestedList.html found in the wicket examples to make
li a HREF. In otherwords I want the list item to link to an external
site.
I modified the NestedList.html to:

ul
span wicket:id=rows
a wicket:id=myLink
  li wicket:id=row
span wicket:id=labelThe lable here!/span
  /li
/a
  span wicket:id=nested/
/span
  /ul

and defined the myLink component in the NestedLink.java class as:

row.add(new ExternalLink(myLink, http://www.google.com;,
modelObject.toString())); 


But I get the error: wicket.markup.MarkupException: Unable to find
component with id 'myLink' in [MarkupContainer  

What am I doing wrong? Or is there a better way to do this? Any code to
demonstrate?

Thanks

F





mail2web - Check your email from the web at
http://mail2web.com/ .




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] (no subject)

2005-07-23 Thread Igor Vaynberg
I don't really see how you are losing flexibility. In this particular case
all we are doing is replacing the use of List interface with lets say
ListViewDatasource. This is necessary because the List interface doesn't
really work well with the listview. What exactly can you do more by
utilizing a list interface? You can still use a propertymodels, etc.

Internally everything will work the same, but instead of ListView(String
name, List items) we will have ListView(String name, ListViewDatasource ds)
this constructor is more then welcome to wrap ds in an imodel just like it
does to the list now. Also by making ListViewDatasource extend imodel it can
become detachable. In fact we can even keep ListView(String name, List list)
and wrap the list with a ListViewDatasource wrapper and have complete
backwards compat.

Igor

 Igor Vaynberg wrote:

I think our previous discussion was a bit misunderstood. I was not trying
to
replace the imodel interface for the exact reason you mentioned below,
what
I was trying to replace is the model object interface which is currently a
list. So instead of casting the model object to a list and retrieving
data,
the listview would cast it to this more defined/specific interface and use
that to retrieve data, convert objects to ids/models, etc. This same
approach can be used for choice lists/etc.

But wouldn't that have the same net result, namely that we need more
specific model interfaces? If we can achieve better/ 
more typesafe models that would be really great. I just can't see how to do
that without loosing a lot of flexibility...

Eelco




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] (no subject)

2005-07-23 Thread Johan Compagner

why doesn't a List work in a ListView exactly?
I do get that a  List in a PageableListView could be a bit improved so 
that you have method like
getList(start,count). But in a ListView a List could work fine. If 
wrapped in a Model for attach/detach


If we encapsulate that ListViewDataSource in a model then that doesn't 
have to be detachable

because that is something the model does.

johan


Igor Vaynberg wrote:

I don't really see how you are losing flexibility. In this particular case
all we are doing is replacing the use of List interface with lets say
ListViewDatasource. This is necessary because the List interface doesn't
really work well with the listview. What exactly can you do more by
utilizing a list interface? You can still use a propertymodels, etc.

Internally everything will work the same, but instead of ListView(String
name, List items) we will have ListView(String name, ListViewDatasource ds)
this constructor is more then welcome to wrap ds in an imodel just like it
does to the list now. Also by making ListViewDatasource extend imodel it can
become detachable. In fact we can even keep ListView(String name, List list)
and wrap the list with a ListViewDatasource wrapper and have complete
backwards compat.

Igor

  

Igor Vaynberg wrote:



  

I think our previous discussion was a bit misunderstood. I was not trying
  

to
  

replace the imodel interface for the exact reason you mentioned below,
  

what
  

I was trying to replace is the model object interface which is currently a
list. So instead of casting the model object to a list and retrieving
  

data,
  

the listview would cast it to this more defined/specific interface and use
that to retrieve data, convert objects to ids/models, etc. This same
approach can be used for choice lists/etc.
  


  

But wouldn't that have the same net result, namely that we need more

specific model interfaces? If we can achieve better/ 
  

more typesafe models that would be really great. I just can't see how to do


that without loosing a lot of flexibility...

  

Eelco






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user