Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
not unless you are adding the form to the ajax target.standard behaviors that update the form will make that call themselves.-IgorOn 8/26/06, 
Roman Mandeleil <[EMAIL PROTECTED]> wrote:
Ok, now it works, the problem was that I should call setOutputMarkupId on theparent FORM object too.Thanks--View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004517Sent from the Wicket - User forum at Nabble.com.-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

Ok, now it works, the problem was that I should call setOutputMarkupId on the
parent FORM object too.
Thanks
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004517
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
no, it should append id="foo" to textarea tag - what you are doing now manually.-IgorOn 8/26/06, Roman Mandeleil <
[EMAIL PROTECTED]> wrote:I have tried it but it doesn't work, should setOutputMarkupId(true)  cause
some output in the ajax debug window ?--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004492
Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

I have tried it but it doesn't work, should setOutputMarkupId(true)  cause
some output in the ajax debug window ?
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004492
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
calling textarea.setOutputMarkupId(true) will cause the proper id attribute output to the component.-IgorOn 8/26/06, Roman Mandeleil <
[EMAIL PROTECTED]> wrote:No it return me to not found component in the response
--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004446Sent from the Wicket - User forum at 
Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Igor Vaynberg
try the latest 1.2 from svn or wait for the official 1.2.2 tomorrow-IgorOn 8/26/06, Koji Lin <[EMAIL PROTECTED]
> wrote:No i didnt change the example.i just put the wicket-examples-1.2.1.war
 into my tomcatand just runs the examplehttp://localhost:8080/wicket-examples-1.2.1/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.PageablesPage
the IE will complain the errorso i try to download wicket-examples-1.2 a moment ago.wicket 1.2 doesnt have this problem..kojiIgor Vaynberg wrote:> right - that error is because the td is updated. i dont understand why
> the first time it shows just the table but the second time the table> and the pager - did you change anything? why does it change behavior> all of a sudden?>> -Igor>>
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

No it return me to not found component in the response
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004446
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
No i didnt change the example.
i just put the wicket-examples-1.2.1.war into my tomcat
and just runs the example
http://localhost:8080/wicket-examples-1.2.1/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.PageablesPage

the IE will complain the error

so i try to download wicket-examples-1.2 a moment ago.
wicket 1.2 doesnt have this problem..

koji

Igor Vaynberg wrote:
> right - that error is because the td is updated. i dont understand why 
> the first time it shows just the table but the second time the table 
> and the pager - did you change anything? why does it change behavior 
> all of a sudden?
>
> -Igor
>
>


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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
heh, you didnt call setOutputMarkupId(true) on the textarea before you tried updating it via ajax? that is a prereq for any component you will be adding to the ajax target.-Igor
On 8/26/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote:
Ok it looks for component with id:   "[form.id]_[component.id]", now it worksif i givethat special id to the component but it good for a workaround, the more
intuitive behavior is whenthe response will find component by it's origin id.--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004348
Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Igor Vaynberg
right - that error is because the td is updated. i dont understand why the first time it shows just the table but the second time the table and the pager - did you change anything? why does it change behavior all of a sudden?
-IgorOn 8/26/06, Koji Lin <[EMAIL PROTECTED]> wrote:
Thanks Igor,but the original example(i downloaded and never modify, i just putthe war in tomcat ).the example will makethe table is updated - and then only the td containing the navigator isupdated(found in wicket ajax debug window).
The page renders well but ajax debug windows shows the error"ERROR:error while processing response: [object Error]."kojiIgor Vaynberg wrote:> the difference is that in the original example the entire table is
> updated - where as in your example the table is updated - which works> fine - and then only the td containing the navigator is updated -> which causes the error.>> outerhtml: 
http://www._javascript_kit.com/javatutors/dynamiccontent2.shtml>> -Igor-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
Thanks Igor,
but the original example(i downloaded and never modify, i just put 
the war in tomcat ).
the example will make
the table is updated - and then only the td containing the navigator is 
updated(found in wicket ajax debug window).
The page renders well but ajax debug windows shows the error"ERROR: 
error while processing response: [object Error]."


koji

Igor Vaynberg wrote:
> the difference is that in the original example the entire table is 
> updated - where as in your example the table is updated - which works 
> fine - and then only the td containing the navigator is updated - 
> which causes the error.
>
> outerhtml: http://www.javascriptkit.com/javatutors/dynamiccontent2.shtml
>
> -Igor


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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

Ok it looks for component with id:   "[form.id]_[component.id]", now it works
if i give
that special id to the component but it good for a workaround, the more
intuitive behavior is when 
the response will find component by it's origin id.
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004348
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Igor Vaynberg
the difference is that in the original example the entire table is updated - where as in your example the table is updated - which works fine - and then only the td containing the navigator is updated - which causes the error.
outerhtml: http://www._javascript_kit.com/javatutors/dynamiccontent2.shtml-IgorOn 8/26/06, 
Koji Lin <[EMAIL PROTECTED]> wrote:
thankswhat means outerhtml?I foud inhttp://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=wicket-0:wicket.examples.ajax.builtin.PageablesPage
the ajax reponse looks like this*id="data" >*but the same examples in my environment runs like this*id="data" >*Looks the second ** makes IE choke?and i dont know how to remove the second one
so i try to modify the example like*Name

*and makes the ajax response like*id="data" >*then it works well, but i dont know is it a correct way or not.kojiIgor Vaynberg wrote:
> you cannot update tr/td/tbody and a few others via outerhtml which is> how our ajax updates work - it makes IE choke.>> -Igor>>-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
thanks
what means outerhtml?

I foud in 
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=wicket-0:wicket.examples.ajax.builtin.PageablesPage
the ajax reponse looks like this
**

but the same examples in my environment runs like this

*
*
Looks the second ** makes IE choke?
and i dont know how to remove the second one
so i try to modify the example like

*


Name









   



*
and makes the ajax response like
**

then it works well, but i dont know is it a correct way or not.

koji

Igor Vaynberg wrote:
> you cannot update tr/td/tbody and a few others via outerhtml which is 
> how our ajax updates work - it makes IE choke.
>
> -Igor
>
>


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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
are there any _javascript_ errors? anything interesting in the ajax debug window?-IgorOn 8/26/06, Roman Mandeleil <
[EMAIL PROTECTED]> wrote:I have tried it and it is not works, do you have any idea why ?
--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004232Sent from the Wicket - User forum at 
Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

I have tried it and it is not works, do you have any idea why ?
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004232
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Igor Vaynberg
you cannot update tr/td/tbody and a few others via outerhtml which is how our ajax updates work - it makes IE choke.-IgorOn 8/26/06, Koji Lin
 <[EMAIL PROTECTED]> wrote:Hi.
Sorry, i didnt write this in the previous mailwhen i try the wicketexamples(wicket.examples.ajax.builtin.PageablesPage) in the IE(allwicket 1.2.1)the wicket ajax debug shows"ERROR: error while processing response: [object Error].blah blah"
but it works well in the firefox.and i found the AjaxPagingNavigator component appears twice in the ajaxresponse, and looks it makes IE confused!?.so i move the  out of the wicket:id="data">,and looks well now.koji-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
Hi.

Sorry, i didnt write this in the previous mail


when i try the wicket 
examples(wicket.examples.ajax.builtin.PageablesPage) in the IE(all 
wicket 1.2.1)

the wicket ajax debug shows
"ERROR: error while processing response: [object Error].blah blah"

but it works well in the firefox.

and i found the AjaxPagingNavigator component appears twice in the ajax 
response, and looks it makes IE confused!?.
so i move the  out of the ,
and looks well now.



koji




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


[Wicket-user] About AjaxPagingNavigator doesnt support dataview

2006-08-26 Thread Koji Lin
hello all
i found the code like this in the AjaxPagingNavigator.

protected void onAjaxEvent(AjaxRequestTarget target){
if ((pageable instanceof MarkupContainer) && !(pageable instanceof 
ListView))
}

this makes dataview wont work well.
or AjaxPagingNavigator wont support 
wicket.extensions.markup.html.repeater.data.DataView?

koji

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


Re: [Wicket-user] Applying Style Sheets to Wicket Portlet Components?

2006-08-26 Thread David Russell

> --
>
> Message: 1
> Date: Fri, 25 Aug 2006 22:05:21 +0300
> From: Janne Hietam?ki <[EMAIL PROTECTED]>
> Subject: Re: [Wicket-user] Applying Style Sheets to Wicket Portlet
>   Components?
> To: wicket-user@lists.sourceforge.net
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On 25.8.2006, at 8.17, David Russell wrote:
>
>   
>> Hi,
>>
>> I am currently trying to build some Wicket based Portlets. The sample
>> portlet provided works great. Now I'm trying to convert the sample
>> TabbedPanel application found in wicket.example.compref into a
>> PortletApplication.
>>
>> So far the tabbed page mechanism is working in my portlet, however, I
>> can not see how to pick up the style sheets effects on the tabs within
>> the portlet.
>>
>> The html template page for the TabbedPanel WebApplication includes the
>> following markup:
>>
>> 
>> 
>> 
>>
>> As it is not permitted to include  information in the html
>> template page for a portlet I can not see how I can associate  
>> style.css
>> with my portlet html template page.
>>
>> Can anyone explain how to apply stylesheets to Wicket portlets?
>>
>> Thank you for your help,
>> David
>>
>> 
>
>
> Hi,
>
> I haven't really tested it, but stripping away the -tags should  
> work (even if it is against the html spec), and use the bare link tag  
> in the beginning of the PortletPage html. Another way is to stick the  
> css inline into the html code.
>
> I'm going to do a automated way to do this, so components having  
> header contributions really work automagically, but that is a work in  
> progress and I'm going to do it next week.
>
> Janne
>   

