AW: AW: Troubles with Spring: bean of type X not found
Hello Cemal thanks for your advice. Know I have extracted an interface which is used in my WikiPage class and implemented by my Repository, but the the error is the same. public class PageRepository extends Repository implements IPageRepository { ... } public class WikiPage extends WebPage { @SpringBean IPageRepository repository; ... } Error message: java.lang.IllegalStateException: bean of type [com.helmbold.wicki.domain.IPageRepository] not foundI also tried to use a named bean, then I get: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pageRepository' is defined It seems like my application cannot access the Spring but context. But Spring itself seems to work, since it creates my Wicket app. Sometimes I ask myself if Spring is the solution or the problem ;-) Regards Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding multiple ajax behavious on same event
found something called CompositeBehavior in misc.but it does not seem to be workingmay be i din get how to use it.. this is what i m trying to do new AjaxFallbackLink("checkAvailablity") { { final AjaxFormValidatingBehavior ajaxFormValidatingBehavior = new AjaxFormValidatingBehavior(Form.this, "onclick") { @Override protected void onError(AjaxRequestTarget target) { // add components to target } @Override protected void onSubmit(AjaxRequestTarget target) { // add components to target } }; final CompositeBehavior behavior = new CompositeBehavior(ajaxFormValidatingBehavior); add(behavior); } @Override public void onClick(final AjaxRequestTarget target) { // do smthing } } But when i did this i got this exception trace... Behavior [requestcy...@1feffac thread=btpool0-2] was not registered with this component: [MarkupContainer [Component id = checkAvailablity,.. at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:789) at org.apache.wicket.Component.urlFor(Component.java:3124) at org.apache.wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:123) at org.apache.wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:92) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.getEventHandler(AjaxFormSubmitBehavior.java:98) at org.apache.wicket.ajax.AjaxEventBehavior.onComponentTag(AjaxEventBehavior.java:108) at org.apache.wicket.behavior.AbstractAjaxBehavior.onComponentTag(AbstractAjaxBehavior.java:132) at org.wicketstuff.misc.behaviors.CompositeBehavior.onComponentTag(CompositeBehavior.java:55) at org.apache.wicket.Component.renderComponentTag(Component.java:3815) at org.apache.wicket.Component.renderComponent(Component.java:2469) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411) at org.apache.wicket.Component.render(Component.java:2315) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476) Can anyone please help. I need to get this working asap. rag...@directi wrote: > > I guess minis is part of wicketstuff-corei did not find any > CompoundBehavior in minis project. > > > martin-g wrote: >> >> see CompoundBehavior in wicketstuff-minis >> >> El lun, 16-02-2009 a las 03:06 -0800, rag...@directi escribió: >>> I am using an AjaxLink which has a javascript for onclick event now i >>> want to >>> add AjaxFormValidatingBehavior to this link on the same event "onclick" >>> ...i tried adding the same...but the link does not work properly...i >>> think >>> the actual javascript is replacedcan any one please help me how to >>> do >>> this... >>> >>> I had a look at IAjaxCallDecorator also.. If i hv understood >>> IAjaxCallDecorator correctly i can use it to append to the >>> javascriptso >>> one way could be to have a look at the javascript generated by >>> AjaxFormValidatingBehavior and append it to the javascript of >>> ajaxlink.but is there a cleaner way to do this.. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Adding-multiple-ajax-behaviour-on-same-event-tp22035278p22133352.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google map in openlayer
Hi Wadi, The google maps layer is of type OpenLayers.Layer.Google which is different from OpenLayers.Layer.WMS which the WMS class maps to. I've just submitted a patch for the open layers contrib that will support the Google layer type. See http://wicketstuff.org/jira/browse/WSCOL-3. Mike I havent tried it.. So im pretty sure that you need to do something extra inorder to get it working, I cant remember making it work with keys... What I usually do are to make it work with vanilla openlayers and then correct the contrib so it works.. And it should be pretty straight forward maybe...:? ("GMap", "http://maps.google.com/maps?key=";); Wadi Jalil Maluf wrote: Hi all!I'm trying to view google streets , hibryd and such with the openlayer control. I tryied to do something like this: HashMap map=new HashMap(); map.put("key","ABQIIA90LzdyYKLEpFMORIdF-RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQaV uF6E_lJuzkoBX3tk_znit-sjg"); Layer layer=new WMS("GMap", "http://maps.google.com/maps";, map); LinkedList lay=new LinkedList(); lay.add(layer); openLayersMap =new OpenLayersMap("map",lay,map); but it doesn't work L Did anyone succeed with this? Thanks in advance - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Martijn, Looking in the maven repo, it looks like there is also a version 1.4-SNAPSHOT of wicket-security. It has a build date of Nov 2008. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security/swarm/1.4-SNAPSHOT It looks like the following might be the source. But these commits are 7 months old (committed by mrmean), which doesn't match the Nov 2008 date in maven repo. It does have the comment "initial compilation against wicket 1.4 (no generics yet)". http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wicket-security-1.4-earlyaccess/ The wiki page clarifies that 1.3.0 is the latest stable release and that 1.3-SNAPSHOT is the 1.3.1 branch. The source for the 1.3.1 branch looks to be in: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security/ So perhaps there has already been some work done on porting wicket-security to 1.4. If you have any additional information, please share it! Thanks, Tauren On Fri, Feb 20, 2009 at 2:52 PM, Tauren Mills wrote: > Martijn, > > I'm in the planning and estimating stages for this project, so no I > haven't tried it out. I was hoping to hear from someone who has to > help give me an idea of how much effort will be involved. Of course, > I will be giving it a try as well, I just haven't yet. > > Thanks! > Tauren > > > On Fri, Feb 20, 2009 at 2:46 PM, Martijn Dashorst > wrote: >> Our company is quite invested in swarm/wasp (Maurice was a friend and >> co-worker). Our current projects are still 1.3 based, and several >> swarm/wasp based projects will move to wicket 1.4 as it becomes final. >> Chances are we'll need to fix swarm/wasp as well, and invest into that >> when that happens. >> >> What doesn't work with swarm/wasp in wicket 1.4? Did you try it out? >> >> Martijn >> >> On Fri, Feb 20, 2009 at 11:08 PM, Tauren Mills wrote: >>> Jeremy, >>> >>> Thanks for the response. I apologize for touching on a sensitive >>> subject like this, but I was unaware of the circumstances. My >>> condolences to anyone who knew Maurice. >>> >>> It really does look like Wicket-security, and in particular version >>> 1.3.1 might be the right solution for my application. Are there >>> people out there who are using it in your applications? Do you have >>> any plans for how to migrate to wicket 1.4, or have you already >>> attempted doing so? How much effort was involved? >>> >>> I wouldn't mind helping move wicket security forward, but I'm not sure >>> if I have the technical expertise to lead the project. I'm somewhat >>> proficient with wicket 1.3, but am still just dabbling with 1.4. >>> >>> Thanks again, >>> Tauren >>> >>> >>> On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson >>> wrote: I think since Maurice's death, there has not been much concrete discussion as to the future of it. I suppose it needs a leader to pick it up and run with it (and I nominate Nino :) http://www.nabble.com/Future-of-Wicket-Security--td19176506.html http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills wrote: > Does anyone know the current status of the wicket-security project? > It looks like there has been no activity in svn for close to a year. > And it is unclear if it will work with wicket 1.4. What is the > preferred tool today for implementing a roles-based authorization and > authentication system with wicket 1.4? > > Right now I only need wicket-based security, but may need to secure > webservices as well in the future, and understand that swarm 1.3.1 was > working to add that. In my application, users will be assigned > multiple roles. All users will see the same "main page", but users > with certain roles need to be able to see additional tabs, more > content panels, as well as be able to view and edit appropriate > content based on roles. > > So I'm trying to determine a security implementation for an upcoming > project and have been researching the options available. I've found > the following approaches: > > Wicket Auth Roles > wicket-auth-roles-1.4-rc2.jar > Roles support seems quite limited > > Wicket Security (SWARM and WASP) > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 > Looks powerful, but not sure if it works with 1.4 and if support is > going to continue. > > Wicket Security + ACEGI > http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo > Not sure about this one > > Wicket Auth Roles plus Spring Security > Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ > Looks clean and simple, but I thought I read spring security was very > much based on the RE
Re: Is possible to have two pages in parallel ?
Thanks Igor. I added this line to the constructor of my WebPage opened in a new browser : super(Session.get().createAutoPageMap()); > you should open each window in a different pagemap or/and enable > automatic multi window support in wicket > > -igor > > > > On Fri, Feb 20, 2009 at 2:07 PM, Nicolas Labrot > wrote: >> Hello, >> >> >> I'm currently creating an images repository website. I have added a link >> on >> each image to open a new browser window with the user selected image and >> some specific controls. >> >> The user can open n images windows (ie. browser tabs), close their and go >> back to the main window. >> >> This is currently implemented with a Link (and a _blank target) and a >> setResponsePage(mypage) on the onClick event. >> >> >> When I do this with the following scenarii : open a new image window, go >> back to the main window and do same ajax action >> I got this exception : >> >> >> WicketMessage: Fragment: No markup stream found for providing markup >> container [MarkupContainer [Component id = rows]]. Fragment: >> [MarkupContainer [Component id = gridFragment]] >> >> Root cause: >> >> org.apache.wicket.markup.MarkupNotFoundException: Fragment: No markup >> stream found for providing markup container [MarkupContainer [Component >> id >> = rows]]. Fragment: [MarkupContainer [Component id = gridFragment]] >> at >> org.apache.wicket.markup.html.panel.Fragment.onComponentTagBody(Fragment.java:207) >> at org.apache.wicket.Component.renderComponent(Component.java:2557) >> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) >> at org.apache.wicket.Component.render(Component.java:2382) >> at >> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) >> at >> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) >> at >> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) >> at org.apache.wicket.Component.renderComponent(Component.java:2557) >> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) >> at org.apache.wicket.Component.render(Component.java:2382) >> at org.apache.wicket.Component.renderComponent(Component.java:2497) >> >> >> I think it is normal. Wicket thinks he is in the image window. >> >> But does Wicket can handle multi window and how ? >> >> >> Thanks for your help! >> >> >> Nicolas >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: No get method defined for class error
the ddc assumes your model.bind() is the list of items to select from, which you conveniently overwrite after constructing the DDC. Read the javadoc for each constructor parameter... then provide the readonly model as a constructor parameter. Martijn On Sat, Feb 21, 2009 at 12:03 AM, rjilani wrote: > > Hi: guys I am getting "No get method defined for class RegisteredUser > expression: countryList" when I try to execute this code > > registeredUser = new RegisteredUser(); >Address address = new Address(); >registeredUser.setAddress(address); >model = new CompoundPropertyModel(registeredUser); >setModel(model); >add(new TextField("firstName", model.bind("firstName"))); >add(new TextField("lastName", model.bind("lastName"))); >add(new TextField("userName", model.bind("userName"))); >add(new TextField("emailAddress", model.bind("email"))); >add(new PasswordTextField("password", model.bind("password"))); > > >DropDownChoice countryList = new DropDownChoice("countryList", > model.bind("address.country")); >countryList.setChoices(new AbstractReadOnlyModel() { > >public Object getObject() { >List list = null; >try { > >} >}); > > I don't understand why the errors happens at DropDownChoice even though the > model object has a complex property address that in turn has a property > called country. I am not sure what I am missing here > > Thanks, > RJ > > > -- > View this message in context: > http://www.nabble.com/No-get-method-defined-for-class-error-tp22130142p22130142.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SSL pages and links
Hi, I need to secure some pages as well as providing a login link that uses HTTPS. I read thru the document http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html but it seems there are several approaches and various source code some of which doesn't compile. I am using wicket 1.4 with generics support. Can someone please share with me there working configuration for setting secure links and pages? Also this is such a critical piece of functionality for any enterprise site that maybe one of the wicket gurus could cleanup the documentation or even provide classes as part of the core wicket code to do this kind of thing. For the record, I tried the very last approach "Edit (Wicket 1.3.x) alternative:", but it seems to ignore my components that are not pages that are annotated with @RequireSSL (e.g. I created a SecureBookmarkablePageLink that extends BookmarkablePageLink and has the annotation at the top) Thanks, Jason -- View this message in context: http://www.nabble.com/SSL-pages-and-links-tp22130162p22130162.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
No get method defined for class error
Hi: guys I am getting "No get method defined for class RegisteredUser expression: countryList" when I try to execute this code registeredUser = new RegisteredUser(); Address address = new Address(); registeredUser.setAddress(address); model = new CompoundPropertyModel(registeredUser); setModel(model); add(new TextField("firstName", model.bind("firstName"))); add(new TextField("lastName", model.bind("lastName"))); add(new TextField("userName", model.bind("userName"))); add(new TextField("emailAddress", model.bind("email"))); add(new PasswordTextField("password", model.bind("password"))); DropDownChoice countryList = new DropDownChoice("countryList", model.bind("address.country")); countryList.setChoices(new AbstractReadOnlyModel() { public Object getObject() { List list = null; try { } }); I don't understand why the errors happens at DropDownChoice even though the model object has a complex property address that in turn has a property called country. I am not sure what I am missing here Thanks, RJ -- View this message in context: http://www.nabble.com/No-get-method-defined-for-class-error-tp22130142p22130142.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Martijn, I'm in the planning and estimating stages for this project, so no I haven't tried it out. I was hoping to hear from someone who has to help give me an idea of how much effort will be involved. Of course, I will be giving it a try as well, I just haven't yet. Thanks! Tauren On Fri, Feb 20, 2009 at 2:46 PM, Martijn Dashorst wrote: > Our company is quite invested in swarm/wasp (Maurice was a friend and > co-worker). Our current projects are still 1.3 based, and several > swarm/wasp based projects will move to wicket 1.4 as it becomes final. > Chances are we'll need to fix swarm/wasp as well, and invest into that > when that happens. > > What doesn't work with swarm/wasp in wicket 1.4? Did you try it out? > > Martijn > > On Fri, Feb 20, 2009 at 11:08 PM, Tauren Mills wrote: >> Jeremy, >> >> Thanks for the response. I apologize for touching on a sensitive >> subject like this, but I was unaware of the circumstances. My >> condolences to anyone who knew Maurice. >> >> It really does look like Wicket-security, and in particular version >> 1.3.1 might be the right solution for my application. Are there >> people out there who are using it in your applications? Do you have >> any plans for how to migrate to wicket 1.4, or have you already >> attempted doing so? How much effort was involved? >> >> I wouldn't mind helping move wicket security forward, but I'm not sure >> if I have the technical expertise to lead the project. I'm somewhat >> proficient with wicket 1.3, but am still just dabbling with 1.4. >> >> Thanks again, >> Tauren >> >> >> On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson >> wrote: >>> I think since Maurice's death, there has not been much concrete discussion >>> as to the future of it. I suppose it needs a leader to pick it up and run >>> with it (and I nominate Nino :) >>> >>> http://www.nabble.com/Future-of-Wicket-Security--td19176506.html >>> http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills wrote: >>> Does anyone know the current status of the wicket-security project? It looks like there has been no activity in svn for close to a year. And it is unclear if it will work with wicket 1.4. What is the preferred tool today for implementing a roles-based authorization and authentication system with wicket 1.4? Right now I only need wicket-based security, but may need to secure webservices as well in the future, and understand that swarm 1.3.1 was working to add that. In my application, users will be assigned multiple roles. All users will see the same "main page", but users with certain roles need to be able to see additional tabs, more content panels, as well as be able to view and edit appropriate content based on roles. So I'm trying to determine a security implementation for an upcoming project and have been researching the options available. I've found the following approaches: Wicket Auth Roles wicket-auth-roles-1.4-rc2.jar Roles support seems quite limited Wicket Security (SWARM and WASP) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 Looks powerful, but not sure if it works with 1.4 and if support is going to continue. Wicket Security + ACEGI http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo Not sure about this one Wicket Auth Roles plus Spring Security Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Looks clean and simple, but I thought I read spring security was very much based on the RESTfulness of things, which doesn't necessarily work all that well with wicket. Never used it, so maybe I'm mistaken. Wicket in Action book Uses a simple, but custom implementation. I would consider going with a custom solution too if the other options don't pan out. Any other solutions I don't know about? I'm all ears if anyone has recommendations for my use case. I'm leaning toward wicket security, but am concerned about the lack of activity. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.5 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >
Re: Is possible to have two pages in parallel ?
you should open each window in a different pagemap or/and enable automatic multi window support in wicket -igor On Fri, Feb 20, 2009 at 2:07 PM, Nicolas Labrot wrote: > Hello, > > > I'm currently creating an images repository website. I have added a link on > each image to open a new browser window with the user selected image and > some specific controls. > > The user can open n images windows (ie. browser tabs), close their and go > back to the main window. > > This is currently implemented with a Link (and a _blank target) and a > setResponsePage(mypage) on the onClick event. > > > When I do this with the following scenarii : open a new image window, go > back to the main window and do same ajax action > I got this exception : > > > WicketMessage: Fragment: No markup stream found for providing markup > container [MarkupContainer [Component id = rows]]. Fragment: > [MarkupContainer [Component id = gridFragment]] > > Root cause: > > org.apache.wicket.markup.MarkupNotFoundException: Fragment: No markup > stream found for providing markup container [MarkupContainer [Component id > = rows]]. Fragment: [MarkupContainer [Component id = gridFragment]] > at > org.apache.wicket.markup.html.panel.Fragment.onComponentTagBody(Fragment.java:207) > at org.apache.wicket.Component.renderComponent(Component.java:2557) > at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) > at org.apache.wicket.Component.render(Component.java:2382) > at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) > at > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) > at > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) > at org.apache.wicket.Component.renderComponent(Component.java:2557) > at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) > at org.apache.wicket.Component.render(Component.java:2382) > at org.apache.wicket.Component.renderComponent(Component.java:2497) > > > I think it is normal. Wicket thinks he is in the image window. > > But does Wicket can handle multi window and how ? > > > Thanks for your help! > > > Nicolas > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Brill, At the moment, I just don't know. But I will certainly take your comment to heart. I do have the feeling that this app will need more than wicket-auth-roles can provide. Thanks, Tauren On Fri, Feb 20, 2009 at 2:37 PM, Brill Pappin wrote: > Every time I think I want to move up from wicket-auth-roles, I realize that > its YAGNI and never do. > that said, that are times when auth-roles is a pain, but thats always > because its written so its not easily extendable. > > My advice would be "do you actually need such fine grained control over > security ot he site, that you can't do it via a role?". > > - Brill > > On 20-Feb-09, at 5:08 PM, Tauren Mills wrote: > >> Jeremy, >> >> Thanks for the response. I apologize for touching on a sensitive >> subject like this, but I was unaware of the circumstances. My >> condolences to anyone who knew Maurice. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Our company is quite invested in swarm/wasp (Maurice was a friend and co-worker). Our current projects are still 1.3 based, and several swarm/wasp based projects will move to wicket 1.4 as it becomes final. Chances are we'll need to fix swarm/wasp as well, and invest into that when that happens. What doesn't work with swarm/wasp in wicket 1.4? Did you try it out? Martijn On Fri, Feb 20, 2009 at 11:08 PM, Tauren Mills wrote: > Jeremy, > > Thanks for the response. I apologize for touching on a sensitive > subject like this, but I was unaware of the circumstances. My > condolences to anyone who knew Maurice. > > It really does look like Wicket-security, and in particular version > 1.3.1 might be the right solution for my application. Are there > people out there who are using it in your applications? Do you have > any plans for how to migrate to wicket 1.4, or have you already > attempted doing so? How much effort was involved? > > I wouldn't mind helping move wicket security forward, but I'm not sure > if I have the technical expertise to lead the project. I'm somewhat > proficient with wicket 1.3, but am still just dabbling with 1.4. > > Thanks again, > Tauren > > > On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson > wrote: >> I think since Maurice's death, there has not been much concrete discussion >> as to the future of it. I suppose it needs a leader to pick it up and run >> with it (and I nominate Nino :) >> >> http://www.nabble.com/Future-of-Wicket-Security--td19176506.html >> http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills wrote: >> >>> Does anyone know the current status of the wicket-security project? >>> It looks like there has been no activity in svn for close to a year. >>> And it is unclear if it will work with wicket 1.4. What is the >>> preferred tool today for implementing a roles-based authorization and >>> authentication system with wicket 1.4? >>> >>> Right now I only need wicket-based security, but may need to secure >>> webservices as well in the future, and understand that swarm 1.3.1 was >>> working to add that. In my application, users will be assigned >>> multiple roles. All users will see the same "main page", but users >>> with certain roles need to be able to see additional tabs, more >>> content panels, as well as be able to view and edit appropriate >>> content based on roles. >>> >>> So I'm trying to determine a security implementation for an upcoming >>> project and have been researching the options available. I've found >>> the following approaches: >>> >>> Wicket Auth Roles >>> wicket-auth-roles-1.4-rc2.jar >>> Roles support seems quite limited >>> >>> Wicket Security (SWARM and WASP) >>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security >>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 >>> Looks powerful, but not sure if it works with 1.4 and if support is >>> going to continue. >>> >>> Wicket Security + ACEGI >>> http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo >>> Not sure about this one >>> >>> Wicket Auth Roles plus Spring Security >>> Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ >>> Looks clean and simple, but I thought I read spring security was very >>> much based on the RESTfulness of things, which doesn't necessarily >>> work all that well with wicket. Never used it, so maybe I'm mistaken. >>> >>> Wicket in Action book >>> Uses a simple, but custom implementation. I would consider going with >>> a custom solution too if the other options don't pan out. >>> >>> Any other solutions I don't know about? I'm all ears if anyone has >>> recommendations for my use case. I'm leaning toward wicket security, >>> but am concerned about the lack of activity. >>> >>> Thanks, >>> Tauren >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Every time I think I want to move up from wicket-auth-roles, I realize that its YAGNI and never do. that said, that are times when auth-roles is a pain, but thats always because its written so its not easily extendable. My advice would be "do you actually need such fine grained control over security ot he site, that you can't do it via a role?". - Brill On 20-Feb-09, at 5:08 PM, Tauren Mills wrote: Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael wrote: > Hi Tauren > > I've done something similar.. Have no trouble with.. > > Disclaimer, below code are really ugly and I need to clean it up... > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Status of Wicket-Security (SWARM and WASP)?
Jeremy, Thanks for the response. I apologize for touching on a sensitive subject like this, but I was unaware of the circumstances. My condolences to anyone who knew Maurice. It really does look like Wicket-security, and in particular version 1.3.1 might be the right solution for my application. Are there people out there who are using it in your applications? Do you have any plans for how to migrate to wicket 1.4, or have you already attempted doing so? How much effort was involved? I wouldn't mind helping move wicket security forward, but I'm not sure if I have the technical expertise to lead the project. I'm somewhat proficient with wicket 1.3, but am still just dabbling with 1.4. Thanks again, Tauren On Fri, Feb 20, 2009 at 1:56 PM, Jeremy Thomerson wrote: > I think since Maurice's death, there has not been much concrete discussion > as to the future of it. I suppose it needs a leader to pick it up and run > with it (and I nominate Nino :) > > http://www.nabble.com/Future-of-Wicket-Security--td19176506.html > http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills wrote: > >> Does anyone know the current status of the wicket-security project? >> It looks like there has been no activity in svn for close to a year. >> And it is unclear if it will work with wicket 1.4. What is the >> preferred tool today for implementing a roles-based authorization and >> authentication system with wicket 1.4? >> >> Right now I only need wicket-based security, but may need to secure >> webservices as well in the future, and understand that swarm 1.3.1 was >> working to add that. In my application, users will be assigned >> multiple roles. All users will see the same "main page", but users >> with certain roles need to be able to see additional tabs, more >> content panels, as well as be able to view and edit appropriate >> content based on roles. >> >> So I'm trying to determine a security implementation for an upcoming >> project and have been researching the options available. I've found >> the following approaches: >> >> Wicket Auth Roles >> wicket-auth-roles-1.4-rc2.jar >> Roles support seems quite limited >> >> Wicket Security (SWARM and WASP) >> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security >> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 >> Looks powerful, but not sure if it works with 1.4 and if support is >> going to continue. >> >> Wicket Security + ACEGI >> http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo >> Not sure about this one >> >> Wicket Auth Roles plus Spring Security >> Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ >> Looks clean and simple, but I thought I read spring security was very >> much based on the RESTfulness of things, which doesn't necessarily >> work all that well with wicket. Never used it, so maybe I'm mistaken. >> >> Wicket in Action book >> Uses a simple, but custom implementation. I would consider going with >> a custom solution too if the other options don't pan out. >> >> Any other solutions I don't know about? I'm all ears if anyone has >> recommendations for my use case. I'm leaning toward wicket security, >> but am concerned about the lack of activity. >> >> Thanks, >> Tauren >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Is possible to have two pages in parallel ?
Hello, I'm currently creating an images repository website. I have added a link on each image to open a new browser window with the user selected image and some specific controls. The user can open n images windows (ie. browser tabs), close their and go back to the main window. This is currently implemented with a Link (and a _blank target) and a setResponsePage(mypage) on the onClick event. When I do this with the following scenarii : open a new image window, go back to the main window and do same ajax action I got this exception : WicketMessage: Fragment: No markup stream found for providing markup container [MarkupContainer [Component id = rows]]. Fragment: [MarkupContainer [Component id = gridFragment]] Root cause: org.apache.wicket.markup.MarkupNotFoundException: Fragment: No markup stream found for providing markup container [MarkupContainer [Component id = rows]]. Fragment: [MarkupContainer [Component id = gridFragment]] at org.apache.wicket.markup.html.panel.Fragment.onComponentTagBody(Fragment.java:207) at org.apache.wicket.Component.renderComponent(Component.java:2557) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2382) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510) at org.apache.wicket.Component.renderComponent(Component.java:2557) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2382) at org.apache.wicket.Component.renderComponent(Component.java:2497) I think it is normal. Wicket thinks he is in the image window. But does Wicket can handle multi window and how ? Thanks for your help! Nicolas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Flash Chart Display problem
Have you tried this ? http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html Maarten On Fri, Feb 20, 2009 at 5:42 PM, newbieabc wrote: > > Hi, > I am trying to add a flash chart into an existing web page with a form in > it, but for some reason it won't display when the page loads, instead it > displays when the submit button of the form is clicked. > > I'm not sure why that happens, no errors occur, but every time the page > loads, an empty white space shows below the form, and once the submit > button > is clicked it the chart replaces it. > > I've used SWFObject with help from the wiki on adding Javascript to wicket. > > Any suggestions would be great. > > Thanks > > -- > View this message in context: > http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22121552.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Status of Wicket-Security (SWARM and WASP)?
I think since Maurice's death, there has not been much concrete discussion as to the future of it. I suppose it needs a leader to pick it up and run with it (and I nominate Nino :) http://www.nabble.com/Future-of-Wicket-Security--td19176506.html http://www.nabble.com/In-memoriam:-Maurice-Marrink-td18813738.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 20, 2009 at 3:48 PM, Tauren Mills wrote: > Does anyone know the current status of the wicket-security project? > It looks like there has been no activity in svn for close to a year. > And it is unclear if it will work with wicket 1.4. What is the > preferred tool today for implementing a roles-based authorization and > authentication system with wicket 1.4? > > Right now I only need wicket-based security, but may need to secure > webservices as well in the future, and understand that swarm 1.3.1 was > working to add that. In my application, users will be assigned > multiple roles. All users will see the same "main page", but users > with certain roles need to be able to see additional tabs, more > content panels, as well as be able to view and edit appropriate > content based on roles. > > So I'm trying to determine a security implementation for an upcoming > project and have been researching the options available. I've found > the following approaches: > > Wicket Auth Roles > wicket-auth-roles-1.4-rc2.jar > Roles support seems quite limited > > Wicket Security (SWARM and WASP) > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 > Looks powerful, but not sure if it works with 1.4 and if support is > going to continue. > > Wicket Security + ACEGI > http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo > Not sure about this one > > Wicket Auth Roles plus Spring Security > Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ > Looks clean and simple, but I thought I read spring security was very > much based on the RESTfulness of things, which doesn't necessarily > work all that well with wicket. Never used it, so maybe I'm mistaken. > > Wicket in Action book > Uses a simple, but custom implementation. I would consider going with > a custom solution too if the other options don't pan out. > > Any other solutions I don't know about? I'm all ears if anyone has > recommendations for my use case. I'm leaning toward wicket security, > but am concerned about the lack of activity. > > Thanks, > Tauren > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket VoiceXML framework?
Nino, Yeah, I can see the value in what you are suggesting. It would be nice to be able to easily add vxml support for common functions with only high-level effort. I wish I had some time right now to help, but will keep an eye on where you are heading. Good luck! Tauren On Fri, Feb 20, 2009 at 2:33 AM, nino martinez wael wrote: > Replying Inline.. > > 2009/2/20 Tauren Mills > >> Nino, >> >> I've considered learning more about VoiceXML as well, but it would be >> for a future project and unfortunately I don't have time to help right >> now. If you do get it going, I'd certainly be interested in >> contributing down the road. > > No problem, it's nice to know that theres someone else out there :) > >> >> >> However, I am curious what your thoughts are in regards to this. What >> use-cases are you wanting to solve? Although my knowledge is *very* >> limited, wouldn't the output of VoiceXML be accomplished simply by >> getting wicket to output XML? And I believe that is easy enough to to >> with: >> >>@Override >>public String getMarkupType() { >>return "xml"; >>} >> >> Of course, I'm not clear how a "voice browser" (the recipient of the >> voicexml) sends responses back, which could be more challenging. > > > No you are completely right.. What I guess I would like where to put a > higher level of abstraction on, so the components do most of the foot work > for you. I guess you can compare this to my openlayers integration, it's > easy aswell to use openlayers with out the integration but the integration > makes it much easier, abstracting what you need todo to a much higher > level... > > As I dont know a bit about vxml, im not sure how much you could abstract but > I think there should be some room for it. Like being able to generate easy > logic etc. > > Something like this could defiantly be done alot simpler : > > http://pastebin.com/f21b6b3ea > > But im still wondering about the architecture... > > -regards Nino > > >> >> >> Tauren >> >> >> On Tue, Feb 17, 2009 at 6:09 AM, nino martinez wael >> wrote: >> > Hi Guys >> > >> > Would any of you be interested in creating a VoiceXML framework based on >> > wicket with me? I dont have much knowledge on vxml (im new to the domain) >> > but I have a little on wicket :) Im just thinking aloud right now, so >> theres >> > no scope or anything defined. >> > >> > >> > regards Nino >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Status of Wicket-Security (SWARM and WASP)?
Does anyone know the current status of the wicket-security project? It looks like there has been no activity in svn for close to a year. And it is unclear if it will work with wicket 1.4. What is the preferred tool today for implementing a roles-based authorization and authentication system with wicket 1.4? Right now I only need wicket-based security, but may need to secure webservices as well in the future, and understand that swarm 1.3.1 was working to add that. In my application, users will be assigned multiple roles. All users will see the same "main page", but users with certain roles need to be able to see additional tabs, more content panels, as well as be able to view and edit appropriate content based on roles. So I'm trying to determine a security implementation for an upcoming project and have been researching the options available. I've found the following approaches: Wicket Auth Roles wicket-auth-roles-1.4-rc2.jar Roles support seems quite limited Wicket Security (SWARM and WASP) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+1.3.1 Looks powerful, but not sure if it works with 1.4 and if support is going to continue. Wicket Security + ACEGI http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo Not sure about this one Wicket Auth Roles plus Spring Security Example: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Looks clean and simple, but I thought I read spring security was very much based on the RESTfulness of things, which doesn't necessarily work all that well with wicket. Never used it, so maybe I'm mistaken. Wicket in Action book Uses a simple, but custom implementation. I would consider going with a custom solution too if the other options don't pan out. Any other solutions I don't know about? I'm all ears if anyone has recommendations for my use case. I'm leaning toward wicket security, but am concerned about the lack of activity. Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: Troubles with Spring: bean of type X not found
Christian, The declared type of your "repository" field should be an interface (that PageRepository implements, in this case). In the Spiring config, your PageRepository is used as a class, so I guess it is not an interface. The proxy Wicket will inject is of the type of that interface, not (necessarily) of the implementation class. Does that make sense? Regards - Cemal http://jWeekend.com jWeekend christian.helmbold wrote: > > This is because of changes while writing my last email. Now all package > names are changed, but the error still occurs. > > Christian > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Troubles-with-Spring%3A-bean-of-type-X-not-found-tp22124921p22128992.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google map in openlayer
Hi Wadi I havent tried it.. So im pretty sure that you need to do something extra inorder to get it working, I cant remember making it work with keys... What I usually do are to make it work with vanilla openlayers and then correct the contrib so it works.. And it should be pretty straight forward maybe...:? ("GMap", "http://maps.google.com/maps?key=";); Wadi Jalil Maluf wrote: Hi all!I'm trying to view google streets , hibryd and such with the openlayer control. I tryied to do something like this: HashMap map=new HashMap(); map.put("key","ABQIIA90LzdyYKLEpFMORIdF-RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQaV uF6E_lJuzkoBX3tk_znit-sjg"); Layer layer=new WMS("GMap", "http://maps.google.com/maps";, map); LinkedList lay=new LinkedList(); lay.add(layer); openLayersMap =new OpenLayersMap("map",lay,map); but it doesn't work L Did anyone succeed with this? Thanks in advance - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: .html-templates compiler
On Tue, 17 Feb 2009, kan wrote: > I mean if you have a wicket:id="abc", it will generate class with... > emm... not sure, say method "getAbc()" which will return an object > which represents an element, so it can be bound to a Component. So, in > java-code you can use only elements which are actually exist in > html-markup. We do automatic tests for our Wicket components with WicketTester, and they pretty much do this kind of checking. And have other benefits besides :) Best wishes, Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.4 RC Stylesheet Reference Issue
see WICKET-1868, should be fixed in >rc2 -igor On Fri, Feb 20, 2009 at 11:18 AM, walnutmon wrote: > > One of my pages, for a reason unknown by me, has a different stylesheet > reference, which causes the page to have a screwed up display (no css)... > > I haven't been able to find any workaround to this issue, nor can I even > really figure out what is causing it, but the closest I've been able to find > is this year old JIRA issue... > > [jira] Commented: (WICKET-1307) autolinked resources have locale appended > > basically what should be style.css is in this particular page > style_en_US.css, which does not exist on my server. > > Thanks! > Justin > > -- > View this message in context: > http://www.nabble.com/1.4-RC-Stylesheet-Reference-Issue-tp22126040p22126040.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
1.4 RC Stylesheet Reference Issue
One of my pages, for a reason unknown by me, has a different stylesheet reference, which causes the page to have a screwed up display (no css)... I haven't been able to find any workaround to this issue, nor can I even really figure out what is causing it, but the closest I've been able to find is this year old JIRA issue... [jira] Commented: (WICKET-1307) autolinked resources have locale appended basically what should be style.css is in this particular page style_en_US.css, which does not exist on my server. Thanks! Justin -- View this message in context: http://www.nabble.com/1.4-RC-Stylesheet-Reference-Issue-tp22126040p22126040.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
StyleSheet References Incorrectly Have Language Appended
-- View this message in context: http://www.nabble.com/StyleSheet-References-Incorrectly-Have-Language-Appended-tp22126039p22126039.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WML + Wicket experiences?
Dammit.. I found this article: http://www.thewirelessfaq.com/why_does_a_normal_http_302_redirect_not_work_with_wap Talks something about redirects.. so I tried to set setRedirect(false); and it works now. Funny. Since I have hacked rid of 302 redirects because google don't like them: // Force 302 redirect status code into 301 'permanent redirect' Field statusField = HttpStatus.class.getDeclaredField("__responseLine"); statusField.setAccessible(true); Buffer[] responseLine = (Buffer[]) statusField.get(HttpStatus.class); byte[] bytes = responseLine[302].toString().replace("302", "301").getBytes(); responseLine[302] = new ByteArrayBuffer(bytes,0,bytes.length,Buffer.IMMUTABLE); Apparently wap don't like 301's either... or maybe there is something funny in the headers that it don't like. ** Martin 2009/2/20 Martin Makundi : > Hi! > > Currently my problem is that the Nokia3510i simulator does not react > properly to setResponsePage(WapMainPage.class). For some (yet unknown) > reason the requestcycle processes an empty request which results in > PageExpiredException: > > [RequestParameters componentPath=3:loginForm pageMapName=null > versionNumber=0 interfaceName=IFormSubmitListener componentId=null > behaviorId=null urlDepth=-1 parameters={} > onlyProcessIfPathActive=false] > > If I try the same pages with firefox it works fine, the > setResponsePage opens the WapMainPage.wml and it validates just fine. > I am begnnining to pull my hair now ... did you experience anything > like this? > > Here are some of my 'compositions', the login form is processed quite > fine and the session is intialized etc... but the > setResponsePage(WapMainPage.class) after successful login > (loginForm#onSubmit) does not work with the wap simulator: > > ::: > >add(loginForm = new LoginForm(true) { > /** > * @see > org.apache.wicket.markup.html.form.Form#onComponentTagBody(org.apache.wicket.markup.MarkupStream, > org.apache.wicket.markup.ComponentTag) > */ > @Override > protected void onComponentTagBody(MarkupStream markupStream, > ComponentTag openTag) { >renderComponentTagBody(markupStream, openTag); > } >}); >loginForm.setRenderBodyOnly(true); > > > : > > public class WapSubmitComponent extends Button { > private static final long serialVersionUID = 1L; > > /** > * @param id > * @param model > */ > public WapSubmitComponent(String id, IModel model) { >super(id, model); > } > > /** > * @param id > */ > public WapSubmitComponent(String id) { >super(id); > } > > /** > * @see > org.apache.wicket.markup.html.form.Button#onComponentTag(org.apache.wicket.markup.ComponentTag) > */ > @Override > protected void onComponentTag(ComponentTag tag) { >// nothing > } > > /** > * @see > org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream, > org.apache.wicket.markup.ComponentTag) > */ > @Override > protected void onComponentTagBody(MarkupStream markupStream, > ComponentTag openTag) { >super.onComponentTagBody(markupStream, openTag); >// Check whether to add tag body >if (getDefaultModelObject() != null) { > getResponse().write(getDefaultModelObject().toString()); >} >getResponse().write("\r\ngetResponse().write(getMethod()); >getResponse().write("\" href=\""); >getResponse().write(getForm().urlFor(IFormSubmitListener.INTERFACE)); >getResponse().write("\">\r\n"); >{ > // Indicate submitting form-component > writePostField(getInputName(), "true"); >} >{ > // Add other enabled form components > final Form wapForm = getForm(); > wapForm.visitFormComponentsPostOrder(new ValidationVisitor() > { >@Override >public void validate(final FormComponent formComponent) >{ > final Form form = formComponent.getForm(); > if (formComponent != WapSubmitComponent.this && form == > wapForm && form.isEnabled() && form.isEnableAllowed() && >form.isVisibleInHierarchy()) { >String name = formComponent.getInputName(); >writePostField(name, "$(" + name + ")"); > } >} > }); >} >getResponse().write("\r\n"); > } > > /** > * > */ > void writePostField(String name, String value) { >getResponse().write(" getResponse().write(name); >getResponse().write("\" value=\""); >getResponse().write(value); >getResponse().write("\"/>\r\n"); > } > > /** > * Gets the HTTP submit method that will appear in form markup. If > no method is specified in the > * template, "post" is the default. Note that the markup-declared > HTTP method may not correspond > * to the one actually used to submit the form; in an Ajax submit, > for example, JavaScript event > * handlers may submit the form with a "get" even when the form > method is declared as "post." > * Therefore t
Re: WML + Wicket experiences?
Hi! Currently my problem is that the Nokia3510i simulator does not react properly to setResponsePage(WapMainPage.class). For some (yet unknown) reason the requestcycle processes an empty request which results in PageExpiredException: [RequestParameters componentPath=3:loginForm pageMapName=null versionNumber=0 interfaceName=IFormSubmitListener componentId=null behaviorId=null urlDepth=-1 parameters={} onlyProcessIfPathActive=false] If I try the same pages with firefox it works fine, the setResponsePage opens the WapMainPage.wml and it validates just fine. I am begnnining to pull my hair now ... did you experience anything like this? Here are some of my 'compositions', the login form is processed quite fine and the session is intialized etc... but the setResponsePage(WapMainPage.class) after successful login (loginForm#onSubmit) does not work with the wap simulator: ::: add(loginForm = new LoginForm(true) { /** * @see org.apache.wicket.markup.html.form.Form#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { renderComponentTagBody(markupStream, openTag); } }); loginForm.setRenderBodyOnly(true); : public class WapSubmitComponent extends Button { private static final long serialVersionUID = 1L; /** * @param id * @param model */ public WapSubmitComponent(String id, IModel model) { super(id, model); } /** * @param id */ public WapSubmitComponent(String id) { super(id); } /** * @see org.apache.wicket.markup.html.form.Button#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { // nothing } /** * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); // Check whether to add tag body if (getDefaultModelObject() != null) { getResponse().write(getDefaultModelObject().toString()); } getResponse().write("\r\n\r\n"); { // Indicate submitting form-component writePostField(getInputName(), "true"); } { // Add other enabled form components final Form wapForm = getForm(); wapForm.visitFormComponentsPostOrder(new ValidationVisitor() { @Override public void validate(final FormComponent formComponent) { final Form form = formComponent.getForm(); if (formComponent != WapSubmitComponent.this && form == wapForm && form.isEnabled() && form.isEnableAllowed() && form.isVisibleInHierarchy()) { String name = formComponent.getInputName(); writePostField(name, "$(" + name + ")"); } } }); } getResponse().write("\r\n"); } /** * */ void writePostField(String name, String value) { getResponse().write(" \r\n"); } /** * Gets the HTTP submit method that will appear in form markup. If no method is specified in the * template, "post" is the default. Note that the markup-declared HTTP method may not correspond * to the one actually used to submit the form; in an Ajax submit, for example, JavaScript event * handlers may submit the form with a "get" even when the form method is declared as "post." * Therefore this method should not be considered a guarantee of the HTTP method used, but a * value for the markup only. Override if you have a requirement to alter this behavior. * * @return the submit method specified in markup. */ protected String getMethod() { String method = getMarkupAttributes().getString("method"); return (method != null) ? method : Form.METHOD_POST; } } ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
just had a deeper look at AbstractSingleChoice. looks as if it did exactly this when the ###.null string resource is empty. I will check that out tomorrow. Thank you guys :) jcompagner-2 wrote: > > override the getDefaultChoice() and generate a (yes > empty) > and the if selected is also empty generate > -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22125833.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
Sorry, just saw your message. Didn't know about the .null thing... quite confusing. I will try this tomorrow. Thanks a lot Martin Makundi wrote: > > DId you try setting the .null <- property value? If null > is valid then try .nullValid , see > http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/DropDownChoice.html > > ** > Martin > > 2009/2/20 pixologe : >> >> I tried overriding getDefaultChoice already, returning an empty string, >> this >> did not work, unfortunately. >> >> The 'Please choose one' option is not rendered, however the first >> 'normal' >> option gets selected instead. >> Also, inside AbstractSingleSelectChoice, there remains an empty string in >> the options list, letting my ChoiceRenderer stumble when it tries to >> interpret my idExpression :( >> >> If there are any more ideas regarding to this, please let me know. >> >> Thanks so far! >> >> btw.: nullValid is the correct 'Please choose one' string resource key >> >> >> >> Sergio García wrote: >>> >>> I guess that if you simply override the dropdownchoice i18n property >>> value >>> for that component/page with a plain "" it may work. >>> >>> DropDownChoice property key for "Please choose one" is "null", or at >>> least >>> i remember that. >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120404.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22125830.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Troubles with Spring: bean of type X not found
This is because of changes while writing my last email. Now all package names are changed, but the error still occurs. Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Troubles with Spring: bean of type X not found
[wicki.domain.PageRepository] not found missing com.helmbold ?! El vie, 20-02-2009 a las 17:25 +, Christian Helmbold escribió: > I try to use Wicket's Spring integration, but I get the following error: > > WicketMessage: Can't instantiate page using constructor public > wicki.WikiPage() > > Root cause: > java.lang.IllegalStateException: bean of type [wicki.domain.PageRepository] > not found > at > org.apache.wicket.spring.SpringBeanLocator.getBeanNameOfClass(SpringBeanLocator.java:109) > at > org.apache.wicket.spring.SpringBeanLocator.getBeanName(SpringBeanLocator.java:195) > at > org.apache.wicket.spring.SpringBeanLocator.isSingletonBean(SpringBeanLocator.java:135) > at > org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:92) > ... > > > WikiPage.java: > > public class WikiPage extends WebPage > { > @SpringBean > PageRepository repository; > private Page page = new Page(); > > > > accplicationContext.xml (Spring config): > > http://www.springframework.org/schema/beans"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >xsi:schemaLocation="http://www.springframework.org/schema/beans >http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";> > > class="com.helmbold.wicki.WickiApplication" >/> > > class="com.helmbold.wicki.domain.PageRepository"/> > >... > > > > > web.xml > > http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> > > WickiApplication > > org.apache.wicket.protocol.http.WicketFilter > > applicationFactoryClassName > > org.apache.wicket.spring.SpringWebApplicationFactory > > > > WickiApplication > /* > > > > > > org.springframework.web.context.ContextLoaderListener > > > contextConfigLocation > classpath:applicationContext.xml > > > > > > Any ideas what's wrong? > > Thanks > Christian > > -- > http://www.groovy-forum.de > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Troubles with Spring: bean of type X not found
I try to use Wicket's Spring integration, but I get the following error: WicketMessage: Can't instantiate page using constructor public wicki.WikiPage() Root cause: java.lang.IllegalStateException: bean of type [wicki.domain.PageRepository] not found at org.apache.wicket.spring.SpringBeanLocator.getBeanNameOfClass(SpringBeanLocator.java:109) at org.apache.wicket.spring.SpringBeanLocator.getBeanName(SpringBeanLocator.java:195) at org.apache.wicket.spring.SpringBeanLocator.isSingletonBean(SpringBeanLocator.java:135) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:92) ... WikiPage.java: public class WikiPage extends WebPage { @SpringBean PageRepository repository; private Page page = new Page(); accplicationContext.xml (Spring config): http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";> ... web.xml http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> WickiApplication org.apache.wicket.protocol.http.WicketFilter applicationFactoryClassName org.apache.wicket.spring.SpringWebApplicationFactory WickiApplication /* org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationContext.xml Any ideas what's wrong? Thanks Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Where to disable a child component
Thanks for the response, That is also a way of doing it but I have too many child components and it is easy to just write something like @Override protected void onRender( MarkupStream stream ){ childComponent1.setEnabled( isEnabled() ); } tawus On Fri, Feb 20, 2009 at 9:44 PM, Jeremy Thomerson wrote: > Why not let you child components override isEnabled() and have part of the > logic in it check if their parent is enabled? > > On Thu, Feb 19, 2009 at 11:25 PM, taha siddiqi wrote: > >> Hi, >> >> I think I resolved it. I used FormComponentPanel.onRender( MarkupStream ) >> >> regards >> tawus >> >> On Fri, Feb 20, 2009 at 10:42 AM, taha siddiqi >> wrote: >> > Hi, >> > >> > I have a FormComponentPanel with child components and i need to >> > disable the children when FormComponentPanel is disabled( isEnabled() >> > == false ). >> > I can do that in onBeforeRender() but the problem is that I have to >> > take the decision on whether to disable the FormComponentPanel in my >> > IComponentOnBeforeRenderListener.beforeRender() and as this function >> > is called after FormComponentPanel.onBeforeRender() I am not able >> > to disable the child components. >> > >> > Please help >> > >> > thanks in advance >> > tawus >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Jeremy Thomerson > http://www.wickettraining.com > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: HTML creation tool
I have never used DreamWeaver or extensively used any other wysiwyg html/css tool, but I have looked at Amaya (http://www.w3.org/Amaya/) once, and in that whole hour I tried it, it looked interesting. So far I have managed to let other people do the dirty (read: design) work. Edwin Ansicodd wrote: Thank you for your post! Yes, I would imagine a WYSIWYG editor would be best. Are there any open source or freeware tools you like? christian.helmbold wrote: Any css based HTML creation tool recommended by Wicket users? Are you looking for a so called WYSIWYG editor? Adobe Dreamweaver is my favorite. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Flash Chart Display problem
Hi, I am trying to add a flash chart into an existing web page with a form in it, but for some reason it won't display when the page loads, instead it displays when the submit button of the form is clicked. I'm not sure why that happens, no errors occur, but every time the page loads, an empty white space shows below the form, and once the submit button is clicked it the chart replaces it. I've used SWFObject with help from the wiki on adding Javascript to wicket. Any suggestions would be great. Thanks -- View this message in context: http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22121552.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
I really agree with what Johan said :) swiss german is another language, and far not a trivial one :) On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner wrote: if you would do it in a time that i am in the swiss then i could also attend But that is now and then +/- 1 time in 2 months.. (this week i am in Bern) I dont have a problem if it was in real german, but it cant be in that swiss german (which has i my eyes nothing to do with german anyway) because that i really cant follow at all. its complete garbage.. ;) johan On Fri, Feb 20, 2009 at 12:17, Thomas Mäder wrote: Whoa! The silence is deafening! Since I've had one answer in a week, I guess there is just no interest. Oh well... Thomas On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder wrote: Hi Folks, I would be willing to organize a Wicket meetup in Switzerland if there is enough interest. I propose a meeting somewhere in Zürich. The format I imagine is that participants could (don't have to) shortly (15-20min.) present their work with Wicket (demos are always nice). That would be followed by general mingling with drinks & snacks. For the date, I would shoot for the week starting March 16, 17:30-20:30h. Would you be interested in participating in/hosting/sponsoring such a thing? Either reply here or to me privately, and if there is enough interest, I'll set up a thing on the wiki. Thomas -- Thomas Mäder Wicket & Eclipse Consulting www.devotek-it.ch -- Wicket & Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
First of all, could this be the coolest list ever? May be because Nino is on it. I would love to be in driving distance but Bs. As. is too far... Though starting to beg my boss for a quick trip (as we work for a Zürich based company)... We could have one here, and extend our invitation to all, specially Nino, Igor, Elco, Johan, and many more. Could make an Azado (as we are as widely known for our good meat as maradona, tango and other semi-cultural references about my country). Anyways nagging will continue, f(t) On Fri, Feb 20, 2009 at 1:23 PM, Johan Compagner wrote: > that was the whole idea, now you spoiled it! ;( > > On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson > wrote: > > > I've seen plenty of programming language flame wars, but it looks like > > Johan > > is starting a REAL language flamewar. :) > > > > On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner > >wrote: > > > > > if you would do it in a time that i am in the swiss then i could also > > > attend > > > But that is now and then +/- 1 time in 2 months.. > > > (this week i am in Bern) > > > > > > I dont have a problem if it was in real german, but it cant be in that > > > swiss > > > german (which has i my eyes nothing to do with german anyway) > > > because that i really cant follow at all. its complete garbage.. ;) > > > > > > johan > > > > > > > > > On Fri, Feb 20, 2009 at 12:17, Thomas Mäder > > > >wrote: > > > > > > > Whoa! The silence is deafening! Since I've had one answer in a week, > I > > > > guess > > > > there is just no interest. Oh well... > > > > > > > > Thomas > > > > > > > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > > > > wrote: > > > > > > > > > Hi Folks, > > > > > > > > > > I would be willing to organize a Wicket meetup in Switzerland if > > there > > > is > > > > > enough interest. I propose a meeting somewhere in Zürich. The > format > > I > > > > > imagine is that participants could (don't have to) shortly > > (15-20min.) > > > > > present their work with Wicket (demos are always nice). That would > be > > > > > followed by general mingling with drinks & snacks. > > > > > For the date, I would shoot for the week starting March 16, > > > 17:30-20:30h. > > > > > Would you be interested in participating in/hosting/sponsoring such > a > > > > > thing? Either reply here or to me privately, and if there is enough > > > > > interest, I'll set up a thing on the wiki. > > > > > > > > > > Thomas > > > > > > > > > > -- > > > > > Thomas Mäder > > > > > Wicket & Eclipse Consulting > > > > > www.devotek-it.ch > > > > > > > > > > > > > > > > > > > > > -- > > > > Wicket & Eclipse Consulting > > > > www.devotek-it.ch > > > > thomasmaeder.blogspot.com > > > > > > > > > > > > > > > -- > > Jeremy Thomerson > > http://www.wickettraining.com > > >
Re: Wicket meetup in Switzerland?
that was the whole idea, now you spoiled it! ;( On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson wrote: > I've seen plenty of programming language flame wars, but it looks like > Johan > is starting a REAL language flamewar. :) > > On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner >wrote: > > > if you would do it in a time that i am in the swiss then i could also > > attend > > But that is now and then +/- 1 time in 2 months.. > > (this week i am in Bern) > > > > I dont have a problem if it was in real german, but it cant be in that > > swiss > > german (which has i my eyes nothing to do with german anyway) > > because that i really cant follow at all. its complete garbage.. ;) > > > > johan > > > > > > On Fri, Feb 20, 2009 at 12:17, Thomas Mäder > >wrote: > > > > > Whoa! The silence is deafening! Since I've had one answer in a week, I > > > guess > > > there is just no interest. Oh well... > > > > > > Thomas > > > > > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > > > wrote: > > > > > > > Hi Folks, > > > > > > > > I would be willing to organize a Wicket meetup in Switzerland if > there > > is > > > > enough interest. I propose a meeting somewhere in Zürich. The format > I > > > > imagine is that participants could (don't have to) shortly > (15-20min.) > > > > present their work with Wicket (demos are always nice). That would be > > > > followed by general mingling with drinks & snacks. > > > > For the date, I would shoot for the week starting March 16, > > 17:30-20:30h. > > > > Would you be interested in participating in/hosting/sponsoring such a > > > > thing? Either reply here or to me privately, and if there is enough > > > > interest, I'll set up a thing on the wiki. > > > > > > > > Thomas > > > > > > > > -- > > > > Thomas Mäder > > > > Wicket & Eclipse Consulting > > > > www.devotek-it.ch > > > > > > > > > > > > > > > > -- > > > Wicket & Eclipse Consulting > > > www.devotek-it.ch > > > thomasmaeder.blogspot.com > > > > > > > > > -- > Jeremy Thomerson > http://www.wickettraining.com >
Re: Where to disable a child component
Why not let you child components override isEnabled() and have part of the logic in it check if their parent is enabled? On Thu, Feb 19, 2009 at 11:25 PM, taha siddiqi wrote: > Hi, > > I think I resolved it. I used FormComponentPanel.onRender( MarkupStream ) > > regards > tawus > > On Fri, Feb 20, 2009 at 10:42 AM, taha siddiqi > wrote: > > Hi, > > > > I have a FormComponentPanel with child components and i need to > > disable the children when FormComponentPanel is disabled( isEnabled() > > == false ). > > I can do that in onBeforeRender() but the problem is that I have to > > take the decision on whether to disable the FormComponentPanel in my > > IComponentOnBeforeRenderListener.beforeRender() and as this function > > is called after FormComponentPanel.onBeforeRender() I am not able > > to disable the child components. > > > > Please help > > > > thanks in advance > > tawus > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jeremy Thomerson http://www.wickettraining.com
Re: Wicket meetup in Switzerland?
I've seen plenty of programming language flame wars, but it looks like Johan is starting a REAL language flamewar. :) On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner wrote: > if you would do it in a time that i am in the swiss then i could also > attend > But that is now and then +/- 1 time in 2 months.. > (this week i am in Bern) > > I dont have a problem if it was in real german, but it cant be in that > swiss > german (which has i my eyes nothing to do with german anyway) > because that i really cant follow at all. its complete garbage.. ;) > > johan > > > On Fri, Feb 20, 2009 at 12:17, Thomas Mäder >wrote: > > > Whoa! The silence is deafening! Since I've had one answer in a week, I > > guess > > there is just no interest. Oh well... > > > > Thomas > > > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > > wrote: > > > > > Hi Folks, > > > > > > I would be willing to organize a Wicket meetup in Switzerland if there > is > > > enough interest. I propose a meeting somewhere in Zürich. The format I > > > imagine is that participants could (don't have to) shortly (15-20min.) > > > present their work with Wicket (demos are always nice). That would be > > > followed by general mingling with drinks & snacks. > > > For the date, I would shoot for the week starting March 16, > 17:30-20:30h. > > > Would you be interested in participating in/hosting/sponsoring such a > > > thing? Either reply here or to me privately, and if there is enough > > > interest, I'll set up a thing on the wiki. > > > > > > Thomas > > > > > > -- > > > Thomas Mäder > > > Wicket & Eclipse Consulting > > > www.devotek-it.ch > > > > > > > > > > > -- > > Wicket & Eclipse Consulting > > www.devotek-it.ch > > thomasmaeder.blogspot.com > > > -- Jeremy Thomerson http://www.wickettraining.com
Re: Wicket meetup in Switzerland?
if you would do it in a time that i am in the swiss then i could also attend But that is now and then +/- 1 time in 2 months.. (this week i am in Bern) I dont have a problem if it was in real german, but it cant be in that swiss german (which has i my eyes nothing to do with german anyway) because that i really cant follow at all. its complete garbage.. ;) johan On Fri, Feb 20, 2009 at 12:17, Thomas Mäder wrote: > Whoa! The silence is deafening! Since I've had one answer in a week, I > guess > there is just no interest. Oh well... > > Thomas > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > wrote: > > > Hi Folks, > > > > I would be willing to organize a Wicket meetup in Switzerland if there is > > enough interest. I propose a meeting somewhere in Zürich. The format I > > imagine is that participants could (don't have to) shortly (15-20min.) > > present their work with Wicket (demos are always nice). That would be > > followed by general mingling with drinks & snacks. > > For the date, I would shoot for the week starting March 16, 17:30-20:30h. > > Would you be interested in participating in/hosting/sponsoring such a > > thing? Either reply here or to me privately, and if there is enough > > interest, I'll set up a thing on the wiki. > > > > Thomas > > > > -- > > Thomas Mäder > > Wicket & Eclipse Consulting > > www.devotek-it.ch > > > > > > -- > Wicket & Eclipse Consulting > www.devotek-it.ch > thomasmaeder.blogspot.com >
intercept security check in wicket-auth-roles
I'm trying to integrate wicket-auth-roles with a token based SSO security system. I can't see where I can intercept the authentication sequence and "auto-login" the user based on the token. Essentially i want to catch the authentication request and authorize the user based on a token before they are redirected to the login page. Does anyone have a clue how I might go about doing that? Unfortunately most places I've looked to over ride the sequence are marked final for some reason, which makes things difficult. I'm actually at the point now where I'm thinking of writing a new auth- roles based on the current lib, but I thought I'd ask first. ... and no, I don't want to use the other more complex security lib... auth-roles is very nice and simple to use and suitable for most applications. - Brill Pappin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Solved: DropDownChoice without preselection and without 'Please choose one'
I have found a solution for this after all, not quite elegant, but works like charm :) new ListMultipleChoice("select",new Model(new ArrayList(0)), new PropertyModel(this, "choices"), renderer) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.getAttributes().remove("multiple"); } }; The trick is to use the multiselect component (because this one neither requires preselection nor nullValid option. Having an empty list in the model means nothing is preselected. Since I do not want it to be multi-selectable, I removed the attribute by overwriting onComponentTag. Thats it :) -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120439.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
override the getDefaultChoice() and generate a (yes empty) and the if selected is also empty generate On Fri, Feb 20, 2009 at 15:31, pixologe wrote: > > I tried overriding getDefaultChoice already, returning an empty string, > this > did not work, unfortunately. > > The 'Please choose one' option is not rendered, however the first 'normal' > option gets selected instead. > Also, inside AbstractSingleSelectChoice, there remains an empty string in > the options list, letting my ChoiceRenderer stumble when it tries to > interpret my idExpression :( > > If there are any more ideas regarding to this, please let me know. > > Thanks so far! > > btw.: nullValid is the correct 'Please choose one' string resource key > > > > Sergio García wrote: > > > > I guess that if you simply override the dropdownchoice i18n property > value > > for that component/page with a plain "" it may work. > > > > DropDownChoice property key for "Please choose one" is "null", or at > least > > i remember that. > > > > > > > > -- > View this message in context: > http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120404.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: DropDownChoice without preselection and without 'Please choose one'
DId you try setting the .null <- property value? If null is valid then try .nullValid , see http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/DropDownChoice.html ** Martin 2009/2/20 pixologe : > > I tried overriding getDefaultChoice already, returning an empty string, this > did not work, unfortunately. > > The 'Please choose one' option is not rendered, however the first 'normal' > option gets selected instead. > Also, inside AbstractSingleSelectChoice, there remains an empty string in > the options list, letting my ChoiceRenderer stumble when it tries to > interpret my idExpression :( > > If there are any more ideas regarding to this, please let me know. > > Thanks so far! > > btw.: nullValid is the correct 'Please choose one' string resource key > > > > Sergio García wrote: >> >> I guess that if you simply override the dropdownchoice i18n property value >> for that component/page with a plain "" it may work. >> >> DropDownChoice property key for "Please choose one" is "null", or at least >> i remember that. >> >> >> > > -- > View this message in context: > http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120404.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
I tried overriding getDefaultChoice already, returning an empty string, this did not work, unfortunately. The 'Please choose one' option is not rendered, however the first 'normal' option gets selected instead. Also, inside AbstractSingleSelectChoice, there remains an empty string in the options list, letting my ChoiceRenderer stumble when it tries to interpret my idExpression :( If there are any more ideas regarding to this, please let me know. Thanks so far! btw.: nullValid is the correct 'Please choose one' string resource key Sergio García wrote: > > I guess that if you simply override the dropdownchoice i18n property value > for that component/page with a plain "" it may work. > > DropDownChoice property key for "Please choose one" is "null", or at least > i remember that. > > > -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120404.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
I guess that if you simply override the dropdownchoice i18n property value for that component/page with a plain "" it may work. DropDownChoice property key for "Please choose one" is "null", or at least i remember that. -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120391.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form - ajax submit and validation
Yes, that is right...I'mit is obvious :-) thank you all for your help! V. 2009/2/20 Martin Voigt > You can set the form processing mode per button: > > submitButton.setDefaultFormProcessing(true); > cancelButton.setDefaultFormProcessing(false); > > So if the user clicks submitButton, the form is validated, if she > clicks cancelButton, it is not. > > Martin > > > > 2009/2/20 Vitek Tajzich : > > Wellsometimes is a good idea to read a documentation :-) > > > > I found on wicket's wiki that I have to update feedback panel. This > should > > be done like this: > > > > protected void onError(final AjaxRequestTarget target, final Form form) { > >// or update the feedback panel > >target.addComponent(form.getPage().get("feedback")); > > } > > > > > > And It is work! :-) > > > > So, If you have only one submit button, do not set defaultFormProcessing > = > > false, because this will remove validation and do not forget to update > > feedbackpanel like in an example above. > > > > One more question remains. What If I have more than one submit buttons > and I > > have to set defaultFormProcessing = false. How can I call validation? > > > > thx, > > > > V. > > > > 2009/2/20 Vitek Tajzich > > > >> well it happend inside of FormI cannot do anything > >> > >> 2009/2/20 Martijn Dashorst > >> > >> perhaps add the feedback panel to the ajax request target? > >>> > >>> Martijn > >>> > >>> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich > >>> wrote: > >>> > Hi, > >>> > > >>> > that was my mistake. I set to submit button defaultFormProcessing = > >>> false > >>> > and that is why validation haven't been processed. > >>> > > >>> > Now validations are processed but I'm getting this warning: > >>> > Component-targetted feedback message was left unrendered. This could > be > >>> > because you are missing a FeedbackPanel on the page. > >>> > > >>> > And no validation message is displayed. > >>> > > >>> > But when I use non ajax based submit then message are shown > correctly. > >>> > > >>> > piece of code... > >>> > > >>> > IndicatingAjaxButton orderSubmit = new > >>> IndicatingAjaxButton("order-submit", > >>> > orderForm) { > >>> > > >>> >private static final long serialVersionUID = > >>> > -3779837727856697099L; > >>> > > >>> >/** {...@inheritdoc} */ > >>> >@Override > >>> >protected void onSubmit(AjaxRequestTarget target, Form > >>> form) > >>> > { > >>> > > >>> >//some bussines logic here > >>> >} > >>> >}; > >>> > > >>> > > >>> > > >>> > 2009/2/19 Matt Welch > >>> > > >>> >> > >>> >> I think more information is needed before someone can provide a > useful > >>> >> response: > >>> >> > >>> >> > >>> >> Are you initializing the AjaxButton with the form (in the the > >>> constructor > >>> >> of > >>> >> the AjaxButton or with setter)? > >>> >> Is the form data being submitted? If not, this would indicate a > problem > >>> >> somewhere other than in the validation itself. > >>> >> Can you show your actual code? > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> Vitek.Tajzich wrote: > >>> >> > > >>> >> > Hi guys, > >>> >> > > >>> >> > I have form and AjaxButton as submit button for the form. If I use > >>> non > >>> >> > ajax > >>> >> > button validation is called and input fields are validated. But If > I > >>> use > >>> >> > AjaxButton then validation are passedWhat should I do to get > form > >>> >> > validated even If I use ajax button? > >>> >> > > >>> >> > thank you, > >>> >> > > >>> >> > Vitek > >>> >> > > >>> >> > > >>> >> > >>> >> -- > >>> >> View this message in context: > >>> >> > >>> > http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html > >>> >> Sent from the Wicket - User mailing list archive at Nabble.com. > >>> >> > >>> > > >>> > >>> > >>> > >>> -- > >>> Become a Wicket expert, learn from the best: http://wicketinaction.com > >>> Apache Wicket 1.3.5 is released > >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: DropDownChoice without preselection and without 'Please choose one'
you can use setNullValid(true) method 2009/2/20 pixologe > > Hi everybody, > > I might just be out of it or missing a clue - I'd just like to have a > DropDownChoice without preselection and without 'Please choose one' option. > Is this possible? How can I achieve this? > > Thanks in advance + regards > -- > View this message in context: > http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120191.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fatih Mehmet UCAR, Software Engineer Espresso Education Limited Riverside Studios, Crisp Road, London W6 9RL
DropDownChoice without preselection and without 'Please choose one'
Hi everybody, I might just be out of it or missing a clue - I'd just like to have a DropDownChoice without preselection and without 'Please choose one' option. Is this possible? How can I achieve this? Thanks in advance + regards -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120191.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form - ajax submit and validation
You can set the form processing mode per button: submitButton.setDefaultFormProcessing(true); cancelButton.setDefaultFormProcessing(false); So if the user clicks submitButton, the form is validated, if she clicks cancelButton, it is not. Martin 2009/2/20 Vitek Tajzich : > Wellsometimes is a good idea to read a documentation :-) > > I found on wicket's wiki that I have to update feedback panel. This should > be done like this: > > protected void onError(final AjaxRequestTarget target, final Form form) { >// or update the feedback panel >target.addComponent(form.getPage().get("feedback")); > } > > > And It is work! :-) > > So, If you have only one submit button, do not set defaultFormProcessing = > false, because this will remove validation and do not forget to update > feedbackpanel like in an example above. > > One more question remains. What If I have more than one submit buttons and I > have to set defaultFormProcessing = false. How can I call validation? > > thx, > > V. > > 2009/2/20 Vitek Tajzich > >> well it happend inside of FormI cannot do anything >> >> 2009/2/20 Martijn Dashorst >> >> perhaps add the feedback panel to the ajax request target? >>> >>> Martijn >>> >>> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich >>> wrote: >>> > Hi, >>> > >>> > that was my mistake. I set to submit button defaultFormProcessing = >>> false >>> > and that is why validation haven't been processed. >>> > >>> > Now validations are processed but I'm getting this warning: >>> > Component-targetted feedback message was left unrendered. This could be >>> > because you are missing a FeedbackPanel on the page. >>> > >>> > And no validation message is displayed. >>> > >>> > But when I use non ajax based submit then message are shown correctly. >>> > >>> > piece of code... >>> > >>> > IndicatingAjaxButton orderSubmit = new >>> IndicatingAjaxButton("order-submit", >>> > orderForm) { >>> > >>> >private static final long serialVersionUID = >>> > -3779837727856697099L; >>> > >>> >/** {...@inheritdoc} */ >>> >@Override >>> >protected void onSubmit(AjaxRequestTarget target, Form >>> form) >>> > { >>> > >>> >//some bussines logic here >>> >} >>> >}; >>> > >>> > >>> > >>> > 2009/2/19 Matt Welch >>> > >>> >> >>> >> I think more information is needed before someone can provide a useful >>> >> response: >>> >> >>> >> >>> >> Are you initializing the AjaxButton with the form (in the the >>> constructor >>> >> of >>> >> the AjaxButton or with setter)? >>> >> Is the form data being submitted? If not, this would indicate a problem >>> >> somewhere other than in the validation itself. >>> >> Can you show your actual code? >>> >> >>> >> >>> >> >>> >> >>> >> Vitek.Tajzich wrote: >>> >> > >>> >> > Hi guys, >>> >> > >>> >> > I have form and AjaxButton as submit button for the form. If I use >>> non >>> >> > ajax >>> >> > button validation is called and input fields are validated. But If I >>> use >>> >> > AjaxButton then validation are passedWhat should I do to get form >>> >> > validated even If I use ajax button? >>> >> > >>> >> > thank you, >>> >> > >>> >> > Vitek >>> >> > >>> >> > >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html >>> >> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >> >>> > >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.5 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
Hi there, I would propose to meet in Geneva!! ;) Vitaly On Fri, Feb 20, 2009 at 1:57 PM, jWeekend wrote: > > Thomas, > > This is partly because, strange as it may seem, not everyone that develops > with Wicket uses this list. We have clients and students that have come over > for jWeekend Wicket courses from Switzerland and for our > http://jWeekend.com/dev/LWUGReg/ London Wicket Events - I have never seen > them post here, although they really enjoy Wicket. If it looks like you'll > be going ahead let me know if you like me to contact them about your idea. > > You are also more than welcome to visit us at our next London Wicket Event > (which will be on April 1st, at Google - details to be confirmed) that has > gone from strength to strength in nearly 2 years since jWeekend founded it > with Al Maw, but we also experienced quiet moments, especially during the > first 6 months. In fact, despite regularly getting up to 50 people > registering these days, it's very rare that our guests will post here > afterwards saying how much they enjoy our events so others will know and > come along, even though they tell us they love our events and keep coming > back and wish we arranged more of them! We also offer to help people with > their commercial/work projects during our events, I think that helped us > build some momentum in the early days. The moral of the story is don't give > up - you need to start somewhere, even if there's just a handful of you. > > What you may also find difficult at the start is getting enough people to > prepare and deliver presentations that your guests would be willing to > travel for. At the start it was just Al and I giving presentations, with > maybe one other speaker if we were lucky. It took me several months to get > that ball rolling smoothly, and even now we try to arrange things with our > presenters several months in advance and jWeekend help with their > presentation preparation and occasionally, cover their travel/accommodation > expenses. We give everyone Pizza too, and are almost always the last to > leave the pub after the event! I think some of our hard-core regulars feel > it's just a good night out, as we seem to attract a really good bunch of > people - and, from my experience, that is representative of the Wicket > community/users generally. > > Let me know if you think we can help with what you're starting up in > Switzerland. > > Regards - Cemal > http://jWeekend.com jWeekend > > > > > Thomas Mäder-2 wrote: >> >> Whoa! The silence is deafening! Since I've had one answer in a week, I >> guess >> there is just no interest. Oh well... >> >> Thomas >> >> On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder >> wrote: >> >>> Hi Folks, >>> >>> I would be willing to organize a Wicket meetup in Switzerland if there is >>> enough interest. I propose a meeting somewhere in Zürich. The format I >>> imagine is that participants could (don't have to) shortly (15-20min.) >>> present their work with Wicket (demos are always nice). That would be >>> followed by general mingling with drinks & snacks. >>> For the date, I would shoot for the week starting March 16, 17:30-20:30h. >>> Would you be interested in participating in/hosting/sponsoring such a >>> thing? Either reply here or to me privately, and if there is enough >>> interest, I'll set up a thing on the wiki. >>> >>> Thomas >>> >>> -- >>> Thomas Mäder >>> Wicket & Eclipse Consulting >>> www.devotek-it.ch >>> >> >> >> >> -- >> Wicket & Eclipse Consulting >> www.devotek-it.ch >> thomasmaeder.blogspot.com >> >> > > -- > View this message in context: > http://www.nabble.com/Wicket-meetup-in-Switzerland--tp22035241p22120034.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Google map in openlayer
Hi all!I'm trying to view google streets , hibryd and such with the openlayer control. I tryied to do something like this: HashMap map=new HashMap(); map.put("key","ABQIIA90LzdyYKLEpFMORIdF-RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQaV uF6E_lJuzkoBX3tk_znit-sjg"); Layer layer=new WMS("GMap", "http://maps.google.com/maps";, map); LinkedList lay=new LinkedList(); lay.add(layer); openLayersMap =new OpenLayersMap("map",lay,map); but it doesn't work L Did anyone succeed with this? Thanks in advance
Re: Wicket meetup in Switzerland?
Thomas, This is partly because, strange as it may seem, not everyone that develops with Wicket uses this list. We have clients and students that have come over for jWeekend Wicket courses from Switzerland and for our http://jWeekend.com/dev/LWUGReg/ London Wicket Events - I have never seen them post here, although they really enjoy Wicket. If it looks like you'll be going ahead let me know if you like me to contact them about your idea. You are also more than welcome to visit us at our next London Wicket Event (which will be on April 1st, at Google - details to be confirmed) that has gone from strength to strength in nearly 2 years since jWeekend founded it with Al Maw, but we also experienced quiet moments, especially during the first 6 months. In fact, despite regularly getting up to 50 people registering these days, it's very rare that our guests will post here afterwards saying how much they enjoy our events so others will know and come along, even though they tell us they love our events and keep coming back and wish we arranged more of them! We also offer to help people with their commercial/work projects during our events, I think that helped us build some momentum in the early days. The moral of the story is don't give up - you need to start somewhere, even if there's just a handful of you. What you may also find difficult at the start is getting enough people to prepare and deliver presentations that your guests would be willing to travel for. At the start it was just Al and I giving presentations, with maybe one other speaker if we were lucky. It took me several months to get that ball rolling smoothly, and even now we try to arrange things with our presenters several months in advance and jWeekend help with their presentation preparation and occasionally, cover their travel/accommodation expenses. We give everyone Pizza too, and are almost always the last to leave the pub after the event! I think some of our hard-core regulars feel it's just a good night out, as we seem to attract a really good bunch of people - and, from my experience, that is representative of the Wicket community/users generally. Let me know if you think we can help with what you're starting up in Switzerland. Regards - Cemal http://jWeekend.com jWeekend Thomas Mäder-2 wrote: > > Whoa! The silence is deafening! Since I've had one answer in a week, I > guess > there is just no interest. Oh well... > > Thomas > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > wrote: > >> Hi Folks, >> >> I would be willing to organize a Wicket meetup in Switzerland if there is >> enough interest. I propose a meeting somewhere in Zürich. The format I >> imagine is that participants could (don't have to) shortly (15-20min.) >> present their work with Wicket (demos are always nice). That would be >> followed by general mingling with drinks & snacks. >> For the date, I would shoot for the week starting March 16, 17:30-20:30h. >> Would you be interested in participating in/hosting/sponsoring such a >> thing? Either reply here or to me privately, and if there is enough >> interest, I'll set up a thing on the wiki. >> >> Thomas >> >> -- >> Thomas Mäder >> Wicket & Eclipse Consulting >> www.devotek-it.ch >> > > > > -- > Wicket & Eclipse Consulting > www.devotek-it.ch > thomasmaeder.blogspot.com > > -- View this message in context: http://www.nabble.com/Wicket-meetup-in-Switzerland--tp22035241p22120034.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form - ajax submit and validation
Wellsometimes is a good idea to read a documentation :-) I found on wicket's wiki that I have to update feedback panel. This should be done like this: protected void onError(final AjaxRequestTarget target, final Form form) { // or update the feedback panel target.addComponent(form.getPage().get("feedback")); } And It is work! :-) So, If you have only one submit button, do not set defaultFormProcessing = false, because this will remove validation and do not forget to update feedbackpanel like in an example above. One more question remains. What If I have more than one submit buttons and I have to set defaultFormProcessing = false. How can I call validation? thx, V. 2009/2/20 Vitek Tajzich > well it happend inside of FormI cannot do anything > > 2009/2/20 Martijn Dashorst > > perhaps add the feedback panel to the ajax request target? >> >> Martijn >> >> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich >> wrote: >> > Hi, >> > >> > that was my mistake. I set to submit button defaultFormProcessing = >> false >> > and that is why validation haven't been processed. >> > >> > Now validations are processed but I'm getting this warning: >> > Component-targetted feedback message was left unrendered. This could be >> > because you are missing a FeedbackPanel on the page. >> > >> > And no validation message is displayed. >> > >> > But when I use non ajax based submit then message are shown correctly. >> > >> > piece of code... >> > >> > IndicatingAjaxButton orderSubmit = new >> IndicatingAjaxButton("order-submit", >> > orderForm) { >> > >> >private static final long serialVersionUID = >> > -3779837727856697099L; >> > >> >/** {...@inheritdoc} */ >> >@Override >> >protected void onSubmit(AjaxRequestTarget target, Form >> form) >> > { >> > >> >//some bussines logic here >> >} >> >}; >> > >> > >> > >> > 2009/2/19 Matt Welch >> > >> >> >> >> I think more information is needed before someone can provide a useful >> >> response: >> >> >> >> >> >> Are you initializing the AjaxButton with the form (in the the >> constructor >> >> of >> >> the AjaxButton or with setter)? >> >> Is the form data being submitted? If not, this would indicate a problem >> >> somewhere other than in the validation itself. >> >> Can you show your actual code? >> >> >> >> >> >> >> >> >> >> Vitek.Tajzich wrote: >> >> > >> >> > Hi guys, >> >> > >> >> > I have form and AjaxButton as submit button for the form. If I use >> non >> >> > ajax >> >> > button validation is called and input fields are validated. But If I >> use >> >> > AjaxButton then validation are passedWhat should I do to get form >> >> > validated even If I use ajax button? >> >> > >> >> > thank you, >> >> > >> >> > Vitek >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> > >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.5 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >
Re: drop down default item string is erroneous
See d...@. Some property encoding issues seem to have krept in... Should be solved by now. Martijn On Thu, Feb 19, 2009 at 6:50 PM, Igor Vaynberg wrote: > i guess this will have to wait for martijn or matej or someone else > with a mac/unix to debug. > > -igor > > On Thu, Feb 19, 2009 at 9:44 AM, rossputin wrote: >> >> Mac OSX Leopard, with all the latest updates. >> Java 1.5.0_16 >> Maven 2.0.9 >> >> Wicket 1.4-SNAPSHOT revision : 745941 >> >> Regards, >> >> Ross >> >> >> igor.vaynberg wrote: >>> >>> im guessing this is one of those issues that doesnt show up on >>> windows. what platform are you working on? >>> >>> -igor >>> >>> On Thu, Feb 19, 2009 at 8:38 AM, rossputin wrote: Hi. Sorry the complete print out is... Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Tests run: 768, Failures: 3, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. svn info gives, URL: http://svn.apache.org/repos/asf/wicket/trunk I just ran svn up, and then mvn clean install. Regards, Ross igor.vaynberg wrote: > > i just ran the tests and > > Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 > > also, your log shows that there are 0 errors and failures, so how come > you have failed tests listed below? > > -igor > > On Thu, Feb 19, 2009 at 7:53 AM, rossputin > wrote: >> >> Hi guys, hoping you can help. >> >> At some point during the last couple of days, possibly today, I >> received >> some dependency updates, and now all of my DropDownChoice components >> are >> displaying a nonsense string for the default item instead of 'Choose >> One'. >> I typically point to the 1.4-SNAPSHOT dependency for Wicket. >> >> Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest >> updates as below: >> >> Running org.apache.wicket.resource.BundleStringResourceLoaderTest >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 >> sec >> >> Results : >> >> Failed tests: >> >> testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) >> >> testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) >> >> testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) >> >> Regards, >> >> Ross. >> >> >> -- >> View this message in context: >> http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22104407.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22105594.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsu
Re: Storing user entity in session?
There are several types of safety: - making sure they are detached? - making sure they are only used inside one thread? - ... Detaching outside of the wicket component tree's default model slot is not automatic: you have to do that yourself (override ondetach for example). AFAIK we'll be looking into automatic detachment in 1.5 when an IDetachable is somewhere inside the component tree as a field, and drop the default model slot altogether. Thread safety is another issue where you are responsible yourself: if you pass your imodel to another thread (e.g. to generate a report) then it is better to clone or create a new model instance and pass the copy to the thread. Otherwise you'll run into issues where one thread wants to detach, and another wants to attach. Also, the entity instance can only be attached to one EntityManager. You are responsible for that. Martijn On Fri, Feb 20, 2009 at 12:58 PM, Martin Voigt wrote: > Hi Martijn, > > your reply reminds me of a question I always wanted to ask: is it safe > to use IModels outside of components with their defined lifecycle and > getDefaultModel() method? We'd like to use models everywhere we have > to retrieve domain objects, be it configuration or, as in this thread, > retrieving session data. And since we don't use transactions directly > from the weblayer but call stateless session beans to do the work and > keep the tx management in another layer/ container (EJB) and use > mostly detached entites, is it safe then to use LDMs directly from the > session object? > > Thanks in advance, > Martin > > 2009/2/20 Martijn Dashorst : >> move the IModel to your custom request cycle, otherwise you'll >> run into the issues I've pointed out earlier where on thread detaches >> while another attaches. Storing entities in your session when your >> interested in maintaining them with your entitymanager is BAD, even if >> you put it in a LDM. >> >> Martijn >> >> On Fri, Feb 20, 2009 at 11:05 AM, nino martinez wael >> wrote: >>> Hi Tauren >>> >>> I've done something similar.. Have no trouble with.. >>> >>> Disclaimer, below code are really ugly and I need to clean it up... >>> >>> >>> package zeuzgroup.application; >>> >>> import org.apache.wicket.Request; >>> import org.apache.wicket.authentication.AuthenticatedWebSession; >>> import org.apache.wicket.authorization.strategies.role.Roles; >>> import org.apache.wicket.injection.web.InjectorHolder; >>> import org.apache.wicket.spring.injection.annot.SpringBean; >>> >>> import zeuzgroup.application.models.BaseEntityDetachableModel; >>> import zeuzgroup.core.Person; >>> import zeuzgroup.core.provider.IDBDao; >>> import zeuzgroup.core.user.UserType; >>> >>> public class ZeuzSession extends AuthenticatedWebSession { >>> >>>private boolean authorized = false; >>> >>>private BaseEntityDetachableModel personModel; >>> >>>@SpringBean(name = "dBDao") >>>protected IDBDao dBDao; >>> >>>protected ZeuzSession(Request request) { >>>super(request); >>>InjectorHolder.getInjector().inject(this); >>> >>>} >>> >>>@Override >>>protected void detach() { >>>super.detach(); >>>if (personModel != null) { >>>personModel.detach(); >>>} >>>} >>> >>>public boolean isAuthorized() { >>>return authorized; >>>} >>> >>>public void setAuthorized(boolean authorized) { >>> >>>this.authorized = authorized; >>>if (authorized) { >>>getPerson().setLoggedIn(true); >>>} >>>// Call below too! >>>signIn(getPerson().getAlias(), getPerson().getPassword()); >>>} >>> >>>public Person getPerson() { >>>if (personModel != null) { >>> >>>Person person = (Person) personModel.getObject(); >>>if (person == null) { >>>person = new Person(); >>>person.setUserType(UserType.Guest); >>> >>>} >>>return person; >>>} else { >>>Person person = new Person(); >>>person.setUserType(UserType.Guest); >>>return person; >>>} >>>} >>> >>>public BaseEntityDetachableModel getPersonModel() { >>>return personModel; >>>} >>> >>>public void setPerson(Person person) { >>>if (personModel != null) { >>>personModel.setBaseEntityDetachableModel(person); >>>} else { >>>personModel = new BaseEntityDetachableModel(person); >>>} >>>} >>> >>>public void onBeforeDestroy() { >>>getPerson().setLoggedIn(false); >>>} >>> >>>@Override >>>public boolean authenticate(String username, String password) { >>> >>>Person person = new Person(); >>>person.setAlias(username); >>>person.setPassword(password); >>> >>>return dBDao.authorizePerson(person); >>>} >>> >>>@Override >>>public Roles getRoles() { >>>// If the user is signed in, they have these roles >>>/
Re: form - ajax submit and validation
well it happend inside of FormI cannot do anything 2009/2/20 Martijn Dashorst > perhaps add the feedback panel to the ajax request target? > > Martijn > > On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich > wrote: > > Hi, > > > > that was my mistake. I set to submit button defaultFormProcessing = false > > and that is why validation haven't been processed. > > > > Now validations are processed but I'm getting this warning: > > Component-targetted feedback message was left unrendered. This could be > > because you are missing a FeedbackPanel on the page. > > > > And no validation message is displayed. > > > > But when I use non ajax based submit then message are shown correctly. > > > > piece of code... > > > > IndicatingAjaxButton orderSubmit = new > IndicatingAjaxButton("order-submit", > > orderForm) { > > > >private static final long serialVersionUID = > > -3779837727856697099L; > > > >/** {...@inheritdoc} */ > >@Override > >protected void onSubmit(AjaxRequestTarget target, Form > form) > > { > > > >//some bussines logic here > >} > >}; > > > > > > > > 2009/2/19 Matt Welch > > > >> > >> I think more information is needed before someone can provide a useful > >> response: > >> > >> > >> Are you initializing the AjaxButton with the form (in the the > constructor > >> of > >> the AjaxButton or with setter)? > >> Is the form data being submitted? If not, this would indicate a problem > >> somewhere other than in the validation itself. > >> Can you show your actual code? > >> > >> > >> > >> > >> Vitek.Tajzich wrote: > >> > > >> > Hi guys, > >> > > >> > I have form and AjaxButton as submit button for the form. If I use non > >> > ajax > >> > button validation is called and input fields are validated. But If I > use > >> > AjaxButton then validation are passedWhat should I do to get form > >> > validated even If I use ajax button? > >> > > >> > thank you, > >> > > >> > Vitek > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > > > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.5 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Yet another Wicket quick start application...
Sure. On Fri, Feb 20, 2009 at 2:45 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > If your on it Richard, could you put in the wicket merchandise shop aswell? > cafepress.com/apachewicket > > 2009/2/19 Richard Allen > > > I like the wickethub.org idea! Thank you for your contribution. > > > > I'm assuming the site doesn't crawl the Internet looking for Wicket > things. > > If I'm correct, then people have to post there. Which means people have > to > > know about it, both to benefit from it and to contribute to it. I see no > > mention of it on wicket.apache.org or the Wicket wiki. > > > > On Thu, Feb 19, 2009 at 11:03 AM, francisco treacy < > > francisco.tre...@gmail.com> wrote: > > > > > hi richard, > > > > > > part of your concerns are addressed in wickethub. i launched it a few > > > weeks ago but time is scarce to maintain it (anyway, it is open source > > > so anyone can access the code / contribute). > > > > > > there are still issues and lots of things we want to do. i'm thinking > > > over the domain model and this will likely change to making the whole > > > idea more useful. > > > > > > hopefully this will only get better in the near future. > > > > > > francisco > > > > > > -- > > > http://wickethub.org > > > > > > > > > > > > On Thu, Feb 19, 2009 at 2:10 PM, Richard Allen > > > wrote: > > > > True. And I have no problem with that. I'll update the wiki with what > I > > > know > > > > before the end of the week. > > > > > > > > However, I believe the good management of projects is in large part > > what > > > > makes them a success. > > > > > > > > > > > > On Wed, Feb 18, 2009 at 11:54 AM, Martijn Dashorst < > > > > martijn.dasho...@gmail.com> wrote: > > > > > > > >> Most pages you refer to (apart from those that are in the > > > >> wicket.apache.org style) are WIKI pages. This means *you* can > modify > > > >> them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI. > > > >> > > > >> If you want to contribute text to the main wicket site, you can > attach > > > >> it to a JIRA issue. etc. > > > >> > > > >> Martijn > > > >> > > > >> > - > > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > >> For additional commands, e-mail: users-h...@wicket.apache.org > > > >> > > > >> > > > > > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > >
Re: Storing user entity in session?
Hi Martijn, your reply reminds me of a question I always wanted to ask: is it safe to use IModels outside of components with their defined lifecycle and getDefaultModel() method? We'd like to use models everywhere we have to retrieve domain objects, be it configuration or, as in this thread, retrieving session data. And since we don't use transactions directly from the weblayer but call stateless session beans to do the work and keep the tx management in another layer/ container (EJB) and use mostly detached entites, is it safe then to use LDMs directly from the session object? Thanks in advance, Martin 2009/2/20 Martijn Dashorst : > move the IModel to your custom request cycle, otherwise you'll > run into the issues I've pointed out earlier where on thread detaches > while another attaches. Storing entities in your session when your > interested in maintaining them with your entitymanager is BAD, even if > you put it in a LDM. > > Martijn > > On Fri, Feb 20, 2009 at 11:05 AM, nino martinez wael > wrote: >> Hi Tauren >> >> I've done something similar.. Have no trouble with.. >> >> Disclaimer, below code are really ugly and I need to clean it up... >> >> >> package zeuzgroup.application; >> >> import org.apache.wicket.Request; >> import org.apache.wicket.authentication.AuthenticatedWebSession; >> import org.apache.wicket.authorization.strategies.role.Roles; >> import org.apache.wicket.injection.web.InjectorHolder; >> import org.apache.wicket.spring.injection.annot.SpringBean; >> >> import zeuzgroup.application.models.BaseEntityDetachableModel; >> import zeuzgroup.core.Person; >> import zeuzgroup.core.provider.IDBDao; >> import zeuzgroup.core.user.UserType; >> >> public class ZeuzSession extends AuthenticatedWebSession { >> >>private boolean authorized = false; >> >>private BaseEntityDetachableModel personModel; >> >>@SpringBean(name = "dBDao") >>protected IDBDao dBDao; >> >>protected ZeuzSession(Request request) { >>super(request); >>InjectorHolder.getInjector().inject(this); >> >>} >> >>@Override >>protected void detach() { >>super.detach(); >>if (personModel != null) { >>personModel.detach(); >>} >>} >> >>public boolean isAuthorized() { >>return authorized; >>} >> >>public void setAuthorized(boolean authorized) { >> >>this.authorized = authorized; >>if (authorized) { >>getPerson().setLoggedIn(true); >>} >>// Call below too! >>signIn(getPerson().getAlias(), getPerson().getPassword()); >>} >> >>public Person getPerson() { >>if (personModel != null) { >> >>Person person = (Person) personModel.getObject(); >>if (person == null) { >>person = new Person(); >>person.setUserType(UserType.Guest); >> >>} >>return person; >>} else { >>Person person = new Person(); >>person.setUserType(UserType.Guest); >>return person; >>} >>} >> >>public BaseEntityDetachableModel getPersonModel() { >>return personModel; >>} >> >>public void setPerson(Person person) { >>if (personModel != null) { >>personModel.setBaseEntityDetachableModel(person); >>} else { >>personModel = new BaseEntityDetachableModel(person); >>} >>} >> >>public void onBeforeDestroy() { >>getPerson().setLoggedIn(false); >>} >> >>@Override >>public boolean authenticate(String username, String password) { >> >>Person person = new Person(); >>person.setAlias(username); >>person.setPassword(password); >> >>return dBDao.authorizePerson(person); >>} >> >>@Override >>public Roles getRoles() { >>// If the user is signed in, they have these roles >>// user always are associated with a person >>return new Roles(getPerson().getUserType().toString()); >>} >> } >> >> >> 2009/2/20 Tauren Mills >> >>> The WIA book and other example apps I've found online often show a >>> User object being stored in the session: >>> >>> class BlogSession extends WebSession { >>> private User user; >>> } >>> >>> But does it make sense to do this if your User object is loaded from a >>> persistence layer (Hibernate) and can contain a large tree of >>> dependent objects? For instance, what if my User object has a >>> hierarchy like this: >>> >>> User >>> Name >>> Password >>> Set >>>Blog >>> Set >>>BlogEntry >>> Set >>> Set >>> >>> Would this store the entire hierarchy of blogs, tags, blog entries, >>> etc. into the session? I've been experimenting with storing an LDM >>> of the user in the session instead of the User directly: >>> >>> class BlogSession extends WebSession { >>> private DetachableUserModel userModel; >>> } >>> >>> But I'm getting Hibernate LazyInit errors. So it leaves
Re: Wicket meetup in Switzerland?
On the otherhand his complains got us to answer :) 2009/2/20 Martin Funk > Your commitment to this is too;-) > > Please don't get me wrong on this, but > be agile. Initiate something scaleable. > Do it in a way that it would be a success for you no matter how many people > come. > > Just don't start complaining before taking real action. > > mf > P.S.: I might be interested coming in from Frankfurt. Its always nice to > find a reason to travel to Zürich. > > > > 2009/2/20 Thomas Mäder > > > Whoa! The silence is deafening! Since I've had one answer in a week, I > > guess > > there is just no interest. Oh well... > > > > Thomas > > > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > > wrote: > > > > > Hi Folks, > > > > > > I would be willing to organize a Wicket meetup in Switzerland if there > is > > > enough interest. I propose a meeting somewhere in Zürich. The format I > > > imagine is that participants could (don't have to) shortly (15-20min.) > > > present their work with Wicket (demos are always nice). That would be > > > followed by general mingling with drinks & snacks. > > > For the date, I would shoot for the week starting March 16, > 17:30-20:30h. > > > Would you be interested in participating in/hosting/sponsoring such a > > > thing? Either reply here or to me privately, and if there is enough > > > interest, I'll set up a thing on the wiki. > > > > > > Thomas > > > > > > -- > > > Thomas Mäder > > > Wicket & Eclipse Consulting > > > www.devotek-it.ch > > > > > > > > > > > -- > > Wicket & Eclipse Consulting > > www.devotek-it.ch > > thomasmaeder.blogspot.com > > >
Re: Wicket meetup in Switzerland?
Your commitment to this is too;-) Please don't get me wrong on this, but be agile. Initiate something scaleable. Do it in a way that it would be a success for you no matter how many people come. Just don't start complaining before taking real action. mf P.S.: I might be interested coming in from Frankfurt. Its always nice to find a reason to travel to Zürich. 2009/2/20 Thomas Mäder > Whoa! The silence is deafening! Since I've had one answer in a week, I > guess > there is just no interest. Oh well... > > Thomas > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > wrote: > > > Hi Folks, > > > > I would be willing to organize a Wicket meetup in Switzerland if there is > > enough interest. I propose a meeting somewhere in Zürich. The format I > > imagine is that participants could (don't have to) shortly (15-20min.) > > present their work with Wicket (demos are always nice). That would be > > followed by general mingling with drinks & snacks. > > For the date, I would shoot for the week starting March 16, 17:30-20:30h. > > Would you be interested in participating in/hosting/sponsoring such a > > thing? Either reply here or to me privately, and if there is enough > > interest, I'll set up a thing on the wiki. > > > > Thomas > > > > -- > > Thomas Mäder > > Wicket & Eclipse Consulting > > www.devotek-it.ch > > > > > > -- > Wicket & Eclipse Consulting > www.devotek-it.ch > thomasmaeder.blogspot.com >
Re: Storing user entity in session?
Ok, thanks for the tip... 2009/2/20 Martijn Dashorst > move the IModel to your custom request cycle, otherwise you'll > run into the issues I've pointed out earlier where on thread detaches > while another attaches. Storing entities in your session when your > interested in maintaining them with your entitymanager is BAD, even if > you put it in a LDM. > > Martijn > > On Fri, Feb 20, 2009 at 11:05 AM, nino martinez wael > wrote: > > Hi Tauren > > > > I've done something similar.. Have no trouble with.. > > > > Disclaimer, below code are really ugly and I need to clean it up... > > > > > > package zeuzgroup.application; > > > > import org.apache.wicket.Request; > > import org.apache.wicket.authentication.AuthenticatedWebSession; > > import org.apache.wicket.authorization.strategies.role.Roles; > > import org.apache.wicket.injection.web.InjectorHolder; > > import org.apache.wicket.spring.injection.annot.SpringBean; > > > > import zeuzgroup.application.models.BaseEntityDetachableModel; > > import zeuzgroup.core.Person; > > import zeuzgroup.core.provider.IDBDao; > > import zeuzgroup.core.user.UserType; > > > > public class ZeuzSession extends AuthenticatedWebSession { > > > >private boolean authorized = false; > > > >private BaseEntityDetachableModel personModel; > > > >@SpringBean(name = "dBDao") > >protected IDBDao dBDao; > > > >protected ZeuzSession(Request request) { > >super(request); > >InjectorHolder.getInjector().inject(this); > > > >} > > > >@Override > >protected void detach() { > >super.detach(); > >if (personModel != null) { > >personModel.detach(); > >} > >} > > > >public boolean isAuthorized() { > >return authorized; > >} > > > >public void setAuthorized(boolean authorized) { > > > >this.authorized = authorized; > >if (authorized) { > >getPerson().setLoggedIn(true); > >} > >// Call below too! > >signIn(getPerson().getAlias(), getPerson().getPassword()); > >} > > > >public Person getPerson() { > >if (personModel != null) { > > > >Person person = (Person) personModel.getObject(); > >if (person == null) { > >person = new Person(); > >person.setUserType(UserType.Guest); > > > >} > >return person; > >} else { > >Person person = new Person(); > >person.setUserType(UserType.Guest); > >return person; > >} > >} > > > >public BaseEntityDetachableModel getPersonModel() { > >return personModel; > >} > > > >public void setPerson(Person person) { > >if (personModel != null) { > >personModel.setBaseEntityDetachableModel(person); > >} else { > >personModel = new BaseEntityDetachableModel(person); > >} > >} > > > >public void onBeforeDestroy() { > >getPerson().setLoggedIn(false); > >} > > > >@Override > >public boolean authenticate(String username, String password) { > > > >Person person = new Person(); > >person.setAlias(username); > >person.setPassword(password); > > > >return dBDao.authorizePerson(person); > >} > > > >@Override > >public Roles getRoles() { > >// If the user is signed in, they have these roles > >// user always are associated with a person > >return new Roles(getPerson().getUserType().toString()); > >} > > } > > > > > > 2009/2/20 Tauren Mills > > > >> The WIA book and other example apps I've found online often show a > >> User object being stored in the session: > >> > >> class BlogSession extends WebSession { > >> private User user; > >> } > >> > >> But does it make sense to do this if your User object is loaded from a > >> persistence layer (Hibernate) and can contain a large tree of > >> dependent objects? For instance, what if my User object has a > >> hierarchy like this: > >> > >> User > >> Name > >> Password > >> Set > >>Blog > >> Set > >>BlogEntry > >> Set > >> Set > >> > >> Would this store the entire hierarchy of blogs, tags, blog entries, > >> etc. into the session? I've been experimenting with storing an LDM > >> of the user in the session instead of the User directly: > >> > >> class BlogSession extends WebSession { > >> private DetachableUserModel userModel; > >> } > >> > >> But I'm getting Hibernate LazyInit errors. So it leaves me wondering > >> if LDMs in Session aren't automatically loaded since it isn't a > >> Component. I haven't really dug into what is going on yet. I first > >> wanted to find out what is common practice for a situation like this. > >> > >> Oh, and this isn't my actual User object -- just and example for > >> illustrative purposes. I'm not building a blog, and the properties > >> and sets of objects in my User need to be there. > >> > >> Th
Re: Wicket meetup in Switzerland?
Sad to see, im always interested.. However it's a looong drive from denmark :( 2009/2/20 Thomas Mäder > Whoa! The silence is deafening! Since I've had one answer in a week, I > guess > there is just no interest. Oh well... > > Thomas > > On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder > wrote: > > > Hi Folks, > > > > I would be willing to organize a Wicket meetup in Switzerland if there is > > enough interest. I propose a meeting somewhere in Zürich. The format I > > imagine is that participants could (don't have to) shortly (15-20min.) > > present their work with Wicket (demos are always nice). That would be > > followed by general mingling with drinks & snacks. > > For the date, I would shoot for the week starting March 16, 17:30-20:30h. > > Would you be interested in participating in/hosting/sponsoring such a > > thing? Either reply here or to me privately, and if there is enough > > interest, I'll set up a thing on the wiki. > > > > Thomas > > > > -- > > Thomas Mäder > > Wicket & Eclipse Consulting > > www.devotek-it.ch > > > > > > -- > Wicket & Eclipse Consulting > www.devotek-it.ch > thomasmaeder.blogspot.com >
Re: Wicket meetup in Switzerland?
Hi, I'm not against this, but the language is a problem, I don't speak german very well. If it could be in french, I'd subscribe to it ;) Thomas Mäder a écrit : Whoa! The silence is deafening! Since I've had one answer in a week, I guess there is just no interest. Oh well... Thomas On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder wrote: Hi Folks, I would be willing to organize a Wicket meetup in Switzerland if there is enough interest. I propose a meeting somewhere in Zürich. The format I imagine is that participants could (don't have to) shortly (15-20min.) present their work with Wicket (demos are always nice). That would be followed by general mingling with drinks & snacks. For the date, I would shoot for the week starting March 16, 17:30-20:30h. Would you be interested in participating in/hosting/sponsoring such a thing? Either reply here or to me privately, and if there is enough interest, I'll set up a thing on the wiki. Thomas -- Thomas Mäder Wicket & Eclipse Consulting www.devotek-it.ch - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
Whoa! The silence is deafening! Since I've had one answer in a week, I guess there is just no interest. Oh well... Thomas On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder wrote: > Hi Folks, > > I would be willing to organize a Wicket meetup in Switzerland if there is > enough interest. I propose a meeting somewhere in Zürich. The format I > imagine is that participants could (don't have to) shortly (15-20min.) > present their work with Wicket (demos are always nice). That would be > followed by general mingling with drinks & snacks. > For the date, I would shoot for the week starting March 16, 17:30-20:30h. > Would you be interested in participating in/hosting/sponsoring such a > thing? Either reply here or to me privately, and if there is enough > interest, I'll set up a thing on the wiki. > > Thomas > > -- > Thomas Mäder > Wicket & Eclipse Consulting > www.devotek-it.ch > -- Wicket & Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com
Re: form - ajax submit and validation
perhaps add the feedback panel to the ajax request target? Martijn On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich wrote: > Hi, > > that was my mistake. I set to submit button defaultFormProcessing = false > and that is why validation haven't been processed. > > Now validations are processed but I'm getting this warning: > Component-targetted feedback message was left unrendered. This could be > because you are missing a FeedbackPanel on the page. > > And no validation message is displayed. > > But when I use non ajax based submit then message are shown correctly. > > piece of code... > > IndicatingAjaxButton orderSubmit = new IndicatingAjaxButton("order-submit", > orderForm) { > >private static final long serialVersionUID = > -3779837727856697099L; > >/** {...@inheritdoc} */ >@Override >protected void onSubmit(AjaxRequestTarget target, Form form) > { > >//some bussines logic here >} >}; > > > > 2009/2/19 Matt Welch > >> >> I think more information is needed before someone can provide a useful >> response: >> >> >> Are you initializing the AjaxButton with the form (in the the constructor >> of >> the AjaxButton or with setter)? >> Is the form data being submitted? If not, this would indicate a problem >> somewhere other than in the validation itself. >> Can you show your actual code? >> >> >> >> >> Vitek.Tajzich wrote: >> > >> > Hi guys, >> > >> > I have form and AjaxButton as submit button for the form. If I use non >> > ajax >> > button validation is called and input fields are validated. But If I use >> > AjaxButton then validation are passedWhat should I do to get form >> > validated even If I use ajax button? >> > >> > thank you, >> > >> > Vitek >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
move the IModel to your custom request cycle, otherwise you'll run into the issues I've pointed out earlier where on thread detaches while another attaches. Storing entities in your session when your interested in maintaining them with your entitymanager is BAD, even if you put it in a LDM. Martijn On Fri, Feb 20, 2009 at 11:05 AM, nino martinez wael wrote: > Hi Tauren > > I've done something similar.. Have no trouble with.. > > Disclaimer, below code are really ugly and I need to clean it up... > > > package zeuzgroup.application; > > import org.apache.wicket.Request; > import org.apache.wicket.authentication.AuthenticatedWebSession; > import org.apache.wicket.authorization.strategies.role.Roles; > import org.apache.wicket.injection.web.InjectorHolder; > import org.apache.wicket.spring.injection.annot.SpringBean; > > import zeuzgroup.application.models.BaseEntityDetachableModel; > import zeuzgroup.core.Person; > import zeuzgroup.core.provider.IDBDao; > import zeuzgroup.core.user.UserType; > > public class ZeuzSession extends AuthenticatedWebSession { > >private boolean authorized = false; > >private BaseEntityDetachableModel personModel; > >@SpringBean(name = "dBDao") >protected IDBDao dBDao; > >protected ZeuzSession(Request request) { >super(request); >InjectorHolder.getInjector().inject(this); > >} > >@Override >protected void detach() { >super.detach(); >if (personModel != null) { >personModel.detach(); >} >} > >public boolean isAuthorized() { >return authorized; >} > >public void setAuthorized(boolean authorized) { > >this.authorized = authorized; >if (authorized) { >getPerson().setLoggedIn(true); >} >// Call below too! >signIn(getPerson().getAlias(), getPerson().getPassword()); >} > >public Person getPerson() { >if (personModel != null) { > >Person person = (Person) personModel.getObject(); >if (person == null) { >person = new Person(); >person.setUserType(UserType.Guest); > >} >return person; >} else { >Person person = new Person(); >person.setUserType(UserType.Guest); >return person; >} >} > >public BaseEntityDetachableModel getPersonModel() { >return personModel; >} > >public void setPerson(Person person) { >if (personModel != null) { >personModel.setBaseEntityDetachableModel(person); >} else { >personModel = new BaseEntityDetachableModel(person); >} >} > >public void onBeforeDestroy() { >getPerson().setLoggedIn(false); >} > >@Override >public boolean authenticate(String username, String password) { > >Person person = new Person(); >person.setAlias(username); >person.setPassword(password); > >return dBDao.authorizePerson(person); >} > >@Override >public Roles getRoles() { >// If the user is signed in, they have these roles >// user always are associated with a person >return new Roles(getPerson().getUserType().toString()); >} > } > > > 2009/2/20 Tauren Mills > >> The WIA book and other example apps I've found online often show a >> User object being stored in the session: >> >> class BlogSession extends WebSession { >> private User user; >> } >> >> But does it make sense to do this if your User object is loaded from a >> persistence layer (Hibernate) and can contain a large tree of >> dependent objects? For instance, what if my User object has a >> hierarchy like this: >> >> User >> Name >> Password >> Set >>Blog >> Set >>BlogEntry >> Set >> Set >> >> Would this store the entire hierarchy of blogs, tags, blog entries, >> etc. into the session? I've been experimenting with storing an LDM >> of the user in the session instead of the User directly: >> >> class BlogSession extends WebSession { >> private DetachableUserModel userModel; >> } >> >> But I'm getting Hibernate LazyInit errors. So it leaves me wondering >> if LDMs in Session aren't automatically loaded since it isn't a >> Component. I haven't really dug into what is going on yet. I first >> wanted to find out what is common practice for a situation like this. >> >> Oh, and this isn't my actual User object -- just and example for >> illustrative purposes. I'm not building a blog, and the properties >> and sets of objects in my User need to be there. >> >> Thanks! >> Tauren >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/
Re: automatic Page Flow diagrams?
What does people thing of this? Like something that would scan all Wicket Pages, and panels refered by those thus creating something like this: PageA-->PageB-->PageD ^ | | -PageC Im not that great a ascii artist but something like this. 2009/2/17 nino martinez wael > Hi Guys > > Are there anyone which has done something like a pageflow diagram generator > for wicket, would be wonderfull if it were a maven plugin? > > > regards Nino >
Re: Wicket VoiceXML framework?
Replying Inline.. 2009/2/20 Tauren Mills > Nino, > > I've considered learning more about VoiceXML as well, but it would be > for a future project and unfortunately I don't have time to help right > now. If you do get it going, I'd certainly be interested in > contributing down the road. No problem, it's nice to know that theres someone else out there :) > > > However, I am curious what your thoughts are in regards to this. What > use-cases are you wanting to solve? Although my knowledge is *very* > limited, wouldn't the output of VoiceXML be accomplished simply by > getting wicket to output XML? And I believe that is easy enough to to > with: > >@Override >public String getMarkupType() { >return "xml"; >} > > Of course, I'm not clear how a "voice browser" (the recipient of the > voicexml) sends responses back, which could be more challenging. No you are completely right.. What I guess I would like where to put a higher level of abstraction on, so the components do most of the foot work for you. I guess you can compare this to my openlayers integration, it's easy aswell to use openlayers with out the integration but the integration makes it much easier, abstracting what you need todo to a much higher level... As I dont know a bit about vxml, im not sure how much you could abstract but I think there should be some room for it. Like being able to generate easy logic etc. Something like this could defiantly be done alot simpler : http://pastebin.com/f21b6b3ea But im still wondering about the architecture... -regards Nino > > > Tauren > > > On Tue, Feb 17, 2009 at 6:09 AM, nino martinez wael > wrote: > > Hi Guys > > > > Would any of you be interested in creating a VoiceXML framework based on > > wicket with me? I dont have much knowledge on vxml (im new to the domain) > > but I have a little on wicket :) Im just thinking aloud right now, so > theres > > no scope or anything defined. > > > > > > regards Nino > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Can a TreeTable be pagable?
In short: no. Here's what I'd do: Use a table (which is pageable) and show the location in the tree as breadcrumbs. When you click on a table item, you go "into" the table item i.e. it goes to the bread crumbs and the children are shown in the table. Thomas On Thu, Feb 19, 2009 at 12:36 PM, CraigGreenhalhj < craig.greenha...@intersoftsolutions.co.uk> wrote: > > > -- > View this message in context: > http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Thomas Mäder Wicket & Eclipse Consulting www.devotek-it.ch
Re: Storing user entity in session?
Hehe, my answer are the same as Martijn. Use the ID as key in LDM, see below. public class BaseEntityDetachableModel extends LoadableDetachableModel { @SpringBean(name = "dBDao") protected IDBDao dBDao; private Long id; private Class clazz; public BaseEntityDetachableModel() { InjectorHolder.getInjector().inject(this); } public BaseEntityDetachableModel(E baseEntity) { this(); this.id = baseEntity.getId(); this.clazz = (Class) baseEntity.getClass(); } public void setBaseEntityDetachableModel(E baseEntity) { this.id = baseEntity.getId(); this.clazz =(Class) baseEntity.getClass(); } @Override protected E load() { if(clazz!=null) { return dBDao.findEntity(id, clazz); } else{ return null; } } } 2009/2/20 nino martinez wael > Hi Tauren > > I've done something similar.. Have no trouble with.. > > Disclaimer, below code are really ugly and I need to clean it up... > > > package zeuzgroup.application; > > import org.apache.wicket.Request; > import org.apache.wicket.authentication.AuthenticatedWebSession; > import org.apache.wicket.authorization.strategies.role.Roles; > import org.apache.wicket.injection.web.InjectorHolder; > import org.apache.wicket.spring.injection.annot.SpringBean; > > import zeuzgroup.application.models.BaseEntityDetachableModel; > import zeuzgroup.core.Person; > import zeuzgroup.core.provider.IDBDao; > import zeuzgroup.core.user.UserType; > > public class ZeuzSession extends AuthenticatedWebSession { > > private boolean authorized = false; > > private BaseEntityDetachableModel personModel; > > @SpringBean(name = "dBDao") > protected IDBDao dBDao; > > protected ZeuzSession(Request request) { > super(request); > InjectorHolder.getInjector().inject(this); > > } > > @Override > protected void detach() { > super.detach(); > if (personModel != null) { > personModel.detach(); > } > } > > public boolean isAuthorized() { > return authorized; > } > > public void setAuthorized(boolean authorized) { > > this.authorized = authorized; > if (authorized) { > getPerson().setLoggedIn(true); > } > // Call below too! > signIn(getPerson().getAlias(), getPerson().getPassword()); > } > > public Person getPerson() { > if (personModel != null) { > > Person person = (Person) personModel.getObject(); > if (person == null) { > person = new Person(); > person.setUserType(UserType.Guest); > > } > return person; > } else { > Person person = new Person(); > person.setUserType(UserType.Guest); > return person; > } > } > > public BaseEntityDetachableModel getPersonModel() { > return personModel; > } > > public void setPerson(Person person) { > if (personModel != null) { > personModel.setBaseEntityDetachableModel(person); > } else { > personModel = new BaseEntityDetachableModel(person); > } > } > > public void onBeforeDestroy() { > getPerson().setLoggedIn(false); > } > > @Override > public boolean authenticate(String username, String password) { > > Person person = new Person(); > person.setAlias(username); > person.setPassword(password); > > return dBDao.authorizePerson(person); > } > > @Override > public Roles getRoles() { > // If the user is signed in, they have these roles > // user always are associated with a person > return new Roles(getPerson().getUserType().toString()); > } > } > > > 2009/2/20 Tauren Mills > > The WIA book and other example apps I've found online often show a >> User object being stored in the session: >> >> class BlogSession extends WebSession { >> private User user; >> } >> >> But does it make sense to do this if your User object is loaded from a >> persistence layer (Hibernate) and can contain a large tree of >> dependent objects? For instance, what if my User object has a >> hierarchy like this: >> >> User >> Name >> Password >> Set >>Blog >> Set >>BlogEntry >> Set >> Set >> >> Would this store the entire hierarchy of blogs, tags, blog entries, >> etc. into the session? I've been experimenting with storing an LDM >> of the user in the session instead of the User directly: >> >> class BlogSession extends WebSession { >> private DetachableUserModel userModel; >> } >> >> But I'm getting Hibernate LazyInit errors. So it leaves me wondering >> if LDMs in Session aren't automatically loaded since it isn't a >> Component. I haven't really dug into what is going on yet. I first >> wanted to find out what is common practice for a situation lik
Re: Storing user entity in session?
Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... package zeuzgroup.application; import org.apache.wicket.Request; import org.apache.wicket.authentication.AuthenticatedWebSession; import org.apache.wicket.authorization.strategies.role.Roles; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.spring.injection.annot.SpringBean; import zeuzgroup.application.models.BaseEntityDetachableModel; import zeuzgroup.core.Person; import zeuzgroup.core.provider.IDBDao; import zeuzgroup.core.user.UserType; public class ZeuzSession extends AuthenticatedWebSession { private boolean authorized = false; private BaseEntityDetachableModel personModel; @SpringBean(name = "dBDao") protected IDBDao dBDao; protected ZeuzSession(Request request) { super(request); InjectorHolder.getInjector().inject(this); } @Override protected void detach() { super.detach(); if (personModel != null) { personModel.detach(); } } public boolean isAuthorized() { return authorized; } public void setAuthorized(boolean authorized) { this.authorized = authorized; if (authorized) { getPerson().setLoggedIn(true); } // Call below too! signIn(getPerson().getAlias(), getPerson().getPassword()); } public Person getPerson() { if (personModel != null) { Person person = (Person) personModel.getObject(); if (person == null) { person = new Person(); person.setUserType(UserType.Guest); } return person; } else { Person person = new Person(); person.setUserType(UserType.Guest); return person; } } public BaseEntityDetachableModel getPersonModel() { return personModel; } public void setPerson(Person person) { if (personModel != null) { personModel.setBaseEntityDetachableModel(person); } else { personModel = new BaseEntityDetachableModel(person); } } public void onBeforeDestroy() { getPerson().setLoggedIn(false); } @Override public boolean authenticate(String username, String password) { Person person = new Person(); person.setAlias(username); person.setPassword(password); return dBDao.authorizePerson(person); } @Override public Roles getRoles() { // If the user is signed in, they have these roles // user always are associated with a person return new Roles(getPerson().getUserType().toString()); } } 2009/2/20 Tauren Mills > The WIA book and other example apps I've found online often show a > User object being stored in the session: > > class BlogSession extends WebSession { > private User user; > } > > But does it make sense to do this if your User object is loaded from a > persistence layer (Hibernate) and can contain a large tree of > dependent objects? For instance, what if my User object has a > hierarchy like this: > > User > Name > Password > Set >Blog > Set >BlogEntry > Set > Set > > Would this store the entire hierarchy of blogs, tags, blog entries, > etc. into the session? I've been experimenting with storing an LDM > of the user in the session instead of the User directly: > > class BlogSession extends WebSession { > private DetachableUserModel userModel; > } > > But I'm getting Hibernate LazyInit errors. So it leaves me wondering > if LDMs in Session aren't automatically loaded since it isn't a > Component. I haven't really dug into what is going on yet. I first > wanted to find out what is common practice for a situation like this. > > Oh, and this isn't my actual User object -- just and example for > illustrative purposes. I'm not building a blog, and the properties > and sets of objects in my User need to be there. > > Thanks! > Tauren > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket-1.4-rc2 / Liferay 5.2.1 / Ajax: PortletServletRequestWrapper: java.lang.StringIndexOutOfBoundsException
This is probably an error in Liferays PortletRequestDispatcher. Use Liferay 5.2.x (head of liferay branch 5.2.x) and use the sun portlet container (put portlet.container.impl=sun in portlal-ext.properties) (See http://issues.liferay.com/browse/LPS-1911) and then apply the patches in these two lps's to fix some issues with the sun container http://issues.liferay.com/browse/LPS-2131 & http://issues.liferay.com/browse/LPS-1909 Thijs On 20-2-2009 10:36, sauli_k wrote: Hi, I was using the AjaxLink in a portlet and I noticed that in case the portal url is shorter than the wicket filter path I get this error: 2009-02-20 11:07:40,765 ERROR [[MonitoringPortlet].invoke()] - Servlet.service() for servlet MonitoringPortlet threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1938) at java.lang.String.substring(String.java:1905) at org.apache.wicket.protocol.http.portlet.PortletServletRequestWrapper.(PortletServletRequestWrapper.java:144) at org.apache.wicket.protocol.http.portlet.WicketFilterPortletContext.setupFilter(WicketFilterPortletContext.java:120) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:613) at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:722) at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:496) at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:663) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:454) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505) at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154) at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:178) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154) at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:149) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDo
Re: form - ajax submit and validation
Hi, that was my mistake. I set to submit button defaultFormProcessing = false and that is why validation haven't been processed. Now validations are processed but I'm getting this warning: Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. And no validation message is displayed. But when I use non ajax based submit then message are shown correctly. piece of code... IndicatingAjaxButton orderSubmit = new IndicatingAjaxButton("order-submit", orderForm) { private static final long serialVersionUID = -3779837727856697099L; /** {...@inheritdoc} */ @Override protected void onSubmit(AjaxRequestTarget target, Form form) { //some bussines logic here } }; 2009/2/19 Matt Welch > > I think more information is needed before someone can provide a useful > response: > > > Are you initializing the AjaxButton with the form (in the the constructor > of > the AjaxButton or with setter)? > Is the form data being submitted? If not, this would indicate a problem > somewhere other than in the validation itself. > Can you show your actual code? > > > > > Vitek.Tajzich wrote: > > > > Hi guys, > > > > I have form and AjaxButton as submit button for the form. If I use non > > ajax > > button validation is called and input fields are validated. But If I use > > AjaxButton then validation are passedWhat should I do to get form > > validated even If I use ajax button? > > > > thank you, > > > > Vitek > > > > > > -- > View this message in context: > http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html > Sent from the Wicket - User mailing list archive at Nabble.com. >
Re: Ways to fully "disable" back button
Thank you for your time, Martijn. I found at last wiki page about this. http://cwiki.apache.org/WICKET/browser-back-forward.html Hope it is actual. -- Tony On Fri, Feb 20, 2009 at 3:31 PM, Martijn Dashorst wrote: > See the gmail interface: they have an undo button when you delete or > mark a message as spam. They provide a feedback message with a link > that allows the user to undo the operation. > > "2 messages have been marked as spam (_undo_)" > > Martijn > > On Fri, Feb 20, 2009 at 8:39 AM, Anton Veretennikov > wrote: >> Really, my question is as old as browser :) >> >> The more correct subject is "Rules to make Wicket app back-button-aware". >> >> For example if user presses "add" or "remove" button and she wants to >> undo it by pressing back button. >> What to do if: >> 1. I can make "undo" for these operations? >> 2. I can't make "undo"? How to show user some info or what can be done? >> >> -- Tony >> >> >> On Fri, Feb 20, 2009 at 2:04 PM, Martijn Dashorst >> wrote: >>> you can't. use google to see why. >>> >>> Martijn >>> >>> On Fri, Feb 20, 2009 at 6:02 AM, Anton Veretennikov >>> wrote: Hello, wicket users, I would like to know how to write wicket links so that it will not be possible to return back. Thank you. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.5 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.5 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-1.4-rc2 / Liferay 5.2.1 / Ajax: PortletServletRequestWrapper: java.lang.StringIndexOutOfBoundsException
Hi, I was using the AjaxLink in a portlet and I noticed that in case the portal url is shorter than the wicket filter path I get this error: 2009-02-20 11:07:40,765 ERROR [[MonitoringPortlet].invoke()] - Servlet.service() for servlet MonitoringPortlet threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1938) at java.lang.String.substring(String.java:1905) at org.apache.wicket.protocol.http.portlet.PortletServletRequestWrapper.(PortletServletRequestWrapper.java:144) at org.apache.wicket.protocol.http.portlet.WicketFilterPortletContext.setupFilter(WicketFilterPortletContext.java:120) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:229) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:613) at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:722) at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:496) at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:663) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:454) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505) at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154) at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:178) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154) at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:149) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154) at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.
Re: Ways to fully "disable" back button
See the gmail interface: they have an undo button when you delete or mark a message as spam. They provide a feedback message with a link that allows the user to undo the operation. "2 messages have been marked as spam (_undo_)" Martijn On Fri, Feb 20, 2009 at 8:39 AM, Anton Veretennikov wrote: > Really, my question is as old as browser :) > > The more correct subject is "Rules to make Wicket app back-button-aware". > > For example if user presses "add" or "remove" button and she wants to > undo it by pressing back button. > What to do if: > 1. I can make "undo" for these operations? > 2. I can't make "undo"? How to show user some info or what can be done? > > -- Tony > > > On Fri, Feb 20, 2009 at 2:04 PM, Martijn Dashorst > wrote: >> you can't. use google to see why. >> >> Martijn >> >> On Fri, Feb 20, 2009 at 6:02 AM, Anton Veretennikov >> wrote: >>> Hello, wicket users, >>> >>> I would like to know how to write wicket links so that it will not be >>> possible to return back. >>> >>> Thank you. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.5 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org