Re: [Wicket-user] Automatic repaint of component?

2007-06-27 Thread Igor Vaynberg

On 6/26/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:


On Tue, 26 Jun 2007, Igor Vaynberg wrote:
 interface IModelListener { onSet(IModel model) }

 class ModelMonitor implements IModel {
  private final IModel delegate;
  private ListIModelListener listeners;
...

That's an interesting approach. Is it OK to keep references
to Component instances like that? We've thought that it
would be safer to always get the components dynamically, so
that you wouldn't get the danger of stale references.

- Timo



I dont think there is an issue. You have to check if components are still on
page in either case - whether they are there directly or you only keep their
path.

getpage.get(path); vs component.findparent(page.class)

-igor


--

Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
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


[Wicket-user] Consistent layouts - markup inheritance or borders?

2007-06-27 Thread Tauren Mills
It seems that there are two primary ways of having consistent layouts
across all pages:

1.  Use markup inheritance:
http://cwiki.apache.org/WICKET/markup-inheritance.html

2.  Use Borders:
http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html

I personally have used markup inheritance for this since starting with
wicket.  But I see some advantages to using Borders too.

I'd love to hear everyone's opinion on this.  Which way do you do it?
Why?  What are the pros and cons for each method?

Thanks!
Tauren

-
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] Automatic repaint of component?

2007-06-27 Thread Thies Edeling
Timo Rantalaiho wrote:
 On Tue, 26 Jun 2007, Igor Vaynberg wrote:
   
 interface IModelListener { onSet(IModel model) }

 class ModelMonitor implements IModel {
  private final IModel delegate;
  private ListIModelListener listeners;
 
 ...

 That's an interesting approach. Is it OK to keep references
 to Component instances like that? We've thought that it
 would be safer to always get the components dynamically, so
 that you wouldn't get the danger of stale references.
   
I didn't know that. Is it unsafe to keep references to to Panels etc in 
a class variable of a Page? Why ?
gr,
Thies


-
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] Automatic repaint of component?

2007-06-27 Thread Timo Rantalaiho
On Wed, 27 Jun 2007, Thies Edeling wrote:
 I didn't know that. Is it unsafe to keep references to to Panels etc in 
 a class variable of a Page? Why ?

As Igor pointed out, there is not necessarily a problem. But 
if you replace existing components, either explicitly or by 
putting them in a Repeater that gets refreshed, you might 
end up with references to replaced components that should be 
garbage (because they are no longer on the page).

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
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] Hibernate Query Panel

2007-06-27 Thread Xavier Hanin

Hi,

I've blogged about that a few days ago [1], but jonathan told me it might be
interesting to contribute it to wicket contrib or wicket examples. It is a
reusable panel featuring a text area where you can type an Hibernate HQL
query, a button to submit the query, and a datatable to display the results.

The panel is very generic, it just needs a SessionFactory, and work with
Hibernate metamodel to display the result. We use it in our administration
page (which is targetted to developpers), it might also be useful for debug
purpose (we use it pretty frequently as an easy way to test queries). So I'd
be happy to contribute this to wicket more directly (the code [2] is already
ASLv2), but I need some help.

First I have a dependency on databinder HibernateObjectModel, which is used
to wrap query result objects in models. To put this in wicket contrib, I'd
need a similar generic way of wrapping hibernate objects in IModel. Maybe
there's something similar in wicket-contrib-hibernate?

My second question is where should I put this panel?
wicket-contrib-hibernate? Somewhere else? Right now I have trouble accessing
wicket-stuff svn, so I can't even try to make a good guess :-)

Xavier

[1] http://xhab.blogspot.com/2007/06/wicket-hibernate-query-panel.html
[2]
http://www.xoocode.org/wsvn/xoocode/org.xoocode.xooctory/trunk/xooctory/src/main/java/org/xoocode/xooctory/web/component/hibernate/HibernateQueryPanel.java?op=filerev=0sc=0

--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Nino Saturnino Martinez Vazquez Wael
Hi

We are having some troubles using wicket and Oracle web server. It's 
some of our ajax calls that just hangs. By hanging I mean that if we 
click an ajax triggering control, if fires the event and just never gets 
a response. Debuggin a little deeper it seems that wicket does not even 
gets the request. We are suspecting that it has something todo with the 
oracle web cache.

So the ajax call sends some attributs with it to avoid being cached, 
however it's missing the  cache-control=no-store. We are not sure  
that this are causing our troubles. How can I make the ajax call include 
the attribute?

Has anybody some ideas about this?


I've tested the application on jetty, and here it works without any 
problems.


any help highly appreciated.


regards Nino

-
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] Customizing ModalWindow CSS

2007-06-27 Thread Tauren Mills
What is the best way to customize the CSS styles of a ModalWindow in
1.2.6? The blue and grey borders do not go well with my site's color
scheme.  It looks like setCssClassName only selects from the blue or
grey in modal.css.  So how do I use my own stylesheet?

Should I extend ModalWindow and copy/modify the css as a new css file
for the extended class (call it MyModalWindow)?  Won't that mean both
the ModalWindow css and the MyModalWindow css files will be included
in the header?  Will I have to copy all of ModalWindow's resources
into the MyModalWindow package (png, js, etc)?

Should I just override the css attributes that I want changed in my
main css file?  But chances are the ModalWindow's css file will be
included after my main one, in which case it will override my
settings.

Something else?

Thanks!
Tauren

-
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] AJAX version of OrderByBorder?

2007-06-27 Thread Tauren Mills
I'd like to refresh a DataView with OrderByBorder column headers
without doing a full page refresh.  In other words, when a column
header is clicked to sort the DataView, the DataView refreshes via
ajax. Pagination can be done via ajax, but I haven't seen a way to do
sorting via ajax.  Does it exist?  If not, any advice on how to
implement it?

Thanks,
Tauren

-
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] Page Expired in AjaxLink after backbutton FF2

2007-06-27 Thread Matthieu Casanova
Hi, I have some ajax link in a page that are used to select items in a
list (the items are stored in an ArrayList on the server).
It works fine with any browser. But from this page if I click on a
BookmarkableLink  to another page and after click on the back button
of my browser, when clicking on the AjaxLink of my first page, I got a
Page Expired with Firefox 2, but not with IE6.

I think a possible reason is that IE makes a new HTTP request to get
the page, and Firefox uses the page from it's cache without requesting
the server. But how can I handle that with Wicket ?

thanks

Matthieu

-
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] Wicket Helloworld using Tomcat

2007-06-27 Thread tnjtn1

Hi, 
yes. i am using maven to package
I have seen the below link which u sent earlier.

http://wicketframework.org/wicket-quickstart/demos/EclipseDemo.html

In this url also they used jetty server not Tomcat server.

My doubt is simple application using  Tomcat Appliction.

or give the url.

Regards 
kumar



Martijn Dashorst wrote:
 
 The example states:
 
 In all the Wicket examples, you have to put all files in the same
 package directory. This means putting the markup files and the java
 files next to one another.
 
 Watch this video to see what we mean:
 
 http://wicketframework.org/wicket-quickstart/demos/EclipseDemo.html
 
 Martijn
 
 On 6/26/07, tnjtn1 [EMAIL PROTECTED] wrote:

 HI,

 I am newer to wicket. just i am trying to use HelloWorld program
 following
 this below url with Tomcat5.0 server.

 http://wicket.sourceforge.net/ExampleHelloWorld.html

 1) I have place java file under  src folder.
 2) I have placed HelloWorld.html file under webContent folder.

 when i run the Helloworld.html file, it display only  --  Message goes
 here . But it won't display the content of label component..

 where i took mistake..?

 Thanks  Regards,
 kumar
 --
 View this message in context:
 http://www.nabble.com/Wicket-Helloworld-using-Tomcat-tf3982219.html#a11305084
 Sent from the Wicket - User mailing list archive at Nabble.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

 
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Helloworld-using-Tomcat-tf3982219.html#a11321705
Sent from the Wicket - User mailing list archive at Nabble.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] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Matej Knopp
I think we could make this by default in wicket. Until then, you can
make a filter, that checks if the request contains wicket-ajax header,
and when it does, add the cache-control no-store header.