Hi Janne,

I had tried using the bare  tag (having stripped out ) but 
the style sheet effects were not applied as hoped.

Your auto-magic solution for portlets would be great, it would be nice 
to be able to use the same html markup for both WebPage and PortletPage. 
This is what you have in mind I assume?

I've also been experimenting with a number of other Wicket components in 
my portlets. I can not get any of the Javascript dependent components to 
work in my portlets, such as the DatePicker extension for example. Have 
you tried and verified these work yourself? Perhaps there are known 
limitations in the current implementation that would cause such problems?

I know Wicket support for portlets is new so teething problems are to be 
expected. Currently I'm trying to evaluate if Wicket based portlets are 
feasible for a large development project. If what was available to 
Wicket Web applications was available to Wicket Portlet applications I'd 
be very happy. That does not seem to be the case today. It would be a 
great help to me if you could provide any details on what portlet 
support works now, perhaps more importantly what does not yet work and 
finally what new support coming in the near future.

Thanks,
David






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


Re: [Wicket-user] refreshing the contents of page back

2006-08-26 Thread Igor Vaynberg
i dont really understand what you are sayinggenerally this is not the problem because at the end of the request the models are detached - so when the page renders again - even from some saved reference - the models are attached again and the appropriate data/component hierarchies are refreshed
this is kinda like the listview componet - you dont need to recreate it every time you want to show fresh data - the same instance that spans requests knows how to pull the new data whenever it renders -Igor
On 8/26/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
Hi, playing with the phonebook example app. I ran into the problem of how can be updated the contents of a page whose instance is passed to another page constructor?. In the phonebook the back page is ListContactsPage and the page that holds the instance is EditContact. This happens when one adds another contact and the EditContact page returns to the ListContactsPage using its reference and the new contact last name is not shown in the combo corresponding to that field.
Thanks.Jaime. 
		How low will we go? Check out Yahoo! Messenger's low 
 PC-to-Phone call rates.
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


[Wicket-user] 互惠互利

2006-08-26 Thread 王红
贵公司负责人(经理/财务)您好:
我是深圳联欧有限公司的,我公司实力雄厚,有着良好的社会关系。因进项较多
现完成不了每月销售额度,每月有一部分增值税电脑发票,海关代征(6%左右)和
普通商品销售、广告、服务费、劳务费、咨询费、交通运输、建筑安装、餐饮等,
国税、地税发票(1.5%至1%左右),优惠代开或合作,点数较低,还可以根据所做数量
额度的大小来商议优惠的点数。我公司成立多年一直坚持以"诚信"为中心立足商场中,
本公司郑重承诺所用绝对是真票!更希望能够有机会与贵司合作!
如贵公司在发票的真伪方面有任何疑虑或担心,可上网查证或我司直接与贵司去
税务局抵扣核对。
此信息长期有效,如须进一步洽商。
 请电:13760395698
 联 系 人:王红

   顺祝商祺
  联欧公司

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


Re: [Wicket-user] Server Push (COMET / Reverse Ajax)

2006-08-26 Thread Igor Vaynberg
the problem with the approach is that a behavior is tired to a component that is tied to a page. any thread accessing the page needs to block because you dont want two or more theads working on the page.i think you need to take a bit of a different approach
have a threadsafe queue of push events you want to be processed in the session/application and some way to publish them.have the push behavior write out a tag for a hidden iframe that would then initiate the push request thread
have a processing strategy that handles this push request w/out touching pages and pushes _javascript_ form the sessions's queuethat way you have the decoupling that requires no blocking because your push thread doesnt access any objects that need to be synced save the session which can be accessed sync but you need to be careful
whenever something happens - that something publishes a push event to the queue and the push thread outputs it to the hidden iframe where the _javascript_ is processed.-Igor
On 8/26/06, Lorin Metzger <[EMAIL PROTECTED]> wrote:



  
  


Lorin Metzger wrote:

  
Eelco Hillenius wrote:
  

   The problem that I had was that it seemed like all otherrequests for that session were also blocked even ones that had nothing to dowith that behavior.

You would have to make sure the request for a push behavior is handledby it's own IRequestTarget, which then would return null at thegetLock method. That would prevent the request being synchronized on
the whole session. This also means you have to take care about thereentrant behavior of that push behavior. 
  

Hi,  I created a separate IRequestTarget, that returned NULL for
getLock(RequestCycle), to handle a new push behavior.  I've verified
that the un-synchronized 
doProcessEventsAndRespond(processor); is called in RequestCycle.java
line 884 Wicket 1.2.1.  by calling Thread.dumpStack().   Unfortunately
all subsequent requests are still being blocked when I block the thread
that handles my behavior.


I spun off a separate thread in my application that dumps the stack of
all active threads, as far as I can tell all subsequent requests are
being blocked in Session.getPage(...).  line 404.

This is the relevant code in Session.java:

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


I'm guessing that the Thread returned by usedPages.get(id) is actually
the initial Thread that I blocked for my PushBehavior.  So t will never
== Thread.currentThread()  or null until I release that Thread?   


Does the fact that the Thread used to handle my Behavior (appears to
be) is in usedPages indicate that I have done something horribly wrong?


Thanks,


-Lorin






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

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


[Wicket-user] refreshing the contents of page back

2006-08-26 Thread Jaime De La Jara
Hi, playing with the phonebook example app. I ran into the problem of how can be updated the contents of a page whose instance is passed to another page constructor?. In the phonebook the back page is ListContactsPage and the page that holds the instance is EditContact. This happens when one adds another contact and the EditContact page returns to the ListContactsPage using its reference and the new contact last name is not shown in the combo corresponding to that field.Thanks.Jaime. 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Eelco Hillenius
Yeah, forgot about that. http://code.google.com/hosting/

Eelco


On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> there is also google oss hosting which i have heard good things about.
> http://code.google.com i believe.
>
> -Igor
>
>
>
> On 8/26/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
>  We left Codehaus because we had to wait for weeks for even an answer
> to Jonathan's request of adding another committer (me). So we decided
> to go to SF where we were less dependent on other people.
>
> SF works. I've heard good stories about http://developer.berlios.de/.
> And you could consider proposing incubation at Apache, depending on
> how serious you want to get on this project.
>
> If you want a place for an example/ integration project for Wicket,
> we'd happily give you access to wicket-stuff.
>
> Eelco
>
> On 8/26/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > We left codehaus because at that time we had some issues with the
> > support. They didn't respond in time and somtimes not at all. But
> > Martjin may give you more details
> >
> > Juergen
> >
> > On 8/26/06, Geoff hendrey < [EMAIL PROTECTED]> wrote:
> > > Hi Igor,
> > >
> > > Cool.
> > >
> > > I'm trying to find the right venue for open sourcing
> > > Shades, and for putting up the javadocs, etc. I was
> > > wondering why you guys left codehaus?
> > >
> > > -geoff
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


Re: [Wicket-user] Server Push (COMET / Reverse Ajax)

2006-08-26 Thread Lorin Metzger




Lorin Metzger wrote:

  
Eelco Hillenius wrote:
  

   The problem that I had was that it seemed like all other
requests for that session were also blocked even ones that had nothing to do
with that behavior.



You would have to make sure the request for a push behavior is handled
by it's own IRequestTarget, which then would return null at the
getLock method. That would prevent the request being synchronized on
the whole session. This also means you have to take care about the
reentrant behavior of that push behavior. 
  

Hi,  I created a separate IRequestTarget, that returned NULL for
getLock(RequestCycle), to handle a new push behavior.  I've verified
that the un-synchronized 
doProcessEventsAndRespond(processor); is called in RequestCycle.java
line 884 Wicket 1.2.1.  by calling Thread.dumpStack().   Unfortunately
all subsequent requests are still being blocked when I block the thread
that handles my behavior.


I spun off a separate thread in my application that dumps the stack of
all active threads, as far as I can tell all subsequent requests are
being blocked in Session.getPage(...).  line 404.

This is the relevant code in Session.java:

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


I'm guessing that the Thread returned by usedPages.get(id) is actually
the initial Thread that I blocked for my PushBehavior.  So t will never
== Thread.currentThread()  or null until I release that Thread?   


Does the fact that the Thread used to handle my Behavior (appears to
be) is in usedPages indicate that I have done something horribly wrong?


Thanks,


