[Wicket-user] Refreshing page contents

2006-03-30 Thread Anders Peterson

Hi,

I have a problem refreshing page contents.

This did work as intended before I updated the database model. The 
page's code has not been changed other than in one case I had to change 
what objects I loop through. The page functions exactly as before except 
for one thing: When submitting the form the read/display only components 
(Labels inside the Form) are not updated.


I've tried calling modelChanged() and setVisible(boolean) but it doesn't 
change anything (and I did not have to do this before). The get methods 
that produce the values are never accessed after the page is first built.


The application menu is a collection of BookmarkablePageLink:s. Even 
when I return to this page after visiting other pages those get methods 
are not called. I suspect this is the key to the solution - but I don't 
get it! Can you help?


/Anders
--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Latest Version of Contrib Dojo project not building.

2006-03-30 Thread Dipu



Hi All, 

I grabbed the latest version of the wicket and the 
Wicket and Wicket Contrib Dojo from the CVS, i am not able to build the Contrib 
Dojo project 

Its failing with the following 
messages

1. The method convert() is undefined for the type 
ImmidiateCheckBox
2. The method convert() is undefined for the type 
ImmidiateRadioChoice
3. The method convert() is undefined for the type 
ImmidiateTextField
4. Method renderComponent(MarkupStream) in the type 
Component is not applicable for the arguments() - In DojoAutoUpdateHandler - 
Line 93

Have i not grabbed the right version , can anyone 
please help me.


Thanks 
Dipu



[Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Stefan Lindner
 
Dear Eelco,
 
you wrote 
A different approach is to use ajax enabled fields so that everytime
you leave an input field your changes are immediately applied to the
models. That way it doesn't matter at all which link you click
anywhere.

I try the 1.2beta2examples ajax/Form Example: shows ajax form processing
 
this leads to the folowing error message (JBoss4.0.4RC2, Java 5_6)
 
 
wicket.WicketRuntimeException: Internal error cloning object. Make sure all 
dependent objects implement Serializable. Class: 
wicket.examples.ajax.builtin.FormPage
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:132)
 wicket.Session.setAttribute(Session.java:794)
 wicket.Session.update(Session.java:845)
 wicket.protocol.http.WebSession.update(WebSession.java:116)
 wicket.RequestCycle.cleanUp(RequestCycle.java:794)
 wicket.RequestCycle.steps(RequestCycle.java:1028)
 wicket.RequestCycle.request(RequestCycle.java:452)
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:210)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

 
winmail.dat

Re: [Wicket-user] Refreshing page contents

2006-03-30 Thread Juergen Donnerstag
Sounds like your browser is using its local cache. Try
meta http-equiv=Expires content=-1 /
meta http-equiv=Pragma content=no-cache /
meta http-equiv=Cache-Control content=no-cache /

Juergen

On 3/30/06, Anders Peterson [EMAIL PROTECTED] wrote:
 Hi,

 I have a problem refreshing page contents.

 This did work as intended before I updated the database model. The
 page's code has not been changed other than in one case I had to change
 what objects I loop through. The page functions exactly as before except
 for one thing: When submitting the form the read/display only components
 (Labels inside the Form) are not updated.

 I've tried calling modelChanged() and setVisible(boolean) but it doesn't
 change anything (and I did not have to do this before). The get methods
 that produce the values are never accessed after the page is first built.

 The application menu is a collection of BookmarkablePageLink:s. Even
 when I return to this page after visiting other pages those get methods
 are not called. I suspect this is the key to the solution - but I don't
 get it! Can you help?

 /Anders
 --
 http://ojalgo.org/

 Mathematics, Linear Algebra and Optimisation with Java



 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] setting required on multiple form components

2006-03-30 Thread jeiess

having a little trouble with form validation using 1.2-beta2.

here's what i've got:


public final class RegForm extends Form {
	. . .
	public RegForm(final String id) {

		username = new TextField("username", new PropertyModel(properties,
"username"));
		username.setRequired(true);
		add(username);
		. . .
		email = new TextField("email", new PropertyModel(properties,"email"));
		email.add(EmailAddressPatternValidator.getInstance());
		email.setRequired(true);
		add(email);

		final FeedbackPanel feedback = new FeedbackPanel("feedback");
		this.add(feedback);
. . .
	}
. . .
}


when i run the app it seems as though the required setting for username is being 
ignored. as long as i provide a value for email the form is considered valid and onSubmit() processing  is followed.

if i remove the required setting on email only then will the username required setting kick in. 

can you guys see any obvious problems here?


View this message in context: setting required on multiple form components
Sent from the Wicket - User forum at Nabble.com.


[Wicket-user] Re: Refreshing page contents

2006-03-30 Thread Anders Peterson

Thanks for trying to help,

I haven't solved the problem yet, but I think I know what it is - and it 
has nothing to do with Wicket.


Since I did change the database model I introduced cover methods similar 
to this:


getMarketWeight() {
return ModelUtils.getMarketWeight(this.getUser(), this);
}

... so that I wouldn't have to alter my Wicket pages. Unfortunately I 
ended up with different instances of business objects (representing the 
same database row) in different parts of the same page, and...


The exact details are too complicated too explain here, and they have 
nothing to do with Wicket.


/Anders

Juergen Donnerstag wrote:

Sounds like your browser is using its local cache. Try
meta http-equiv=Expires content=-1 /
meta http-equiv=Pragma content=no-cache /
meta http-equiv=Cache-Control content=no-cache /

Juergen

On 3/30/06, Anders Peterson [EMAIL PROTECTED] wrote:

Hi,

I have a problem refreshing page contents.

This did work as intended before I updated the database model. The
page's code has not been changed other than in one case I had to change
what objects I loop through. The page functions exactly as before except
for one thing: When submitting the form the read/display only components
(Labels inside the Form) are not updated.

I've tried calling modelChanged() and setVisible(boolean) but it doesn't
change anything (and I did not have to do this before). The get methods
that produce the values are never accessed after the page is first built.

The application menu is a collection of BookmarkablePageLink:s. Even
when I return to this page after visiting other pages those get methods
are not called. I suspect this is the key to the solution - but I don't
get it! Can you help?

/Anders
--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642



--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Johan Compagner
yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



RE: [Wicket-user] validators get reset?

2006-03-30 Thread Roan O'Sullivan
Yes. The TextFields are inside a ListView.



From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
Sent: Wed 3/29/2006 11:55 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] validators get reset?


are these textfields inside a listview?

-Igor



On 3/29/06, Roan O'Sullivan [EMAIL PROTECTED]  wrote: 

Hi.I am dynamically building a form, and I dynamically add validators 
for TextField inputs (RequiredValidator, TypeValidator, etc.) in a 
DropDownChoice's IOnChangeListener method. When I step through the code, that 
seems to work correctly: validators are added to the TextField input. 
 
But when I submit the form and inspect the validators field of 
TextField input while stepping through the code, I find that it is set back to 
null again. 
 
Can anyone offer me any clues as to what is happening? Why are the 
validators that I add to the TextField component not sticking? Is it b/c I'm 
adding the validators to the component *after* I add the component to the 
parent component (I have no idea why that would make a difference but it 
crossed my mind)? 
 
Any help would be appreciated. Thanks, Roan
 
 


winmail.dat

Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Martijn Dashorst
So you propose that for every property we want to put into Wicket we should add a new property file? wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:
yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


RE: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Bennett, Timothy (JIS - Applications)
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Eelco Hillenius
 Sent: Wednesday, March 29, 2006 1:32 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] TabbedPanel, InputForm and submit
 
 A different approach is to use ajax enabled fields so that 
 everytime you leave an input field your changes are 
 immediately applied to the models. That way it doesn't matter 
 at all which link you click anywhere.
 

Are Ajax-enabled field available out-of-the-box in Wicket 1.2?


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Martijn Dashorst
Depends on what you call 'ajax-enabled'. :-)Check the wicket-examples project.MartijnOn 3/30/06, Bennett, Timothy (JIS - Applications)
 [EMAIL PROTECTED] wrote:
 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] On Behalf Of Eelco Hillenius Sent: Wednesday, March 29, 2006 1:32 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] TabbedPanel, InputForm and submit
 A different approach is to use ajax enabled fields so that everytime you leave an input field your changes are immediately applied to the models. That way it doesn't matter at all which link you click anywhere.
