Re: [Wicket-user] Problem with empty markupId

2006-08-08 Thread Pierre-Yves Saumont
Thank you Frank and Igor,

 > this is where wicket differs from a lot of other frameworks and
 > sometimes its hard to wrap your mind around it: the components are
 > persistent across requests, they keep their state.

Yes, it is somewhat hard !

In fact, I started from an example I found that used a final ListView 
constructed exactly as you describe, but it appears I broke it !

Thank you for pointing me once again in the right direction !

Pierre-Yves

Igor Vaynberg a écrit :
> but why even create a new listview? the old one should just refresh and 
> show new data, if it doesnt you need to use a detachable model.
> 
> this is where wicket differs from a lot of other frameworks and 
> sometimes its hard to wrap your mind around it: the components are 
> persistent across requests, they keep their state.
> 
> so really what you should do is something like this:
> 
> IModel listModel=new LoadableDetachableModel() {
>   Object load() {
>   return DataObjectsFactory.getMyList();
>  }
> }
> final ListView mylistview;
> add(mylistview=new ListView("id", listModel) {
>populateitem() {}
>IModel getListItemModel(...) { ... }
> }.setOutputMarkupId(true));
> 
> 
> and then in the ajax handler all you have to do is to add the listview 
> to the target so it is queued for repainting : target.add(mylistview);
> 
> -Igor
> 
> 
> On 8/8/06, *Frank Bille* <[EMAIL PROTECTED] 
> > wrote:
> 
> 
> On 8/9/06, *Pierre-Yves Saumont* < [EMAIL PROTECTED]
> > wrote:
> 
> myList = DataObjectsFactory.getMyList();
> myListView = new MyListView("id", myList);
> myListView.setOutputMarkupId(true);
> target.addComponent(myListView);
> 
> 
> It doesn't look like you add/replace that myListView to a parent.
> OutputMarkupId can't be calculated when it's not attached to a
> parent. And what more you still need to keep the component hierachy
> on the server. So basically you would just replace your old listview
> with this new one.
> 
> Frank
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=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] Problem with empty markupId

2006-08-08 Thread Igor Vaynberg
but why even create a new listview? the old one should just refresh and show new data, if it doesnt you need to use a detachable model.this is where wicket differs from a lot of other frameworks and sometimes its hard to wrap your mind around it: the components are persistent across requests, they keep their state.
so really what you should do is something like this:IModel listModel=new LoadableDetachableModel() {  Object load() {  return DataObjectsFactory.getMyList(); }}final ListView mylistview;
add(mylistview=new ListView("id", listModel) {   populateitem() {}   IModel getListItemModel(...) { ... }}.setOutputMarkupId(true));and then in the ajax handler all you have to do is to add the listview to the target so it is queued for repainting : 
target.add(mylistview);-IgorOn 8/8/06, Frank Bille <[EMAIL PROTECTED]> wrote:
On 8/9/06, Pierre-Yves Saumont <
[EMAIL PROTECTED]> wrote:
myList = DataObjectsFactory.getMyList();myListView = new MyListView("id", myList);myListView.setOutputMarkupId(true);target.addComponent(myListView);
It doesn't look like you add/replace that myListView to a parent. OutputMarkupId can't be calculated when it's not attached to a parent. And what more you still need to keep the component hierachy on the server. So basically you would just replace your old listview with this new one.
Frank

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Problem with empty markupId

2006-08-08 Thread Frank Bille
On 8/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
myList = DataObjectsFactory.getMyList();myListView = new MyListView("id", myList);myListView.setOutputMarkupId(true);target.addComponent(myListView);It doesn't look like you add/replace that myListView to a parent. OutputMarkupId can't be calculated when it's not attached to a parent. And what more you still need to keep the component hierachy on the server. So basically you would just replace your old listview with this new one.
Frank
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Coding Authentification, Databinding and Role-related application behaviour

2006-08-08 Thread Igor Vaynberg
i have recently deprecated springannotwebapp so this no longer should be a problem. now to get spring injection going you do this:class myapplication extends webapplication {   init() { addComponentInstantiationListener(new SpringComponentInjector(this));
   }}thats it, no need for extending any spring related application object.-IgorOn 7/21/06, Mats Norén <
[EMAIL PROTECTED]> wrote:Has there been any progress in merging AuthenticatedWebApplication and
the spring-stuff lately or is there a best praktice out theresomewhere?Best regards MatsOn 6/8/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> The problem is that the wicket-auth-roles package assumes you subclass> AuthenticatedWebApplication as your application class. If you want to reuse> that, you'll have to subclass the AuthenticatedWebApplication and the
> AuthenticatedSession.>> No spring can fix that.>> Martijn>>> On 6/8/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:> >
>> On 6/7/06, Martijn Dashorst <[EMAIL PROTECTED] > wrote:>> >> > I suggest (tried and tested at my company) to use the Auth application as
> your base class and merge the spring related stuff into your subclass. The> spring integration is agnostic for sessions and such, so you'll be up and> running much quicker.> >>> Personally I'm using the
> wicket.spring.SpringWebApplicationFactory mentioned in> web.xml then and nice and cleanly inject my authentication strategy into my> Application via normal spring IoC:>> > class="com.theoryinpractice.timetrackr.TimeTrackrApplication">> > ref="authorizationStrategy"/>> 
>> > class="com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy">> 
> >> The authorization strategy also has injected into it my hibernate DAO's so> have full access to everything they need, cleanly and springy, without> touching any of those odd little convience classes (actually I never knew
> they existed either).>> Doing spring+wicket this way is much much nicer I find. ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>> --> Download Wicket 1.2 now! Write Ajax applications without touching> _javascript_!> -- http://wicketframework.org
>>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>>-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___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


[Wicket-user] Problem with empty markupId

2006-08-08 Thread Pierre-Yves Saumont
Hi,

I am trying to implement an ajax form. The form is supposed to update a 
listView.

Basically, the onSubmit handler create a new listView after having 
updated the database. It ends with those instructions :

myList = DataObjectsFactory.getMyList();
myListView = new MyListView("id", myList);
myListView.setOutputMarkupId(true);
target.addComponent(myListView);
myForm.clearInput();
target.addComponent(myForm);

I am getting a java.lang.IllegalArgumentException: markupId cannot be empty

at line

target.addComponent(myListView);

Can someone explain me what it means ?

And are the lines

myForm.clearInput();
target.addComponent(myForm);

the correct way to reset the form ?


Pierre-Yves


-
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] Unknown Exception -- Wicket 1.2.1