-Lorin





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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Igor Vaynberg
another interesting problem i find with identity in full blown orms is that it can cause a nasty cascade of loading object graph when using "business" identity instead of db identity.if you have school->semester->class relationships and you do not want to depend on db identity which is the "recommended" way most likely you will have
class.equals(class other) { this.name.equals(other.name)&&this.semester.equals(other.semster); }semester.equals(semester other) { this.code.equals(other.code)&&this.school.equals(
other.school); }so now every time you equals/hashcode a class you load the semester and the school. given they they are loaded-by-id and might be in 2nd level cachebut still. this is the kind of troubles you always have when working on such a highly abstracted level that doesnt always map properly to the bare metal.
-IgorOn 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
Sure - but honestly I don't want to convince anyonethey need Shades.One problem I found with JDO was that thePersistenceManager was not serializable. Another isthat detachment had to be handled explicitely.
In Shades all pojo's are inherently detached. Changetracking is automagic. The DatabaseSession isultra-leightweight and totally appropriate for keepingin a Session.A big innovation in Shades is how identity is handled
- that really solved a lot of problems for me relatedto change of identity within transactions. Identity isa much more fluid concept in Shades, due to thedynamic ORMapping interface, which you can even
implement on the fly as an anonynmous inner class.To be clear, I found ways to make JDO work just finewith Wicket. Certainly JDO was a huge step forward inmaking it easier to use Pojo-based frameworks like
Wicket.I blogged a bit on my motivation for Shades:http://notskateboarding.blogspot.com/-geoff--- Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> i glanced over the code - but i dont get it after> the first glance. perhaps> you can explain what difficulties you hit when using> wicket and an orm to
> help us better understand.>> seems to me like you are trying to work with a ui> connected to a persistence> layer - without a service layer in between. have you> seen databinder which
> glues wicket and hibernate together?>> also your point about wicket and tapestry - wicket> is much more flexible> because it has IModel which gives you an extra layer> of indirection that can
> hide a lot of orm logic and make the code> cleaner/easier.>> -Igor>>> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> wrote:> >> > Hi All,> >> > I was one of the early users of Wicket before 1.0.> I> > did a lot of work to use Wicket with my JDO> > implementation JDOMax (no longer supported). In
> the> > process I learned a lot about why it is harder> than it> > has to be to use many ORM frameworks with Wicket> and> > Tapestry.> >> > I'm a member of JSR 243 Java Data Objects Experts
> > Group, and I advocated hard within that spec for> the> > "fixing" of the JDO spec with regard to> > non-transaction-write behavior, along with Eric> Samson> > and others. The JDO group  was receptive, having
> > gotten similar feedback from Howard Lewis Ship of> > Tapestry. I believe this change will benefit> Wicket> > users, and make it much easier to use JDO 2.0 than> JDO> > 
1.1, from Wicket.> >> > However, I still wasn't satisfied that it was> "easy"> > to do ORM from Wicket or Tapestry. So I started a> new> > project, based on what I learned -- it's a better
> way> > to do ORM -- I call it Shades. Following the> wicket> > style,Shades works without any XML configuration.> >> > Rather than make this any longer-winded, I thought
> I> > would just begin passing back some code, showing> the> > Library sample application using Shades. The> attached> > zipfile is just the "library" folder from the
> wicket> > sample applications. EditBook.java and> > LibrarySession.java have been altered to use> Shades> > for database access. LibraryORMDictionary.java is> the> > only new file required.
> >> > Please let me know what you think. Also, I do not> have> > a website for Shades yet but I hope to find the> right> > venue for open sourcing the code soon. (see
> attached> > zip file 'library.zippo' with library-example> directory)> >> >>-> > Using Tomcat but need to do more? Need to support
> web services, security?> > Get stuff done quickly with pre-integrated> technology to make your job> > easier> > Download IBM WebSphere Application Server v.1.0.1> based on Apache Geronimo
> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> >
> > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> >>
https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> >> >> >-
> Using Tomcat but need to do more? Need to support> web services, security?> Get stuff done

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Igor Vaynberg
there is also google oss hosting which i have heard good things about. http://code.google.com i believe.-IgorOn 8/26/06, 
Eelco Hillenius <[EMAIL PROTECTED]> wrote:
We left Codehaus because we had to wait for weeks for even an answerto Jonathan's request of adding another committer (me). So we decidedto go to SF where we were less dependent on other people.SF works. I've heard good stories about 
http://developer.berlios.de/.And you could consider proposing incubation at Apache, depending onhow serious you want to get on this project.If you want a place for an example/ integration project for Wicket,
we'd happily give you access to wicket-stuff.EelcoOn 8/26/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:> We left codehaus because at that time we had some issues with the
> support. They didn't respond in time and somtimes not at all. But> Martjin may give you more details>> Juergen>> On 8/26/06, Geoff hendrey <
[EMAIL PROTECTED]> wrote:> > Hi Igor,> >> > Cool.> >> > I'm trying to find the right venue for open sourcing> > Shades, and for putting up the javadocs, etc. I was
> > wondering why you guys left codehaus?> >> > -geoff-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Igor Vaynberg
add the textarea to the target provided by the button's onsubmit() call and the textarea will be repainted.-IgorOn 8/26/06, Roman Mandeleil
 <[EMAIL PROTECTED]> wrote:
What can I do if I have a simple form with AjaxSubmitButton and someTextArea,every submit I want to update the TextArea with some new text (it can't beread only model because it get's an input) ???
--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6002331Sent from the Wicket - User forum at 
Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] can'nt checkout wicket from svn

2006-08-26 Thread Eelco Hillenius
Maybe try again a few times? Could be your connection failed.

Eelco


On 8/26/06, ali <[EMAIL PROTECTED]> wrote:
> please see attachment image
>
> i want checkout svn co
> https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/wicket-parent
> as Mr Igor told.
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>

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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Eelco Hillenius
We left Codehaus because we had to wait for weeks for even an answer
to Jonathan's request of adding another committer (me). So we decided
to go to SF where we were less dependent on other people.

SF works. I've heard good stories about http://developer.berlios.de/.
And you could consider proposing incubation at Apache, depending on
how serious you want to get on this project.

If you want a place for an example/ integration project for Wicket,
we'd happily give you access to wicket-stuff.

Eelco

On 8/26/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> We left codehaus because at that time we had some issues with the
> support. They didn't respond in time and somtimes not at all. But
> Martjin may give you more details
>
> Juergen
>
> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
> > Hi Igor,
> >
> > Cool.
> >
> > I'm trying to find the right venue for open sourcing
> > Shades, and for putting up the javadocs, etc. I was
> > wondering why you guys left codehaus?
> >
> > -geoff

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


Re: [Wicket-user] More on refreshing page contents

2006-08-26 Thread Roman Mandeleil

What can I do if I have a simple form with AjaxSubmitButton and some
TextArea, 