-Matej

On 6/27/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi

 We are having some troubles using wicket and Oracle web server. It's
 some of our ajax calls that just hangs. By hanging I mean that if we
 click an ajax triggering control, if fires the event and just never gets
 a response. Debuggin a little deeper it seems that wicket does not even
 gets the request. We are suspecting that it has something todo with the
 oracle web cache.

 So the ajax call sends some attributs with it to avoid being cached,
 however it's missing the  cache-control=no-store. We are not sure
 that this are causing our troubles. How can I make the ajax call include
 the attribute?

 Has anybody some ideas about this?


 I've tested the application on jetty, and here it works without any
 problems.


 any help highly appreciated.


 regards Nino

 -
 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] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Andrew Klochkov
Matej Knopp wrote:
 I think we could make this by default in wicket. Until then, you can
 make a filter, that checks if the request contains wicket-ajax header,
 and when it does, add the cache-control no-store header.
   
AFAIK it can be done by configuring oracle web cache. It has
customizable rules and I guess it can analyze headers.

-- 
Andrew Klochkov


-
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] Hibernate Query Panel

2007-06-27 Thread Ryan Sonnek

just my 2 cents, but i think the databinder project would be a great place
for this.

On 6/27/07, Xavier Hanin [EMAIL PROTECTED] wrote:


Hi,

I've blogged about that a few days ago [1], but jonathan told me it might
be interesting to contribute it to wicket contrib or wicket examples. It
is a reusable panel featuring a text area where you can type an Hibernate
HQL query, a button to submit the query, and a datatable to display the
results.

The panel is very generic, it just needs a SessionFactory, and work with
Hibernate metamodel to display the result. We use it in our administration
page (which is targetted to developpers), it might also be useful for debug
purpose (we use it pretty frequently as an easy way to test queries). So I'd
be happy to contribute this to wicket more directly (the code [2] is already
ASLv2), but I need some help.

First I have a dependency on databinder HibernateObjectModel, which is
used to wrap query result objects in models. To put this in wicket contrib,
I'd need a similar generic way of wrapping hibernate objects in IModel.
Maybe there's something similar in wicket-contrib-hibernate?

My second question is where should I put this panel?
wicket-contrib-hibernate? Somewhere else? Right now I have trouble accessing
wicket-stuff svn, so I can't even try to make a good guess :-)

Xavier

[1] http://xhab.blogspot.com/2007/06/wicket-hibernate-query-panel.html
[2]
http://www.xoocode.org/wsvn/xoocode/org.xoocode.xooctory/trunk/xooctory/src/main/java/org/xoocode/xooctory/web/component/hibernate/HibernateQueryPanel.java?op=filerev=0sc=0

--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Nino Saturnino Martinez Vazquez Wael
Thanks:)

Running on 1.2.6 btw.

Matej Knopp wrote:
 I think we could make this by default in wicket. Until then, you can
 make a filter, that checks if the request contains wicket-ajax header,
 and when it does, add the cache-control no-store header.

 -Matej

 On 6/27/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
   
 Hi

 We are having some troubles using wicket and Oracle web server. It's
 some of our ajax calls that just hangs. By hanging I mean that if we
 click an ajax triggering control, if fires the event and just never gets
 a response. Debuggin a little deeper it seems that wicket does not even
 gets the request. We are suspecting that it has something todo with the
 oracle web cache.

 So the ajax call sends some attributs with it to avoid being cached,
 however it's missing the  cache-control=no-store. We are not sure
 that this are causing our troubles. How can I make the ajax call include
 the attribute?

 Has anybody some ideas about this?


 I've tested the application on jetty, and here it works without any
 problems.


 any help highly appreciated.


 regards Nino

 -
 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


   

-
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] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Nino Saturnino Martinez Vazquez Wael
We sadly have no access to this, I think matejs solution will work nicely:)

Andrew Klochkov wrote:
 Matej Knopp wrote:
   
 I think we could make this by default in wicket. Until then, you can
 make a filter, that checks if the request contains wicket-ajax header,
 and when it does, add the cache-control no-store header.
   
 
 AFAIK it can be done by configuring oracle web cache. It has
 customizable rules and I guess it can analyze headers.

   

-
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] Customizing ModalWindow CSS

2007-06-27 Thread Andrew Klochkov
search through the mail-list, this topic was discussed in details

Tauren Mills wrote:
 What is the best way to customize the CSS styles of a ModalWindow in
 1.2.6? 
   
-- 
Andrew Klochkov


-
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] Customizing ModalWindow CSS

2007-06-27 Thread Scott Swank
Here's everything I know.  (Not much)

http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768589

On 6/27/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
 search through the mail-list, this topic was discussed in details

 Tauren Mills wrote:
  What is the best way to customize the CSS styles of a ModalWindow in
  1.2.6?
 
 --
 Andrew Klochkov


 -
 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



-- 
Scott Swank
reformed mathematician

-
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] Hibernate Query Panel

2007-06-27 Thread Xavier Hanin

On 6/27/07, Ryan Sonnek [EMAIL PROTECTED] wrote:


just my 2 cents, but i think the databinder project would be a great place
for this.



Indeed it makes sense. I personally don't mind where it goes, or even if it
goes somewhere.

I'll try to subscribe to databinder forum (I was not fortunate enough first
time I tried) and see what nathan think about that. If others have a
different opinion, let me know.

Xavier

On 6/27/07, Xavier Hanin  [EMAIL PROTECTED] wrote:


 Hi,

 I've blogged about that a few days ago [1], but jonathan told me it
 might be interesting to contribute it to wicket contrib or wicket examples.
 It is a reusable panel featuring a text area where you can type an
 Hibernate HQL query, a button to submit the query, and a datatable to
 display the results.

 The panel is very generic, it just needs a SessionFactory, and work with
 Hibernate metamodel to display the result. We use it in our administration
 page (which is targetted to developpers), it might also be useful for debug
 purpose (we use it pretty frequently as an easy way to test queries). So I'd
 be happy to contribute this to wicket more directly (the code [2] is already
 ASLv2), but I need some help.

 First I have a dependency on databinder HibernateObjectModel, which is
 used to wrap query result objects in models. To put this in wicket contrib,
 I'd need a similar generic way of wrapping hibernate objects in IModel.
 Maybe there's something similar in wicket-contrib-hibernate?

 My second question is where should I put this panel?
 wicket-contrib-hibernate? Somewhere else? Right now I have trouble accessing
 wicket-stuff svn, so I can't even try to make a good guess :-)

 Xavier

 [1] http://xhab.blogspot.com/2007/06/wicket-hibernate-query-panel.html
 [2]
 
http://www.xoocode.org/wsvn/xoocode/org.xoocode.xooctory/trunk/xooctory/src/main/java/org/xoocode/xooctory/web/component/hibernate/HibernateQueryPanel.java?op=filerev=0sc=0

 --
 Xavier Hanin - Independent Java Consultant
 Manage your dependencies with Ivy!
 http://incubator.apache.org/ivy/

 -
 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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] where can i get the wicket1.3 documentation