2006-08-08 Thread Eelco Hillenius
On 8/8/06, Jeremy Levy <[EMAIL PROTECTED]> wrote:
> Can someone help me debug this exception?  I don't see any references to my
> code:
>
> I'm using 1.2.1 in Jboss/Tomcat
>
>
> wicket.WicketRuntimeException: Internal error parsing wicket:interface = :1
> at
>

Yeah, looks like someone has been trying to play with an internal url.
Urls to components should look like:
:::. In this case, there is
only page map name and path (default pagemap, path 1)

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Unknown Exception -- Wicket 1.2.1

2006-08-08 Thread Jeremy Levy
Can someone help me debug this exception?  I don't see any references to my code:I'm using 1.2.1 in Jboss/Tomcatwicket.WicketRuntimeException: Internal error parsing wicket:interface = :1    at 
wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:389)    at wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:147)
    at wicket.Request.getRequestParameters(Request.java:161)    at wicket.RequestCycle.step(RequestCycle.java:942)    at wicket.RequestCycle.steps(RequestCycle.java:1034)    at wicket.RequestCycle.request
(RequestCycle.java:453)    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)    at javax.servlet.http.HttpServlet.service
(HttpServlet.java:810)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
:173)    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)    at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java
:159)    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)    at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)    at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
:748)    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)    at java.lang.Thread.run(Thread.java:595)2006-08-08 12:23:23,542 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/1].[MeetMoi]] Servlet.service() for servlet MeetMoi threw exception
wicket.WicketRuntimeException: Internal error parsing wicket:interface = :1    at wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:389)    at wicket.protocol.http.request.WebRequestCodingStrategy.decode
(WebRequestCodingStrategy.java:147)    at wicket.Request.getRequestParameters(Request.java:161)    at wicket.Page.init(Page.java:1155)    at wicket.Page.(Page.java:194)    at wicket.markup.html.WebPage
.(WebPage.java:122)    at wicket.markup.html.pages.InternalErrorPage.(InternalErrorPage.java:37)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)    at 
java.lang.reflect.Constructor.newInstance(Constructor.java:494)    at java.lang.Class.newInstance0(Class.java:350)    at java.lang.Class.newInstance(Class.java:303)    at wicket.session.DefaultPageFactory.newPage
(DefaultPageFactory.java:58)    at wicket.request.compound.DefaultExceptionResponseStrategy.respond(DefaultExceptionResponseStrategy.java:99)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java:76)    at wicket.RequestCycle.step(RequestCycle.java:1000)    at wicket.RequestCycle.steps(RequestCycle.java:1034)    at wicket.RequestCycle.request(RequestCycle.java
:453)    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)    at javax.servlet.http.HttpServlet.service(HttpServlet.java
:810)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFi

Re: [Wicket-user] Component updating problem

2006-08-08 Thread Igor Vaynberg
this is rather strange, i see dataview, but in the path i dont see the item id which is an integersee how many of these ids are in the markup, there can be only one, if there are two or more it wont work.
-IgorOn 8/8/06, Samyem Tuladhar <[EMAIL PROTECTED]> wrote:
I am getting errors like these:ERROR: Component with id [[dataView_modalPanel_placeHolder_panel_modalPanel_shippingRatesGroupForm_sourceCodes_choices]] a was not found while trying to perform markup update. Make sure you called 
component.setOutputMarkupId(true) on the component whose markup you are trying to update.I have set the setOutputMarkupId to true to this component. And in the rendered markup, I can see the ID rendered as:
id="2:dataView:modalPanel:placeHolder:panel:modalPanel:shippingRatesGroupForm:sourceCodes:choices"What could I be doing wrong here?

-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] Palette AjaxFormComponentUpdatingBehavior

2006-08-08 Thread Igor Vaynberg
its because pallette is not a field it is a compound component. you have to attach the behavior to one of palette's internal components. the palette has factory methods for all its internal components so you probably have to add it to one of those...i havent looked at it so its just a guess.
-IgorOn 8/8/06, Samyem Tuladhar <[EMAIL PROTECTED]> wrote:
How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields.Thanks,

-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] Component updating problem

2006-08-08 Thread Samyem Tuladhar
I am getting errors like these:ERROR: Component with id [[dataView_modalPanel_placeHolder_panel_modalPanel_shippingRatesGroupForm_sourceCodes_choices]] a was not found while trying to perform markup update. Make sure you called 
component.setOutputMarkupId(true) on the component whose markup you are trying to update.I have set the setOutputMarkupId to true to this component. And in the rendered markup, I can see the ID rendered as:
id="2:dataView:modalPanel:placeHolder:panel:modalPanel:shippingRatesGroupForm:sourceCodes:choices"What could I be doing wrong here?
-
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] Dynamic Markup

2006-08-08 Thread Eelco Hillenius
Hmmm, yeah. I'm afraid it looks like that. Maybe we can put that on
the list for 1.3

Eelco


On 8/8/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> On 8/8/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> > On 8/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > markup is cached, but you can tweak that by tweaking
> > > MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
> > > specifically.
> >
> > Thanks for the hints. I'll give that a try!
>
> Hmm. Can't find that class or those methods in 1.2.1. Is it 2.0 specfic?
>
>  S.
>
> -
> 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] Wicket-contrib-navmenu

2006-08-08 Thread Mats Norén
ah, ok, I just assumed that most of the projects there were trying to keep up.
It worked with 1.2. Thanks!

On 8/8/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
> wicket-contrib-navmenu's part of wicket-stuff, or more to the point
> it's not part of the core Wicket project, so you shouldn't expect it
> to be versioned up along with the core.  I'd expect you could just go
> with the current version though, as 1.2 -> 1.2.1 should be a dropin
> for clients, which is what wicket-contrib-navmenu is (should be,
> anyway) in this context.
>
> /Gwyn
>
> On 08/08/06, Mats Norén <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I decided to upgrade my project from a pre-release of 1.2 to 1.2.1 and
> > ran into some problems.
> > I used the wicket-contrib-navmenu 1.2-SNAPSHOT in my pom.xml, I tried
> > the easy approach and changed it to 1.2.1...unfortunately maven
> > couldn't find it.
> >
> > Has it moved to some other package or is it removed?
> >
> > /Mats
>
> --
> Download Wicket 1.2.1 now! - http://wicketframework.org
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=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] Dynamic Markup

2006-08-08 Thread Stefan Arentz
On 8/8/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> On 8/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > markup is cached, but you can tweak that by tweaking
> > MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
> > specifically.
>
> Thanks for the hints. I'll give that a try!