every submit I want to update the TextArea with some new text (it can't be
read only model because it get's an input) ???
-- 
View this message in context: 
http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6002331
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Juergen Donnerstag
We left codehaus because at that time we had some issues with the
support. They didn't respond in time and somtimes not at all. But
Martjin may give you more details

Juergen

On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
> Hi Igor,
>
> Cool.
>
> I'm trying to find the right venue for open sourcing
> Shades, and for putting up the javadocs, etc. I was
> wondering why you guys left codehaus?
>
> -geoff
>
> --- Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > ive read your blog, and agree with some points you
> > make about full orm
> > solutions. but as i said i couldnt grasp everything
> > from looking at the code
> > youve provided. are you planning on writing
> > tutorials for shades in the near
> > future as it sounds appealing.
> >
> > -Igor
> >
> >
> > On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Sure - but honestly I don't want to convince
> > anyone
> > > they need Shades.
> > >
> > > One problem I found with JDO was that the
> > > PersistenceManager was not serializable. Another
> > is
> > > that detachment had to be handled explicitely.
> > >
> > > In Shades all pojo's are inherently detached.
> > Change
> > > tracking is automagic. The DatabaseSession is
> > > ultra-leightweight and totally appropriate for
> > keeping
> > > in a Session.
> > >
> > > A big innovation in Shades is how identity is
> > handled
> > > - that really solved a lot of problems for me
> > related
> > > to change of identity within transactions.
> > Identity is
> > > a much more fluid concept in Shades, due to the
> > > dynamic ORMapping interface, which you can even
> > > implement on the fly as an anonynmous inner class.
> > >
> > > To be clear, I found ways to make JDO work just
> > fine
> > > with Wicket. Certainly JDO was a huge step forward
> > in
> > > making it easier to use Pojo-based frameworks like
> > > Wicket.
> > >
> > > I blogged a bit on my motivation for Shades:
> > > http://notskateboarding.blogspot.com/
> > >
> > > -geoff
> > >
> > >
> > >
> > > --- Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > > i glanced over the code - but i dont get it
> > after
> > > > the first glance. perhaps
> > > > you can explain what difficulties you hit when
> > using
> > > > wicket and an orm to
> > > > help us better understand.
> > > >
> > > > seems to me like you are trying to work with a
> > ui
> > > > connected to a persistence
> > > > layer - without a service layer in between. have
> > you
> > > > seen databinder which
> > > > glues wicket and hibernate together?
> > > >
> > > > also your point about wicket and tapestry -
> > wicket
> > > > is much more flexible
> > > > because it has IModel which gives you an extra
> > layer
> > > > of indirection that can
> > > > hide a lot of orm logic and make the code
> > > > cleaner/easier.
> > > >
> > > > -Igor
> > > >
> > > >
> > > > On 8/26/06, Geoff hendrey
> > <[EMAIL PROTECTED]>
> > > > wrote:
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I was one of the early users of Wicket before
> > 1.0.
> > > > I
> > > > > did a lot of work to use Wicket with my JDO
> > > > > implementation JDOMax (no longer supported).
> > In
> > > > the
> > > > > process I learned a lot about why it is harder
> > > > than it
> > > > > has to be to use many ORM frameworks with
> > Wicket
> > > > and
> > > > > Tapestry.
> > > > >
> > > > > I'm a member of JSR 243 Java Data Objects
> > Experts
> > > > > Group, and I advocated hard within that spec
> > for
> > > > the
> > > > > "fixing" of the JDO spec with regard to
> > > > > non-transaction-write behavior, along with
> > Eric
> > > > Samson
> > > > > and others. The JDO group  was receptive,
> > having
> > > > > gotten similar feedback from Howard Lewis Ship
> > of
> > > > > Tapestry. I believe this change will benefit
> > > > Wicket
> > > > > users, and make it much easier to use JDO 2.0
> > than
> > > > JDO
> > > > > 1.1, from Wicket.
> > > > >
> > > > > However, I still wasn't satisfied that it was
> > > > "easy"
> > > > > to do ORM from Wicket or Tapestry. So I
> > started a
> > > > new
> > > > > project, based on what I learned -- it's a
> > better
> > > > way
> > > > > to do ORM -- I call it Shades. Following the
> > > > wicket
> > > > > style,Shades works without any XML
> > configuration.
> > > > >
> > > > > Rather than make this any longer-winded, I
> > thought
> > > > I
> > > > > would just begin passing back some code,
> > showing
> > > > the
> > > > > Library sample application using Shades. The
> > > > attached
> > > > > zipfile is just the "library" folder from the
> > > > wicket
> > > > > sample applications. EditBook.java and
> > > > > LibrarySession.java have been altered to use
> > > > Shades
> > > > > for database access. LibraryORMDictionary.java
> > is
> > > > the
> > > > > only new file required.
> > > > >
> > > > > Please let me know what you think. Also, I do
> > not
> > > > have
> > > > > a website for Shades yet but I hope to find
> > the
> > > > right
> > > > > venue for open sourcing the

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Geoff hendrey
Hi Igor,

Cool.

I'm trying to find the right venue for open sourcing
Shades, and for putting up the javadocs, etc. I was
wondering why you guys left codehaus?

-geoff

--- Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> ive read your blog, and agree with some points you
> make about full orm
> solutions. but as i said i couldnt grasp everything
> from looking at the code
> youve provided. are you planning on writing
> tutorials for shades in the near
> future as it sounds appealing.
> 
> -Igor
> 
> 
> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> wrote:
> >
> > Sure - but honestly I don't want to convince
> anyone
> > they need Shades.
> >
> > One problem I found with JDO was that the
> > PersistenceManager was not serializable. Another
> is
> > that detachment had to be handled explicitely.
> >
> > In Shades all pojo's are inherently detached.
> Change
> > tracking is automagic. The DatabaseSession is
> > ultra-leightweight and totally appropriate for
> keeping
> > in a Session.
> >
> > A big innovation in Shades is how identity is
> handled
> > - that really solved a lot of problems for me
> related
> > to change of identity within transactions.
> Identity is
> > a much more fluid concept in Shades, due to the
> > dynamic ORMapping interface, which you can even
> > implement on the fly as an anonynmous inner class.
> >
> > To be clear, I found ways to make JDO work just
> fine
> > with Wicket. Certainly JDO was a huge step forward
> in
> > making it easier to use Pojo-based frameworks like
> > Wicket.
> >
> > I blogged a bit on my motivation for Shades:
> > http://notskateboarding.blogspot.com/
> >
> > -geoff
> >
> >
> >
> > --- Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > i glanced over the code - but i dont get it
> after
> > > the first glance. perhaps
> > > you can explain what difficulties you hit when
> using
> > > wicket and an orm to
> > > help us better understand.
> > >
> > > seems to me like you are trying to work with a
> ui
> > > connected to a persistence
> > > layer - without a service layer in between. have
> you
> > > seen databinder which
> > > glues wicket and hibernate together?
> > >
> > > also your point about wicket and tapestry -
> wicket
> > > is much more flexible
> > > because it has IModel which gives you an extra
> layer
> > > of indirection that can
> > > hide a lot of orm logic and make the code
> > > cleaner/easier.
> > >
> > > -Igor
> > >
> > >
> > > On 8/26/06, Geoff hendrey
> <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I was one of the early users of Wicket before
> 1.0.
> > > I
> > > > did a lot of work to use Wicket with my JDO
> > > > implementation JDOMax (no longer supported).
> In
> > > the
> > > > process I learned a lot about why it is harder
> > > than it
> > > > has to be to use many ORM frameworks with
> Wicket
> > > and
> > > > Tapestry.
> > > >
> > > > I'm a member of JSR 243 Java Data Objects
> Experts
> > > > Group, and I advocated hard within that spec
> for
> > > the
> > > > "fixing" of the JDO spec with regard to
> > > > non-transaction-write behavior, along with
> Eric
> > > Samson
> > > > and others. The JDO group  was receptive,
> having
> > > > gotten similar feedback from Howard Lewis Ship
> of
> > > > Tapestry. I believe this change will benefit
> > > Wicket
> > > > users, and make it much easier to use JDO 2.0
> than
> > > JDO
> > > > 1.1, from Wicket.
> > > >
> > > > However, I still wasn't satisfied that it was
> > > "easy"
> > > > to do ORM from Wicket or Tapestry. So I
> started a
> > > new
> > > > project, based on what I learned -- it's a
> better
> > > way
> > > > to do ORM -- I call it Shades. Following the
> > > wicket
> > > > style,Shades works without any XML
> configuration.
> > > >
> > > > Rather than make this any longer-winded, I
> thought
> > > I
> > > > would just begin passing back some code,
> showing
> > > the
> > > > Library sample application using Shades. The
> > > attached
> > > > zipfile is just the "library" folder from the
> > > wicket
> > > > sample applications. EditBook.java and
> > > > LibrarySession.java have been altered to use
> > > Shades
> > > > for database access. LibraryORMDictionary.java
> is
> > > the
> > > > only new file required.
> > > >
> > > > Please let me know what you think. Also, I do
> not
> > > have
> > > > a website for Shades yet but I hope to find
> the
> > > right
> > > > venue for open sourcing the code soon. (see
> > > attached
> > > > zip file 'library.zippo' with library-example
> > > directory)
> > > >
> > > >
> > >
> >
>
-
> > > > Using Tomcat but need to do more? Need to
> support
> > > web services, security?
> > > > Get stuff done quickly with pre-integrated
> > > technology to make your job
> > > > easier
> > > > Download IBM WebSphere Application Server
> v.1.0.1
> > > based on Apache Geronimo
> > > >
> > >
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&d

Re: [Wicket-user] Shades

2006-08-26 Thread Geoff hendrey
Hi Igor,

Don't get hung up on the "loop". As I noted, there is
an "automatic" way to do it, which you provided, using
the BoundPropertyModel. Shades works fine with this.

I've had these debates too many times before. I'm able
to argue both sides, and believe both sides. When we
put ourselves into a "this is how it has to be done"
mindeset, we lose something. Shades, for me, is about
recognizing nuances ...shades of gray if you will. We
can debate if passing an ID around is transparent
persistence, and we can debate if wrapper classes are
transparent, but it's irrelevant. I believe in your
approach. I think it is good, and I commend you for
sharing it with me.

-geoff



 

--- Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> hmm, thats pretty interesting. let me show you how
> it is done with a fully
> transparent orm - maybe it will give you some ideas
> 
> 
> class EntityModel extends
> LoadableDetachableModel {
>private final Class clazz;
>private final Serializable id;
> 
>public EntityModel(Class clazz, Serializable id)
> { this.clazz=clazz;
> this.id=id; }
> 
>public T load() {
>   Session session=getSession() // <===
> implemented however you mange
> session
>   return session.load(clazz, id);
> }
> }
> 
> the above model knows how to load any entity from
> some session - the model
> will also cache the loaded enitty for the duration
> of the request.
> 
> class PersonModel extends EntityModel {
>public PersonModel(Person p) {
> super(Person.class, p.getId());
>}
> }
> 
> the above model gives you an easy way to pass the
> person object around and
> have it loaded safely across requests.
> 
> now for populating a listview you would do it in a
> somewhat similar manner
> 
> populateItem(ListItem item) {
> // wrap whatever model the item has with a
> compound prop model
> item.setModel(new
> CompoundPropertyModel(item.getModel()));
> 
> item.add(new Label("firstName"));
> item.add(new Label("lastName"));
> }
> 
> and in your markup
> 
>  wicket:id="firstName">  wicket:id="lastName">
> 
> the above doesnt have the automatic "loop" to
> populate properties - but i
> dont see the point since you still have to manually
> write out the ids in the
> markup.
> 
> also this can be accomplished automatically by using
> a bean panel that will
> work on any pojo.
> 
> not saying one way is better then the other - full
> orm or shades - just
> trying to give you some ideas on how to adapt wicket
> and hopefully get some
> ideas back as well.
> 
> -Igor
> 
> 
> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> wrote:
> >
> > Shades isn't threatening to JDO, EJB, or
> Hibernate.
> > I'm a member of the JDO2 expert group, and I've
> built
> > a free JDO driver, which as far as I know was the
> only
> > non-commercial driver to pass the Sun TCK for JDO,
> at
> > the time. It was called JDOMax. I recently stopped
> > supporting it and I've taken the JDOMax website
> down.
> > I want to focus on Shades now.
> >
> > So anyway, I really love JDO. I am also a member
> of
> > EJB 3 expert's group- I was invited to join to 
> bring
> > the JDO perspective to the work. I was never able
> to
> > be active in EJB3, but I appreciate the work they
> are
> > doing.
> >
> > Anyway, if you look in my toolbox you will find
> square
> > drive screw drivers and philips head drivers. It's
> > great to add tools to your kit when it makes a job
> > easier.
> >
> > Basically Shades fills a gap between SQL
> frameworks,
> > and full transparent object persistence. Shades is
> > neither. Shades uses an interface to dynamically
> do
> > table I/O and ORMapping, rather than an XML-driven
> > mapping. It turns out this dynamic mapping has all
> > kinds of beautiful effects. One such effect I
> found
> > immediately when using wicket was the ability to
> > dynamically populate all the fields of a ListItem.
> I
> > believe this can already be "automatically" by
> Wicket
> > using a bound property model, but I'm not a Wicket
> > expert yet.
> >
> > private void addRow(ORMapping orm, User user,
> ListItem
> > item){
> >   for(String c:orm.getColumnNames()){
> >  if(orm.isPojoField(c)){
> >  item.add(new Label(c,
> >  ""+orm.getColumnFromObject(c, user)));
> >  }
> >   }
> > }
> >
> > I used the same tehcnique to throw all the fields
> of a
> > User object into PageParameters:
> >
> > private static void setPageParameters(
> >   BookmarkablePageLink link,
> Object
> >   pojo, ORMapping orm){
> > for(String c:orm.getColumnNames()){
> > if(orm.isPojoField(c)){
> > link.setParameter(c,
> >
> ""+orm.getColumnFromObject(c,pojo));
> > }
> > }
> > }
> >
> >
> > In fact, it doesn't matter to me at all if we
> "need"
> > Shades or not. **I** needed Shades. If other
> people
> > like it, that's cool too and I hope it can be
> useful.
> >
> > -geoff
> >
> >
>

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Igor Vaynberg
ive read your blog, and agree with some points you make about full orm solutions. but as i said i couldnt grasp everything from looking at the code youve provided. are you planning on writing tutorials for shades in the near future as it sounds appealing.
-IgorOn 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
Sure - but honestly I don't want to convince anyonethey need Shades.One problem I found with JDO was that thePersistenceManager was not serializable. Another isthat detachment had to be handled explicitely.
In Shades all pojo's are inherently detached. Changetracking is automagic. The DatabaseSession isultra-leightweight and totally appropriate for keepingin a Session.A big innovation in Shades is how identity is handled
- that really solved a lot of problems for me relatedto change of identity within transactions. Identity isa much more fluid concept in Shades, due to thedynamic ORMapping interface, which you can even
implement on the fly as an anonynmous inner class.To be clear, I found ways to make JDO work just finewith Wicket. Certainly JDO was a huge step forward inmaking it easier to use Pojo-based frameworks like
Wicket.I blogged a bit on my motivation for Shades:http://notskateboarding.blogspot.com/-geoff--- Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> i glanced over the code - but i dont get it after> the first glance. perhaps> you can explain what difficulties you hit when using> wicket and an orm to
> help us better understand.>> seems to me like you are trying to work with a ui> connected to a persistence> layer - without a service layer in between. have you> seen databinder which
> glues wicket and hibernate together?>> also your point about wicket and tapestry - wicket> is much more flexible> because it has IModel which gives you an extra layer> of indirection that can
> hide a lot of orm logic and make the code> cleaner/easier.>> -Igor>>> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> wrote:> >> > Hi All,> >> > I was one of the early users of Wicket before 1.0.> I> > did a lot of work to use Wicket with my JDO> > implementation JDOMax (no longer supported). In
> the> > process I learned a lot about why it is harder> than it> > has to be to use many ORM frameworks with Wicket> and> > Tapestry.> >> > I'm a member of JSR 243 Java Data Objects Experts
> > Group, and I advocated hard within that spec for> the> > "fixing" of the JDO spec with regard to> > non-transaction-write behavior, along with Eric> Samson> > and others. The JDO group  was receptive, having
> > gotten similar feedback from Howard Lewis Ship of> > Tapestry. I believe this change will benefit> Wicket> > users, and make it much easier to use JDO 2.0 than> JDO> > 
1.1, from Wicket.> >> > However, I still wasn't satisfied that it was> "easy"> > to do ORM from Wicket or Tapestry. So I started a> new> > project, based on what I learned -- it's a better
> way> > to do ORM -- I call it Shades. Following the> wicket> > style,Shades works without any XML configuration.> >> > Rather than make this any longer-winded, I thought
> I> > would just begin passing back some code, showing> the> > Library sample application using Shades. The> attached> > zipfile is just the "library" folder from the
> wicket> > sample applications. EditBook.java and> > LibrarySession.java have been altered to use> Shades> > for database access. LibraryORMDictionary.java is> the> > only new file required.
> >> > Please let me know what you think. Also, I do not> have> > a website for Shades yet but I hope to find the> right> > venue for open sourcing the code soon. (see
> attached> > zip file 'library.zippo' with library-example> directory)> >> >>-> > Using Tomcat but need to do more? Need to support
> web services, security?> > Get stuff done quickly with pre-integrated> technology to make your job> > easier> > Download IBM WebSphere Application Server v.1.0.1> based on Apache Geronimo
> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> >
> > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> >>
https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >> >> >> >-
> Using Tomcat but need to do more? Need to support> web services, security?> Get stuff done quickly with pre-integrated> technology to make your job easier> Download IBM WebSphere Application Server 
v.1.0.1> based on Apache Geronimo>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wicket-user>-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technol

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Geoff hendrey
Sure - but honestly I don't want to convince anyone
they need Shades. 

One problem I found with JDO was that the
PersistenceManager was not serializable. Another is
that detachment had to be handled explicitely.

In Shades all pojo's are inherently detached. Change
tracking is automagic. The DatabaseSession is
ultra-leightweight and totally appropriate for keeping
in a Session. 

A big innovation in Shades is how identity is handled
- that really solved a lot of problems for me related
to change of identity within transactions. Identity is
a much more fluid concept in Shades, due to the
dynamic ORMapping interface, which you can even
implement on the fly as an anonynmous inner class.

To be clear, I found ways to make JDO work just fine
with Wicket. Certainly JDO was a huge step forward in
making it easier to use Pojo-based frameworks like
Wicket. 

I blogged a bit on my motivation for Shades:
http://notskateboarding.blogspot.com/

-geoff



--- Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> i glanced over the code - but i dont get it after
> the first glance. perhaps
> you can explain what difficulties you hit when using
> wicket and an orm to
> help us better understand.
> 
> seems to me like you are trying to work with a ui
> connected to a persistence
> layer - without a service layer in between. have you
> seen databinder which
> glues wicket and hibernate together?
> 
> also your point about wicket and tapestry - wicket
> is much more flexible
> because it has IModel which gives you an extra layer
> of indirection that can
> hide a lot of orm logic and make the code
> cleaner/easier.
> 
> -Igor
> 
> 
> On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi All,
> >
> > I was one of the early users of Wicket before 1.0.
> I
> > did a lot of work to use Wicket with my JDO
> > implementation JDOMax (no longer supported). In
> the
> > process I learned a lot about why it is harder
> than it
> > has to be to use many ORM frameworks with Wicket
> and
> > Tapestry.
> >
> > I'm a member of JSR 243 Java Data Objects Experts
> > Group, and I advocated hard within that spec for
> the
> > "fixing" of the JDO spec with regard to
> > non-transaction-write behavior, along with Eric
> Samson
> > and others. The JDO group  was receptive, having
> > gotten similar feedback from Howard Lewis Ship of
> > Tapestry. I believe this change will benefit
> Wicket
> > users, and make it much easier to use JDO 2.0 than
> JDO
> > 1.1, from Wicket.
> >
> > However, I still wasn't satisfied that it was
> "easy"
> > to do ORM from Wicket or Tapestry. So I started a
> new
> > project, based on what I learned -- it's a better
> way
> > to do ORM -- I call it Shades. Following the
> wicket
> > style,Shades works without any XML configuration.
> >
> > Rather than make this any longer-winded, I thought
> I
> > would just begin passing back some code, showing
> the
> > Library sample application using Shades. The
> attached
> > zipfile is just the "library" folder from the
> wicket
> > sample applications. EditBook.java and
> > LibrarySession.java have been altered to use
> Shades
> > for database access. LibraryORMDictionary.java is
> the
> > only new file required.
> >
> > Please let me know what you think. Also, I do not
> have
> > a website for Shades yet but I hope to find the
> right
> > venue for open sourcing the code soon. (see
> attached
> > zip file 'library.zippo' with library-example
> directory)
> >
> >
>
-
> > Using Tomcat but need to do more? Need to support
> web services, security?
> > Get stuff done quickly with pre-integrated
> technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> >
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> >
-
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


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

Re: [Wicket-user] Shades

2006-08-26 Thread Igor Vaynberg
hmm, thats pretty interesting. let me show you how it is done with a fully transparent orm - maybe it will give you some ideasclass EntityModel extends LoadableDetachableModel {   private final Class clazz;
   private final Serializable id;   public EntityModel(Class clazz, Serializable id) { this.clazz=clazz; this.id=id; }   public T load() {  Session session=getSession() // <=== implemented however you mange session
  return session.load(clazz, id);    }}the above model knows how to load any entity from some session - the model will also cache the loaded enitty for the duration of the request.class PersonModel extends EntityModel {
   public PersonModel(Person p) {    super(Person.class, p.getId());   }}the above model gives you an easy way to pass the person object around and have it loaded safely across requests.
now for populating a listview you would do it in a somewhat similar mannerpopulateItem(ListItem item) {    // wrap whatever model the item has with a compound prop model    item.setModel(new CompoundPropertyModel(
item.getModel()));        item.add(new Label("firstName"));    item.add(new Label("lastName"));}and in your markup 
the above doesnt have the automatic "loop" to populate properties - but i dont see the point since you still have to manually write out the ids in the markup.also this can be accomplished automatically by using a bean panel that will work on any pojo.
not saying one way is better then the other - full orm or shades - just trying to give you some ideas on how to adapt wicket and hopefully get some ideas back as well.-Igor
On 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
Shades isn't threatening to JDO, EJB, or Hibernate.I'm a member of the JDO2 expert group, and I've builta free JDO driver, which as far as I know was the onlynon-commercial driver to pass the Sun TCK for JDO, at
the time. It was called JDOMax. I recently stoppedsupporting it and I've taken the JDOMax website down.I want to focus on Shades now.So anyway, I really love JDO. I am also a member ofEJB 3 expert's group- I was invited to join to  bring
the JDO perspective to the work. I was never able tobe active in EJB3, but I appreciate the work they aredoing.Anyway, if you look in my toolbox you will find squaredrive screw drivers and philips head drivers. It's
great to add tools to your kit when it makes a jobeasier.Basically Shades fills a gap between SQL frameworks,and full transparent object persistence. Shades isneither. Shades uses an interface to dynamically do
table I/O and ORMapping, rather than an XML-drivenmapping. It turns out this dynamic mapping has allkinds of beautiful effects. One such effect I foundimmediately when using wicket was the ability todynamically populate all the fields of a ListItem. I
believe this can already be "automatically" by Wicketusing a bound property model, but I'm not a Wicketexpert yet.private void addRow(ORMapping orm, User user, ListItemitem){  for(String c:
orm.getColumnNames()){ if(orm.isPojoField(c)){ item.add(new Label(c, ""+orm.getColumnFromObject(c, user))); }  }}I used the same tehcnique to throw all the fields of a
User object into PageParameters:private static void setPageParameters(  BookmarkablePageLink link, Object  pojo, ORMapping orm){for(String c:orm.getColumnNames
()){if(orm.isPojoField(c)){link.setParameter(c,""+orm.getColumnFromObject(c,pojo));}}}In fact, it doesn't matter to me at all if we "need"
Shades or not. **I** needed Shades. If other peoplelike it, that's cool too and I hope it can be useful.-geoff-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Shades

