> What I mean is that post-1.4 it would be good to remove the
> defaultModel* stuff and other IModel dependencies from
> Component, and maybe try to move towards a more case-by-case
> model handling in generified (actually
> typed-after-their-default-model-type) components as well.
I'm very much i
Hi,
I have a form with 2 address blocks where each "block" is a
WebMarkupContainer. The 1st block is the home address which basic the block
no, postal code, street name etc. The 2nd block is the billing address. So
when a user clicks on the check box stating that his home address is the
billing a
On 7/3/08, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Thu, 03 Jul 2008, Rakesh Sinha wrote:
> > I tried something similar to this .. It works.
>
> ...
>
> > txtAge.add(new AjaxFormComponentUpdatingBehavior("onkeyup") {
>
>
> This works otherwise but does not detect cut and paste done
> with
On Thu, 03 Jul 2008, Rakesh Sinha wrote:
> on a separate note - how do we turn off autocomplete for a TextField
> in the java code. (other than autocomplete=off, in html).
Probably with an AttributeModifier setting that attribute.
E.g.
textField.add(new AttributeModifier("autocomplete", true,
On Thu, 03 Jul 2008, Rakesh Sinha wrote:
> I tried something similar to this .. It works.
...
> txtAge.add(new AjaxFormComponentUpdatingBehavior("onkeyup") {
This works otherwise but does not detect cut and paste done
with mouse.
> The question is - can this be the fastest way of doing this...
W
on a separate note - how do we turn off autocomplete for a TextField
in the java code. (other than autocomplete=off, in html).
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Timo...
I tried something similar to this .. It works.
Java :
==
txtAge = new TextField("txtAge", new Model(""));
lblModel = new ErrorLabelModel();
lblAgeValidate = new Label("lblAgeValidate", lblModel);
lblAgeValidate.setOutputMarkupId(true);
txtAge.add(new AjaxFormComponentUpdatin
On Wed, 02 Jul 2008, ezegb wrote:
> Hi Timo, yes I'm from Argentina, DNI's the Documento Nacional de Identidad :p
I thought it rang a bell :)
> Regarding the issue, we did nail it down todays, turns out Ajax was
> rejecting the request because of empty required textfields elsewhere in the
> form.
Hi Timo, yes I'm from Argentina, DNI's the Documento Nacional de Identidad :p
Regarding the issue, we did nail it down todays, turns out Ajax was
rejecting the request because of empty required textfields elsewhere in the
form. Now, the following issue is we couldn't quite catch the validation so
On Mon, 30 Jun 2008, nate roe wrote:
> I'm now using Wicket 1.3.3 but I'm still seeing this behavior, where when my
> ListView is visited (from Form.loadPersistentFormComponentValues(),) my
> listView's children is null when it is visited in
> FormComponent.visitFormComponentsPostOrderHelper().
>
On Wed, 02 Jul 2008, ezegb wrote:
> I'd like to stress that this same code is working elsewhere, though there's
> no lonely textfields beneath in that form, but there are other similar
> containers.
Sorry but it's very hard to get a grasp of the code from the
email -- at least I couldn't see anyt
On Wed, 02 Jul 2008, Johan Compagner wrote:
> I still dont see a complete decoupling or do you mean only getDefaultXxxx()?
What I mean is that post-1.4 it would be good to remove the
defaultModel* stuff and other IModel dependencies from
Component, and maybe try to move towards a more case-by-case
On Wed, 02 Jul 2008, Rakesh Sinha wrote:
> I want a behavior to attach an ajax event handler to the textfield
> such a way that anytime a text field changes - there would be an ajax
> validation performed , that would update the model behind
> lblAgeValidate - which will contain the error message.
On Wed, 02 Jul 2008, Matej Knopp wrote:
> I still don't see what's wrong with GenericPanel. It's certainly much
> easier to type than ModelContainingPanel.
Nothing wrong with that either, it's just very generic :)
There are a lot of ways of making use of generics in a
component besides just addi
Hi -
I have a TextField component in my page.
Java :
txtAge = new TextField("txtAge", Integer.class);
lblAgeValidate = new Label("lblAgeValidate", "");
html:
I want a behavior to attach an ajax event handler to the textfield
such a way that anytime a text field
Hi,
I am a newbie in portlet world and I wonder if I can get any instruction to
get Wicket portlet working on Liferay 5?
I've searched the forums and found the portlet2-0.patch and applied to the
source. With that I made a simple wicket portlet application starts with a
page. The page provides
> A little bit confused... perhaps I or you misunderstood. I'm using a
> textfield in the 'navigator' section of my site. So, if a particular URL
> is being accessed (.../foo or .../bar) then I want to hide the
> textfield. Otherwise the navigator shows the textfield. Does that make
> more sense?
A little bit confused... perhaps I or you misunderstood. I'm using a
textfield in the 'navigator' section of my site. So, if a particular URL
is being accessed (.../foo or .../bar) then I want to hide the
textfield. Otherwise the navigator shows the textfield. Does that make
more sense?
Michael
-
So essentially, you need some variable to hold state and based on the
value of that variable, you show or hide a component, right?
Just use an IndexedParamCodingStrategy.
Does that make sense, or do you need more details?
On Wed, 2008-07-02 at 11:12 -0700, Michael Mehrle wrote:
> I need to hi
Thanks alot for the quick fix Matej. Verified it on 1.3 branch.
Farhan.
Matej Knopp-2 wrote:
>
> Committed fix to trunk and 1.3.
>
> -Matej
>
> On Wed, Jul 2, 2008 at 7:10 PM, mfs <[EMAIL PROTECTED]> wrote:
>>
>> Can someone take a look into thisits a blocking issue for me
>>
>>
>> Than
> Paging is definitely better left to the DB!
Yep :-)
Eelco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wed, Jul 2, 2008 at 6:00 PM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
>> I'm also worried about injecting repositories and such to UI
>> components, because it easily leads to domain logic to leak
>> to UI layer.
>
> Sometimes the dividing line is thin though. Take for instance sorting
> and g
Anybody? I couldn't find anything digging around in the archives...
-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 11:13 AM
To: users@wicket.apache.org
Subject: Enabling compoents based on Wicket URI path?
I need to hide a textfield based
> I'm also worried about injecting repositories and such to UI
> components, because it easily leads to domain logic to leak
> to UI layer.
Sometimes the dividing line is thin though. Take for instance sorting
and grouping of lists. Sometimes that is very specific for a UI
screen, and it is a bett
You might want to use wicket:message in cases like this. See:
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
Matthijs
Rakesh Sinha wrote:
Thanks Igor. That works.
Thanks Apache Wicket team once again for a wonderful framework.
On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg <[EMAIL PR
http://wicketstuff.org/wicket13/helloworld/resources/org.apache.wicket.examples.helloworld.HelloWorld/
On Wed, Jul 2, 2008 at 10:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> when i try this with wicket-quickstart project in svn and url
>
> http://localhost:8080/quickstart/app/resources/org.ap
On Wed, Jul 2, 2008 at 12:53 PM, Sven Meier <[EMAIL PROTECTED]> wrote:
> Another thought:
> Why do we have a setter for the model actually?
Consider the case (that I sometimes have) where you want to set the
model in the component's constructor, but it needs a bit of
preparation first in such a wa
when i try this with wicket-quickstart project in svn and url
http://localhost:8080/quickstart/app/resources/org.apache.wicket.quickstart.QuickStartPage/foo
i get a blank page and in my log i see
ERROR - haredResourceRequestTarget - shared resource
org.apache.wicket/quickstart/QuickStartPage/foo
On Wed, 02 Jul 2008, Martijn Dashorst wrote:
> I'm trying to discover which functional testing tool suits Wicket
> development best. My options are:
>
> - Canoo webtest
Haven't tried that but I and others have some good
experiences on HttpUnit / jWebUnit on which Canoo is based?
Or was at least
Another thought:
Why do we have a setter for the model actually?
I never call setDefaultModel() (formerly setModel()) in my code. In
wicket-examples it seems that most calls to setDefaultModel() are done
from inside the constructor (where it is sometimes needed because you
cannot call instance
On Wed, 02 Jul 2008, marco m wrote:
> I hear you Thomas. Maybe I should ask the question another way...does
> anyone out there encapsulate their data access layer/service layer within
> their model or do people put that stuff in their pages/components? Is anyone
> using any patterns? if not...i f
But at the end, I want my model object back to do some business with it, so I
could either store the CPM myself for later reference (but why would I want
to do this ?) or retrieve it from the Form's model (typesafe, if possible).
That's why a generified Form would be nice.
... roland
svenmeier
Just because you're using a CompoundPropertyModel on your Forms doesn't
mean you need it generified.
Sven
Roland Huss schrieb:
igor.vaynberg wrote:
On Tue, Jul 1, 2008 at 11:28 PM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
thats my point. you work on fields of one object, true, but it do
Ok, just recreated the problem with a new app, but still clueless why
it happens.
My configuration is Netbeans 6.1 with Glassfish 2 UR2, Apache Wicket
1.3.4, Ubuntu Hardy.
File listing happens with -
http://localhost:8081/testproject/test/resources/me.squeeze.SqueezePage/blahblah
404 exception ha
Well that's the weird part ;)
It's a new clean application, with one abstract WebPage class and a
few subclasses.
I'm pretty sure there's no code in wicket that will do this (neither
in this new app), so right now I'm creating a new test project to
determine where it goes skew.
I'll confirm shor
I need to hide a textfield based on the URI path of the page that's
being visited. For instance:
http://www.mysite.com/app/foo (hide the field)
http://www.mysite.com/app/bar (hide the field)
http://www.mysite.com/app/* (any other path, show the field).
I don't want to use the HTTP URI
I'm not very eager about this. The interface listeners URLs are quite
long, why making them even longer while bringing no additional
benefit? Also are you sure thath your patch won't break under any
circumstances relative urls? It took us a while to get relative URLs
working reliably, I wouldn't wa
i dont think anything in wicket generates a directory listing. are you
sure it is wicket code?
-igor
On Wed, Jul 2, 2008 at 8:59 AM, Leon Nieuwoudt <[EMAIL PROTECTED]> wrote:
> Hey guys
>
> I've been following the wicket-users list for quite some time to
> evaluate the community and momentum, and
Committed fix to trunk and 1.3.
-Matej
On Wed, Jul 2, 2008 at 7:10 PM, mfs <[EMAIL PROTECTED]> wrote:
>
> Can someone take a look into thisits a blocking issue for me
>
>
> Thanks in advance
>
> mfs wrote:
>>
>> Guys,
>>
>> I am facing this issue (with Safari/IE) with the usage of AjaxLink wh
Can someone take a look into thisits a blocking issue for me
Thanks in advance
mfs wrote:
>
> Guys,
>
> I am facing this issue (with Safari/IE) with the usage of AjaxLink when
> used on a page mounted though any of the
> BookmarkablePageRequestTargetUrlCodingStrategy extensions
>
> To be
All,
I'm trying to discover which functional testing tool suits Wicket
development best. My options are:
- Canoo webtest
- Selenium
- Watir
I'd like some folks to create a couple of functional tests for our
wicket examples in one of these tools so that we get a complete
overview of all three
Hey guys
I've been following the wicket-users list for quite some time to
evaluate the community and momentum, and just want to say "great job!"
before I continue ;)
Now the question... I'm starting to create a new real-world app, and
something happened that a Resource sent a Glassfish folder fil
> To be a little dramatic: A 100k line project where 50% of forms are
> generified and the other are using casts doesn't seem very nice.
But if you would find the need to cast the model object of a component
(form), that's the time to use the generic version. So you'd only use
the non-generic vers
https://localhost/hairless-web/?wicket:interface=:2:itemRepeater:3:itemLink::ILinkListener::
// Mathias
--
View this message in context:
http://www.nabble.com/More-on-wicket-url-stratergy-tp18212748p18240461.html
Sent from the Wicket - User mailing list archive at Nabble.com.
what does the url look like?
-igor
On Wed, Jul 2, 2008 at 7:56 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>
> Yes, I am pretty sure I did this about a month ago.
>
> The funny thing is that we did it this way because this way flash (component
> error messages) are preserved. We wanted to show
Can you please elaborate.
I have this Link in my List class
Link itemLink = new Link( "itemLink", listItem.getModel() ){
@Override
public void onClick() {
PageParameters parameters = new PageParameters();
parameters.add( "ItemId", ((Item)getModelObject()).getId().toString());
Ite
Sorry guys, replied to the wrong e-mail ;)
Cheers,
Antoine.
Le mer 2/07/08 17:04, [EMAIL PROTECTED] a écrit:
>
> Téléphone Ben : 06 14 07 53 63
>
> Le mer 2/07/08 16:56, Erik van Oosten e.vanoos
> [EMAIL PROTECTED] a écrit:
>
> > Yes, I am pretty sure I did this about a month
> ago.
>
>
how can we configure that correctly?
Let say you say you can have 10MB session window
And you say overall 100MB
What can we then delete when we hit 10 sessions?? Which session or which
part of a session?
You should just guess how many sessions are at one time live and then do the
math
johan
O
Téléphone Ben : 06 14 07 53 63
Le mer 2/07/08 16:56, Erik van Oosten [EMAIL PROTECTED] a écrit:
>
> Yes, I am pretty sure I did this about a month ago.
>
> The funny thing is that we did it this way because this way flash
> (component error messages) are preserved. We wanted to show a succes
Hi,
How can I configure the global size used on the disk by the DiskPageStore
class for all Sessions of the WebApplication ? With the DiskPageStore we can
define the max size of a Session but not the max size for all sessions.
It would useful to know how much space we need in a server to store S
Yes, I am pretty sure I did this about a month ago.
The funny thing is that we did it this way because this way flash
(component error messages) are preserved. We wanted to show a succes
message on the page we forwarded to.
... looking up the code now...
Yep, correct. Though we did not call
override onerror() and update it there also
-igor
On Wed, Jul 2, 2008 at 2:08 AM, freak182 <[EMAIL PROTECTED]> wrote:
>
> Hello,
> My problem here is that when there is a page error the textfield is not
> updated during target.addcomponet call..here is my code snippet:
>
> class MyPage ...
>
>
>
have you tried this eric? setting a page instance does not produce a
bookmarkable url, you would have to
setresponsepage(itemlistpage.class)
-igor
On Wed, Jul 2, 2008 at 6:41 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> No, not true.
>
> You /can/ do setResponsePage(new ItemListPage(...)), /a
However this will not be true if you change the render strategy *imho*
getRequestCycleSettings
().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER)
+1 for applying the patch as it's not only a matter of correctness but
also of taste
Am 02.07.2008 um 16:06 schrieb Johan Compagne
IMHO too many ways to do the same thing makes a project very hard to
maintain.
Development generally becomes more expensive and error prone, as you forget
the initial mindset you where in when you started, or have the same
components used one way in here, and another way there.
One has to be wary
what does it matter how the urls that are inside the html look like?
Its all about how the urls look like in the browsers url bar right?
On Wed, Jul 2, 2008 at 6:59 AM, David Leangen <[EMAIL PROTECTED]> wrote:
> > once again, i dont see what this offers over the hybrid strategy.
>
> Maybe you can
Use Select and SelectOption components http://jweekend.co.uk/dev/ArticlesPage/
Maurice
On Wed, Jul 2, 2008 at 3:08 PM, Søren Andersen <[EMAIL PROTECTED]> wrote:
> This is my first post to this mailing-list, so I hope it's not too stupid.
> :-)
>
> I'm working on an application using DropDownChoic
the 13 bookmarkable link are not really model things anyway :)
But this discussions just tells us that many people uses things many
different ways.
And that is just a problem to say what is the good way
So i think i am still +1 for a Link and a Generic/ModelLink
johan
On Wed, Jul 2, 2008 at 3:3
Indeed. I would very welcome this capability.
Regards,
Erik.
David Leangen wrote:
once again, i dont see what this offers over the hybrid strategy.
Maybe you can correct me if I'm wrong here...
The hybrid stategy is only applied when the target is an
IBookmarkablePageRequestTarget.
No, not true.
You /can/ do setResponsePage(new ItemListPage(...)), /and/ make it
bookmarkable. The trick is to call setRedirect(true) together with the
call to setResponsePage. Furthermore you need to mount ItemListPage in
your application#init method (see method Application#mount()).
Regard
In my current project we try to do everything by BookmarkablePageLinks.
Count:
- 1 Link with an abstractreadonlymodel
- 14 Links without model
- 13 bookmarkablepagelinks without model
- 2 ajaxfallbacklinks without model
in addition we have 4 many used subclasses of bookmarkablepagelink that
do
Hi, thanks for your reply. As I said, the troublesome component seems to be a
container which is composed of the following:
ListView author = new
CompoundListView("author")
{
private static f
In my current project I have:
10 Forms that use a CompoundPropertymodel and
5 Forms that have no model.
IMHO both Form forms :) should be easy to work with.
Regards,
Erik.
Eelco Hillenius wrote:
thats my point. you work on fields of one object, true, but it does
not necessarily have to be
This is my first post to this mailing-list, so I hope it's not too stupid.
:-)
I'm working on an application using DropDownChoice. Now, to each it
eventually outputs, I'd like to add the "title"-tag with some information.
The information should be different for each tag.
I'm totally new to Wick
>
> On the topic of patterns I have a favourite quote from a golf
> istruction book: "the best golf swing is one that gets the ball into
> the hole in the fewest strokes". The patterns you find in books are
> solutions that worked in the past for other people. Look at them and
> decide if they
Thank you! That did it.
--
Tom
Igor Vaynberg wrote:
i think in the filter mapping you will need to add
REQUEST
ERROR
-igor
On Tue, Jul 1, 2008 at 11:17 PM, Thomas Singer <[EMAIL PROTECTED]> wrote:
I'm using Tomcat 5.5.26 with Wicket 1.3.4 and try to show an own error page
when an i
On Wed, Jul 2, 2008 at 4:28 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Tue, 01 Jul 2008, Matej Knopp wrote:
>> There is one thing that helped me quite a lot when migration the
>> project I'm working out. I've created GenericPanel,
>> GenericWebMarkupContainer and GenericFragment classes. I
Hello,
My problem here is that when there is a page error the textfield is not
updated during target.addcomponet call..here is my code snippet:
class MyPage ...
MyPanel mypanel
add(mypanel)
class MyPanel.
TextField amt = new TextField("amt",new PropertyModel(this,"amt"));
T
you cant do something like that (dispatch())
Because you shouldnt render to the http response yourself.
What you can do stream the result your self (getting the url) and then add
the content to the wicket WebResponse
johan
On Wed, Jun 25, 2008 at 1:28 AM, krisNog <[EMAIL PROTECTED]> wrote:
>
>
I' need the same feature : replacing a part of the wicket outpout by the
output of an external servlet. Using a InlineFrame is a different feature.
If some body have any idea.
Regards,
Gerald Reinhart
--
View this message in context:
http://www.nabble.com/Output-streams-from-external-servl
Yes, we have a domain model which talks to stateless backend services.
The "controller", i.e. the application flow and event handling is in
the pages. We used to have a different architecture with Spring
Webflow (that was in the dark ages of JSF) as the "controller". Since
we're building a single a
Thanks a lot, I use now snapshop #69.
Andrea
2008/6/30, Maurice Marrink <[EMAIL PROTECTED]>:
>
> Apparently the junit tests in wicket 1.3.4 trigger a call to destroy
> twice. Since i am setting several fields to null this causes the
> second destroy to fail.
> As a quick fix i have put some null
igor.vaynberg wrote:
>
> On Tue, Jul 1, 2008 at 11:28 PM, Eelco Hillenius
> <[EMAIL PROTECTED]> wrote:
> thats my point. you work on fields of one object, true, but it does
> not necessarily have to be the form's modelobject unless you use a
> compound property model.
>
The usage of a Compou
Thomas Mäder wrote:
>
> Wicket is a framework to write (mostly) statefulweb pages. Unlike other
> web
> frameworks it does not impose a particular way to structure the
> application
> logic beyond that. Think of it like, say, the QT widget set. It's a way to
> display information and to be noti
thats completely up how you use it
I can think of a lot that dont use models on FormComponents but only on
Forms
If you use CompoundModel then you never will touch or give a FormComponent a
model.
and all your stuff is done on the Model of the Form. (in the onSubmit for
example)
So this can never
Hi,
i agree that its no big deal, i am just trying to figure out some sort
of guidelines for when we do include the type and when we dont. if we
say that we only include the type when the component uses its model
then neither Link nor Form qualify. in fact neither will ListItem.
only things lik
76 matches
Mail list logo