Are Ajax-enabled field available out-of-the-box in Wicket 1.2?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Martijn Dashorst
There is an auto edit label available. You can also add ajax behavior to form components.MartijnOn 3/30/06, Martijn Dashorst 
[EMAIL PROTECTED] wrote:Depends on what you call 'ajax-enabled'. :-)
Check the wicket-examples project.MartijnOn 3/30/06, Bennett, Timothy (JIS - Applications)
 [EMAIL PROTECTED] wrote:

 -Original Message- From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
] On Behalf Of Eelco Hillenius Sent: Wednesday, March 29, 2006 1:32 PM To: 
wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] TabbedPanel, InputForm and submit
 A different approach is to use ajax enabled fields so that everytime you leave an input field your changes are immediately applied to the models. That way it doesn't matter at all which link you click anywhere.
Are Ajax-enabled field available out-of-the-box in Wicket 1.2?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!

http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org

-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


[Wicket-user] Re: Wicket Include vs. RequestDispatcher.include

2006-03-30 Thread Robert McClay
I posted a very similar component to the group a while back -- search 
for Servlet forward to a JSP. It could be used as a starting point 
for a nice component, as it definitely needs polishing.


On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said:


How about extending Include as follows:
public class LightInclude extends Include {

public LightInclude(String id, String model, ServletRequest 
request, ServletResponse response) {

   this.request = request;
   this.response = response;
}

protected String importUrl(String url) {
//create a buffer
Writer writer = new BufferedWriter(new CharArratWriter());
//create some mockup response
ServletResponse mockupResponse = new ServletResponse() {
   //implement all interface methods by delegating to the 
original response except for this:

   public PrintWriter getWriter(){
  return new PrintWriter(writer);
   }
};
   //call RequestDispatcher with the mockup response
//this will write the response to our buffer
request.getrequestDispatcher(url).include(request, mockupResponse);
   //return the content of the buffer
return writer.toString();
}
}

I guess some additional polish is required..
Nili

Eelco Hillenius wrote:

That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:


Hi,
Is there an option to use utilize wicket Include without opening a new
connection?
I would like to include the contents of a URL like
RequestDispatcher.include() does, directly into a wicket component.
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Igor Vaynberg
but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.
call it wicket-internal.properties or some such.-IgorOn 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So you propose that for every property we want to put into Wicket we should add a new property file? 
wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:

yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Juergen Donnerstag
What about Application.properties as the internal one. It is (should)
already be search for.

Juergen

On 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but the problem with wicket.properties is that it is also used by our users!
 what we need is a unique property file that our users wont have in their
 classpath - so that we can be sure we are reading the proper one.

  call it wicket-internal.properties or some such.

 -Igor



 On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]  wrote:
 
  So you propose that for every property we want to put into Wicket we
 should add a new property file? wicket.properties is already there. Why
 introduce another file?
 
  Martijn
 
 
 
  On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote:
  
   yes i think i already did mention that before
   it should be looking for an unique text file. like
 wicket-version.properties.
  
   Can maven generate that file martijn? So that we look for this?
  
  
   johan
  
  
  
  
   On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,
   
I tried FrameworkSettings.getVersion(), but it seems to read
wicket.properties of my application instead from wicketXX.jar. Does it
 work
for you?
   
Thanks, Jan
   
   
   
   
   
   
 ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
that extends applications into web and mobile media. Attend the live
 webcast
and join the prime developer group breaking into this new coding
 territory!
   
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
 
 
  --
  Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
  -- http://wicketframework.org




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Igor Vaynberg
looks like we are missing Serializable somewhere. I really do wish that exception message was more helpful! can you try trunk and see if the error is still there?-IgorOn 3/30/06, 
Stefan Lindner [EMAIL PROTECTED] wrote:
Dear Eelco,you wroteA different approach is to use ajax enabled fields so that everytimeyou leave an input field your changes are immediately applied to themodels. That way it doesn't matter at all which link you click
anywhere.I try the 1.2beta2examples ajax/Form Example: shows ajax form processingthis leads to the folowing error message (JBoss4.0.4RC2, Java 5_6)wicket.WicketRuntimeException
: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: wicket.examples.ajax.builtin.FormPage wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:132) wicket.Session.setAttribute
(Session.java:794) wicket.Session.update(Session.java:845) wicket.protocol.http.WebSession.update(WebSession.java:116) wicket.RequestCycle.cleanUp(RequestCycle.java:794) wicket.RequestCycle.steps(RequestCycle.java
:1028) wicket.RequestCycle.request(RequestCycle.java:452) wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:210) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service
(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


[Wicket-user] 货物进出口报关服务

2006-03-30 Thread 商务信息
深 圳 市 海 德 嵩 实 业 有 限 公 司
业务简介
我司是经海关总署备案、国家外贸总局批准享有经营进出口业务的大型市属企业之一,享有国家给予
保税贸易优惠政策,拥有一般贸易的进出口权。公司主要代理纺织品、五金、塑胶制品、鞋、手袋、
木制品、家私、陶瓷、电器、电子、玩具 、灯具、玻璃、树脂、圣诞工艺品等进出口贸易(违禁品
除外)。公司资信良好,与口岸、商检局、银行等密切配合!为利用这一切优势,特代理各厂家进出
口货物报关、报检、签普惠证(F/A)、产地证(C/O)货物运输拖车及散货入仓等业务。公司机构庞
大,业务遍及珠江三角洲地区,已与几百家工厂建立了良好的合作伙伴关系。公司多年来一直以信誉
第一,客户至上”的原则,深受新老客户的信任与支持,并赢得了各厂商的赞赏。我司继续奉着优质
服务,真诚合作”的信念,与贵方合作!
我司代理出口报关业务有以下特点:
1、不需要贵厂出口外汇的税票,贵厂只要将有关出货的时间、品名、箱数、规格、唛头、毛重、净重、
   消费国别、报关口岸(即出货清单)传真到我司。
2、我司将用本公司单证向深圳(皇岗、文锦渡、盐田、蛇口、笋岗、机场)海关申报出口报关。手续
   简便,快捷及时。
3、如因我司申报业务出差错或我司报关原因造成延时,造成货物延期出口,我司将负责这一期间的一
   切费用。(海关检验除外)
4、我司同时还开展海关业务咨询,申领进出口许可证。竭诚欢迎各厂家(公司)来电来函(传真)洽
   谈业务,我司将以最优惠的价格、最高效的服务与贵方一起携手合作,谢谢!
联系人:刘先生 手机:13530839095(深圳)   
E-mail:[EMAIL PROTECTED] 
公司电话:0755-28261371 
传真:0755-28261371
公司地址:深圳市罗湖区人民北路永通大厦1501   
邮编:518000
请相信我们会做得更好!



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] RE: TabbedPanel, InputForm and submit

2006-03-30 Thread Stefan Lindner
Thank you all for your hints,

an AjaxTabbedPanel together with an AjaxCheckBox does the trick. Works
really fine!
BUT: Now I need a text input field with the same functionality.
As I can't find an AjaxTextField I tried an AjaxEditableLabel. But this
does not work.

The HTML part

input wicket:id=freitext id=freitext type=text/

And the Java part

AjaxEditableLabel stringTextField = new
AjaxEditableLabel(freitext, new PropertyModel(model, freitext)) {
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(onUpdate);
}
};
add(stringTextField);

