[Wicket-user] Current wicket news and mailing lists

2006-10-20 Thread jan_bar
Hi,

news://gmane.com.java.wicket.devel seems to be dead now,
news://gmane.com.java.wicket.user still works. What are the current
available news feeds for development questions?
I did not found anything on http://incubator.apache.org/projects/wicket.
Also the project info web site http://incubator.apache.org/wicket/ doesn't
work

Thanks, Jan




-
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] Using AjaxEventBehavior On A Page Component

2006-10-20 Thread Frank Bille
On 10/20/06, Matthew P. Tilchen [EMAIL PROTECTED] wrote:
Unfortunately the mozilla-based browsers do notinclude the keyCode attribute on the event, it always comes throughas 0 for any key. The other browsers do include the correct unicodevalue.
Hmm, do you mean in terms of onkey* on body tag? I'll try to look at it to see if there is some work around.Frank
-
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] Current wicket news and mailing lists

2006-10-20 Thread Frank Bille
http://mail-archives.apache.org/mod_mbox/incubator-wicket-dev/On 10/20/06, jan_bar
 [EMAIL PROTECTED] wrote:Hi,
news://gmane.com.java.wicket.devel seems to be dead now,news://gmane.com.java.wicket.user still works. What are the currentavailable news feeds for development questions?I did not found anything on 
http://incubator.apache.org/projects/wicket.Also the project info web site http://incubator.apache.org/wicket/ doesn'tworkThanks, Jan
-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Fwd: Wicket CMS

2006-10-20 Thread Ted Roeloffzen
-- Forwarded message --From: Joe Toth [EMAIL PROTECTED]Date: 19-okt-2006 17:16Subject: Re: Wicket CMS
To: Ted Roeloffzen [EMAIL PROTECTED]Here are a few suggestions to start out with. You can repost on the list if you want.I would say you should break this project up into 2 parts, like how I did for wicket-cms.
wicket-cms and wicket-cms-example
This will create a very modular design so others can reuse wicket-cms in their own applications. You will be designing your core system as though you are a user of the system too, so you will be forced to make it as extensible/modular/componentized as possible. If everything is tightly coupled then you limit the reusability of the components. Plus its also nice to see how to integrate a product with an existing system.
Here are a few starting points:1. Make sure the authorization class is an interface that can be implemented by others to integrate in their own system's authorization backend. 2. Keep as many components Panel-centric as possible. 
For instance if you have a component that displays a list of files/content managable by a user I think the abstraction should be something like...AbstractContentBrowserPanel- This would display a DataTable with hooks like abstract public onContentNameClick(Content content);
ContentBrowserPanel- This would be a default implementation of the AbstractContentBrowserPanel that implemented onContentNameClick(Content content) to something like setResponsePage(new ViewContent(content))

As you can see, now if a user wants to have a page that displays a list of content, but instead of taking them to the ViewContent page when they click on a name, they can implement AbstractContentBrowserPanel.onContentNameClick

(Content content) with something like setPage(new ContentEditor(content))3. Use as much CSS as possible for layout and design. Others can then override your classes with their own style sheet(s) to keep the layout/design consistent with their own.
The core system probably doesn't even need a custom database schema, I could be wrong, depending on the features required. But, since you are using JackRabbit to store content that eliminates the needed for a lot of custom data structures. wicket-cms-example would need a database of course. Let me give you an example how I would authorize a user to edit a piece of content:
// This would be part of wicket-cmspublic interface CMSSecurity { boolean hasPermission(Permission permission);}// This would be part of wicket-cms-examplepublic class MyCustomCMSSecurityImpl {
 boolean hasPermission(Permission permission) { boolean hasPermission = false; // lookup user in database User user = session().load(User.class, CustomSession.get().getUsername());

 if (user.getRoles().contains(permission.getAction() + -role) { hasPermission = true; }  return hasPermission; }}public class ContentEditorPanel {
 ContentEditorPanel(final Content content) { Permission permission = new Permission() { public String getAction() { return edit; }
 public Content getContent() { return content; } }; // get CMSSecurity implementation from somewhere, like the application if (!CMSApplication.getCMSSecurity().hasPermission(permission)) {
 throw new AccessDeniedException(); } }}Note: General programming suggestion for reusability. Encapsulate finer grained objects in a wrapper object, like how Permission is above. This is better than passing everything in a granular fashion, like breaking it up into Content content, String role, etc. 
Because now if you want to add another piece of the system to authorize against you can just add it to the Permission object without breaking the API. If you break the API, everyone that uses it will have to recode their stuff that users it.
I hope all this makes sense, its hard to explain quickly. Let me know if you have any questions.Thanks for keeping me posted.
On 10/19/06, 
Ted Roeloffzen [EMAIL PROTECTED] wrote:

He Joe,Here is the first, very basic design, for the blog.It's all very basic. i.e. There is a single class defined for the access control.This has to be specified more, but that is something for later.


greets,Ted2006/10/17, Joe Toth [EMAIL PROTECTED]:


Hey Ted,It's IRC nick: WeaZeLb0y.How's the wicket based cms going? Will you put out some specs for the design before you implement it? For instance:1. What parts will be pluggable? - ie. authorization/permissions/auditing
2. What technologies will be used? - of course wicket, but will you use JCR, JPA/Hibernate, Spring, EJBs, TinyMCE3. What features will the first iteration include?Also, I would recommend separating the data/services from the UI. Meaning, if someone wants to create a complete different UI and use a different framework they should be able to, for example: GWT, JSF, Struts, etc.
Oddly enough, I never had to create a CMS for myself, which is one of the reasons I didn't create a fully functional wicket-cms. But, I know it'll be a requirement for a future project.If you need any help or 

Re: [Wicket-user] How to create this component