2006-08-26 Thread Geoff hendrey
Shades isn't threatening to JDO, EJB, or Hibernate.
I'm a member of the JDO2 expert group, and I've built
a free JDO driver, which as far as I know was the only
non-commercial driver to pass the Sun TCK for JDO, at
the time. It was called JDOMax. I recently stopped
supporting it and I've taken the JDOMax website down.
I want to focus on Shades now.

So anyway, I really love JDO. I am also a member of
EJB 3 expert's group- I was invited to join to  bring
the JDO perspective to the work. I was never able to
be active in EJB3, but I appreciate the work they are
doing.

Anyway, if you look in my toolbox you will find square
drive screw drivers and philips head drivers. It's
great to add tools to your kit when it makes a job
easier.

Basically Shades fills a gap between SQL frameworks,
and full transparent object persistence. Shades is
neither. Shades uses an interface to dynamically do
table I/O and ORMapping, rather than an XML-driven
mapping. It turns out this dynamic mapping has all
kinds of beautiful effects. One such effect I found
immediately when using wicket was the ability to
dynamically populate all the fields of a ListItem. I
believe this can already be "automatically" by Wicket
using a bound property model, but I'm not a Wicket
expert yet. 

private void addRow(ORMapping orm, User user, ListItem
item){
  for(String c:orm.getColumnNames()){
 if(orm.isPojoField(c)){
 item.add(new Label(c,
 ""+orm.getColumnFromObject(c, user)));
 }
  }
}