Resuts in the HTML sequence
input type=text wicket:id=freitext
id=seiteninhalt_tabs_panel_inputForm_freitext
wicket:panel
span wicket:id=label onClick=var
wicketAjaxCallMade=wicketAjaxGet('/Visiomedic/VisioPAD?wicket:interface=
:1:seiteninhalt:tabs:panel:inputForm:freitext:label:-1:IUnversionedBehav
iorListenerwicket:behaviorId=0');
id=seiteninhalt_tabs_panel_inputForm_freitext_label/span
/wicket:panel
/input


Stefan Lindner

--
Visionet GmbH, Am Weichselgarten 7, 91058 Erlangen
Tel.: (09131)691-230, FAX: (09131)691-111
E-Mail: mailto:[EMAIL PROTECTED], Internet:
http://www.visionet.de


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RE: TabbedPanel, InputForm and submit

2006-03-30 Thread Igor Vaynberg
keep the textbox and add a AjaxFormComponentUpdatingBehavior to the onblur event. that way whenever the focus is lost from the textfield its value will be submitted via ajax-Igor
On 3/30/06, Stefan Lindner [EMAIL PROTECTED] wrote:
Thank you all for your hints,an AjaxTabbedPanel together with an AjaxCheckBox does the trick. Worksreally fine!BUT: Now I need a text input field with the same functionality.As I can't find an AjaxTextField I tried an AjaxEditableLabel. But this
does not work.The HTML partinput wicket:id=freitext id=freitext type=text/And the Java partAjaxEditableLabel stringTextField = new
AjaxEditableLabel(freitext, new PropertyModel(model, freitext)) {protected void onUpdate(AjaxRequestTarget target) {System.out.println(onUpdate);
}};add(stringTextField);Resuts in the HTML sequenceinput type=text wicket:id=freitextid=seiteninhalt_tabs_panel_inputForm_freitext
wicket:panelspan wicket:id=label >wicketAjaxCallMade=wicketAjaxGet('/Visiomedic/VisioPAD?wicket:interface=:1:seiteninhalt:tabs:panel:inputForm:freitext:label:-1:IUnversionedBehav
iorListenerwicket:behaviorId=0');id=seiteninhalt_tabs_panel_inputForm_freitext_label/span/wicket:panel/inputStefan Lindner
--Visionet GmbH, Am Weichselgarten 7, 91058 ErlangenTel.: (09131)691-230, FAX: (09131)691-111E-Mail: mailto:
[EMAIL PROTECTED], Internet:http://www.visionet.de---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket stuff migration CVS - SVN NOT done yet

2006-03-30 Thread Martijn Dashorst
All,When I got around to doing the migration, the development CVS server of sf.net died. http://sourceforge.net/docman/display_doc.php?docid=2352group_id=1
When it is up again, I'll start the conversion. I'm scheduling it for saturday (income tax statement is due).In the mean time, please don't start committing to SVN! The contents of the repository will be cleared when the final migration takes place.
Martijn-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


Re: [Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Martijn Dashorst
Feel free to contribute! You now know how to do it, write a (small) document about it and put it on our wiki!MartijnOn 3/30/06, Stefan Lindner
 [EMAIL PROTECTED] wrote:Once again thanks for all your help. The problem is solved. Not every
comonent inside of the form must be an ajax component.form.setOutputMarkupId(true);add(form);AjaxFormValidatingBehavior.addToAllFormComponents(form,onblur);
Does it all. It's a pleasure to use wicket. But it would be much muchmore pleasent if the documentation could be improved.Stefan Lindner
--Visionet GmbH, Am Weichselgarten 7, 91058 ErlangenTel.: (09131)691-230, FAX: (09131)691-111E-Mail: mailto:[EMAIL PROTECTED], Internet:
http://www.visionet.de---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Johan Compagner
yes exactly like igors says,.Because we are looking up for a wicket properties file (and only one) which one does it return?? It could be the one from the extentionsor the one users do provide. We don't have control of that.
We need one single unique properties file for that. Else we can't load it and be sure we have the right one just like jan was saying.I already mentioned this before in an email but i think i send it to maurice by mistake.
johanOn 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.

call it wicket-internal.properties or some such.-Igor
On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So you propose that for every property we want to put into Wicket we should add a new property file? 
wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:


yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 

http://wicketframework.org






Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Johan Compagner
No not application properties.That one is kind of reserved if it was me.Because that is the name of the properties file that i want to have for all the default messges (in english)I hope that we can also give that in 
1.2 So that as last the wicket.Application.properties is loaded to lookup for messages.The we can add one for every language developers supply yo us.johanOn 3/30/06, 
Juergen Donnerstag [EMAIL PROTECTED] wrote:
What about Application.properties as the internal one. It is (should)already be search for.JuergenOn 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.
call it wicket-internal.properties or some such. -Igor On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
  wrote:   So you propose that for every property we want to put into Wicket we should add a new property file? wicket.properties is already there. Why introduce another file?
   Martijn On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote: yes i think i already did mention that before
   it should be looking for an unique text file. like wicket-version.properties. Can maven generate that file martijn? So that we look for this?  
 johan   On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,   I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it
 workfor you?   Thanks, Jan   
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live
 webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
 --  Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
  -- http://wicketframework.org---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Martijn Dashorst
So how do we process the wicket.properties files for getting the initializers?That does work for the initializers for all the new jar file, why not for wicket.version?Martijn
On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote:
yes exactly like igors says,.Because we are looking up for a wicket properties file (and only one) which one does it return?? It could be the one from the extentionsor the one users do provide. We don't have control of that.
We need one single unique properties file for that. Else we can't load it and be sure we have the right one just like jan was saying.I already mentioned this before in an email but i think i send it to maurice by mistake.
johanOn 3/30/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:

but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.

call it wicket-internal.properties or some such.-Igor
On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So you propose that for every property we want to put into Wicket we should add a new property file? 
wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:



yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net



https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 


http://wicketframework.org





-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.
-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:

I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!






Re: [Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Vincent Jenks
That'd be awesome, I could use something like this!On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:Feel free to contribute! You now know how to do it, write a (small) document about it and put it on our wiki!
MartijnOn 3/30/06, 
Stefan Lindner
 [EMAIL PROTECTED] wrote:
Once again thanks for all your help. The problem is solved. Not every
comonent inside of the form must be an ajax component.form.setOutputMarkupId(true);add(form);AjaxFormValidatingBehavior.addToAllFormComponents(form,onblur);

Does it all. It's a pleasure to use wicket. But it would be much muchmore pleasent if the documentation could be improved.Stefan Lindner
--Visionet GmbH, Am Weichselgarten 7, 91058 ErlangenTel.: (09131)691-230, FAX: (09131)691-111E-Mail: mailto:
[EMAIL PROTECTED], Internet:
http://www.visionet.de---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Igor Vaynberg
indeed. that or a javadoc patch are more then welcome.-IgorOn 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:Feel free to contribute! You now know how to do it, write a (small) document about it and put it on our wiki!
MartijnOn 3/30/06, 
Stefan Lindner
 [EMAIL PROTECTED] wrote:
Once again thanks for all your help. The problem is solved. Not every
comonent inside of the form must be an ajax component.form.setOutputMarkupId(true);add(form);AjaxFormValidatingBehavior.addToAllFormComponents(form,onblur);

Does it all. It's a pleasure to use wicket. But it would be much muchmore pleasent if the documentation could be improved.Stefan Lindner
--Visionet GmbH, Am Weichselgarten 7, 91058 ErlangenTel.: (09131)691-230, FAX: (09131)691-111E-Mail: mailto:
[EMAIL PROTECTED], Internet:
http://www.visionet.de---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Johan Compagner
We ask for all the wicket properties file there are. And execute there initilalizer what is specificed in all of themBut are you really wanting to walk over every possible file and then look when you encounter the one that suddenly
has wicket.version it it??Then we really should change the method to cache the value instead of doing that on every request.johanOn 3/30/06, 
Martijn Dashorst [EMAIL PROTECTED] wrote:
So how do we process the wicket.properties files for getting the initializers?That does work for the initializers for all the new jar file, why not for wicket.version?
Martijn
On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote:

yes exactly like igors says,.Because we are looking up for a wicket properties file (and only one) which one does it return?? It could be the one from the extentionsor the one users do provide. We don't have control of that.
We need one single unique properties file for that. Else we can't load it and be sure we have the right one just like jan was saying.I already mentioned this before in an email but i think i send it to maurice by mistake.
johanOn 3/30/06, 

Igor Vaynberg [EMAIL PROTECTED] wrote:


but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.

call it wicket-internal.properties or some such.-Igor
On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So you propose that for every property we want to put into Wicket we should add a new property file? 
wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:




yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net




https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 



http://wicketframework.org





-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Igor Vaynberg
i dont see a problem with having a wicket-internal.properties. this can be used for all the internal things we use, version now, and maybe some other stuff. this will only be used by wicket so we can be guaranteed no collissions. lets keep 
wicket.properties for more general things.-IgorOn 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So how do we process the wicket.properties
 files for getting the initializers?That does work for the initializers for all the new jar file, why not for wicket.version?Martijn

On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote:

yes exactly like igors says,.Because we are looking up for a wicket properties file (and only one) which one does it return?? It could be the one from the extentionsor the one users do provide. We don't have control of that.
We need one single unique properties file for that. Else we can't load it and be sure we have the right one just like jan was saying.I already mentioned this before in an email but i think i send it to maurice by mistake.
johanOn 3/30/06, 

Igor Vaynberg [EMAIL PROTECTED] wrote:


but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.

call it wicket-internal.properties or some such.-Igor
On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
 wrote:So you propose that for every property we want to put into Wicket we should add a new property file? 
wicket.properties is already there. Why introduce another file?MartijnOn 3/30/06, 
Johan Compagner [EMAIL PROTECTED] wrote:




yes i think i already did mention that beforeit should be looking for an unique text file. like wicket-version.properties.Can maven generate that file martijn? So that we look for this?
johan
On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:

Hi,I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it workfor you?Thanks, Jan---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net




https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 



http://wicketframework.org





-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Igor Vaynberg
i didnt say introduce spring as a dependency.i said look at how wicket-spring injects special proxies into wicket components that you can safely store in session, etcit will take very little tweaking to make it work for ejb3.
look at the Spring page on the wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related.-Igor
On 3/30/06, Vincent Jenks [EMAIL PROTECTED] wrote:
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.

-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:


I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!








Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread cowwoc

If it is internal, why read it from a property file at all? Why isn't
this hard-coded into the code?

Gili

Igor Vaynberg wrote:
 i dont see a problem with having a wicket-internal.properties. this can
 be used for all the internal things we use, version now, and maybe some
 other stuff. this will only be used by wicket so we can be guaranteed no
 collissions. lets keep wicket.properties for more general things.
 
 -Igor
 
 
 On 3/30/06, *Martijn Dashorst* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 So how do we process the wicket.properties files for getting the
 initializers?
 
 That does work for the initializers for all the new jar file, why
 not for wicket.version?
 
 
 Martijn
 
 
 On 3/30/06, *Johan Compagner* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 yes exactly like igors says,.
 Because we are looking up for a wicket properties file (and only
 one) which one does it return?? It could be the one from the
 extentions
 or the one users do provide. We don't have control of that.
 
 We need one single unique properties file for that. Else we
 can't load it and be sure we have the right one just like jan
 was saying.
 I already mentioned this before in an email but i think i send
 it to maurice by mistake.
 
 johan
 
 
 On 3/30/06, * Igor Vaynberg* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 but the problem with wicket.properties is that it is also
 used by our users! what we need is a unique property file
 that our users wont have in their classpath - so that we can
 be sure we are reading the proper one.
 
 call it wicket-internal.properties or some such.
 
 -Igor
 
 
 
 On 3/30/06, *Martijn Dashorst* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 So you propose that for every property we want to put
 into Wicket we should add a new property file?
 wicket.properties is already there. Why introduce
 another file?
 
 Martijn
 
 
 On 3/30/06, *Johan Compagner* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 yes i think i already did mention that before
 it should be looking for an unique text file. like
 wicket-version.properties.
 
 Can maven generate that file martijn? So that we
 look for this?
 
 johan
 
 
 
 On 3/30/06, *jan_bar* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I tried FrameworkSettings.getVersion(), but it
 seems to read
 wicket.properties of my application instead from
 wicketXX.jar. Does it work
 for you?
 
 Thanks, Jan
 
 
 
 
 
 
 ---
 
 This SF.Net email is sponsored by xPML, a
 groundbreaking scripting language
 that extends applications into web and mobile
 media. Attend the live webcast
 and join the prime developer group breaking into
 this new coding territory!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 -- 
 Wicket 1.2 is coming! Write Ajax applications without
 touching JavaScript!
 -- http://wicketframework.org 
 
 
 
 
 
 
 -- 
 Wicket 1.2 is coming! Write Ajax applications without touching
 JavaScript!
 -- http://wicketframework.org 
 
 



signature.asc
Description: OpenPGP digital signature


Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
OK, I'll check into it, thanks. Meanwhile, if I *did* want to...I could pass the cart stub around in the constructors, couldn't I? Or, is this somehow not safe?I'm thinking that might be the quickest, easiest approach for now. I only need it for a few pages.
On 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i didnt say introduce spring as a dependency.i said look at how wicket-spring injects special proxies into wicket components that you can safely store in session, etcit will take very little tweaking to make it work for ejb3.
look at the Spring page on the wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related.
-Igor
On 3/30/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.


-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:



I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!










[Wicket-user] NoClassDefFoundError in TreeComponentInitializer#38

2006-03-30 Thread Matthias Albert

Hi,
today I tried to use my own class MyReasourceStreamLocator based on 
AbstractResourceStreamLocator and registered it in Application.init() 
(the derived method).


Surprisingly, I got a NoClassDefFoundError. A part of the stack trace 
is shown below. I am using Wicket 1.2beta2.



java.lang.NoClassDefFoundError
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:164)
wicket.markup.html.tree.TreeComponentInitializer.class$(TreeComponentInitializer.java:38) 
wicket.markup.html.tree.TreeComponentInitializer.init(TreeComponentInitializer.java:38)

wicket.Initializer.init(Initializer.java:59)
wicket.Application.initialize(Application.java:651)
wicket.Application.initializeComponents(Application.java:716)
wicket.Application.initializeComponents(Application.java:693)
wicket.protocol.http.WicketServlet.init(WicketServlet.java:287)


Line 38 in the source file TreeComponentInitializer.java is the first 
line inside this method:


public void init(Application application)
{
 PackageResource.bind(application, Tree.class, blank.gif); //line #38
 PackageResource.bind(application, Tree.class, minus.gif);
 PackageResource.bind(application, Tree.class, plus.gif);
 PackageResource.bind(application, Tree.class, tree.css);
}


Could it be a problem that Tree is an abstract class?


Matthias Albert




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Igor Vaynberg
depends on what the stub references. if you already have it in session somewhere then its ok.-IgorOn 3/30/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:OK, I'll check into it, thanks. Meanwhile, if I *did* want to...I could pass the cart stub around in the constructors, couldn't I? Or, is this somehow not safe?
I'm thinking that might be the quickest, easiest approach for now. I only need it for a few pages.
On 3/30/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:
i didnt say introduce spring as a dependency.i said look at how wicket-spring injects special proxies into wicket components that you can safely store in session, etcit will take very little tweaking to make it work for ejb3.
look at the Spring page on the wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related.

-Igor
On 3/30/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg 


[EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.



-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:




I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!












Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
Well...on page1 it would create the ShoppingCart stub from JNDII'd pass it to page2 as a parampage2 would modify itand pass it to page3and so on.It's a single, stateful session bean.
On 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
depends on what the stub references. if you already have it in session somewhere then its ok.-Igor
On 3/30/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:OK, I'll check into it, thanks. Meanwhile, if I *did* want to...I could pass the cart stub around in the constructors, couldn't I? Or, is this somehow not safe?
I'm thinking that might be the quickest, easiest approach for now. I only need it for a few pages.
On 3/30/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
i didnt say introduce spring as a dependency.i said look at how wicket-spring injects special proxies into wicket components that you can safely store in session, etcit will take very little tweaking to make it work for ejb3.
look at the Spring page on the wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related.


-Igor
On 3/30/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg 



[EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.




-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:





I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!














[Wicket-user] can't get rid of Choose One in DropDownChoice

2006-03-30 Thread Vincent Jenks
The code...  //create calendar  ListString days = DateTime.getDaysListForward(2, 4);//add quantity select listform.add(new DropDownChoice(arrivalDate, days, new IChoiceRenderer()
  {   protected String getDefaultChoice(final Object selected)  { return ; //get rid of Choose One default  }  public String getDisplayValue(Object object)
   {return object.toString();   }  public String getIdValue(Object object, int index)   {return object.toString();
   }}));  When rendered...I still get the Choose One option first. Did I lose too much sleep last night...what did I miss?


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Igor Vaynberg
What do you need the ajax enabled field out of the box to do?we have a lot of out of the box ajax behaviors you can add to any textfield/formcomponent.-IgorOn 3/30/06, 
Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote:
 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] On Behalf Of Eelco Hillenius Sent: Wednesday, March 29, 2006 1:32 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] TabbedPanel, InputForm and submit
 A different approach is to use ajax enabled fields so that everytime you leave an input field your changes are immediately applied to the models. That way it doesn't matter at all which link you click anywhere.
Are Ajax-enabled field available out-of-the-box in Wicket 1.2?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Igor Vaynberg
yeah if we ask getResource(wicket/Application.properties) that should be enough. the main thing to keep in mind is we have toeither ask for a properties file that is in our package or we have to use unique if it is on the classpath.
or what we can do is make maven filter the version numbers into some .java we have before compilation.-IgorOn 3/30/06, Juergen Donnerstag
 [EMAIL PROTECTED] wrote:
What about Application.properties as the internal one. It is (should)already be search for.JuergenOn 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but the problem with wicket.properties is that it is also used by our users! what we need is a unique property file that our users wont have in their classpath - so that we can be sure we are reading the proper one.
call it wicket-internal.properties or some such. -Igor On 3/30/06, Martijn Dashorst [EMAIL PROTECTED]
  wrote:   So you propose that for every property we want to put into Wicket we should add a new property file? wicket.properties is already there. Why introduce another file?
   Martijn On 3/30/06, Johan Compagner [EMAIL PROTECTED] wrote: yes i think i already did mention that before
   it should be looking for an unique text file. like wicket-version.properties. Can maven generate that file martijn? So that we look for this?  
 johan   On 3/30/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,   I tried FrameworkSettings.getVersion(), but it seems to readwicket.properties of my application instead from wicketXX.jar. Does it
 workfor you?   Thanks, Jan   
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live
 webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
 --  Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
  -- http://wicketframework.org---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Bennett, Timothy (JIS - Applications)



For starters... Eelco's saying:

 A different approach 
is to use ajax enabled fields so that everytime you leave an input field 
your changes are immediately applied to the models. That way it doesn't 
matter at all which link you click anywhere.

Have the model updated automatically whenever the focus 
changes from one field to another would be a great enhancement for my 
application. Also, I have an upcoming requirement in which I'll need to 
prompt the user for unsaved data even if he clicks some link external to the 
form (like in my border for instance). I'm reading a lot into Eelco's 
comment, but it seems that ajax enabled fields might be the answer for 
this.

My current project is 1.1.1, but I'll be starting 
(hopefully) a 1.2-based project in May/June. Are these ajax-enabled 
behaviors available in 1.1.1?

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Igor 
  VaynbergSent: Thursday, March 30, 2006 11:14 AMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  TabbedPanel, InputForm and submit
  
  What do you need the ajax enabled field out of the box to do?we 
  have a lot of out of the box ajax behaviors you can add to any 
  textfield/formcomponent.-Igor


Re: [Wicket-user] TabbedPanel, InputForm and submit

2006-03-30 Thread Igor Vaynberg
i dont think behaviors were in 1.1 so the chances of having them backported are pretty slim unless you want to do the work yourself.-IgorOn 3/30/06, 
Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote:





For starters... Eelco's saying:

 A different approach 
is to use ajax enabled fields so that everytime you leave an input field 
your changes are immediately applied to the models. That way it doesn't 
matter at all which link you click anywhere.

Have the model updated automatically whenever the focus 
changes from one field to another would be a great enhancement for my 
application. Also, I have an upcoming requirement in which I'll need to 
prompt the user for unsaved data even if he clicks some link external to the 
form (like in my border for instance). I'm reading a lot into Eelco's 
comment, but it seems that ajax enabled fields might be the answer for 
this.

My current project is 1.1.1, but I'll be starting 
(hopefully) a 1.2-based project in May/June. Are these ajax-enabled 
behaviors available in 1.1.1?

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Igor 
  VaynbergSent: Thursday, March 30, 2006 11:14 AMTo: 
  wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] 
  TabbedPanel, InputForm and submit
  
  What do you need the ajax enabled field out of the box to do?we 
  have a lot of out of the box ajax behaviors you can add to any 
  textfield/formcomponent.-Igor




Re: [Wicket-user] can't get rid of Choose One in DropDownChoice

2006-03-30 Thread Igor Vaynberg
you are putting getDefaultChoice into the renderer, when it actually belongs in the DropDownChoice-IgorOn 3/30/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:The code...
  //create calendar  ListString days = DateTime.getDaysListForward(2, 4);//add quantity select listform.add(new DropDownChoice(arrivalDate, days, new IChoiceRenderer()
  {   protected String getDefaultChoice(final Object selected)  { return ; //get rid of Choose One default  }  public String getDisplayValue(Object object)
   {return object.toString();   }  public String getIdValue(Object object, int index)   {return object.toString
();
   }}));  When rendered...I still get the Choose One option first. Did I lose too much sleep last night...what did I miss?




Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Igor Vaynberg
the only concern here is that you do not want to put things into session that you dont want serialized, etc. since this is a session bean that means it is in session already anyways, so you should be ok passing it around in wicket.
-IgorOn 3/30/06, Vincent Jenks [EMAIL PROTECTED] wrote:
Well...on page1 it would create the ShoppingCart stub from JNDII'd pass it to page2 as a parampage2 would modify itand pass it to page3and so on.It's a single, stateful session bean.

