Re: AuthenticatedWebSession
On Thu, 22 Nov 2007, Alexander Landsnes Keül wrote: > It seems the session isn't created until the user encounters an > @AuthorizeInstantiation("..."), but there are parts of the page which > doesn't require authentication and thus no session for me to use. Is > there a better strategy for containing the business layer main object, > or a way to ensure that the AuthenticatedWebSession is created at the > same time as the Application? Like this maybe? public class MySession extends AuthenticatedWebSession { ... public class MyApplication extends WebApplication { ... @Override public WebSession newSession() { return new MySession(); } ... } Best wishes, Timo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading Files Aproaches
DownloadLink ? -igor On Nov 22, 2007 11:30 AM, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > Hi could someone guide me a bit on where can I find information on ways to > Download Files. > > Specially AJAX ways. > > Sorry to be so insistent (3rd mail) on the subject but I found it to be > difficult to research. > > Thanks, > > f(t) > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Markup variants on component level
variants and styles work on component level...pages inherit that functionality from components -igor On Nov 22, 2007 7:40 AM, Niels van Kampenhout <[EMAIL PROTECTED]> wrote: > Hello Wicketeers, > > I read about markup variants on the wiki [1]. I need this, however I > need it on component level rather than page level. Is this possible? > > In the most extreme case I would like to have different instances of the > same component on one page, but each with their own markup variant. > > The workaround I use right now is extending my component with an empty > class for each variant. > > Thanks > > Niels > > [1] http://cwiki.apache.org/WICKET/multiple-markups-per-page.html > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation with disabled parent
Stephane Bailliez wrote: Hi gang, Am I correct in thinking that having a parent component isEnabled() to false does not prevent the children validation (1.3.0-rc1 for that matter) ? ah... I see that http://www.nabble.com/isEnabledInHierarchy--tf4798745.html is discussing a very much related thing. -- stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quite a few Wicket jobs/employers.
... I think there's a bit more substance to it than that as, iirc, many of the ads were talking about experience with component based frameworks, Swing etc ... ie they're interested in people who are more likely to be familiar with some of the underlying concepts and who will enjoy using Wicket, even if they haven't tried it yet. It can't be bad either way. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Eelco Hillenius wrote: > > On Nov 21, 2007 3:37 PM, Martijn Dashorst <[EMAIL PROTECTED]> > wrote: >> 87 for Wicket + Java92 for GWT + Java > > Good to see there's growth there, as long as we keep in mind that > probably the only thing these entries mean is that HR people picked up > another word that sounds cool in ads. ;-) > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Quite-a-few-Wicket-jobs-employers.-tf4853412.html#a13905230 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation with disabled parent
Hi gang, Am I correct in thinking that having a parent component isEnabled() to false does not prevent the children validation (1.3.0-rc1 for that matter) ? I see in Form public Object formComponent(IFormVisitorParticipant component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent)component; if (formComponent.isVisibleInHierarchy() && formComponent.isValid() && formComponent.isEnabled() && formComponent.isEnableAllowed()) { validate(formComponent); } } I would have thought at first glance that it did not make any sense to traverse the components for validation if the parent is disabled. side note: (Also for personal knowledge, is there any reason why the check for visibility is actually backward for traversal ? validation is occurring by traversing the tree top down, so I would have think in theory that stopping the traversal would be enough to avoid having each component doing a bottom top check in isVisibleInHierarchy(). I suppose there is a reason for that (haven't checked yet the formvalidators logic to see how components are treated, if they are iterated over I guess that can explain while they all need to traverse the parent hierarchy) I see in the same code that to avoid traversing the children I can make use of the method processChildren() to stop the traversal.. that's what I did right now, but I'm not sure if this is really the intent or if it's just a hack. (basically I have a component (containing other components) which is enabled based on a checkbox input (which enable-show/disable-hide the children components through javascript), so I end up testing the water with something like: MyParentComponent my = new MyParentComponent("test") { public boolean isEnabled() { return radio1.getMarkupId().equals(radiogroup.getInput()); } public boolean processChildren() { return isEnabled(); } }; That seems a bit 'hacky' and I wonder if the recommended way is not to entirely make it wicketable with ajaxable component all around that always do server round-trip ? thanks -- stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket-Seam Integration
Frank, This is precisely the type of information I was looking for, thank you. It may also give a few Wicket users more reason to have a play. My initial thoughts are in line with yours; this will probably be a bigger help to Seam users - who can now choose between Wicket's excellent and easy to use/extend features and the more cumbersome (but JEE "standard") JSF, than to the Wicket users. However, this new integration possibility is clearly not a bad thing for anyone concerned/affected anyway. Eventually, I expect the Wicket developers/users will discover/invent ways to benefit from some of Seam's features as well, even if it's only for its tight integration with jBPM (and Drools?) and of course, MDBs and SBs. The webbeans JSR's success will no doubt have some influence on this. Personally, I appreciate having such options (form a Wicket user perspective) and thank you for making such an integration/possibility available. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Frank Martínez-3 wrote: > > Hi Eelco, > > On Nov 22, 2007 2:44 PM, Eelco Hillenius <[EMAIL PROTECTED]> > wrote: >> Thanks for explaining. A few questions... >> >> > Why i do not use proxies: >> > 1. Seam injected Ejbs and JNDI resources are already proxies, so i >> > don't want a proxy of the proxy of the proxy .. >> > 2. Because proxies are not outjection frendly in this case. >> >> Pardon me for maybe not getting it, but I don't really understand how >> outjection would help Wicket developers. After all, everything works >> with regular Java objects, so when I did the first pass of Seam >> integration, I didn't really see the use case for 'exporting back' >> values to the seam context. Isn't it enough to change the values >> (which are passed by reference) if you want to have changes applied? I >> somewhat understand the merit of outjection if you pass around request >> parameters from request to request and if you don't work with a >> construct like Wicket's models, but I'm missing the benefit of >> outjection for Wicket applications. >> >> Would it be possible to give us a short primer on what outjection is >> and what it is good for when building Wicket webapps? >> > > Remember that there are many stateful contexts in Seam, not only the > session or request, but also Business process context and conversation > context which has no equivalent in other frameworks. > > Oujection is the possibility to export references from a component to > one of the stateful contexts. For example you can export any value > from a wicket page to a running business process which is accessed by > other web application too. > >> > 3. Because it is important that you can inject/outject null >> references. >> >> Why is that important? If it is memory consumption, those proxies null >> their references at the end of a request. >> >> >> Thanks, >> >> Eelco >> > > The injection/outjection of null references importance is not related > with memory consumption: > Some times you need to take decisions based on the value of an > injected resource and sometimes the null value is a meaningful case in > your logic. Specially if you are using injected values coming form > other complex components/services. The same applies if you want to > tell to other external component that it must set to null some shared > variable. > > Maybe wicket-seam integration is more important to Seam users than to > wicket users :( > Maybe wicket is very well without seam at all, but i think seam users > appreciate good alternatives to JSF. And Wicket is a very good > alternative. > > Regards, > Frank. > > -- > Frank D. Martínez M. > Asimov Technologies Ltda. > Blog: http://www.ibstaff.net/fmartinez/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket-Seam-Integration-tf4840640.html#a13905176 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering strategies question
> mhmm, now I got it... > In other frameworks and also in Wicket it's common to use GET request for > doing some action on the server ( for example Link#onClick(...) ), so it's > generally useful concept. I didn't see it from this point of view before. Yeah. Like I said, officially GET requests should be idempotent. And that's fine when you talk about documents but hardly makes sense when you think about applications. Even if you avoid state changing things like deleting records with links, you still have to deal with things like data that might get stale between requests. So personally, I think the idea of having idompotent web requests as part of user interfaces is flawed to start with. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering strategies question
mhmm, now I got it... In other frameworks and also in Wicket it's common to use GET request for doing some action on the server ( for example Link#onClick(...) ), so it's generally useful concept. I didn't see it from this point of view before. Thank you both boys :) Stefan Simik -- View this message in context: http://www.nabble.com/Rendering-strategies-question-tf4857740.html#a13904939 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
On 22/11/2007, Gervais <[EMAIL PROTECTED]> wrote: > I'm new in the famous wicket world ! I need to start learning Wicket but > i can't found docs that explain more than just doing a HelloWrold or a > GuestBook. http://wicket.apache.org/examples.html http://www.wicketstuff.org/wicket13/compref/ & http://www.wicketstuff.org/wicket13/ http://cwiki.apache.org/WICKET/documentation-index.html -- Download Wicket 1.3.0-rc1 now! - http://wicketframework.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regression in 1.3.0-beta3(?)
please make a jira issue for this On Nov 22, 2007 9:49 PM, Johannes Schneider <[EMAIL PROTECTED]> wrote: > I have the same problem with 1.3.0-rc1... > > I have tried to create a minimal example, but did not work... > The problem occurres within this project: > http://cedarsoft.org/wicket/yaml-integration/index.html > > > Regards, > > Johannes Schneider > > Igor Vaynberg wrote: > > have you tried it with trunk? > > > > -igor > > > > > > On 8/31/07, Johannes Schneider <[EMAIL PROTECTED]> wrote: > >> I don't use any AjaxFAllbackOrderByBorder or anything else in my code. > >> So I think there must be another trigger for the bug, too. > >> > >> > >> Johannes Schneider > >> > >> Jonas-21 wrote: > >>> I've been able to reproduce the problem with a these few classes: > >>> http://www.nabble.com/file/p12409279/Expected_close_tag.zip > >>> Expected_close_tag.zip > >>> > >>> It seems to be caused by the problem that BorderBodyResolver warns > >> about: > >>> Unlike OrderByBorder, AjaxFallbackOrderByBorder doesn't add the > >>> BorderBodyContainer > >>> so it fits the markup. > >>> Now, if AjaxFallbackOrderByBorder is wrapped in another Border (as in > my > >>> attached > >>> example), we don't get that nice log message, instead we get that > >> 'Expected > >>> close tag for ...' > >>> message. > >>> > >>> So, it seems https://issues.apache.org/jira/browse/WICKET-166 > >>> actually IS relevant for wicket 1.3.0. (Of course the fix looks now > >>> different > >>> because of the api change) > >>> > >>> cheers, > >>> Jonas > >>> > >>> > >>> igor.vaynberg wrote: > hmm, if you could create a quickstart for this it would be very > >> helpful. > -igor > > >> -- > >> Johannes Schneider > >> Im Lindenwasen 15 > >> 72810 Gomaringen > >> > >> Fon +49 7072 9229972 > >> Fax +49 7072 50 > >> Mobil +49 178 1364488 > >> > >> [EMAIL PROTECTED] > >> http://www.johannes-schneider.info > >> > >> > > > > -- > Johannes Schneider > Im Lindenwasen 15 > 72810 Gomaringen > > Fon +49 7072 9229972 > Fax +49 7072 50 > Mobil +49 178 1364488 > > [EMAIL PROTECTED] > http://www.johannes-schneider.info >
Re: RepeatingView and AJAX
Timo Rantalaiho wrote: > > Make sure that there are no validation errors. Also you > could search this list on Nabble looking for "repeaters in > forms" or something such, because I think that there's > something tricky to it. It might have to do with the fact > that repeater items are typically recreated on every render. > I'm not sure about RepeatingView but at least with > ListView you had to call setReuseListItems(true) or > something like that. > > Best wishes, > Timo > While I realize that re-adding to the repeating view is not helping anything, I'd like to find out why the model is not being updated with the values when the AJAX event occurs. If that is resolved, then I should be able to find out how to propagate the values after a repaint. - -- Michael Laccetti (416)558-9718 S2G Limited http://www.s2g.ca/ -- View this message in context: http://www.nabble.com/RepeatingView-and-AJAX-tf4851583.html#a13903857 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
come message. > >>>> - Must i have one attribute (in my bean) per item to display ? > >>>> - If i must have one attribute in my bean per item to display, it > become > >>>> a Model. If it become a model it must implements or extends a model. > >>>> What model ? > >>>> --> How can i correctly create a page that contains "only" paragraph, > >>>> links and list ? > >>>> > >>>> > >>>> > >>>> > >>>> Dipu Seminlal a écrit : > >>>> > >>>> > >>>> > >>>>> We don't do imports, we extends ! checkout markup inheritance > >>>>> > >>>>> http://cwiki.apache.org/WICKET/markup-inheritance.html > >>>>> > >>>>> regards > >>>>> dipu > >>>>> > >>>>> On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: > >>>>> > >>>>> > >>>>> > >>>>>> Hy all, > >>>>>> > >>>>>> I'm new in the famous wicket world ! I need to start learning > Wicket but > >>>>>> i can't found docs that explain more than just doing a HelloWrold > or a > >>>>>> GuestBook. > >>>>>> In fact i need to use Wicket with Spring but for that i first need > to > >>>>>> understand and play with wicket. So i have many questions. > >>>>>> > >>>>>> 1° Is there a way for stupid frenchies that don't speak english > like me > >>>>>> to talk about Wicket ? (If not sorry for my poor english) > >>>>>> > >>>>>> > >>>>>> 2° How can i import other page. Like a <%@ include > >>>>>> file="includes/menubar.inc.jsp" %> or >>>>>> page="includes/menubar.inc.jsp" flush="true" /> tag ? > >>>>>> > >>>>>> 3° In a big form ( with more than 20 fields ) that represnet more > than > >>>>>> one Pojo Bean how must i work ? > >>>>>> > >>>>>> > >>>>>> Thanks > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > - > >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>> For additional commands, e-mail: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>> > >>>>> __ NOD32 2678 (20071122) Information __ > >>>>> > >>>>> This message was checked by NOD32 antivirus system. > >>>>> http://www.eset.com > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>> - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> __ NOD32 2678 (20071122) Information __ > >>> > >>> This message was checked by NOD32 antivirus system. > >>> http://www.eset.com > >>> > >>> > >>> > >>> > >>> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > __ NOD32 2678 (20071122) Information __ > > > > This message was checked by NOD32 antivirus system. > > http://www.eset.com > > > > > > > > >
Re: disabled AjaxEditableMultiLineLabel
i found the "problem": what i mentioned before with onBeforeRender didn't make it into rc1. sorry for messing that up. but now there are two checks for enabled/disabled. i actually prefer the one with dis-/enabling the label in onBeforeRender, because this way the onClick attribute doesn't even get rendered, whereas with the second approach there's an ajax roundtrip which is basically in vain, since nothing will be done anyway... Al, if you don't mind, i'd like to remove the check in AjaxLabelBehavior#onEvent again. Gerolf On Nov 22, 2007 9:44 AM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > This is the code (wicket 1.3 rc1) > >add(new AjaxEditableMultiLineLabel("Comment", new > PropertyModel(experiment, "experimentDetailStat.Comment")){ >/* >@Override >protected void onEdit(AjaxRequestTarget target) { >if(isEnabled()){ >super.onEdit(target); >} >} >*/ > >@Override >protected void onSubmit(AjaxRequestTarget target) { >super.onSubmit(target); >Util.getBean(GenericLocal.class).saveObject( > experiment.getExperimentDetailStat()); >} >}.setEnabled(LoginSession.get().isAdmin())); > > and I tested by replacing the LoginSession.get().isAdmin() by false but > I'm > still able to edit that field > > Regards > > Francis > > On 11/21/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > > > Francis, > > i would really be interested in your code that doesn't seem to work, if > > you > > don't mind. > > as of before Al's fix, it already worked for me because: > > > > the label is dis-/enabled in AjaxEditableLabel#onBeforeRender: > > label.setEnabled(isEnableAllowed() && isEnabled()); > > > > and since the LabelAjaxBehavior is derived from AjaxEventBehavior, the > > eventhandler is only rendered, > > if the associated component is enabled. see > > AjaxEventBehavior#onComponentTag > > > > regards, > > Gerolf > > > > On Nov 21, 2007 1:26 PM, Francis De Brabandere <[EMAIL PROTECTED]> > > wrote: > > > > > ok, i'll check on next release > > > > > > On Nov 21, 2007 12:56 PM, Al Maw <[EMAIL PROTECTED]> wrote: > > > > > > > Francis De Brabandere wrote: > > > > > doing setEnabled(false) on a AjaxEditableMultiLineLabel does not > > > disable > > > > the > > > > > editing feature > > > > > > > > > > this can be fixed by overriding onEdit(): > > > > > > > > > > @Override > > > > > protected void onEdit(AjaxRequestTarget target) { > > > > > if(isEnabled()){ > > > > > super.onEdit(target); > > > > > } > > > > > } > > > > > > > > > > but shouldn't this be changed in the AjaxEditableMultiLineLabel > > > source? > > > > > > > > > > ps: this might be needed on other ajax edit lables too > > > > > > > > It is. This should now be fixed in trunk. > > > > > > > > Regards, > > > > > > > > Al > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > http://www.somatik.be > > > Microsoft gives you windows, Linux gives you the whole house. > > > > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. >
Re: Wicket-Seam Integration
> Remember that there are many stateful contexts in Seam, not only the > session or request, but also Business process context and conversation > context which has no equivalent in other frameworks. > > Oujection is the possibility to export references from a component to > one of the stateful contexts. For example you can export any value > from a wicket page to a running business process which is accessed by > other web application too. Ok, I think I understand. > The injection/outjection of null references importance is not related > with memory consumption: > Some times you need to take decisions based on the value of an > injected resource and sometimes the null value is a meaningful case in > your logic. Specially if you are using injected values coming form > other complex components/services. The same applies if you want to > tell to other external component that it must set to null some shared > variable. Ok. > Maybe wicket-seam integration is more important to Seam users than to > wicket users :( Don't let my questions discourage you though. I just want to understand the choices. My first pass was basically meant to just get something started, without ever having used Seam nor understand it very well :-) > Maybe wicket is very well without seam at all, but i think seam users > appreciate good alternatives to JSF. And Wicket is a very good > alternative. I can imagine that Seam works well for Wicket users in at least a couple of occasions, like when you want to integrate with JBMP and you don't want to use it's API directly. Anyway, thanks for your effort, and I hope more people will pick it up! Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regression in 1.3.0-beta3(?)
I have the same problem with 1.3.0-rc1... I have tried to create a minimal example, but did not work... The problem occurres within this project: http://cedarsoft.org/wicket/yaml-integration/index.html Regards, Johannes Schneider Igor Vaynberg wrote: > have you tried it with trunk? > > -igor > > > On 8/31/07, Johannes Schneider <[EMAIL PROTECTED]> wrote: >> I don't use any AjaxFAllbackOrderByBorder or anything else in my code. >> So I think there must be another trigger for the bug, too. >> >> >> Johannes Schneider >> >> Jonas-21 wrote: >>> I've been able to reproduce the problem with a these few classes: >>> http://www.nabble.com/file/p12409279/Expected_close_tag.zip >>> Expected_close_tag.zip >>> >>> It seems to be caused by the problem that BorderBodyResolver warns >> about: >>> Unlike OrderByBorder, AjaxFallbackOrderByBorder doesn't add the >>> BorderBodyContainer >>> so it fits the markup. >>> Now, if AjaxFallbackOrderByBorder is wrapped in another Border (as in my >>> attached >>> example), we don't get that nice log message, instead we get that >> 'Expected >>> close tag for ...' >>> message. >>> >>> So, it seems https://issues.apache.org/jira/browse/WICKET-166 >>> actually IS relevant for wicket 1.3.0. (Of course the fix looks now >>> different >>> because of the api change) >>> >>> cheers, >>> Jonas >>> >>> >>> igor.vaynberg wrote: hmm, if you could create a quickstart for this it would be very >> helpful. -igor >> -- >> Johannes Schneider >> Im Lindenwasen 15 >> 72810 Gomaringen >> >> Fon +49 7072 9229972 >> Fax +49 7072 50 >> Mobil +49 178 1364488 >> >> [EMAIL PROTECTED] >> http://www.johannes-schneider.info >> >> > -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info smime.p7s Description: S/MIME Cryptographic Signature
Re: Wicket-Seam Integration
Hi Eelco, On Nov 22, 2007 2:44 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Thanks for explaining. A few questions... > > > Why i do not use proxies: > > 1. Seam injected Ejbs and JNDI resources are already proxies, so i > > don't want a proxy of the proxy of the proxy .. > > 2. Because proxies are not outjection frendly in this case. > > Pardon me for maybe not getting it, but I don't really understand how > outjection would help Wicket developers. After all, everything works > with regular Java objects, so when I did the first pass of Seam > integration, I didn't really see the use case for 'exporting back' > values to the seam context. Isn't it enough to change the values > (which are passed by reference) if you want to have changes applied? I > somewhat understand the merit of outjection if you pass around request > parameters from request to request and if you don't work with a > construct like Wicket's models, but I'm missing the benefit of > outjection for Wicket applications. > > Would it be possible to give us a short primer on what outjection is > and what it is good for when building Wicket webapps? > Remember that there are many stateful contexts in Seam, not only the session or request, but also Business process context and conversation context which has no equivalent in other frameworks. Oujection is the possibility to export references from a component to one of the stateful contexts. For example you can export any value from a wicket page to a running business process which is accessed by other web application too. > > 3. Because it is important that you can inject/outject null references. > > Why is that important? If it is memory consumption, those proxies null > their references at the end of a request. > > > Thanks, > > Eelco > The injection/outjection of null references importance is not related with memory consumption: Some times you need to take decisions based on the value of an injected resource and sometimes the null value is a meaningful case in your logic. Specially if you are using injected values coming form other complex components/services. The same applies if you want to tell to other external component that it must set to null some shared variable. Maybe wicket-seam integration is more important to Seam users than to wicket users :( Maybe wicket is very well without seam at all, but i think seam users appreciate good alternatives to JSF. And Wicket is a very good alternative. Regards, Frank. -- Frank D. Martínez M. Asimov Technologies Ltda. Blog: http://www.ibstaff.net/fmartinez/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
here's a component solution to panel caching (with a couple of caveats): http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/6DDE5C7F-55B4-44FC-965C-AB87F236F78C.html i don't think it would be a great idea to use this component much, but there are definitely places where it might be very convenient if you have high traffic and know what you're doing. Jonathan Locke wrote: > > > of course, this only caches the rendering of a component within a session. > and it would only work for components with a fixed path. i'm not sure > what it would mean to cache the results of a component globally. > > with a fair amount of magic, you might be able to create a CachingPanel > component in the existing wicket. you'd take over the rendering process, > and render self based on class identity and interval. that would > certainly > be a less invasive approach. > > it may be that all these things are best left out of wicket, but it can't > hurt to > think about it a bit. > > > Jonathan Locke wrote: >> >> >> actually one way to solve this that would not involve changing wicket's >> session >> model would be to do what that thread suggested in terms of caching: >> >> /** >> * @return Duration between renders of this page or null to always render >> * >> */ >> protected Duration getRenderInterval() >> { >> return Duration.ONE_MINUTE; >> } >> >> just put that method on Component instead of Page. the rendered markup >> would naively be cached in Component along with the time the component >> was last rendered, but the better place to do it would be in Session, >> keyed >> using the Component's path and time of last render. The cache in Session >> would only need to be checked for Components that override >> getRenderInterval(). >> can someone remind me why we haven't done this? I can't even open the >> Page.java file on my Mac without Eclipse crashing, thanks to Apple. >> >> >> Jonathan Locke wrote: >>> >>> >>> session and application scope components are not supported in wicket up >>> to 1.3 >>> (they will not work). >>> >>> this idea is really a request for more "static" components, like this >>> discussion of "static" pages: >>> >>> >>> http://www.nabble.com/Serving-Static-Pages-with-Wicket-tf3572749.html#a9995177 >>> >>> i'm not sure if this idea is really possible or desirable to do this, >>> but it would, >>> as you point out, have efficiency upsides for certain kinds of web >>> sites. it >>> might be interesting to at least think about it some. >>> >>> >>> Icy wrote: Dear Wicket Team, First of all, let me say that Wicket is the best thing in Java Web development today! It really brings Java back to be a first choice when creating Web applications. Thanks for your development efforts :) I have a question regarding the instanciation of panels of which I have a huge number placed at top, bottom , left side and right side of a web site, and that should be shown again on any page of the side. This is a very common design I guess. I was browsing the documentation and the mail archive, but didn't really find a solution concerning the instanciation. This is the scenario: - I have a template page, that all other pages I create are extending. - This template page defines a number of panels (menu at the top, statistics and pictures at the left side, dynamic messages at the right side, ...), and for sure an area for the main page content using "wicket:child" approach. - The panels read data from the internet, and from a database, but their content does not change very often. Consider e.g. showing user statistics of how many messages he/she posted. This does only change when really a new message was posted. The problem: - Whenever a page is requested, the template page instantiates all panels using "add(new Panel("nameX"))". The panels do again read data from the internet, and from the database. This is not very fast, and it appears to me that the processing power and memory consumption for this might be high. Imagine thousands of users using the web site. I guess the approach I have chosen is not the best solution. The pages have models behind any way, so they know their data, they don't have to be reconstructed all the time. I have this behaviour e.g. when I submit a form, and no new target is given - the page is reconstructed without instanciating all panels again, it just renders all panels with the data coming from the models behind. *** What is the "best practise" to not instanciate "page aggregating panels" all the time? *** I had the following ideas: - Using the user session to store my page object references to check if a panel is already instanciated and then just use the reference instead of doing a new? -
Re: Rendering strategies question
On Nov 22, 2007 11:46 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Wicket will redirect all event listeners so you don't get double clicks as > well. Of course, GET requests *should* be idempotent, in which case we would never need this pattern. However, in practice, with whatever framework people are using, GETs often are not implemented being idempotent, so our extra protection makes sense even for GETs. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering strategies question
Wicket will redirect all event listeners so you don't get double clicks as well. For instance a link to edit some item takes you to an edit page. If you do a onepass render, the event listener will be called each time the user refreshes the edit page. This means that the edit page is created each time and any operations that are part of the event listener will be executed as well. However with the redirect to buffer, the user is redirected to a stable URL, and remains on the edit page. When he refreshes the page, the edit page is fetched from the page store and rendered again. No event listeners are involved here. Martijn On Nov 22, 2007 6:57 PM, Stefan Simik <[EMAIL PROTECTED]> wrote: > > Hello Wicketeers, > > I prepare report about rendering strategies (for studying community in our > company) and conceptually I understand all the things, but I have one > question, that I cannot answer. > > The default rendering strategy is RENDER_TO_BUFFER, because it solves both > problems of > two previous strategies: > 1. no double submit problem > 2. no potential problems with double attaching/detaching models > > But in my mind, I have problem: > When some aplication has 90% of pages, that are only for viewing, and 10% > of > pages, that submit form, > then I see, that for 90% of the view pages is the redirect not useful. For > these 90% pages would be sufficient only ONE_PASS_RENDER strategy, because > there is no need for redirect from my point of view. > Only 10% of pages takes advantage from redirecting. Does'nt it make 90% > of > needless redirects ? > > Is it not possible tu use REDIRECT_TO_BUFFER strategy only for POST > request, > and for all GET request > respond with ONE_PASS_RENDER ? But in WicketFilter all POST's call GET, so > I > think it's not possible. > > Is there anything I forgot to think about ? > > Thank you for you answer > > Stefan Simik > > > > > -- > View this message in context: > http://www.nabble.com/Rendering-strategies-question-tf4857740.html#a13900891 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-rc1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
Re: Wicket-Seam Integration
Thanks for explaining. A few questions... > Why i do not use proxies: > 1. Seam injected Ejbs and JNDI resources are already proxies, so i > don't want a proxy of the proxy of the proxy .. > 2. Because proxies are not outjection frendly in this case. Pardon me for maybe not getting it, but I don't really understand how outjection would help Wicket developers. After all, everything works with regular Java objects, so when I did the first pass of Seam integration, I didn't really see the use case for 'exporting back' values to the seam context. Isn't it enough to change the values (which are passed by reference) if you want to have changes applied? I somewhat understand the merit of outjection if you pass around request parameters from request to request and if you don't work with a construct like Wicket's models, but I'm missing the benefit of outjection for Wicket applications. Would it be possible to give us a short primer on what outjection is and what it is good for when building Wicket webapps? > 3. Because it is important that you can inject/outject null references. Why is that important? If it is memory consumption, those proxies null their references at the end of a request. Thanks, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Downloading Files Aproaches
Hi could someone guide me a bit on where can I find information on ways to Download Files. Specially AJAX ways. Sorry to be so insistent (3rd mail) on the subject but I found it to be difficult to research. Thanks, f(t)
Re: How to instanciate panels best?
> MyPanel.java > public class MyPanel extends Panel { > public MyPanel() { > // THIS PANEL IS RECONSTRUCTED ON EACH MyPage REQUEST > // BECAUSE MyPageTemplate DOES A new MyPanel... > } > } > > What could I do to use the old panel again? Like Al hinted, you should not try to use the old panel again, but instead focus on more fruitful forms of optimization. The construction of Wicket components isn't very expensive in itself. What typically makes it expensive is the data you expose through it, either using models or directly. So what you should do is cache/ reuse the data where you can, so that you avoid database round trips and other expensive processing. Often, the best thing to do when it comes to optimizing is to use a profiler (YourKit for instance). Optimizing without using a profiler to determine what the bottlenecks probably means you're optimizing the wrong things. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
of course, this only caches the rendering of a component within a session. and it would only work for components with a fixed path. i'm not sure what it would mean to cache the results of a component globally. with a fair amount of magic, you might be able to create a CachingPanel component in the existing wicket. you'd take over the rendering process, and render self based on class identity and interval. that would certainly be a less invasive approach. it may be that all these things are best left out of wicket, but it can't hurt to think about it a bit. Jonathan Locke wrote: > > > actually one way to solve this that would not involve changing wicket's > session > model would be to do what that thread suggested in terms of caching: > > /** > * @return Duration between renders of this page or null to always render > * > */ > protected Duration getRenderInterval() > { > return Duration.ONE_MINUTE; > } > > just put that method on Component instead of Page. the rendered markup > would naively be cached in Component along with the time the component > was last rendered, but the better place to do it would be in Session, > keyed > using the Component's path and time of last render. The cache in Session > would only need to be checked for Components that override > getRenderInterval(). > can someone remind me why we haven't done this? I can't even open the > Page.java file on my Mac without Eclipse crashing, thanks to Apple. > > > Jonathan Locke wrote: >> >> >> session and application scope components are not supported in wicket up >> to 1.3 >> (they will not work). >> >> this idea is really a request for more "static" components, like this >> discussion of "static" pages: >> >> >> http://www.nabble.com/Serving-Static-Pages-with-Wicket-tf3572749.html#a9995177 >> >> i'm not sure if this idea is really possible or desirable to do this, but >> it would, >> as you point out, have efficiency upsides for certain kinds of web sites. >> it >> might be interesting to at least think about it some. >> >> >> Icy wrote: >>> >>> Dear Wicket Team, >>> >>> First of all, let me say that Wicket is the best thing in Java Web >>> development today! It really brings Java back to be a first choice when >>> creating Web applications. Thanks for your development efforts :) >>> >>> I have a question regarding the instanciation of panels of which I have >>> a huge number placed at top, bottom , left side and right side of a web >>> site, and that should be shown again on any page of the side. This is a >>> very common design I guess. I was browsing the documentation and the >>> mail archive, but didn't really find a solution concerning the >>> instanciation. >>> >>> This is the scenario: >>> - I have a template page, that all other pages I create are extending. >>> - This template page defines a number of panels (menu at the top, >>> statistics and pictures at the left side, dynamic messages at the right >>> side, ...), and for sure an area for the main page content using >>> "wicket:child" approach. >>> - The panels read data from the internet, and from a database, but their >>> content does not change very often. Consider e.g. showing user >>> statistics of how many messages he/she posted. This does only change >>> when really a new message was posted. >>> >>> The problem: >>> - Whenever a page is requested, the template page instantiates all >>> panels using "add(new Panel("nameX"))". The panels do again read data >>> from the internet, and from the database. >>> >>> This is not very fast, and it appears to me that the processing power >>> and memory consumption for this might be high. Imagine thousands of >>> users using the web site. >>> >>> I guess the approach I have chosen is not the best solution. The pages >>> have models behind any way, so they know their data, they don't have to >>> be reconstructed all the time. I have this behaviour e.g. when I submit >>> a form, and no new target is given - the page is reconstructed without >>> instanciating all panels again, it just renders all panels with the data >>> coming from the models behind. >>> >>> *** What is the "best practise" to not instanciate "page aggregating >>> panels" all the time? *** >>> >>> I had the following ideas: >>> >>> - Using the user session to store my page object references to check if >>> a panel is already instanciated and then just use the reference instead >>> of doing a new? >>> - Using some mechanism to get a panel reference from the wicket session, >>> where the page and models are stored anyway? >>> >>> -> Both approaches require unelegant "manual work", for which I think >>> Wicket is offering something, as one of the main aspects of the Wicket >>> framework is page management. >>> >>> - Using Spring to manage the Panels? >>> >>> -> Is this wanted from the Wicket design point of view? And does it >>> really work? >>> >>> Many thanks in advance for your help. Maybe I really missed it
Re: How to instanciate panels best?
actually one way to solve this that would not involve changing wicket's session model would be to do what that thread suggested in terms of caching: /** * @return Duration between renders of this page or null to always render * */ protected Duration getRenderInterval() { return Duration.ONE_MINUTE; } just put that method on Component instead of Page. the rendered markup would naively be cached in Component along with the time the component was last rendered, but the better place to do it would be in Session, keyed using the Component's path and time of last render. The cache in Session would only need to be checked for Components that override getRenderInterval(). can someone remind me why we haven't done this? I can't even open the Page.java file on my Mac without Eclipse crashing, thanks to Apple. Jonathan Locke wrote: > > > session and application scope components are not supported in wicket up to > 1.3 > (they will not work). > > this idea is really a request for more "static" components, like this > discussion of "static" pages: > > > http://www.nabble.com/Serving-Static-Pages-with-Wicket-tf3572749.html#a9995177 > > i'm not sure if this idea is really possible or desirable to do this, but > it would, > as you point out, have efficiency upsides for certain kinds of web sites. > it > might be interesting to at least think about it some. > > > Icy wrote: >> >> Dear Wicket Team, >> >> First of all, let me say that Wicket is the best thing in Java Web >> development today! It really brings Java back to be a first choice when >> creating Web applications. Thanks for your development efforts :) >> >> I have a question regarding the instanciation of panels of which I have a >> huge number placed at top, bottom , left side and right side of a web >> site, and that should be shown again on any page of the side. This is a >> very common design I guess. I was browsing the documentation and the mail >> archive, but didn't really find a solution concerning the instanciation. >> >> This is the scenario: >> - I have a template page, that all other pages I create are extending. >> - This template page defines a number of panels (menu at the top, >> statistics and pictures at the left side, dynamic messages at the right >> side, ...), and for sure an area for the main page content using >> "wicket:child" approach. >> - The panels read data from the internet, and from a database, but their >> content does not change very often. Consider e.g. showing user statistics >> of how many messages he/she posted. This does only change when really a >> new message was posted. >> >> The problem: >> - Whenever a page is requested, the template page instantiates all panels >> using "add(new Panel("nameX"))". The panels do again read data from the >> internet, and from the database. >> >> This is not very fast, and it appears to me that the processing power and >> memory consumption for this might be high. Imagine thousands of users >> using the web site. >> >> I guess the approach I have chosen is not the best solution. The pages >> have models behind any way, so they know their data, they don't have to >> be reconstructed all the time. I have this behaviour e.g. when I submit a >> form, and no new target is given - the page is reconstructed without >> instanciating all panels again, it just renders all panels with the data >> coming from the models behind. >> >> *** What is the "best practise" to not instanciate "page aggregating >> panels" all the time? *** >> >> I had the following ideas: >> >> - Using the user session to store my page object references to check if a >> panel is already instanciated and then just use the reference instead of >> doing a new? >> - Using some mechanism to get a panel reference from the wicket session, >> where the page and models are stored anyway? >> >> -> Both approaches require unelegant "manual work", for which I think >> Wicket is offering something, as one of the main aspects of the Wicket >> framework is page management. >> >> - Using Spring to manage the Panels? >> >> -> Is this wanted from the Wicket design point of view? And does it >> really work? >> >> Many thanks in advance for your help. Maybe I really missed it and this >> very common problem is already explained somewhere. >> >> Kind regards >> Icy >> >> >> >> > > -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13901135 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
session and application scope components are not supported in wicket up to 1.3 (they will not work). this idea is really a request for more "static" components, like this discussion of "static" pages: http://www.nabble.com/Serving-Static-Pages-with-Wicket-tf3572749.html#a9995177 i'm not sure if this idea is really possible or desirable to do this, but it would, as you point out, have efficiency upsides for certain kinds of web sites. it might be interesting to at least think about it some. Icy wrote: > > Dear Wicket Team, > > First of all, let me say that Wicket is the best thing in Java Web > development today! It really brings Java back to be a first choice when > creating Web applications. Thanks for your development efforts :) > > I have a question regarding the instanciation of panels of which I have a > huge number placed at top, bottom , left side and right side of a web > site, and that should be shown again on any page of the side. This is a > very common design I guess. I was browsing the documentation and the mail > archive, but didn't really find a solution concerning the instanciation. > > This is the scenario: > - I have a template page, that all other pages I create are extending. > - This template page defines a number of panels (menu at the top, > statistics and pictures at the left side, dynamic messages at the right > side, ...), and for sure an area for the main page content using > "wicket:child" approach. > - The panels read data from the internet, and from a database, but their > content does not change very often. Consider e.g. showing user statistics > of how many messages he/she posted. This does only change when really a > new message was posted. > > The problem: > - Whenever a page is requested, the template page instantiates all panels > using "add(new Panel("nameX"))". The panels do again read data from the > internet, and from the database. > > This is not very fast, and it appears to me that the processing power and > memory consumption for this might be high. Imagine thousands of users > using the web site. > > I guess the approach I have chosen is not the best solution. The pages > have models behind any way, so they know their data, they don't have to be > reconstructed all the time. I have this behaviour e.g. when I submit a > form, and no new target is given - the page is reconstructed without > instanciating all panels again, it just renders all panels with the data > coming from the models behind. > > *** What is the "best practise" to not instanciate "page aggregating > panels" all the time? *** > > I had the following ideas: > > - Using the user session to store my page object references to check if a > panel is already instanciated and then just use the reference instead of > doing a new? > - Using some mechanism to get a panel reference from the wicket session, > where the page and models are stored anyway? > > -> Both approaches require unelegant "manual work", for which I think > Wicket is offering something, as one of the main aspects of the Wicket > framework is page management. > > - Using Spring to manage the Panels? > > -> Is this wanted from the Wicket design point of view? And does it really > work? > > Many thanks in advance for your help. Maybe I really missed it and this > very common problem is already explained somewhere. > > Kind regards > Icy > > > > -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13900949 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rendering strategies question
Hello Wicketeers, I prepare report about rendering strategies (for studying community in our company) and conceptually I understand all the things, but I have one question, that I cannot answer. The default rendering strategy is RENDER_TO_BUFFER, because it solves both problems of two previous strategies: 1. no double submit problem 2. no potential problems with double attaching/detaching models But in my mind, I have problem: When some aplication has 90% of pages, that are only for viewing, and 10% of pages, that submit form, then I see, that for 90% of the view pages is the redirect not useful. For these 90% pages would be sufficient only ONE_PASS_RENDER strategy, because there is no need for redirect from my point of view. Only 10% of pages takes advantage from redirecting. Does'nt it make 90% of needless redirects ? Is it not possible tu use REDIRECT_TO_BUFFER strategy only for POST request, and for all GET request respond with ONE_PASS_RENDER ? But in WicketFilter all POST's call GET, so I think it's not possible. Is there anything I forgot to think about ? Thank you for you answer Stefan Simik -- View this message in context: http://www.nabble.com/Rendering-strategies-question-tf4857740.html#a13900891 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tracking InlineFrame status
Hi everyone! I'm looking for a hint please :) I have a Wicket page with an InlineFrame pointing to another Wicket page on the same servlet.. In the "inner" one I have a button that calls setResponsePage, thus changing the inner page.. Is there a way for the "outer" page to gain access to the new inner one? I mean, the actual WebPage object.. Using PageMaps maybe? Many thanks for your attention! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quite a few Wicket jobs/employers.
thanks. fixed. Mr Mean wrote: > > Nice page. > I did notice one mistake though. > The link to Topicus points to topicus.com but it should be > http://www.topicus.nl/ > > Maurice > > On Nov 22, 2007 1:48 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> things seem to have been building for a while. i've been in touch with >> some >> pretty big companies this year and more every week it seems. i now have >> a >> http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Wicket.html Wicket >> propaganda page that collects a few data points to give a rough picture >> of >> the growing activity. >> >> >> jweekend wrote: >> > >> > I came across http://www.indeed.com/jobs?q=wicket+java&start=10 this >> > today. I hadn't noticed before that there were already so many >> companies >> > (including Time/Warner, Leapfrog, Nokia ...) looking for Wicket >> > developers. >> > Has this been the case for a while or is the Wicket jobs market just >> now >> > becoming this buoyant? >> > >> > Regards - Cemal >> > http://jWeekend.co.uk http://jWeekend.co.uk >> > >> > PS To the person, with first initial D and email address >> > [EMAIL PROTECTED], that contacted jWeekend recently via our site >> about >> > doing some Wicket work for us remotely; I believe you have a typo in >> the >> > email address you left - did you receive our automated reply that was >> sent >> > to that address? If you would like us to consider your application, >> please >> > contact us again with a correct email address. >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Quite-a-few-Wicket-jobs-employers.-tf4853412.html#a13889042 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Quite-a-few-Wicket-jobs-employers.-tf4853412.html#a13900702 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trigger client machine program
What you want to do is probably not possible, unless you create an applet with will run with proper security manager settings (thus requiring proper certificate, etc.). Generally, anything that runs in browser can not really touch user's computer, as it would be a high security risk. -Matej On Nov 22, 2007 11:31 AM, raybristol <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to trigger a program which installed on client machine when use press > a button from a web page, I wonder what's the best way to do it? Any links? > > Many thanks, > Ray > -- > View this message in context: > http://www.nabble.com/Trigger-client-machine-program-tf4855543.html#a13894375 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
Hello all, I try to explain my question using sourcecode ;) Imagine: MyTemplate.java public abstract class MyTemplate extends WebPage { public MyTemplate() { add(new MyPanel("myPanel")); } } MyTemplate.html MyPage.java (html is trivial, using wicket:extend) public class MyPage extends MyTemplate { ... } MyPanel.java public class MyPanel extends Panel { public MyPanel() { // THIS PANEL IS RECONSTRUCTED ON EACH MyPage REQUEST // BECAUSE MyPageTemplate DOES A new MyPanel... } } What could I do to use the old panel again? Do I really have to care about the panel object reference by myself, i.e. store is to the user session, check if it is there, if yes then retrieve, if not the do a new, etc.? I don't have to, do I? The Panel is in the wicket session anyway, and the user session would grow too much, leasing to the StackOverflowError I already had ... I hope you can help me, thanks in advance :) Kind regards, Bernd Icy wrote: > > > > Al Maw-2 wrote: >> >> Icy wrote: >>> *** What is the "best practise" to not instanciate "page aggregating >>> panels" >>> all the time? *** >> >> This isn't really a Wicket question. >> >> Your page is slow because doing database/remote operations is slow. It >> has nothing to do with creating Panels, but everything to do with the >> database access you're doing in the constructor of those Panels. >> >> You need to break those operations out into a service layer that can >> cache the results, then use that service layer in your constructor. >> >> Regards, >> >> Al >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > Heyho again, Al, and all, > > as with Spring it's not that easy to do what I wanted, because singleton > beans are instanciated only once for ALL users, and prototype beans are > instanciated on every request, which is too often, the natural target for > storing sinlgeton references to objects for a user is the SESSION again... > so I tried this. > > First question: I just wanted to put a wicket stuff GMap2 instance into > the session, and got a java.lang.StackOverflowError. Is it possible to > increase the stack size? > > Second question: Even if this works to construct GMap, etc. only once when > the session is created, and add these components to a Panel on request, > then still I have a common problem understanding the following: > > The special cool thing about Wicket is that components keep their state. > If I have to instanciate all Panels again each time a page is requested, > they for sure always loose their state - they are new. If I put everything > in the session, to keep the state manually, then it will probably work, > but that's old fashioned Web programming ;) Doesn't Wicket offer me the > possibility to e.g. let a user scroll around in the Google Map Panel, and > the scrolling position always remains the same on each page request? What > about the cool Wicket Model approach, the Desktop App programming > experience? What do I have to do to maintain Panels state? > > Please, explain this to me, it's a very very basic question for me, to > understand the "magic" of the Wicket approach. > > Kind regards, > Icy > > > > -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13900134 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
Al Maw-2 wrote: > > Icy wrote: >> *** What is the "best practise" to not instanciate "page aggregating >> panels" >> all the time? *** > > This isn't really a Wicket question. > > Your page is slow because doing database/remote operations is slow. It > has nothing to do with creating Panels, but everything to do with the > database access you're doing in the constructor of those Panels. > > You need to break those operations out into a service layer that can > cache the results, then use that service layer in your constructor. > > Regards, > > Al > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Heyho again, Al, and all, as with Spring it's not that easy to do what I wanted, because singleton beans are instanciated only once for ALL users, and prototype beans are instanciated on every request, which is too often, the natural target for storing sinlgeton references to objects for a user is the SESSION again... so I tried this. First question: I just wanted to put a wicket stuff GMap2 instance into the session, and got a java.lang.StackOverflowError. Is it possible to increase the stack size? Second question: Even if this works to construct GMap, etc. only once when the session is created, and add these components to a Panel on request, then still I have a common problem understanding the following: The special cool thing about Wicket is that components keep their state. If I have to instanciate all Panels again each time a page is requested, they for sure always loose their state - they are new. If I put everything in the session, to keep the state manually, then it will probably work, but that's old fashioned Web programming ;) Doesn't Wicket offer me the possibility to e.g. let a user scroll around in the Google Map Panel, and the scrolling position always remains the same on each page request? What about the cool Wicket Model approach, the Desktop App programming experience? What do I have to do to maintain Panels state? Please, explain this to me, it's a very very basic question for me, to understand the "magic" of the Wicket approach. Kind regards, Icy -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13899931 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
Ho.. yes it is possible. .. really i'm a stupid boy ! But is it also possible to give one model for all content of the page ? public class MyPage extends WebPage { public MyPage(PageModel model) { add(new Label("welcome", model)); add(new ExternalLink("toGoogle", model)); } } Maybe, this klind of model already exist ? If not what existing model can i extend or implements to do that ? Also is it possible to give objects to page by a setter ? I suppose that it isn't beacause page was rendered after the constructor. Dipu Seminlal a écrit : Is it not possible to pass those objects itself to the page in the constructor. Thats how i do it, may be i don't understand your problem correctly, hopefully someone else here will be able to help you. regards dipu On Nov 22, 2007 4:01 PM, Gervais <[EMAIL PROTECTED]> wrote: Ho, yes i imagine it like that. But in my case, and i suppose many other, i get information from many object/beans that contains values stored in database. In fact i surrely use two java.util.List (Annoucements and Notes) and other objects for paragraph and links but i don't now what kinds of objects. Must i create one class per non static item to be displayed ? Dipu Seminlal a écrit : Is the content of your page (paragraph, links, list etc ) static in nature, then you can just write it directly in html, If it is not static in nature where do you get it from and in what form If you have an object that is initialised with the data to populate in you StartupPage, you can have a constructor like the following public StartupPage(YourStartupContentObject foo) { add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Or public StartupPage() { YourStartupContentObject foo = fetchTheContent(); add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Hope you get the Idea regards dipu On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote: Ok thanks. But y have another question. (i try to translate it corretcly). For beginning i have created an application named "Startup" with one page named "StartupPage". Below is my "StartupPage" code : # Code start -- public class StartupPage extends WebPage { private TestBean bean; public StartupPage() { bean=new TestBean(); bean.setWelcome("Welcome text bla bla bla"); add(new Label("test", new PropertyMdel(bean, "welcome") )); } } # Code end -- It works great but my page "StartupPage.html" must contains more than one welcome message. - Must i have one attribute (in my bean) per item to display ? - If i must have one attribute in my bean per item to display, it become a Model. If it become a model it must implements or extends a model. What model ? --> How can i correctly create a page that contains "only" paragraph, links and list ? Dipu Seminlal a écrit : We don't do imports, we extends ! checkout markup inheritance http://cwiki.apache.org/WICKET/markup-inheritance.html regards dipu On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: Hy all, I'm new in the famous wicket world ! I need to start learning Wicket but i can't found docs that explain more than just doing a HelloWrold or a GuestBook. In fact i need to use Wicket with Spring but for that i first need to understand and play with wicket. So i have many questions. 1° Is there a way for stupid frenchies that don't speak english like me to talk about Wicket ? (If not sorry for my poor english) 2° How can i import other page. Like a <%@ include file="includes/menubar.inc.jsp" %> or tag ? 3° In a big form ( with more than 20 fields ) that represnet more than one Pojo Bean how must i work ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2678 (20071122) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2678 (20071122) Information __ This mess
Re: Getting started
Is it not possible to pass those objects itself to the page in the constructor. Thats how i do it, may be i don't understand your problem correctly, hopefully someone else here will be able to help you. regards dipu On Nov 22, 2007 4:01 PM, Gervais <[EMAIL PROTECTED]> wrote: > Ho, yes i imagine it like that. > > But in my case, and i suppose many other, i get information from many > object/beans that contains values stored in database. > > In fact i surrely use two java.util.List (Annoucements and Notes) and > other objects for paragraph and links but i don't now what kinds of > objects. Must i create one class per non static item to be displayed ? > > Dipu Seminlal a écrit : > > > Is the content of your page (paragraph, links, list etc ) static in > > nature, then you can just write it directly in html, > > > > If it is not static in nature where do you get it from and in what form > > > > If you have an object that is initialised with the data to populate in > > you StartupPage, you can have a constructor like the following > > > > public StartupPage(YourStartupContentObject foo) > > { > >add(new Label("message1", foo.getMessage1())); > > add(new Label("message2", foo.getMessage2())); > > > > add(new MultilineLabel("message2", foo.getparagraph())); > > } > > > > Or > > > > public StartupPage() > > { > >YourStartupContentObject foo = fetchTheContent(); > >add(new Label("message1", foo.getMessage1())); > > add(new Label("message2", foo.getMessage2())); > > > > add(new MultilineLabel("message2", foo.getparagraph())); > > } > > > > Hope you get the Idea > > > > regards > > dipu > > > > On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote: > > > >> Ok thanks. > >> > >> But y have another question. (i try to translate it corretcly). > >> > >> For beginning i have created an application named "Startup" with one > >> page named "StartupPage". > >> Below is my "StartupPage" code : > >> > >> # Code start > >> -- > >> public class StartupPage extends WebPage { > >> > >> private TestBean bean; > >> > >> public StartupPage() { > >> > >> bean=new TestBean(); > >> bean.setWelcome("Welcome text bla bla bla"); > >> > >> add(new Label("test", new PropertyMdel(bean, "welcome") )); > >> > >> } > >> } > >> # Code end > >> -- > >> > >> It works great but my page "StartupPage.html" must contains more than > >> one welcome message. > >> - Must i have one attribute (in my bean) per item to display ? > >> - If i must have one attribute in my bean per item to display, it become > >> a Model. If it become a model it must implements or extends a model. > >> What model ? > >> --> How can i correctly create a page that contains "only" paragraph, > >> links and list ? > >> > >> > >> > >> > >> Dipu Seminlal a écrit : > >> > >> > >>> We don't do imports, we extends ! checkout markup inheritance > >>> > >>> http://cwiki.apache.org/WICKET/markup-inheritance.html > >>> > >>> regards > >>> dipu > >>> > >>> On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>>> Hy all, > >>>> > >>>> I'm new in the famous wicket world ! I need to start learning Wicket but > >>>> i can't found docs that explain more than just doing a HelloWrold or a > >>>> GuestBook. > >>>> In fact i need to use Wicket with Spring but for that i first need to > >>>> understand and play with wicket. So i have many questions. > >>>> > >>>> 1° Is there a way for stupid frenchies that don't speak english like me > >>>> to talk about Wicket ? (If not sorry for my poor english) > >>>> > >>>> > >>>> 2° How can i import other page. Like a <%@ include > >>>>
Re: Ajax File Download with Form Process and Result Refresh
A regular form and an ajaxbutton should get you a long way. Assuming you have a feedbackpanel on your page. The onSubmit of your button should do something like: onSubmit(AjaxRequestTarget target) { //do calculation target.addComponent(getForm()); //somehow create and or upload pdf } onError(AjaxRequestTarget target) { //refresh feedback to show feedback messages target.add(feedbackpanel); } Now if someone else can explain the best way to serve a file from or after an ajax call. I think you have to use a regular request for that but who knows :) Maurice On Nov 22, 2007 4:18 PM, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > Hi > > I have a forms that performs a calculation and shows the result, all done by > an ajax form. > > I have an ajax link that has to return a PDF, but also "refresh" the results > or execute the ajax form submit. > > Also if the form proces fails for a validation (eg. empty field) then I > should show the validation messages in my feedback panel, and do not process > de pdf for download. > > > Anyone? > > thanks, > > f(t) > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
Ho, yes i imagine it like that. But in my case, and i suppose many other, i get information from many object/beans that contains values stored in database. In fact i surrely use two java.util.List (Annoucements and Notes) and other objects for paragraph and links but i don't now what kinds of objects. Must i create one class per non static item to be displayed ? Dipu Seminlal a écrit : Is the content of your page (paragraph, links, list etc ) static in nature, then you can just write it directly in html, If it is not static in nature where do you get it from and in what form If you have an object that is initialised with the data to populate in you StartupPage, you can have a constructor like the following public StartupPage(YourStartupContentObject foo) { add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Or public StartupPage() { YourStartupContentObject foo = fetchTheContent(); add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Hope you get the Idea regards dipu On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote: Ok thanks. But y have another question. (i try to translate it corretcly). For beginning i have created an application named "Startup" with one page named "StartupPage". Below is my "StartupPage" code : # Code start -- public class StartupPage extends WebPage { private TestBean bean; public StartupPage() { bean=new TestBean(); bean.setWelcome("Welcome text bla bla bla"); add(new Label("test", new PropertyMdel(bean, "welcome") )); } } # Code end -- It works great but my page "StartupPage.html" must contains more than one welcome message. - Must i have one attribute (in my bean) per item to display ? - If i must have one attribute in my bean per item to display, it become a Model. If it become a model it must implements or extends a model. What model ? --> How can i correctly create a page that contains "only" paragraph, links and list ? Dipu Seminlal a écrit : We don't do imports, we extends ! checkout markup inheritance http://cwiki.apache.org/WICKET/markup-inheritance.html regards dipu On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: Hy all, I'm new in the famous wicket world ! I need to start learning Wicket but i can't found docs that explain more than just doing a HelloWrold or a GuestBook. In fact i need to use Wicket with Spring but for that i first need to understand and play with wicket. So i have many questions. 1° Is there a way for stupid frenchies that don't speak english like me to talk about Wicket ? (If not sorry for my poor english) 2° How can i import other page. Like a <%@ include file="includes/menubar.inc.jsp" %> or tag ? 3° In a big form ( with more than 20 fields ) that represnet more than one Pojo Bean how must i work ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2678 (20071122) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2678 (20071122) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
Re: Wicket-Seam Integration
Hi jweekend, On Nov 22, 2007 9:41 AM, jweekend <[EMAIL PROTECTED]> wrote: > > Frank, > > Since this is the mailing-list for all things, technical and non-technical, > related to Wicket, from *a Wicket application developers perspective* what > are the main benefits of introducing the complexity of Seam to a project in > terms of development/maintenance/extensibility/support etc into a Wicket > web-app project (bijcetion/conversations ...?) as opposed to the benefits of > using Wicket on Seam projects (which is presumably the chance to use Wicket > and its great component model in place of JSF as the view technology ??). > I notice that the webbeans spec ( http://jcp.org/en/jsr/detail?id=299 JSR > 299 ) is coming along now - presumably this spec looks quite a lot like the > Seam mission-statement. Again, what are the implications (and > pros/cons/opportunities, if any) for Wicket based projects? > > Regards - Cemal > http://jWeekend.co.uk http://jWeekend.co.uk > This is a very good question. Let me explain my point of view: * From a Wicket application developers perspective: Pros: 1. Separation of concerns: Move all business logic to the "Seam layer". So Wicket code manages only the view. - For example: You can develop many "Wicket views" (html, wml, ..) all they bounded to the same loosely coupled "Seam layer" 2. Easy decoupled access to EJB3.0, JNDI Resources, Web Services and JBPM Engine. Cons: More dependencies, more layers (this is not a con from my view, but may be for others) * From a Seam application developers perspective: Pros: 1. Kicking off JSF and use the great Wicket component model. Cons: 1. JSF is well known and has many component libraries, but Wicket is a new API to learn. * About WebBeans JSR-299: I Think it will be the final standard solution for these things, but i thought the same about JSF and some years after it, i am moving to Wicket now. :) Cheers, Frank. -- Frank D. Martínez M. Asimov Technologies Ltda. Blog: http://www.ibstaff.net/fmartinez/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
Is the content of your page (paragraph, links, list etc ) static in nature, then you can just write it directly in html, If it is not static in nature where do you get it from and in what form If you have an object that is initialised with the data to populate in you StartupPage, you can have a constructor like the following public StartupPage(YourStartupContentObject foo) { add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Or public StartupPage() { YourStartupContentObject foo = fetchTheContent(); add(new Label("message1", foo.getMessage1())); add(new Label("message2", foo.getMessage2())); add(new MultilineLabel("message2", foo.getparagraph())); } Hope you get the Idea regards dipu On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote: > Ok thanks. > > But y have another question. (i try to translate it corretcly). > > For beginning i have created an application named "Startup" with one > page named "StartupPage". > Below is my "StartupPage" code : > > # Code start > -- > public class StartupPage extends WebPage { > > private TestBean bean; > > public StartupPage() { > > bean=new TestBean(); > bean.setWelcome("Welcome text bla bla bla"); > > add(new Label("test", new PropertyMdel(bean, "welcome") )); > > } > } > # Code end > -- > > It works great but my page "StartupPage.html" must contains more than > one welcome message. > - Must i have one attribute (in my bean) per item to display ? > - If i must have one attribute in my bean per item to display, it become > a Model. If it become a model it must implements or extends a model. > What model ? > --> How can i correctly create a page that contains "only" paragraph, > links and list ? > > > > > Dipu Seminlal a écrit : > > > We don't do imports, we extends ! checkout markup inheritance > > > > http://cwiki.apache.org/WICKET/markup-inheritance.html > > > > regards > > dipu > > > > On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: > > > >> Hy all, > >> > >> I'm new in the famous wicket world ! I need to start learning Wicket but > >> i can't found docs that explain more than just doing a HelloWrold or a > >> GuestBook. > >> In fact i need to use Wicket with Spring but for that i first need to > >> understand and play with wicket. So i have many questions. > >> > >> 1° Is there a way for stupid frenchies that don't speak english like me > >> to talk about Wicket ? (If not sorry for my poor english) > >> > >> > >> 2° How can i import other page. Like a <%@ include > >> file="includes/menubar.inc.jsp" %> or >> page="includes/menubar.inc.jsp" flush="true" /> tag ? > >> > >> 3° In a big form ( with more than 20 fields ) that represnet more than > >> one Pojo Bean how must i work ? > >> > >> > >> Thanks > >> > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > __ NOD32 2678 (20071122) Information __ > > > > This message was checked by NOD32 antivirus system. > > http://www.eset.com > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Markup variants on component level
Hello Wicketeers, I read about markup variants on the wiki [1]. I need this, however I need it on component level rather than page level. Is this possible? In the most extreme case I would like to have different instances of the same component on one page, but each with their own markup variant. The workaround I use right now is extending my component with an empty class for each variant. Thanks Niels [1] http://cwiki.apache.org/WICKET/multiple-markups-per-page.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started
Ok thanks. But y have another question. (i try to translate it corretcly). For beginning i have created an application named "Startup" with one page named "StartupPage". Below is my "StartupPage" code : # Code start -- public class StartupPage extends WebPage { private TestBean bean; public StartupPage() { bean=new TestBean(); bean.setWelcome("Welcome text bla bla bla"); add(new Label("test", new PropertyMdel(bean, "welcome") )); } } # Code end -- It works great but my page "StartupPage.html" must contains more than one welcome message. - Must i have one attribute (in my bean) per item to display ? - If i must have one attribute in my bean per item to display, it become a Model. If it become a model it must implements or extends a model. What model ? --> How can i correctly create a page that contains "only" paragraph, links and list ? Dipu Seminlal a écrit : We don't do imports, we extends ! checkout markup inheritance http://cwiki.apache.org/WICKET/markup-inheritance.html regards dipu On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: Hy all, I'm new in the famous wicket world ! I need to start learning Wicket but i can't found docs that explain more than just doing a HelloWrold or a GuestBook. In fact i need to use Wicket with Spring but for that i first need to understand and play with wicket. So i have many questions. 1° Is there a way for stupid frenchies that don't speak english like me to talk about Wicket ? (If not sorry for my poor english) 2° How can i import other page. Like a <%@ include file="includes/menubar.inc.jsp" %> or tag ? 3° In a big form ( with more than 20 fields ) that represnet more than one Pojo Bean how must i work ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2678 (20071122) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
Ajax File Download with Form Process and Result Refresh
Hi I have a forms that performs a calculation and shows the result, all done by an ajax form. I have an ajax link that has to return a PDF, but also "refresh" the results or execute the ajax form submit. Also if the form proces fails for a validation (eg. empty field) then I should show the validation messages in my feedback panel, and do not process de pdf for download. Anyone? thanks, f(t)
Re: Getting started
We don't do imports, we extends ! checkout markup inheritance http://cwiki.apache.org/WICKET/markup-inheritance.html regards dipu On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote: > Hy all, > > I'm new in the famous wicket world ! I need to start learning Wicket but > i can't found docs that explain more than just doing a HelloWrold or a > GuestBook. > In fact i need to use Wicket with Spring but for that i first need to > understand and play with wicket. So i have many questions. > > 1° Is there a way for stupid frenchies that don't speak english like me > to talk about Wicket ? (If not sorry for my poor english) > > > 2° How can i import other page. Like a <%@ include > file="includes/menubar.inc.jsp" %> or page="includes/menubar.inc.jsp" flush="true" /> tag ? > > 3° In a big form ( with more than 20 fields ) that represnet more than > one Pojo Bean how must i work ? > > > Thanks > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)
On 11/22/07, Frank Bille <[EMAIL PROTECTED]> wrote: > On Nov 22, 2007 1:39 PM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > > > on my side crashing is just hanging without using 100% cpu, seems I have > > firefox 2.0.0.8 on ubuntu 7.10 > > > > What do you do to get that? I have the same config and I don't have problems > (so far). > > Frank > sometimes when the new gmail is opened in a tab or when my session is restored (about 6 tabs with one of them gmail) -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting started
Hy all, I'm new in the famous wicket world ! I need to start learning Wicket but i can't found docs that explain more than just doing a HelloWrold or a GuestBook. In fact i need to use Wicket with Spring but for that i first need to understand and play with wicket. So i have many questions. 1° Is there a way for stupid frenchies that don't speak english like me to talk about Wicket ? (If not sorry for my poor english) 2° How can i import other page. Like a <%@ include file="includes/menubar.inc.jsp" %> or page="includes/menubar.inc.jsp" flush="true" /> tag ? 3° In a big form ( with more than 20 fields ) that represnet more than one Pojo Bean how must i work ? Thanks
Re: Wicket-Seam Integration
Frank, Since this is the mailing-list for all things, technical and non-technical, related to Wicket, from *a Wicket application developers perspective* what are the main benefits of introducing the complexity of Seam to a project in terms of development/maintenance/extensibility/support etc into a Wicket web-app project (bijcetion/conversations ...?) as opposed to the benefits of using Wicket on Seam projects (which is presumably the chance to use Wicket and its great component model in place of JSF as the view technology ??). I notice that the webbeans spec ( http://jcp.org/en/jsr/detail?id=299 JSR 299 ) is coming along now - presumably this spec looks quite a lot like the Seam mission-statement. Again, what are the implications (and pros/cons/opportunities, if any) for Wicket based projects? Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Frank Martínez-3 wrote: > > Hi All, > I committed the seam-integration module to the wicket-stuff repository. > And published the example application in my blog until i change it to > maven 2. > > I Will add more documentation soon. > > Any comments are appreciated. > > Thanks, > Frank. > > -- > Frank D. Martínez M. > Asimov Technologies Ltda. > Blog: http://www.ibstaff.net/fmartinez/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket-Seam-Integration-tf4840640.html#a13897704 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate a javascript function
lodhur wrote: > That what I need is a javascript function which contains > the correct call of my window > (similar to the "onlick"-content of the wicket generated link). You /really/ need to learn how to work things out for yourself. Allow me to lead you through such a process. So, you want something similar to onclick in an AjaxLink... Let's see, it's similar to AjaxLink... Oh, I know... Why don't we go and see how AjaxLink works? Hmmm, that looks pretty compact and simple. Oh, look; all the work is done in the constructor, where we add something called an "AjaxEventBehavior" for the "onclick" javascript event. It looks like onClick() for the AjaxLink is called by the onEvent() function in that behavior. Hmmm... I wonder how that works? Oh, look, in onComponentTag() we put an attribute into the HTML tag. The name is pulled from the "event" variable (so "onclick" for the AjaxLink) and the value of the attribute is the return value from getEventHandler(). I wonder where getEventHandler() comes from and what it does? Ah, it just calls getCallbackScript(). That's not in this class - it must be in the super class. Oh, yes, look - it's in AbstractDefaultAjaxBehavior. Maybe I can just use that? AbstractDefaultAjaxBehavior behavior = new AbstractDefaultAjaxBehavior() { protected void respond(AjaxRequestTarget target) { // Do stuff here. } }; Then in my Javascript for the page I can just invoke the JavaScript generated by behavior.getCallbackScript(); Yes, mmm, that seems to work. That wasn't so hard to work out, now, was it? Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Stuff JQuery + Wicket Ajax
Hi all, Please ignore this mail, i found the reason why it was not working. just calling target.appendJavascript(dnd.getJSFunctionName4Start() + "();"); will do the trick. I had an idea its about calling nd.getJSFunctionName4Start(), but i tried it in a wrong way, instead of appending i tried using AjaxCalldecorator. Thanks Dipu On Nov 21, 2007 4:37 PM, Dipu Seminlal <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to use the Wicket Stuff JQuery - Drag and Drop feature, > > I constructed simple list as in the example and everything works fine, > > Now i add a new item to the list, i add the new item on the click of > an AjaxLink and redraw the list. > > But after that rendering the new list on the AjaxLink click, the > Jquery drag drop feature fails to work, > It works again if i do a page refresh. > > what should i be doing to make sure that the drab drop feature will > continue to work even after redrawing the list with new items > > > Regards > Dipu > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)
On Nov 22, 2007 1:39 PM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > on my side crashing is just hanging without using 100% cpu, seems I have > firefox 2.0.0.8 on ubuntu 7.10 > What do you do to get that? I have the same config and I don't have problems (so far). Frank
Re: how to generate a javascript function
That what I need is a javascript function which contains the correct call of my window (similar to the "onlick"-content of the wicket generated link). Thanks, Heiko Alex Objelean wrote: > > Correct me if I understand you correct: > > you want beside wicket call, to execute also your script? > > > > > lodhur wrote: >> >> Wicket generates the link as follows: >> >> ... id="showAboutWindow26" onclick="var >> wcall=wicketAjaxGet('?wicket:interface=:2:showAboutWindow::IBehaviorListener:0:',null,null, >> function() {return Wicket.$$(this)}.bind(this));return !wcall;" >> href="#">info page... >> >> And if I put the "onclick"-content to my javascript function sometime it >> works >> and sometime I get an error. >> The reason for this is probably that Wicket increases the value of the >> wicket:interface >> It starts at 0 (...('?wicket:interface=:0:...) and is increased. >> >> Therefore, I thought of the dynamic creation of the function. >> >> Or is there another solution? >> >> Thanks, >> Heiko >> >> >> >> >> Alex Objelean wrote: >>> >>> Why would you need to use AjaxLink component? >>> Just put your script in the markup and it will do exactly what you >>> expect it to do. >>> >>> Alex. >>> >>> >>> lodhur wrote: Hi Wicket-Users, I'm a new in wicket and I am stuck. Currently I create an AjaxLink in my Page as follows: Index.java: --- ... add(new AjaxLink("showInfoWindow") { public void onClick(AjaxRequestTarget target) { aboutWindow.show(target); } }); ... Index.html: --- ... about page ... As result Wicket rendered following: ... ? Background: I want to use the function from my javascript menu. Maybe someone has an example? Thanks, Heiko >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896878 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)
same behavior on windows, firefox simply hangs without using cpu at all. I want to blame it on Gmail latest upgrades cuz until i noticed they had a new upgrade within gmail, i dint see this problem. But still IE7 seems to be free of the problem On Nov 22, 2007 1:39 PM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > on my side crashing is just hanging without using 100% cpu, seems I have > firefox 2.0.0.8 on ubuntu 7.10 > > On 11/22/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > > > i dont have firebug install as well and it keeps me from wicket > > forum...its > > a nasty bug and have switched temporarily to IE7. But i dont know who to > > blaim...Gmail or Firefox? > > > > On Nov 21, 2007 12:34 PM, Francis De Brabandere <[EMAIL PROTECTED]> > > wrote: > > > > > I have the same problem, is that firebug an extension? I don't have it > > > installed. > > > > > > On Nov 20, 2007 10:29 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > > > > > > Have you disabled Firebug for Gmail? > > > > > > > > On Nov 20, 2007 3:28 PM, Ayodeji Aladejebi <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > Please this is off wicket topic but i do notice my Firefox 2.0.0.9 > > > > > crashes particularly when I try to search the wicket mailing list > > for > > > > > FAQs. This started happening since i noticed an upgrade in Gmail > > > > > > > > > > Anyone experiencing somthing like this? > > > > > > > > > > > > > > > thanks > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -- > > > > Nick Heudecker > > > > Professional Wicket Training & Consulting > > > > http://www.systemmobile.com > > > > > > > > Eventful - Intelligent Event Management > > > > http://www.eventfulhq.com > > > > > > > > > > > > > > > > -- > > > http://www.somatik.be > > > Microsoft gives you windows, Linux gives you the whole house. > > > > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. >
Re: how to generate a javascript function
You can do the following: override the getAjaxCallDecorator() method of AjaxLink component. lodhur wrote: > > Wicket generates the link as follows: > > ... id="showAboutWindow26" onclick="var > wcall=wicketAjaxGet('?wicket:interface=:2:showAboutWindow::IBehaviorListener:0:',null,null, > function() {return Wicket.$$(this)}.bind(this));return !wcall;" > href="#">info page... > > And if I put the "onclick"-content to my javascript function sometime it > works > and sometime I get an error. > The reason for this is probably that Wicket increases the value of the > wicket:interface > It starts at 0 (...('?wicket:interface=:0:...) and is increased. > > Therefore, I thought of the dynamic creation of the function. > > Or is there another solution? > > Thanks, > Heiko > > > > > Alex Objelean wrote: >> >> Why would you need to use AjaxLink component? >> Just put your script in the markup and it will do exactly what you expect >> it to do. >> >> Alex. >> >> >> lodhur wrote: >>> >>> Hi Wicket-Users, >>> >>> I'm a new in wicket and I am stuck. >>> Currently I create an AjaxLink in my Page as follows: >>> >>> Index.java: >>> --- >>> ... >>> add(new AjaxLink("showInfoWindow") { >>> public void onClick(AjaxRequestTarget target) { >>> aboutWindow.show(target); >>> } >>> }); >>> ... >>> >>> Index.html: >>> --- >>> ... >>> >>> about page >>> ... >>> >>> As result Wicket rendered following: >>> >>> ... >>> >>> ? >>> Background: I want to use the function from my javascript menu. >>> >>> Maybe someone has an example? >>> >>> Thanks, >>> Heiko >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896657 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate a javascript function
Correct me if I understand you correct: you want beside wicket call, to execute also your script? lodhur wrote: > > Wicket generates the link as follows: > > ... id="showAboutWindow26" onclick="var > wcall=wicketAjaxGet('?wicket:interface=:2:showAboutWindow::IBehaviorListener:0:',null,null, > function() {return Wicket.$$(this)}.bind(this));return !wcall;" > href="#">info page... > > And if I put the "onclick"-content to my javascript function sometime it > works > and sometime I get an error. > The reason for this is probably that Wicket increases the value of the > wicket:interface > It starts at 0 (...('?wicket:interface=:0:...) and is increased. > > Therefore, I thought of the dynamic creation of the function. > > Or is there another solution? > > Thanks, > Heiko > > > > > Alex Objelean wrote: >> >> Why would you need to use AjaxLink component? >> Just put your script in the markup and it will do exactly what you expect >> it to do. >> >> Alex. >> >> >> lodhur wrote: >>> >>> Hi Wicket-Users, >>> >>> I'm a new in wicket and I am stuck. >>> Currently I create an AjaxLink in my Page as follows: >>> >>> Index.java: >>> --- >>> ... >>> add(new AjaxLink("showInfoWindow") { >>> public void onClick(AjaxRequestTarget target) { >>> aboutWindow.show(target); >>> } >>> }); >>> ... >>> >>> Index.html: >>> --- >>> ... >>> >>> about page >>> ... >>> >>> As result Wicket rendered following: >>> >>> ... >>> >>> ? >>> Background: I want to use the function from my javascript menu. >>> >>> Maybe someone has an example? >>> >>> Thanks, >>> Heiko >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896656 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate a javascript function
Wicket generates the link as follows: # info page And if I put the "onclick"-content to my javascript function sometime it works and sometime I get an error. The reason for this is probably that Wicket increases the value of the wicket:interface It starts at 0 (...('?wicket:interface=:0:...) and is increased. Therefore, I thought of the dynamic creation of the function. Or is there another solution? Thanks, Heiko Alex Objelean wrote: > > Why would you need to use AjaxLink component? > Just put your script in the markup and it will do exactly what you expect > it to do. > > Alex. > > > lodhur wrote: >> >> Hi Wicket-Users, >> >> I'm a new in wicket and I am stuck. >> Currently I create an AjaxLink in my Page as follows: >> >> Index.java: >> --- >> ... >> add(new AjaxLink("showInfoWindow") { >> public void onClick(AjaxRequestTarget target) { >> aboutWindow.show(target); >> } >> }); >> ... >> >> Index.html: >> --- >> ... >> >> about page >> ... >> >> As result Wicket rendered following: >> >> ... >> >> ? >> Background: I want to use the function from my javascript menu. >> >> Maybe someone has an example? >> >> Thanks, >> Heiko >> >> > > -- View this message in context: http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896307 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageSavingThread keeps running after undeploy
Deploying the phonbook example application does not cause this PageSavingThread to be started, is there some other application I can try to reproduce this problem? Francis On 11/22/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Please create a jira entry, it's a bug probably. > > -Matej > > On Nov 22, 2007 11:17 AM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > We are deploying our wicket application to Glassfish (V2). After undeploying > > and deploying a few times the PageSavingThread's of each deploy keeps > > running. Any ideas why this might be happening? > > > > Thanks in advance, > > > > Francis > > > > -- > > http://www.somatik.be > > Microsoft gives you windows, Linux gives you the whole house. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate a javascript function
Why would you need to use AjaxLink component? Just put your script in the markup and it will do exactly what you expect it to do. Alex. lodhur wrote: > > Hi Wicket-Users, > > I'm a new in wicket and I am stuck. > Currently I create an AjaxLink in my Page as follows: > > Index.java: > --- > ... > add(new AjaxLink("showInfoWindow") { > public void onClick(AjaxRequestTarget target) { > aboutWindow.show(target); > } > }); > ... > > Index.html: > --- > ... > > about page > ... > > As result Wicket rendered following: > > ... > > ? > Background: I want to use the function from my javascript menu. > > Maybe someone has an example? > > Thanks, > Heiko > > -- View this message in context: http://www.nabble.com/how-to-generate-a-javascript-function-tf4856086.html#a13896044 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)
on my side crashing is just hanging without using 100% cpu, seems I have firefox 2.0.0.8 on ubuntu 7.10 On 11/22/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > i dont have firebug install as well and it keeps me from wicket > forum...its > a nasty bug and have switched temporarily to IE7. But i dont know who to > blaim...Gmail or Firefox? > > On Nov 21, 2007 12:34 PM, Francis De Brabandere <[EMAIL PROTECTED]> > wrote: > > > I have the same problem, is that firebug an extension? I don't have it > > installed. > > > > On Nov 20, 2007 10:29 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > > > > Have you disabled Firebug for Gmail? > > > > > > On Nov 20, 2007 3:28 PM, Ayodeji Aladejebi <[EMAIL PROTECTED]> > wrote: > > > > > > > Please this is off wicket topic but i do notice my Firefox 2.0.0.9 > > > > crashes particularly when I try to search the wicket mailing list > for > > > > FAQs. This started happening since i noticed an upgrade in Gmail > > > > > > > > Anyone experiencing somthing like this? > > > > > > > > > > > > thanks > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Nick Heudecker > > > Professional Wicket Training & Consulting > > > http://www.systemmobile.com > > > > > > Eventful - Intelligent Event Management > > > http://www.eventfulhq.com > > > > > > > > > > > -- > > http://www.somatik.be > > Microsoft gives you windows, Linux gives you the whole house. > > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.
Re: How to instanciate panels best?
Al Maw-2 wrote: > > Icy wrote: >> *** What is the "best practise" to not instanciate "page aggregating >> panels" >> all the time? *** > > This isn't really a Wicket question. > > Your page is slow because doing database/remote operations is slow. It > has nothing to do with creating Panels, but everything to do with the > database access you're doing in the constructor of those Panels. > > You need to break those operations out into a service layer that can > cache the results, then use that service layer in your constructor. > > Regards, > > Al > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Dear Al, Thanks for your help. If I interpret your answer correctly, this means that the way my page is composed and the panels are instanciated is "the Wicket way", I mean, correct. Ok, what I could do then, is creating Spring managed singleton beans (I work with a Wicket/Spring/Hibernate environment) - or at least one - that gather the data for me, and let my panels request the data from the Spring bean. So this somehow means I do the caching on my own, to fill the panels efficiently, but if this is how it has to be done using Wicket, I will go that way without thinking I am doing something unelegant. Many thanks, Icy -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13895934 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to instanciate panels best?
Icy wrote: *** What is the "best practise" to not instanciate "page aggregating panels" all the time? *** This isn't really a Wicket question. Your page is slow because doing database/remote operations is slow. It has nothing to do with creating Panels, but everything to do with the database access you're doing in the constructor of those Panels. You need to break those operations out into a service layer that can cache the results, then use that service layer in your constructor. Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)
i dont have firebug install as well and it keeps me from wicket forum...its a nasty bug and have switched temporarily to IE7. But i dont know who to blaim...Gmail or Firefox? On Nov 21, 2007 12:34 PM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > I have the same problem, is that firebug an extension? I don't have it > installed. > > On Nov 20, 2007 10:29 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > > Have you disabled Firebug for Gmail? > > > > On Nov 20, 2007 3:28 PM, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > > > > Please this is off wicket topic but i do notice my Firefox 2.0.0.9 > > > crashes particularly when I try to search the wicket mailing list for > > > FAQs. This started happening since i noticed an upgrade in Gmail > > > > > > Anyone experiencing somthing like this? > > > > > > > > > thanks > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Nick Heudecker > > Professional Wicket Training & Consulting > > http://www.systemmobile.com > > > > Eventful - Intelligent Event Management > > http://www.eventfulhq.com > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. >
Re: PageSavingThread keeps running after undeploy
Please create a jira entry, it's a bug probably. -Matej On Nov 22, 2007 11:17 AM, Francis De Brabandere <[EMAIL PROTECTED]> wrote: > Hi all, > > We are deploying our wicket application to Glassfish (V2). After undeploying > and deploying a few times the PageSavingThread's of each deploy keeps > running. Any ideas why this might be happening? > > Thanks in advance, > > Francis > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxSelfUpdatingTimerBehavior and AbstractAjaxTimerBehavior no longer able to be added via Ajax
Hi, there is no easy workaround I'm affraid. It's a bug that needs to be fixed. I've reopened the issue. -Matej On Nov 22, 2007 2:10 AM, Matt Clark <[EMAIL PROTECTED]> wrote: > Hi all, > > > > I posted an update to a ticket tonight > (https://issues.apache.org/jira/browse/WICKET-745), which points out how > the two classes mentioned in the subject are 'broken' in beta4 and rc1. > We need to be able to add an AjaxSelfUpdatingTimerBehavior via Ajax, so > that the component we just added via ajax updates itself automatically. > With the change in beta4 it appears this is no longer possible because > it won't render the javascript into an ajax request other than its own. > > > > Does anyone know of a good workaround (temporary or permanent) for this? > > > > Thanks! > > Matt Clark > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasypt + ICrypt + ICryptFactory
Hello everyone, I am about to release a new version (1.4) of Jasypt [http://www.jasypt.org], and I am considering the addition of some wicket integration features for improving wicket's encryption capabilities. But I would first need to ask a couple of things :-)... First, what I will do (have already done, in fact): I have added to jasypt both an implentation of the org.apache.wicket.util.crypt.ICrypt and org.apache.wicket.util.crypt.ICryptFactory interfaces. The idea is to use JasyptFactory as the desired ICryptFactory implementation for the application, like this: --(CODE WHICH WOULD GO INTO OUR "WebApplication" CLASS)-- @Override protected void init() { super.init(); /* * In the following code example we will create a Jasypt byte * encryptor by hand, but in real world we can get it from Spring, * configure it via Web PBE configuration... whatever we want to. */ StandardPBEByteEncryptor encryptor = new StandardPBEByteEncryptor(); encryptor.setAlgorithm("PBEWithMD5AndDES"); encryptor.setPassword("jasypt"); /* * Create the Jasypt Crypt Factory with the desired encryptor, * which will return org.jasypt.wicket.JasyptCrypt objects implementing * the org.apache.wicket.util.crypt.ICrypt interface. */ ICryptFactory jasyptCryptFactory = new JasyptCryptFactory(encryptor); /* * Set the Jasypt Crypt Factory into the application configuration. */ getSecuritySettings().setCryptFactory(jasyptCryptFactory); } But the question here is... what is the real use of the ICryptFactory today (1.3.0-rc1) in wicket? Is it "only" encrypting URLs? (I see PasswordTextFields are not encrypted anymore) And if so, would it be of real use/need? Of course, It would increase much (as much as Java can) the security of the URLs' encryption but, would you see any other uses? If this is only used for encrypting URLs, and if I am not wrong, our "WebApplication" class would also need something like this: --(CODE WHICH WOULD GO INTO OUR "WebApplication" CLASS)-- @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { @Override protected IRequestCodingStrategy newRequestCodingStrategy() { return new CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()); } }; } Would this be correct/adequate? And more important: can I consider wicket's ICrypt and ICryptFactory interfaces *stable*? (at least until a stable 1.3.0 release). Have you got any short-term plans for changing anything in this encryption infrastructure? And the last thing: the "setKey()" method in ICrypt is not usable in Jasypt, as encryptor configuration and initialization is quite more complex and PBE keys (encryption passwords) cannot be changed once an encryptor has already been initialized (password is set on the jasypt encryptor, not the wicket-friendly JasyptCrypt). So, JasyptCrypt will always throw an exception if this method is called. Currently in wicket, "setKey" is only called from org.apache.wicket.util.crypt.ClassCryptFactory, which jasypt does not extend, so this would not pose any problems for the future, but... could it make sense that that "setKey" method were called by the developer anywhere else? this would render jasypt integration quite complicated... Sorry for the size of the message and the lot of questions :-) Regards, Daniel.
Re: Quite a few Wicket jobs/employers.
Nice page. I did notice one mistake though. The link to Topicus points to topicus.com but it should be http://www.topicus.nl/ Maurice On Nov 22, 2007 1:48 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > things seem to have been building for a while. i've been in touch with some > pretty big companies this year and more every week it seems. i now have a > http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Wicket.html Wicket > propaganda page that collects a few data points to give a rough picture of > the growing activity. > > > jweekend wrote: > > > > I came across http://www.indeed.com/jobs?q=wicket+java&start=10 this > > today. I hadn't noticed before that there were already so many companies > > (including Time/Warner, Leapfrog, Nokia ...) looking for Wicket > > developers. > > Has this been the case for a while or is the Wicket jobs market just now > > becoming this buoyant? > > > > Regards - Cemal > > http://jWeekend.co.uk http://jWeekend.co.uk > > > > PS To the person, with first initial D and email address > > [EMAIL PROTECTED], that contacted jWeekend recently via our site about > > doing some Wicket work for us remotely; I believe you have a typo in the > > email address you left - did you receive our automated reply that was sent > > to that address? If you would like us to consider your application, please > > contact us again with a correct email address. > > > > -- > View this message in context: > http://www.nabble.com/Quite-a-few-Wicket-jobs-employers.-tf4853412.html#a13889042 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AuthenticatedWebSession
Hi, In setting up the logon of our application, I'd like to use the AuthenticatedWebSession to hold some additional information. There shouldn't be a problem with that I assume, however I'm getting a problem with this. It seems the session isn't created until the user encounters an @AuthorizeInstantiation("..."), but there are parts of the page which doesn't require authentication and thus no session for me to use. Is there a better strategy for containing the business layer main object, or a way to ensure that the AuthenticatedWebSession is created at the same time as the Application? Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trigger client machine program
Hi, I need to trigger a program which installed on client machine when use press a button from a web page, I wonder what's the best way to do it? Any links? Many thanks, Ray -- View this message in context: http://www.nabble.com/Trigger-client-machine-program-tf4855543.html#a13894375 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conversion Error Messages
Thanks it worked. Martijn Dashorst wrote: > > From Wicket in Action, chapter 7: > > A failed conversion will be registered as a validation error using the > resource key (for the feedback message) 'IConverter' and > 'IConverter.' (substitute the type name with the conversion > type, > such as Long or ZipCode). > > > Martijn > > On Nov 22, 2007 10:18 AM, carloc <[EMAIL PROTECTED]> wrote: > >> >> Hi Guys, >> >> I would like to ask help on something. >> I have a text box which accepts the field which is supposed to be a >> double. >> everytime that a user enters a field that isn't a double the error >> message >> 'Field is not a valid double' appears. However I want it to display a >> different error message this time. I'm having trouble fixing it. >> How I can I make it display that 'Field is not a valid amount' ? >> >> Thanks a lot. >> -- >> View this message in context: >> http://www.nabble.com/Conversion-Error-Messages-tf4855219.html#a13893418 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-rc1 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/ > > -- View this message in context: http://www.nabble.com/Conversion-Error-Messages-tf4855219.html#a13894178 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageSavingThread keeps running after undeploy
Hi all, We are deploying our wicket application to Glassfish (V2). After undeploying and deploying a few times the PageSavingThread's of each deploy keeps running. Any ideas why this might be happening? Thanks in advance, Francis -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.
Re: Quite a few Wicket jobs/employers.
Great page! And good pointers. Jonathan Locke wrote: things seem to have been building for a while. i've been in touch with some pretty big companies this year and more every week it seems. i now have a http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Wicket.html Wicket propaganda page that collects a few data points to give a rough picture of the growing activity. jweekend wrote: I came across http://www.indeed.com/jobs?q=wicket+java&start=10 this today. I hadn't noticed before that there were already so many companies (including Time/Warner, Leapfrog, Nokia ...) looking for Wicket developers. Has this been the case for a while or is the Wicket jobs market just now becoming this buoyant? Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk PS To the person, with first initial D and email address [EMAIL PROTECTED], that contacted jWeekend recently via our site about doing some Wicket work for us remotely; I believe you have a typo in the email address you left - did you receive our automated reply that was sent to that address? If you would like us to consider your application, please contact us again with a correct email address. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert String to desired class object
Sorry for asking the wrong question, I found the error. The error was some where else. I asked the question in hurry. Any way, I got to know the models and dropdownchoice better. This is the first time I am developing the application in wicket.Thanks to all of you who helped me. thanks tsuresh wrote: > > I have two classes User and Role.User class has Role as one of its > attributes and getRole() and setRole() methods. Role class > > has two attributes name and description. > > I have a form to add user with drop down choice which has list of role > names. When I submit the form, I need to add this form > > value role name to user database. But at present it is showing null > pointer exception. How do I convert this String value > > (role name ) to Role object. My code is as below. > > > > TextField userNameComp = new TextField("username"); > > ... > .. > > DropDownChoice ddc = new DropDownChoice("role",roleList); > form.add(userNameComp); > ... > . > .. > form.add(ddc); > } > > class userAddForm extends Form { > public userAddForm(String id,IModel model) { > super(id,model); > } > @Override > public void onSubmit() { > User ad = (User)getModelObject(); > .. > ad.add(); // class User has add() method which adds the > values of the UserAddForm to database > . > . > } > } > } > > > Please help. > thanks > -- View this message in context: http://www.nabble.com/Convert-String-to-desired-class-object-tf4848185.html#a13893940 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conversion Error Messages
>From Wicket in Action, chapter 7: A failed conversion will be registered as a validation error using the resource key (for the feedback message) 'IConverter' and 'IConverter.' (substitute the type name with the conversion type, such as Long or ZipCode). Martijn On Nov 22, 2007 10:18 AM, carloc <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > I would like to ask help on something. > I have a text box which accepts the field which is supposed to be a > double. > everytime that a user enters a field that isn't a double the error message > 'Field is not a valid double' appears. However I want it to display a > different error message this time. I'm having trouble fixing it. > How I can I make it display that 'Field is not a valid amount' ? > > Thanks a lot. > -- > View this message in context: > http://www.nabble.com/Conversion-Error-Messages-tf4855219.html#a13893418 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-rc1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
Conversion Error Messages
Hi Guys, I would like to ask help on something. I have a text box which accepts the field which is supposed to be a double. everytime that a user enters a field that isn't a double the error message 'Field is not a valid double' appears. However I want it to display a different error message this time. I'm having trouble fixing it. How I can I make it display that 'Field is not a valid amount' ? Thanks a lot. -- View this message in context: http://www.nabble.com/Conversion-Error-Messages-tf4855219.html#a13893418 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to instanciate panels best?
Dear Wicket Team, First of all, let me say that Wicket is the best thing in Java Web development today! It really brings Java back to be a first choice when creating Web applications. Thanks for your development efforts :) I have a question regarding the instanciation of panels of which I have a huge number placed at top, bottom , left side and right side of a web site, and that should be shown again on any page of the side. This is a very common design I guess. I was browsing the documentation and the mail archive, but didn't really find a solution concerning the instanciation. This is the scenario: - I have a template page, that all other pages I create are extending. - This template page defines a number of panels (menu at the top, statistics and pictures at the left side, dynamic messages at the right side, ...), and for sure an area for the main page content using "wicket:child" approach. - The panels read data from the internet, and from a database, but their content does not change very often. Consider e.g. showing user statistics of how many messages he/she posted. This does only change when really a new message was posted. The problem: - Whenever a page is requested, the template page instantiates all panels using "add(new Panel("nameX"))". The panels do again read data from the internet, and from the database. This is not very fast, and it appears to me that the processing power and memory consumption for this might be high. Imagine thousands of users using the web site. I guess the approach I have chosen is not the best solution. The pages have models behind any way, so they know their data, they don't have to be reconstructed all the time. I have this behaviour e.g. when I submit a form, and no new target is given - the page is reconstructed without instanciating all panels again, it just renders all panels with the data coming from the models behind. *** What is the "best practise" to not instanciate "page aggregating panels" all the time? *** I had the following ideas: - Using the user session to store my page object references to check if a panel is already instanciated and then just use the reference instead of doing a new? - Using some mechanism to get a panel reference from the wicket session, where the page and models are stored anyway? -> Both approaches require unelegant "manual work", for which I think Wicket is offering something, as one of the main aspects of the Wicket framework is page management. - Using Spring to manage the Panels? -> Is this wanted from the Wicket design point of view? And does it really work? Many thanks in advance for your help. Maybe I really missed it and this very common problem is already explained somewhere. Kind regards Icy -- View this message in context: http://www.nabble.com/How-to-instanciate-panels-best--tf4855189.html#a13893312 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket-Seam Integration
Hi Eelco, On Nov 22, 2007 3:37 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Nov 22, 2007 12:33 AM, Frank Martínez <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I posted more documentation about the wicket-seam example project: > > > > http://www.ibstaff.net/fmartinez/?p=43 > > Cheers Frank. > > Say, just out of curiosity, what are your reasons for not sticking > with proxies like the wicket-seam-test project does? And could you > give a few highlights as to what kind of things you support and what > you don't in the context of Seam? > > Thanks, > > Eelco > Why i do not use proxies: 1. Seam injected Ejbs and JNDI resources are already proxies, so i don't want a proxy of the proxy of the proxy .. 2. Because proxies are not outjection frendly in this case. 3. Because it is important that you can inject/outject null references. What is supported by now: 1. Injection of seam components and context vars. - You can inject resources based in its field/method name, explicit name, type name, or even an EL expression. 2. Outjection - You can outject things to the seam context using fields and methods 3. Evaluation of EL Expressions against all seam contexts: - Using SeamContext.eval( expression ) - As a value of an @In annotation. for example you can use: @In("#{personService.count()}") private Integer count; 4. Easy access to seam contexts (Read/Write): - Using SeamContexts.set( ... ), SeamContexts.get( ... ), SeamContexts.eval( ... ) What is not supported: 1. @Name annotation on Wicket pages/components is not supported (obvious). 2. Seam injection/outjection via annotations is only supported at page level, but you can access seam context directly using SeamContext class from anywhere. Cheers, Frank -- Frank D. Martínez M. Asimov Technologies Ltda. Blog: http://www.ibstaff.net/fmartinez/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disabled AjaxEditableMultiLineLabel
This is the code (wicket 1.3 rc1) add(new AjaxEditableMultiLineLabel("Comment", new PropertyModel(experiment, "experimentDetailStat.Comment")){ /* @Override protected void onEdit(AjaxRequestTarget target) { if(isEnabled()){ super.onEdit(target); } } */ @Override protected void onSubmit(AjaxRequestTarget target) { super.onSubmit(target); Util.getBean(GenericLocal.class).saveObject( experiment.getExperimentDetailStat()); } }.setEnabled(LoginSession.get().isAdmin())); and I tested by replacing the LoginSession.get().isAdmin() by false but I'm still able to edit that field Regards Francis On 11/21/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > Francis, > i would really be interested in your code that doesn't seem to work, if > you > don't mind. > as of before Al's fix, it already worked for me because: > > the label is dis-/enabled in AjaxEditableLabel#onBeforeRender: > label.setEnabled(isEnableAllowed() && isEnabled()); > > and since the LabelAjaxBehavior is derived from AjaxEventBehavior, the > eventhandler is only rendered, > if the associated component is enabled. see > AjaxEventBehavior#onComponentTag > > regards, > Gerolf > > On Nov 21, 2007 1:26 PM, Francis De Brabandere <[EMAIL PROTECTED]> > wrote: > > > ok, i'll check on next release > > > > On Nov 21, 2007 12:56 PM, Al Maw <[EMAIL PROTECTED]> wrote: > > > > > Francis De Brabandere wrote: > > > > doing setEnabled(false) on a AjaxEditableMultiLineLabel does not > > disable > > > the > > > > editing feature > > > > > > > > this can be fixed by overriding onEdit(): > > > > > > > > @Override > > > > protected void onEdit(AjaxRequestTarget target) { > > > > if(isEnabled()){ > > > > super.onEdit(target); > > > > } > > > > } > > > > > > > > but shouldn't this be changed in the AjaxEditableMultiLineLabel > > source? > > > > > > > > ps: this might be needed on other ajax edit lables too > > > > > > It is. This should now be fixed in trunk. > > > > > > Regards, > > > > > > Al > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > http://www.somatik.be > > Microsoft gives you windows, Linux gives you the whole house. > > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.
Re: Wicket-Seam Integration
On Nov 22, 2007 12:33 AM, Frank Martínez <[EMAIL PROTECTED]> wrote: > Hi guys, > I posted more documentation about the wicket-seam example project: > > http://www.ibstaff.net/fmartinez/?p=43 Cheers Frank. Say, just out of curiosity, what are your reasons for not sticking with proxies like the wicket-seam-test project does? And could you give a few highlights as to what kind of things you support and what you don't in the context of Seam? Thanks, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket-Seam Integration
Hi guys, I posted more documentation about the wicket-seam example project: http://www.ibstaff.net/fmartinez/?p=43 -- Frank D. Martínez M. Asimov Technologies Ltda. Blog: http://www.ibstaff.net/fmartinez/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]