2006-10-20 Thread Igor Vaynberg
the trick is to use a border not a panel - that way you can put anything you want into it.then via ajax control setrenderborderbody property and repaint the border - pretty simple-Igor
On 10/19/06, blackboy zabaha [EMAIL PROTECTED] wrote:
Hi,I think do via ajax would be nice.Indeed, I dont have much problem with how to do it,but my problem is how to create a custom componentthat need a panel asparameter..how to associate folder's markup (that should be
fixed? for reuse) withthe panel's id? Do I have to fix the panel's id to fitwith my folder'smarkup? any better way?Thanks,Black zabahaIgor Vaynberg wrote: do you want this to work via ajax or just
_javascript_? -Igor On 10/19/06, *blackboy zabaha*[EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Hi, I need a custom component that is a box ofcontent with a title bar, when I click or double click on title bar, it
will collapse/expand its content, I don't know the good name for it, so Ijust call it a 'folder', also it could remember itscollapse/expand state when form
 submitted. Ex.!-- Markup file of this component may looklike this. -- script function collapseOrExpand() {
var elm =document.getElementById('folder');var disp = elm.style.display;elm.style.display = (disp == 'none' )?'block' : 'none'; }
 /script tabletr tdspan wicket:id=folderTitlexxx/span/td
 td id='folder' style='display:block'!-- Put a panel here --span wicket:id=aPanelxxx/span /td
 /tr /table /*** Java code : Give it a title and thecustom panel as its content..*/ 
form.add(new Folder(folderTitle, aPanel));Please give me some example how to startto do this.. Thanks, Black zabaha
__ Do You Yahoo!? Tired of spam?Yahoo! Mail has the best spamprotection around http://mail.yahoo.com
- Using Tomcat but need to do more? Need tosupport web services, security? Get stuff done quickly with pre-integrated
technology to make your job easier Download IBM WebSphere Application Serverv.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:
Wicket-user@lists.sourceforge.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-integratedtechnology to make your job easier Download IBM WebSphere Application Server v.1.0.1based 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
__Do You Yahoo!?Tired of spam?Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-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] Using AjaxEventBehavior On A Page Component

2006-10-20 Thread Frank Bille
Do you have some example code for that? I can't reproduce it (FF1.5),
when I'm doing something like this:

body onkeyup=alert(event.keyCode)

Frank

On 10/20/06, Frank Bille [EMAIL PROTECTED] wrote:
 On 10/20/06, Matthew P. Tilchen [EMAIL PROTECTED] wrote:
 
  Unfortunately the mozilla-based browsers do not
  include the keyCode attribute on the event, it always comes through
  as 0 for any key. The other browsers do include the correct unicode
  value.


 Hmm, do you mean in terms of onkey* on body tag? I'll try to look at it to
 see if there is some work around.

 Frank



-
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] Using AjaxEventBehavior On A Page Component

2006-10-20 Thread Igor Vaynberg
see wicketKeyCode() func in wicket.js that might be of some help.-IgorOn 10/20/06, Frank Bille [EMAIL PROTECTED]
 wrote:Do you have some example code for that? I can't reproduce it (FF1.5),
when I'm doing something like this:body >FrankOn 10/20/06, Frank Bille [EMAIL PROTECTED] wrote:
 On 10/20/06, Matthew P. Tilchen [EMAIL PROTECTED] wrote:   Unfortunately the mozilla-based browsers do not  include the keyCode attribute on the event, it always comes through
  as 0 for any key. The other browsers do include the correct unicode  value. Hmm, do you mean in terms of onkey* on body tag? I'll try to look at it to see if there is some work around.
 Frank-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket With Acegi

2006-10-20 Thread Sajeev Nair
Hi,

Are there any samples for Wicket with Acegi ? I am working on a project 
which requires me to work with Wicket and Acegi for security.

Any help in this regard will be highly appreciated.

Thanks in advance.

Sunraider

_
Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN 
Search http://server1.msn.co.in/Profile/bipashabasu.asp


-
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] DataTable with column styles and widths

2006-10-20 Thread Igor Vaynberg
i think what would be even better is if icolumn had add(IBehavior) that would get attached to the headerright now what you have to do is something like thisnew MyColumn() {Component getHeader() { Component c=
super.getHeader(); c.add(new MyAttributeModifier()); }}which is tricky for newbies to figure out.-igorOn 10/14/06, 
Niels Bo [EMAIL PROTECTED] wrote:
Hi

I have thissuggestion for an extension totheDataTable component that willmake it easier to set width andccs styles individually on each column.

It involves these files (attached):

IColumn.java - new getWidth() and getStyleName()
AbstractColumn.java - implement default get/set Width and StyleName

DataTable.html - added colgroupsection
DataTable.java - added a few lines. 
Usage like: 
 IColumn column = new PropetyColumn(...);
 column.setStyleName(rightadjust);

 column.setWidth(200); 

Would this be a useful improvement for other Wicket users?

Niels

-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


[Wicket-user] 瑞海贸易公司

2006-10-20 Thread 瑞海贸易公司
您好!
   
   本公司是经政府注册的正规公司,在广州等广东各大中城市,以及全国各大城市均有分公司,

本公司与国内各省市区多家企业合作,现有{普通国税商品销售、电脑版运输发票、广告发票、

建筑安装发票、装饰工程发票、餐饮业发票、租赁发票、服务业发票}等各类专用统一发票可开,

所有票据均可上网查询验证!欢迎来电咨询!贵公司(企业)若有以下情况请来联系:

1、公司为一般纳税企业没有优惠政策而想减低税收的。

2、对外销售商品或提供技术服务而本公司暂时没有领发票的。

3、外出采购或公干而服务商没有提供可以报销的发票。

4、公司帐目进项与出项差额大,需补充差额的。

5、公司在做帐或进销存方面如需用到。

如贵公司有代开发票方面的问题,欢迎来电咨询!

手机:13502450486  电话:020--89836712 

传真:020--89836712联系人:高 伟 峰

[EMAIL PROTECTED]

  广州市瑞海贸易有限公司

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


[Wicket-user] Wicket CMS

2006-10-20 Thread Ted Roeloffzen
Here are a few suggestions to start out with. You can repost on the list if you want.I would say you should break this project up into 2 parts, like how I did for wicket-cms.
wicket-cms and wicket-cms-example
This will create a very modular design so others can reuse
wicket-cms in their own applications. You will be designing your core
system as though you are a user of the system too, so you will be
forced to make it as extensible/modular/componentized as
possible. If everything is tightly coupled then you limit the
reusability of the components. Plus its also nice to see how to
integrate a product with an existing system.
Here are a few starting points:1. Make sure the
authorization class is an interface that can be implemented by others
to integrate in their own system's authorization backend. 2. Keep as many components Panel-centric as possible. 
For instance if you have a component that displays a list of
files/content managable by a user I think the abstraction should be
something like...AbstractContentBrowserPanel- This would display a DataTable with hooks like abstract public onContentNameClick(Content content);
ContentBrowserPanel- This would be a default
implementation of the AbstractContentBrowserPanel that implemented
onContentNameClick(Content content) to something like
setResponsePage(new ViewContent(content))