On 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

depends on what the stub references. if you already have it in session somewhere then its ok.-Igor
On 3/30/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:OK, I'll check into it, thanks. Meanwhile, if I *did* want to...I could pass the cart stub around in the constructors, couldn't I? Or, is this somehow not safe?
I'm thinking that might be the quickest, easiest approach for now. I only need it for a few pages.
On 3/30/06, Igor Vaynberg 


[EMAIL PROTECTED] wrote:
i didnt say introduce spring as a dependency.i said look at how wicket-spring injects special proxies into wicket components that you can safely store in session, etcit will take very little tweaking to make it work for ejb3.
look at the Spring page on the wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related.



-Igor
On 3/30/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:
I'd rather not introduce spring as yet another dependency on this project...especially because I know very little about it and don't have the time to tinker w/ it for this project.What about passing the ShoppingCart EJB stub around in my page constructors instead of using a getter/setter in my custom UserSession class? Wouldn't that be safe?
On 3/29/06, Igor Vaynberg 




[EMAIL PROTECTED] wrote:
you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean.





-Igor
On 3/29/06, Vincent Jenks [EMAIL PROTECTED] wrote:






I'm sitting here, pondering, and getting fatter. I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...and I'm not sure of a real elegant way of doing that. So, I was just hoping someone here could provide some insight.
In Wicket, I've already got a class called UserSession which I use to pass around an User so I can test whether or not a page is accessible by certain user groups. I decided, to keep it simple, that I'd add a getter  setter for my ShoppingCart stub in the same class so it could be passed around in-session w/ the User, since each shopper will have an User automatically created for them before checking out and paying.
The problem w/ all this SFSB business is; it violates my design because I have to make my web tier talk directly to my session bean in order to keep track of its state. For everything else I've been using a handful of proxy classes where I could place calls to my session beans and other business logic.
It looks a little like this:Wicket-ProxyClass-SessionBean-DatabaseSo, now I'll have to keep track of the ShoppingCart stub class in Wicket, pass the ShoppingCart and the users' chosen form values into the Proxy, perform business logic, and then return a ShoppingCart which I'll have to place *back* into the 
UserSession.setCart() method to continue to keep track of the state of the users' carts.This is kinda nasty, is there an easier (or just more elegant) way to do this?Thanks all!
















