[Wicket-user] Showing an alert

2007-08-02 Thread Federico Fanton
Hi everyone!
I'm sorry, I'm looking for a way to show an alert dialog when a condition is 
met.. For example, the user fills in a search form, submits it and if there's 
no data matching the query, a no data found! should pop up.. I'd like to use 
something like the alert JavaScript function, but I'm a bit confused about 
where to put it.. ^^;
Should I load the relevant information (wether there's data or not from the 
query) in a certain component and then look it up from an onLoad function 
that would show the alert accordingly? Is there a Wicket way to do this?
Many thanks for your time!


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Thu, 26 Jul 2007 11:11:38 +0200
Federico Fanton [EMAIL PROTECTED] wrote:

 meta refresh output 
 scriptwindow.top.location='http://redirected-url.com'/script/
 
 ?
 Is a nested script tag allowed inside a meta tag? Also, I tried looking 
 up refresh inside the HTML4 specs on www.w3.org but couldn't find it.. :(

Found it X-) I think you meant something like

meta http-equiv=refresh output 
scriptwindow.top.location='http://redirected-url.com'/script/

or maybe

meta http-equiv=refresh 
content=scriptwindow.top.location='http://redirected-url.com'/script/

Am I guessing right?


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Thu, 26 Jul 2007 02:45:44 -0700 (PDT)
Erik van Oosten [EMAIL PROTECTED] wrote:

  scriptwindow.top.location='url' .etc

Now I see, thanks!
Sorry for the OT :/ Many thanks again!


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Wed, 25 Jul 2007 10:16:27 -0700
Igor Vaynberg [EMAIL PROTECTED] wrote:

 write your own page, that works like redirect page, but instead of doing
 meta refresh output scriptwindow.top.location='url'

I'm sorry, I think I'm missing something.. Do you mean I should write a page 
like

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html xmlns=http://www.w3.org/1999/xhtml;
head
meta refresh output 
scriptwindow.top.location='http://redirected-url.com'/script/
/head
/html

?
Is a nested script tag allowed inside a meta tag? Also, I tried looking up 
refresh inside the HTML4 specs on www.w3.org but couldn't find it.. :(

Many thanks for your attention


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Handling exceptions

2007-07-26 Thread Federico Fanton
Hi everyone!
I was wondering if there's a best practice for handling exceptions in a 
Wicket application.. I'm implementing an IDataProvider for a DataView, and I 
see that this interface doesn't throw any exception, so I'd guess that if 
something happens inside - say - iterator() that throws an exception, it should 
be wrapped inside a RuntimeWicketException... Am I right?
I tried the wiki, Google and Pro Wicket but couldn't find an answer.. ^^;;
Many thanks in advance


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] The future of wicket-user@lists.sourceforge.net

2007-07-26 Thread Federico Fanton
On Wed, 25 Jul 2007 21:05:04 +0200
Martijn Dashorst [EMAIL PROTECTED] wrote:

 With great pleasure I can announce that we have finally established
 one of the last hurdles in our migration to Apache: we have our own
 user list at the Apache Wicket project.

I'm sorry, what about gmane.org subscription for the new list? Do you mind if I 
send the submission form?


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Redirecting top frame

2007-07-25 Thread Federico Fanton
Hi everyone!
I'm sorry, I'm having a little problem and I'd like to ask for help.. I fear 
this is not strictly Wicket-related, but maybe there's some part of the API 
that I'm missing ^^; (which is not impossible at all X-) )
I have a non-Wicket application that connects to a Wicket one via an iframe, 
and I need to send some kind of redirect command from the iframe, so that ALL 
the page gets refreshed.. I saw that I can get this behaviour via a link like

a href=http://redirected-url.com; target=_topRedirect!/a

but I need an automatic redirection.. Is that possible?
I tried with a RedirectPage, but it gets rendered inside the iframe..

Many thanks for your attention!


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Passing parameters to a page in WicketTester

2007-07-19 Thread Federico Fanton
Hi everyone!
I'm sorry, I'm looking for a little clue..
I have this simple testcase:

public void testForm(){
WicketTester tester = new WicketTester();
tester.startPage(MyPage.class );
tester.assertNoErrorMessage();
}

And this simple page:

public class MyPage extends WebPage {
private String testParam;

public KISSPage(PageParameters params) {
testParam = params.getString(testParam);
}
}

When I run the testcase, it throws the exception
Can't instantiate page using constructor public 
test.MyPage(wicket.PageParameters) and argument 

I guess this is because MyPage is without a default constructor, so I was 
wondering if there's a way to specify the required PageParameters.. I tried 
Google and Pro Wicket but no luck :(
I'm using Wicket 1.2.6

Many thanks in advance!


-
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] Passing parameters to a page in WicketTester

2007-07-19 Thread Federico Fanton
On Thu, 19 Jul 2007 07:25:47 -0700 (PDT)
jonaqua [EMAIL PROTECTED] wrote:

 but this was in the javadoc for WicketTester

D'oh!! I'm sorry :(

 Instead of tester.startPage(pageClass), we define a ITestPageSource to
 provide testing page instance for WicketTester.

I see.. Many thanks, you've been very kind, I deserved a RTFM X-)


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft 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] Mixing Wicket in JSF

2007-07-09 Thread Federico Fanton
On Sat, 2007-07-07 at 16:51 -0700, Eelco Hillenius wrote:
  I have an existing JSF webapp which I'd like to extend (=build new
  pages) with Wicket..
 
 Maybe this might give some ideas?
 http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/

I'll try it right now, many thanks :)


-
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] Can not resize iframe in FireFox to 100%. HELP!

2007-07-09 Thread Federico Fanton
On Mon, 2007-07-09 at 06:19 -0700, westpine wrote:
 Hi... I use iframe on my page 
 iframe width=100% height=100% wicket:id=content src=[actual url goes
 here]/
 Like this. In IE and Opera everything is OK. But in FF this iframe just
 couple hundreds pixels height and i have to scroll it's content. How to
 solve this problem?

If the iframe is inside a table, try setting height=100% in every
related td.

Bye!


-
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] Mixing Wicket in JSF

2007-07-06 Thread Federico Fanton
Hi everyone!
I'm sorry, I'm looking for a hint on the following problem..
I have an existing JSF webapp which I'd like to extend (=build new
pages) with Wicket.. The application is structured so that every page is
JSF-generated with a dynamic menu on top and the selected functionality
at the center (we use to call it the body of the page).
I'm looking for a way to let Wicket handle this body, so I'd like to
ask: do you think this is possible?

Many thanks for your attention!


-
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