Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-09-08 Thread wq

 I made it. 
I replace this line
--table.addTopToolbar(new FilterToolbar(table,provider));

with

--add(new FilterPanel(filter-panel,table,provider));

the Filterpanel is copied from FilterToolbar with some modification and not
added into table,the filterform is now out of table.

it works fine!

Thanks Igor!


igor.vaynberg wrote:
 
 noep, no sample code. just try taking the original toolbar and removing
 the
 form it creates - and pass one into the constructor instead.
 
 -Igor
 
 
 On 9/6/06, wq [EMAIL PROTECTED] wrote:


 thanks Igor!

 without a form, how can I get the filter input?
 have some sample codes?

 can I move the filterform out of the table?





 igor.vaynberg wrote:
 
  filter toolbar was not meant to be embedded in another form because it
  uses
  a form of its own, so for right now i would say that usecase is not
  supported. please add an rfe for it.
 
  if you want one right now then you have to create your own variant that
  doesnt use an embedded form. it would be pretty much a copy and paste
 job
  of
  the current toolbar but w/out the form.
 
  -Igor
 
 
  On 8/31/06, wq [EMAIL PROTECTED] wrote:
 
 
  HELP! HELP!
 
 
 
  wq wrote:
  
   final CheckGroup group=new CheckGroup(group, new ArrayList());
   ...
   group.add(new CheckGroupSelector(groupselector));
   ..
   SortableWapSrcDataProvider provider = new
 SortableWapSrcDataProvider();
   DefaultDataTable table = new
   DefaultDataTable(table,columns,provider,30);
   table.addTopToolbar(new FilterToolbar(table,provider));
   group.add(table);
   form.add(group);
  
http://www.nabble.com/user-files/235815/Snap1.gif
  
   the html file is:
   form wicket:id=form
 span wicket:id=group
 nbsp;nbsp;nbsp;input type=checkbox
   wicket:id=groupselector全选/清除/inputbr/
 table class=dataview cellspacing=0
  wicket:id=table[table]/table
 /span
 input type=submit value=确定 /
   /form
  
   when I click the 'groupselector', the theckbox in filtertable cannot
 be
   checked. If the filtertoolbar is removed,all works fine.
   I suppose it is the filterform in  filtertable that  blocks the
   groupselect javascript.
  
   How can I do? very thanks!
  
 
  --
  View this message in context:
 
 http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6078904
  Sent from the Wicket - User forum at Nabble.com.
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6170501
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6203673
Sent from the Wicket - User forum at Nabble.com.



Re: [Wicket-user] Abstraction of Google Maps API?

2006-09-08 Thread Iulian Costan
please check this out: http://syca.4java.ca/gmap//iulianOn 9/7/06, Erik van Oosten 
[EMAIL PROTECTED] wrote:Nice.Is there an example application running somewhere?
 Erik.Frank Bille schreef: There is something in Wicket-Stuff: http://svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap/
 http://svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap-examples/--Erik van Oosten
http://day-to-day-stuff.blogspot.com/-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Abstraction of Google Maps API?

2006-09-08 Thread Erik van Oosten
That is a very very nice implementation.

Thanks Iulian,
 Erik.


Iulian Costan schreef:
 please check this out: http://syca.4java.ca/gmap/

 /iulian


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.1 and ModalDialog problem

2006-09-08 Thread shumbola
Should I provide some other forms of code in order to get help?
No developer using wicket faced similar problem? Maybe my approach is
not correct?