As you can see, now if a user wants to have a page that displays a
list of content, but instead of taking them to the ViewContent page
when they click on a name, they can implement
AbstractContentBrowserPanel.onContentNameClick

(Content content) with something like setPage(new ContentEditor(content))3.
Use as much CSS as possible for layout and design. Others can then
override your classes with their own style sheet(s) to keep the
layout/design consistent with their own.
The core system probably
doesn't even need a custom database schema, I could be wrong, depending
on the features required. But, since you are using JackRabbit to store
content that eliminates the needed for a lot of custom data
structures. wicket-cms-example would need a database of course. Let
me give you an example how I would authorize a user to edit a piece of
content:
// This would be part of wicket-cmspublic interface CMSSecurity { boolean hasPermission(Permission permission);}// This would be part of wicket-cms-examplepublic class MyCustomCMSSecurityImpl {
 boolean hasPermission(Permission permission) { boolean hasPermission = false; // lookup user in database User user = session().load(User.class, CustomSession.get().getUsername());


 if (user.getRoles().contains(permission.getAction() + -role) { hasPermission = true; }  return hasPermission; }}public class ContentEditorPanel {
 ContentEditorPanel(final Content content) { Permission permission = new Permission() { public String getAction() { return edit; }
 public Content getContent() { return content; } }; // get CMSSecurity implementation from somewhere, like the application if (!CMSApplication.getCMSSecurity().hasPermission(permission)) {
 throw new AccessDeniedException(); } }}Note:
General programming suggestion for reusability. Encapsulate finer
grained objects in a wrapper object, like how Permission is above.
This is better than passing everything in a granular fashion, like
breaking it up into Content content, String role, etc. Because now if you want to
add another piece of the system to authorize against you can just add
it to the Permission object without breaking the API. If you break the
API, everyone that uses it will have to recode their stuff that users
it.
I hope all this makes sense, its hard to explain quickly. Let me know if you have any questions.Thanks for keeping me posted.
On 10/19/06, 
Ted Roeloffzen [EMAIL PROTECTED] wrote:


He Joe,Here is the first, very basic design, for the blog.It's all very basic. i.e. There is a single class defined for the access control.This has to be specified more, but that is something for later.



greets,Ted2006/10/17, Joe Toth [EMAIL PROTECTED]:



Hey Ted,It's IRC nick: WeaZeLb0y.How's the wicket based cms going? Will you put out some specs for the design before you implement it? For instance:1. What parts will be pluggable? - ie. authorization/permissions/auditing
2. What technologies will be used? - of course wicket, but will you use JCR, JPA/Hibernate, Spring, EJBs, TinyMCE3. What features will the first iteration include?Also,
I would recommend separating the data/services from the UI. Meaning, if
someone wants to create a complete different UI and use a different
framework they should be able to, for example: GWT, JSF, Struts, etc.
Oddly enough, I never had to create a CMS for myself, which is
one of the reasons I didn't create a fully functional wicket-cms. But,
I know it'll be a requirement for a future project.If you need any help or recommendations or anything, let me know or just ask on the list, like usual.
Thanks,Joe

Re: [Wicket-user] Nice Url

2006-10-20 Thread Dipu



Hi Gwyn ,

I added a constructor with page parameters and 
mountedit on applicationinit, 
but it didnt help either
i tried both the following options 
mountBookmarkablePage("/flights/results", 
FlightSearchResultPage.class);
mount("/flights",PackageName.forClass(FlightSearch.class));

I am using the version 1.2.1, am i really missing 
something here or doing something very stupid here.

Regards
Dipu



- Original Message - 
From: "Gwyn Evans" [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Thursday, October 19, 2006 4:40 
PM
Subject: Re: [Wicket-user] Nice 
Url
 On 19/10/06, Dipu [EMAIL PROTECTED] 
wrote:  If i have a page with the following 
constructor public NonBookmarkablePage(OrderInfo orfderInfo, final 
PartyInfo partyInfo) How will i make the url look nice 
for the page ?  How difficult would it be to make it 
bookmarkable, i.e. give it a PageParameters constructor and use the 
Application.mount call on it?  can you please give me some 
tips on implementing the IRequestTargetURLCodingStrategy and 
using it.  Take a look at the sources, read the javadocs  
see how the supplied strategies are implementing it.  
/Gwyn  - Original Message - From: 
"Korbinian Bachl" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, October 19, 2006 2:25 PM 
Subject: Re: [Wicket-user] Nice Url  Hi, 
  yes it is possible, look here for detailed: 
 http://www.javalobby.org/java/forums/t68753.html   you can then provide parameters 
via the PageParameter param - if this doesnt  
satisfy you (e.g: some special needs for URL) then you may also use a 
own  implementation of IRequestTargetURLCodingStrategy - 
a good beginnning there  is examining the WOOGLE 
project and look at its URL Strategy  (/q/queryword/page) 
-   best Regards,  
 Korbinian
    Von: 
[EMAIL PROTECTED]  
[mailto:[EMAIL PROTECTED] Im Auftrag von 
Dipu  Gesendet: Donnerstag, 19. Oktober 2006 14:37 
 An: wicket-user@lists.sourceforge.net  Betreff: [Wicket-user] Nice Url 
   HI all,   
Is there anyway to make the non bookmarkable page urls look nicer. 
 I am using the wicket version 1.2.1   I 
need to display the urls like   
/x  /x/searching  
/x/searchresults  /x/payment  
/x/confirmation   Kind Regards 
 Dipu
 
- 
 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   -- 
 Download Wicket 1.2.2 now! - http://wicketframework.org 
 
- 
Using Tomcat but need to do more? Need to support web services, 
security? Get stuff done quickly with pre-integrated technology to make 
your job easier Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 
Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] unique snobbery

2006-10-20 Thread Isolde Lake





Immediate results are sometimes not much productive. This is why
designers are taking advantage of the versatility of digital printing
more than ever.
You are completely in the dark whether it's good or bad images.
If cost is no option and you want to have the best customer service
warranty in the business today, the HP DeskJet Mobile Printer Series is
the perfect fit for you. Digital and traditional photography are
complimentary arts.
Corel has provided various support guides to help end-users control
their fear of tackling a seemingly intricate world of softwares and
programs. If these controllers only work with XP, you've got enough:
just assign the left to Z and the right to Z Rotation. Noise in digital
cameras is much lower than grain in film.
Its being compact, lightweight and stylish yet power-packed gives it
high performance mobility.
And holding it all together is the new file-management and
version-tracking technology Version Cue. Aside from inheriting the
features of traditional photography, digital photography only improved
the ability to produce the exact desired image. Another rarely explored
issue is the immediacy of digital photography. This is comparable to
bigger grains on high speed conventional film. The advantages of digital
cameras are many and very popular. If you want to get the maximum
advantage from your film, you need to use the best optics you can get
from your camera system. Files that are created in one application can
open easily in others with all their features intact. As a designer used
to handling tangible products such as the ever reliable crayons,
computer technology is oftentimes scary and heart palpitating. Aside
from inheriting the features of traditional photography, digital
photography only improved the ability to produce the exact desired
image. Each element should have an unyielding purpose underneath the
marketing strategy behind the piece. More so, there is an air of
intrigue that still surrounds us in going to the darkroom to produce the
print that you envisioned in your mind. Obviously, conventional cameras
depend entirely on mechanical and chemical processes. Just simply store
your shots, and when you want some prints, you can simply send them to
your local photo lab and print only what you need and want.
Immediate results are sometimes not much productive.



-
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] ModalWindow's initial size (Wicket 2)