I used the same tehcnique to throw all the fields of a
User object into PageParameters:

private static void setPageParameters(
  BookmarkablePageLink link, Object 
  pojo, ORMapping orm){
for(String c:orm.getColumnNames()){
if(orm.isPojoField(c)){
link.setParameter(c, 
""+orm.getColumnFromObject(c,pojo));
}
}
}


In fact, it doesn't matter to me at all if we "need"
Shades or not. **I** needed Shades. If other people
like it, that's cool too and I hope it can be useful. 

-geoff

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


Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread cowwoc

I'm in favor of Session.get() returning null in 2.0, if not earlier.
You could add exists() in 1.3 and deprecate it in 2.0.

Gili

Frank Bille wrote:
> I guess it would be more like a Session.exists() :)
> 
> +1 for that. it's backportable.
> 
> Frank
> 
> 
> On 8/26/06, *Jaime De La Jara* < [EMAIL PROTECTED]
> > wrote:
> 
> I think Igor proposal, session.exists(), is correct and it could be
> added without
> any impact.
> 
> Jaime.
> 
> 
> 
> 
> >i think thats better then an npe, didnt even know we were doing that. so
> > either this or add a session.exists() so you can test for it.
>  
> > -Igor
>  
>  
>  
>  On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>  >
>  > I thought about that myself too. I'd be fine letting
>  > RequestCycle.get (), Session.get() and Application.get() return
> null if
>  > the thread local is not set. What do others think of this?
>  >
>  > Eelco
>  >
>  >
>  > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
>  > > Hi, I was wondering why Session.get() throws a
> WicketRuntimeException if
>  > the
>  > > session does not exists, in my app I define an
> AuthorizationStrategy and
>  > I'm
>  > > also using some spring interceptors where I get a user object
> that is
>  > saved
>  > > in the session but I had to include a try/catch block in each
> case to
>  > > prevent a NEP in the former case. If the session is null why it
> does not
>  > > return it?
>  > >
>  > > Thanks.
>  > >
>  > > Jaime.
> 
> 
> All-new Yahoo! Mail
> 
> -
> Fire up a more powerful email and get things done faster.
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> 
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user



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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Landry Soules
:-( That's just what lots of people say in java forums when a new 
Wicket release is announced :
"We already have [replace with the framework you think is the market 
leader] , why the hell should we learn a new one ?"
One of java's strength is in the choice we have to make our job done  :-)