[Wicket-user] Re: [Wicket-develop] [ wicket-Bugs-1461175 ] ajax examples - tabbed panel example bug

2006-03-30 Thread Igor Vaynberg
im really not sure what to do with this one. the one about the pageable
list being broken was because explorer has a bug in
tbody.outerHTML. so that was easy to fix, just removed the update
region from tbody. but this one, im not sure why the hell its not
working in explorer. all i get is a unknown runtime error which isnt
really useful.

what do you guys think? remove the ajaxified tabbed panel from
extensions eventhough it works great in firefox? or add a note to it in
javadoc?

maybe someone who knows more about browsers can take a look and tell me what im doing wrong if anything.

thanks,
-Igor
On 3/30/06, SourceForge.net [EMAIL PROTECTED] wrote:
Bugs item #1461175, was opened at 2006-03-30 10:00Message generated for change (Tracker Item Submitted) made by Item SubmitterYou can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=684975aid=1461175group_id=119783Please note that this message will contain a full copy of the comment thread,including the initial issue submission, for this request,
not just the latest update.Category: examplesGroup: 1.2Status: OpenResolution: NonePriority: 5Submitted By: Jan Bares (jan_bar)Assigned to: Nobody/Anonymous (nobody)Summary: ajax examples - tabbed panel example bug
Initial Comment:The tabbed panel ajax example doesn't work, IE 6.0displays Unknown runtime error from _javascript_.--You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=684975aid=1461175group_id=119783
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___
Wicket-develop mailing listWicket-develop@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-develop



Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Eelco Hillenius
(Probably?) because that way we can copy the version info from the
maven definition file and thus do not do things double.