2006-10-20 Thread Stefan Lindner
I have a modal window with a Panel inside. If I understand the javadoc for 
ModalWindow, it's size can be determinded by it's contents by setting
 
setResizable(false)
setUseInitialHeight(true)
 
Is this only true for it's height? I can't find a similar method for the width 
of the ModalWindow.
Ok, the Panel is displayed complete, but the surronding frame is smaller than 
the content.
 
Did I understand it correctly that the size can only determined automatically, 
if the contents is a component? This means if I use ModalWindows in page mode 
(because of java script components) the size is not determined automatically? 
And if so:  Is this a limitation of HTML/JavaScript or is it a current 
limitation of ModalWindow's implementation?
 
Stefan Lindner
 
winmail.dat-
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] Nice Url

2006-10-20 Thread Johan Compagner
all bookmarkable pages can have forms..that is already possible at the moment we had bookmarkable pages (like wicket 0.x)Again you mixup the notion of Bookmarkable and StatelessThose are NOT the same, especially bookmarkable in regards to stateless.
the other way around, Stateless pages are most likely bookmarkable.johanOn 10/19/06, cowwoc 
[EMAIL PROTECTED] wrote:What about bookmarkable pages containing Forms? Is this still in the works?
GiliKorbinian Bachl wrote: Hi, yes it is possible, look here for detailed: http://www.javalobby.org/java/forums/t68753.html
 you can then provide parameters via the PageParameter param - if this doesnt satisfy you (e.g: some special needs for URL) then you may also use a own implementation of IRequestTargetURLCodingStrategy- a good beginnning there
 is examining the WOOGLE project and look at its URL Strategy (/q/queryword/page) - best Regards, Korbinian 
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] Im Auftrag von Dipu Gesendet: Donnerstag, 19. Oktober 2006 14:37 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Nice Url
 HI all, Is there anyway to make the non bookmarkable page urls look nicer. I am using the wicket version 1.2.1 I need to display the urls like
 /x /x/searching /x/searchresults /x/payment /x/confirmation Kind Regards Dipu
 - 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


Re: [Wicket-user] Nice Url

2006-10-20 Thread Eelco Hillenius
On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.

No, I don't think so. Are you telling me those forms are populated
automatically from a 'bookmarkable' url? I think not, and thus you
have to interpret/ repopulate the form yourself. Now bookmarkable
forms in the way they are in 2.0 now can be used just as normal form
with the only difference from an end-user's perspective that you can't
depend on instance variables.

Eelco

-
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] Nice Url

2006-10-20 Thread Upayavira
Eelco Hillenius wrote:
 On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.
 
 No, I don't think so. Are you telling me those forms are populated
 automatically from a 'bookmarkable' url? I think not, and thus you
 have to interpret/ repopulate the form yourself. Now bookmarkable
 forms in the way they are in 2.0 now can be used just as normal form
 with the only difference from an end-user's perspective that you can't
 depend on instance variables.

Just a thought coming from Cocoon-land.

Cocoon has the concept of continuations in server-side java script, and 
this can be used to maintain state.

Although the programming model is different, the need is the same - when 
you connect to the backend server, to identify yourself in some way so 
that you can be reconnected with your particular state. The session 
itself is too general - you need something particular to your form/etc.

Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you 
can configure it to get that ID either from within the URL, or from a 
request parameter (or anywhere else you might care to think of).

I always tended to put the continuation ID into a hidden field on the 
page, as I wanted to maintain pretty URLs (even if those URLs weren't 
'RESTful' - i.e if you bookmark it you won't go back to that particular 
state).

Is it possible in Wicket to use a hidden field to pass that state 
information rather than tacking it onto the URL?

Regards, Upayavira

-
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] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

I'm not sure about other browsers, but IE6 doesn't allow scrolling of a
disabled TextArea.  TextArea extends FormComponent and form component has an
internal Behavior that adds the disabled attribute when the field is set to
disabled (setEnabled(false)).  This causes my project grief because we need
to add the READONLY attribute instead.  But, as far as I can see there is no
way to remove a Behavior because they are not named (ala a Map) and the
getBehaviors returns an unmodifiable List.  I see that the
DisabledAttributeModifier extends AttributeModifer that supports an enabled
flag, but this internal class is private and it makes working with it
difficult.

Does this non-scrolling behavior happen with other browsers or just IE?  If
it happens elsewhere, might I suggest that Wicket change it's default
behavior to put a readonly attribute instead of disabled?

What is the recommended way of working with behaviors that are already added
to a Component?  

Here is what I came up with for disabling the behavior for a TextArea. 
Notice that I had to use the FQN instead of the Class object because the
behavior is private to FormComponent.

public class TextAreaFixer {
/**
 * Constructor for TextAreaFixer
 */
private TextAreaFixer() {
super();
}

/**
 * Find the FormComponent$DisabledAttributeModifier and disable it!
 * 
 * @param textArea
 */
public static void updateTextArea(TextArea textArea) {
for (IBehavior behavior : 
(ListIBehavior)textArea.getBehaviors()) {
if
(behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier))
{
((AttributeModifier)behavior).setEnabled(false);
break;
}
}
}
}