2007-06-27 Thread Lec

hmm..how about site for the javadoc wicket1.3 extension? and where is the
site that I download all these 1.3 javadoc? thanks 

If you mean 1.3 api javadoc, it is here:
http://www.wicketstuff.org/wicket13doc/

-
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



-- 
View this message in context: 
http://www.nabble.com/where-can-i-get-the-wicket1.3-documentation-tf3980393.html#a11326095
Sent from the Wicket - User mailing list archive at Nabble.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


[Wicket-user] Evaluating Wicket for Spring long transactions+Hibernate case

2007-06-27 Thread CptPicard

Greetings everyone,

I am currently trying to make up my mind on the view technology for an
inventory and order management application I'm writing for my dotcom. In the
past I've been writing things using Spring (MVC) and Hibernate. Now however
I am faced with building an application with so much independent bits of
state on the screen at the same time for the user to see and manipulate that
I'm getting the impression I really need to move over to a component-based
view model. Wicket seems to fit the bill in general.

I've been reading through the Wicket-phonebook application, and it gives a
resonably good impression of the general architecture one needs to be using.
However, there is one pretty crucial feature I just absolutely have to make
work right, and instead of learning the hard way, I guess I'd just rather
ask for best integration practices...

The typical situation is like this: the user has got a paged list of
inventory items to manage. There is another side to the whole system -- the
storefront facing the customer with shopping cart, etc. Purchases can alter
the database between requests, so we need to know when there has been stale
data for some line in order to avoid overbooking items for sale and other
undesirable events.

Doing conversations spanning requests is somewhat straightforward in a
Spring MVC setting as the request lifecycle is easy to understand, but I'm
quite at a loss as to how I'm going to go about this with Wicket.
Essentially we need to go into some Spring transaction method at some point
in some part of a component's lifecycle, detect the transaction failure,
notify the user and then try again. I don't think I've really seen this
discussed anywhere up to a length that would have given me an idea how I am
to get started...

Ideas appreciated :-)

Eero
-- 
View this message in context: 
http://www.nabble.com/Evaluating-Wicket-for-Spring-long-transactions%2BHibernate-case-tf3988967.html#a11326391
Sent from the Wicket - User mailing list archive at Nabble.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] where can i get the wicket1.3 documentation

2007-06-27 Thread Peter Thomas

On 6/27/07, Lec [EMAIL PROTECTED] wrote:



hmm..how about site for the javadoc wicket1.3 extension? and where is the
site that I download all these 1.3 javadoc? thanks

If you mean 1.3 api javadoc, it is here:
http://www.wicketstuff.org/wicket13doc/



You can always get latest src and javadoc from the Maven2 repo, if you dig
around you can get all the other wicket stuff as well.

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-extensions/1.3.0-SNAPSHOT/

I don't know where the online api javadoc for wicket-extensions is, can any
of the wicket committers kindly provide the URL if this is available, I
would like to bookmark it for reference, 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] AJAX version of OrderByBorder?

2007-06-27 Thread Igor Vaynberg

see ajaxfallbackorderbyborder

-igor


On 6/27/07, Tauren Mills [EMAIL PROTECTED] wrote:


I'd like to refresh a DataView with OrderByBorder column headers
without doing a full page refresh.  In other words, when a column
header is clicked to sort the DataView, the DataView refreshes via
ajax. Pagination can be done via ajax, but I haven't seen a way to do
sorting via ajax.  Does it exist?  If not, any advice on how to
implement it?

Thanks,
Tauren

-
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


[Wicket-user] WICKET-631

2007-06-27 Thread Janos Cserep

Could some core developer familiar with Resource.java take a look at 
WICKET-631. I've commented on the issue yesterday with a possible solution
  to the problem (the parameter threadlocal in Resource.java gets nullified 
too soon).

Thanks,

  --
Janos Cserep - [EMAIL PROTECTED]
Mobile: + 36 20 4328730  Skype: cserepj

-
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] wicket 1.3 and tomcat 5.5 filterStart severe error?

2007-06-27 Thread Igor Vaynberg

On 6/27/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


Hi I

am trying to start the quickstart project on tomcat and it throws
servere: Error FilterStart error. We've tried to use the servlet
mapping instead this gives no error but doesnt work.

whats wrong?

regards Nino



servere: Error FilterStart

thats not a wicket error is it?

-igor
-
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] wicket 1.3 and tomcat 5.5 filterStart severe error?

2007-06-27 Thread Sean Sullivan

I encountered that error recently when I was running Tomcat 5.5.17 with
Eclipse WebTools 1.5.4

I was unable to determine the root cause of the error.

Sean

On 6/27/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


Hi I

am trying to start the quickstart project on tomcat and it throws
servere: Error FilterStart error. We've tried to use the servlet
mapping instead this gives no error but doesnt work.

whats wrong?


-
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] Customizing ModalWindow CSS

2007-06-27 Thread Tauren Mills
Sweet! Thanks so much..

On 6/27/07, Scott Swank [EMAIL PROTECTED] wrote:
 Here's everything I know.  (Not much)

 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768589

 On 6/27/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
  search through the mail-list, this topic was discussed in details
 
  Tauren Mills wrote:
   What is the best way to customize the CSS styles of a ModalWindow in
   1.2.6?
  
  --
  Andrew Klochkov

-
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] AJAX version of OrderByBorder?

2007-06-27 Thread Tauren Mills
Igor to the rescue again...  Thanks!

Tauren

On 6/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see ajaxfallbackorderbyborder

 -igor



 On 6/27/07, Tauren Mills [EMAIL PROTECTED] wrote:
 
  I'd like to refresh a DataView with OrderByBorder column headers
  without doing a full page refresh.  In other words, when a column
  header is clicked to sort the DataView, the DataView refreshes via
  ajax. Pagination can be done via ajax, but I haven't seen a way to do
  sorting via ajax.  Does it exist?  If not, any advice on how to
  implement it?
 
  Thanks,
  Tauren
 
 
 -
  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



-
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] Hibernate Query Panel

2007-06-27 Thread Nathan Hamblen
Xavier Hanin wrote:
 I'll try to subscribe to databinder forum (I was not fortunate enough
  first time I tried) and see what nathan think about that. If others
 have a different opinion, let me know.

It's a highly exclusive place, thanks to link spammers that I would like
to kill. I'll look out for your registration. (Others, please mail 
[EMAIL PROTECTED] as you are registering to give me a heads-up.)

I'm glad to see you're using Databinder with Spring (yay it works), 
though I expected  DataStaticService.setSessionFactory(...) to be called 
only once, from the application's init(). Let's talk about that in the 
forum, if you don't mind. I'd be happy to do anything that makes it 
easier for IoC containers (short of functionally depending on them).

And I hate to see any reluctance to use Databinder as a dependency. It's 
there, and it's in the central Maven repository, for people to use. 
Perhaps what I should do is split off something like databinder-models 
as an independent dep that doesn't include any request cycle session/txn 
management code. To me having those classes sit in the jar unused is not 
such a big deal, but then I am using them extensively so I guess I have 
a different perspective.

Nathan


-
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] Hibernate Query Panel

2007-06-27 Thread Xavier Hanin

On 6/27/07, Nathan Hamblen [EMAIL PROTECTED] wrote:


Xavier Hanin wrote:
 I'll try to subscribe to databinder forum (I was not fortunate enough
  first time I tried) and see what nathan think about that. If others
 have a different opinion, let me know.

It's a highly exclusive place, thanks to link spammers that I would like
to kill. I'll look out for your registration. (Others, please mail
[EMAIL PROTECTED] as you are registering to give me a heads-up.)



