Oh, one mistake in the code I sent.- The id for newUserLink I'm using is newUser;
Everything works: AjaxLink replacing the div, the panel, submit, etc. Only the datePicker JS isn't working!Regards,On 5/4/06,
Bruno Borges [EMAIL PROTECTED] wrote:
I'm trying to load a Form Panel's child, and this
I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink.The DatePicker icon doesn't work. The calendar doesn't shows up. Is there any incompatibility between loading panels with Ajax and DatePicker within?
My code looks like this:class Index extends WebPage
yes, there is a problem indeed with components that need head contribution and are added via ajax. the problem is that when the component is added via ajax its header contribution is ingored because the head section is not updated. so in case of the datepicker the js it needs is never added to the
Hi
I have no experience with Wicket, but from what I read about
it I don't understand where does the dynamic content part come in?
If I have a pair of html file and a java file how do
I conditionally show/hide html form controls like I do in JSP?
For example, I have a JSP page that
You can do what is outlined here:
http://wicket-wiki.org.uk/wiki/index.php/Create_dynamic_markup_hierarchies_using_panels
Or - like the article says, add all visible components and use the
isVisible property (or override the method) for turning them on or
off.
Or use Fragments, which work like
Hi Eelco,
Do you mean that I should create a panel with a link to my own servlet
that shows the dynamic content?
Thanks
Rivka
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: Thursday, May 04, 2006 10:21 AM
To:
Hi,
just tried the wicket localization features and got some questions:
- usually i have in the html things like this:
h1wicket:message key=xxxheadline/wicket:message/h1
Is there a way that lets me write these like this:
h1 wicket:message=xxxheadline/h1
Which seems much more convenient...
- Is
On 5/4/06, Ralf Ebert [EMAIL PROTECTED] wrote:
Hi,
just tried the wicket localization features and got some questions:
- usually i have in the html things like this:
h1wicket:message key=xxxheadline/wicket:message/h1
Is there a way that lets me write these like this:
h1
Hi,
It took me a while to track down why Opera makes my Wicket application
look like crap.
Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded by
wicket:border tags, Opera doesn't apply the CSS class to the td tag.
If you
some where in the the settings. ISettings.setStripWicketTag(boolean)
or something like that
Juergen
On 5/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
Hi,
It took me a while to track down why Opera makes my Wicket application
look like crap.
Here's why:
when you use a css class like
To disable wicket-tags in the generated HTML (in Wicket 1.1.1), you add
in the init()-method of your webapplication the following line:
getSettings().setStripWicketTags(true);
For Wicket 1.2 this line will be:
getMarkupSettings().setStripWicketTags(true);
BTW, as I understood from previous
I have a different problem. Its popping up, but when I select
todays date it gives me
02/05/2170
^^
for todays date.
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of smallufo
Sent: Wednesday, May 03, 2006
11:20 PM
To:
To be more precise, with 1.2R3 my
DatePicker is now popping up a calendar for the year 2170 instead of 2006.
Also, with no change in configuration it
is now producing dates in the form DD/MM/ whereas before it gave me
/MM/DD.
I dont care which format it gives
me, as long as I
Juergen,
that did the trick! Thank you!
- Johannes
Juergen Donnerstag wrote:
some where in the the settings. ISettings.setStripWicketTag(boolean)
or something like that
Juergen
On 5/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
Hi,
It took me a while to track down why Opera makes
Johannes Fahrenkrug schrieb:
Hi,
It took me a while to track down why Opera makes my Wicket application
look like crap.
Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded by
wicket:border tags, Opera doesn't apply the CSS
Title: date picker settings first day
the datepickersettings.setFirstDate does not work. this is due to a typo in the DatePickerSettings.toString
if (getFirstDay() != 0)
{
b.append(\n\tfistDay : ).append(getFirstDay()).append(,);
}
this should read firstDay :
also considering that the
Title: date picker settings first day
Is
there any way to prevent the DatePicker from closing when one clicks the link
to change the month? When my user wants
to change the date from, say, May 5th to April 30th, he
has to pop-up the DatePicker twice once to change the month and once to
Yes. See here:
http://www.wicket-wiki.org.uk/wiki/index.php/Remove_wicket_markup
Thank you.
But your HTML is broken. There is no doctype declaration and the style
tag is incomplete.
I know, it's just a demostration, not the real thing.
If you declare the document as XHTML, the
Hi Juergen,
please see WicketMessageTagHandler.java. It is experimental only and
disabled by default. Reason: it is realy ugly to have something like
wicket:example=tag=key. AttributeModifier are much more convinent
and far less ugly, IMO.
if you have a page with like, say, 20 labels with
Igor, I'm not sure if browsers support the update head thing (probably not), but one first step solution is to notify the component that it is been added through Ajax, so the component must generate a load function and return that function name to the Ajax call, so the Ajax JS can call that
Btw, Opera 9.0beta doesn't have this problem anymore.
Hi,
It took me a while to track down why Opera makes my Wicket application
look like crap.
Here's why:
when you use a css class like
td.someclass
and apply that class to a td tag within a table that is surrounded
by wicket:border tags,
what is the ifformat string that is embedded in youre html file for that datepicker??And what does it say at first in the field itself? how is it formatted then?johan
On 5/4/06, Frank Silbermann [EMAIL PROTECTED] wrote:
I have a different problem. It's popping up, but when I
fixed it.On 5/4/06, Lusebrink, Scott E CTR DISA GIG-CS [EMAIL PROTECTED] wrote:
the datepickersettings.setFirstDate does not work. this is due to a typo in the DatePickerSettings.toString
if (getFirstDay() != 0)
{
b.append(\n\tfistDay : ).append(getFirstDay()).append(,);
}
this should
Howdy All,I've been reading more about Wicket, particularly its integration with non-presentation aspects of an Enterprise application, e.g. the application and persistence layers. I've read about the Wicket-Spring integration, and the LazyInitProxy - where a Wicket session keeps an injected
it doesn't close at my place.I tested this in IE en FF i can press it quicly once so that it jumps one month at a time or hold it and scroll to the month i want and the release to select it.And then the datepicker still doesn't go away.
johanOn 5/4/06, Frank Silbermann [EMAIL PROTECTED] wrote:
lets take your exact usecase, hiding and showing form components based on some condition.there are two basic strategies to do this:1) add all of them an then toggle visibilitythis means you add all possible formcomponents and then override isVisible() on them or call setVisible(false). this will
Apparently, my initial value in the old
default value is confusing the DatePicker; if I
reformat my initial value the DatePicker pops up the
correct year and month.
Since the default format apparently
changed, it may not be safe for me to rely on it. What ifformat
string, and how do I
right, and that is the main problem to solve. is a script tag legal in the middle of html? because maybe we can capture the head output and just insert it into html-Igor
On 5/4/06, Bruno Borges [EMAIL PROTECTED] wrote:
Igor, I'm not sure if browsers support the update head thing (probably not),
Igor Vaynberg schrieb:
right, and that is the main problem to solve. is a script tag legal in the
middle of html?
Not in XHTML :(
-Igor
On 5/4/06, Bruno Borges [EMAIL PROTECTED] wrote:
Igor, I'm not sure if browsers support the update head thing (probably
not), but one first step
right, and that is the main problem to solve. is a script tag
legal in the middle of html? because maybe we can capture the head
output and just insert it into html
script Tags in the middle of HTML are working in all browsers I ever
had to use this. I'm not 100% sure if it's legal, but I
On 5/4/06, Ashley Aitken [EMAIL PROTECTED] wrote:
Howdy All,I've been reading more about Wicket, particularly its integration with non-presentation aspects of an Enterprise application, e.g. the application and persistence layers.
I've read about the Wicket-Spring integration, and the
Apparently, when you click the datePickers link to change the month, it writes the
change immediately to the associated textbox. Since I have auto-postback
_javascript_ on that input field, the postback is
causing my datePicker to disappear, and the form to
be submitted before the day of
in that case i dont see how you can ever make this work in xhtml
unless you refresh the entire page.
A twisted solution using an invisible frame loading only JS comes to
mind ;-)
- Rüdiger
---
Using Tomcat but need to do more? Need to
i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no?-IgorOn 5/4/06, Rüdiger Schulz
[EMAIL PROTECTED] wrote: in that case i dont see how you can ever make this work in xhtml
unless you refresh the entire page.A twisted solution
Hi Igor,
I still dont understand where is
the servlet functionality of Wicket.
What if I dont want to hand code
all my textboxes in the html and instead I want to dynamically add them with out.print
like possibility from a collection with unknown size that comes from the
database.
I have 2 forms in my wicket page. Only the first form is visible at the beginnning. The first form has a drop down and based on the selection of the drop down, there's a database call and then the second form needs to be populated based on the model returned by the database call. My problem is, in
Ooops. I was wrong.
I just checked some stubs with the w3 validator, and they pass without a
hitch. Both XHTML 1.0 strict and transitional. XHTML 1.1 and 2.0 seem to
be fine as well.
Sorry.
Timo
Igor Vaynberg schrieb:
in that case i dont see how you can ever make this work in xhtml unless
just call secondForm.setModel(loaded model); secondForm.setVisible(true);-IgorOn 5/4/06, Aditya Patel
[EMAIL PROTECTED] wrote:I have 2 forms in my wicket page. Only the first form is visible at the beginnning.
The first form has a drop down and based on the selection of the drop down, there's a
thanks bruno! i will try to take a look tonight and see if we can adapt these ideas.-IgorOn 5/4/06, Bruno Borges
[EMAIL PROTECTED] wrote:I found some links that might be of great interest!
dynamic load _javascript_ from _javascript_
sure you can do that, but then you yourself have to manage request parameters, yuck. the whole point of components is that they take care of all that messy stuff for you. if you still want to do that you override webcomponent.onrender
() and do something like this:
yep.-IgorOn 5/4/06, Aditya [EMAIL PROTECTED] wrote:
Has this been fixed. I have the same problem with wicket1.2-rc3 Thanks,will try to take a look tonight.-Igor On 5/1/06, myu at mail.dk
myu at mail.dk wrote:Hi IgorWell maybe it was fixed in cvs :).I am currently running wicket 1.2-rc2.I have
How to set up an initial Date in a DatePicker object?I want to use DatePicker for birthday property, but I want it to load with a date 10 years before current year. How can I achieve this?Regards,--
Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component
Hi Igor
I thought that this fix wasnt included in wicket1.2-rc3. If it is
then i agree with Aditya. The bug is still there :(
Kind regards
/Murat
Igor Vaynberg [EMAIL PROTECTED] wrote:
yep.
-Igor
On 5/4/06, Aditya [EMAIL PROTECTED] wrote:
Has this been fixed. I have the same
it is fixed, but not in rc3. i did not take aditya's question in the context of rc3.-IgorOn 5/4/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:Hi IgorI thought that this fix wasnt included in
wicket1.2-rc3. If it isthen i agree with Aditya. The bug is still there :(Kind regards/MuratIgor Vaynberg
Isn't this code correct?class UserForm extends Form {User user = new User(); // POJO Bean
constructor {...BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(user);add(new TextField(name, model));
add(new TextField(email, model)); // Can I do this? Use the same model object for
as far as i can see there are no getSelectedField()/setSelectedField() methods in the AutoCompleteTextField -IgorOn 5/4/06, Aditya Patel
[EMAIL PROTECTED] wrote:
I am using a AutoCompleteTextField with wicket1.2rc3 and have declared it likefinal TextField field1= new AutoCompleteTextField(field1,
Ops... sorry Igor.But one question: the Javadoc says that the BoundCompoundPropertyModel uses the name (I understand here as the id) of a component as the property name it should use to set value on model.
So, I understand as: add(new TextField(name, new
Well, is there a configuration option only to change the date when a day
is chosen, but not when shifting to a new month?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: Thursday, May 04, 2006 12:23 PM
To:
The idea is that you set a Compound/BoundCompoundPropertyModel on the
parent (or further up the hierarchy) of these components.
setModel(new (Bound)CompoundPropertyModel(userBean));
add(new TextField(name));
Bound and the normal CompoundPropertyModel do not differ much from
each other, except
no thats the compound one.basically IModel has a getObject(Component c) and setObject(Component c, Object value)notice the Component argument.the compoundpropertymodel does thisgetObject(Component c) {
return object's property with name c.id}and setter does the reversethe bound version lets you
the datepickers picks the date of the java format string.So they should always be no in sync so how java formats the string this will also be how _javascript_ formats the string.johan
On 5/4/06, Frank Silbermann [EMAIL PROTECTED] wrote:
Apparently, my initial value in the old
one way is let the model decide thatso if the date == null return a date that you want.johanOn 5/4/06, Bruno Borges
[EMAIL PROTECTED] wrote:How to set up an initial Date in a DatePicker object?
I want to use DatePicker for birthday property, but I want it to load with a date 10 years before
as eelco is saying. Dig into the _javascript_ of that datepicker.See how it works and if you can patch it to only set the date when you close it.the _javascript_ is not written by us. We only use it. and intergrated it into wicket.
johanOn 5/4/06, Frank Silbermann [EMAIL PROTECTED] wrote:
Well, is
On 5/4/06, Ralf Ebert [EMAIL PROTECTED] wrote:
Hi Juergen,
please see WicketMessageTagHandler.java. It is experimental only and
disabled by default. Reason: it is realy ugly to have something like
wicket:example=tag=key. AttributeModifier are much more convinent
and far less ugly, IMO.
if
i am affraid that you really have to debug this yourself.Isn't there any exception/warning?johanOn 5/4/06, Dipu
[EMAIL PROTECTED] wrote:
Hi,
I updated the the wicket source tree from svn trunk
and myapplication stopped functioning.
For some reason the values are not getting set to
the
I am just wondering how other frameworks handle this problem and why it
seems more difficult in Wicket? Would Wicket fit in well as a Web
presentation layer for an application using EJB3 (including JPA)?
i believe Vincent is working with ejb3 so maybe he can tell you about his
experience. i
Not sure I understand what needs to be done. I guess I'll wait until
tomorrow until the that is how the output must look like question is
solved.
Juergen
On 5/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i guess in this case we need to capture the head output of the component
during ajax
cool..varscript=document.
createElement('script');
script.type='text/_javascript_'
;
script.src='snip.js';
document.getElementsByTagName('head'
)[0].appendChild(script);
if that works.. that should be doable.johanOn 5/4/06, Igor Vaynberg
[EMAIL PROTECTED] wrote:thanks bruno! i will try to take a
and doing all of this while training a new developer who just joinedthe company and is not familiar w/ Java, Wicket, or even web apps
development in general.lucky you!!! because they are not completely infected by the mvc (struts) way of working!Because that would be much worse :)johan
secondForm.setModel(new CompoundPropertyModel(myModel));
secondForm.setVisible(true)
I can see the new loaded Model getting set in Component class but when it
iterates over the children for populating the values then the previous model
seems to be getting called.
I am using
are you saying that childeren of the secondform still use the old compoundpropertymodel?when you are setting a new compoundmodel in the second form?what you also could do is just do is secondForm.setModelObject
(youreObject)johanOn 5/4/06, Aditya [EMAIL PROTECTED] wrote:
secondForm.setModel(new
I don't hear great things about Struts! My experience w/
Java/J2EE/Java EE before wicket was Servlets+JSP+Hibernate (and JDBC),
and I've only been doing Java for about a year. I had made a living
off of Microsoft technologies for years prior to that, specifically C#
and the .NET framework.
I
My great hope is that Wicket can provide great productivity and power to
people who have a true mastery of object-oriented techniques, raising
their pay and status above that of ordinary code-monkeys and
API-memorizers.
My great fear is that the market will reject Wicket because
i dont think this is cool at all because it requires components to provide an alternate output unless we parse the script and link tags ourselves.-IgorOn 5/4/06,
Johan Compagner [EMAIL PROTECTED] wrote:
cool..varscript=document.
createElement('script');
script.type='text/_javascript_'
;
basically what we are talking about is somehow capturing the componnet's header contribution and writing it out.so take datepicker, datepicker.html has a wicket:head section. what we need to do is to somehow get that portion as a charsequence so that the ajax request target can dump it as part of
it would help to see the code also.-IgorOn 5/4/06, Johan Compagner [EMAIL PROTECTED] wrote:
are you saying that childeren of the secondform still use the old compoundpropertymodel?
when you are setting a new compoundmodel in the second form?what you also could do is just do is
Johan Compagner schrieb:
and doing all of this while training a new developer who just joined
the company and is not familiar w/ Java, Wicket, or even web apps
development in general.
lucky you!!! because they are not completely infected by the mvc (struts)
way of working!
MVC is not Struts!
Frank Silbermann schrieb:
My great hope is that Wicket can provide great productivity and power to
people who have a true mastery of object-oriented techniques, raising
their pay and status above that of ordinary code-monkeys and
API-memorizers.
My great fear is that the market will reject
MVC is not Struts! (MVC is *much* older.) I wouldn't even say that
Struts is MVC.
You might even argue that Swing isn't the MVC as it was proposed. But
yeah, that's why I try to keep calling those frameworks 'model 2'
instead.
Eelco
---
On 5/4/06, Vincent Jenks [EMAIL PROTECTED] wrote:
I don't hear great things about Struts! My experience w/
Java/J2EE/Java EE before wicket was Servlets+JSP+Hibernate (and JDBC),
and I've only been doing Java for about a year. I had made a living
off of Microsoft technologies for years prior to
Timo Stamm wrote:
MVC is not Struts! (MVC is *much* older.) I wouldn't even say that
Struts is MVC.
Yeah, but, it's a lost cause. The word anyway. The concept is enshrined
in component based frameworks, so we can confidently roll our eyes
whenever those Rails barbarians describe the activities
with all the talent in this thread its amazing how fast it can deteriorate :)-IgorOn 5/4/06, Nathan Hamblen
[EMAIL PROTECTED] wrote:Timo Stamm wrote: MVC is not Struts! (MVC is *much* older.) I wouldn't even say that
Struts is MVC.Yeah, but, it's a lost cause. The word anyway. The concept is
Oh yeah, just jokes, .NET is a pretty great technology...though it
still requires far more work than the EJB3+Wicket combo.
MS's tools are great, they have a snazzy IDE...but I still prefer
Eclipse...perhaps because of its open nature and breadth of industry
support both pro amateur.
The tools
Looks like there's no problem adding styles. http://www.dynamicdrive.com/forums/archive/index.php/t-3459.htmlThis URL is not quite what it should be for, but demonstrates how CSS's can be changed without reloading a page. And I'm sure the same way new .js files can be added to a Head section
Hi Vincent (et al.),I'm about 90% finished w/ a Wicket/EJB3 (JBoss) storefront solution for my company to start doing consumer web sales. In my personal opinion, Wicket + EJB3 is the holy grail of Java web development...and I'm not being dramatic. It would be hard to convince me to use another
75 matches
Mail list logo