Is this safe?

2008-01-21 Thread Martijn Lindhout
Hi all, I wonder if this will work: add(new CartPanel(cart, new PropertyModel(s, cart))); where 's' is my app specific session, containing the method getCart() which checks the session for an existing cart, and if not found creates one. Is this enough to handle load/detach? Or do I have to

RE: We are adopting Wicket in our Organization

2008-01-21 Thread dvd
I fully agree. I used JSF/SEAM before switching to Wicket. My experience is that Wicket is JSF-Done-Right As I've stated before in a previous post, I work a for a company that develops software for the health care industry. It was a battle between JSF/Seam and Wicket as the framework of choice

Re: Is this safe?

2008-01-21 Thread Johan Compagner
What would you like to detach? What is inside that card object? I guess thats a temp storage object of shopping items? Do remenber that getting the card object from the session isnt thread safe! (mutating it can be done from more then one thread if different pagemaps and so on are used) On

Link to last version of a page of a given type/class.

2008-01-21 Thread Ned Collyer
Hi, I may be overlooking something, however I am having a bit of trouble linking to the last current version of a page unless I use the method outlined by igor, which isn't practical for what I am trying to achieve (see his method below from

Re: We are adopting Wicket in our Organization

2008-01-21 Thread Joshua Jackson
SEAM is not that bad actually. Though it still has some quirks. On 1/21/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I fully agree. I used JSF/SEAM before switching to Wicket. My experience is that Wicket is JSF-Done-Right -- It's not going to be like this forever Blog:

Re: Link to last version of a page of a given type/class.

2008-01-21 Thread Johan Compagner
Just remember in a simple valuesholder class the page id and pagmap for a page (and version if you want that) and then ask through the session for that page. If many pages (or big pages) are created in between, it could return nothing.. Depending on the size of the diskpage session/pagmap file.

Re: Is this safe?

2008-01-21 Thread Martijn Lindhout
ok, and if the session isn't thread safe, where do I store my temporal data? 2008/1/21, Johan Compagner [EMAIL PROTECTED]: The session. Because the property exp is used when you ask for the value On 1/21/08, Martijn Lindhout [EMAIL PROTECTED] wrote: you're right. It contains a

Re: Questions for permission of using the design of wicket-example

2008-01-21 Thread Johan Compagner
Cool to hear that it is such a big success! I cant believe that you couldnt use those things if they are all also released under apache license but lets wait for martijn. (you could drop the apache form the apache wicket name) On 1/20/08, Tsutomu Yano [EMAIL PROTECTED] wrote: Hi, Few days

Re: Is this safe?

2008-01-21 Thread Martijn Lindhout
you're right. It contains a shoppingcart. What is stored in the propertymodel, the session? Or the result of evaluating the expression s.cart - session.getCart(). And if the session isn't thread safe, where do I store my temporal data? 2008/1/21, Johan Compagner [EMAIL PROTECTED]: What would

Re: Is this safe?

2008-01-21 Thread Johan Compagner
The session. Because the property exp is used when you ask for the value On 1/21/08, Martijn Lindhout [EMAIL PROTECTED] wrote: you're right. It contains a shoppingcart. What is stored in the propertymodel, the session? Or the result of evaluating the expression s.cart - session.getCart().

Re: Questions for permission of using the design of wicket-example

2008-01-21 Thread Peter Thomas
On 1/21/08, Johan Compagner [EMAIL PROTECTED] wrote: Cool to hear that it is such a big success! I cant believe that you couldnt use those things if they are all also released under apache license but lets wait for martijn. (you could drop the apache form the apache wicket name) Can some

Re: Link to last version of a page of a given type/class.

2008-01-21 Thread Ned Collyer
Hi Johan, Thank you for the reply. This suggestion will work, but it seems like something that the framework should do automatically. The whole maintaining state thing is meant to maintain state between requests without the extra dev overhead of manually plugging stuff into, and pulling out of

Re: Is this safe?

2008-01-21 Thread Martijn Lindhout
custom request cycle? 2008/1/21, Martijn Dashorst [EMAIL PROTECTED]: Typically a custom request cycle for the actual object and store the key for getting access to the object in the session. If the cart is not a hibernate entity, but something really transient, I don't think there is any

Re: Questions for permission of using the design of wicket-example