Regards,
shumbola

 All,

 I've got this simple use case:

 On compose e-mail page click on some button that shows list of users
 in modal window and after user chooses the the user(s), the modal
 window closes and compose page updated with the address of choosen
 user. Here is the simple html test case:

 --compose.html
 html
 head
 script
 var UserListRef = null;
 function ListUsers()
 {
 if(window.showModalDialog) //IE
 {
 window.showModalDialog(listusers.html,
 document, dialogHeight: 120px; dialogWidth: 400px; help: no;
 status: no)
 return false;
 }
 else //FF, did not test other browsers due to lack of those
 {
 if(UserListRef == null || UserListRef.closed)
 UserListRef = window.open(listusers.html,
 document, height=120px, width=400px, help=no, status=no,
 dialog=yes, modal=yes);
 else
 UserListRef.focus();
 }
 }
 /script
 /head

 body
 input  id=to_user type=text name=touser title=email value= 
 
 input type=button value=... title=User list onclick=return 
 ListUsers()
 /body
 /html

 --listusers.html
 html
 script
 /script
 script language=javascript
 function Close()
 {
 if(window.showModalDialog) //IE
 {
 n = dialogArguments.getElementById(to_user);
 n.value = document.getElementById(user).value;
 window.close();
 }
 else //FF
 {
 var o = window.opener.document.getElementById((to_user));
 o.value = document.getElementById(user).value;
 window.close();
 }
 }
 /script

 body
 select id=user
 option value=[EMAIL PROTECTED]
 user1
 /option
 option value=[EMAIL PROTECTED]
 user2
 /option
 /select
 input type=button value=OK onclick=Close()
 /body
 /html


 Now, with static html files it works as expected, i.e., on ...
 button click we have modal window with list of users.

 jsp page with struts action works as expected, too.

 I'm having trouble with porting this code into wicket. For the first
 time when one clicks the ... button, modal dialog comes up. For the
 following clicks, IE opens up both a new window and the modal dialog
 with the same contents.
 With FF it works as expected.

 I suspect, it has something to do with pagemaps or versioning, but how
 could I know, I'm new to wicket world. Please, help me.

 Here are relevant wicket code:

 --Compose
 public class Compose extends MyAuthenticatedPage {
 public Compose() {
 add(new Label(message, here we will compose a new message));
 PopupSettings popupSettings = new
 MyPopupSettings(PageMap.forName(popup)).
 setHeight(500).setWidth(500);
 Link listUsers = new PageLink(listUsers, ListUsers.class);
 listUsers.setPopupSettings(popupSettings);
 add(listUsers);
 }
 }
 --ListUsers
 public class ListUsers extends WebPage {
 public ListUsers() {
 }
 }
 --MyPopupSettings
 public class MyPopupSettings  extends PopupSettings {
  same as in PopupSettings except the following
 public String getPopupJavaScript()
 {
 String windowTitle = windowName;

 if (windowTitle == null)
 {
 windowTitle = ;
 }
 else
 {
 // Fix for IE bug.
 windowTitle = windowTitle.replace(':', '_');
 }

 StringBuffer script =
 new StringBuffer(if(window.showModalDialog) { 
 window.showModalDialog();
 script.append(target).append(, document, );

 script.append('dialogHeight:120px; dialogWidth:400px;
 help:no; status:no'); ).append( return false; });

 script.append( else { if(UserListRef == null ||
 UserListRef.closed) UserListRef = window.open();
 script.append(target).append(, document, );
 script.append('height=120px, width=400px, help=no,
 status=no, dialog=yes, modal=yes');
 script.append(); ).append( else UserListRef.focus();});
 return script.toString();
 }

 }

 BTW, in order to make a different javascript code I copy-pasted entire
 content of PopupSettings and made a new getPopupSettings function. Is
 there other way around?

 Thank you.

 Regards,
 shumbola


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 

Re: [Wicket-user] Infinite Loop on Session.getPage()

2006-09-08 Thread Johan Compagner
Thx,Currently we release the pages only at the end of the request anyway. So what we can dois just remove everything out of the used map for the current thread always after the requestand call notify all..
Then it should always be cleanup.johanOn 9/8/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote:I get how that happens now. Thanks for tracing and explaining. Nastyone. I opened up a bug
http://sourceforge.net/tracker/index.php?func=detailaid=1554508group_id=119783atid=684975
and assigned it to Johan to look at if he has some spare time.EelcoOn 9/7/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: Well here's a trace of what happens that causes the problem :
 During the RESOLVE_TARGET step of RequestCycle, the target is trying to be resolved using the DefaultRequestTargetResolverStrategy, which first inside the resolveRenderedPage() method uses Session.getPage
() to get the page,(which adds it to the usedPages map,a hidden side-effect imho),and then calls resolveListenerInterfaceTarget() where it retrieves the Component for the path and calls isVisibleInHierarchy() on it. This
 method throws an exception in my application, which is caught back in the RequestCycle. Now, the target didn't have a chance to be added to requestTargets, but the page has been added to the usedPages. In the
 detach phase, the requestTargets are detached one by one, which in this case is only the exception page generated. So when i push back and click on another link with the same page id, it'll fall into the loop
 mentioned, cause the thread hasn't been cleared. I guess this somehow means a problem with the usedPages map, where it should be cleared on an exception. Iman -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AJAX degrade and Hot deployment scanning with jetty

2006-09-08 Thread Chan Man Kam
Are there any method to degrade the all the wicket AJAX
component to a normal request? It may be useful for debugging.

I am using jetty http server 5.0, wicket 1.2.2 and jetty launcher
to develop and test my project, but after I changed my java
source code, the server cannot updated until I restart the server.
The server can only update the html file I modified.

If I changed to use jetty 6.0 and run the project with
maven (I use datebinder 0.7 to set up my workspace),
the server can update the changes of my java classes, but
it cannot update the changes of the html files. Although I
setup the scanTargets

scanTargets
scanTargetsrc/main/java/scanTarget
/scanTargets

maven can detect the changes of my html files, but I
cannot update the html files until I restart the
server.

I already tried these method:

getResourceSettings()
.setResourcePollFrequency(Duration.ONE_SECOND);
IResourceFinder resfinder = this.getResourceSettings()
.getResourceFinder();
resfinder.find(C:\\Documents and Settings\\workspace\\project\\);
this.getResourceSettings().setResourceFinder(resfinder);

But the above problem still exists.

Thanks in advance,

Man Kam





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX degrade and Hot deployment scanning with jetty

2006-09-08 Thread Frank Bille
What I do to hot deploy in Eclipse is setting configure to DEVELOPMENT in init:...class MyApplication extends WebApplication {... init() {... configure(DEVELOPMENT);... }
...}This gives you hot update of resources (HTML). For java code run the jetty launcher as debug. Debug gives you hot deploy.If you find something smarter please let me know.Frank
On 9/8/06, Chan Man Kam [EMAIL PROTECTED] wrote:
Are there any method to degrade the all the wicket AJAXcomponent to a normal request? It may be useful for debugging.I am using jetty http server 5.0, wicket 1.2.2 and jetty launcherto develop and test my project, but after I changed my java
source code, the server cannot updated until I restart the server.The server can only update the html file I modified.If I changed to use jetty 6.0 and run the project withmaven (I use datebinder 0.7 to set up my workspace),
the server can update the changes of my java classes, butit cannot update the changes of the html files. Although Isetup the scanTargetsscanTargetsscanTargetsrc/main/java/scanTarget
/scanTargetsmaven can detect the changes of my html files, but Icannot update the html files until I restart theserver.I already tried these method:getResourceSettings().setResourcePollFrequency(
Duration.ONE_SECOND);IResourceFinder resfinder = this.getResourceSettings().getResourceFinder();resfinder.find(C:\\Documents and Settings\\workspace\\project\\);this.getResourceSettings().setResourceFinder(resfinder);
But the above problem still exists.Thanks in advance,Man Kam-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX degrade and Hot deployment scanning with jetty

2006-09-08 Thread Johan Compagner
Frank frank!this is bad advice!don't call the configure method yourself. That shouldn't be done.Because configure m ethod is always already calledWhat you should do is set in through the web.xml in deployment mode (or developerment if you always want to be in development mode)
But if you have it in deployment configured. And you want to debug through it now.Configure tomcat or jetty launcher that it sets a system property-Dwicket.configuration=DEVELOPMENTThen by default if you deploy it is in deployment. (no files touched) and in the developer you still have development mode.
johanOn 9/8/06, Frank Bille [EMAIL PROTECTED] wrote:
What I do to hot deploy in Eclipse is setting configure to DEVELOPMENT in init:...class MyApplication extends WebApplication {... init() {... configure(DEVELOPMENT);... }

...}This gives you hot update of resources (HTML). For java code run the jetty launcher as debug. Debug gives you hot deploy.If you find something smarter please let me know.Frank

On 9/8/06, Chan Man Kam 
[EMAIL PROTECTED] wrote:

Are there any method to degrade the all the wicket AJAXcomponent to a normal request? It may be useful for debugging.I am using jetty http server 5.0, wicket 1.2.2 and jetty launcherto develop and test my project, but after I changed my java
source code, the server cannot updated until I restart the server.The server can only update the html file I modified.If I changed to use jetty 6.0 and run the project withmaven (I use datebinder 0.7 to set up my workspace),
the server can update the changes of my java classes, butit cannot update the changes of the html files. Although Isetup the scanTargetsscanTargetsscanTargetsrc/main/java/scanTarget
/scanTargetsmaven can detect the changes of my html files, but Icannot update the html files until I restart theserver.I already tried these method:getResourceSettings().setResourcePollFrequency(
Duration.ONE_SECOND);IResourceFinder resfinder = this.getResourceSettings().getResourceFinder();resfinder.find(C:\\Documents and Settings\\workspace\\project\\);this.getResourceSettings().setResourceFinder(resfinder);
But the above problem still exists.Thanks in advance,Man Kam-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom date component...

2006-09-08 Thread Andrew Lombardi
On Sep 7, 2006, at 3:09 PM, Erik Brakkee wrote: Andrew Lombardi wrote: Erik,  I had similar issues with the DatePicker for various reasons.  After some help from Nick and Igor I built a 3 dropdown component for choosing date similar to what you describe below.  Check out my blog entry for details on it:  http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/  Excellent! This is exactly what I need. By the way, I think a component like this should also be part of wicket extensions. There is no need for a one-size-fits all date component and in practice you encounter many different types of date choosers. The advantage of the dropdown version over the _javascript_ version in my opinion is that you can use the keyboard and that it doesn't give you a popup and force a user to use the mouse.  An experienced user should be able to use the interface with the keyboard only I think. yeah, having it as a secondary option in wicket-extensions might be nice.  I believe I can create a wicket-contrib project with this on it.  Just so its available somewhere   basically you want to create a DateModel which holds a Date object passed in to your component and override getObject to return the appropriate value based on the field you want, MONTH, DAY_OF_MONTH, YEAR. []  I have just read your blog.  I will try it out tomorrow.   validation would probably be easiest just to use some client-side _javascript_.  Or use the validation support of the FormComponent. I had also looked around a bit and discovered that the problem was that Panel doesn't extend FormComponent. Because of this I was a bit reluctant about writing a component myself because I don't know the APIs for rendering HTML. But I really like your solution. You solved it by implementing the custom component, adding three nested components to it, and then you provide a custom Panel for generating the HTML markup. This is surely an interesting pattern that I would want to use as well. good deal :)  Cheers   ErikCheers,  andrew  On Sep 7, 2006, at 2:29 AM, Erik Brakkee wrote:Hi,I have tried to use the DatePicker component but somehow it doesn'treally work on Firefox 1.5 on linux. For instance, it only shows theeven years, and has strange behavior resetting fields.Therefore, I want to write my own date component. Very simple, threedrop down choices for year, month, and day of month respectively. I amnow using a Panel component for this. The problem is here that the stateof my DateChooser is represented by three String fields for year, month,and day of month, whereas my model is represented as a java.util.Date inthe IModel (PropertyModel).Now, when I make sure that my DropDownChoice implementation haswantOnSelectionChangedNotification() returning true, I get notified ofevery change and in this callback I can set the model to the appropriatedate by using the three String field values as input. Problem is that ifthe user doesn't change the date, then no date will be set. Furthermore,a server round-trip is not necessary so I would like to get rid of this.I would like to avoid server round trips, make sure the model is set onsubmit of the form, and also I would like to use validation of the date(the day of month could be out of range).  How would I solve this problem?Cheers  Erik-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user   To our success!Andrew Lombardi:  Mystic Coders, LLC - Coding Magic  contact | [EMAIL PROTECTED] - 714-697-8046 | aim - nlpjunke  This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.   -
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642  ___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   -Using 

[Wicket-user] DatePicker enabled

2006-09-08 Thread Charles A Deal

I am using the DatePicker (wicket.extensions.markup.html.datepicker)
Panel on one of my forms. I want it to start out disabled so I called
setEnabled(false) on the object. However, I can still click on the
DatePicker icon. 

Admittedly, I am still very new to this,
but after looking at the code, it looks like the TriggerButton is not picking
up the settings from the Parent. So, the TriggerButton doesn't know
that it is supposed to be disabled. Is this a correct statement?


Charles Deal
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Infinite Loop on Session.getPage()

2006-09-08 Thread Eelco Hillenius
But if you have two threads working on that page, the first thread to
end would also remove the page reference for the second?

Eelco


On 9/8/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Thx,
 Currently we release the pages only at the end of the request anyway. So
 what we can do
 is just remove everything out of the used map for the current thread always
 after the request
 and call notify all..

  Then it should always be cleanup.

 johan



 On 9/8/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
  I get how that happens now. Thanks for tracing and explaining. Nasty
  one. I opened up a bug
 
 http://sourceforge.net/tracker/index.php?func=detailaid=1554508group_id=119783atid=684975
  and assigned it to Johan to look at if he has some spare time.
 
  Eelco
 
  On 9/7/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
   Well here's a trace of what happens that causes the problem :
   During the RESOLVE_TARGET step of RequestCycle, the target is trying to
   be resolved using the
 DefaultRequestTargetResolverStrategy, which first
   inside the resolveRenderedPage() method uses Session.getPage () to get
   the page,(which adds it to the usedPages map,a hidden side-effect
   imho),and then calls resolveListenerInterfaceTarget()
 where it retrieves
   the Component for the path and calls isVisibleInHierarchy() on it. This
   method throws an exception in my application, which is caught back in
   the RequestCycle. Now, the target didn't have a chance to be added to
   requestTargets, but the page has been added to the usedPages. In the
   detach phase, the requestTargets are detached one by one, which in this
   case is only the exception page generated. So when i push back and click
   on another link with the same page id, it'll fall into the loop
   mentioned, cause the thread hasn't been cleared. I guess this somehow
   means a problem with the usedPages map, where it should be cleared on an
   exception.
  
   Iman
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
 easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX degrade and Hot deployment scanning with jetty

2006-09-08 Thread Igor Vaynberg
billen-IgorOn 9/8/06, Johan Compagner [EMAIL PROTECTED] wrote:
Frank frank!this is bad advice!don't call the configure method yourself. That shouldn't be done.Because configure m ethod is always already calledWhat you should do is set in through the web.xml in deployment mode (or developerment if you always want to be in development mode)
But if you have it in deployment configured. And you want to debug through it now.Configure tomcat or jetty launcher that it sets a system property-Dwicket.configuration=DEVELOPMENTThen by default if you deploy it is in deployment. (no files touched) and in the developer you still have development mode.
johanOn 9/8/06, Frank Bille 
[EMAIL PROTECTED] wrote:
What I do to hot deploy in Eclipse is setting configure to DEVELOPMENT in init:...class MyApplication extends WebApplication {... init() {... configure(DEVELOPMENT);... }

...}This gives you hot update of resources (HTML). For java code run the jetty launcher as debug. Debug gives you hot deploy.If you find something smarter please let me know.Frank


On 9/8/06, Chan Man Kam 

[EMAIL PROTECTED] wrote:

Are there any method to degrade the all the wicket AJAXcomponent to a normal request? It may be useful for debugging.I am using jetty http server 5.0, wicket 1.2.2 and jetty launcherto develop and test my project, but after I changed my java
source code, the server cannot updated until I restart the server.The server can only update the html file I modified.If I changed to use jetty 6.0 and run the project withmaven (I use datebinder 0.7 to set up my workspace),
the server can update the changes of my java classes, butit cannot update the changes of the html files. Although Isetup the scanTargetsscanTargetsscanTargetsrc/main/java/scanTarget
/scanTargetsmaven can detect the changes of my html files, but Icannot update the html files until I restart theserver.I already tried these method:getResourceSettings().setResourcePollFrequency(
Duration.ONE_SECOND);IResourceFinder resfinder = this.getResourceSettings().getResourceFinder();resfinder.find(C:\\Documents and Settings\\workspace\\project\\);this.getResourceSettings().setResourceFinder(resfinder);
But the above problem still exists.Thanks in advance,Man Kam-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo


http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list


Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Infinite Loop on Session.getPage()

2006-09-08 Thread Igor Vaynberg
you cant have two threads working on a page - thats the whole point of syncing :)-IgorOn 9/8/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:But if you have two threads working on that page, the first thread to
end would also remove the page reference for the second?EelcoOn 9/8/06, Johan Compagner [EMAIL PROTECTED] wrote: Thx, Currently we release the pages only at the end of the request anyway. So
 what we can do is just remove everything out of the used map for the current thread always after the request and call notify all..Then it should always be cleanup.
 johan On 9/8/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:  I get how that happens now. Thanks for tracing and explaining. Nasty
  one. I opened up a bug  http://sourceforge.net/tracker/index.php?func=detailaid=1554508group_id=119783atid=684975
  and assigned it to Johan to look at if he has some spare time.   Eelco   On 9/7/06, Iman Rahmatizadeh [EMAIL PROTECTED]
 wrote:   Well here's a trace of what happens that causes the problem :   During the RESOLVE_TARGET step of RequestCycle, the target is trying to   be resolved using the
 DefaultRequestTargetResolverStrategy, which first   inside the resolveRenderedPage() method uses Session.getPage () to get   the page,(which adds it to the usedPages map,a hidden side-effect
   imho),and then calls resolveListenerInterfaceTarget() where it retrieves   the Component for the path and calls isVisibleInHierarchy() on it. This   method throws an exception in my application, which is caught back in
   the RequestCycle. Now, the target didn't have a chance to be added to   requestTargets, but the page has been added to the usedPages. In the   detach phase, the requestTargets are detached one by one, which in this
   case is only the exception page generated. So when i push back and click   on another link with the same page id, it'll fall into the loop   mentioned, cause the thread hasn't been cleared. I guess this somehow
   means a problem with the usedPages map, where it should be cleared on an   exception. Iman -
   Using Tomcat but need to do more? Need to support web services, security?   Get stuff done quickly with pre-integrated technology to make your job easier   Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user -
  Using Tomcat but need to do more? Need to support web services, security?  Get stuff done quickly with pre-integrated technology to make your job easier  Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Infinite Loop on Session.getPage()

2006-09-08 Thread Eelco Hillenius
Yes smartass, of course. That's why the wait (on session) is there.
However, if you look at this:

Thread t = (Thread)usedPages.get(id);
while (t != null  t != Thread.currentThread())
{
try
{
wait(1000);
}
catch (InterruptedException ex)
{
throw new WicketRuntimeException(ex);
}
t = (Thread)usedPages.get(id);
}
usedPages.put(id, Thread.currentThread());

and

final synchronized void pageDetached(Page page)
{
usedPages.remove(page.getId());
notifyAll();
}

I believe that because of the above method Johan proposes

final synchronized void pageDetached(Page page)
{
usedPages.clear();
notifyAll();
}

But that would have the effect that syncing would only work for the
first thread, but a second and third thread would would be a problem,
right?

Or do you propose something else, Johan?

Eelco

On 9/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you cant have two threads working on a page - thats the whole point of
 syncing :)

 -Igor



 On 9/8/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
 
 But if you have two threads working on that page, the first thread to
 end would also remove the page reference for the second?

 Eelco


 On 9/8/06, Johan Compagner [EMAIL PROTECTED] wrote:
  Thx,
  Currently we release the pages only at the end of the request anyway. So
  what we can do
  is just remove everything out of the used map for the current thread
 always
  after the request
  and call notify all..
 
   Then it should always be cleanup.
 
  johan
 
 
 
  On 9/8/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
   I get how that happens now. Thanks for tracing and explaining. Nasty
   one. I opened up a bug
  
 
 http://sourceforge.net/tracker/index.php?func=detailaid=1554508group_id=119783atid=684975
   and assigned it to Johan to look at if he has some spare time.
  
   Eelco
  
   On 9/7/06, Iman Rahmatizadeh [EMAIL PROTECTED]  wrote:
Well here's a trace of what happens that causes the problem :
During the RESOLVE_TARGET step of RequestCycle, the target is trying
 to
be resolved using the
  DefaultRequestTargetResolverStrategy, which first
inside the resolveRenderedPage() method uses Session.getPage () to get
the page,(which adds it to the usedPages map,a hidden side-effect
imho),and then calls resolveListenerInterfaceTarget()
  where it retrieves
the Component for the path and calls isVisibleInHierarchy() on it.
 This
method throws an exception in my application, which is caught back in
the RequestCycle. Now, the target didn't have a chance to be added to
requestTargets, but the page has been added to the usedPages. In the
detach phase, the requestTargets are detached one by one, which in
 this
case is only the exception page generated. So when i push back and
 click
on another link with the same page id, it'll fall into the loop
mentioned, cause the thread hasn't been cleared. I guess this somehow
means a problem with the usedPages map, where it should be cleared on
 an
exception.
   
Iman
   
   
 
 -
Using Tomcat but need to do more? Need to support web services,
  security?
Get stuff done quickly with pre-integrated technology to make your job
  easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
   
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
  easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server