Korbinian Bachl a écrit :
> hi,
>
> my thought is: with EJB3 and hibernate (and both together if you want) - why
> do we need more ?
>
> regards,
>
> korbinian 
>
>   
>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im Auftrag 
>> von Geoff hendrey
>> Gesendet: Samstag, 26. August 2006 18:54
>> An: Wicket-user@lists.sourceforge.net
>> Betreff: [Wicket-user] library example using Shades for O/R mapping
>>
>> Hi All,
>>
>> I was one of the early users of Wicket before 1.0. I did a 
>> lot of work to use Wicket with my JDO implementation JDOMax 
>> (no longer supported). In the process I learned a lot about 
>> why it is harder than it has to be to use many ORM frameworks 
>> with Wicket and Tapestry.
>>
>> I'm a member of JSR 243 Java Data Objects Experts Group, and 
>> I advocated hard within that spec for the "fixing" of the JDO 
>> spec with regard to non-transaction-write behavior, along 
>> with Eric Samson and others. The JDO group  was receptive, 
>> having gotten similar feedback from Howard Lewis Ship of 
>> Tapestry. I believe this change will benefit Wicket users, 
>> and make it much easier to use JDO 2.0 than JDO 1.1, from Wicket.
>>
>> However, I still wasn't satisfied that it was "easy"
>> to do ORM from Wicket or Tapestry. So I started a new 
>> project, based on what I learned -- it's a better way to do 
>> ORM -- I call it Shades. Following the wicket style,Shades 
>> works without any XML configuration.
>>
>> Rather than make this any longer-winded, I thought I would 
>> just begin passing back some code, showing the Library sample 
>> application using Shades. The attached zipfile is just the 
>> "library" folder from the wicket sample applications. 
>> EditBook.java and LibrarySession.java have been altered to 
>> use Shades for database access. LibraryORMDictionary.java is 
>> the only new file required.
>>
>> Please let me know what you think. Also, I do not have a 
>> website for Shades yet but I hope to find the right venue for 
>> open sourcing the code soon. (see attached zip file 
>> 'library.zippo' with library-example directory)
>>
>> 
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>   


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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Igor Vaynberg
i glanced over the code - but i dont get it after the first glance. perhaps you can explain what difficulties you hit when using wicket and an orm to help us better understand.seems to me like you are trying to work with a ui connected to a persistence layer - without a service layer in between. have you seen databinder which glues wicket and hibernate together?
also your point about wicket and tapestry - wicket is much more flexible because it has IModel which gives you an extra layer of indirection that can hide a lot of orm logic and make the code cleaner/easier.
-IgorOn 8/26/06, Geoff hendrey <[EMAIL PROTECTED]> wrote:
Hi All,I was one of the early users of Wicket before 1.0. Idid a lot of work to use Wicket with my JDOimplementation JDOMax (no longer supported). In theprocess I learned a lot about why it is harder than it
has to be to use many ORM frameworks with Wicket andTapestry.I'm a member of JSR 243 Java Data Objects ExpertsGroup, and I advocated hard within that spec for the"fixing" of the JDO spec with regard to
non-transaction-write behavior, along with Eric Samsonand others. The JDO group  was receptive, havinggotten similar feedback from Howard Lewis Ship ofTapestry. I believe this change will benefit Wicket
users, and make it much easier to use JDO 2.0 than JDO1.1, from Wicket.However, I still wasn't satisfied that it was "easy"to do ORM from Wicket or Tapestry. So I started a newproject, based on what I learned -- it's a better way
to do ORM -- I call it Shades. Following the wicketstyle,Shades works without any XML configuration.Rather than make this any longer-winded, I thought Iwould just begin passing back some code, showing the
Library sample application using Shades. The attachedzipfile is just the "library" folder from the wicketsample applications. EditBook.java andLibrarySession.java have been altered to use Shades
for database access. LibraryORMDictionary.java is theonly new file required.Please let me know what you think. Also, I do not havea website for Shades yet but I hope to find the rightvenue for open sourcing the code soon. (see attached
zip file 'library.zippo' with library-example directory)-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Igor Vaynberg
because there is always an opportunity to make the wheel rounder - aka innovation :)-IgorOn 8/26/06, Korbinian Bachl <
[EMAIL PROTECTED]> wrote:hi,my thought is: with EJB3 and hibernate (and both together if you want) - why
do we need more ?regards,korbinian> -Ursprüngliche Nachricht-> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] Im Auftrag> von Geoff hendrey> Gesendet: Samstag, 26. August 2006 18:54> An: 
Wicket-user@lists.sourceforge.net> Betreff: [Wicket-user] library example using Shades for O/R mapping>> Hi All,>> I was one of the early users of Wicket before 1.0. I did a> lot of work to use Wicket with my JDO implementation JDOMax
> (no longer supported). In the process I learned a lot about> why it is harder than it has to be to use many ORM frameworks> with Wicket and Tapestry.>> I'm a member of JSR 243 Java Data Objects Experts Group, and
> I advocated hard within that spec for the "fixing" of the JDO> spec with regard to non-transaction-write behavior, along> with Eric Samson and others. The JDO group  was receptive,> having gotten similar feedback from Howard Lewis Ship of
> Tapestry. I believe this change will benefit Wicket users,> and make it much easier to use JDO 2.0 than JDO 1.1, from Wicket.>> However, I still wasn't satisfied that it was "easy"
> to do ORM from Wicket or Tapestry. So I started a new> project, based on what I learned -- it's a better way to do> ORM -- I call it Shades. Following the wicket style,Shades> works without any XML configuration.
>> Rather than make this any longer-winded, I thought I would> just begin passing back some code, showing the Library sample> application using Shades. The attached zipfile is just the> "library" folder from the wicket sample applications.
> EditBook.java and LibrarySession.java have been altered to> use Shades for database access. LibraryORMDictionary.java is> the only new file required.>> Please let me know what you think. Also, I do not have a
> website for Shades yet but I hope to find the right venue for> open sourcing the code soon. (see attached zip file> 'library.zippo' with library-example directory)>-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Korbinian Bachl
hi,

my thought is: with EJB3 and hibernate (and both together if you want) - why
do we need more ?

regards,

korbinian 

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Geoff hendrey
> Gesendet: Samstag, 26. August 2006 18:54
> An: Wicket-user@lists.sourceforge.net
> Betreff: [Wicket-user] library example using Shades for O/R mapping
> 
> Hi All,
> 
> I was one of the early users of Wicket before 1.0. I did a 
> lot of work to use Wicket with my JDO implementation JDOMax 
> (no longer supported). In the process I learned a lot about 
> why it is harder than it has to be to use many ORM frameworks 
> with Wicket and Tapestry.
> 
> I'm a member of JSR 243 Java Data Objects Experts Group, and 
> I advocated hard within that spec for the "fixing" of the JDO 
> spec with regard to non-transaction-write behavior, along 
> with Eric Samson and others. The JDO group  was receptive, 
> having gotten similar feedback from Howard Lewis Ship of 
> Tapestry. I believe this change will benefit Wicket users, 
> and make it much easier to use JDO 2.0 than JDO 1.1, from Wicket.
> 
> However, I still wasn't satisfied that it was "easy"
> to do ORM from Wicket or Tapestry. So I started a new 
> project, based on what I learned -- it's a better way to do 
> ORM -- I call it Shades. Following the wicket style,Shades 
> works without any XML configuration.
> 
> Rather than make this any longer-winded, I thought I would 
> just begin passing back some code, showing the Library sample 
> application using Shades. The attached zipfile is just the 
> "library" folder from the wicket sample applications. 
> EditBook.java and LibrarySession.java have been altered to 
> use Shades for database access. LibraryORMDictionary.java is 
> the only new file required.
> 
> Please let me know what you think. Also, I do not have a 
> website for Shades yet but I hope to find the right venue for 
> open sourcing the code soon. (see attached zip file 
> 'library.zippo' with library-example directory)
> 


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


[Wicket-user] library example using Shades for O/R mapping

2006-08-26 Thread Geoff hendrey
Hi All,

I was one of the early users of Wicket before 1.0. I
did a lot of work to use Wicket with my JDO
implementation JDOMax (no longer supported). In the
process I learned a lot about why it is harder than it
has to be to use many ORM frameworks with Wicket and
Tapestry.

I'm a member of JSR 243 Java Data Objects Experts
Group, and I advocated hard within that spec for the
"fixing" of the JDO spec with regard to
non-transaction-write behavior, along with Eric Samson
and others. The JDO group  was receptive, having
gotten similar feedback from Howard Lewis Ship of
Tapestry. I believe this change will benefit Wicket
users, and make it much easier to use JDO 2.0 than JDO
1.1, from Wicket.

However, I still wasn't satisfied that it was "easy"
to do ORM from Wicket or Tapestry. So I started a new
project, based on what I learned -- it's a better way
to do ORM -- I call it Shades. Following the wicket
style,Shades works without any XML configuration.

Rather than make this any longer-winded, I thought I
would just begin passing back some code, showing the
Library sample application using Shades. The attached
zipfile is just the "library" folder from the wicket
sample applications. EditBook.java and
LibrarySession.java have been altered to use Shades
for database access. LibraryORMDictionary.java is the
only new file required.

Please let me know what you think. Also, I do not have
a website for Shades yet but I hope to find the right
venue for open sourcing the code soon. (see attached
zip file 'library.zippo' with library-example directory)

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


Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread Martijn Dashorst
The not-throwing exception change could go into 1.3 IMO.

Martijn