It appears that my registration was ok, I just didn't received the
confirmation e-mail, but I just managed to post a new topic.

I'm glad to see you're using Databinder with Spring (yay it works),

though I expected  DataStaticService.setSessionFactory(...) to be called
only once, from the application's init(). Let's talk about that in the
forum, if you don't mind. I'd be happy to do anything that makes it
easier for IoC containers (short of functionally depending on them).



Ok, we'll discuss that on the forum, the trick I use was just a quick and
dirty fix to make it work, since I use databinder only for this panel right
now. But it may change in the future, I'm getting tired of writing specific
detachable models for my POJOs.

And I hate to see any reluctance to use Databinder as a dependency. It's

there, and it's in the central Maven repository, for people to use.



Yes, it was super easy to add this dependency to my project (even if I use
Ivy and not maven), and even if it's only for this panel, I don't really
mind. I talked about removing the dependency to make it available to other
people who don't use databinder. But if it is delivered with databinder,
it's not a problem.

Perhaps what I should do is split off something like databinder-models

as an independent dep that doesn't include any request cycle session/txn
management code. To me having those classes sit in the jar unused is not
such a big deal, but then I am using them extensively so I guess I have
a different perspective.



It's not a problem for me to embed unused classes, it's not big anyway. But
indeed I think the models have more use cases than other classes, so it
might be interesting to separate them.

Xavier

Nathan



-
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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] file upload in a popup - page expired

2007-06-27 Thread Alex Parvulescu

Hello,

i have the following situation : a file upload, in a popup.after the
submit,the upload is done and the paretn page is refreshed.

i set multipart true on the form,set the page map name
PageMap.forName(someName)
in my popup settings,and after i submit the form,the upload goes fine,but is
seems that the page map is lost,because i get a page expired error after.
i'm not really sure where the problem is, i've been looking at the
logs,that's why i think that the page map is null,so the refresh that
follows gives a page expired exception

any ideas?
thanks,
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


Re: [Wicket-user] Wicket Helloworld using Tomcat

2007-06-27 Thread Igor Vaynberg

On 6/27/07, tnjtn1 [EMAIL PROTECTED] wrote:



Hi,
yes. i am using maven to package
I have seen the below link which u sent earlier.

http://wicketframework.org/wicket-quickstart/demos/EclipseDemo.html

In this url also they used jetty server not Tomcat server.

My doubt is simple application using  Tomcat Appliction.



check out this from svn [1] and use it to build a sample project. read the
README file for instructions

[1] http://svn.apache.org/repos/asf/incubator/wicket/trunk/archetypes/

-igor




or give the url.


Regards
kumar



Martijn Dashorst wrote:

 The example states:

 In all the Wicket examples, you have to put all files in the same
 package directory. This means putting the markup files and the java
 files next to one another.

 Watch this video to see what we mean:

 http://wicketframework.org/wicket-quickstart/demos/EclipseDemo.html

 Martijn

 On 6/26/07, tnjtn1 [EMAIL PROTECTED] wrote:

 HI,

 I am newer to wicket. just i am trying to use HelloWorld program
 following
 this below url with Tomcat5.0 server.

 http://wicket.sourceforge.net/ExampleHelloWorld.html

 1) I have place java file under  src folder.
 2) I have placed HelloWorld.html file under webContent folder.

 when i run the Helloworld.html file, it display only  --  Message goes
 here . But it won't display the content of label component..

 where i took mistake..?

 Thanks  Regards,
 kumar
 --
 View this message in context:

http://www.nabble.com/Wicket-Helloworld-using-Tomcat-tf3982219.html#a11305084
 Sent from the Wicket - User mailing list archive at Nabble.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



 --
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org


-
 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



--
View this message in context:
http://www.nabble.com/Wicket-Helloworld-using-Tomcat-tf3982219.html#a11321705
Sent from the Wicket - User mailing list archive at Nabble.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

-
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] Problems with updating TabbedPanel

2007-06-27 Thread Holda, Dariusz

Hi,
I created TabbedPanel inside a form. The form has just one field which
is the name of the client. The TabbedPanel stores different information
about the client. At the top of the page I have DropDownChoice with the
list of clients. When the client is choose from the DropDownChoice I'm
changing the model object of the form and model object of the
tabbedpanel in the onSelectionChanged method. I can see the change in
the field on the form but to see the changes in the TabbedPanel I have
to click on a tab. The thing is I want to see the TabbedPanel with the
new info straight away after choosing the client. Can someone advice me
something. 
Here are the code snippets:

public class HomePage extends QuickStartPage{

private static final long serialVersionUID = 1L;

SortedSetString clientsSet;
ClientForm clientForm; 
ClientsDropDownChoice clients;

/**
 * Constructor
 */
@SuppressWarnings(unchecked)
public HomePage()
{
//  String permit =
this.getWebRequestCycle().getWebRequest().getParameter(profileID);
setModel(new Model(tabpanel));
try {
clientsSet =
dataPersistenceService.findAllNames();
ListString clientsList = new
LinkedListString(clientsSet);
clients = new
ClientsDropDownChoice(clients,clientsList);
add(clients);
Client client = new Client();
clientForm = new
ClientForm(clientForm,client);
add(clientForm);
} catch (Exception e) {
error(Unable to find clients:
+e.getMessage());
e.printStackTrace();
}
}   

public void setDataPersistenceService(
DataPersistenceService dataPersistenceService) {
this.dataPersistenceService = dataPersistenceService;
}

void saveClient(Client client) throws DataPersistenceException{
if(clients.contains(client)){
client =
dataPersistenceService.updateClient(client);
clients.remove(client);
clients.add(client);
clientForm.setModelObject(client);
}else{

client.setId(DataObject.DEFAULT_ID_VALUE);

dataPersistenceService.insertClient(client);
clients.add(client);
}
}

private final class ClientForm extends Form{

private static final long serialVersionUID = 1L;
TabbedPanel panel;
Client profile ;
TabbedPanel tabbedPanel;

@SuppressWarnings(synthetic-access)
public ClientForm(String name, Client client) {
super(name, new CompoundPropertyModel(client));
final FeedbackPanel feedback = new
FeedbackPanel(feedback);
add(feedback);
add(new TextField(clientName).add(new
AjaxFormComponentUpdatingBehavior(onchange)));

// add the new tabbed panel, attribute modifier
only used to switch
// between different css variations 
profile = client;
tabbedPanel =
createTabsPanel((Client)this.getModelObject());
add(tabbedPanel);
}

public void updateTabs(Client client){
profile = client;
}

public TabbedPanel createTabsPanel(final Client client){
ListAbstractTab tabs = new
ArrayListAbstractTab();
tabs.add(new AbstractTab(new Model(Profile))
{
private static final long
serialVersionUID = 1L;
@SuppressWarnings(synthetic-access)
@Override
public Panel getPanel(String panelId)
{
ProfilePanel panel = new
ProfilePanel(panelId, profile);

panel.setDataPersistenceService(dataPersistenceService);
return panel;
}

});

panel = new TabbedPanel(tabs, tabs);

panel.add(new AttributeModifier(class,
true,HomePage.this.getModel()));
return panel;
}

}


Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-27 Thread ZedroS Schwart
Hi all

Thanks for your advice !

So finally, using 7 Zip, it has worked out really well. It was both
quick and working ! :)