Eelco

On 3/30/06, cowwoc [EMAIL PROTECTED] wrote:

 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili

 Igor Vaynberg wrote:
  i dont see a problem with having a wicket-internal.properties. this can
  be used for all the internal things we use, version now, and maybe some
  other stuff. this will only be used by wicket so we can be guaranteed no
  collissions. lets keep wicket.properties for more general things.
 
  -Igor
 
 
  On 3/30/06, *Martijn Dashorst* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  So how do we process the wicket.properties files for getting the
  initializers?
 
  That does work for the initializers for all the new jar file, why
  not for wicket.version?
 
 
  Martijn
 
 
  On 3/30/06, *Johan Compagner* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  yes exactly like igors says,.
  Because we are looking up for a wicket properties file (and only
  one) which one does it return?? It could be the one from the
  extentions
  or the one users do provide. We don't have control of that.
 
  We need one single unique properties file for that. Else we
  can't load it and be sure we have the right one just like jan
  was saying.
  I already mentioned this before in an email but i think i send
  it to maurice by mistake.
 
  johan
 
 
  On 3/30/06, * Igor Vaynberg* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  but the problem with wicket.properties is that it is also
  used by our users! what we need is a unique property file
  that our users wont have in their classpath - so that we can
  be sure we are reading the proper one.
 
  call it wicket-internal.properties or some such.
 
  -Igor
 
 
 
  On 3/30/06, *Martijn Dashorst* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  So you propose that for every property we want to put
  into Wicket we should add a new property file?
  wicket.properties is already there. Why introduce
  another file?
 
  Martijn
 
 
  On 3/30/06, *Johan Compagner* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  yes i think i already did mention that before
  it should be looking for an unique text file. like
  wicket-version.properties.
 
  Can maven generate that file martijn? So that we
  look for this?
 
  johan
 
 
 
  On 3/30/06, *jan_bar* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I tried FrameworkSettings.getVersion(), but it
  seems to read
  wicket.properties of my application instead from
  wicketXX.jar. Does it work
  for you?
 
  Thanks, Jan
 
 
 
 
 
  
  ---
 
  This SF.Net email is sponsored by xPML, a
  groundbreaking scripting language
  that extends applications into web and mobile
  media. Attend the live webcast
  and join the prime developer group breaking into
  this new coding territory!
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
  
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
  --
  Wicket 1.2 is coming! Write Ajax applications without
  touching JavaScript!
  -- http://wicketframework.org
 
 
 
 
 
 
  --
  Wicket 1.2 is coming! Write Ajax applications without touching
  JavaScript!
  -- http://wicketframework.org
 
 






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. 

Re: [Wicket-user] Caching content

2006-03-30 Thread Eelco Hillenius
And as alternative, you might consider ajax to slim down the requests
and responses.

Eelco


On 3/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you can cache those calculations in a model
 have a CachingModel that decorates another model and applies caching
 strategies.

 streaming html is fast in wicket, not sure if caching the actual html output
 will help you much.

 -Igor



 On 3/29/06, Alexander Lohse [EMAIL PROTECTED] wrote:
  Hi John,
 
  thank you for sharing your thoughts. I am just in the same process/
  needs. I have a PHP-Application that grew into too much spagetthi-
  code over the years, and we have a strong need for a compiled, typed
  language to preserve stability and be able to continue growing.
  This is a medium size site (av 2000 user/day, 3/pages per day).
  But we use heavy calculations and database interaction.
 
  Being able to cache in PHP is crucial. And this performance thingy is
  my only worry about using wicket ...
  Can anyone share some performance experiences?
 
  Thank you,
 
  Alex
 
  Am 29.03.2006 um 11:38 schrieb John Lee:
 
   I wish I had the time :-)  I'm in the process of moving my client's
   code from php-Java. Need to move to a typed language. Things were
   getting way too messy with PHP. I discovered wicket and think it's
   the right way to go. But I wanted to share my perspective from what
   I learned running a relatively high traffic website for a client...
  
   For very high concurrency sites (usually public facing websites as
   opposed to intranet sites), memory (and CPU cycles used for object
   creation/gc) would seem to be the serious handicap for wicket.
   Small/medium sized operators simply *cannot* afford to overlook
   these in favor of the rich feature set  programming speed wicket
   has to offer. Also in order to capture the hosted market, one has
   to design for VPS servers where CPU  memory are at a premium.
  
   I believe that wicket absolute needs these 2 things to make it to
   the mainstream public web:
   1) stateless objects - all users share a single object, thereby
   drastically reducing memory consumption and tremendously boosting
   scalability.
   2) html page  fragment caching
  
   Thanks for listening.
   John
  
   Eelco Hillenius wrote:
   Is that a proposal? :)
   My first thought on this is to use AOP and meta data (either
   annotations or Wicket meta data). If people are interested, they can
   startup a project in wicket-stuff for this. We (the core developers)
   will try to help when needed/ possible.
   Ramnivas, are you reading with us? Would you agree AOP is suitable
   for this?
   Eelco
   On 3/29/06, John Lee [EMAIL PROTECTED] wrote:
   Hi
  
   I can tell you for public facing websites (vs enterprise),
   caching is a
   key feature that system architects will insist upon. In order to
   support
   extremely high concurrency  throughput, one simply must be able to
   cache portions of HTML fragments.
  
   On my previous php based projects, I use caching to increase
   throughput
   from 30pps to 300pps. That's a factor of 10x. So we're talking
   about 1
   machine replacing 10. From a business perspective, this is
   absolutely
   crucial.
  
   In my opinion, if wicket is going to make it to the mainstream
   public-facing web, it absolutely needs a comprehensive caching
   framework. If possible, the caching framework should not only
   eliminates
   re-rendering of cached HTML fragments, but also eliminate the
   need to
   instantiate objects until actually needed.
  
   John
  
   Juergen Donnerstag wrote:
  
   On 1/2/06, Dariusz Wojtas  [EMAIL PROTECTED] wrote:
  
  
   Hi,
  
   Is it possible to cache dynamically generated content with Wicket?
   When using JSP I may use OSCache tags (specify conditions,
   timeout,
   etc) or create a custom tag that uses any cache implementation
   inside.
   Can this be done with Wicket?
  
   Can panel contents be cached? Other elements? How?
   For example I generate table where each row contains quite
   complex data.
   I'd like to be able to cache each row if needed. Every row might
   contain a unique ID to make caching possible.
  
  
  
   Not out of box yet, but I don't think it is difficult to implement
   based on the recently committed transformers. Currently only a
   XSLT
   and a noop transformer is available but the idea would be the same.
   You just wouldn't transform the output generated by the
   component but
   store them in a cache and restore it when needed. The cache key
   could
   be anything from the component object, its id or path. All children
   would have to me marked rendered though in order to avoid an
   exception.
   Tranformers are available as Container and Behaviours.
   Q. Should the cache span the whole application because the panel
   you
   want to cache is used on multiple pages? Will the panel/list be the
   same for all users?
   Q: what would be the best cache key?
  
   Juergen
  
  
  
   Darek
  
  
 

Re: [Wicket-user] NoClassDefFoundError in TreeComponentInitializer#38

2006-03-30 Thread Eelco Hillenius
I have no idea what that might be. Could you try setting a break point
in that init method?

Eelco

