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
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
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
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
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:
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.
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
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
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
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().
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
@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
--
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
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
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 -
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 =
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()
?
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
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
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
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
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.
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.
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
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
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,
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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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)
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)
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
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
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:
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)
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
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,
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
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 =
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
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
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
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:
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
87 matches
Mail list logo