(to finish the side note : I already tried to boot on my ubuntu cd,
but the wifi didn't work, even if the card was detected, it wouldn't
let me configure my WPA network because the card doesn't support it.
So it's no so straightforward.)

Cheers
ZedroS

On 6/24/07, Gabor Szokoli [EMAIL PROTECTED] wrote:
 On 6/24/07, ZedroS Schwart [EMAIL PROTECTED] wrote:
  I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's
  not that easy.

 (sidenote: Wifi should not be a problem with Ubuntu. The install CD is
 a live CD as well, so you can verify device support without side
 effects)

  For I'm trying to do, it's really simple : I've downloaded
  apache-wicket-1.3.0-incubating-beta1.zip and I just would like to
  unzip it.

 There has been mention of alternative unzip utilities in the thread
 already, let me just draw your attention to another bag of tricks:
 cygwin.
 The command line unzip utility is likely to at least give you a more
 specific error message.


 Gabor Szokoli

 -
 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] Problems with updating TabbedPanel

2007-06-27 Thread Igor Vaynberg

you are not using the models properly

instead of pushing selected objects into models for a lot of components
simply write those components to pull the value from a single place

the workflow is then:

dropdownchoice pushes selected client into a page property
form pulls selected client from that propery
profilepael inside tabbedpanel pulls that client from that property

class mypage extends webpage {
 private Client client;