2008-01-21 Thread Martijn Dashorst
Actually, Wicket as it pertains to Apache Wicket is protected. I'm just not sure to what extent. It may even be that new open source projects many not call them WicketFoo, but rather Foo for Apache Wicket. It all has to do with protecting the trademark. However, I'm still waiting for a reply from

Re: Questions for permission of using the design of wicket-example

2008-01-21 Thread Martijn Dashorst
On 1/21/08, Peter Thomas [EMAIL PROTECTED] wrote: Oh and by the way I noticed a poll on the Spring front page: http://www.springframework.org/ that asks the question which web templating framework do you use and Wicket is one of the choices :) And of course the poll is rather skewed... Who

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread Martijn Dashorst
You might want to skip the packaged version (IMO linux packagers don't get the Java packaging), and just unzip a tarball in /opt/tomcat/tomcat-5.5.20 Then you are in complete control over how the server runs. Martijn On 1/21/08, Daniel Walmsley [EMAIL PROTECTED] wrote: I blogged this, and

Re: Questions for permission of using the design of wicket-example

2008-01-21 Thread Peter Thomas
On 1/21/08, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/21/08, Peter Thomas [EMAIL PROTECTED] wrote: Oh and by the way I noticed a poll on the Spring front page: http://www.springframework.org/ that asks the question which web templating framework do you use and Wicket is one of the

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread Johan Compagner
Take then the latest 6 5 is getting pretty old On 1/21/08, Martijn Dashorst [EMAIL PROTECTED] wrote: You might want to skip the packaged version (IMO linux packagers don't get the Java packaging), and just unzip a tarball in /opt/tomcat/tomcat-5.5.20 Then you are in complete control over how

Re: Link to last version of a page of a given type/class.

2008-01-21 Thread Johan Compagner
Wicket does maintain state, but what you want is something different and currently not supported. We dont have 'static' pages for a specific page class. You are in full control. About pag.getversion those methods shouldnt be used by users of wicket at all. If you want something like this because

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread C.
On Mon, 2008-01-21 at 11:31 +0100, Martijn Dashorst wrote: You might want to skip the packaged version (IMO linux packagers don't get the Java packaging), and just unzip a tarball in /opt/tomcat/tomcat-5.5.20 Then you are in complete control over how the server runs. -1 Some distro

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread C.
On Mon, 2008-01-21 at 11:52 +0100, Johan Compagner wrote: Take then the latest 6 5 is getting pretty old I know from first hand experience with a couple Linux distros are still on 5 as it's 'stable'. More to the point is that they probably can't support slotted upgrades where half of the

Override HTML in html fragment

2008-01-21 Thread Sam Hough
We want to switch an input field between input type=text and textarea depending on how large the existing data is. Is there any way to do this without needing a spurious placeholder element? ie We would rather not have a but rather just get the text or textarea in the final HTML . So anything I

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread Martijn Dashorst
So your advise is to run a *very* outdated version because the packagers haven't updated their software? Sounds like a great way to open up your system to hackers. Martijn On 1/21/08, C. Bergström [EMAIL PROTECTED] wrote: On Mon, 2008-01-21 at 11:31 +0100, Martijn Dashorst wrote: You might

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread C.
On Mon, 2008-01-21 at 12:13 +0100, Martijn Dashorst wrote: So your advise is to run a *very* outdated version because the packagers haven't updated their software? Sounds like a great way to open up your system to hackers. That's a very broad and sweeping statement. 1) I'm sure if

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread Johan Compagner
Completely not working is a great security fix yes... If that distro is still in 5.5 mode then i question there updates On 1/21/08, C. Bergström [EMAIL PROTECTED] wrote: On Mon, 2008-01-21 at 11:31 +0100, Martijn Dashorst wrote: You might want to skip the packaged version (IMO linux packagers

Re: Ext JS, form submit

2008-01-21 Thread Murat Yücel
Hi Flemming I have also tried to integrate ExtJS and wicket, but i dont think it is possible if you need to post or edit content on a page. The best way to post a form is to use xml between ext and wicket but then it doesnt makes sense to use wicket. Wicket needs markup, ext doesnt have any

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread Martijn Dashorst
I think that most linux packagers don't work with Java projects and do whatever they like. What Daniel is experiencing is an overzealous packager that shuts down the most basic service tomcat needs to provide: run a web application that does more than serve static pages. Packagers often make any

Re: Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-21 Thread C.
On Mon, 2008-01-21 at 12:28 +0100, Johan Compagner wrote: Completely not working is a great security fix yes... If that distro is still in 5.5 mode then i question there updates Here's the wishlist item for why there isn't currently 6.x in deb etch

Different views in wicket

2008-01-21 Thread Mathias P.W Nilsson
Hi! I'm developing a site that has different views and languages. How does this fit in the wicket framework? When adding a WebPage you get a default .html view. Is there anyway on having multiple views for a wicket page? How do you develop a site with same model but different views? // Mathias

bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
Hi:  On a Home page menu bar, I put a FAQ link add(new Bookmarkablelinl(id,FAQ.class)    it is not an external static html file link since it would includes a few other bookmarkable links/buttons.  It is content does not change, but in the same session, say every second, when I click on the

RE: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
To simpplify the issue, Consider the following Home.html html span wicket:id=text//html Home.java add(new Label(text, StaticText) Everytime the home page is accessed, Home.java is created anew and so is the text label even though the content should remain the same through the session. How can I

Re: Jboss Portal + Wicket (Portlet)

2008-01-21 Thread Markqt
Hi Suli, Thanks much for the details. Where did you get calss JbossPortletResourceURLFactory? This is exactly what I am missing. I can't find it in jboss portal, wicket1.3 download, or apache portal bridge1.04. If this is your own implementation, can you please post the code? init-param

Re: Jboss Portal + Wicket (Portlet)

2008-01-21 Thread Süli Zsolt
JbossPortletResourceURLFactory is my custom class. As far as I know Jboss Portal team hasn't implemented it yet, so I did the job (it's not a big thing though as u can see in my previous letter). So check my last letter for the code ... especially the part And my implementation of

Re: RadioChoice : default choice ?

2008-01-21 Thread scottomni
Thanks for the suggestion (to hit the Java Books, further), Per. I'm sure that is sage advice. However, just to clarify... - I am aware that RadioChoice *is* a different Type than String - my question: how is a RadioChoice value converted back and forth with a String? - It appears (to me)

Re: Override tag name in html fragment?

2008-01-21 Thread Sam Hough
@Override protected final void onComponentTag(final ComponentTag tag) { tag.setName(input); tag.put(type, text); super.onComponentTag(tag); } Seems to do what I want but is this a valid extension point? In PasswordTextBox and

parsevelocity template

2008-01-21 Thread fattymelt
-- View this message in context: http://www.nabble.com/%22parsevelocity-template-tp14999729p14999729.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

parse directive in velocity template failing

2008-01-21 Thread fattymelt
I am using a velocity template, and within it would like to use velocity's parse directive (to include another template within the current template) but it complains that it can not find the template in velocity's TEMPLATE_ROOT. I have triple-checked that the template is in the same directory as

Re: How to change the style of navigator in PageableViewList

2008-01-21 Thread trames
Extend PagingNavigator. I made a custom one so I can use everywhere: It looks something like this First Prev 1 2 3 4 Next Last The active page will be in Red and italics. You can make it anything you want by changing the HTML and/or CSS. Hope it works for you. Java -

Tip:ServletContext from WicketFilter

2008-01-21 Thread Ayodeji Aladejebi
Well, I have started migrating some code to 1.3, however i had some STOP-AND-CONFIRM situation In 1.2.x ServletContext context = Application.getWicketServlet().getServletContext() ? doSomethingWithContext(context); Migrating to 1.3.x ServletContext context =

Re: Tip:ServletContext from WicketFilter

2008-01-21 Thread Johan Compagner
that should still work. On Jan 21, 2008 4:42 PM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Well, I have started migrating some code to 1.3, however i had some STOP-AND-CONFIRM situation In 1.2.x ServletContext context = Application.getWicketServlet ().getServletContext() ?

Re: Different views in wicket

2008-01-21 Thread Nino Saturnino Martinez Vazquez Wael
try get variation... Mathias P.W Nilsson wrote: Hi! I'm developing a site that has different views and languages. How does this fit in the wicket framework? When adding a WebPage you get a default .html view. Is there anyway on having multiple views for a wicket page? How do you develop a

Re: RadioChoice : default choice ?

2008-01-21 Thread cblehman
Scott, To answer your last question, to set a selected value on the RadioChoice, you must set the PropertyModel's value to what you want selected. One thing that took me a while to figure out personally (and I have been programming in java for several years) is that the Object you set in the

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Sergey Podatelev
On Jan 20, 2008 8:14 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i would map the form to a bean, and then in onsubmit() transfer those properties to an instance of your domain object. Igor, could you please tell in short how is this better than just get data form the models of each

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Martijn Dashorst
Having a bean makes things explicit. Getting stuff from a text component directly is very read unfriendly. See it as a small investment in maintenance. You will thank yourself later for taking the 1 minute to generate the bean :-) But it is all a matter of taste and one can argue about that for

Re: Different views in wicket

2008-01-21 Thread Mathias P.W Nilsson
I don't understand your reply. Can you please explain? -- View this message in context: http://www.nabble.com/Different-views-in-wicket-tp14997475p15002034.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Different views in wicket

2008-01-21 Thread Erik van Oosten
Mathias P.W Nilsson schreef: I don't understand your reply. Can you please explain? Each template (html) file can come in variations. E.g HomePage_green.html. In HomePage.java you can call setVariation(green). Does that help? Regards, Erik.

Re: Different views in wicket

2008-01-21 Thread Igor Vaynberg
wicket tries to load localized files first. so if you have MyPage.class and you are in german locale the loading order would be MyPage_DE_de.html MyPage_DE.html MyPage.html then there are also variations, if your page.getvariation() returns foo then the loading order is MyPage_foo_DE_de.html

Re: Different views in wicket

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 9:29 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Mathias P.W Nilsson schreef: I don't understand your reply. Can you please explain? Each template (html) file can come in variations. E.g HomePage_green.html. In HomePage.java you can call setVariation(green). Yes. And

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Igor Vaynberg
it gives you the advantage of being able to construct your domain objects easily: new Person(personBean); you also dont have to access the form components directly to poll their models, to me this is a plus. -igor On Jan 21, 2008 9:00 AM, Sergey Podatelev [EMAIL PROTECTED] wrote: On Jan 20,

Re: Tip:ServletContext from WicketFilter

2008-01-21 Thread Igor Vaynberg
there is a webapplication.getservletcontext(). -igor On Jan 21, 2008 7:42 AM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Well, I have started migrating some code to 1.3, however i had some STOP-AND-CONFIRM situation In 1.2.x ServletContext context =

Re: Override tag name in html fragment?

2008-01-21 Thread Igor Vaynberg
its not that simple input tag has no body input/ why textarea does textarea/textarea also input stores its value in the value attr, textarea does it in its body that is why we have two separate components for this. you can of course write your own that handles both cases properly... -igor

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Eelco Hillenius
personally i would map the form to a bean, and then in onsubmit() transfer those properties to an instance of your domain object. Igor, could you please tell in short how is this better than just get data form the models of each component in onsubmit()? I'm doing same thing within my app

Re: Ext JS, form submit

2008-01-21 Thread Murat Yücel
Hi Flemming Just found this project: http://code.google.com/p/exttld/downloads/list It seems like they have made a ext tld project for java based frameworks. /Murat 2008/1/21, Murat Yücel [EMAIL PROTECTED]: Hi Flemming I have also tried to integrate ExtJS and wicket, but i dont think it is

Re: Is this safe?

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 1:51 AM, Martijn Lindhout [EMAIL PROTECTED] wrote: ok, and if the session isn't thread safe, where do I store my temporal data? I think the session is a fine storage option for a shopping cart. Just synchronize the cart itself and you're fine. Or don't; it's rather unlikely you

Re: We are adopting Wicket in our Organization

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 1:54 AM, Joshua Jackson [EMAIL PROTECTED] wrote: SEAM is not that bad actually. Though it still has some quirks. Though most people will use it together with JSF, SEAM does have a different scope. You can use it by itself as a business component framework. There are two (kind of

Re: Required tag types?

2008-01-21 Thread Johan Maasing
As an exercise I tried to write a CMS-like framework. It became remarkably similiar and I had the same question. My factories produced an editor and a display, apart from that they have almost the same names as yours. I guess this almost qualifies as a FAQ :-) 2008/1/20, James Carman [EMAIL

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Eelco Hillenius
This is obviouly a huge performance issue. I wonder if it is. Java is optimized for creating objects, and creating new ones is often cheaper than reusing old ones if you take synchronization and lookups into account. Are you sure it is a bottleneck? If you haven't seen any actual performance

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread infodoc
Thanks to everyone for their comments Igor, Assuming I use a bean, could you please give me a bit more detail on your suggestion? I want the model object of the editor Form to be the newly-created Account, so that other objects can simply call getModelObject() on the editor like normal and

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Igor Vaynberg
yep, that will work. -igor On Jan 21, 2008 11:17 AM, infodoc [EMAIL PROTECTED] wrote: Thanks to everyone for their comments Igor, Assuming I use a bean, could you please give me a bit more detail on your suggestion? I want the model object of the editor Form to be the newly-created

Re: RadioChoice : default choice ?

2008-01-21 Thread scottomni
Thanks Clay. I think I have reached a point in Wicket that is providing (me) the motivation to go 'back' to the Java Book and push forward (through the java learning curve). I'm getting there, slowly but surely. ;-) In the process, it looks like I will be familiarizing myself with the Swing

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Igor Vaynberg
its simply easier to say: bean.getdate() if you are using a bean, or just date if you are binding to a property on the form subclass vs (Date)textbox.getModelObject(); which requires you to keep a reference to the textbox component anyways. -igor On Jan 21, 2008 11:42 AM, Sergey Podatelev

Re: RadioChoice : default choice ?

2008-01-21 Thread Eelco Hillenius
In the process, it looks like I will be familiarizing myself with the Swing library -- which, will probably enhance my appreciation (and understanding) of Wicket. Getting familiar with Swing will almost certainly help you get Wicket. Just keep in mind that with Swing, you would update values

Re: Override HTML in html fragment

2008-01-21 Thread Eelco Hillenius
We want to switch an input field between input type=text and textarea depending on how large the existing data is. Is there any way to do this without needing a spurious placeholder element? ie We would rather not have a but rather just get the text or textarea in the final HTML . You could

Re: RadioChoice : default choice ?

2008-01-21 Thread Per Newgro
Getting familiar with Swing will almost certainly help you get Wicket. Just keep in mind that with Swing, you would update values by 'pushing' them (for which you'd typically make heave use of the observer pattern, e.g. using PropertyChangeListeners etc), whereas with Wicket you would rely on

Re: Required tag types?

2008-01-21 Thread James Carman
Or, maybe we should start a new project (or a Wicket subproject) to take care of this common need. On 1/21/08, Johan Maasing [EMAIL PROTECTED] wrote: As an exercise I tried to write a CMS-like framework. It became remarkably similiar and I had the same question. My factories produced an

Re: RadioChoice : default choice ?

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 1:08 PM, Per Newgro [EMAIL PROTECTED] wrote: Getting familiar with Swing will almost certainly help you get Wicket. Just keep in mind that with Swing, you would update values by 'pushing' them (for which you'd typically make heave use of the observer pattern, e.g. using

Re: Required tag types?

2008-01-21 Thread Johan Maasing
Yes that would be fun and a great way to learn more wicket. Are you doing a fork of trails (wrails)? Primarily what I am interested in is web content management and publishing. I'm looking to replace/enhance a legacy system that bases its' rendering on velocity or XML-based views. As a start I

Add row to list of items on a page dynamically via ajax without repainting whole list

2008-01-21 Thread atul singh
Hi I want to add a new row on my page using ajax, without having to repaint the complete list already being displayed on the page. This i want to reduce the ajax payload;any help on how i can do this?

Re: Required tag types?

2008-01-21 Thread James Carman
Well, custom editor components based on object type sounds in scope for what I have in mind. And, yes, I'm planning on implementing something similar to Trails using Wicket (and I was planning on calling it wails). On 1/21/08, Johan Maasing [EMAIL PROTECTED] wrote: Yes that would be fun and a

Re: Required tag types?

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 2:34 PM, James Carman [EMAIL PROTECTED] wrote: Well, custom editor components based on object type sounds in scope for what I have in mind. And, yes, I'm planning on implementing something similar to Trails using Wicket (and I was planning on calling it wails). I'm not sure

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Ned Collyer
Eelco Hillenius wrote: If you're still unconvinced, take a look at org.apache.wicket.examples.staticpages in wicket-examples; it might do what you want. Eelco This sounds like very similar question to

Re: parse directive in velocity template failing

2008-01-21 Thread James McLaughlin
fattymelt, It used to work that you could jar up your templates and put them under WEB-INF/lib. If that doesn't work, create your own velocity.properties file and define the init-params velocityPropertiesFolder and velocity.properties in your web.xml. You can define there which loaders to use and

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
Thanks. I looked that source of the staticpages examples and even more troubled with it. It generates each static links via a costly markup object creation and attribute modification. In a base template page that may contain,say 50 such links, that would be displayed for all site (bookmarkable)

Re: Required tag types?

2008-01-21 Thread James Carman
Eelco, I will take a look at it, but I'm not big on Groovy or Grails. I decided to write the Wails framework as an exercise in learning Wicket and if it turned out to be something folks might like, then they could feel free to do so. I was somewhat active in the Tapestry (4.x versions)

Re: Required tag types?

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 4:48 PM, James Carman [EMAIL PROTECTED] wrote: Eelco, I will take a look at it, but I'm not big on Groovy or Grails. I decided to write the Wails framework as an exercise in learning Wicket and if it turned out to be something folks might like, then they could feel free to

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Igor Vaynberg
On Jan 21, 2008 4:31 PM, [EMAIL PROTECTED] wrote: Thanks. I looked that source of the staticpages examples and even more troubled with it. It generates each static links via a costly markup object creation and attribute modification. In a base template page that may contain,say 50 such

Re: Jboss Portal + Wicket (Portlet)

2008-01-21 Thread Markqt
Finally, I got Wicket1.3 portlet working in JBoss portal 2.6.3 - after fixing a few bugs in JBoss's PortletWindowUtils class. When I tried the EditableLable AJAX component, I got following error using Firefox: Error: wicketAjaxGet is not defined Source File:

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
Would it be possible to turn a bookmarkale/stateless page object into a stateful page during a session once user first access it. these pages are not created until accessed...so not sure what you mean I meant once they are created, accessing it again (say hit refresh button on browser)

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Igor Vaynberg
you are free to write your own coding strategy that checks for existence of these pages in session before creating a new instance. -igor On Jan 21, 2008 6:01 PM, [EMAIL PROTECTED] wrote: Would it be possible to turn a bookmarkale/stateless page object into a stateful page during a session

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
I see. I guess I need to dig through more info on usage of api. But I just noticed the following perhaps you can point out surprising (to me) issue right away. It is a simple list view display with class Test{ PageableListView listView = new PageableListView(records, new PropertyModel(this,

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Igor Vaynberg
wicket is doing exactly what you told it to do you call final Object record = listItem.getModelObject(); 1000 times which in turns calls listviewmodel.getobject().get(index); where index varies from 1 to 1000 listviewmodel is PropertyModel(this, records) so when its getobject() is called (1000

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Eelco Hillenius
On Jan 21, 2008 6:32 PM, [EMAIL PROTECTED] wrote: I see. I guess I need to dig through more info on usage of api. But I just noticed the following perhaps you can point out surprising (to me) issue right away. It is a simple list view display with class Test{ PageableListView listView =

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
Got it. On Jan 21, 2008 6:32 PM, [EMAIL PROTECTED] wrote: I see. I guess I need to dig through more info on usage of api. But I just noticed the following perhaps you can point out surprising (to me) issue right away. It is a simple list view display with class Test{ PageableListView

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread dvd
Thanks for the tip. It worked perfectly. I do feel this could be a minor bug even for a fixed list (might not be noticeable visually). At the time ListView is created, it is provided with a predefined model object =this.getRecords() which should be the state of the listview and this.getModel

Re: parse directive in velocity template failing

2008-01-21 Thread fattymelt
Just to be sure... In the Wicket section of web.xml I am going to add the two init-params. One of which defines the folder in which to find my properties file, and the other is the actual filename. Then I can use that properties file to specify what my TEMPLATE_ROOT is. The only I don't get, is

Re: Add row to list of items on a page dynamically via ajax without repainting whole list

2008-01-21 Thread Peter Thomas
On 1/22/08, atul singh [EMAIL PROTECTED] wrote: Hi I want to add a new row on my page using ajax, without having to repaint the complete list already being displayed on the page. This i want to reduce the ajax payload;any help on how i can do this? Try this thread:

Re: Required tag types?

2008-01-21 Thread Johan Maasing
2008/1/22, Eelco Hillenius [EMAIL PROTECTED]: On Jan 21, 2008 4:48 PM, James Carman [EMAIL PROTECTED] wrote: Eelco, I will take a look at it, but I'm not big on Groovy or Grails. I decided to write the Wails framework as an exercise in learning Wicket and if it turned out to be