Then to use it, in my code:

TextArea description = new TextArea(description);
add(description);
TextAreaFixer.updateTextArea(description);

Is ther a better way to do what I am trying to accomplish?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915023
Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread Erik van Oosten
Hi,

It is up to the component on how to interpreted the disabled property. 
In your case you could make a new form component (use TextArea as 
template) that shows a div with scroll bars instead of an input element. 
If you still need the input element, simply add it, but make it hidden.

Regards,
  Erik.


ChuckDeal schreef:
 I'm not sure about other browsers, but IE6 doesn't allow scrolling of a
 disabled TextArea.  TextArea extends FormComponent and form component has an
 internal Behavior that adds the disabled attribute when the field is set to
 disabled (setEnabled(false)).  This causes my project grief because we need
 to add the READONLY attribute instead.  But, as far as I can see there is no
 way to remove a Behavior because they are not named (ala a Map) and the
 getBehaviors returns an unmodifiable List.  I see that the
 DisabledAttributeModifier extends AttributeModifer that supports an enabled
 flag, but this internal class is private and it makes working with it
 difficult.

 Does this non-scrolling behavior happen with other browsers or just IE?  If
 it happens elsewhere, might I suggest that Wicket change it's default
 behavior to put a readonly attribute instead of disabled?

 What is the recommended way of working with behaviors that are already added
 to a Component?  

 Here is what I came up with for disabling the behavior for a TextArea. 
 Notice that I had to use the FQN instead of the Class object because the
 behavior is private to FormComponent.

 public class TextAreaFixer {
   /**
* Constructor for TextAreaFixer
*/
   private TextAreaFixer() {
   super();
   }

   /**
* Find the FormComponent$DisabledAttributeModifier and disable it!
* 
* @param textArea
*/
   public static void updateTextArea(TextArea textArea) {
   for (IBehavior behavior : 
 (ListIBehavior)textArea.getBehaviors()) {
   if
 (behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier))
 {
   ((AttributeModifier)behavior).setEnabled(false);
   break;
   }
   }
   }
 }

 Then to use it, in my code:

 TextArea description = new TextArea(description);
 add(description);
 TextAreaFixer.updateTextArea(description);

 Is ther a better way to do what I am trying to accomplish?

 Thanks!
   

-- 
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] enable/remove added behaviors

2006-10-20 Thread Frank Bille
On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

Then to use it, in my code:TextArea description = new TextArea(description);add(description);TextAreaFixer.updateTextArea(description);Is ther a better way to do what I am trying to accomplish?
I'm not sure what it is that you want but can't you just say:textArea.add(new SimpleAttributeModifier(readonly, readonly));

-
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] enable/remove added behaviors

2006-10-20 Thread Erik van Oosten
His problem is that the disabled attribute is added by a behavior and 
that he can not remove the behavior.

  Erik.


Frank Bille schreef:
 On 10/20/06, *ChuckDeal* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Then to use it, in my code:

 TextArea description = new TextArea(description);
 add(description);
 TextAreaFixer.updateTextArea(description);

 Is ther a better way to do what I am trying to accomplish?


 I'm not sure what it is that you want but can't you just say:

 textArea.add(new SimpleAttributeModifier(readonly, readonly));


 

 -
 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
   

-- 
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] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

That actually happens via some other code that I snipped.  But because
TextArea (specifically FormComponent) also puts the disabled attribute, I
need to make sure that the disabled attribute gets removed prior to
rendering because even though I put the readonly attribute on it, the
disabled attribute still causes the problem.  Thats what my TextAreaFixer
does, disables the DisabledAttributeModifer from FormComponent.


Frank Bille wrote:
 
 On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 Then to use it, in my code:

 TextArea description = new TextArea(description);
 add(description);
 TextAreaFixer.updateTextArea(description);

 Is ther a better way to do what I am trying to accomplish?

 
 I'm not sure what it is that you want but can't you just say:
 
 textArea.add(new SimpleAttributeModifier(readonly, readonly));
 
 -
 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/enable-remove-added-behaviors-tf2479810.html#a6915275
Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

To be clear, you are proposing that I create a new component that generates a
div with css that makes it appear to be a TextArea, then when I determine
(determination based upon the user/data) that I want a readonly TextArea, I
replace the real TextArea with a FakeTextArea prior to rendering?

Before I attempt this myself, has anyone created a div based TextArea
component, that can be made available to me?


Erik van Oosten wrote:
 
 Hi,
 
 It is up to the component on how to interpreted the disabled property. 
 In your case you could make a new form component (use TextArea as 
 template) that shows a div with scroll bars instead of an input element. 
 If you still need the input element, simply add it, but make it hidden.
 
 Regards,
   Erik.
 
 
 ChuckDeal schreef:
 I'm not sure about other browsers, but IE6 doesn't allow scrolling of a
 disabled TextArea.  TextArea extends FormComponent and form component has
 an
 internal Behavior that adds the disabled attribute when the field is set
 to
 disabled (setEnabled(false)).  This causes my project grief because we
 need
 to add the READONLY attribute instead.  But, as far as I can see there is
 no
 way to remove a Behavior because they are not named (ala a Map) and the
 getBehaviors returns an unmodifiable List.  I see that the
 DisabledAttributeModifier extends AttributeModifer that supports an
 enabled
 flag, but this internal class is private and it makes working with it
 difficult.

 Does this non-scrolling behavior happen with other browsers or just IE? 
 If
 it happens elsewhere, might I suggest that Wicket change it's default
 behavior to put a readonly attribute instead of disabled?

 What is the recommended way of working with behaviors that are already
 added
 to a Component?  

 Here is what I came up with for disabling the behavior for a TextArea. 
 Notice that I had to use the FQN instead of the Class object because the
 behavior is private to FormComponent.

 public class TextAreaFixer {
  /**
   * Constructor for TextAreaFixer
   */
  private TextAreaFixer() {
  super();
  }

  /**
   * Find the FormComponent$DisabledAttributeModifier and disable it!
   * 
   * @param textArea
   */
  public static void updateTextArea(TextArea textArea) {
  for (IBehavior behavior : 
 (ListIBehavior)textArea.getBehaviors()) {
  if
 (behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier))
 {
  ((AttributeModifier)behavior).setEnabled(false);
  break;
  }
  }
  }
 }

 Then to use it, in my code:

 TextArea description = new TextArea(description);
 add(description);
 TextAreaFixer.updateTextArea(description);

 Is ther a better way to do what I am trying to accomplish?

 Thanks!
   
 
 -- 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915408
Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread Eelco Hillenius
Yeah, sorry about that. I committed a fix for this. Added method
protected void onDisabled(final ComponentTag tag) to FormComponent,
which is called during rendering when the component is disabled. By
default, an disabled=disabled attribute is added, but clients may
override this method. In your case, you would do something like:

new TextField(myid, myModel) {
  protected void onDisabled(ComponentTag tag) {
tag.put(read-only, true);
  }
}

Don't call super, or you'll still have the disabled attribute added.
Btw, it doesn't work with a attribute modifier anymore - like Matej
already changed for 2.0 - which is more efficient too.

The read-only attributes are available for text fields and text areas,
but it wouldn't make a good default for Wicket because they will still
be part of form submission (see
http://www.w3.org/TR/html4/interact/forms.html#h-17.12), and could be
changed using Javascript. Could you give this spin a change, and see
whether this gives you problems with Wicket denying updates?

Cheers,

Eelco


On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 That actually happens via some other code that I snipped.  But because
 TextArea (specifically FormComponent) also puts the disabled attribute, I
 need to make sure that the disabled attribute gets removed prior to
 rendering because even though I put the readonly attribute on it, the
 disabled attribute still causes the problem.  Thats what my TextAreaFixer
 does, disables the DisabledAttributeModifer from FormComponent.


 Frank Bille wrote:
 
  On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:
 
  Then to use it, in my code:
 
  TextArea description = new TextArea(description);
  add(description);
  TextAreaFixer.updateTextArea(description);
 
  Is ther a better way to do what I am trying to accomplish?
 
 
  I'm not sure what it is that you want but can't you just say:
 
  textArea.add(new SimpleAttributeModifier(readonly, readonly));
 
  -
  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/enable-remove-added-behaviors-tf2479810.html#a6915275
 Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread Erik van Oosten
Yes indeed.
Although I would not attempt to make the div look exactly like a text 
area, that would be a very painful exercise.
My thoughts were along the lines of:
.readonlytextearea {
width: 500px;
height: 150px;
overflow: auto;
border: thin solid #000;
}

  Erik.

ChuckDeal schreef:
 To be clear, you are proposing that I create a new component that generates a
 div with css that makes it appear to be a TextArea, then when I determine
 (determination based upon the user/data) that I want a readonly TextArea, I
 replace the real TextArea with a FakeTextArea prior to rendering?

 Before I attempt this myself, has anyone created a div based TextArea
 component, that can be made available to me?


 Erik van Oosten wrote:
   
 Hi,

 It is up to the component on how to interpreted the disabled property. 
 In your case you could make a new form component (use TextArea as 
 template) that shows a div with scroll bars instead of an input element. 
 If you still need the input element, simply add it, but make it hidden.

 Regards,
   Erik.


 ChuckDeal schreef:
 
 I'm not sure about other browsers, but IE6 doesn't allow scrolling of a
 disabled TextArea.  TextArea extends FormComponent and form component has
 an
 internal Behavior that adds the disabled attribute when the field is set
 to
 disabled (setEnabled(false)).  This causes my project grief because we
 need
 to add the READONLY attribute instead.  But, as far as I can see there is
 no
 way to remove a Behavior because they are not named (ala a Map) and the
 getBehaviors returns an unmodifiable List.  I see that the
 DisabledAttributeModifier extends AttributeModifer that supports an
 enabled
 flag, but this internal class is private and it makes working with it
 difficult.

 Does this non-scrolling behavior happen with other browsers or just IE? 
 If
 it happens elsewhere, might I suggest that Wicket change it's default
 behavior to put a readonly attribute instead of disabled?

 What is the recommended way of working with behaviors that are already
 added
 to a Component?  

 Here is what I came up with for disabling the behavior for a TextArea. 
 Notice that I had to use the FQN instead of the Class object because the
 behavior is private to FormComponent.

 public class TextAreaFixer {
 /**
  * Constructor for TextAreaFixer
  */
 private TextAreaFixer() {
 super();
 }

 /**
  * Find the FormComponent$DisabledAttributeModifier and disable it!
  * 
  * @param textArea
  */
 public static void updateTextArea(TextArea textArea) {
 for (IBehavior behavior : 
 (ListIBehavior)textArea.getBehaviors()) {
 if
 (behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier))
 {
 ((AttributeModifier)behavior).setEnabled(false);
 break;
 }
 }
 }
 }

 Then to use it, in my code:

 TextArea description = new TextArea(description);
 add(description);
 TextAreaFixer.updateTextArea(description);

 Is ther a better way to do what I am trying to accomplish?

 Thanks!
   
   
 -- 
 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


 

   

-- 
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 With Acegi

2006-10-20 Thread Eelco Hillenius
Nope, not at this time. How do you want to/ need to employ Acegi?
URL-based authentication could be rather tricky to achieve, but if you
just use the authorization model of Acegi, you should be able to plug
in your own IAuthorizationStrategy that uses Acegi without too much of
a hassle.

Eelco


On 10/20/06, Sajeev Nair [EMAIL PROTECTED] wrote:
 Hi,

 Are there any samples for Wicket with Acegi ? I am working on a project
 which requires me to work with Wicket and Acegi for security.

 Any help in this regard will be highly appreciated.

 Thanks in advance.

 Sunraider

 _
 Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN
 Search http://server1.msn.co.in/Profile/bipashabasu.asp


 -
 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] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

Excellent!  That was the solution I was hoping for!

You mentioned that you committed this change, to where?  1.2-SNAPSHOT?  If
so, are there any other maven2 repos that host the SNAPSHOT builds?  This
repo http://maven.sateh.com/repository; is giving me grief.  Otherwise, I
suppose that I could grab the sources myself...


Eelco Hillenius wrote:
 
 Yeah, sorry about that. I committed a fix for this. Added method
 protected void onDisabled(final ComponentTag tag) to FormComponent,
 which is called during rendering when the component is disabled. By
 default, an disabled=disabled attribute is added, but clients may
 override this method. In your case, you would do something like:
 
 new TextField(myid, myModel) {
   protected void onDisabled(ComponentTag tag) {
 tag.put(read-only, true);
   }
 }
 

-- 
View this message in context: 
http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915797
Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