 mypage() {
   final IModel clientModel=new PropertyModel(this, client);
   setmodel(model);
   form f=new form(form);
   f.add(new DropDownChoice(client, clientModel, ) { onchange()
{//noop - model will do all the work} }

   profiletab=new abstracttab(..) { getpanel() { return new
profilepanel(id, clientmodel); }
}

that represents all the linkages you need.

-igor


On 6/27/07, Holda, Dariusz [EMAIL PROTECTED] wrote:



Hi,
I created TabbedPanel inside a form. The form has just one field which
is the name of the client. The TabbedPanel stores different information
about the client. At the top of the page I have DropDownChoice with the
list of clients. When the client is choose from the DropDownChoice I'm
changing the model object of the form and model object of the
tabbedpanel in the onSelectionChanged method. I can see the change in
the field on the form but to see the changes in the TabbedPanel I have
to click on a tab. The thing is I want to see the TabbedPanel with the
new info straight away after choosing the client. Can someone advice me
something.
Here are the code snippets:

public class HomePage extends QuickStartPage{

private static final long serialVersionUID = 1L;

SortedSetString clientsSet;
ClientForm clientForm;
ClientsDropDownChoice clients;

/**
 * Constructor
 */
@SuppressWarnings(unchecked)
public HomePage()
{
//  String permit =
this.getWebRequestCycle().getWebRequest().getParameter(profileID);
setModel(new Model(tabpanel));
try {
clientsSet =
dataPersistenceService.findAllNames();
ListString clientsList = new
LinkedListString(clientsSet);
clients = new
ClientsDropDownChoice(clients,clientsList);
add(clients);
Client client = new Client();
clientForm = new
ClientForm(clientForm,client);
add(clientForm);
} catch (Exception e) {
error(Unable to find clients:
+e.getMessage());
e.printStackTrace();
}
}

public void setDataPersistenceService(
DataPersistenceService dataPersistenceService) {
this.dataPersistenceService = dataPersistenceService;
}

void saveClient(Client client) throws DataPersistenceException{
if(clients.contains(client)){
client =
dataPersistenceService.updateClient(client);
clients.remove(client);
clients.add(client);
clientForm.setModelObject(client);
}else{

client.setId(DataObject.DEFAULT_ID_VALUE);

dataPersistenceService.insertClient(client);
clients.add(client);
}
}

private final class ClientForm extends Form{

private static final long serialVersionUID = 1L;
TabbedPanel panel;
Client profile ;
TabbedPanel tabbedPanel;

@SuppressWarnings(synthetic-access)
public ClientForm(String name, Client client) {
super(name, new CompoundPropertyModel(client));
final FeedbackPanel feedback = new
FeedbackPanel(feedback);
add(feedback);
add(new TextField(clientName).add(new
AjaxFormComponentUpdatingBehavior(onchange)));

// add the new tabbed panel, attribute modifier
only used to switch
// between different css variations
profile = client;
tabbedPanel =
createTabsPanel((Client)this.getModelObject());
add(tabbedPanel);
}

public void updateTabs(Client client){
profile = client;
}

public TabbedPanel createTabsPanel(final Client client){
ListAbstractTab tabs = new
ArrayListAbstractTab();
tabs.add(new AbstractTab(new Model(Profile))
{
private static final long
serialVersionUID = 1L;
@SuppressWarnings(synthetic-access)

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-27 Thread C. Bergström
ZedroS Schwart wrote:
 Hi all

   
 Thanks for your advice !

 So finally, using 7 Zip, it has worked out really well. It was both
 quick and working ! :)

 (to finish the side note : I already tried to boot on my ubuntu cd,
 but the wifi didn't work, even if the card was detected, it wouldn't
 let me configure my WPA network because the card doesn't support it.
 So it's no so straightforward.)
   
Thanks for the follow-up.. While nothing to do with wicket.  It's always 
encouraged with open source projects to test, provide feedback and where 
applicable file bug reports.  So if you get a chance make sure there's 
at least a bug report on your wireless card to add the support you 
need.  Even better would be if you could send a patch.  I mean it could 
be as trivial as adding a device id to a header.  This same type of 
philosophy and feedback process goes for Wicket as well.

Best,

./C

ps. Also try to remember to inline/bottom-post and trim.

-
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] Markup of type 'html' for component

2007-06-27 Thread Watter

I realize this is a shot in the dark, but I'm at a loss and my team is
growing more and more frustrated with me (I'm the Wicket advocate), so I
hope someone might be able to help.

We are constantly getting the following error when accessing a page:

---
WicketMessage: Markup of type 'html' for component
'com.out.company.web.pages.user.ApproveUsers' not found. Enable debug
messages for org.apache.wicket.util.resource to get a list of all filenames
tried:
[Page class = com.ptc.fusion.web.pages.user.ApproveUsers, id = 11, version =
0]

Root cause:

org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance
of container
---

While I'm not so bold as to say that this occurs randomly, I can restart the
app and the pages that were throwing this Exception will work fine while
others are now inaccessible. 

When it doesn't work, the URL in the address bar is quite long. Something
like:

http://127.0.0.3:8080/app/?wicket:interface=:10:adminMenuItems:adminApproveUserReg::ILinkListener::

When the same page does show up correctly, the URL is much shorter. usually
something like:

http://127.0.0.3:8080/app/?wicket:interface=:21

If I access the same page via a mounted name, it always shows up correctly.
This behavior is not limited to a certain page. It seems like every single
page in our app is a candidate for this error at some point or another. 

Any ideas? Is there any additional information I might be able to provide
that would help in debugging this issue?

Matt
-- 
View this message in context: 
http://www.nabble.com/Markup-of-type-%27html%27-for-component-tf3990556.html#a11331448
Sent from the Wicket - User mailing list archive at Nabble.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] Markup of type 'html' for component

2007-06-27 Thread Watter


Watter wrote:
 
 I realize this is a shot in the dark, but I'm at a loss and my team is
 growing more and more frustrated with me (I'm the Wicket advocate), so I
 hope someone might be able to help.
 
 We are constantly getting the following error when accessing a page:
 
 ---
 WicketMessage: Markup of type 'html' for component
 'com.out.company.web.pages.user.ApproveUsers' not found. Enable debug
 messages for org.apache.wicket.util.resource to get a list of all
 filenames tried:
 [Page class = com.ptc.fusion.web.pages.user.ApproveUsers, id = 11, version
 = 0]
 
 Root cause:
 
 org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance
 of container
 ---
 
Well nuts. I continued to search the mailing list after posting this and
after changing a few of my search terms I found this thread 

http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11248070

which seems to talks about the same issue. I apologize for the duplicate.

Matt


-- 
View this message in context: 
http://www.nabble.com/Markup-of-type-%27html%27-for-component-tf3990556.html#a11331511
Sent from the Wicket - User mailing list archive at Nabble.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] Markup of type 'html' for component

2007-06-27 Thread Martijn Dashorst
On 6/27/07, Watter [EMAIL PROTECTED] wrote:
 which seems to talks about the same issue. I apologize for the duplicate.

In the future, please provide at least the Wicket version you are
working with, and any changes you made to the defaults (directories
where html files are stored, etc)

Martijn


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-27 Thread Watter



Jean-Baptiste Quenot-3 wrote:
 
 I commented on the issue, and  finally marked it as invalid.  Here
 is the comment, in case you wish to discuss it on the mailing-list
 or just for the record if other users came across this:
 
 It's a bit tricky to make the reloading work with Spring. You have
 to define class naming conventions and enforce them. The main idea
 behind all of  this, is that you will come  across problems if the
 same class  is loaded  in two different  classloaders, one  is the
 parent classloader, and the other is the reloading classloader.
 
 And of course please read the Javadoc thoroughly especially if you
 use Spring.
 -- 
  Jean-Baptiste Quenot
 

I noticed that the fellow how commented in the JIRA issue used the following
patterns:

ReloadingClassLoader.includePattern(info.jtrac.wicket.*);
ReloadingClassLoader.includePattern(info.jtrac.wicket.yui.*); 

Is it necessary to explicitly specify the inclusion of sub-packages when the
parent package is already included? I only aske because our package
hierarchy is pretty deep when it comes to pages, and I'd loke to avoid
having to explicitly call each one of them out of just naming the root of
that part of the packager hierarchy is enough.

Thanks, 
Matt

-- 
View this message in context: 
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11331892
Sent from the Wicket - User mailing list archive at Nabble.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] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-27 Thread Jean-Baptiste Quenot
* Watter:

 Is  it   necessary  to  explicitly  specify   the  inclusion  of
 sub-packages when the parent package is already included? I only
 aske because our package hierarchy  is pretty deep when it comes
 to pages, and  I'd loke to avoid having to  explicitly call each
 one of  them out  of just naming  the root of  that part  of the
 packager hierarchy is enough.

No  it's not  necessary,  the wildcard  applies  to any  character
except slash (not used for packages anyway).
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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] Wicket 1.3 roadmap

2007-06-27 Thread ZedroS

Hi all

Is it possible to have some update on this topic ? Especially the release
date which should be imminent :)

Thanks in advance
ZedroS
-- 
View this message in context: 
http://www.nabble.com/Wicket-1.3-roadmap-tf3620901.html#a11332321
Sent from the Wicket - User mailing list archive at Nabble.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] Odd Refresh Page Behavior

2007-06-27 Thread mchack

Forgot to mention I am using Version 1.3.


mchack wrote:
 
 Perplexed:
 
 I have an application similar to the phonebook example.
 I have a List Users page with a FeedbackPanel and an Edit Users page. 
 
 The URL of the List Page is http://localhost/wicket/app/main (which is
 bookmarkable)
 
 Selecting a user sets the response page to the edit page. Upon completion
 of the edit the application redirects back to the List User page where the
 response is displayed in the feedback panel. If I refresh the page at this
 point the page renders fine with no message being displayed in the
 FeedbackPanel as expected. If I refresh once more I get the following
 error message:
 
 WicketMessage: Unable to find component with id 'feedbackul' in
 [MarkupContainer  which is part of the HTML Markup for the
 Feedback Panel. The URL at this point is
 http://localhost/wicket/app/main?wicket:interface=:193:::
 
 I have no idea why this is happening. Any insight would be appreciated.
 
 Thanks
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Odd-Refresh-Page-Behavior-tf3986136.html#a11332636
Sent from the Wicket - User mailing list archive at Nabble.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] Wicket 1.3 roadmap

2007-06-27 Thread Martijn Dashorst
Working on the release beta 2 as we speak.

Martijn


On 6/27/07, ZedroS [EMAIL PROTECTED] wrote:

 Hi all

 Is it possible to have some update on this topic ? Especially the release
 date which should be imminent :)

 Thanks in advance
 ZedroS
 --
 View this message in context: 
 http://www.nabble.com/Wicket-1.3-roadmap-tf3620901.html#a11332321
 Sent from the Wicket - User mailing list archive at Nabble.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



-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-27 Thread Watter



Jean-Baptiste Quenot-3 wrote:
 
 * Watter:
 
 Is  it   necessary  to  explicitly  specify   the  inclusion  of
 sub-packages when the parent package is already included? I only
 aske because our package hierarchy  is pretty deep when it comes
 to pages, and  I'd loke to avoid having to  explicitly call each
 one of  them out  of just naming  the root of  that part  of the
 packager hierarchy is enough.
 
 No  it's not  necessary,  the wildcard  applies  to any  character
 except slash (not used for packages anyway).
 -- 
  Jean-Baptiste Quenot
 
That's great to hear! 

I now have a new issue. Jean-Baptiste mentions in the JIRA issue that one
*must* include the XxxApplication and XxxSession classes. Well, when I tried
to do so I was unable to access my application. When I included the my
versions of those classes, I received the following:

java.lang.IllegalAccessError: tried to access class
com.ptc.fusion.web.FusionWebApplication$1 from class
com.ptc.fusion.web.FusionWebApplication
at
com.ptc.fusion.web.FusionWebApplication.getSessionFactory(FusionWebApplication.java:137)

The code at that location is:

protected final ISessionFactory getSessionFactory() {
return new ISessionFactory() {
private static final long serialVersionUID = 1L;
public Session newSession(Request request, Response 
response) {
return new 
FusionAuthenticatedWebSession(FusionWebApplication.this,
request);
}
};
}

It seems that there may be a problem with my using
FusionWebApplication.this in the inner class. Is there way around this?
Perhaps another way to refer to the parent class?

Matt



-- 
View this message in context: 
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11333128
Sent from the Wicket - User mailing list archive at Nabble.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] Odd Refresh Page Behavior

2007-06-27 Thread Martijn Dashorst
On 6/27/07, mchack [EMAIL PROTECTED] wrote:
 Forgot to mention I am using Version 1.3.

How recent? Are you working of off head? or an older snapshot? or even beta1?

Martijn

-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] Odd Refresh Page Behavior

2007-06-27 Thread mchack

I am working off of 1.3.0-incubating-beta1.  Pulled that down around the
middle of May. Should I be working off of a different release?



Martijn Dashorst wrote:
 
 On 6/27/07, mchack [EMAIL PROTECTED] wrote:
 Forgot to mention I am using Version 1.3.
 
 How recent? Are you working of off head? or an older snapshot? or even
 beta1?
 
 Martijn
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Odd-Refresh-Page-Behavior-tf3986136.html#a11334625
Sent from the Wicket - User mailing list archive at Nabble.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] Hibernate Query Panel

2007-06-27 Thread howzat

+1 
I too agree that people would be more inclined to use databinder (the whole
thing) if they were able to use a models only package first on their pure
Wicket projects.