On 3/30/06, Matthias Albert [EMAIL PROTECTED] wrote:
 Hi,
 today I tried to use my own class MyReasourceStreamLocator based on
 AbstractResourceStreamLocator and registered it in Application.init()
 (the derived method).

 Surprisingly, I got a NoClassDefFoundError. A part of the stack trace
 is shown below. I am using Wicket 1.2beta2.


 java.lang.NoClassDefFoundError
 java.lang.Class.forName0(Native Method)
 java.lang.Class.forName(Class.java:164)
 wicket.markup.html.tree.TreeComponentInitializer.class$(TreeComponentInitializer.java:38)
 wicket.markup.html.tree.TreeComponentInitializer.init(TreeComponentInitializer.java:38)
 wicket.Initializer.init(Initializer.java:59)
 wicket.Application.initialize(Application.java:651)
 wicket.Application.initializeComponents(Application.java:716)
 wicket.Application.initializeComponents(Application.java:693)
 wicket.protocol.http.WicketServlet.init(WicketServlet.java:287)


 Line 38 in the source file TreeComponentInitializer.java is the first
 line inside this method:

 public void init(Application application)
 {
   PackageResource.bind(application, Tree.class, blank.gif); //line #38
   PackageResource.bind(application, Tree.class, minus.gif);
   PackageResource.bind(application, Tree.class, plus.gif);
   PackageResource.bind(application, Tree.class, tree.css);
 }


 Could it be a problem that Tree is an abstract class?


 Matthias Albert




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] validators get reset?

2006-03-30 Thread Igor Vaynberg
listview recreates its items on every request so you get new instances of textfields, etc - thats why they dont pick up the input/lose validators. if you want to have a listview inside a form you should call ListView.setUseOptimizedItemRemoval
(true).-IgorOn 3/30/06, Roan O'Sullivan [EMAIL PROTECTED] wrote:
Yes. The TextFields are inside a ListView.
From: [EMAIL PROTECTED] on behalf of Igor VaynbergSent: Wed 3/29/2006 11:55 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] validators get reset?are these textfields inside a listview?-IgorOn 3/29/06, Roan O'Sullivan 
[EMAIL PROTECTED]  wrote:Hi.I am dynamically building a form, and I dynamically add validators for TextField inputs (RequiredValidator, TypeValidator, etc.) in a DropDownChoice's IOnChangeListener method. When I step through the code, that seems to work correctly: validators are added to the TextField input.
But when I submit the form and inspect the validators field of TextField input while stepping through the code, I find that it is set back to null again.Can anyone offer me any clues as to what is happening? Why are the validators that I add to the TextField component not sticking? Is it b/c I'm adding the validators to the component *after* I add the component to the parent component (I have no idea why that would make a difference but it crossed my mind)?
Any help would be appreciated. Thanks, Roan


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Gwyn Evans
I thought we were going to be reading this from the MANIFEST.MF in the
wicket jar?

/Gwyn

On 30/03/06, cowwoc [EMAIL PROTECTED] wrote:

 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] local path

2006-03-30 Thread Alexander Lohse

Hi,

how do I determine the local path to my webapp?

getApplication().getApplicationSettings().getContextPath();

gives me the web-path.

In other words, from this jetty-config:

Call name=addWebApplication
Arg/quickstart/Arg
Argsrc/webapp/Arg
/Call

where do I find the 2. argument?

Regards,

Alex




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread cowwoc

+1

Gili

Gwyn Evans wrote:
 I thought we were going to be reading this from the MANIFEST.MF in the
 wicket jar?
 
 /Gwyn
 
 On 30/03/06, cowwoc [EMAIL PROTECTED] wrote:
 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili
 
 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



signature.asc
Description: OpenPGP digital signature


[Wicket-user] wicket-xhtml1-strict.dtd

2006-03-30 Thread cowwoc
Hi,

Is this file (included in the root directory in SVN) functional or is
it a work in progress? Is there a reason none of the example code seems
to use it?

Thanks,
Gili



signature.asc
Description: OpenPGP digital signature


[Wicket-user] handling blank inputs with NumberValidator

2006-03-30 Thread karthik Guru
I have a TextField having a model of type int and I attached a
NumberValidator and set type to int.class
The field is not marked 'required' though.
if i leave the field blank , i see


Root cause:

java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:585)
...
...

wicket.WicketRuntimeException: Error calling method: public void
com.witckettutorial.common.UserProfile.setPin(int) on object:
[EMAIL PROTECTED]
 at 
wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:838)
 at 
wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:440)


I wonder why is it trying to update model when the field has been left
blank and it anyway isn't marked required.

 -- karthik --


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Latest Version of Contrib Dojo project not building.

2006-03-30 Thread Eelco Hillenius
If you are building with maven, you should first build the other
(snapshot) dependencies.  E.g. wicket and wicket-extensions. It looks
like that's out of sync with you.

Eelco

On 3/30/06, Dipu [EMAIL PROTECTED] wrote:

 Hi All,

 I grabbed the latest version of the wicket and the Wicket and Wicket Contrib
 Dojo from the CVS, i am not able to build the Contrib Dojo project

 Its failing with the following messages

 1. The method convert() is undefined for the type ImmidiateCheckBox
 2. The method convert() is undefined for the type ImmidiateRadioChoice
 3. The method convert() is undefined for the type ImmidiateTextField
 4. Method renderComponent(MarkupStream) in the type Component is not
 applicable for the arguments() - In DojoAutoUpdateHandler - Line 93

 Have i not grabbed the right version , can anyone please help me.


 Thanks

 Dipu



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re[2]: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread shumbola
Çäðàâñòâóéòå, Gwyn.

Âû ïèñàëè 31 ìàðòà 2006 ã., 3:57:26:

 I thought we were going to be reading this from the MANIFEST.MF in the
 wicket jar?

 /Gwyn

A while back I provided an example how one can read version and other
information from jar file's manifest.
IMHO, the version information should be taken from jar file this way,
and maven puts apropriate version info from pom.xml into manifest
file.

Here goes that example again:

 Class cls = Class.forName(wicket.Application);
 Package pkg = cls.getPackage();

 String name = pkg.getName();

 String implTitle   = pkg.getImplementationTitle();
 String implVendor  = pkg.getImplementationVendor();
 String implVersion = pkg.getImplementationVersion();

What is wrong with this aproach if any?

 On 30/03/06, cowwoc [EMAIL PROTECTED] wrote:

 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili


--
 Regards,
 shumbola  mailto:[EMAIL PROTECTED]



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re[2]: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread shumbola
Çäðàâñòâóéòå, Gwyn.

Âû ïèñàëè 31 ìàðòà 2006 ã., 3:57:26:

 I thought we were going to be reading this from the MANIFEST.MF in the
 wicket jar?

 /Gwyn

A while back I provided an example how one can read version and other
information from jar file's manifest.
IMHO, the version information should be taken from jar file this way,
and maven puts apropriate version info from pom.xml into manifest
file.

Here goes that example again:

 Class cls = Class.forName(wicket.Application);
 Package pkg = cls.getPackage();

 String name = pkg.getName();

 String implTitle   = pkg.getImplementationTitle();
 String implVendor  = pkg.getImplementationVendor();
 String implVersion = pkg.getImplementationVersion();

What is wrong with this aproach if any?

 On 30/03/06, cowwoc [EMAIL PROTECTED] wrote:

 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili


--
 Regards,
 shumbola  mailto:[EMAIL PROTECTED]



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re[2]: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread shumbola
Çäðàâñòâóéòå, Gwyn.

Âû ïèñàëè 31 ìàðòà 2006 ã., 3:57:26:

 I thought we were going to be reading this from the MANIFEST.MF in the
 wicket jar?

 /Gwyn

A while back I provided an example how one can read version and other
information from jar file's manifest.
IMHO, the version information should be taken from jar file this way,
and maven puts apropriate version info from pom.xml into manifest
file.

Here goes that example again:

 Class cls = Class.forName(wicket.Application);
 Package pkg = cls.getPackage();

 String name = pkg.getName();

 String implTitle   = pkg.getImplementationTitle();
 String implVendor  = pkg.getImplementationVendor();
 String implVersion = pkg.getImplementationVersion();

What is wrong with this aproach if any?

 On 30/03/06, cowwoc [EMAIL PROTECTED] wrote:

 If it is internal, why read it from a property file at all? Why isn't
 this hard-coded into the code?

 Gili


--
 Regards,
 shumbola  mailto:[EMAIL PROTECTED]



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NoClassDefFoundError in TreeComponentInitializer#38