Agreed, I was not looking forward to attempting that!  Anyway, Eelco's
solution is more of what I was looking for.  Thanks for the help.

Chuck


Erik van Oosten wrote:
 
 Yes indeed.
 Although I would not attempt to make the div look exactly like a text 
 area, that would be a very painful exercise.
 My thoughts were along the lines of:
 .readonlytextearea {
 width: 500px;
 height: 150px;
 overflow: auto;
 border: thin solid #000;
 }
 
   Erik.
 

-- 
View this message in context: 
http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915810
Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] enable/remove added behaviors

2006-10-20 Thread Eelco Hillenius
I don't know how often those snapshots are being build. Building from
source is easy though.

Eelco


On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 Excellent!  That was the solution I was hoping for!

 You mentioned that you committed this change, to where?  1.2-SNAPSHOT?  If
 so, are there any other maven2 repos that host the SNAPSHOT builds?  This
 repo http://maven.sateh.com/repository; is giving me grief.  Otherwise, I
 suppose that I could grab the sources myself...


 Eelco Hillenius wrote:
 
  Yeah, sorry about that. I committed a fix for this. Added method
  protected void onDisabled(final ComponentTag tag) to FormComponent,
  which is called during rendering when the component is disabled. By
  default, an disabled=disabled attribute is added, but clients may
  override this method. In your case, you would do something like:
 
  new TextField(myid, myModel) {
protected void onDisabled(ComponentTag tag) {
  tag.put(read-only, true);
}
  }
 

 --
 View this message in context: 
 http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915797
 Sent from the Wicket - User mailing list archive 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


Re: [Wicket-user] ModalWindow's initial size (Wicket 2)

2006-10-20 Thread Matej Knopp
Hi, the initial size really only works with height, and only if the 
window has a panel content and is not resizable.

There's no default width, nor width and height for window with page. 
This is a limitation of html, there's no way to support that.

The idea is that if you use panel in window, you set the width on the 
window, and the panel inside should automatically adjust (if you have 
styled it properly).

This is how html works. The inner element can affect outer element 
height, however with width it is the oposite. The outer element can 
affect inner element width.

-Matej


Stefan Lindner wrote:
 I have a modal window with a Panel inside. If I understand the javadoc for 
 ModalWindow, it's size can be determinded by it's contents by setting
  
 setResizable(false)
 setUseInitialHeight(true)
  
 Is this only true for it's height? I can't find a similar method for the 
 width of the ModalWindow.
 Ok, the Panel is displayed complete, but the surronding frame is smaller than 
 the content.
  
 Did I understand it correctly that the size can only determined 
 automatically, if the contents is a component? This means if I use 
 ModalWindows in page mode (because of java script components) the size is not 
 determined automatically? And if so:  Is this a limitation of HTML/JavaScript 
 or is it a current limitation of ModalWindow's implementation?
  
 Stefan Lindner
  
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


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


[Wicket-user] Using DatePicker with iframe

2006-10-20 Thread Marieke Vandamme

Hello, 

I'm using a wicket.extensions.markup.html.datepicker.DatePicker
with underneath it an iframe.
When I open the datepicker, my iframe
disappears. When the datepicker is closed, my iframe reappears.
I was looking for the Dynarch includes,
and those give no trouble.
Is there a way to solve this? 
thx !
 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 
-
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] Nice Url

2006-10-20 Thread Eelco Hillenius
Such a strategy would be possible, but one downside of it is that that
only works with submits. We have some testing code for client side
state saving (serialized page written to a hidden field). We haven't
put a lot of effort in it to complete it - though the basic idea works
- as it is not something any of the current committers really believe
in. However, if you want to see how a strategy like you proposed could
be done, you could check that out (it's in 2.0,
ClientPageSavingSessionStore).

Of course, any contributions in the form of patches are always welcome
and might serve as a good starting point for further discussion :)

Eelco

On 10/20/06, Upayavira [EMAIL PROTECTED] wrote:
 Eelco Hillenius wrote:
  On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
  all bookmarkable pages can have forms..
  that is already possible at the moment we had bookmarkable pages (like
  wicket 0.x)
 
  Again you mixup the notion of Bookmarkable and Stateless
  Those are NOT the same, especially bookmarkable in regards to stateless.
  the other way around, Stateless pages are most likely bookmarkable.
 
  No, I don't think so. Are you telling me those forms are populated
  automatically from a 'bookmarkable' url? I think not, and thus you
  have to interpret/ repopulate the form yourself. Now bookmarkable
  forms in the way they are in 2.0 now can be used just as normal form
  with the only difference from an end-user's perspective that you can't
  depend on instance variables.

 Just a thought coming from Cocoon-land.

 Cocoon has the concept of continuations in server-side java script, and
 this can be used to maintain state.

 Although the programming model is different, the need is the same - when
 you connect to the backend server, to identify yourself in some way so
 that you can be reconnected with your particular state. The session
 itself is too general - you need something particular to your form/etc.

 Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you
 can configure it to get that ID either from within the URL, or from a
 request parameter (or anywhere else you might care to think of).

 I always tended to put the continuation ID into a hidden field on the
 page, as I wanted to maintain pretty URLs (even if those URLs weren't
 'RESTful' - i.e if you bookmark it you won't go back to that particular
 state).

 Is it possible in Wicket to use a hidden field to pass that state
 information rather than tacking it onto the URL?

 Regards, Upayavira

 -
 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] enable/remove added behaviors

2006-10-20 Thread ChuckDeal

OK, so I did all that and nothing changed, then I remembered the move to the
Incubator, but apparently the Wiki didn't remember that :).  

Could someone update the Wiki to point to the apache svn instead of
sourceforge?  Specifically,
http://cwiki.apache.org/WICKET/wicket-from-source.html references
wicket-parent/README.TXT in branch 1.x.

I'm in the process of building from apache, now.  I just want to make sure
the next guy doesn't hit this.


Eelco Hillenius wrote:
 
 I don't know how often those snapshots are being build. Building from
 source is easy though.
 
 Eelco
 
 
 On 10/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 Excellent!  That was the solution I was hoping for!

 You mentioned that you committed this change, to where?  1.2-SNAPSHOT? 
 If
 so, are there any other maven2 repos that host the SNAPSHOT builds?  This
 repo http://maven.sateh.com/repository; is giving me grief.  Otherwise,
 I
 suppose that I could grab the sources myself...


 Eelco Hillenius wrote:
 
  Yeah, sorry about that. I committed a fix for this. Added method
  protected void onDisabled(final ComponentTag tag) to FormComponent,
  which is called during rendering when the component is disabled. By
  default, an disabled=disabled attribute is added, but clients may
  override this method. In your case, you would do something like:
 
  new TextField(myid, myModel) {
protected void onDisabled(ComponentTag tag) {
  tag.put(read-only, true);
}
  }
 

 --
 View this message in context:
 http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915797
 Sent from the Wicket - User mailing list archive 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/enable-remove-added-behaviors-tf2479810.html#a6920444