Xavier Hanin wrote:
 
 On 6/27/07, Nathan Hamblen [EMAIL PROTECTED] wrote:

 Xavier Hanin wrote:
  I'll try to subscribe to databinder forum (I was not fortunate enough
   first time I tried) and see what nathan think about that. If others
  have a different opinion, let me know.

 It's a highly exclusive place, thanks to link spammers that I would like
 to kill. I'll look out for your registration. (Others, please mail
 [EMAIL PROTECTED] as you are registering to give me a heads-up.)
 
 
 It appears that my registration was ok, I just didn't received the
 confirmation e-mail, but I just managed to post a new topic.
 
 I'm glad to see you're using Databinder with Spring (yay it works),
 though I expected  DataStaticService.setSessionFactory(...) to be called
 only once, from the application's init(). Let's talk about that in the
 forum, if you don't mind. I'd be happy to do anything that makes it
 easier for IoC containers (short of functionally depending on them).
 
 
 Ok, we'll discuss that on the forum, the trick I use was just a quick and
 dirty fix to make it work, since I use databinder only for this panel
 right
 now. But it may change in the future, I'm getting tired of writing
 specific
 detachable models for my POJOs.
 
 And I hate to see any reluctance to use Databinder as a dependency. It's
 there, and it's in the central Maven repository, for people to use.
 
 
 Yes, it was super easy to add this dependency to my project (even if I use
 Ivy and not maven), and even if it's only for this panel, I don't really
 mind. I talked about removing the dependency to make it available to other
 people who don't use databinder. But if it is delivered with databinder,
 it's not a problem.
 
 Perhaps what I should do is split off something like databinder-models
 as an independent dep that doesn't include any request cycle session/txn
 management code. To me having those classes sit in the jar unused is not
 such a big deal, but then I am using them extensively so I guess I have
 a different perspective.
 
 
 It's not a problem for me to embed unused classes, it's not big anyway.
 But
 indeed I think the models have more use cases than other classes, so it
 might be interesting to separate them.
 
 Xavier
 
 Nathan


 -
 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

 
 
 
 -- 
 Xavier Hanin - Independent Java Consultant
 Manage your dependencies with Ivy!
 http://incubator.apache.org/ivy/
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-Query-Panel-tf3986832.html#a11334626
Sent from the Wicket - User mailing list archive at Nabble.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] Odd Refresh Page Behavior

2007-06-27 Thread Eelco Hillenius
 I am working off of 1.3.0-incubating-beta1.  Pulled that down around the
 middle of May. Should I be working off of a different release?

1.3 is still on the move (or has definitively has been). Just to rule
out we're not looking at something that was recently fixed, could you
update to the current snapshot (1.3.0-SNAPSHOT,
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/)?
The beta1 release was primirly meant for the incubation process/ to
prove legal issues, so it doesn't mean much in terms of how good it
technically was. The next release will be more of a technical sound
release :)

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] Odd Refresh Page Behavior

2007-06-27 Thread mchack

Thanks for the info. I upgraded to the latest jar and am still seeing the
same problem.

Refreshing the link to the cached page still results in the error. I have
tried to do some debugging but am not solid enough with the framework to
make much headway. Let me know if you need more info.

Thanks


Eelco Hillenius wrote:
 
 
 1.3 is still on the move (or has definitively has been). Just to rule
 out we're not looking at something that was recently fixed, could you
 update to the current snapshot (1.3.0-SNAPSHOT,
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/)?
 The beta1 release was primirly meant for the incubation process/ to
 prove legal issues, so it doesn't mean much in terms of how good it
 technically was. The next release will be more of a technical sound
 release :)
 
 Eelco
 
 

-- 
View this message in context: 
http://www.nabble.com/Odd-Refresh-Page-Behavior-tf3986136.html#a11334970
Sent from the Wicket - User mailing list archive at Nabble.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] Odd Refresh Page Behavior

2007-06-27 Thread Eelco Hillenius
 Refreshing the link to the cached page still results in the error. I have
 tried to do some debugging but am not solid enough with the framework to
 make much headway. Let me know if you need more info.

Can you show us some code fragments? How to you set the feedback
messages and how do you redirect to that other page? Etc. Have you
been seeing the same thing with the phonebook example?

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] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-27 Thread Watter


Watter wrote:
 
 I now have a new issue. Jean-Baptiste mentions in the JIRA issue that one
 *must* include the XxxApplication and XxxSession classes. Well, when I
 tried to do so I was unable to access my application. When I included the
 my versions of those classes, I received the following:
 
 java.lang.IllegalAccessError: tried to access class
 com.ptc.fusion.web.FusionWebApplication$1 from class
 com.ptc.fusion.web.FusionWebApplication
 at
 com.ptc.fusion.web.FusionWebApplication.getSessionFactory(FusionWebApplication.java:137)
 
 The code at that location is:
 
 protected final ISessionFactory getSessionFactory() {
   return new ISessionFactory() {
   private static final long serialVersionUID = 1L;
   public Session newSession(Request request, Response 
 response) {
   return new 
 FusionAuthenticatedWebSession(FusionWebApplication.this,
 request);
   }
   };
 }
 
 It seems that there may be a problem with my using
 FusionWebApplication.this in the inner class. Is there way around this?
 Perhaps another way to refer to the parent class?
 
I think I found a workaround for at least part of the problem. It seems that
I can override newSession() instead of getSessionFactory() with something
like this:

public Session newSession(Request request, Response response) {
return new FusionAuthenticatedWebSession(this, request);
}

With that, I can get past the error I reported earlier. Unfortunately, I'm
seeing something else now. If I go to a page, then use my browser back
button to go back a page, and then click on any other link, I get a
ClassCastException for FusionAuthenticatedWebSession:

java.lang.ClassCastException:
com.ptc.fusion.web.FusionAuthenticatedWebSession

I retrieve the session in my base page to check a few user variables. It's
there that I get the ClassCastException. Here's the actual code:

User user = ((FusionAuthenticatedWebSession)Session.get()).getUser();

I'll paste the entire stack trace at the end of the message. As I said, this
only happens after using my back button and then clicking on a link as far
as I can tell. Anyway, if anyone has any ideas, they'd be much appreciated.

Thanks,
Matt

---
WicketMessage: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at component
[MarkupContainer [Component id = listOrganizationLink, page =
com.ptc.fusion.web.pages.user.ListUsers, path =
77:adminMenuItems:listOrganizationLink.PageLink, isVisible = true,
isVersioned = true]] threw an exception

Root cause:

java.lang.ClassCastException:
com.ptc.fusion.web.FusionAuthenticatedWebSession
at
com.ptc.fusion.web.FusionAuthenticatedWebSession.get(FusionAuthenticatedWebSession.java:43)
at
com.ptc.fusion.web.pages.template.FusionTemplate$AdminMenuItems.init(FusionTemplate.java:136)
at
com.ptc.fusion.web.pages.template.FusionTemplate.init(FusionTemplate.java:71)
at
com.ptc.fusion.web.pages.ListOrganization.init(ListOrganization.java:35)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at org.apache.wicket.markup.html.link.PageLink$1.getPage(PageLink.java:66)
at org.apache.wicket.markup.html.link.PageLink.onClick(PageLink.java:153)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:222)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:186)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1031)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:127)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:173)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 

Re: [Wicket-user] Odd Refresh Page Behavior

2007-06-27 Thread mchack

Looks like I hadn't properly deployed the new jar. I am in the process of
deploying it and will retest and let you know the results. I will let you
know the results once I have things up and running.

Thanks for the patience.



Eelco Hillenius wrote:
 
 Can you show us some code fragments? How to you set the feedback
 messages and how do you redirect to that other page? Etc. Have you
 been seeing the same thing with the phonebook example?
 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Odd-Refresh-Page-Behavior-tf3986136.html#a11336716
Sent from the Wicket - User mailing list archive at Nabble.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] Odd Refresh Page Behavior

2007-06-27 Thread mchack