Hmm. Can't find that class or those methods in 1.2.1. Is it 2.0 specfic?

 S.

-
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] Dynamic Markup

2006-08-08 Thread Stefan Arentz
On 8/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> markup is cached, but you can tweak that by tweaking
> MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
> specifically.

Thanks for the hints. I'll give that a try!

> Furthermore, instead of adding your components in that for loop, you
> should rather use a ListView or repeater.

Well my content is completely free form and unstructured. So repeaters
won't work.

 S.

-
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] Palette AjaxFormComponentUpdatingBehavior

2006-08-08 Thread Samyem Tuladhar
How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields.Thanks,
-
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] Form + pull model ListView + FormValidators

2006-08-08 Thread Joni Freeman
On Tue, 2006-08-08 at 08:36 -0700, Igor Vaynberg wrote:
> this only solves it partially though - added formvalidators are still
> going to be a problem for removed items - not sure about the best
> approach right now - we might have to open more api or make validation
> smarter - lets discuss this some more. 

I think the problem is that IFormValidators are pushed to a Form.
Pushing things do not work well when using pull models. What if Form
would pull FormValidators instead:

public Form extends WebMarkupContainer implements IFormSubmitListener 
{
...

protected List formValidators() 
{
List formValidators = new
ArrayList();
visitChildren(IFormValidatorProvider.class, new IVisitor()
{
public Object component(final Component component)
{
IFormValidatorProvider provider =
(IFormValidatorProvider) component;
validators.addAll(provider.formValidators());
return CONTINUE_TRAVERSAL;
}
 });

return formValidators;
}
}

public interface IFormValidatorProvider 
{
Collection formValidators();
}

This would allow IFormValidators to be encapsulated with components.
E.g.

public DateRangePicker extends Panel implements IFormValidatorProvider 
{
public DateRangePicker(String id) 
{
super(id);
start = new DateRange("start");
end = new DateRange("end");
}

public Collection formValidators() 
{
return Arrays.asList(new DateRangePickerValidator(start, end));
}

private class DateRangePickerValidator implements IFormValidator 
{
public DateRangeFieldValidator(DatePicker start, DatePicker
end) 
{
}
}
}

This would also be more flexible than the current way since the decision
about whether to include a certain IFormValidator can be done at
onSubmit() phase.

Any comments?

Joni


-
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] Dynamic Markup

2006-08-08 Thread Eelco Hillenius
On 8/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> markup is cached, but you can tweak that by tweaking
> MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
> specifically.
>
> Furthermore, instead of adding your components in that for loop, you
> should rather use a ListView or repeater.

Or rather some factory that ensures you map the right ids etc. Unless
you use component resolvers which is something I don't know much about
myself currently.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Dynamic Markup

2006-08-08 Thread Eelco Hillenius
markup is cached, but you can tweak that by tweaking
MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching
specifically.

Furthermore, instead of adding your components in that for loop, you
should rather use a ListView or repeater.

Eelco


On 8/8/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> Is markup cached? i have a panel with a custom
> newMarkupResourceStream() that generated dynamic markup. But i see old
> values in error messages even though the markup changed.
>
> Is there any way to do something like this:
>
> class MyPanel extends Panel
> {
> private String html;
> private Set components;
>
> public RealWickiPanel(String id, String html, Set 
> components)
> {
> super(id);
>
> this.html = html;
> this.components = components;
>
> for (Component component : components) {
> add(component);
> }
> }
>
> @Override
> public IResourceStream newMarkupResourceStream(Class containerClass)
> {
> return new StringResourceStream("" + html +
> "");
> }
> }
>
> Or is this too much wickety magic?
>
>  S.
>
> -
> 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


[Wicket-user] Dynamic Markup

2006-08-08 Thread Stefan Arentz
Is markup cached? i have a panel with a custom
newMarkupResourceStream() that generated dynamic markup. But i see old
values in error messages even though the markup changed.

Is there any way to do something like this:

class MyPanel extends Panel
{
private String html;
private Set components;

public RealWickiPanel(String id, String html, Set components)
{
super(id);

this.html = html;
this.components = components;

for (Component component : components) {
add(component);
}
}

@Override
public IResourceStream newMarkupResourceStream(Class containerClass)
{
return new StringResourceStream("" + html +
"");
}
}

Or is this too much wickety magic?

 S.

-
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] Problem with Javascript function calls in AJAX loaded document with IE6

2006-08-08 Thread Eelco Hillenius
Did you check that the header contribution is actually done? And do
you work on the svn version of 1.2 (as that is where the change for
dynamic header contribution for ajax was put in... it's not in 1.2.1
yet)?

B.t.w. before you rush out and try the svn version, there currently is
a bug that prevents ajax to work at all (see my post to dev an hour
ago). Hopefully that'll be fixed later today.

Eelco


On 8/8/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have an AJAX tabbed panel that works smoothly except for one little
> thing.
>
> The first tab contains a form with an OnSubmit event handler. For
> testing purpose, the handler is as follow :
>
> onsubmit="alert('On Submit');return alertOnSubmit('alertOnSubmit')"
>
> The alertOnSubmit function just display it's argument in an alert box.
> Everything works fine.
>
> Now, if I fut the same form in the second tab (which is then loaded
> through AJAX), the event handler works fine in Firefox. However, in IE6,
> the first alert box is displayed, but the second is not.
>
> I made several tests, putting the script in various places. Results are
> as follow :
>
> - When in first tab, everything works wherever the script is located.
>
> - When in second tab (AJAX loaded), it does not work if the script is
> located in the tab. It works only if the script is in the rest of the page.
>
> Does someone know if there is way to make IE6 use the scripts loaded
> through AJAX ?
>
> BTW, the Ajax Debug Window is really cool. It would be even cooler if it
> could be resized. (And also is IE6 dropdown lists would not display on
> top of it, but there is probably not much to do about this except
> waiting for IE7 :-(
>
> Pierre-Yves
>
>
> -
> 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] WicketTester migrating from 1.1 to 1.2

2006-08-08 Thread David Hansen
This works perfectly.  Thanks.

  - Dave

On Aug 7, 2006, at 10:09 PM, Juergen Donnerstag wrote:

> This is how WicketTestCase does it and it is used in hundreds of tests
>
>   application = new WicketTester(null);
>   application.setHomePage(pageClass);
>
>   // Do the processing
>   application.setupRequestAndResponse();
>   application.processRequestCycle();
>
>   assertEquals(pageClass, 
> application.getLastRenderedPage().getClass 
> ());
>
>   // Validate the document
>   String document = 
> application.getServletResponse().getDocument();
>
> Juergen


-
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] Wicket Ajax form example not finding script