On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> you are so humble, anyways just checked in exists() for app and session,
> seems requestcycle doesnt follow the same rules and will just return null -
> not something we should tweak in 1.x stream because of silent failure.
>
> -Igor
>
>
>
> On 8/26/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > If I were the teacher, my student passed me by far ;)
> >
> > Eelco
> >
> > On 8/26/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > Eelco wants company.
> > >
> > >
> > > On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > >
> > > > remind me again why we let smartasses in?
> > > >
> > > >
> > > > -Igor
> > > >
> > > >
> > > >
> > > >
> > > > On 8/25/06, Frank Bille <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I guess it would be more like a Session.exists() :)
> > > > >
> > > > > +1 for that. it's backportable.
> > > > >
> > > > >
> > > > > Frank
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 8/26/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > >
> > > > >
> > > > > I think Igor proposal, session.exists(), is correct and it could be
> > > added without
> > > > > any impact.
> > > > >
> > > > > Jaime.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >i think thats better then an npe, didnt even know we were doing
> that.
> > > so
> > > > > > either this or add a session.exists() so you can test for it.
> > > > >
> > > > > > -Igor
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >  On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > >  >
> > > > >  > I thought about that myself too. I'd be fine letting
> > > > >  > RequestCycle.get (), Session.get() and Application.get() return
> null
> > > if
> > > > >  > the thread local is not set. What do others think of this?
> > > > >  >
> > > > >  > Eelco
> > > > >  >
> > > > >  >
> > > > >
> > > > >  > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
> > > > >  > > Hi, I was wondering why Session.get() throws a
> > > WicketRuntimeException if
> > > > >  > the
> > > > >  > > session does not exists, in my app I define an
> > > AuthorizationStrategy and
> > > > >  > I'm
> > > > >  > > also using some spring interceptors where I get a user object
> that
> > > is
> > > > >  > saved
> > > > >  > > in the session but I had to include a try/catch block in each
> case
> > > to
> > > > >  > > prevent a NEP in the former case. If the session is null why it
> > > does not
> > > > >  > > return it?
> > > > >  > >
> > > > >  > > Thanks.
> > > > >  > >
> > > > >  > > Jaime.
> > > > >
> > > > >
> > > > > 
> > >  All-new Yahoo! Mail - Fire up a more powerful email and get things done
> > > faster.
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> -
> > > > > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > > > Get stuff done quickly with pre-integrated technology to make your
> job
> > > easier
> > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > >
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> -
> > > > > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > > > Get stuff done quickly with pre-integrated technology to make your
> job
> > > easier
> > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > >
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > > >
> > >
> > >
> > >
> ---

Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread Igor Vaynberg
you are so humble, anyways just checked in exists() for app and session, seems requestcycle doesnt follow the same rules and will just return null - not something we should tweak in 1.x stream because of silent failure.
-IgorOn 8/26/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
If I were the teacher, my student passed me by far ;)EelcoOn 8/26/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> Eelco wants company.>>
> On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> >> > remind me again why we let smartasses in?> >> >> > -Igor
> >> >> >> >> > On 8/25/06, Frank Bille <[EMAIL PROTECTED]> wrote:> > >> > > I guess it would be more like a 
Session.exists() :)> > >> > > +1 for that. it's backportable.> > >> > >> > > Frank> > >> > >> > >> > >
> > >> > > On 8/26/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote:> > >> > > >> > >> > >
> > > I think Igor proposal, session.exists(), is correct and it could be> added without> > > any impact.> > >> > > Jaime.> > >> > >> > >
> > >> > > >i think thats better then an npe, didnt even know we were doing that.> so> > > > either this or add a session.exists() so you can test for it.> > >
> > > > -Igor> > >> > >> > >> > >> > >  On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> > >  >> > >  > I thought about that myself too. I'd be fine letting
> > >  > RequestCycle.get (), Session.get() and Application.get() return null> if> > >  > the thread local is not set. What do others think of this?> > >  >> > >  > Eelco
> > >  >> > >  >> > >> > >  > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:> > >  > > Hi, I was wondering why Session.get() throws a
> WicketRuntimeException if> > >  > the> > >  > > session does not exists, in my app I define an> AuthorizationStrategy and> > >  > I'm> > >  > > also using some spring interceptors where I get a user object that
> is> > >  > saved> > >  > > in the session but I had to include a try/catch block in each case> to> > >  > > prevent a NEP in the former case. If the session is null why it
> does not> > >  > > return it?> > >  > >> > >  > > Thanks.> > >  > >> > >  > > Jaime.> > >> > >
> > > >  All-new Yahoo! Mail - Fire up a more powerful email and get things done> faster.> > >> > >> > >> > >
> -> > > Using Tomcat but need to do more? Need to support web services,> security?> > > Get stuff done quickly with pre-integrated technology to make your job
> easier> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache> Geronimo> > >> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > >> > > ___> > > Wicket-user mailing list> > > 
Wicket-user@lists.sourceforge.net> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >> > >> > >> > >> > >> > >> -> > > Using Tomcat but need to do more? Need to support web services,
> security?> > > Get stuff done quickly with pre-integrated technology to make your job> easier> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache> Geronimo
> > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > >
> > > ___> > > Wicket-user mailing list> > > Wicket-user@lists.sourceforge.net> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user> > >> > >> > >> >> >> >
> -> > Using Tomcat but need to do more? Need to support web services, security?> > Get stuff done quickly with pre-integrated technology to make your job
> easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user> >> >>  -
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>>-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_

Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread Eelco Hillenius
If I were the teacher, my student passed me by far ;)

Eelco

On 8/26/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Eelco wants company.
>
>
> On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > remind me again why we let smartasses in?
> >
> >
> > -Igor
> >
> >
> >
> >
> > On 8/25/06, Frank Bille <[EMAIL PROTECTED]> wrote:
> > >
> > > I guess it would be more like a Session.exists() :)
> > >
> > > +1 for that. it's backportable.
> > >
> > >
> > > Frank
> > >
> > >
> > >
> > >
> > >
> > > On 8/26/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote:
> > >
> > > >
> > >
> > >
> > > I think Igor proposal, session.exists(), is correct and it could be
> added without
> > > any impact.
> > >
> > > Jaime.
> > >
> > >
> > >
> > >
> > > >i think thats better then an npe, didnt even know we were doing that.
> so
> > > > either this or add a session.exists() so you can test for it.
> > >
> > > > -Igor
> > >
> > >
> > >
> > >
> > >  On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >  >
> > >  > I thought about that myself too. I'd be fine letting
> > >  > RequestCycle.get (), Session.get() and Application.get() return null
> if
> > >  > the thread local is not set. What do others think of this?
> > >  >
> > >  > Eelco
> > >  >
> > >  >
> > >
> > >  > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
> > >  > > Hi, I was wondering why Session.get() throws a
> WicketRuntimeException if
> > >  > the
> > >  > > session does not exists, in my app I define an
> AuthorizationStrategy and
> > >  > I'm
> > >  > > also using some spring interceptors where I get a user object that
> is
> > >  > saved
> > >  > > in the session but I had to include a try/catch block in each case
> to
> > >  > > prevent a NEP in the former case. If the session is null why it
> does not
> > >  > > return it?
> > >  > >
> > >  > > Thanks.
> > >  > >
> > >  > > Jaime.
> > >
> > >
> > > 
>  All-new Yahoo! Mail - Fire up a more powerful email and get things done
> faster.
> > >
> > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> >
> -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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

Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread Johan Compagner
yes it is backportable (that method)but we can't kill the exception throwing in 1.2 that is not backportable.johanOn 8/26/06, Frank Bille
 <[EMAIL PROTECTED]> wrote:
I guess it would be more like a Session.exists() :)+1 for that. it's backportable.Frank
On 8/26/06, Jaime De La Jara <
[EMAIL PROTECTED]> wrote:
I think Igor proposal, session.exists(), is correct and it could be added without 
any impact.Jaime.>i think thats better then an npe, didnt even know we were doing that. so> either this or add a session.exists() so you can test for it.
 > -IgorOn 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > I thought about that myself too. I'd be fine letting > RequestCycle.get

(), Session.get() and Application.get() return null if > the thread local is not set. What do others think of this? > > Eelco > >
 > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering why Session.get() throws a WicketRuntimeException if > the > > session does not exists, in my app I define an AuthorizationStrategy
 and > I'm > > also using some spring interceptors where I get a user object that is > saved > > in the session but I had to include a try/catch block in each case to > > prevent a NEP in the former case. If the session is null why it does not
 > > return it? > > > > Thanks. > > > > Jaime. 
		 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

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

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


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

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


Re: [Wicket-user] Re : Session.get() behaviour

2006-08-26 Thread Johan Compagner
Eelco wants company.On 8/26/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
remind me again why we let smartasses in?-IgorOn 8/25/06, 
Frank Bille <[EMAIL PROTECTED]> wrote:
I guess it would be more like a Session.exists() :)+1 for that. it's backportable.
FrankOn 8/26/06, Jaime De La Jara <


[EMAIL PROTECTED]> wrote:
I think Igor proposal, session.exists(), is correct and it could be added without 
any impact.Jaime.>i think thats better then an npe, didnt even know we were doing that. so> either this or add a session.exists() so you can test for it.
 > -IgorOn 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > I thought about that myself too. I'd be fine letting > RequestCycle.get


(), Session.get() and Application.get() return null if > the thread local is not set. What do others think of this? > > Eelco > >
 > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering why Session.get() throws a WicketRuntimeException if > the > > session does not exists, in my app I define an AuthorizationStrategy
 and > I'm > > also using some spring interceptors where I get a user object that is > saved > > in the session but I had to include a try/catch block in each case to > > prevent a NEP in the former case. If the session is null why it does not
 > > return it? > > > > Thanks. > > > > Jaime. 
		 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo


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


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


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

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

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


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

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