I have successfully deployed and verified that the behavior still seems to be
in error. I have not actually run the phonebook application but was using it
as a pattern.

Following code shows how link to the edit page is being created.

protected void populateItem(final Item item)
{
User user = (User)item.getModelObject();
Link link = new Link(editLink,item.getModel())
{
/**
 * Go to the Edit page, passing this 
page and the id of the
 * Contact involved.
 */
public void onClick() {
setResponsePage(new 
EditUserPage(getPage(), getModel()));
//setResponsePage(new 
EditUserPage(new Index(null), getModel()));

}

};  

item.add(link); 
link.add(new Label(name, user.getName()));  
item.add(new Label(role, user.getRole()));
item.add(new Label(email, user.getEmail()));

item.add(new AttributeModifier(class, true, 
new
AbstractReadOnlyModel()
{
public Object getObject() 
{
return (item.getIndex() % 2 == 
1) ? even : odd;
}
}));

}
};

Here is the Edit User Page constructor signature:

public EditUserPage(Page backPage, IModel userModel) {
this.backPage = backPage;

Here is where the where the links back are generated.

form.add(new Button(cancel) {
public void onSubmit() {
String msg = 
getLocalizer().getString(status.cancel, this);
getSession().info(msg);
setResponsePage(EditUserPage.this.backPage);
}
}.setDefaultFormProcessing(false));

form.add(new Button(save) {
public void onSubmit() {
User user = (User) getForm().getModelObject();
dao.save(user);

String msg = 
MapVariableInterpolator.interpolate(getLocalizer()
.getString(status.save, 
this), new MicroMap(name,
user.getName()));

getSession().info(msg);

//setResponsePage(EditUserPage.this.backPage);

redirectToInterceptPage(EditUserPage.this.backPage);
}
});

form.add(new Button(delete) {
public void onSubmit() {
User user = (User) getForm().getModelObject();
dao.delete(user.getId());

String msg = 
MapVariableInterpolator.interpolate(getLocalizer()
.getString(status.delete, 
this), new MicroMap(name,
user.getName()));

getSession().info(msg);

//setResponsePage(EditUserPage.this.backPage);

redirectToInterceptPage(EditUserPage.this.backPage);
}



form.add(new Button(cancel) {
public void onSubmit() {
String msg = 
getLocalizer().getString(status.cancel, this);
getSession().info(msg);
setResponsePage(EditUserPage.this.backPage);
}
}.setDefaultFormProcessing(false));

form.add(new Button(save) {
public void onSubmit() {
User user = (User) getForm().getModelObject();
dao.save(user);

String msg = 
MapVariableInterpolator.interpolate(getLocalizer()
.getString(status.save, 
this), new MicroMap(name,
  

Re: [Wicket-user] javascript error 'too much recursion'ifcalendar.js is included more than once

2007-06-27 Thread Nili Adoram
sorry for lighting the fire.
you're doing a great job :)
However, when I tried to upgrade to 1.2.6 many errors were thrown.
Since I'm very short on time due to deadline, I had to postpone this
upgrade until our software is released.


Matej Knopp wrote:
 Of course not. I believe we did our best. But there were couple of
 changes (such as short-int, etc) that needs recompiling. And again,
 this was not intentional, it just happened.

 -Matej

 On 6/27/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   
 I remember many quarrels about maintaining binary compatibility... Are
 you saying those were for nothing?

 /me crawls back in cave

 Martijn

 On 6/27/07, Matej Knopp [EMAIL PROTECTED] wrote:
 
 I believe even i 1.2.6 isn't binary compatible (there might be some
 very small minor changes that slipped in by accident), it's still
 should be almost drop-in replacement, and the upgrade should be rather
 painless.

 Wicket 1.2.2 is from august 2006, that's almost a year ago.

 -Matej
   
 --
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 -
 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

   

-
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] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-27 Thread Peter Thomas

On 6/28/07, Watter [EMAIL PROTECTED] wrote:




Watter wrote:

 I now have a new issue. Jean-Baptiste mentions in the JIRA issue that
one
 *must* include the XxxApplication and XxxSession classes. Well, when I
 tried to do so I was unable to access my application. When I included
the
 my versions of those classes, I received the following:

 java.lang.IllegalAccessError: tried to access class
 com.ptc.fusion.web.FusionWebApplication$1 from class
 com.ptc.fusion.web.FusionWebApplication
 at
 com.ptc.fusion.web.FusionWebApplication.getSessionFactory(
FusionWebApplication.java:137)

 The code at that location is:

 protected final ISessionFactory getSessionFactory() {
   return new ISessionFactory() {
   private static final long serialVersionUID = 1L;
   public Session newSession(Request request,
Response response) {
   return new FusionAuthenticatedWebSession(
FusionWebApplication.this,
 request);
   }
   };
 }

 It seems that there may be a problem with my using
 FusionWebApplication.this in the inner class. Is there way around
this?
 Perhaps another way to refer to the parent class?

I think I found a workaround for at least part of the problem. It seems
that
I can override newSession() instead of getSessionFactory() with something
like this:

public Session newSession(Request request, Response response) {
return new FusionAuthenticatedWebSession(this, request);
}

With that, I can get past the error I reported earlier. Unfortunately, I'm
seeing something else now. If I go to a page, then use my browser back
button to go back a page, and then click on any other link, I get a
ClassCastException for FusionAuthenticatedWebSession:

java.lang.ClassCastException:
com.ptc.fusion.web.FusionAuthenticatedWebSession

I retrieve the session in my base page to check a few user variables. It's
there that I get the ClassCastException. Here's the actual code:

User user = ((FusionAuthenticatedWebSession)Session.get()).getUser();

I'll paste the entire stack trace at the end of the message. As I said,
this
only happens after using my back button and then clicking on a link as far
as I can tell. Anyway, if anyone has any ideas, they'd be much
appreciated.

Thanks,
Matt



Good to hear that the wildcard applies to all characters and you don't have
to explicitly exclude all sub packages.  I was of course trying all kinds of
options as I was deperate at the time : )

I actually continued to have problems after closing the JIRA issue, but
realized only after submitting the login page and getting a reference to the
session User very similar to your case.  But then I realized I had Acegi
also in the works so after excluding org.acegisecurity.* things are fine.
Maybe something similar for you also.

Thanks,

Peter.


---

WicketMessage: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at component
[MarkupContainer [Component id = listOrganizationLink, page =
com.ptc.fusion.web.pages.user.ListUsers, path =
77:adminMenuItems:listOrganizationLink.PageLink, isVisible = true,
isVersioned = true]] threw an exception

Root cause:

java.lang.ClassCastException:
com.ptc.fusion.web.FusionAuthenticatedWebSession
at
com.ptc.fusion.web.FusionAuthenticatedWebSession.get(
FusionAuthenticatedWebSession.java:43)
at
com.ptc.fusion.web.pages.template.FusionTemplate$AdminMenuItems.init(
FusionTemplate.java:136)
at
com.ptc.fusion.web.pages.template.FusionTemplate.init(
FusionTemplate.java:71)
at
com.ptc.fusion.web.pages.ListOrganization.init(ListOrganization.java:35)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.wicket.session.DefaultPageFactory.newPage(
DefaultPageFactory.java:58)
at org.apache.wicket.markup.html.link.PageLink$1.getPage(PageLink.java:66)
at org.apache.wicket.markup.html.link.PageLink.onClick(PageLink.java:153)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:222)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.wicket.RequestListenerInterface.invoke(
RequestListenerInterface.java:186)
at

org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(
AbstractRequestCycleProcessor.java:90)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1031)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
:257)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
:127)
at