Sent from the Wicket - User mailing list archive 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


[Wicket-user] Adding nodes to ajax TreeTable.

2006-10-20 Thread Johnson, Ed A
Title: Adding nodes to ajax TreeTable.






I have a TreeTable that I want to add nodes to when it is clicked. I am able to catch the event and add the node, but the webpage doesn't show the new nodes. It does change the node on the page to show an icon that indicates there are children nodes, but it won't expand. Is there something more I need to do than I have done below? I can output my tree on the server and see that the new node is added.

Thanks,


Ed


protected void onNodeLinkClicked(wicket.ajax.AjaxRequestTarget target,

 javax.swing.tree.TreeNode node) {

 DefaultMutableTreeNode mutableNode = (DefaultMutableTreeNode) node;

 mutableNode.add(new DefaultMutableTreeNode(new StingBusinessProcessTreeable(new Item)));

 getTree().updateTree(target);

}






-
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] Adding nodes to ajax TreeTable.

2006-10-20 Thread Sean C. Sullivan

Ed, 

Instead of adding the new TreeNode to the TreeNode that the user clicked
on, you should insert the new TreeNode into your DefaultTreeModel object.

DefaultTreeMethod provides this method:

public void insertNodeInto(MutableTreeNode newChild,
   MutableTreeNode parent,
   int index)

Regards,

Sean




Date: Fri, 20 Oct 2006 12:23:08 -0700
From: Johnson, Ed A [EMAIL PROTECTED]
Subject: [Wicket-user] Adding nodes to ajax TreeTable.


I have a TreeTable that I want to add nodes to when it is clicked.  I am
able to catch the event and add the node, but the webpage doesn't show
the new nodes.  It does change the node on the page to show an icon that
indicates there are children nodes, but it won't expand.  Is there
something more I need to do than I have done below?  I can output my
tree on the server and see that the new node is added.

Thanks,

Ed

protected void onNodeLinkClicked(wicket.ajax.AjaxRequestTarget target,
javax.swing.tree.TreeNode node)
{
   DefaultMutableTreeNode mutableNode = (DefaultMutableTreeNode)
node;
   mutableNode.add(new DefaultMutableTreeNode(new
StingBusinessProcessTreeable(new Item)));
   getTree().updateTree(target);
}




-
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] Nice Url

2006-10-20 Thread Upayavira
Eelco Hillenius wrote:
 Such a strategy would be possible, but one downside of it is that that
 only works with submits. We have some testing code for client side
 state saving (serialized page written to a hidden field). We haven't
 put a lot of effort in it to complete it - though the basic idea works
 - as it is not something any of the current committers really believe
 in. However, if you want to see how a strategy like you proposed could
 be done, you could check that out (it's in 2.0,
 ClientPageSavingSessionStore).

That is sending state back to the client - I'm talking about passing a 
key back, just not in the URL. But yes, you are showing that hidden 
fields can be used. I'm sure ways could be worked around to get links to 
work (bit of javascript to do a post via a hidden form).

 Of course, any contributions in the form of patches are always welcome
 and might serve as a good starting point for further discussion :)

Heh, well, wouldn't that be nice. I'd love to have some time to do some 
open source coding. Instead I just make do with writing emails :-)

Regards, Upayavira

 On 10/20/06, Upayavira [EMAIL PROTECTED] wrote:
 Eelco Hillenius wrote:
 On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.
 No, I don't think so. Are you telling me those forms are populated
 automatically from a 'bookmarkable' url? I think not, and thus you
 have to interpret/ repopulate the form yourself. Now bookmarkable
 forms in the way they are in 2.0 now can be used just as normal form
 with the only difference from an end-user's perspective that you can't
 depend on instance variables.
 Just a thought coming from Cocoon-land.

 Cocoon has the concept of continuations in server-side java script, and
 this can be used to maintain state.

 Although the programming model is different, the need is the same - when
 you connect to the backend server, to identify yourself in some way so
 that you can be reconnected with your particular state. The session
 itself is too general - you need something particular to your form/etc.

 Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you
 can configure it to get that ID either from within the URL, or from a
 request parameter (or anywhere else you might care to think of).

 I always tended to put the continuation ID into a hidden field on the
 page, as I wanted to maintain pretty URLs (even if those URLs weren't
 'RESTful' - i.e if you bookmark it you won't go back to that particular
 state).

 Is it possible in Wicket to use a hidden field to pass that state
 information rather than tacking it onto the URL?

 Regards, Upayavira

 -
 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] Nice Url

2006-10-20 Thread Eelco Hillenius
 That is sending state back to the client - I'm talking about passing a
 key back, just not in the URL.

Yeah, I got that. What you mean is the part that now makes the path to
the request target (like pagemap/ page(version)/ component combi).

 But yes, you are showing that hidden
 fields can be used.

That was my point. The mechanism is the same except that in whereas
client state saving would get the state back by deserializing, your
proposal would get it by using that key etc. In fact, that part really
isn't much more than configuring a custom target resolver.

 I'm sure ways could be worked around to get links to
 work (bit of javascript to do a post via a hidden form).

Yeah. Probably best by using postprocessing like that client state
saving experiment doesn. That's the least intrusive and most robust
imo.

  Of course, any contributions in the form of patches are always welcome
  and might serve as a good starting point for further discussion :)

 Heh, well, wouldn't that be nice. I'd love to have some time to do some
 open source coding. Instead I just make do with writing emails :-)

Damn users and incubation mentors ;)


Eelco

-
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] shades code comitted to phonebook

2006-10-20 Thread Geoff hendrey
I finally got shades added to the maven repo.
 
So I've comitted the shades code to the phonebook, now that it builds 
seemlessly without requiring any separate download. If anyone finds any 
problems let me know. 

It should build and run as seemlessly as the Hibernate and ibatis examples. 

I'm happy to answer any questions!

-geoff



-
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