2006-08-08 Thread Eelco Hillenius
You always have to let your url-pattern end with * (e.g. /app/ajax/*).
Otherwise, Wicket will only recieve requests that exactly map to the
/app/ajax/ path, but not for instance /app/ajax/resources/

Eelco


On 8/8/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> hi,
>
> I tried to test the Ajax form example. If the servlet mapping is :
>
>
>ajax
>/app/ajax
>
>
> The ajax script can't be found because the path (in the sources) is
>
>  src="/ceagrap/app/ajax/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js">
>
> and the scipt is located at :
>
> /ceagrap/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
>
> So it seems it can only work with this mapping :
>
>
>ajax
>/app/*
>
>
> Incidentally, the comment in the example says :
>
>  // attach an ajax validation behavior to all form component's onkeydown
>  // event and throttle it down to once per second
>
> but the code uses keyup. Is there any reason why keyup should be used
> instead of keydown ? I changed it to onchange which I feel less
> spectacular but less intrusive.
>
> Pierre-Yves
>
>
>
>
> -
> 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


[Wicket-user] Wicket Ajax form example not finding script

2006-08-08 Thread Pierre-Yves Saumont
hi,

I tried to test the Ajax form example. If the servlet mapping is :

   
   ajax
   /app/ajax
   

The ajax script can't be found because the path (in the sources) is



and the scipt is located at :

/ceagrap/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js

So it seems it can only work with this mapping :

   
   ajax
   /app/*
   

Incidentally, the comment in the example says :

 // attach an ajax validation behavior to all form component's onkeydown
 // event and throttle it down to once per second

but the code uses keyup. Is there any reason why keyup should be used 
instead of keydown ? I changed it to onchange which I feel less 
spectacular but less intrusive.

Pierre-Yves




-
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] Wicket-contrib-navmenu

2006-08-08 Thread Gwyn Evans
wicket-contrib-navmenu's part of wicket-stuff, or more to the point
it's not part of the core Wicket project, so you shouldn't expect it
to be versioned up along with the core.  I'd expect you could just go
with the current version though, as 1.2 -> 1.2.1 should be a dropin
for clients, which is what wicket-contrib-navmenu is (should be,
anyway) in this context.

/Gwyn

On 08/08/06, Mats Norén <[EMAIL PROTECTED]> wrote:
> Hi,
> I decided to upgrade my project from a pre-release of 1.2 to 1.2.1 and
> ran into some problems.
> I used the wicket-contrib-navmenu 1.2-SNAPSHOT in my pom.xml, I tried
> the easy approach and changed it to 1.2.1...unfortunately maven
> couldn't find it.
>
> Has it moved to some other package or is it removed?
>
> /Mats

-- 
Download Wicket 1.2.1 now! - http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Buttons not responding in IE

2006-08-08 Thread Igor Vaynberg
you have to use input type="submit"input type="button" and button tags do not submit the form - or at least should not according to spec i think. they are only supposed to invoke onclick handlers where _javascript_ either submits the form or does something else.
i noticed that ffox will still submit the form sometimes if there is no onclick handler - which is wrong imho.-IgorOn 8/8/06, wicket21
 <[EMAIL PROTECTED]> wrote:
Hi,I'm new with wicket and have the following problem:I've used wicket for a site and tested it with firefox and works fine. Whentesting with IE I find that some buttons do not respond at all. In java I
declare them as "new Button ..." (or even as Links) and tried in html with"debugging I see that the java code is not reached (ie the code in eitheronSubmit or onClick).Does anyone have an idea why this happens?I'm using wicket-1.2-rc2, latest firefox, IE 6 under winXP+sp2.
--View this message in context: http://www.nabble.com/Buttons-not-responding-in-IE-tf2073453.html#a5709058Sent 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


[Wicket-user] Buttons not responding in IE

2006-08-08 Thread wicket21

Hi,

I'm new with wicket and have the following problem:

I've used wicket for a site and tested it with firefox and works fine. When
testing with IE I find that some buttons do not respond at all. In java I
declare them as "new Button ..." (or even as Links) and tried in html with
"http://www.nabble.com/Buttons-not-responding-in-IE-tf2073453.html#a5709058
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] Form + pull model ListView + FormValidators

2006-08-08 Thread Igor Vaynberg
you can pull, you just have to override each item's model. in getListItemModel() return a detachable model that can load the item by pk, otherwise you can run into big problems on the callback.ie: on render you return A,B,C,D
on callback you return A,B,E,F,Dnow if on this callback user clicked on C you will actually be working on E which is a big booboo. this is why i integrated model() call into the idataprovider - so people dont forget.
this only solves it partially though - added formvalidators are still going to be a problem for removed items - not sure about the best approach right now - we might have to open more api or make validation smarter - lets discuss this some more.
-IgorOn 8/8/06, Joni Freeman <[EMAIL PROTECTED]> wrote:
Consider following form which uses ListView with pull model.public MyForm extends Form {public MyForm(String id, IModel model) {super(id, model);add(new ListView("items") {
public IModel getModel() {return new Model(dao.findAll());}protected void populateItem(final ListItem item) {FormComponent text1 = new TextField("t1");
FormComponent text2 = new TextField("t2");item.add(text1);item.add(text2);MyForm.this.add(new MyFormValidator(text1, text2));}
};}protected void onSubmit() {// hello world!}}Now, the first submit is ok, but if the validation fails during thefirst submit and the user presses submit again, the whole form fails to
Caused by: java.lang.IllegalStateException: No Page found for component[MarkupContainer [Component id = TextField.text, page = , path= 1:semester.length:start:TextField.text]]  at wicket.Component.getPage
(Component.java:1022)  at wicket.Component.hasErrorMessage(Component.java:1226)  atwicket.markup.html.form.FormComponent.isValid(FormComponent.java:442)...Why? Because the Form instance contains FormValidators which reference
old instances of FormComponents. These old instances are not in a Formafter the first submit because the ListView uses pull model andtherefore can't call setReuseItems(true);So, it seems that it is not possible to use pull model ListView in a
Form?Joni-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] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Igor Vaynberg
thank you-IgorOn 8/8/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:
Ok, I added the guide to the wiki:http://www.wicket-wiki.org.uk/wiki/index.php/How_to_add_tooltipsEnjoy!- Johannes
Johannes Fahrenkrug wrote:>Gwyn Evans wrote:>>10) There is no step 10>11) Agree to suggestion in step 10 and do it :)
>>I'll do that right now.>How about "Document it on the Wiki"! :-)/GwynOn 08/08/06, Johannes Fahrenkrug <
[EMAIL PROTECTED]> wrote:>>>Hi!>>I've asked so many questions on this list and got so many friendly and>>>helpful answers, it's time to give something back.
>>>This Saturday I migrated a big web application from Wicket 1.1.1 to>>>1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work>>>with 1.2, so I had to find another solution. I found Igor's suggestions
>>>for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go>>>with "Sweet Titles".>>Sweet titles is great, but the problem is that it automatically attaches
>>>tooltips to all ,  and  tags (correct me if I'm wrong,>>>but I am sure about the  tag). I didn't want that, though. I needed>>>tooltips for checkboxes, and I needed to explicitly say which element
>>>should show a tooltip and which element shouldn't. So I altered the>>>sweetTitles.js a bit and this is what I came up with:>>1) Download SweetTitles from>>>
http://www.dustindiaz.com/downloads/sweet-titles.zip>>>2) Replace sweetTitles.js with the one I attached to this email.>>>3) At the moment the replacement 
sweetTitles.js should be able to add>>>tooltips to the following elements: 'input', 'td', 'tr', 'textarea',>>>'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or>>>too much), edit the "tipElements" array at the top of the file.
>>>4) Put the 2 _javascript_ files somewhere into your package (ie>>>org.example.app._javascript_)>>>5) Either put the CSS file into your package as well or add the contents>>>to a CSS file you already use in your application
>>>6) Add this to the head section of the html file you want to use>>>tooltips in:> 
>>> >7) Add the _javascript_ resources to your page:>>add(new _javascript_Reference("addEventJs", new
>>>PackageResourceReference(YourApplication.get(), YourPage.class,>>>"_javascript_/addEvent.js")));>>>add(new _javascript_Reference("sweetTitlesJs", new>>>PackageResourceReference(
YourApplication.get(), YourPage.class,>>>"_javascript_/sweetTitles.js")));>>8) Add the Attribute "showtooltip" to the element that should show a>>>tooltip (only elements with this attibute will show tooltips):
>>someWicketComponent.add(new AttributeModifier("showtooltip", true, new>>>Model("true")));>>9) Either add the content of the tooltip to the element in the html
>>>file, using the "title" attribute:>
>>>...or add dynamic tooltip texts using an AttributeModifier:>>someWicketComponent.add(new AttributeModifier("title", true, new>>>Model("Hi, I am a dynamic tooltip.")));
>>10) There is no step 10>>I hope this is helpful to somebody. Any improvements are very much>>>encouraged, of course!>>- Johannes
>>>->>>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 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-inte

[Wicket-user] Wicket-contrib-navmenu

2006-08-08 Thread Mats Norén
Hi,
I decided to upgrade my project from a pre-release of 1.2 to 1.2.1 and
ran into some problems.
I used the wicket-contrib-navmenu 1.2-SNAPSHOT in my pom.xml, I tried
the easy approach and changed it to 1.2.1...unfortunately maven
couldn't find it.

Has it moved to some other package or is it removed?

/Mats

-
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] qwicket

2006-08-08 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Ok.  I finally got the new version uploaded.  My host was having some
issues last night.  Qwicket now supports basic bean definitions in the
UI. The CRUD pages still aren't there, but the requisite services and
DAOs are as well as the spring configurations. The spring setup and
project layout have changed a fair bit in this release. What was being
done with ant filters has been changed to use spring property
replacement. Customization of these property values are now stored in
src/conf/application-override.properties with the defaults in
src/conf/application.properties.

This release introduces Users into Qwicket itself. You can now save your
project and return to it at a later date. You can still work
anonymously, though, if you prefer. This release should be pretty solid
but it was little rushed to finish before I present at the Denver JUG on
the 9th so if you see something, please fill out a bug report using the
link in the menu on the left.

Md Mozammel Haque wrote:
> Thanks Igor! After manually adding most of the required jar files, and
> fixing/changing several jar files (for versioning issues), I am able to
> run my first qwicket webapp. It took quite an effort, though it was
> worth it. On my way to explore it to more detail...
> 
> - Mozammel
> 
> On 8/7/06, *Igor Vaynberg* <[EMAIL PROTECTED]
> > wrote:
> 
> the problem is that some jars provided by sun are not allowed to be
> redistributed. in this case javax.mail is the problem. you have to go
> and manually download the file from sun and put it into your local
> repo.
> 
> if you try to run qwicket's maven build and then look under your maven
> repo you will see a folder javax/mail/mail/1.3.3. inside this folder
> you will see mail-1.3.3.pom but no jar - because it is only available
> from sun. inside the pom is a url to go download this file, once you
> download it rename the jar to mail-1.3.3.jar and put it into that
> folder.
> 
> run the maven build again and you should be good to go. notice you
> might have to repeat this procedure for other dependencies that are
> only available from sun.
> 
> but once you install them you wont have this problem anymore so its a
> one time deal.
> 
> -Igor
> 
> 
> On 8/6/06, Md Mozammel Haque < [EMAIL PROTECTED]
> > wrote:
> > Yes, I also tried to run it but fell into same problem. Can you please
> > explain little more regarding "massage your maven repository"? Or,
> the
> > documentation/script that you are developing may be real helpful
> for running
> > qwicket apps out of the box.
> >
> > - Mozammel
> >
> >
> > On 8/6/06, Justin Lee < [EMAIL PROTECTED]
> > wrote:
> It does run out of the box, but you do need to massage your maven
> repository first.  I'm working on some documentation and a
>> script to
> help do that as simply as possible.  The problem is that sun
>> restricts
> the distribution of their jar files so that they can't be bundled.
> 
> Michael Welter wrote:
>> I used the qwicket web page to generate a skeleton
>> project.  When I
>> compiled, it was unable to get the jar files.  I added the jars
>> > manually.
> 
>> When I move the war file to Tomcat and try to bring up the
>> first page, I
>> get 404 not found.
> 
>> Will the skeleton project run out of the box (at least the
>> first page)?
> 
>> Thanks,
> 
> 
> --
> Justin Lee
> http://www.antwerkz.com
> AIM : evan chooly
> Skype : evanchooly
> > >
> > >
> >
> -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net 's Techsay panel and you'll get the chance
> to share
> > your
opinions on IT & business topics through brief surveys -- and
> earn cash
> > >
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
> 
https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys -- and earn
> cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> >
> > ___
> > Wicket-user

Re: [Wicket-user] - Page redirect infinite loop

2006-08-08 Thread Paolo Di Tommaso
Thanks. I've just updated the two classes and made a new build. Seems to work fine. - PaoloOn 8/7/06, Johan Compagner <
[EMAIL PROTECTED]> wrote: branches/WICKET_1_2/wicket/src/java/wicket/protocol/http/request/WebRequestCodingStrategy.java
    branches/WICKET_1_2/wicket/src/java/wicket/request/target/coding/BookmarkablePageRequestTargetUrlCodingStrategy.java

-
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] Form + pull model ListView + FormValidators

2006-08-08 Thread Joni Freeman
Consider following form which uses ListView with pull model.

public MyForm extends Form {
public MyForm(String id, IModel model) {
super(id, model);
add(new ListView("items") {
public IModel getModel() {
return new Model(dao.findAll());
}

protected void populateItem(final ListItem item) {
FormComponent text1 = new TextField("t1");
FormComponent text2 = new TextField("t2");
item.add(text1);
item.add(text2);
MyForm.this.add(new MyFormValidator(text1, text2));
}
};
}

protected void onSubmit() {
// hello world!
}
}

Now, the first submit is ok, but if the validation fails during the
first submit and the user presses submit again, the whole form fails to 
Caused by: java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = TextField.text, page = , path
= 1:semester.length:start:TextField.text]]
  at wicket.Component.getPage(Component.java:1022)
  at wicket.Component.hasErrorMessage(Component.java:1226)
  at
wicket.markup.html.form.FormComponent.isValid(FormComponent.java:442)
...

Why? Because the Form instance contains FormValidators which reference
old instances of FormComponents. These old instances are not in a Form
after the first submit because the ListView uses pull model and
therefore can't call setReuseItems(true);

So, it seems that it is not possible to use pull model ListView in a
Form?

Joni


-
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] Wicket + GIS

2006-08-08 Thread Mats Norén
Hi,
has anyone on the list any experience with Wicket and GIS-backends
like Geoserver?
I'm trying to figure out the best approach for interfacing Wicket with
GeoServer but I'm interested in other frameworks as well.

/Mats

-
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] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug
Ok, I added the guide to the wiki:

http://www.wicket-wiki.org.uk/wiki/index.php/How_to_add_tooltips

Enjoy!

- Johannes

Johannes Fahrenkrug wrote:

>Gwyn Evans wrote:
>
>  
>
>>>10) There is no step 10
>>>   
>>>
>>>  
>>>
>11) Agree to suggestion in step 10 and do it :)
>
>I'll do that right now.
>
>  
>
>>How about "Document it on the Wiki"! :-)
>>
>>/Gwyn
>>
>>On 08/08/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:
>> 
>>
>>
>>
>>>Hi!
>>>
>>>I've asked so many questions on this list and got so many friendly and
>>>helpful answers, it's time to give something back.
>>>This Saturday I migrated a big web application from Wicket 1.1.1 to
>>>1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work
>>>with 1.2, so I had to find another solution. I found Igor's suggestions
>>>for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go
>>>with "Sweet Titles".
>>>
>>>Sweet titles is great, but the problem is that it automatically attaches
>>>tooltips to all ,  and  tags (correct me if I'm wrong,
>>>but I am sure about the  tag). I didn't want that, though. I needed
>>>tooltips for checkboxes, and I needed to explicitly say which element
>>>should show a tooltip and which element shouldn't. So I altered the
>>>sweetTitles.js a bit and this is what I came up with:
>>>
>>>1) Download SweetTitles from
>>>http://www.dustindiaz.com/downloads/sweet-titles.zip
>>>2) Replace sweetTitles.js with the one I attached to this email.
>>>3) At the moment the replacement sweetTitles.js should be able to add
>>>tooltips to the following elements: 'input', 'td', 'tr', 'textarea',
>>>'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or
>>>too much), edit the "tipElements" array at the top of the file.
>>>4) Put the 2 JavaScript files somewhere into your package (ie
>>>org.example.app.javascript)
>>>5) Either put the CSS file into your package as well or add the contents
>>>to a CSS file you already use in your application
>>>6) Add this to the head section of the html file you want to use
>>>tooltips in:
>>>
>>>
>>> 
>>> 
>>>
>>>
>>>7) Add the JavaScript resources to your page:
>>>
>>>add(new JavaScriptReference("addEventJs", new
>>>PackageResourceReference(YourApplication.get(), YourPage.class,
>>>"javascript/addEvent.js")));
>>>add(new JavaScriptReference("sweetTitlesJs", new
>>>PackageResourceReference(YourApplication.get(), YourPage.class,
>>>"javascript/sweetTitles.js")));
>>>
>>>8) Add the Attribute "showtooltip" to the element that should show a
>>>tooltip (only elements with this attibute will show tooltips):
>>>
>>>someWicketComponent.add(new AttributeModifier("showtooltip", true, new
>>>Model("true")));
>>>
>>>9) Either add the content of the tooltip to the element in the html
>>>file, using the "title" attribute:
>>>
>>>
>>>
>>>...or add dynamic tooltip texts using an AttributeModifier:
>>>
>>>someWicketComponent.add(new AttributeModifier("title", true, new
>>>Model("Hi, I am a dynamic tooltip.")));
>>>
>>>10) There is no step 10
>>>
>>>I hope this is helpful to somebody. Any improvements are very much
>>>encouraged, of course!
>>>
>>>- Johannes
>>>
>>>
>>>
>>>
>>>-
>>>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] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug
Gwyn Evans wrote:

>>10) There is no step 10
>>
>>
11) Agree to suggestion in step 10 and do it :)

I'll do that right now.

>
>How about "Document it on the Wiki"! :-)
>
>/Gwyn
>
>On 08/08/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:
>  
>
>>Hi!
>>
>>I've asked so many questions on this list and got so many friendly and
>>helpful answers, it's time to give something back.
>>This Saturday I migrated a big web application from Wicket 1.1.1 to
>>1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work
>>with 1.2, so I had to find another solution. I found Igor's suggestions
>>for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go
>>with "Sweet Titles".
>>
>>Sweet titles is great, but the problem is that it automatically attaches
>>tooltips to all ,  and  tags (correct me if I'm wrong,
>>but I am sure about the  tag). I didn't want that, though. I needed
>>tooltips for checkboxes, and I needed to explicitly say which element
>>should show a tooltip and which element shouldn't. So I altered the
>>sweetTitles.js a bit and this is what I came up with:
>>
>>1) Download SweetTitles from
>>http://www.dustindiaz.com/downloads/sweet-titles.zip
>>2) Replace sweetTitles.js with the one I attached to this email.
>>3) At the moment the replacement sweetTitles.js should be able to add
>>tooltips to the following elements: 'input', 'td', 'tr', 'textarea',
>>'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or
>>too much), edit the "tipElements" array at the top of the file.
>>4) Put the 2 JavaScript files somewhere into your package (ie
>>org.example.app.javascript)
>>5) Either put the CSS file into your package as well or add the contents
>>to a CSS file you already use in your application
>>6) Add this to the head section of the html file you want to use
>>tooltips in:
>>
>>
>>  
>>  
>>
>>
>>7) Add the JavaScript resources to your page:
>>
>>add(new JavaScriptReference("addEventJs", new
>>PackageResourceReference(YourApplication.get(), YourPage.class,
>>"javascript/addEvent.js")));
>>add(new JavaScriptReference("sweetTitlesJs", new
>>PackageResourceReference(YourApplication.get(), YourPage.class,
>>"javascript/sweetTitles.js")));
>>
>>8) Add the Attribute "showtooltip" to the element that should show a
>>tooltip (only elements with this attibute will show tooltips):
>>
>>someWicketComponent.add(new AttributeModifier("showtooltip", true, new
>>Model("true")));
>>
>>9) Either add the content of the tooltip to the element in the html
>>file, using the "title" attribute:
>>
>>
>>
>>...or add dynamic tooltip texts using an AttributeModifier:
>>
>>someWicketComponent.add(new AttributeModifier("title", true, new
>>Model("Hi, I am a dynamic tooltip.")));
>>
>>10) There is no step 10
>>
>>I hope this is helpful to somebody. Any improvements are very much
>>encouraged, of course!
>>
>>- Johannes
>>
>>
>>
>>
>>-
>>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


[Wicket-user] Problem with Javascript function calls in AJAX loaded document with IE6

2006-08-08 Thread Pierre-Yves Saumont
Hello,

I have an AJAX tabbed panel that works smoothly except for one little 
thing.

The first tab contains a form with an OnSubmit event handler. For 
testing purpose, the handler is as follow :

onsubmit="alert('On Submit');return alertOnSubmit('alertOnSubmit')"

The alertOnSubmit function just display it's argument in an alert box. 
Everything works fine.

Now, if I fut the same form in the second tab (which is then loaded 
through AJAX), the event handler works fine in Firefox. However, in IE6, 
the first alert box is displayed, but the second is not.

I made several tests, putting the script in various places. Results are 
as follow :

- When in first tab, everything works wherever the script is located.

- When in second tab (AJAX loaded), it does not work if the script is 
located in the tab. It works only if the script is in the rest of the page.

Does someone know if there is way to make IE6 use the scripts loaded 
through AJAX ?

BTW, the Ajax Debug Window is really cool. It would be even cooler if it 
could be resized. (And also is IE6 dropdown lists would not display on 
top of it, but there is probably not much to do about this except 
waiting for IE7 :-(

Pierre-Yves


-
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] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Gwyn Evans
> 10) There is no step 10

How about "Document it on the Wiki"! :-)

/Gwyn

On 08/08/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I've asked so many questions on this list and got so many friendly and
> helpful answers, it's time to give something back.
> This Saturday I migrated a big web application from Wicket 1.1.1 to
> 1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work
> with 1.2, so I had to find another solution. I found Igor's suggestions
> for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go
> with "Sweet Titles".
>
> Sweet titles is great, but the problem is that it automatically attaches
> tooltips to all ,  and  tags (correct me if I'm wrong,
> but I am sure about the  tag). I didn't want that, though. I needed
> tooltips for checkboxes, and I needed to explicitly say which element
> should show a tooltip and which element shouldn't. So I altered the
> sweetTitles.js a bit and this is what I came up with:
>
> 1) Download SweetTitles from
> http://www.dustindiaz.com/downloads/sweet-titles.zip
> 2) Replace sweetTitles.js with the one I attached to this email.
> 3) At the moment the replacement sweetTitles.js should be able to add
> tooltips to the following elements: 'input', 'td', 'tr', 'textarea',
> 'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or
> too much), edit the "tipElements" array at the top of the file.
> 4) Put the 2 JavaScript files somewhere into your package (ie
> org.example.app.javascript)
> 5) Either put the CSS file into your package as well or add the contents
> to a CSS file you already use in your application
> 6) Add this to the head section of the html file you want to use
> tooltips in:
>
> 
>   
>   
> 
>
> 7) Add the JavaScript resources to your page:
>
> add(new JavaScriptReference("addEventJs", new
> PackageResourceReference(YourApplication.get(), YourPage.class,
> "javascript/addEvent.js")));
> add(new JavaScriptReference("sweetTitlesJs", new
> PackageResourceReference(YourApplication.get(), YourPage.class,
> "javascript/sweetTitles.js")));
>
> 8) Add the Attribute "showtooltip" to the element that should show a
> tooltip (only elements with this attibute will show tooltips):
>
> someWicketComponent.add(new AttributeModifier("showtooltip", true, new
> Model("true")));
>
> 9) Either add the content of the tooltip to the element in the html
> file, using the "title" attribute:
>
> 
>
> ...or add dynamic tooltip texts using an AttributeModifier:
>
> someWicketComponent.add(new AttributeModifier("title", true, new
> Model("Hi, I am a dynamic tooltip.")));
>
> 10) There is no step 10
>
> I hope this is helpful to somebody. Any improvements are very much
> encouraged, of course!
>
> - Johannes
>
>
>
>
> -
> 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
>
>
>
>


-- 
Download Wicket 1.2.1 now! - http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=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] Tooltips: A short tutorial (without contrib-dojo, 1.2 compatible)

2006-08-08 Thread Johannes Fahrenkrug

Hi!

I've asked so many questions on this list and got so many friendly and 
helpful answers, it's time to give something back.
This Saturday I migrated a big web application from Wicket 1.1.1 to 
1.2.1. I was using the contrib-dojo Tooltip class, which doesn't work 
with 1.2, so I had to find another solution. I found Igor's suggestions 
for tooltips at http://del.icio.us/ivaynberg/tooltip and chose to go 
with "Sweet Titles".


Sweet titles is great, but the problem is that it automatically attaches 
tooltips to all ,  and  tags (correct me if I'm wrong, 
but I am sure about the  tag). I didn't want that, though. I needed 
tooltips for checkboxes, and I needed to explicitly say which element 
should show a tooltip and which element shouldn't. So I altered the 
sweetTitles.js a bit and this is what I came up with:


1) Download SweetTitles from 
http://www.dustindiaz.com/downloads/sweet-titles.zip

2) Replace sweetTitles.js with the one I attached to this email.
3) At the moment the replacement sweetTitles.js should be able to add 
tooltips to the following elements: 'input', 'td', 'tr', 'textarea', 
'select', 'span', 'div', 'a','abbr','acronym'. If that's not enough (or 
too much), edit the "tipElements" array at the top of the file.
4) Put the 2 JavaScript files somewhere into your package (ie 
org.example.app.javascript)
5) Either put the CSS file into your package as well or add the contents 
to a CSS file you already use in your application
6) Add this to the head section of the html file you want to use 
tooltips in:



 
 


7) Add the JavaScript resources to your page:

add(new JavaScriptReference("addEventJs", new 
PackageResourceReference(YourApplication.get(), YourPage.class, 
"javascript/addEvent.js")));
add(new JavaScriptReference("sweetTitlesJs", new 
PackageResourceReference(YourApplication.get(), YourPage.class, 
"javascript/sweetTitles.js")));


8) Add the Attribute "showtooltip" to the element that should show a 
tooltip (only elements with this attibute will show tooltips):


someWicketComponent.add(new AttributeModifier("showtooltip", true, new 
Model("true")));


9) Either add the content of the tooltip to the element in the html 
file, using the "title" attribute:




...or add dynamic tooltip texts using an AttributeModifier:

someWicketComponent.add(new AttributeModifier("title", true, new 
Model("Hi, I am a dynamic tooltip.")));


10) There is no step 10

I hope this is helpful to somebody. Any improvements are very much 
encouraged, of course!


- Johannes
  



sweetTitles.js
Description: JavaScript source
-
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] Wicket J5EE combo?

2006-08-08 Thread Ayodeji Aladejebi
and one more thing, it wasnt jonas docs i used to get it running, jonas has not sent me the doc yet..i just managed to get it thru by myself..i have a stripped down NB5.5 project file here for download
http://dabar.cowblock.net/archives/000608.html#moreOn 8/7/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
yeah sure...
On 8/7/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:






Ayodeji,
 
would you mind to mail me the same doc/ proejct ? - and 
perhaps link it in the wicket-wiki, as i think there might be more interest in 
it - 
 
Best thanks and Regards,
 
Korbinian

  
  
  Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] Im Auftrag von 
  Ayodeji AladejebiGesendet: Montag, 7. August 2006 
  10:13An: Janos Cserep; 
  wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Wicket 
  J5EE combo?
  hi jonas,thanks for the earlier committment...i 
  have successfully put together a NB5.5 + Wicket + EJB3 + Glassfish together 
  and i was so excited seeing everything working smoothly. I really 
  really love this J5EE combo. 
  On 8/3/06, Janos 
  Cserep <[EMAIL PROTECTED] > 
  wrote:
  
I'll try to put something together tomorrow if it's ok for 
you...
2006/8/2, Ayodeji Aladejebi < 
[EMAIL PROTECTED]>:


  -- Forwarded message --From: Ayodeji Aladejebi 
  < 
  [EMAIL PROTECTED]>Date: Aug 2, 2006 7:07 AM Subject: Re: 
  [Wicket-user] Wicket J5EE combo?To: wicket-user@lists.sourceforge.net


  janos,really? yeah can i get a step by step guide...or maybe a 
  stripped down NB project zipped folder that i can download and try out but 
  i think the step by step stuff will be great. 
  
  On 8/2/06, Janos Cserep <[EMAIL PROTECTED]
> 
  wrote:
  
  
  
  
  
  who 
has successfully implemented these comboGlassfish + EJB3 + 
Wicket + NB5.5anyone with some quick start for 
  these
  I did, on three projects (a community portal-thingy for myself, and 
  internal applications for two companies) during the last 4 months. Would 
  you need a step-by-step guide or do you have any specific questions to 
  answer? I'm using a single .ear file approach with a separate .war 
  for the Wicket app and an EJB Module with the EJB3s and "dao" and "facade" 
  style stateless session beans. The web layer is calling the local 
  interface of the stateless beans which encapsulate most of the business 
  logic (leaving only the ui logic in the web app tier of the application). 
  
  Janos
  -Take 
  Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
  Techsay panel and you'll get the chance to share your opinions on IT 
  & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user 
  
  -- "It takes insanity to drive in 
  sanity" - MeAladejebi Ayodeji A., DabarObjects 
  SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 
  1780Web: www.dabarobjects.comCommunity:

www.cowblock.net 
  -- "It takes insanity to drive in 
  sanity" - MeAladejebi Ayodeji A., DabarObjects 
  SolutionsEmail: [EMAIL PROTECTED] 
  Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:

www.cowblock.net 
  
-- "It takes 
  insanity to drive in sanity" - MeAladejebi Ayodeji A., 
  DabarObjects SolutionsEmail: [EMAIL PROTECTED] 
  Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:

www.cowblock.net 


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 

[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:
www.cowblock.net

-- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 
[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:www.cowblock.net
-
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://se

Re: [Wicket-user] WicketTester migrating from 1.1 to 1.2

2006-08-08 Thread Johan Compagner
Why are you calling again render on the page?The page is already rendered by the call startPage()On 8/8/06, David Hansen <
[EMAIL PROTECTED]> wrote:For the last little while, we've been doing just fine under 
1.1 withthe following( for generation of email, the text of which is pulledfrom the response ): WicketTester tester = new WicketTester( ); StringResponse response = new StringResponse( );
 RequestCycle cycle = tester.createRequestCycle( ); tester.getWicketSession( ).setRequestCycle( cycle ); cycle.setResponse( response );
 Page page = tester.startPage( newOrderPlaced.XPageSource( order ) ); page.getSession( ).setRequestCycle( cycle ); page.render( );As part of our effort to migrate to 
1.2, however,Session#setRequestCycle( ) no longer exists, so we tried assumingthat WicketTester would create a RequestCycle and put it intothreadlocal where the result of tester.startPage( ) would have access
to it, but no dice.  page.getRequestCycle( ) returns null andpage.render( ) results in an NPE thrown in Page#configureResponse( )Any ways around this?  Bear in mind this is being run inside a workerthread completely outside the main wicket app, so pushing and popping
sessions won't work here.  Thanks.  - Dave-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