2006-03-30 Thread Mats Norén
Don't know if it is related but I've had a couple of similar errors
when my inherited Tree is initialized. The problem then was that the
static blocks of the superclass failed because of missing resources.
This resulted in a NoClassDefFoundError on the MyTree class...


On 3/31/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I have no idea what that might be. Could you try setting a break point
 in that init method?

 Eelco

 On 3/30/06, Matthias Albert [EMAIL PROTECTED] wrote:
  Hi,
  today I tried to use my own class MyReasourceStreamLocator based on
  AbstractResourceStreamLocator and registered it in Application.init()
  (the derived method).
 
  Surprisingly, I got a NoClassDefFoundError. A part of the stack trace
  is shown below. I am using Wicket 1.2beta2.
 
 
  java.lang.NoClassDefFoundError
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Class.java:164)
  wicket.markup.html.tree.TreeComponentInitializer.class$(TreeComponentInitializer.java:38)
  wicket.markup.html.tree.TreeComponentInitializer.init(TreeComponentInitializer.java:38)
  wicket.Initializer.init(Initializer.java:59)
  wicket.Application.initialize(Application.java:651)
  wicket.Application.initializeComponents(Application.java:716)
  wicket.Application.initializeComponents(Application.java:693)
  wicket.protocol.http.WicketServlet.init(WicketServlet.java:287)
 
 
  Line 38 in the source file TreeComponentInitializer.java is the first
  line inside this method:
 
  public void init(Application application)
  {
PackageResource.bind(application, Tree.class, blank.gif); //line #38
PackageResource.bind(application, Tree.class, minus.gif);
PackageResource.bind(application, Tree.class, plus.gif);
PackageResource.bind(application, Tree.class, tree.css);
  }
 
 
  Could it be a problem that Tree is an abstract class?
 
 
  Matthias Albert
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: Re[2]: [Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-30 Thread Johan Compagner
that we also goed do but who is generating that manifest.mf?And we are then depending on that a Package is made. And according to the spec a Package object doesn't have to be made.johan
On 3/31/06, shumbola [EMAIL PROTECTED] wrote:
Здравствуйте, Gwyn.Вы писали 31 марта 2006 г., 3:57:26: I thought we were going to be reading this from the MANIFEST.MF in the wicket jar? /GwynA while back I provided an example how one can read version and other
information from jar file's manifest.IMHO, the version information should be taken from jar file this way,and maven puts apropriate version info from pom.xml into manifestfile.Here goes that example again:
 Class cls = Class.forName(wicket.Application); Package pkg = cls.getPackage(); String name = pkg.getName(); String implTitle = pkg.getImplementationTitle(); String implVendor= 
pkg.getImplementationVendor(); String implVersion = pkg.getImplementationVersion();What is wrong with this aproach if any? On 30/03/06, cowwoc [EMAIL PROTECTED]
 wrote: If it is internal, why read it from a property file at all? Why isn't this hard-coded into the code? Gili-- Regards, shumbolamailto:
[EMAIL PROTECTED]---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-30 Thread Gwyn Evans
Except it's more complex than that, in that svn still has HEAD for the
revisions, with trunk just being the conceptual root from which
branches split.

/Gwyn

On 29/03/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 head is for cvs, trunk is for svn :)

 -Igor



 On 3/29/06, Arto Arffman [EMAIL PROTECTED] wrote:
 
 
  OK, I'll check if it's my mistake or is there really a bug.
 
  (latest head, don't know what off trunk means)
 
 
  2006/3/29, Igor Vaynberg [EMAIL PROTECTED]:
 
  
   it should and i thought i recently fixed it, are you working off trunk?
  
  
   -Igor
  
  
  
  
   On 3/28/06, Arto Arffman  [EMAIL PROTECTED]  wrote:
   
   
Should onAttach() be called when ajax is used? (using latest head)
   
If so I'll dig deeper...
   
   
/arto
  
  
 
 
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validating single formcomponent with Ajax

2006-03-30 Thread Mats Norén
Hi,
Is there a behaviour / component for validating a single formfield
with Ajax without submitting the whole form?

I'm guessing there is an example somewhere, I just need a pointer in
the right direction :)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onAttach() with ajax

2006-03-30 Thread Igor Vaynberg
what do you mean?we have wicket top level: /svnroot/wicketthen under wicket we havewicket/brancheswicket/labelswicket/trunkso trunk is analogous to cvs head-Igor
On 3/29/06, Gwyn Evans [EMAIL PROTECTED] wrote:
Except it's more complex than that, in that svn still has HEAD for therevisions, with trunk just being the conceptual root from whichbranches split./GwynOn 29/03/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: head is for cvs, trunk is for svn :) -Igor On 3/29/06, Arto Arffman [EMAIL PROTECTED]
 wrote:OK, I'll check if it's my mistake or is there really a bug.   (latest head, don't know what off trunk means)  
  2006/3/29, Igor Vaynberg [EMAIL PROTECTED]:  it should and i thought i recently fixed it, are you working off trunk?
   -Igor   On 3/28/06, Arto Arffman  [EMAIL PROTECTED]
  wrote:  Should onAttach() be called when ajax is used? (using latest head)   If so I'll dig deeper...
  /arto   ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] local path

2006-03-30 Thread Dirk Markert
Hi Alex,

try

getApplication().getWicketServlet().getServletContext().getRealPath();


Dirk
2006/3/31, Alexander Lohse [EMAIL PROTECTED]:
Hi,how do I determine the local path to my webapp?getApplication().getApplicationSettings().getContextPath();
gives me the web-path.In other words, from this jetty-config:Call name=addWebApplicationArg/quickstart/ArgArgsrc/webapp/Arg/Call
where do I find the 2. argument?Regards,Alex---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-30 Thread Eelco Hillenius
Yeah, we just communicated that offline. I'm moving yui to it's own
project as we speak, and I'll make Joshua a member.

Eelco

On 3/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 if you would like you may start a wicket-stuff project to build up some of
 these components. that way the committers and others interested can also
 contribute.

 let me know if you would like to do that.

 -Igor



 On 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote:
 
  thanks igor, that is very close to what I need, and the insight too into
 the backing list model... I think that would be useful, I do want another,
 which will only take 1 single value. perhaps a limit on the list ?
 
  basically I am trying to build up more widgets to make answering surveys
 interesting not so much shopping cart ...
 
  so I am looking at things like :
 
  1/ sorting list - drag into order choice 1 to 10 - good to have a backing
 list
 
  2/ maybe extending (1)  to have a choice editable - ala toolman - also
 backed by a list.
 
  3/ multi-targets/draggables - each target having 1 only 1 draggable - so
 dragging a draggable over a target replaces it instead of adding up ?? still
 thinking about this one, could be used for matching question.
 
 
  Joshua
 
 
 
 
  On 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   On 3/29/06, Joshua Lim [EMAIL PROTECTED]  wrote:
  
  
  
  
  
   
and the other a editable div like tiddywiki http://tiddlywiki.com
 but also dragable...
  
  
  
   take a look at AjaxEditableLabel, its probably not exactly what you
 want, but it will give you an idea of how it can be done.
  
   there is a good impl of draggable lists here:
   http://tool-man.org/examples/sorting.html
  
   ive been thinking of how drag and drop can work in wicket. my idea was
 to be able to have a DropTarget WebMarkupContainer whose model is a list,
 and a Draggable behavior to another component. so after a form submit
 whether ajax or regular, the DropTarget's model would be set to the list of
 all value model object's of all Draggables in it.
  
   maybe this will help,
  
   -Igor
  
  
  
  
 
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


RE: [Wicket-user] Validating single formcomponent with Ajax

2006-03-30 Thread Tom van Zummeren
Here is a great blog that shows examples of using wicket with AJAX. The 
examples use form validation with AJAX.

http://www.jroller.com/page/karthikg?entry=wicket_and_ajax

I hope this will help you,

Tom

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mats Norén
Sent: Friday, March 31, 2006 9:31 AM
To: wicket-user
Subject: [Wicket-user] Validating single formcomponent with Ajax

Hi,
Is there a behaviour / component for validating a single formfield
with Ajax without submitting the whole form?

I'm guessing there is an example somewhere, I just need a pointer in
the right direction :)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/298 - Release Date: 3/30/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/298 - Release Date: 3/30/2006
 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user