Re: [Wicket-user] Wicket & YUI
> There is a little project coming up for me that will require heavy use > of the yui drag and drop functions, so I'll do some checking some time > soon Good, more contributions! :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & YUI
Hi James, There is a little project coming up for me that will require heavy use of the yui drag and drop functions, so I'll do some checking some time soon and will let you know if i have any questions. Since this is gonna be my first encounter with yui i have no doubt i will come come up with some :) Maurice On 5/31/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > There is a wicket-contrib-yui project included in wicket-stuff on sourceforge: > http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui > > I've been working on it a little, mostly on the menu module. The drag > and drop is somewhat broken, and I haven't had time to look at it. > This may have happened when I updated the libs to 2.2.2. But the > slider and animation modules work fine. > > There is very little in the way of documentation, but there is a > wicket-contrib-yui-examples project that demos each module. > http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui-examples > > If you perform a mvn install on wicket-contrib-yui, then a mvn > jetty:run on wicket-contrib-yui-examples, you should be up and running > in a few minutes. > Once I get the menu working to my satisfaction, I will produce some > documentation. > > When I updated the libs, I created a YuiHeaderContributor that will > resolve dependencies for the module you want and include the necessary > files in the proper order (yui is way weaker than dojo in this > respect). > > A few months ago, a number of people expressed interest in > contributing, so if any of you are reading this, I would love to have > some help. In particular, i think it would be great if someone could > bring drag and drop back to life. I think it could use some pretty > heavy refactoring as well. Actually, there have been a lot of changes > in wicket since wcy was last worked on, so much of the project could > use "modernization". If you don't know where to start, respond to this > email and I can provide a few ideas. > > best, > jim > > On 5/31/07, howzat <[EMAIL PROTECTED]> wrote: > > > > Are there any examples/tutorials that re using YUI with Wicket. > > I see there is also a wicket YUI project but could not find much getting > > started help. > > -- > > View this message in context: > > http://www.nabble.com/Wicket---YUI-tf3848786.html#a10901677 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
Lowell, Sorry for my bad answers today, I was doing too many things at the same time, and now that I re-read your use case I think I understand better what you want. If I'm correct, you want to decorate a label with a star, and use some css class or id with that star and have the ability to turn the star off or on depending on a condition. Disregard the rest of the thread, because indeed Labels (or any component replacing their bodies) don't allow nested components. Your best choice is to use a behavior: label.add(new AbstractBehavior() { @Override public boolean isEnabled(Component component) { return myCondition(); } @Override public void onRendered(Component component) { Response response = component.getResponse(); response.write("*"); } }); The behavior writes directly to the response (after the component itself is rendered) and the visibility can be steered using isEnabled. Do note that if it wasn't for the fact that you're trying to decorate labels, you could have used Borders instead of a behavior. Not to say that this is better, just be aware of the alternative (in case you are annotating markupcontainers). Hope this helps, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to refresh a wicket.markup.html.panel.Panel
resultPanel.setOutputMarkupId(true); Frank On 6/1/07, Frank Bille <[EMAIL PROTECTED]> wrote: You have to call setOutputMarkupId(true) so the javascript can locate it in the HTML. Frank On 6/1/07, wicket0123 < [EMAIL PROTECTED]> wrote: > > > I have a web page that adds the panel as a component. On the same page, > I've > three ajax links. > > The goal is to clic on the links will add different components to the > panel > then refresh the panel on the page. It seems that I cannot do > that. Here's > my code: > > public class MyWegPage extends WebPage { > >// MyPanel is a class that extends wicket Panel >private MyPanel resultPanel; > > > > >public MyWebPage() { > addComponents(); >} > >private updatePanelComponent() { > // remove old panel, create new one, add it > remove(resultPanel); > resultPanel=new SearchResultPanel("searchResultPanel", list2)); > add(resultPanel); > } > >private void addComponents() { > > add(resultPanel=new SearchResultPanel("searchResultPanel", > list)); > > > // sort by poster > add(sortByPoster = new AjaxLink("sortByPoster") { > public void onClick(AjaxRequestTarget target) { > >... >updatePanelComponent(); > >// refresh the result panel >// but it doesn't refresh :( > target.addComponent(resultPanel); > > } > }); > > >} > > } > -- > View this message in context: > http://www.nabble.com/How-to-refresh-a-wicket.markup.html.panel.Panel-tf3849946.html#a10905569 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to refresh a wicket.markup.html.panel.Panel
You have to call setOutputMarkupId(true) so the javascript can locate it in the HTML. Frank On 6/1/07, wicket0123 <[EMAIL PROTECTED]> wrote: I have a web page that adds the panel as a component. On the same page, I've three ajax links. The goal is to clic on the links will add different components to the panel then refresh the panel on the page. It seems that I cannot do that. Here's my code: public class MyWegPage extends WebPage { // MyPanel is a class that extends wicket Panel private MyPanel resultPanel; public MyWebPage() { addComponents(); } private updatePanelComponent() { // remove old panel, create new one, add it remove(resultPanel); resultPanel=new SearchResultPanel("searchResultPanel", list2)); add(resultPanel); } private void addComponents() { add(resultPanel=new SearchResultPanel("searchResultPanel", list)); // sort by poster add(sortByPoster = new AjaxLink("sortByPoster") { public void onClick(AjaxRequestTarget target) { ... updatePanelComponent(); // refresh the result panel // but it doesn't refresh :( target.addComponent(resultPanel); } }); } } -- View this message in context: http://www.nabble.com/How-to-refresh-a-wicket.markup.html.panel.Panel-tf3849946.html#a10905569 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
> Some CSS gurus claim that CSS could be used to append or > prepend content to elements, so maybe you would be easier > off by doing just that and toggling the css class > programmatically. That would work. I tried googling how to do that, with no luck. Anybody have any pointers or links? lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Exception Strategy in 1.3
this sure seems familiar. didn't we have a nice plan to address this a few months back? Eelco Hillenius wrote: > > You can return the page you want to be displayed and have full > control. I know the API currently is non-obvious; I complained about > this in another thread. > > For example, this is what I'm using for the project I'm working on: > > > public Page onRuntimeException(Page page, RuntimeException e) { > > if (e instanceof AuthorizationException) { > return super.onRuntimeException(page, e); > } else if (e instanceof PageExpiredException) { > Ts4Session session = Ts4Session.get(); > if (session.isTemporary() || session.getUserId() == > null) { > // this was an actual session expiry > log > .info("session expired and > request cannot be honored, cycleId: " > + cycleId); > return super.onRuntimeException(page, e); > } else { > log.error("unable to find page for an active > session!"); > // hmmm, we have a logged in user, but the page > could not be > // found. Fall through to display an error page > or exception > // page > } > } > > if (Application.DEPLOYMENT.equals(Application.get() > .getConfigurationType())) { > return new ErrorPage(e, page, cycleId); > } else { > return new ExceptionErrorPage(e, page); > } > } > > eelco > >> Overriding the onRuntimeException does not work because you don't have >> access >> to the page that you are directing to. The page parameter in this method >> if >> the context from where the exception was thrown. >> >> -Craig >> >> >> >> Rüdiger_Schulz wrote: >> > >> > Make a subclass of WebRequestCycle, and override onRuntimeException(). >> > Works like a charm for me. >> > >> > 2007/5/22, craigdd <[EMAIL PROTECTED]>: >> >> >> >> True the wicket session is mandatory, thanks for pointing that out. >> >> >> >> As for my question though, I'm looking for the best way to implement >> this >> >> strategy. I could override the respond method in RequestCycle, but >> I'd >> >> have >> >> to rewrite the given logic, which most of it I want. I'm wondering if >> >> there >> >> are any other hooks that I can implement that leaves the respond >> method >> >> alone but have the exception and internal page available. >> >> >> >> -Craig >> >> >> >> >> >> >> >> Mr Mean wrote: >> >> > >> >> > As far as i know the wicket session is mandatory in wicket but that >> >> > does not mean you have to use it to store information. Other then >> that >> >> > i see no reason why your proposed strategy should not work. >> >> > >> >> > Maurice >> >> > >> >> > On 5/22/07, craigdd <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Basically what I want to do is set the internal error page to my >> own >> >> >> internal >> >> >> page, i.e. my login page, and add a message from the a resource >> >> bundle, >> >> >> .properties file, that includes an error code that is generated >> from >> >> an >> >> >> internal RuntimeException. Another requirement is that a Session >> is >> >> >> optional, meaning that this should work with or without a Session. >> >> >> >> >> >> -Craig >> >> >> >> >> >> >> >> >> craigdd wrote: >> >> >> > >> >> >> > What is the best way to implement your own exception strategy in >> >> wicket >> >> >> > 1.3? I want to add some added logic to my application when an >> >> >> unexcepted >> >> >> > exception occurs. During this added logic I want a handle on the >> >> page >> >> >> > that is being redirected to, ie the internal error page. >> >> >> > >> >> >> > Thanks >> >> >> > Craig >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008 >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> - >> >> >> This SF.net email is sponsored by DB2 Express >> >> >> Download DB2 Express C - the FREE version of DB2 express and take >> >> >> control of your XML. No limits. Just data. Click to get it now. >> >> >> http://sourceforge.net/powerbar/db2/ >> >> >> ___ >> >> >> Wicket-user mailing list >> >> >> Wicket-user@lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> > >> >> > >> >> >> - >> >> > This
Re: [Wicket-user] Is it possible to remove something from a page?
On Thu, 31 May 2007, Lowell Kirsh wrote: > Basically what I want to do is from this markup: > > * Is this legal HTML? You should maybe use e.g. wicket:container in place of the inner span, I think that span cannot contain container tags. Some CSS gurus claim that CSS could be used to append or prepend content to elements, so maybe you would be easier off by doing just that and toggling the css class programmatically. However I don't see a problem with your other approach. If you find the markup confusing, you can always leave an example of the "real" markup inside wicket:preview tags. - Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to refresh a wicket.markup.html.panel.Panel
I have a web page that adds the panel as a component. On the same page, I've three ajax links. The goal is to clic on the links will add different components to the panel then refresh the panel on the page. It seems that I cannot do that. Here's my code: public class MyWegPage extends WebPage { // MyPanel is a class that extends wicket Panel private MyPanel resultPanel; public MyWebPage() { addComponents(); } private updatePanelComponent() { // remove old panel, create new one, add it remove(resultPanel); resultPanel=new SearchResultPanel("searchResultPanel", list2)); add(resultPanel); } private void addComponents() { add(resultPanel=new SearchResultPanel("searchResultPanel", list)); // sort by poster add(sortByPoster = new AjaxLink("sortByPoster") { public void onClick(AjaxRequestTarget target) { ... updatePanelComponent(); // refresh the result panel // but it doesn't refresh :( target.addComponent(resultPanel); } }); } } -- View this message in context: http://www.nabble.com/How-to-refresh-a-wicket.markup.html.panel.Panel-tf3849946.html#a10905569 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
Oh, if this helps, what I want could be achieved with this: TEXT * and then doing something like: foobar = new MarkupContainer("foobar"); foobar.add(new Label("text", ...)) foobar.add(new WebMarkupContainer("removeMe") { public boolean isVisible() { return sometimesFalse(); } }); add(foobar); but I find the template html to be less readable in this case and was hoping to not have to do it this way. Lowell On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > Basically what I want to do is from this markup: > > * > > I'd like to replace 'TEXT' with some text from my java code, and would > like to set the visibility of the 'star' span from within my code. > > Replacing TEXT seems similar to what a Label does, but a Label won't > support the embedded 'star' span. So I tried to mimic Label my > creating my own component (I tried WebMarkupContainer) and mimic the > behavior of Label, but also allow for the embedded component. So I > tried to override the onComponentTagBody() method with one that calls > replaceComponentTagBody() but that didn't work because that removed > the 'star' span. > > So what I'd really like to do would be to create my custom component > and somehow tell it to replace the text of its body (ie. the 'TEXT') > but to do so without removing child components. > > Make sense? > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > And which Panel method do I need to call to set its text without > > removing the star Component? > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > LabelWithStar should extend Panel. > > > > > > Eelco > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > But I get the following error: > > > > > > > > ...WicketMessage: Expected close tag for '' > > > > Possible attempt to embed component(s) '' in > > > > the body of this component which discards its body > > > > > > > > Doesn't that mean my approach is flawed? > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > Then you should be able to use that label idea and embed it in your > > > > > component. > > > > > > > > > > Eelco > > > > > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > Once again I left out a detail - the reason I have the span is that > > > > > > I > > > > > > want to apply a CSS class to the star. Also, I like to have the star > > > > > > as a child of the other component, because that way I don't have to > > > > > > assign unique names to each star, and also, I can package the text > > > > > > and > > > > > > the star as one object type (or just use a single method to deal > > > > > > with > > > > > > both at once) so that I don't have duplicated code. > > > > > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > > > My use case is actually turning out slightly more complex than I > > > > > > > > posted. What I actually have is: > > > > > > > > > > > > > > > > TEXT* > > > > > > > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which > > > > > > > > doesn't > > > > > > > > work) looks like: > > > > > > > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > > > > { > > > > > > > > public LabelWithStar(String id, String model, final > > > > > > > > boolean > > > > > > > > starIsVisible) > > > > > > > > { > > > > > > > > super(id, new Model(model)); > > > > > > > > this.add(new WebMarkupContainer("star") { > > > > > > > > public boolean isVisible() > > > > > > > > { > > > > > > > > return starIsVisible; > > > > > > > > } > > > > > > > > }); > > > > > > > > } > > > > > > > > > > > > > > > > protected void onComponentTagBody(MarkupStream > > > > > > > > markupStream, > > > > > > > > ComponentTag openTag) > > > > > > > > { > > > > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > > > > getModelObjectAsString()); > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > > > > removes the span with the star. How should I be doing this > > > > > > > > instead? > > > > > > > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > > > > > > > Alternatively, you can do something like > > > > > > > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > > > > > > > @Override > > > > > > > public Object getObject() { > > > > > > > return isStarVisible() ? "*" : ""; > > > > > > > } > > > > > > > })); > > > > > > > } > > > > > > > > > > > > > > > > > > > > > Eelco > > > > > > > > > > > > > > - > > > >
Re: [Wicket-user] Is it possible to remove something from a page?
Basically what I want to do is from this markup: * I'd like to replace 'TEXT' with some text from my java code, and would like to set the visibility of the 'star' span from within my code. Replacing TEXT seems similar to what a Label does, but a Label won't support the embedded 'star' span. So I tried to mimic Label my creating my own component (I tried WebMarkupContainer) and mimic the behavior of Label, but also allow for the embedded component. So I tried to override the onComponentTagBody() method with one that calls replaceComponentTagBody() but that didn't work because that removed the 'star' span. So what I'd really like to do would be to create my custom component and somehow tell it to replace the text of its body (ie. the 'TEXT') but to do so without removing child components. Make sense? On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > And which Panel method do I need to call to set its text without > removing the star Component? > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > LabelWithStar should extend Panel. > > > > Eelco > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > But I get the following error: > > > > > > ...WicketMessage: Expected close tag for '' > > > Possible attempt to embed component(s) '' in > > > the body of this component which discards its body > > > > > > Doesn't that mean my approach is flawed? > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > Then you should be able to use that label idea and embed it in your > > > > component. > > > > > > > > Eelco > > > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > Once again I left out a detail - the reason I have the span is that I > > > > > want to apply a CSS class to the star. Also, I like to have the star > > > > > as a child of the other component, because that way I don't have to > > > > > assign unique names to each star, and also, I can package the text and > > > > > the star as one object type (or just use a single method to deal with > > > > > both at once) so that I don't have duplicated code. > > > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > > My use case is actually turning out slightly more complex than I > > > > > > > posted. What I actually have is: > > > > > > > > > > > > > > TEXT* > > > > > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which > > > > > > > doesn't > > > > > > > work) looks like: > > > > > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > > > { > > > > > > > public LabelWithStar(String id, String model, final > > > > > > > boolean > > > > > > > starIsVisible) > > > > > > > { > > > > > > > super(id, new Model(model)); > > > > > > > this.add(new WebMarkupContainer("star") { > > > > > > > public boolean isVisible() > > > > > > > { > > > > > > > return starIsVisible; > > > > > > > } > > > > > > > }); > > > > > > > } > > > > > > > > > > > > > > protected void onComponentTagBody(MarkupStream > > > > > > > markupStream, > > > > > > > ComponentTag openTag) > > > > > > > { > > > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > > > getModelObjectAsString()); > > > > > > > } > > > > > > > } > > > > > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > > > removes the span with the star. How should I be doing this > > > > > > > instead? > > > > > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > > > > > Alternatively, you can do something like > > > > > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > > > > > @Override > > > > > > public Object getObject() { > > > > > > return isStarVisible() ? "*" : ""; > > > > > > } > > > > > > })); > > > > > > } > > > > > > > > > > > > > > > > > > Eelco > > > > > > > > > > > > - > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > ___ > > > > > > Wicket-user mailing list > > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your X
Re: [Wicket-user] Is it possible to remove something from a page?
And which Panel method do I need to call to set its text without removing the star Component? On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > LabelWithStar should extend Panel. > > Eelco > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > But I get the following error: > > > > ...WicketMessage: Expected close tag for '' > > Possible attempt to embed component(s) '' in > > the body of this component which discards its body > > > > Doesn't that mean my approach is flawed? > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > Then you should be able to use that label idea and embed it in your > > > component. > > > > > > Eelco > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > Once again I left out a detail - the reason I have the span is that I > > > > want to apply a CSS class to the star. Also, I like to have the star > > > > as a child of the other component, because that way I don't have to > > > > assign unique names to each star, and also, I can package the text and > > > > the star as one object type (or just use a single method to deal with > > > > both at once) so that I don't have duplicated code. > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > My use case is actually turning out slightly more complex than I > > > > > > posted. What I actually have is: > > > > > > > > > > > > TEXT* > > > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > > > > > work) looks like: > > > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > > { > > > > > > public LabelWithStar(String id, String model, final boolean > > > > > > starIsVisible) > > > > > > { > > > > > > super(id, new Model(model)); > > > > > > this.add(new WebMarkupContainer("star") { > > > > > > public boolean isVisible() > > > > > > { > > > > > > return starIsVisible; > > > > > > } > > > > > > }); > > > > > > } > > > > > > > > > > > > protected void onComponentTagBody(MarkupStream markupStream, > > > > > > ComponentTag openTag) > > > > > > { > > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > > getModelObjectAsString()); > > > > > > } > > > > > > } > > > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > > removes the span with the star. How should I be doing this instead? > > > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > > > Alternatively, you can do something like > > > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > > > @Override > > > > > public Object getObject() { > > > > > return isStarVisible() ? "*" : ""; > > > > > } > > > > > })); > > > > > } > > > > > > > > > > > > > > > Eelco > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2
Re: [Wicket-user] Is it possible to remove something from a page?
Well, I need some way of setting the text from within my java code so i don't see how I could get away without it. On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Actually, do you need at all? > > Eelco > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > LabelWithStar should extend Panel. > > > > Eelco > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > But I get the following error: > > > > > > ...WicketMessage: Expected close tag for '' > > > Possible attempt to embed component(s) '' in > > > the body of this component which discards its body > > > > > > Doesn't that mean my approach is flawed? > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > Then you should be able to use that label idea and embed it in your > > > > component. > > > > > > > > Eelco > > > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > Once again I left out a detail - the reason I have the span is that I > > > > > want to apply a CSS class to the star. Also, I like to have the star > > > > > as a child of the other component, because that way I don't have to > > > > > assign unique names to each star, and also, I can package the text and > > > > > the star as one object type (or just use a single method to deal with > > > > > both at once) so that I don't have duplicated code. > > > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > > My use case is actually turning out slightly more complex than I > > > > > > > posted. What I actually have is: > > > > > > > > > > > > > > TEXT* > > > > > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which > > > > > > > doesn't > > > > > > > work) looks like: > > > > > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > > > { > > > > > > > public LabelWithStar(String id, String model, final > > > > > > > boolean > > > > > > > starIsVisible) > > > > > > > { > > > > > > > super(id, new Model(model)); > > > > > > > this.add(new WebMarkupContainer("star") { > > > > > > > public boolean isVisible() > > > > > > > { > > > > > > > return starIsVisible; > > > > > > > } > > > > > > > }); > > > > > > > } > > > > > > > > > > > > > > protected void onComponentTagBody(MarkupStream > > > > > > > markupStream, > > > > > > > ComponentTag openTag) > > > > > > > { > > > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > > > getModelObjectAsString()); > > > > > > > } > > > > > > > } > > > > > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > > > removes the span with the star. How should I be doing this > > > > > > > instead? > > > > > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > > > > > Alternatively, you can do something like > > > > > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > > > > > @Override > > > > > > public Object getObject() { > > > > > > return isStarVisible() ? "*" : ""; > > > > > > } > > > > > > })); > > > > > > } > > > > > > > > > > > > > > > > > > Eelco > > > > > > > > > > > > - > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > ___ > > > > > > Wicket-user mailing list > > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@l
Re: [Wicket-user] Is it possible to remove something from a page?
Actually, do you need at all? Eelco On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > LabelWithStar should extend Panel. > > Eelco > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > But I get the following error: > > > > ...WicketMessage: Expected close tag for '' > > Possible attempt to embed component(s) '' in > > the body of this component which discards its body > > > > Doesn't that mean my approach is flawed? > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > Then you should be able to use that label idea and embed it in your > > > component. > > > > > > Eelco > > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > Once again I left out a detail - the reason I have the span is that I > > > > want to apply a CSS class to the star. Also, I like to have the star > > > > as a child of the other component, because that way I don't have to > > > > assign unique names to each star, and also, I can package the text and > > > > the star as one object type (or just use a single method to deal with > > > > both at once) so that I don't have duplicated code. > > > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > > My use case is actually turning out slightly more complex than I > > > > > > posted. What I actually have is: > > > > > > > > > > > > TEXT* > > > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > > > > > work) looks like: > > > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > > { > > > > > > public LabelWithStar(String id, String model, final boolean > > > > > > starIsVisible) > > > > > > { > > > > > > super(id, new Model(model)); > > > > > > this.add(new WebMarkupContainer("star") { > > > > > > public boolean isVisible() > > > > > > { > > > > > > return starIsVisible; > > > > > > } > > > > > > }); > > > > > > } > > > > > > > > > > > > protected void onComponentTagBody(MarkupStream markupStream, > > > > > > ComponentTag openTag) > > > > > > { > > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > > getModelObjectAsString()); > > > > > > } > > > > > > } > > > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > > removes the span with the star. How should I be doing this instead? > > > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > > > Alternatively, you can do something like > > > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > > > @Override > > > > > public Object getObject() { > > > > > return isStarVisible() ? "*" : ""; > > > > > } > > > > > })); > > > > > } > > > > > > > > > > > > > > > Eelco > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ >
Re: [Wicket-user] Is it possible to remove something from a page?
LabelWithStar should extend Panel. Eelco On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > But I get the following error: > > ...WicketMessage: Expected close tag for '' > Possible attempt to embed component(s) '' in > the body of this component which discards its body > > Doesn't that mean my approach is flawed? > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Then you should be able to use that label idea and embed it in your > > component. > > > > Eelco > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > Once again I left out a detail - the reason I have the span is that I > > > want to apply a CSS class to the star. Also, I like to have the star > > > as a child of the other component, because that way I don't have to > > > assign unique names to each star, and also, I can package the text and > > > the star as one object type (or just use a single method to deal with > > > both at once) so that I don't have duplicated code. > > > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > > My use case is actually turning out slightly more complex than I > > > > > posted. What I actually have is: > > > > > > > > > > TEXT* > > > > > > > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > > > > work) looks like: > > > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > > { > > > > > public LabelWithStar(String id, String model, final boolean > > > > > starIsVisible) > > > > > { > > > > > super(id, new Model(model)); > > > > > this.add(new WebMarkupContainer("star") { > > > > > public boolean isVisible() > > > > > { > > > > > return starIsVisible; > > > > > } > > > > > }); > > > > > } > > > > > > > > > > protected void onComponentTagBody(MarkupStream markupStream, > > > > > ComponentTag openTag) > > > > > { > > > > > replaceComponentTagBody(markupStream, openTag, > > > > > getModelObjectAsString()); > > > > > } > > > > > } > > > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > > removes the span with the star. How should I be doing this instead? > > > > > > > > You mean you need to have the span? Why is that? > > > > > > > > Alternatively, you can do something like > > > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > > > @Override > > > > public Object getObject() { > > > > return isStarVisible() ? "*" : ""; > > > > } > > > > })); > > > > } > > > > > > > > > > > > Eelco > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your X
Re: [Wicket-user] Is it possible to remove something from a page?
But I get the following error: ...WicketMessage: Expected close tag for '' Possible attempt to embed component(s) '' in the body of this component which discards its body Doesn't that mean my approach is flawed? On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Then you should be able to use that label idea and embed it in your component. > > Eelco > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > Once again I left out a detail - the reason I have the span is that I > > want to apply a CSS class to the star. Also, I like to have the star > > as a child of the other component, because that way I don't have to > > assign unique names to each star, and also, I can package the text and > > the star as one object type (or just use a single method to deal with > > both at once) so that I don't have duplicated code. > > > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > My use case is actually turning out slightly more complex than I > > > > posted. What I actually have is: > > > > > > > > TEXT* > > > > > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > > > work) looks like: > > > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > > { > > > > public LabelWithStar(String id, String model, final boolean > > > > starIsVisible) > > > > { > > > > super(id, new Model(model)); > > > > this.add(new WebMarkupContainer("star") { > > > > public boolean isVisible() > > > > { > > > > return starIsVisible; > > > > } > > > > }); > > > > } > > > > > > > > protected void onComponentTagBody(MarkupStream markupStream, > > > > ComponentTag openTag) > > > > { > > > > replaceComponentTagBody(markupStream, openTag, > > > > getModelObjectAsString()); > > > > } > > > > } > > > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > > removes the span with the star. How should I be doing this instead? > > > > > > You mean you need to have the span? Why is that? > > > > > > Alternatively, you can do something like > > > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > > > @Override > > > public Object getObject() { > > > return isStarVisible() ? "*" : ""; > > > } > > > })); > > > } > > > > > > > > > Eelco > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
Then you should be able to use that label idea and embed it in your component. Eelco On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > Once again I left out a detail - the reason I have the span is that I > want to apply a CSS class to the star. Also, I like to have the star > as a child of the other component, because that way I don't have to > assign unique names to each star, and also, I can package the text and > the star as one object type (or just use a single method to deal with > both at once) so that I don't have duplicated code. > > On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > My use case is actually turning out slightly more complex than I > > > posted. What I actually have is: > > > > > > TEXT* > > > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > > work) looks like: > > > > > >private static class LabelWithStar extends WebMarkupContainer > > > { > > > public LabelWithStar(String id, String model, final boolean > > > starIsVisible) > > > { > > > super(id, new Model(model)); > > > this.add(new WebMarkupContainer("star") { > > > public boolean isVisible() > > > { > > > return starIsVisible; > > > } > > > }); > > > } > > > > > > protected void onComponentTagBody(MarkupStream markupStream, > > > ComponentTag openTag) > > > { > > > replaceComponentTagBody(markupStream, openTag, > > > getModelObjectAsString()); > > > } > > > } > > > > > > This doesn't work because the call to replaceComponentTagBody() > > > removes the span with the star. How should I be doing this instead? > > > > You mean you need to have the span? Why is that? > > > > Alternatively, you can do something like > > > > add(new Label("star", new AbstractReadOnlyModel() { > > > > @Override > > public Object getObject() { > > return isStarVisible() ? "*" : ""; > > } > > })); > > } > > > > > > Eelco > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] creating a tree - not using the wicket tree classes
At a glance, that looks like what I want. Thanks. On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Take a look at the nested example and see if that helps you. > > Eelco > > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > I'd like to create a tree on a page and have something like this in my > > template: > > > > Tree Goes Here > > > > and have the rendered result look something along the lines of: > > > > > > foobar > > > > baz > > > > baz2 > > baz3 > > > > > > bang > > > > > > > > > > How do I do this? > > > > Thanks, > > Lowell > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
Once again I left out a detail - the reason I have the span is that I want to apply a CSS class to the star. Also, I like to have the star as a child of the other component, because that way I don't have to assign unique names to each star, and also, I can package the text and the star as one object type (or just use a single method to deal with both at once) so that I don't have duplicated code. On 5/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > My use case is actually turning out slightly more complex than I > > posted. What I actually have is: > > > > TEXT* > > > > and I'd like to sometimes remove the star. So my java (which doesn't > > work) looks like: > > > >private static class LabelWithStar extends WebMarkupContainer > > { > > public LabelWithStar(String id, String model, final boolean > > starIsVisible) > > { > > super(id, new Model(model)); > > this.add(new WebMarkupContainer("star") { > > public boolean isVisible() > > { > > return starIsVisible; > > } > > }); > > } > > > > protected void onComponentTagBody(MarkupStream markupStream, > > ComponentTag openTag) > > { > > replaceComponentTagBody(markupStream, openTag, > > getModelObjectAsString()); > > } > > } > > > > This doesn't work because the call to replaceComponentTagBody() > > removes the span with the star. How should I be doing this instead? > > You mean you need to have the span? Why is that? > > Alternatively, you can do something like > > add(new Label("star", new AbstractReadOnlyModel() { > > @Override > public Object getObject() { > return isStarVisible() ? "*" : ""; > } > })); > } > > > Eelco > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] creating a tree - not using the wicket tree classes
Take a look at the nested example and see if that helps you. Eelco On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > I'd like to create a tree on a page and have something like this in my > template: > > Tree Goes Here > > and have the rendered result look something along the lines of: > > > foobar > > baz > > baz2 > baz3 > > > bang > > > > > How do I do this? > > Thanks, > Lowell > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Parameter access at Page creation not consistent with request object
I am using a mounted, bookmarkable page. I am passing in a parameter using the url syntax. This works fine when I access it via the Parameter object passed in at Page creation time. I would also expect that the parameter would be accessible via the request object and the parameter is not visible. I am trying to access in the getVariation() method I have overridden. Is this a bug or expected behavior. Any guidance would be appreciated. -- View this message in context: http://www.nabble.com/Parameter-access-at-Page-creation-not-consistent-with-request-object-tf3849735.html#a10904836 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
On 5/31/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > My use case is actually turning out slightly more complex than I > posted. What I actually have is: > > TEXT* > > and I'd like to sometimes remove the star. So my java (which doesn't > work) looks like: > >private static class LabelWithStar extends WebMarkupContainer > { > public LabelWithStar(String id, String model, final boolean > starIsVisible) > { > super(id, new Model(model)); > this.add(new WebMarkupContainer("star") { > public boolean isVisible() > { > return starIsVisible; > } > }); > } > > protected void onComponentTagBody(MarkupStream markupStream, > ComponentTag openTag) > { > replaceComponentTagBody(markupStream, openTag, > getModelObjectAsString()); > } > } > > This doesn't work because the call to replaceComponentTagBody() > removes the span with the star. How should I be doing this instead? You mean you need to have the span? Why is that? Alternatively, you can do something like add(new Label("star", new AbstractReadOnlyModel() { @Override public Object getObject() { return isStarVisible() ? "*" : ""; } })); } Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
My use case is actually turning out slightly more complex than I posted. What I actually have is: TEXT* and I'd like to sometimes remove the star. So my java (which doesn't work) looks like: private static class LabelWithStar extends WebMarkupContainer { public LabelWithStar(String id, String model, final boolean starIsVisible) { super(id, new Model(model)); this.add(new WebMarkupContainer("star") { public boolean isVisible() { return starIsVisible; } }); } protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, getModelObjectAsString()); } } This doesn't work because the call to replaceComponentTagBody() removes the span with the star. How should I be doing this instead? Thanks Lowell On 5/30/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Wed, 30 May 2007, Lowell Kirsh wrote: > > I making a web page which contains some markup that I'd like to remove > > (sometimes). I imagine it would look like: > > > > ... > > Hello World > > ... > > > > Is it possible to remove this markup? > > new WebMarkupContainer("removeMe") { > protected void onBeforeRender() { > super.onBeforeRender(); > setVisible(sometimesFalse()); > } > } > > - Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oyhttp://www.ri.fi/ > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Acegi ?
hi johan, > hmm then i have to stopp working on it right now... > because i am already passed the hour again good work! thanx for doing so! have you seen my example how to use acegi without using filters? best regards, --- jan. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Prototype scoped Spring beans
Hello everybody, I already tried to chat on ##wicket about this, but it's probably too complex for IRC... I'm using Wicket 1.3.0 snapshot and Spring 2.0 on JDK6 / Jetty. For a more complex form I wanted to use a "stateful" Springbean, to which I applied scope="prototype". The idea is to have one bean instance for every Form instance. I would access the bean with PropertyModels and direct method calls during construction (i.e. setting initial state from input parameters) and during events, which would alter the state. I inject the bean into the Form with @SpringBean annotation. This works somehow, but sometimes, especially after using the backbutton, I had the problem that the internal state was reset. So I analyzed the stack in the constructor of the bean implementation, and found out that it was called twice during construction of the Form. First, during the super() call, and then again in the next line during a method call on that bean. I appended both stacktraces below. The proxy itself does not change. This happens again after going back and e.g. submitting again. This results in a NPE, because the internal state is reset. I understand from reading the mailing list that the Wicket-Proxy does nothing but a lookup in the Application context, and does not know or care about spring scope. And here I'm a little stuck. I am already considering to put the state into the Form, and make the Bean a singleton without any internal state. As that would mean some heavy refactoring, I would prefer a way where the Spring acces would work as I want. Or is this a wrong way altogether? thanks in advance for any comments. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] creating a tree - not using the wicket tree classes
I'd like to create a tree on a page and have something like this in my template: Tree Goes Here and have the rendered result look something along the lines of: foobar baz baz2 baz3 bang How do I do this? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Image on the fly
* Johannes Schneider: > Of course I don't want to add the mail address as url > parameter. Therefore I have to store the address as session > parameter. You can still use PageParameters, but maybe it would be safer to use CryptedUrlWebRequestCodingStrategy so that email addresses do not appear in clear. Something like: /app/imageFactory?email=XD45K86 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & YUI
Hi James, Could you please put the examples online? I'd like to give 'em a shot but I'm too lazy to set it up by myself. Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping German Umlauts
* Johannes Schneider: > can anyone tell me how I can escape German umlauts when using > TextFields or Labels? Component.setEscapeModelStrings( true) > does not replace them. And I really don't want to create a > custom IModel for every component I add Have a look at Strings#escapeMarkup(String, boolean, boolean) The last argument is called convertToHtmlUnicodeEscapes and by reading the Javadoc I think it does what you want. But now, that doesn't mean you can use it from the Component or FormComponent class. We need to find an acceptable solution to expose this feature to the Component level. What do you propose? Just curious, why do you want to escape those characters? Don't you have your page encoding correctly set? It should display correctly, I for one wouldn't need to escape accented characters in the first place. Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Well, it should be much easier to get the AjaxBehavior that is making the PagingNavigatorLink act like an ajax link, so you can decorate the onclick in the manner you suggested. You can create a jira issue here http://issues.apache.org/jira/browse/WICKET Describe your problem, what would make an elegant solution, and mark it as an enhancement. best, jim On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > I doubt I've enhanced anything. This is a rather roundabout solution at > best...You mean edit the Wicket source and post it somewhere? > > > > > James McLaughlin-3 wrote: > > > >>From what I can tell, since it is not really an ajax link but rather a > > regular link with an ajax behavior, the ajax behavior needs to prevent > > the onclick from bubbling to the anchors clickhandler. Your > > ajaxcalldecorator will need to do that as well. It would be great if > > once you are done you could create an rfe in jira with the > > enhancements that will make this process easier. > > > > jim > > > > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> > >> Scratch that, the solution below causes a page refresh... > >> getAjaxCallDecorator() returns new CancelEventIfNoAjaxDecorator() it > >> works > >> fine, but if it returns the defined decorator, the page refreshes after > >> the > >> ajax call is complete. Why would that be? Should decorator extend > >> CancelEventIfNoAjaxDecorator?? > >> > >> > >> > >> > >> Tremelune wrote: > >> > > >> > Well, that works...I think this would be made easier if there were a > >> > getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it > >> > stands, there are a few methods in my class that were copied/pasted > >> > directly from AjaxPagingNavigationLink: > >> > > >> > public class DecoratableAjaxPagingNavigationIncrementLink extends > >> > PagingNavigationIncrementLink > >> > implements IAjaxLink { > >> > > >> > public DecoratableAjaxPagingNavigationIncrementLink(final String id, > >> > final IPageable pageable, > >> > final int > >> increment) > >> > { > >> > super(id, pageable, increment); > >> > > >> > //Adds more text to onclick attribute > >> > final AjaxCallDecorator decorator = new AjaxCallDecorator() { > >> > public CharSequence decorateScript(final CharSequence > >> charSequence) > >> > { > >> > CharSequence ajaxCall = super.decorateScript(charSequence); > >> > return ajaxCall + "more onclick stuff"; > >> > } > >> > }; > >> > > >> > //Adds onclick attribute > >> > final AjaxPagingNavigationBehavior behavior = > >> > new AjaxPagingNavigationBehavior(this, pageable, "onclick") { > >> > protected IAjaxCallDecorator getAjaxCallDecorator() { > >> > return decorator; > >> > } > >> > }; > >> > > >> > //The rest of this class is direct from AjaxPagingNavigatorLink > >> > > >> > add(behavior); > >> > setOutputMarkupId(true); > >> > } > >> > > >> > > >> > protected String getEventHandler(String defaultHandler) { > >> > return defaultHandler; > >> > } > >> > > >> > public void onClick() { > >> > onClick(null); > >> > setRedirect(false); > >> > setResponsePage(getPage()); > >> > } > >> > > >> > public void onClick(AjaxRequestTarget target) { > >> > pageable.setCurrentPage(getPageNumber()); > >> > } > >> > } > >> > > >> -- > >> View this message in context: > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901080 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901775 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE ver
Re: [Wicket-user] Creating Image on the fly
> I would like to create an image on the fly (I try to avoid posting mail > addresses as text). See for instance the images exaple in wicket-examples. > Can I use Wicket to register a > Page/Component/Servlet under a special URL? Either as an image component or - if you want an image to be available outside of pages - you need to make it a shared resource. > Of course I don't want to add the mail address as url parameter. > Therefore I have to store the address as session parameter. > What is the Wicket way to store such informations within the session? > Should I simply store the mail within a map in the session (and use the > key as parameter)? Just pass it as a parameter to the component or resource. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & YUI
There is a wicket-contrib-yui project included in wicket-stuff on sourceforge: http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui I've been working on it a little, mostly on the menu module. The drag and drop is somewhat broken, and I haven't had time to look at it. This may have happened when I updated the libs to 2.2.2. But the slider and animation modules work fine. There is very little in the way of documentation, but there is a wicket-contrib-yui-examples project that demos each module. http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-yui-examples If you perform a mvn install on wicket-contrib-yui, then a mvn jetty:run on wicket-contrib-yui-examples, you should be up and running in a few minutes. Once I get the menu working to my satisfaction, I will produce some documentation. When I updated the libs, I created a YuiHeaderContributor that will resolve dependencies for the module you want and include the necessary files in the proper order (yui is way weaker than dojo in this respect). A few months ago, a number of people expressed interest in contributing, so if any of you are reading this, I would love to have some help. In particular, i think it would be great if someone could bring drag and drop back to life. I think it could use some pretty heavy refactoring as well. Actually, there have been a lot of changes in wicket since wcy was last worked on, so much of the project could use "modernization". If you don't know where to start, respond to this email and I can provide a few ideas. best, jim On 5/31/07, howzat <[EMAIL PROTECTED]> wrote: > > Are there any examples/tutorials that re using YUI with Wicket. > I see there is also a wicket YUI project but could not find much getting > started help. > -- > View this message in context: > http://www.nabble.com/Wicket---YUI-tf3848786.html#a10901677 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Applying TextTempate on the component's markup
* James McLaughlin: > Have you had a look at the VelocityPanel in wicket-velocity? If not, > it will probably do what you are looking for. Indeed, and have a close look at parseGeneratedMarkup() -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] form silently failing to load data when template and pojo are different
* Florian Hehlen: > I have just found that if a form contains an type="text"/> and the corresponding pojo contains myForm.add(new > TextAre(...)) then wicket fails to load data into the form but > it will correctly read the data onSubmit. > > is this a known bug it sure took me a long time to resolve > it. I just fixed it by adding a check for the "textarea" tag. Please open an issue in JIRA when you encounter that kind of problems. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Creating Image on the fly
Hi, I would like to create an image on the fly (I try to avoid posting mail addresses as text). Can I use Wicket to register a Page/Component/Servlet under a special URL? Of course I don't want to add the mail address as url parameter. Therefore I have to store the address as session parameter. What is the Wicket way to store such informations within the session? Should I simply store the mail within a map in the session (and use the key as parameter)? Thanks, Johannes Schneider -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info smime.p7s Description: S/MIME Cryptographic Signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
I doubt I've enhanced anything. This is a rather roundabout solution at best...You mean edit the Wicket source and post it somewhere? James McLaughlin-3 wrote: > >>From what I can tell, since it is not really an ajax link but rather a > regular link with an ajax behavior, the ajax behavior needs to prevent > the onclick from bubbling to the anchors clickhandler. Your > ajaxcalldecorator will need to do that as well. It would be great if > once you are done you could create an rfe in jira with the > enhancements that will make this process easier. > > jim > > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: >> >> Scratch that, the solution below causes a page refresh... >> getAjaxCallDecorator() returns new CancelEventIfNoAjaxDecorator() it >> works >> fine, but if it returns the defined decorator, the page refreshes after >> the >> ajax call is complete. Why would that be? Should decorator extend >> CancelEventIfNoAjaxDecorator?? >> >> >> >> >> Tremelune wrote: >> > >> > Well, that works...I think this would be made easier if there were a >> > getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it >> > stands, there are a few methods in my class that were copied/pasted >> > directly from AjaxPagingNavigationLink: >> > >> > public class DecoratableAjaxPagingNavigationIncrementLink extends >> > PagingNavigationIncrementLink >> > implements IAjaxLink { >> > >> > public DecoratableAjaxPagingNavigationIncrementLink(final String id, >> > final IPageable pageable, >> > final int >> increment) >> > { >> > super(id, pageable, increment); >> > >> > //Adds more text to onclick attribute >> > final AjaxCallDecorator decorator = new AjaxCallDecorator() { >> > public CharSequence decorateScript(final CharSequence >> charSequence) >> > { >> > CharSequence ajaxCall = super.decorateScript(charSequence); >> > return ajaxCall + "more onclick stuff"; >> > } >> > }; >> > >> > //Adds onclick attribute >> > final AjaxPagingNavigationBehavior behavior = >> > new AjaxPagingNavigationBehavior(this, pageable, "onclick") { >> > protected IAjaxCallDecorator getAjaxCallDecorator() { >> > return decorator; >> > } >> > }; >> > >> > //The rest of this class is direct from AjaxPagingNavigatorLink >> > >> > add(behavior); >> > setOutputMarkupId(true); >> > } >> > >> > >> > protected String getEventHandler(String defaultHandler) { >> > return defaultHandler; >> > } >> > >> > public void onClick() { >> > onClick(null); >> > setRedirect(false); >> > setResponsePage(getPage()); >> > } >> > >> > public void onClick(AjaxRequestTarget target) { >> > pageable.setCurrentPage(getPageNumber()); >> > } >> > } >> > >> -- >> View this message in context: >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901080 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901775 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Fixed this last bit by wrapping the return call decorator in a CancelEvent one (it chains): final AjaxPagingNavigationBehavior behavior = new AjaxPagingNavigationBehavior(this, pageable, "onclick") { protected IAjaxCallDecorator getAjaxCallDecorator() { return new CancelEventIfNoAjaxDecorator(decorator); } }; James McLaughlin-3 wrote: > >>From what I can tell, since it is not really an ajax link but rather a > regular link with an ajax behavior, the ajax behavior needs to prevent > the onclick from bubbling to the anchors clickhandler. Your > ajaxcalldecorator will need to do that as well. It would be great if > once you are done you could create an rfe in jira with the > enhancements that will make this process easier. > > jim > > -- View this message in context: http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901678 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket & YUI
Are there any examples/tutorials that re using YUI with Wicket. I see there is also a wicket YUI project but could not find much getting started help. -- View this message in context: http://www.nabble.com/Wicket---YUI-tf3848786.html#a10901677 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Exception Strategy in 1.3
* craigdd: > > Thanks Eelco, your example was extremely helpful and I agree that the API is > not obvious when it comes to this type of stuff. It also doesn't help when > the javadoc for RequestCycle.onRuntimeException refers to > "DefaultExceptionResponseStrategy" which does not exist in 1.3. I just fixed this. It would be nice if you could create a JIRA issue next time for that kind of problems, and if possible the updated documentation. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Acegi ?
Hey, one hour per day contributing to Open Source is already a lot! hmm then i have to stopp working on it right now... because i am already passed the hour again johan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Acegi ?
* Erik van Oosten: > As apparently not every author in this thread sees all the steps > needed to use Acegi with Wicket, I am currently writing a howto > on the Wicket wiki. The howto is extracted from a production > system and describes the combination of Wicket, Acegi and > Wicket-auth-roles. It will take a couple of days more as I can > only work on it for at most an hour per day :( Hey, one hour per day contributing to Open Source is already a lot! Very useful contributions can be achieved with such an amount of time dedicated to an OSS project. Thanks Erik! -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How To Test with getApplication method
* Johan Compagner: > we fixed this in 1.3 so that you can use your own application > class, So in 1.2 there isn't really a right way to reuse your > webapplication object Indeed, users that need this feature will have to backport MockWebApplication and WicketTester on their 1.2.x version. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
>From what I can tell, since it is not really an ajax link but rather a regular link with an ajax behavior, the ajax behavior needs to prevent the onclick from bubbling to the anchors clickhandler. Your ajaxcalldecorator will need to do that as well. It would be great if once you are done you could create an rfe in jira with the enhancements that will make this process easier. jim On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > Scratch that, the solution below causes a page refresh... > getAjaxCallDecorator() returns new CancelEventIfNoAjaxDecorator() it works > fine, but if it returns the defined decorator, the page refreshes after the > ajax call is complete. Why would that be? Should decorator extend > CancelEventIfNoAjaxDecorator?? > > > > > Tremelune wrote: > > > > Well, that works...I think this would be made easier if there were a > > getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it > > stands, there are a few methods in my class that were copied/pasted > > directly from AjaxPagingNavigationLink: > > > > public class DecoratableAjaxPagingNavigationIncrementLink extends > > PagingNavigationIncrementLink > > implements IAjaxLink { > > > > public DecoratableAjaxPagingNavigationIncrementLink(final String id, > > final IPageable pageable, > > final int increment) > > { > > super(id, pageable, increment); > > > > //Adds more text to onclick attribute > > final AjaxCallDecorator decorator = new AjaxCallDecorator() { > > public CharSequence decorateScript(final CharSequence charSequence) > > { > > CharSequence ajaxCall = super.decorateScript(charSequence); > > return ajaxCall + "more onclick stuff"; > > } > > }; > > > > //Adds onclick attribute > > final AjaxPagingNavigationBehavior behavior = > > new AjaxPagingNavigationBehavior(this, pageable, "onclick") { > > protected IAjaxCallDecorator getAjaxCallDecorator() { > > return decorator; > > } > > }; > > > > //The rest of this class is direct from AjaxPagingNavigatorLink > > > > add(behavior); > > setOutputMarkupId(true); > > } > > > > > > protected String getEventHandler(String defaultHandler) { > > return defaultHandler; > > } > > > > public void onClick() { > > onClick(null); > > setRedirect(false); > > setResponsePage(getPage()); > > } > > > > public void onClick(AjaxRequestTarget target) { > > pageable.setCurrentPage(getPageNumber()); > > } > > } > > > -- > View this message in context: > http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901080 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Scratch that, the solution below causes a page refresh... getAjaxCallDecorator() returns new CancelEventIfNoAjaxDecorator() it works fine, but if it returns the defined decorator, the page refreshes after the ajax call is complete. Why would that be? Should decorator extend CancelEventIfNoAjaxDecorator?? Tremelune wrote: > > Well, that works...I think this would be made easier if there were a > getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it > stands, there are a few methods in my class that were copied/pasted > directly from AjaxPagingNavigationLink: > > public class DecoratableAjaxPagingNavigationIncrementLink extends > PagingNavigationIncrementLink > implements IAjaxLink { > > public DecoratableAjaxPagingNavigationIncrementLink(final String id, > final IPageable pageable, > final int increment) > { > super(id, pageable, increment); > > //Adds more text to onclick attribute > final AjaxCallDecorator decorator = new AjaxCallDecorator() { > public CharSequence decorateScript(final CharSequence charSequence) > { > CharSequence ajaxCall = super.decorateScript(charSequence); > return ajaxCall + "more onclick stuff"; > } > }; > > //Adds onclick attribute > final AjaxPagingNavigationBehavior behavior = > new AjaxPagingNavigationBehavior(this, pageable, "onclick") { > protected IAjaxCallDecorator getAjaxCallDecorator() { > return decorator; > } > }; > > //The rest of this class is direct from AjaxPagingNavigatorLink > > add(behavior); > setOutputMarkupId(true); > } > > > protected String getEventHandler(String defaultHandler) { > return defaultHandler; > } > > public void onClick() { > onClick(null); > setRedirect(false); > setResponsePage(getPage()); > } > > public void onClick(AjaxRequestTarget target) { > pageable.setCurrentPage(getPageNumber()); > } > } > -- View this message in context: http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10901080 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Escaping German Umlauts
Hi, can anyone tell me how I can escape German umlauts when using TextFields or Labels? Component.setEscapeModelStrings( true) does not replace them. And I really don't want to create a custom IModel for every component I add Any hints? Johannes Schneider -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info smime.p7s Description: S/MIME Cryptographic Signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Acegi ?
As apparently not every author in this thread sees all the steps needed to use Acegi with Wicket, I am currently writing a howto on the Wicket wiki. The howto is extracted from a production system and describes the combination of Wicket, Acegi and Wicket-auth-roles. It will take a couple of days more as I can only work on it for at most an hour per day :( I'll post again when I am done :) Regards, Erik. -- Erik van Oosten http://2007.rubyenrails.nl/ http://day-to-day-stuff.blogspot.com/ -- View this message in context: http://www.nabble.com/Wicket---Acegi---tf3833443.html#a10900512 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
Pretty much yeah. Though the concept of what is bookmarkable is strechable when you work with custom url coding strategies. Eelco On 5/31/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > In other words: when something more should be done than just linking to > another (bookmarkable) page, then always the resulting link is > non-bookmarkable? > > -- > Tom > > > Eelco Hillenius wrote: > >> Thanks. One further question regarding links and bookmarkable pages: When I > >> add following PageLink, will the resulting href always be not bookmarkable? > > > > Indeed. That is because you're using an inner class, and Wicket > > wouldn't know how to interpret and can't do anything else than execute > > it (for which it needs to be stored for a next request). When you just > > provide a class argument otoh, Wicket knows enough to write this out > > as a bookmarkable page link. > > > > Eelco > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
In other words: when something more should be done than just linking to another (bookmarkable) page, then always the resulting link is non-bookmarkable? -- Tom Eelco Hillenius wrote: >> Thanks. One further question regarding links and bookmarkable pages: When I >> add following PageLink, will the resulting href always be not bookmarkable? > > Indeed. That is because you're using an inner class, and Wicket > wouldn't know how to interpret and can't do anything else than execute > it (for which it needs to be stored for a next request). When you just > provide a class argument otoh, Wicket knows enough to write this out > as a bookmarkable page link. > > Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Nuub] Best practise: Navigation Component
Hi, thanks for your answer. I was a surprised that there is no model abstraction of link in wicket... I will take a deeper look at the tabs package - thanks for the hint. Johannes Schneider John Krasnay wrote: One idea would be to create a class that represents the logical idea of a link, e.g public class NavEntry { private String title; private Class pageClass; private PageParameters parameters; ... } Pass a list of these to the constructor of your panel, which then renders these into actual links and labels. If this is too restrictive, e.g. if you want different kinds of links, not just BookmarkablePageLinks, you can defer creation of the link to the NavEntry object: public class NavEntry { ... public abstract WebMarkupContainer createLink(String id); } public class BookmarkablePageNavEntry extends NavEntry { private Class pageClass; private PageParameters parameters; public WebMarkupContainer createLink(String id) { return new BookmarkablePageLink(pageClass, parameters); } } A similar technique is used in the tabs package in wicket-extensions. jk On Tue, May 29, 2007 at 07:55:48PM +0200, Johannes Schneider wrote: Hi, I am new to Wicket and I really like the things I have seen so far. But I also have a few questions. At the moment I create a small page. Therefore I have created a NavigationComponent (extends Panel) with its own markup file and some other resources (css, images). Can anybody describe me the best way to add Links (most of them are BookmarkableLinks) and the corresponding Labels to this component? At the moment I create a List of Links. Each of those links has a Label added. Those links are then provided to a DataView and given to the NavigationComponent. I don't like this because I have to create the components manually (Links and Labels) with the "correct" ids. What approach would a wicket expert take? Later I might reuse the NavigationComponent within another application. But therefore I would like to modify/replace the CSS and replace some images. What is the Wicket way to achive this? Thanks in advance, Johannes Schneider -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info smime.p7s Description: S/MIME Cryptographic Signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
> Thanks. One further question regarding links and bookmarkable pages: When I > add following PageLink, will the resulting href always be not bookmarkable? Indeed. That is because you're using an inner class, and Wicket wouldn't know how to interpret and can't do anything else than execute it (for which it needs to be stored for a next request). When you just provide a class argument otoh, Wicket knows enough to write this out as a bookmarkable page link. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Well, that works...I think this would be made easier if there were a getAjaxBehavior() method in AjaxPagingNavigationIncrementLink. As it stands, there are a few methods in my class that were copied/pasted directly from AjaxPagingNavigationLink: public class DecoratableAjaxPagingNavigationIncrementLink extends PagingNavigationIncrementLink implements IAjaxLink { public DecoratableAjaxPagingNavigationIncrementLink(final String id, final IPageable pageable, final int increment) { super(id, pageable, increment); //Adds more text to onclick attribute final AjaxCallDecorator decorator = new AjaxCallDecorator() { public CharSequence decorateScript(final CharSequence charSequence) { CharSequence ajaxCall = super.decorateScript(charSequence); return ajaxCall + "more onclick stuff"; } }; //Adds onclick attribute final AjaxPagingNavigationBehavior behavior = new AjaxPagingNavigationBehavior(this, pageable, "onclick") { protected IAjaxCallDecorator getAjaxCallDecorator() { return decorator; } }; //The rest of this class is direct from AjaxPagingNavigatorLink add(behavior); setOutputMarkupId(true); } protected String getEventHandler(String defaultHandler) { return defaultHandler; } public void onClick() { onClick(null); setRedirect(false); setResponsePage(getPage()); } public void onClick(AjaxRequestTarget target) { pageable.setCurrentPage(getPageNumber()); } } James McLaughlin-3 wrote: > > Yeah, I see what you mean. The AjaxPagingNavigationIncrementLink is > not really an AjaxLink, but has had an AjaxBehavior grafted in. I > think your best bet would be to build a PagingNavigationIncrementLink > and add a behavior similar to AjaxPagingNavigationBehavior to it, but > with the scriptaculous stuff added in as well. > > hth, > jim > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > I misspoke a earlier, the method I need to override is > newPagingNavigationIncrementLink(). Looks like this: > > public AjaxPagingNavigationIncrementLink(final String id, final > IPageable > pageable, final int increment) > { > super(id, pageable, increment); > add(new AjaxPagingNavigationBehavior(this, pageable, > "onclick")); > > setOutputMarkupId(true); > } > > Because the behavior is plugged into the constructor, there isn't anything > I > can override to change that, unless I duplicate the code in this > constructor > elsewhere. I may try using mouseup or onblur or something...My end goal is > to use Scriptaculous to fade from one page to the next. -- View this message in context: http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10899846 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
Thanks. One further question regarding links and bookmarkable pages: When I add following PageLink, will the resulting href always be not bookmarkable? public class DownloadFile extends OurWebPage { public DownloadFile(final PageParameters parameters) { page.add(new PageLink("linkId", new IPageLink() { private static final long serialVersionUID = 1L; public Page getPage() { ... return getPageFactory().newPage(getPageIdentity(), parameters); } public Class getPageIdentity() { return DownloadFile.class; } })); } } Tom Johan Compagner wrote: > that url that you get doesn't have anything to do with a page being > versioned or not. > that url you just get when you redirect to a page instance. > if you want to keep that bookmarkable then use this constructor > > public RestartResponseAtInterceptPageException(final Class > interceptPageClass) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SVN access broken?
Hi Ravindra. When using trunk there is sometimes tests that fails. We have just had a similar discussion about it here: http://www.nabble.com/Build-Failed-tf3815817.html#a10802004 It shouldn't be stopping you from working. Frank On 5/23/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: OK, I was able to get to it using http://svn.apache.org/repos/asf/incubator/wicket/trunk However, there is a failure while running tests for 1.3. From what I see seems like in org.apache.wicket.request.target.coding.UrlMountingTest. Am I the only one seeing this? Thanks Ravi. Ravindra Wankar wrote: > Both, web access and anonymous access do not work for me. > > Web access points to > > http://svn.apache.org/viewvc/incubator/wicket/branches/wicket > > and anonymous access to > > svn checkout https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket wicket > > > Thanks > Ravi. > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Applying TextTempate on the component's markup
Have you had a look at the VelocityPanel in wicket-velocity? If not, it will probably do what you are looking for. best, jim On 5/18/07, Alex Objelean <[EMAIL PROTECTED]> wrote: > > Is it possible to apply TextTempate inside the markup of the component? > > More specifically, for the following markup: > > > > #${componentId} .selected { >background: blue; > } > > > >This is markup for my component > > > the generated markup would replace the ${componentId} with the component > markupId.. (same way - interpolate any other field dynamically using > TextTemplate). > > I know that it is possible to interpolate variables on a file which is > contributed in a head (css or js), but I am interested in the interpolation > of the markup itself. > > Thank you! > > -- > View this message in context: > http://www.nabble.com/Applying-TextTempate-on-the-component%27s-markup-tf3780259.html#a10690722 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Yeah, I see what you mean. The AjaxPagingNavigationIncrementLink is not really an AjaxLink, but has had an AjaxBehavior grafted in. I think your best bet would be to build a PagingNavigationIncrementLink and add a behavior similar to AjaxPagingNavigationBehavior to it, but with the scriptaculous stuff added in as well. hth, jim On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > I misspoke a earlier, the method I need to override is > newPagingNavigationIncrementLink(). Looks like this: > > public AjaxPagingNavigationIncrementLink(final String id, final > IPageable > pageable, final int increment) > { > super(id, pageable, increment); > add(new AjaxPagingNavigationBehavior(this, pageable, > "onclick")); > > setOutputMarkupId(true); > } > > Because the behavior is plugged into the constructor, there isn't anything I > can override to change that, unless I duplicate the code in this constructor > elsewhere. I may try using mouseup or onblur or something...My end goal is > to use Scriptaculous to fade from one page to the next. > > > > > James McLaughlin-3 wrote: > > > > Is this not possible for you: > > > > protected Link newPagingNavigationLink(String id, IPageable pageable, > > int pageNumber) > > { > > return new AjaxPagingNavigationLink(id, pageable, pageNumber) > > { > > > > @Override > > protected IAjaxCallDecorator > > getAjaxCallDecorator() { > > return new > > MyBrilliantAjaxPagingCallDecorator(); > > } > >}; > > } > > > > best, > > jim > > > > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> > >> Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which > >> is > >> constructed in AjaxPagingNavigationLink, which is constructed in > >> AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass > >> overrides. > >> Is there a way to add this decorator without having to pass an object up > >> the > >> whole chain or duplicate all the constructor code in > >> AjaxPagingNavigator.newPagingNavigatorLink()? > >> > >> > >> > >> > >> James McLaughlin-3 wrote: > >> > > >> > If you mean getAjaxCallDecorator(), it is surely there. Just override > >> > it to return your implementation of AjaxCallDecorator. To add to the > >> > onclick, you will need to override the decorateScript method of > >> > AjaxCallDecorator. > >> > > >> > best, > >> > jim > >> > > >> > On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> >> > >> >> I'm looking to add an additional script to the onclick of a (paging) > >> ajax > >> >> link. I stumbled on this thread: > >> >> > >> >> > >> http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 > >> >> > >> >> I can't seem to find the additional code in 1.3. The thread is a year > >> >> old, > >> >> perhaps the code was discarded. Is there a new and better way to add > >> >> additional onclick scripting somewhere else? > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10883013 > >> >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > >> - > >> >> This SF.net email is sponsored by DB2 Express > >> >> Download DB2 Express C - the FREE version of DB2 express and take > >> >> control of your XML. No limits. Just data. Click to get it now. > >> >> http://sourceforge.net/powerbar/db2/ > >> >> ___ > >> >> Wicket-user mailing list > >> >> Wicket-user@lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> >> > >> > > >> > > >> - > >> > This SF.net email is sponsored by DB2 Express > >> > Download DB2 Express C - the FREE version of DB2 express and take > >> > control of your XML. No limits. Just data. Click to get it now. > >> > http://sourceforge.net/powerbar/db2/ > >> > ___ > >> > Wicket-user mailing list > >> > Wicket-user@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10896587 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> ___ > >> Wicket-user maili
Re: [Wicket-user] Force page refresh after Ajax request completes?
Its a shameless hack, but you could try it in a setTimeout. Or possibly, target.appendJavascript("Wicket.Window.unloadConfirmation=false;window.location.reload()") Otherwise, I believe the semantics of onClose make it necessary for the modal to be around until onClose returns. hth, jim On 5/31/07, dukejansen <[EMAIL PROTECTED]> wrote: > > Any chance anyone has any input on this? I still think this is a bug in > Wicket, that I can't set Javascript to reload the page after the modal > window is closed, since the page still thinks the modal is open. > > > dukejansen wrote: > > > > Yup. That's why I was trying to do it using > > target.appendJavascript("window.location.reload()") instead of doing the > > setResponsePage server side...? Since I'm appending that Javascript AFTER > > the 'close modal window' call, it seems like it should be able to close > > the modal window client side, THEN call my javascript to refresh the page, > > without the warning, since the modal has been closed.. ? > > > > > > Matej Knopp-2 wrote: > >> > >> The problem is that when setResponsePage() is called, no appended > >> Javascript is evaluated. In fact, wicket doesn't process the ajax > >> response at all. Just sets window.location. > >> > >> -Matej > >> > >> On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote: > >>> > >>> Yeah, but I don't want to disable that warning. That warning is valid if > >>> the > >>> user really does try to navigate away while the modal is still being > >>> displayed. > >>> > >>> The problem is that I am actually closing the modal before I do the > >>> redirect, so it shouldn't show the warning at all. > >>> > >>> -Jason > >>> > >>> > >>> Matej Knopp-2 wrote: > >>> > > >>> > There is a way that should also work in recent 1.x. To disable the > >>> > confirmation dialog you need to put this inside the page with modal > >>> > window: > >>> > > >>> > Wicket.Window.unloadConfirmation=false; > >>> > > >>> > > >>> > -Matej > >>> > > >>> > On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote: > >>> >> dukejansen schreef: > >>> >> > My Ajax event handler needs to first close the current modal window > >>> and > >>> >> then refresh the entire page. Is there a better way to do this? > >>> >> > > >>> >> I once worked around something like this by putting the redirect in > >>> the > >>> >> windowClosedCallback of the ModalWindow. That was sufficient in our > >>> >> case, but I too would be interested in some more enlightenment in > >>> this > >>> >> area :). > >>> >> > >>> >> > >>> >> Arnout > >>> >> > >>> >> > >>> - > >>> >> This SF.net email is sponsored by DB2 Express > >>> >> Download DB2 Express C - the FREE version of DB2 express and take > >>> >> control of your XML. No limits. Just data. Click to get it now. > >>> >> http://sourceforge.net/powerbar/db2/ > >>> >> ___ > >>> >> Wicket-user mailing list > >>> >> Wicket-user@lists.sourceforge.net > >>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> >> > >>> > > >>> > > >>> - > >>> > This SF.net email is sponsored by DB2 Express > >>> > Download DB2 Express C - the FREE version of DB2 express and take > >>> > control of your XML. No limits. Just data. Click to get it now. > >>> > http://sourceforge.net/powerbar/db2/ > >>> > ___ > >>> > Wicket-user mailing list > >>> > Wicket-user@lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > > >>> > > >>> > >>> -- > >>> View this message in context: > >>> http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10400468 > >>> Sent from the Wicket - User mailing list archive at Nabble.com. > >>> > >>> > >>> - > >>> This SF.net email is sponsored by DB2 Express > >>> Download DB2 Express C - the FREE version of DB2 express and take > >>> control of your XML. No limits. Just data. Click to get it now. > >>> http://sourceforge.net/powerbar/db2/ > >>> ___ > >>> Wicket-user mailing list > >>> Wicket-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >> > >> - > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Force-page-refresh-after-Ajax-r
Re: [Wicket-user] Force page refresh after Ajax request completes?
Any chance anyone has any input on this? I still think this is a bug in Wicket, that I can't set Javascript to reload the page after the modal window is closed, since the page still thinks the modal is open. dukejansen wrote: > > Yup. That's why I was trying to do it using > target.appendJavascript("window.location.reload()") instead of doing the > setResponsePage server side...? Since I'm appending that Javascript AFTER > the 'close modal window' call, it seems like it should be able to close > the modal window client side, THEN call my javascript to refresh the page, > without the warning, since the modal has been closed.. ? > > > Matej Knopp-2 wrote: >> >> The problem is that when setResponsePage() is called, no appended >> Javascript is evaluated. In fact, wicket doesn't process the ajax >> response at all. Just sets window.location. >> >> -Matej >> >> On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote: >>> >>> Yeah, but I don't want to disable that warning. That warning is valid if >>> the >>> user really does try to navigate away while the modal is still being >>> displayed. >>> >>> The problem is that I am actually closing the modal before I do the >>> redirect, so it shouldn't show the warning at all. >>> >>> -Jason >>> >>> >>> Matej Knopp-2 wrote: >>> > >>> > There is a way that should also work in recent 1.x. To disable the >>> > confirmation dialog you need to put this inside the page with modal >>> > window: >>> > >>> > Wicket.Window.unloadConfirmation=false; >>> > >>> > >>> > -Matej >>> > >>> > On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote: >>> >> dukejansen schreef: >>> >> > My Ajax event handler needs to first close the current modal window >>> and >>> >> then refresh the entire page. Is there a better way to do this? >>> >> > >>> >> I once worked around something like this by putting the redirect in >>> the >>> >> windowClosedCallback of the ModalWindow. That was sufficient in our >>> >> case, but I too would be interested in some more enlightenment in >>> this >>> >> area :). >>> >> >>> >> >>> >> Arnout >>> >> >>> >> >>> - >>> >> This SF.net email is sponsored by DB2 Express >>> >> Download DB2 Express C - the FREE version of DB2 express and take >>> >> control of your XML. No limits. Just data. Click to get it now. >>> >> http://sourceforge.net/powerbar/db2/ >>> >> ___ >>> >> Wicket-user mailing list >>> >> Wicket-user@lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >> >>> > >>> > >>> - >>> > This SF.net email is sponsored by DB2 Express >>> > Download DB2 Express C - the FREE version of DB2 express and take >>> > control of your XML. No limits. Just data. Click to get it now. >>> > http://sourceforge.net/powerbar/db2/ >>> > ___ >>> > Wicket-user mailing list >>> > Wicket-user@lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/wicket-user >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10400468 >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> ___ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > -- View this message in context: http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10897058 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Applying TextTempate on the component's markup
I don't think we should go that route, as that would open up a very big can of worms. Markup and logic are seperated in Wicket and allowing such interpolation would open the door for scripting-like use of Wicket, which I think is something we shouldn't support. Eelco On 5/18/07, Alex Objelean <[EMAIL PROTECTED]> wrote: > > Is it possible to apply TextTempate inside the markup of the component? > > More specifically, for the following markup: > > > > #${componentId} .selected { >background: blue; > } > > > >This is markup for my component > > > the generated markup would replace the ${componentId} with the component > markupId.. (same way - interpolate any other field dynamically using > TextTemplate). > > I know that it is possible to interpolate variables on a file which is > contributed in a head (css or js), but I am interested in the interpolation > of the markup itself. > > Thank you! > > -- > View this message in context: > http://www.nabble.com/Applying-TextTempate-on-the-component%27s-markup-tf3780259.html#a10690722 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
I misspoke a earlier, the method I need to override is newPagingNavigationIncrementLink(). Looks like this: public AjaxPagingNavigationIncrementLink(final String id, final IPageable pageable, final int increment) { super(id, pageable, increment); add(new AjaxPagingNavigationBehavior(this, pageable, "onclick")); setOutputMarkupId(true); } Because the behavior is plugged into the constructor, there isn't anything I can override to change that, unless I duplicate the code in this constructor elsewhere. I may try using mouseup or onblur or something...My end goal is to use Scriptaculous to fade from one page to the next. James McLaughlin-3 wrote: > > Is this not possible for you: > > protected Link newPagingNavigationLink(String id, IPageable pageable, > int pageNumber) > { > return new AjaxPagingNavigationLink(id, pageable, pageNumber) { > > @Override > protected IAjaxCallDecorator > getAjaxCallDecorator() { > return new > MyBrilliantAjaxPagingCallDecorator(); > } >}; > } > > best, > jim > > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: >> >> Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which >> is >> constructed in AjaxPagingNavigationLink, which is constructed in >> AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass >> overrides. >> Is there a way to add this decorator without having to pass an object up >> the >> whole chain or duplicate all the constructor code in >> AjaxPagingNavigator.newPagingNavigatorLink()? >> >> >> >> >> James McLaughlin-3 wrote: >> > >> > If you mean getAjaxCallDecorator(), it is surely there. Just override >> > it to return your implementation of AjaxCallDecorator. To add to the >> > onclick, you will need to override the decorateScript method of >> > AjaxCallDecorator. >> > >> > best, >> > jim >> > >> > On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: >> >> >> >> I'm looking to add an additional script to the onclick of a (paging) >> ajax >> >> link. I stumbled on this thread: >> >> >> >> >> http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 >> >> >> >> I can't seem to find the additional code in 1.3. The thread is a year >> >> old, >> >> perhaps the code was discarded. Is there a new and better way to add >> >> additional onclick scripting somewhere else? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10883013 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> - >> >> This SF.net email is sponsored by DB2 Express >> >> Download DB2 Express C - the FREE version of DB2 express and take >> >> control of your XML. No limits. Just data. Click to get it now. >> >> http://sourceforge.net/powerbar/db2/ >> >> ___ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> > >> - >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10896587 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http:/
Re: [Wicket-user] Changing validation rules on the fly
> I wondered why there appears to be no way to remove one or all validators? We have talked about it, but not yet decided whether we were going to add a remove option. I'm one of the people who isn't sure whether we really need it. Why not instead of removing validators make their execution optional? You can code that directly in your validators right now. Maybe you can tell us more about your case? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Is this not possible for you: protected Link newPagingNavigationLink(String id, IPageable pageable, int pageNumber) { return new AjaxPagingNavigationLink(id, pageable, pageNumber) { @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new MyBrilliantAjaxPagingCallDecorator(); } }; } best, jim On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which is > constructed in AjaxPagingNavigationLink, which is constructed in > AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass overrides. > Is there a way to add this decorator without having to pass an object up the > whole chain or duplicate all the constructor code in > AjaxPagingNavigator.newPagingNavigatorLink()? > > > > > James McLaughlin-3 wrote: > > > > If you mean getAjaxCallDecorator(), it is surely there. Just override > > it to return your implementation of AjaxCallDecorator. To add to the > > onclick, you will need to override the decorateScript method of > > AjaxCallDecorator. > > > > best, > > jim > > > > On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> > >> I'm looking to add an additional script to the onclick of a (paging) ajax > >> link. I stumbled on this thread: > >> > >> http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 > >> > >> I can't seem to find the additional code in 1.3. The thread is a year > >> old, > >> perhaps the code was discarded. Is there a new and better way to add > >> additional onclick scripting somewhere else? > >> -- > >> View this message in context: > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10883013 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10896587 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding more onclick script to ajax link?
Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which is constructed in AjaxPagingNavigationLink, which is constructed in AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass overrides. Is there a way to add this decorator without having to pass an object up the whole chain or duplicate all the constructor code in AjaxPagingNavigator.newPagingNavigatorLink()? James McLaughlin-3 wrote: > > If you mean getAjaxCallDecorator(), it is surely there. Just override > it to return your implementation of AjaxCallDecorator. To add to the > onclick, you will need to override the decorateScript method of > AjaxCallDecorator. > > best, > jim > > On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: >> >> I'm looking to add an additional script to the onclick of a (paging) ajax >> link. I stumbled on this thread: >> >> http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 >> >> I can't seem to find the additional code in 1.3. The thread is a year >> old, >> perhaps the code was discarded. Is there a new and better way to add >> additional onclick scripting somewhere else? >> -- >> View this message in context: >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10883013 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10896587 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Changing validation rules on the fly
I have a complex form split into panels in a wizard and some validation requirements in a panel change depend ing on changes in the model made by previous panels. I was expecting to be able to remove one type of validator previously added and add a new one that covers the changed circumstances but there seems to be no remove() method only add(). I wondered why there appears to be no way to remove one or all validators? -- View this message in context: http://www.nabble.com/Changing-validation-rules-on-the-fly-tf3847201.html#a10896255 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?
Mats Norén-2 wrote: > > It would be great of you had some code to share, it makes it easier to > follow... :) > Yeah, no kidding.. :) Here is a quickstart (minus the lib folder, see below for list of jars) that should illustrate what I am trying to accomplish, yes it's pretty stupid, but hopefully covers some of the normal usage scenarios... http://www.nabble.com/file/p10895313/quickstart-listener.zip quickstart-listener.zip One problem that I know that it suffers from is that Components that should act as "event source's" can't be named _easily_ within a repeater. You'll have to use an actual Component reference (instead of the name) in those cases. Chuck Here is the contents of my lib folder, this should be standard for a quickstart... commons-collections-3.2.jar commons-logging-1.0.4.jar jetty-6.1.1.jar jetty-management-6.1.1.jar jetty-util-6.1.1.jar log4j-1.2.13.jar mx4j-3.0.1.jar mx4j-tools-3.0.1.jar servlet-api-2.5-6.1.1.jar slf4j-api-1.3.1.jar slf4j-log4j12-1.3.1.jar wicket-1.3.0-incubating-SNAPSHOT.jar (latest version) wicket-extensions-1.3.0-incubating-SNAPSHOT.jar (latest version) Mats Norén-2 wrote: > > On 5/31/07, ChuckDeal <[EMAIL PROTECTED]> wrote: >> >> I had the same (at least it sounds similar) problem. My pages use a >> role-based authorization strategy. Sometimes the role is based upon the >> data on the page. A good example of this is Responsible Individual (RI); >> if you are not an RI, you have read-only access, but as soon as you are >> added to the RI List, you get read-write access to certain fields (maybe >> not >> all fields). In an effort to avoid page flashing, we use AJAX to refresh >> the components whose access are based upon the RI field. >> >> At first the solution was specific to this scenario, then I realized that >> I >> could have any number of fields on the page that worked in concert with >> each >> other to either RENDER or ENABLE other fields based upon roles. In the >> end, >> I created an abstract methodology based on the concept of of Listeners. >> So, >> a field registers itself with another component as a listener, then the >> source component has the responsibility of telling the target components >> what to do and when to do it (in this case, repaint targets when source >> is >> updated). >> >> The rough idea: I use the Component MetaData on the source to store a >> List >> of target Component references. The whole design is based upon >> MetaDataRoleAuthorizationStrategy. Now, I know what you're thinking: >> What >> about the case where the source component hasn't been instantiated yet, >> but >> I want to register a target against it? Well, I use the Page (actually >> an >> object on the Page) and a custom Panel (that all other panels extend >> from) >> as mediators. A Component can actually register with another Component >> via >> an actual reference to the source Component or by "name". In the latter >> case, the source Component would have to register themselves with the >> Page/Panel in a Component registry. This helped with the problem of >> fragility because I didn't need to know the full path to a Component from >> the targets position which meant I could change the hierarchy without >> having >> to go back and adjust all these register() methods. That covers the >> basics >> of building the web of source/targets. >> >> Using the knowledge is up to the developer. For my immediate needs, >> whenever I repaint the source (which is usually due to an AJAX update of >> the >> model), I repaint anyone registered to me. I even created behaviors that >> extend AjaxFormComponentUpdatingBehavior to help make this even more >> transparent. >> >> I just reread this post and it seems a little abstract. If anyone is >> actually interested in this, I will do my best to elaborate. I also >> welcome >> criticism of this approach because I would hate to get into full >> production >> mode and find some stupid loophole that takes me "back to the drawing >> board". >> >> Chuck >> >> >> James McLaughlin-3 wrote: >> > >> > +1. It can be tedious sometimes figuring out how to update >> > components that are on the other side of the tree from the onClick. >> > >> > best, >> > jim >> > >> > On 5/30/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Maybe another way to auto-ajax-update a component would be to have it >> do >> >> that whenever its model changes. There are a lot of caveats with >> model >> >> change notifications, but that seems to be a pretty clean idea if the >> >> rules >> >> for model changes were respected. Might make a good RFE for next >> Wicket >> >> version. >> >> >> >> >> >> Jonathan Locke wrote: >> >> > >> >> > >> >> > It shouldn't be hard to write the method you're talking about. To >> find >> >> > all the components using the same model as a given component, just >> walk >> >> > the component hierarchy using visitChildren() and add any component >> >> which >> >> > returns true for sameInner
Re: [Wicket-user] Using Loop with ajax?
thanks.. Martijn Dashorst wrote: > http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html > > Same applies for Loop > > On 5/31/07, Nino Saturnino Martinez Vazquez Wael > <[EMAIL PROTECTED]> wrote: > >> forgot to mention that its wicket 1.2.6.. >> >> Nino Saturnino Martinez Vazquez Wael wrote: >> >>> I doesnt seem that loop works with ajax? I've created a quickstart >>> project that displays this. Should I use a listview instead? >>> >>> heres the quickstart(http://localhost:8080/quickstart/app): >>> http://www.badongo.com/file/3249801 >>> >>> regards Nino >>> >>> Nino Saturnino Martinez Vazquez Wael wrote: >>> >>> Hi Im having some trouble with loop and ajax. Now when the page initially are created the loop are empty, this makes the loop not render. When I get the ajax request I try to add the loop with addcomponent, however this tells me this: Component with id [[gmap_gmapContainer_gmarkersLoop]] 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. However I have set .setOutputMarkupId(true) so Im not understanding the message? What am I doing wrong? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user >>> - >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> ___ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >>> >>> >>> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic number of columns in TreeTable
Ok, I tried to switch the column-array to a IModel with a list and I got the tree to render...once... :) Seems like I missed a couple of spots... Thanks for the quick reply. I guess an alternate approach for my usecase could be to only add two columns, one tree column and one panel containing a listview that renders my columns... /Mats On 5/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > I'm affraid this is not possible at the moment and I can see some > issues with implementing this. What you can do now is either override > isVisible to hide particular columns, or recreate the tree every time > the columns change. > > -Matej > > On 5/31/07, Mats Norén <[EMAIL PROTECTED]> wrote: > > Hi, > > Would it be possible to let the TreeTable take a model of columns > > instead of a fixed array? > > So that it would be possible to dynamically alter the number of > > columns based on a model? > > > > My usecase is a timeplanning tree with activities as rows and time as > > columns. > > Looking at the code it seems that the tree is initialized with at > > fixed number of columns? > > > > /Mats > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic number of columns in TreeTable
I'm affraid this is not possible at the moment and I can see some issues with implementing this. What you can do now is either override isVisible to hide particular columns, or recreate the tree every time the columns change. -Matej On 5/31/07, Mats Norén <[EMAIL PROTECTED]> wrote: > Hi, > Would it be possible to let the TreeTable take a model of columns > instead of a fixed array? > So that it would be possible to dynamically alter the number of > columns based on a model? > > My usecase is a timeplanning tree with activities as rows and time as columns. > Looking at the code it seems that the tree is initialized with at > fixed number of columns? > > /Mats > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Chicken-and-egg w/ Data Provider
So you need two queries in your data layer, one which returns a subset of the query results for the particular page, and one which returns the size of the potential result set (i.e. COUNT(*)). There's no other way to implement this sensibly. For Hibernate Criteria queries, this can look like this: criteria.setProjection(Projections.rowCount()).uniqueResult(); I also have a HibernateIterator which will take a criteria and give you a ScrollableResults, so if your database supports cursors properly then you don't even need to load all the results for a single page at once (not that this should generally be an issue). I then have a class that implements IDataProvider and does the above. Regards, Al V. Jenks wrote: > I prefer not to do it that way because it requires a potentially large list > of records to be pulled up initially whereas now, I'm only pulling the > records on the current page, making it much faster. I pass the x & y right > through to the data access layer. > > > Johan Compagner wrote: >> this only works if you have a seperate method: >> >> private List getOrders() >> { >> if (orders == null) >> { >> orders = DAO.getOrders() >> } >> } >> >> iterator() >> { >>return getOrders().sublist(x,y).iterator() >> } >> >> >> size() >> { >> return getOrders().size(); >> } >> >> detach() >> { >> orders = null; >> } >> >> johan >> >> On 5/29/07, V. Jenks <[EMAIL PROTECTED]> wrote: >>> >>> I'm trying to use a provider class for a DataView so I can do >>> paging/sorting, >>> etc. It looks like this: >>> >>> >>> public class OrderProvider implements IDataProvider >>> { >>> private transient List orders; >>> >>> public OrderProvider() >>> { >>> } >>> >>> public Iterator iterator(int first, int count) >>> { >>> this.orders = >>> WicketHelper.>getDetachedModelObject( >>> OrderProxy.getAll(first, first + count)); >>> >>> return this.orders.iterator(); >>> } >>> >>> public IModel model(Object model) >>> { >>> return WicketHelper.getDetachedModel(model); >>> } >>> >>> public int size() >>> { >>> return this.orders.size(); >>> } >>> } >>> >>> >>> I thought this would work but it looks like size() is called first, since >>> I >>> get a NPE: >>> >>> >>> Caused by: java.lang.NullPointerException >>> at com.myapp.provider.OrderProvider.size(OrderProvider.java:36) >>> >>> >>> It works if size() makes a call to the database to get a count of >>> records...but I'm trying to use a global field to prevent that data call. >>> >>> Any suggestions? >>> -- >>> View this message in context: >>> http://www.nabble.com/Chicken-and-egg-w--Data-Provider-tf3834369.html#a10855464 >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> ___ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic number of columns in TreeTable
It is discussed in this thread on @dev. [1] You could join and ask for the change... It is not too big a change, but Igor mentioned some problems. Martijn [1] http://www.nabble.com/-proposal--Make-columns-of-repeaters-List%3CIColumn%3E-instead-of-IColumn---tf3785568.html#a10705320 On 5/31/07, Mats Norén <[EMAIL PROTECTED]> wrote: > Hi, > Would it be possible to let the TreeTable take a model of columns > instead of a fixed array? > So that it would be possible to dynamically alter the number of > columns based on a model? > > My usecase is a timeplanning tree with activities as rows and time as columns. > Looking at the code it seems that the tree is initialized with at > fixed number of columns? > > /Mats > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wiki reference page on custom converter is outdated
We should really first divide wiki a bit i think 1.2 and 1.3 because converters are really changed now. johan On 5/30/07, Anto Paul <[EMAIL PROTECTED]> wrote: Hi all, The reference about using custom converter in apache wiki is outdated(http://cwiki.apache.org/confluence/display/WICKET/Using+custom+converters#Usingcustomconverters-Provideacustomconverterfactory). I could'nt find the method getConverterFactory() in Application class. Can somebody update the wiki with details for 1.2 series. Regards, Anto - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DateTimeField surviving Ajax updates
do you have a quickstart/example code for this ? johan On 5/30/07, Aaron Hiniker <[EMAIL PROTECTED]> wrote: I have a AjaxTabbedPanel that contains the Yahoo DateTimeField from extensions. The calendar works fine on a page refresh, but when clicking to other tabs with Ajax loading each tab, the DateTimeFields quit working. Has anyone else experienced this and found a workaround or fix? Thanks Aaron - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with AjaxLink and images in snapshot from this morning (1.3.0-incubating-SNAPSHOT)
Hi all, This was due to the RelativePath handler not using the depth param on ajax requests inside its behaviours. This should now be fixed. Regards, Al Mats Norén wrote: > Hi, > The problem is still there, unfortunately... > > /Mats > > On 5/28/07, Mats Norén <[EMAIL PROTECTED]> wrote: >> I've got a small snag with images inside an ajaxlink: >> >> My template looks like this: >> >> > title="Bakåt">> src="img/button_goBack.gif"> >> >> The generated output when the page loads for the first time: >> >> > id="previous25">> src="../../../img/button_goBack.gif" alt=""> >> >> Notice the src-attribute for the image. The image displays correctly. >> When click the ajax-link the generated output looks slightly different: >> >> > id="previous25">> alt=""> >> >> Notice the lack of "../../../" in the src-attribute for the image. >> >> I did an update this morning, for the first time in about two weeks, I >> guess something has changed with the way resources are loaded? >> >> Any suggestions? >> >> Regards, >> Mats -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?
It would be great of you had some code to share, it makes it easier to follow... :) /Mats On 5/31/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > > I had the same (at least it sounds similar) problem. My pages use a > role-based authorization strategy. Sometimes the role is based upon the > data on the page. A good example of this is Responsible Individual (RI); > if you are not an RI, you have read-only access, but as soon as you are > added to the RI List, you get read-write access to certain fields (maybe not > all fields). In an effort to avoid page flashing, we use AJAX to refresh > the components whose access are based upon the RI field. > > At first the solution was specific to this scenario, then I realized that I > could have any number of fields on the page that worked in concert with each > other to either RENDER or ENABLE other fields based upon roles. In the end, > I created an abstract methodology based on the concept of of Listeners. So, > a field registers itself with another component as a listener, then the > source component has the responsibility of telling the target components > what to do and when to do it (in this case, repaint targets when source is > updated). > > The rough idea: I use the Component MetaData on the source to store a List > of target Component references. The whole design is based upon > MetaDataRoleAuthorizationStrategy. Now, I know what you're thinking: What > about the case where the source component hasn't been instantiated yet, but > I want to register a target against it? Well, I use the Page (actually an > object on the Page) and a custom Panel (that all other panels extend from) > as mediators. A Component can actually register with another Component via > an actual reference to the source Component or by "name". In the latter > case, the source Component would have to register themselves with the > Page/Panel in a Component registry. This helped with the problem of > fragility because I didn't need to know the full path to a Component from > the targets position which meant I could change the hierarchy without having > to go back and adjust all these register() methods. That covers the basics > of building the web of source/targets. > > Using the knowledge is up to the developer. For my immediate needs, > whenever I repaint the source (which is usually due to an AJAX update of the > model), I repaint anyone registered to me. I even created behaviors that > extend AjaxFormComponentUpdatingBehavior to help make this even more > transparent. > > I just reread this post and it seems a little abstract. If anyone is > actually interested in this, I will do my best to elaborate. I also welcome > criticism of this approach because I would hate to get into full production > mode and find some stupid loophole that takes me "back to the drawing > board". > > Chuck > > > James McLaughlin-3 wrote: > > > > +1. It can be tedious sometimes figuring out how to update > > components that are on the other side of the tree from the onClick. > > > > best, > > jim > > > > On 5/30/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > >> > >> > >> Maybe another way to auto-ajax-update a component would be to have it do > >> that whenever its model changes. There are a lot of caveats with model > >> change notifications, but that seems to be a pretty clean idea if the > >> rules > >> for model changes were respected. Might make a good RFE for next Wicket > >> version. > >> > >> > >> Jonathan Locke wrote: > >> > > >> > > >> > It shouldn't be hard to write the method you're talking about. To find > >> > all the components using the same model as a given component, just walk > >> > the component hierarchy using visitChildren() and add any component > >> which > >> > returns true for sameInnermostModel(component). > >> > > >> > There is a more general case of this problem though where one area of a > >> > web page may need to be updated because some completely unrelated area > >> > changed. This I'm handling by hand right now, but I was asking a day > >> or > >> > two ago if there was a way to add a component to every ajax request > >> (Eelco > >> > answered that you can do this by implementing a request processor, I > >> > think). It seems to be pretty common in an AJAX request to want a > >> global > >> > feedback component to update. Maybe we could have a poor-man's version > >> of > >> > this where if you override some boolean method, your component will get > >> > auto-ajax-updated on every AJAX request. For many problems, this would > >> be > >> > convenient because it's easier to just update the thing every time than > >> to > >> > think about all the places it might need to be updated. > >> > > >> > > >> > dukejansen wrote: > >> >> > >> >> I have some state which backs two panels, Panel A and Panel B, that > >> may > >> >> be included as part of other panels. Ultimately they are both on the > >> same > >> >> page, and their backing state is shared via the mod
Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?
I had the same (at least it sounds similar) problem. My pages use a role-based authorization strategy. Sometimes the role is based upon the data on the page. A good example of this is Responsible Individual (RI); if you are not an RI, you have read-only access, but as soon as you are added to the RI List, you get read-write access to certain fields (maybe not all fields). In an effort to avoid page flashing, we use AJAX to refresh the components whose access are based upon the RI field. At first the solution was specific to this scenario, then I realized that I could have any number of fields on the page that worked in concert with each other to either RENDER or ENABLE other fields based upon roles. In the end, I created an abstract methodology based on the concept of of Listeners. So, a field registers itself with another component as a listener, then the source component has the responsibility of telling the target components what to do and when to do it (in this case, repaint targets when source is updated). The rough idea: I use the Component MetaData on the source to store a List of target Component references. The whole design is based upon MetaDataRoleAuthorizationStrategy. Now, I know what you're thinking: What about the case where the source component hasn't been instantiated yet, but I want to register a target against it? Well, I use the Page (actually an object on the Page) and a custom Panel (that all other panels extend from) as mediators. A Component can actually register with another Component via an actual reference to the source Component or by "name". In the latter case, the source Component would have to register themselves with the Page/Panel in a Component registry. This helped with the problem of fragility because I didn't need to know the full path to a Component from the targets position which meant I could change the hierarchy without having to go back and adjust all these register() methods. That covers the basics of building the web of source/targets. Using the knowledge is up to the developer. For my immediate needs, whenever I repaint the source (which is usually due to an AJAX update of the model), I repaint anyone registered to me. I even created behaviors that extend AjaxFormComponentUpdatingBehavior to help make this even more transparent. I just reread this post and it seems a little abstract. If anyone is actually interested in this, I will do my best to elaborate. I also welcome criticism of this approach because I would hate to get into full production mode and find some stupid loophole that takes me "back to the drawing board". Chuck James McLaughlin-3 wrote: > > +1. It can be tedious sometimes figuring out how to update > components that are on the other side of the tree from the onClick. > > best, > jim > > On 5/30/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> Maybe another way to auto-ajax-update a component would be to have it do >> that whenever its model changes. There are a lot of caveats with model >> change notifications, but that seems to be a pretty clean idea if the >> rules >> for model changes were respected. Might make a good RFE for next Wicket >> version. >> >> >> Jonathan Locke wrote: >> > >> > >> > It shouldn't be hard to write the method you're talking about. To find >> > all the components using the same model as a given component, just walk >> > the component hierarchy using visitChildren() and add any component >> which >> > returns true for sameInnermostModel(component). >> > >> > There is a more general case of this problem though where one area of a >> > web page may need to be updated because some completely unrelated area >> > changed. This I'm handling by hand right now, but I was asking a day >> or >> > two ago if there was a way to add a component to every ajax request >> (Eelco >> > answered that you can do this by implementing a request processor, I >> > think). It seems to be pretty common in an AJAX request to want a >> global >> > feedback component to update. Maybe we could have a poor-man's version >> of >> > this where if you override some boolean method, your component will get >> > auto-ajax-updated on every AJAX request. For many problems, this would >> be >> > convenient because it's easier to just update the thing every time than >> to >> > think about all the places it might need to be updated. >> > >> > >> > dukejansen wrote: >> >> >> >> I have some state which backs two panels, Panel A and Panel B, that >> may >> >> be included as part of other panels. Ultimately they are both on the >> same >> >> page, and their backing state is shared via the model class that backs >> >> both of them. Panel A has an Ajax event handler which modifies the >> >> backing model state, after which I want to force Panel A and Panel B >> to >> >> repaint. >> >> >> >> I've dealt with this in a few different ways so far, and they all >> bother >> >> me: >> >> >> >> 1. Walk up the containership tre
Re: [Wicket-user] Using Loop with ajax?
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html Same applies for Loop On 5/31/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > forgot to mention that its wicket 1.2.6.. > > Nino Saturnino Martinez Vazquez Wael wrote: > > I doesnt seem that loop works with ajax? I've created a quickstart > > project that displays this. Should I use a listview instead? > > > > heres the quickstart(http://localhost:8080/quickstart/app): > > http://www.badongo.com/file/3249801 > > > > regards Nino > > > > Nino Saturnino Martinez Vazquez Wael wrote: > > > >> Hi > >> > >> Im having some trouble with loop and ajax. Now when the page initially > >> are created the loop are empty, this makes the loop not render. > >> > >> When I get the ajax request I try to add the loop with addcomponent, > >> however this tells me this: > >> Component with id [[gmap_gmapContainer_gmarkersLoop]] 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. > >> > >> > >> However I have set .setOutputMarkupId(true) so Im not understanding the > >> message? > >> > >> What am I doing wrong? > >> > >> regards Nino > >> > >> - > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > >> > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
that url that you get doesn't have anything to do with a page being versioned or not. that url you just get when you redirect to a page instance. if you want to keep that bookmarkable then use this constructor public RestartResponseAtInterceptPageException(final Class interceptPageClass) On 5/31/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > If you just click on a bookmarkable link and then the url does change in the browser then somewhere > a setRedirect(true) is done. So the URL "http://localhost:8080/?wicket:interface=:2::"; comes from the throw new RestartResponseAtInterceptPageException(this)? At least the second time, when getOurSession().isLicenseAgreed() returns true and hence no redirect happens, the URL remains the same. Unfortunately, this does not allow me to eliminate the intermediate redirect to the license agreement from the back-button history, although isVersioned() returns false all the time. Tom Johan Compagner wrote: > nothing is wrong if you click on a wicket link (or submit a form) then > we do a redirect > to the page that is then rendered > > What is strange (if that happens at your place) is that if you click on > a bookmarkable link > then that link should stay there (until you press a none bookmarkable > link or submit a form on that page) > If you just click on a bookmarkable link and then the url does change in > the browser then somewhere > a setRedirect(true) is done. > > johan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Loop with ajax?
forgot to mention that its wicket 1.2.6.. Nino Saturnino Martinez Vazquez Wael wrote: > I doesnt seem that loop works with ajax? I've created a quickstart > project that displays this. Should I use a listview instead? > > heres the quickstart(http://localhost:8080/quickstart/app): > http://www.badongo.com/file/3249801 > > regards Nino > > Nino Saturnino Martinez Vazquez Wael wrote: > >> Hi >> >> Im having some trouble with loop and ajax. Now when the page initially >> are created the loop are empty, this makes the loop not render. >> >> When I get the ajax request I try to add the loop with addcomponent, >> however this tells me this: >> Component with id [[gmap_gmapContainer_gmarkersLoop]] 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. >> >> >> However I have set .setOutputMarkupId(true) so Im not understanding the >> message? >> >> What am I doing wrong? >> >> regards Nino >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Loop with ajax?
I doesnt seem that loop works with ajax? I've created a quickstart project that displays this. Should I use a listview instead? heres the quickstart(http://localhost:8080/quickstart/app): http://www.badongo.com/file/3249801 regards Nino Nino Saturnino Martinez Vazquez Wael wrote: > Hi > > Im having some trouble with loop and ajax. Now when the page initially > are created the loop are empty, this makes the loop not render. > > When I get the ajax request I try to add the loop with addcomponent, > however this tells me this: > Component with id [[gmap_gmapContainer_gmarkersLoop]] 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. > > > However I have set .setOutputMarkupId(true) so Im not understanding the > message? > > What am I doing wrong? > > regards Nino > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
> If you just click on a bookmarkable link and then the url does change in the > browser then somewhere > a setRedirect(true) is done. So the URL "http://localhost:8080/?wicket:interface=:2::"; comes from the throw new RestartResponseAtInterceptPageException(this)? At least the second time, when getOurSession().isLicenseAgreed() returns true and hence no redirect happens, the URL remains the same. Unfortunately, this does not allow me to eliminate the intermediate redirect to the license agreement from the back-button history, although isVersioned() returns false all the time. Tom Johan Compagner wrote: > nothing is wrong if you click on a wicket link (or submit a form) then > we do a redirect > to the page that is then rendered > > What is strange (if that happens at your place) is that if you click on > a bookmarkable link > then that link should stay there (until you press a none bookmarkable > link or submit a form on that page) > If you just click on a bookmarkable link and then the url does change in > the browser then somewhere > a setRedirect(true) is done. > > johan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How To Test with getApplication method
i think this was a problem in 1.2 we fixed this in 1.3 so that you can use your own application class, somebody please correct me if i am mistaken here So in 1.2 there isn't really a right way to reuse your webapplication object johan On 5/30/07, tma tma <[EMAIL PROTECTED]> wrote: Hi I am not native English speaker. sorry for poor English. I use wicket 1.2.6 . I have question to use WicketTester. i want to make Global object ,create instance in WebApplication Class and create method to access the instance. In WebPage class ,access the instance like this SingleClass class = ((FooApplication)getApplication()).getSingleClass(); 'FooApplication' extends WebApplication and 'SingleClass' is Global object's class. To test the above WebPage class, make the class 'FooApplicationTester' that extends WicketTester and Copy & Paste the FooApplication's method . when run the test code, ClassCastException happens. I declared interface IFooApplication and implement at FooApplication and FooApplicationTester. I changed the WebPage class like this SingleClass class = ((IFooApplication)getApplication()).getSingleClass(); This way, I can run without exception. But I don't want to create interface. Is there other way to solve ? best regards - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Using Loop with ajax?
Hi Im having some trouble with loop and ajax. Now when the page initially are created the loop are empty, this makes the loop not render. When I get the ajax request I try to add the loop with addcomponent, however this tells me this: Component with id [[gmap_gmapContainer_gmarkersLoop]] 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. However I have set .setOutputMarkupId(true) so Im not understanding the message? What am I doing wrong? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [BUG]
Maybe the topic title is a little confusing... [BUG] is related to IE, not wicket... This is useful when you want to append a js script somewhere inside the body as a result of an ajax response, and you want it to be evaluated on the client side also by IE (not only gecko browsers).. Johan Compagner wrote: > > But do we have components or behaviors that output this kind of ajax > scripts > that aren't working in IE7? > So the question is who is generating that code/script? > > johan > > > On 5/31/07, Alex Objelean <[EMAIL PROTECTED]> wrote: >> >> >> Not necessarily, only if you (core developers) consider that it worth the >> effort.. >> I just thought that this workaround could be useful for anyone who have >> struggled with the same problem... >> >> Alex >> >> >> Eelco Hillenius wrote: >> > >> >> 2) Wrap the script into the tag, like this: >> >> >> >> >> >> >> >> //your script >> >> >> > >> > Is this something Wicket can/ should do by default? >> > >> > Eelco >> > >> > >> - >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10887903 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10890474 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Dynamic number of columns in TreeTable
Hi, Would it be possible to let the TreeTable take a model of columns instead of a fixed array? So that it would be possible to dynamically alter the number of columns based on a model? My usecase is a timeplanning tree with activities as rows and time as columns. Looking at the code it seems that the tree is initialized with at fixed number of columns? /Mats - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [BUG]
But do we have components or behaviors that output this kind of ajax scripts that aren't working in IE7? So the question is who is generating that code/script? johan On 5/31/07, Alex Objelean <[EMAIL PROTECTED]> wrote: Not necessarily, only if you (core developers) consider that it worth the effort.. I just thought that this workaround could be useful for anyone who have struggled with the same problem... Alex Eelco Hillenius wrote: > >> 2) Wrap the script into the tag, like this: >> >> >> >> //your script >> > > Is this something Wicket can/ should do by default? > > Eelco > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10887903 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with AjaxLink and images in snapshot from this morning (1.3.0-incubating-SNAPSHOT)
Hi, The problem is still there, unfortunately... /Mats On 5/28/07, Mats Norén <[EMAIL PROTECTED]> wrote: > I've got a small snag with images inside an ajaxlink: > > My template looks like this: > > title="Bakåt"> src="img/button_goBack.gif"> > > The generated output when the page loads for the first time: > > id="previous25"> src="../../../img/button_goBack.gif" alt=""> > > Notice the src-attribute for the image. The image displays correctly. > When click the ajax-link the generated output looks slightly different: > > id="previous25"> alt=""> > > Notice the lack of "../../../" in the src-attribute for the image. > > I did an update this morning, for the first time in about two weeks, I > guess something has changed with the way resources are loaded? > > Any suggestions? > > Regards, > Mats > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Have to click 2 times to get my search results
that code doesn't say much (for example where is the ajax code?) don't you have a small quickstart application ? On 5/30/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: Johan many thanks for answering I think so. Here is the structure of the code: 1) A panel that contains a Form (fields name and lastName) and a Table (PageableListView). 2) A small SearchPage like this: public DossierSearch() { super(); add(new ch.logismata.wicket.panels.ajax.DossierSearchPanel ("ajaxDossierSearchPanel")); } f(t) On 5/29/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > Are you sure that you don't set another page to render in the ajax > button submit code?? > > Because if you a pure ajax call and you don't set anohter response page > then the url in your browser shouldn't change > > johan > > > On 5/29/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> > wrote: > > > Hi all, > > > > I have the following behavior: > > > > On one side of a Page I have a list of links (acting as a menu :P) > > that is created by building links by obtaining the page class > > NameOfThePage.class. > > > > That gives me the url: > > > > http://localhost:8084/WicketDemo?wicket:bookmarkablePage=:ch.logismata.wicket.pages.DossierSearch > > > > > > Then I click on my AJAX Submit button to get a search result, but > > instead of that, the page is refreshed, now with this url: > > > > http://localhost:8084/WicketDemo?wicket:interface=:8:1 : > > > > Then I click the AJAX SubmitButton and everything works fine. > > > > This happens most times, but I don't know how yet, sometimes it works > > on the first step. > > > > Best regards, > > f(t) > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] modalwindow open fails
one thing that was helpful in tracking this down was turning on the AJAX debugging window. yeah that is a great debug feature ! Now only being able to resize that window (MATEJ!!! :)) johan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
nothing is wrong if you click on a wicket link (or submit a form) then we do a redirect to the page that is then rendered What is strange (if that happens at your place) is that if you click on a bookmarkable link then that link should stay there (until you press a none bookmarkable link or submit a form on that page) If you just click on a bookmarkable link and then the url does change in the browser then somewhere a setRedirect(true) is done. johan On 5/31/07, Thomas Singer <[EMAIL PROTECTED]> wrote: No one knows what's wrong? Tom Thomas Singer wrote: > OK, I've tried to create an unversioned page to keep the URL stable using > following page code: > >> public class DownloadFile extends TemplatePage { >> >> // Constants == >> >> private static final String FILE_PARAMETER = "file"; >> >> // Static = >> >> public static BookmarkablePageLink createLinkToPage(String id, String file) { >> final BookmarkablePageLink pageLink = new BookmarkablePageLink(id, DownloadFile.class); >> pageLink.setParameter(FILE_PARAMETER, file); >> return pageLink; >> } >> >> // Setup == >> >> public DownloadFile(PageParameters parameters) { >> final String file = parameters.getString(FILE_PARAMETER); >> if (file == null) { >> throw new RestartResponseAtInterceptPageException( Download.class); >> } >> >> if (!getOurSession().isLicenseAgreed()) { >> addContent(createLicenseFragment("contentPanel", parameters)); >> throw new RestartResponseAtInterceptPageException(this); >> } >> >> addContent(createDownloadFragment("contentPanel", file)); >> } >> >> // Utils == >> >> private Fragment createDownloadFragment(String id, String file) { >> final Fragment fragment = new Fragment(id, "downloadFragment"); >> fragment.add(new Label("file", file)); >> return fragment; >> } >> >> private Fragment createLicenseFragment(String id, final PageParameters parameters) { >> final Fragment fragment = new Fragment(id, "licenseFragment"); >> fragment.add(new PageLink("accept", new IPageLink() { >> public Page getPage() { >> getOurSession().setLicenseAgreed(true); >> return new DownloadFile(parameters); >> } >> >> public Class getPageIdentity() { >> return DownloadFile.class; >> } >> })); >> return fragment; >> } >> >> public boolean isVersioned() { >> return false; >> } >> } > > Every page is mounted with QueryStringUrlCodingStrategy. On the Download > page a link to this DownloadFile page is created using the above > createLinkToPage() static method call which creates a link to > "http://localhost:8080/smartcvs/download-file.html?file=win32jre"; > Curiously, when I click on it, the browser displays > "http://localhost:8080/?wicket:interface=:2::"; as URL. The "accept"-link > occurs pointing to > " http://localhost:8080/?wicket:interface=:2:border:contentPanel:accept::ILinkListener ". > When I click it, the browser displays > "http://localhost:8080/?wicket:interface=:3::"; as URL. Clicking the > back-button shows the "http://localhost:8080/?wicket:interface=:2::"; page > with the "accept"-link, no matter whether I try it with Opera or FireFox. > > Tom > > > Eelco Hillenius wrote: >>> Regarding the back-button: it would be the best if the intermediate license >>> agreement page would not occur when pressing the back-button, but instead >>> the previous page (if any). Is something like that possible? >> What you need to achieve is that the URL stays stable. One way to >> achieve this is to use panel replacement. E.g. when you click the >> download page, you replace the main panel on your page with a panel >> that displays the license agreement. If you turn off versioning for >> that page, the URL will stay stable and thus if you push the back >> button later, your browser will return to the first version of the >> page. I think this should work for most browsers (maybe only not with >> Opera). There are alternative ways to do this, including throwing >> RestartResponseExceptions, using custom page factories and custom url >> coding strategies. Or you can trick the browser using JavaScript, of >> which I don't know too many details. >> >> Eelco > > > - > This SF.net email is sponsored by DB2 Express > Download D
Re: [Wicket-user] Wicket & Acegi ?
Eelco Hillenius wrote: > >> I thought about that too but then I still have to drag in some JSP's for >> the login page and somehow >> integrate Acegi's authz taglib for conditional content. Not that it's a >> big deal but it literally all feels >> a bit mixed, I prefer to keep it pure. > > For the pure approach, definitively check out wicket-auth. I haven't > looked at Maurice's project - it might be much better - but looking at > wicket-auth will help you understand how Wicket's build in > authorization mechanism works. > > Eelco > Thies, great work with eHour - I love it already! I just want to support Eelco on wicket-auth. I used Acegi with Spring MVC in a rather large application, using a lot of "conditional content-ing" based on the authz tag. It worked but I never was happy with it, and when I tried out Wickets own take it felt just right. It does its thing in the Wicket way. (Disclaimer: I have a severe jsp/taglib allergy so that might affect my judgement.) And, while I'm here, I have migrated two (small) Wicket-applications from 1.2 to 1.3. Absolutely no problem at all. /Per -- View this message in context: http://www.nabble.com/Wicket---Acegi---tf3833443.html#a10889509 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Stable URLs (Was: Bookmarkable pages and transparent login)
No one knows what's wrong? Tom Thomas Singer wrote: > OK, I've tried to create an unversioned page to keep the URL stable using > following page code: > >> public class DownloadFile extends TemplatePage { >> >> // Constants >> == >> >> private static final String FILE_PARAMETER = "file"; >> >> // Static >> = >> >> public static BookmarkablePageLink createLinkToPage(String id, String >> file) { >> final BookmarkablePageLink pageLink = new >> BookmarkablePageLink(id, DownloadFile.class); >> pageLink.setParameter(FILE_PARAMETER, file); >> return pageLink; >> } >> >> // Setup >> == >> >> public DownloadFile(PageParameters parameters) { >> final String file = parameters.getString(FILE_PARAMETER); >> if (file == null) { >> throw new >> RestartResponseAtInterceptPageException(Download.class); >> } >> >> if (!getOurSession().isLicenseAgreed()) { >> addContent(createLicenseFragment("contentPanel", >> parameters)); >> throw new RestartResponseAtInterceptPageException(this); >> } >> >> addContent(createDownloadFragment("contentPanel", file)); >> } >> >> // Utils >> == >> >> private Fragment createDownloadFragment(String id, String file) { >> final Fragment fragment = new Fragment(id, "downloadFragment"); >> fragment.add(new Label("file", file)); >> return fragment; >> } >> >> private Fragment createLicenseFragment(String id, final PageParameters >> parameters) { >> final Fragment fragment = new Fragment(id, "licenseFragment"); >> fragment.add(new PageLink("accept", new IPageLink() { >> public Page getPage() { >> getOurSession().setLicenseAgreed(true); >> return new DownloadFile(parameters); >> } >> >> public Class getPageIdentity() { >> return DownloadFile.class; >> } >> })); >> return fragment; >> } >> >> public boolean isVersioned() { >> return false; >> } >> } > > Every page is mounted with QueryStringUrlCodingStrategy. On the Download > page a link to this DownloadFile page is created using the above > createLinkToPage() static method call which creates a link to > "http://localhost:8080/smartcvs/download-file.html?file=win32jre"; > Curiously, when I click on it, the browser displays > "http://localhost:8080/?wicket:interface=:2::"; as URL. The "accept"-link > occurs pointing to > "http://localhost:8080/?wicket:interface=:2:border:contentPanel:accept::ILinkListener";. > > When I click it, the browser displays > "http://localhost:8080/?wicket:interface=:3::"; as URL. Clicking the > back-button shows the "http://localhost:8080/?wicket:interface=:2::"; page > with the "accept"-link, no matter whether I try it with Opera or FireFox. > > Tom > > > Eelco Hillenius wrote: >>> Regarding the back-button: it would be the best if the intermediate license >>> agreement page would not occur when pressing the back-button, but instead >>> the previous page (if any). Is something like that possible? >> What you need to achieve is that the URL stays stable. One way to >> achieve this is to use panel replacement. E.g. when you click the >> download page, you replace the main panel on your page with a panel >> that displays the license agreement. If you turn off versioning for >> that page, the URL will stay stable and thus if you push the back >> button later, your browser will return to the first version of the >> page. I think this should work for most browsers (maybe only not with >> Opera). There are alternative ways to do this, including throwing >> RestartResponseExceptions, using custom page factories and custom url >> coding strategies. Or you can trick the browser using JavaScript, of >> which I don't know too many details. >> >> Eelco > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Dow
Re: [Wicket-user] Is it possible to remove something from a page?
On Thu, 31 May 2007, Lowell Kirsh wrote: > Cool. So no need to 'add' it? Yes of course. You must add to a parent every component that you want to render, otherwise it's just garbage (for the JVM). - Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to remove something from a page?
Cool. So no need to 'add' it? On 5/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > new WebMarkupContainer("removeMe") { > > protected void onBeforeRender() { > > super.onBeforeRender(); > > setVisible(sometimesFalse()); > > } > > } > > That, or alternatively, > > new WebMarkupContainer("removeMe") { > public boolean isVisible() { > return sometimesFalse(); > } > } > > Eelco > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user