Igor,
I didn't mean spreading this approach everywhere :) My intention was to draw
your attention on that onBeforeRender probably is a good place to delay
construction but should be used with extra care and some sort of
simplification (more appropriate method) would be great.
You turned it inside
I'm doing just right like you described. Probably I have to pay more
attention to your comment about improper use of models. isVisible method
should rely only on the component model. I some cases it is easier to
delegate some calls to aggregated components. But instead I have to work
with componen
Hi Matej,
is it possible to post a little example?
-Peter
Matej Knopp-2 wrote:
>
> In order for tree to update items your model must fire treeNodesChanged
> event.
>
> -Matej
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-Tree-Table---Update-Model-tp23549640p23554149.html
by your own argument your own code will have to call your
second-chance init constructor before invoking *any* method on the
component.
so instead of
boolean visible=getMyComponent().isvisible();
you will have to now do
Component c=getMyComponent();
if (!c.isinitted()) {c.initI(); }
boolean vis
Hi,
I blogged a fairly large collection of links to discussions about the issues
with JSF in general. What prompted me to put this up is that I yet again
failed to convince a team at work that Wicket should be chosen over JSF.
Frustrating.
Hope this proves useful to some, please pass it on to th
For your example (NavigationToolbar in DefaultDataTable) - just don't
use DefaultDataTable. DDT is provided simply as a convenience with
the most common features of a table. If it does not suit your needs,
create your own subclass of DataTable that uses whatever features you
want. You will see t
Jeremy,
I can't add another example to mentioned RepeatingView.
Concerning RepeatingView... Wicket allow me just one point to subclass
parent component markup within tag. RepeatingView comes in
handy. It allows me to reserve some places in base component markup and put
something there in subclas
1 - isVisible isn't called in the constructor.
2 - A constructor is for constructing - your object should not be in
an incomplete state when the constructor is finished (such a state
that methods such as isVisible can not be called)
3 - the question was about delayed creation of child components -
it has just come to my mind
I'm afraid Wicket can't guarantee that onBeforeRender would be called in any
case. So there could be a case (isVisible() for instance) when
onBeforeRender is not called yet but overriding method could read
yet-not-completely-initialized object state.
Instead of t
Do you have any examples of where Wicket calls an overridable method
from the constructor of a Wicket class? If so, please file it as a
JIRA - that would be a bug.
Most java programmers know not to call overridable methods from the
constructor as a general rule, although there are times when it c
Martijn,
here Java is not safe as a language. Yo're able to invoke overrided methods
on non-completely constructed objects.
from my perspective it is a regular case in Wicket:
class SampleComponent extends ... {
String parameter;
SampleComponent(String id, String parameter) {
s
Never mind - I figured it out. DateTextField takes a Date not a String.
--jim
jobiwankanobi wrote:
>
> Is there a way to make it more lenient? I have data coming in from
> different sources - I want the form to load, give them a chance to change
> the format.
> --jim
>
>
> igor.vaynberg wrot
Please file a JIRA at the URL below [1]. The most effective issues
are ones that are submitted with a patch. To make it even more
effective, please run all tests against the patched codebase (run "mvn
clean test") and notate that you did so when you submit your patch.
[1] - https://issues.apache
Is there a way to make it more lenient? I have data coming in from different
sources - I want the form to load, give them a chance to change the format.
--jim
igor.vaynberg wrote:
>
> your format should match what you have in your model. otherwise you
> will get the same error when you try to
That example should be self-contained. I'm going to play around with
method-level stuff tonight hopefully. I'm curious myself.
On May 14, 2009 6:51 PM, "freak182" wrote:
Hi James,
Can you share your wicket-spring-security project or there is already in
wicketstuff?
Thanks a lot.
Cheers.
Ja
delete delete delete
doh!
On May 15, 2009, at 8:57 AM, David Leangen wrote:
textfield.setcomponentborder(new fieldborder());
I didn't see FieldBorder in the javadocs.
What is the full class name?
Thanks!
=David
-
T
Hi all,
I moved to wicket 1.3.6, the lastest before 1.4, without any luck. What
I did next, it was to cut the code that was bother me and It is working now.
Of course, I am afraid that this could have colateral effects. This is the
code,
if (group.hasRawInput())
{
f
textfield.setcomponentborder(new fieldborder());
I didn't see FieldBorder in the javadocs.
What is the full class name?
Thanks!
=David
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands,
your format should match what you have in your model. otherwise you
will get the same error when you try to stick the submitted value back
into your model - but the error will be on the model site.
-igor
On Thu, May 14, 2009 at 4:26 PM, james o'brien wrote:
> I have the following:
>
> DateTextFi
I have the following:
DateTextField when = new DateTextField("when", newPropertyModel(bloodPressure,
"when"), "M/d/");
when.setOutputMarkupId(true);
when.add(new DatePicker());
When the form loads with pre-existing date of this format: "5/1/09", I get
the following error:
java.lang.Illeg
upgrading to a newer version is always preferred as a first measure.
Martijn
On Fri, May 15, 2009 at 1:12 AM, Igor Vaynberg wrote:
> you can search jira for all known issues, i dont remember all of them
> from the top of my head :)
>
> -igor
>
> On Thu, May 14, 2009 at 4:09 PM, Fernando Wermus
>
you can search jira for all known issues, i dont remember all of them
from the top of my head :)
-igor
On Thu, May 14, 2009 at 4:09 PM, Fernando Wermus
wrote:
> Igor,
> I can move to a newer wicket version. Do you know if this is a known
> bug?
>
>
> On Thu, May 14, 2009 at 4:05 PM, Igor Vayn
Igor,
I can move to a newer wicket version. Do you know if this is a known
bug?
On Thu, May 14, 2009 at 4:05 PM, Igor Vaynberg wrote:
> if you care to submit a quickstart that demonstrates this in a jira
> issue im sure someone will fix it relatively quickly.
>
> of course patches are applie
if you care to submit a quickstart that demonstrates this in a jira
issue im sure someone will fix it relatively quickly.
of course patches are applied even quicker :)
-igor
On Thu, May 14, 2009 at 4:02 PM, Fernando Wermus
wrote:
> Hi!,
> I am facing a problem that I don't know how to face.
This has been discussed till death previously and we have excluded it
from our roadmap. We will never have an init() method for components.
Gossling gave us a Constructor to initialize your Objects.
Search and read the archives if you want more information on the subject.
Martijn
On Fri, May 15,
In order for tree to update items your model must fire treeNodesChanged event.
-Matej
On Thu, May 14, 2009 at 2:55 PM, Peter Diefenthaeler wrote:
>
> Hi every one,
> I tried the tree table example and get stuck with two problems.
> How can I avoid links in the tree leavlets?
> How can I update t
Hi!,
I am facing a problem that I don't know how to face.
I have a wizard several steps. One of them has a checkGroup and several
check. If I go to a step back and then a step foward, the checked boxes are
lost. The same happens when a required field is not completed.
I verified several
Hi James,
Can you share your wicket-spring-security project or there is already in
wicketstuff?
Thanks a lot.
Cheers.
James Carman-3 wrote:
>
> On Thu, May 14, 2009 at 1:38 PM, Kent Larsson
> wrote:
>> Hi James,
>>
>> Thank you for example! Although I can't find any secured methods in
>> t
Good point! I had never seen IComponentBorder before so was just poking
around and saw that to me it seems to do the same thing as IBehaviour... but
less. So I thought I am probably missing some key difference.
igor.vaynberg wrote:
>
> why not?
>
> -igor
>
>
--
View this message in conte
why not?
-igor
On Thu, May 14, 2009 at 3:11 PM, John Patterson wrote:
>
> Why would you use IComponentBorder instead of IBehaviour?
>
>
> igor.vaynberg wrote:
>>
>> use IComponentBorder and then simply add it to each form component or
>> subclass formcomponents and add it in the constructor,
>>
It would be very nice to add a new phase for component creation, like I
said, an init() or createContent().
Is there a JIRA issue for that?
If yes, I will vote for it and suggest to change the name to something _not_
related to the rendre phase.
Thanks!
Juan
On Thu, May 14, 2009 at 3:31 PM, Dani
I am having the same problem. Does anyone solve it?
Thanks in advance.
On Thu, May 8, 2008 at 7:59 AM, Steen Larsen wrote:
> If I instead of item.getModel() for the Check, uses some PropertyModel that
> evaluates to a String identifier it works fine, but then only the
> identifier
> is saved, a
What i do is extends the Palette and override the renderHead to implement
the mdified palette.js.
James Carman-3 wrote:
>
> You're saying you modified the JS that comes with Wicket and it caused
> the problem or you modified it and it fixed it?
>
> On Thu, May 14, 2009 at 10:27 AM, freak182
i modified the JS that comes with wicket and fixed my problem.
James Carman-3 wrote:
>
> You're saying you modified the JS that comes with Wicket and it caused
> the problem or you modified it and it fixed it?
>
> On Thu, May 14, 2009 at 10:27 AM, freak182 wrote:
>>
>> Hello,
>>
>> I just fo
Why would you use IComponentBorder instead of IBehaviour?
igor.vaynberg wrote:
>
> use IComponentBorder and then simply add it to each form component or
> subclass formcomponents and add it in the constructor,
> eg textfield.add(new fieldborder());
>
> -igor
>
> public class FieldBorder imple
What worked for me is replacing the tree component via replaceWith()
with a new instance of the tree. It's definitely not nice but at least
it worked.
Kaspar
On 14.05.2009, at 14:55, Peter Diefenthaeler wrote:
Hi every one,
I tried the tree table example and get stuck with two problems.
H
You should also check your dependencies using the maven dependency plugin.
Are there conflicting slf4j-log4j12 versions in there? Are there conflicting
log4j versions?
On Thu, May 14, 2009 at 9:54 PM, fachhoch wrote:
>
> I using log4j.xml
>
> http://www.nabble.com/file/p23547818/log4j.xml log4j.
I using log4j.xml
http://www.nabble.com/file/p23547818/log4j.xml log4j.xml attached is my
log4j.xml
James Carman-3 wrote:
>
> Can we see your log4j.properties file?
>
> On Thu, May 14, 2009 at 3:39 PM, tubin gen wrote:
>> bean wicketApplication' is my web-application's
>> org.apache.wicket
Can we see your log4j.properties file?
On Thu, May 14, 2009 at 3:39 PM, tubin gen wrote:
> bean wicketApplication' is my web-application's
> org.apache.wicket.Application
>
> this is the error message I get starting my application
>
> org.springframework.beans.factory.BeanCreationException: Er
bean wicketApplication' is my web-application's
org.apache.wicket.Application
this is the error message I get starting my application
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'wicketApplication' defined in class path resource
[applicationContext-we
I think you can use hasBeenRendered() method instead of custom boolean
flag.
--
Daniel
On 2009-05-14, at 20:15, Jeremy Thomerson wrote:
You could probably do it in onBeforeRender - but you would need to
keep a boolean flag to check if it's the first render so that you
don't recreate them on
You could probably do it in onBeforeRender - but you would need to
keep a boolean flag to check if it's the first render so that you
don't recreate them on a second render There was talking of
adding an onBeforeFirstRender method, but I don't think it's happened
yet - you could look for the me
Hi all,
Is there a way in wicket for separate the object's instantiation phase from
the inner component's creation phase?
Just like the "init()" method in application, but for my components.
Another way to see it, just in case it's not clear:
Is there an already defined contract for component crea
On Thu, May 14, 2009 at 1:38 PM, Kent Larsson wrote:
> Hi James,
>
> Thank you for example! Although I can't find any secured methods in
> there. Not in your beans.xml and not by grepping for Secured on all
> your files. So correct me if I'm wrong, but I don't think you are
> using the method secu
Hi James,
Thank you for example! Although I can't find any secured methods in
there. Not in your beans.xml and not by grepping for Secured on all
your files. So correct me if I'm wrong, but I don't think you are
using the method security option in Spring Security? In any case I'm
greatful for you
textfield.setcomponentborder(new fieldborder());
IDEs are good at helping you...
-igor
On Thu, May 14, 2009 at 9:56 AM, jobiwankanobi wrote:
>
> textfield.add(new FieldBorder()) doesn't work.
> -jim
>
>
> igor.vaynberg wrote:
>>
>> use IComponentBorder and then simply add it to each form compon
textfield.add(new FieldBorder()) doesn't work.
-jim
igor.vaynberg wrote:
>
> use IComponentBorder and then simply add it to each form component or
> subclass formcomponents and add it in the constructor,
> eg textfield.add(new fieldborder());
>
> -igor
>
> public class FieldBorder implements
You're saying you modified the JS that comes with Wicket and it caused
the problem or you modified it and it fixed it?
On Thu, May 14, 2009 at 10:27 AM, freak182 wrote:
>
> Hello,
>
> I just found the problem. I modified the palette.js.
>
> Wicket.Palette.update
>
> if( i+1 < selected.lenght)
>
On Thu, May 14, 2009 at 9:55 AM, Erik van Oosten wrote:
> Nice, I didn't know you could use negatives there.
Yeah, I figured that out a while back (no idea how) and it was a big
help. I just have to remember to do it for each new Wicket project
(or figure out how to set default project propertie
try with trunk. this was fixed yesterday afaik.
-igor
On Thu, May 14, 2009 at 5:42 AM, Alex Objelean wrote:
>
> I'm having the same problem with wicket-1.4-rc4. Does anybody have a clue why
> this is happening?
>
>
> FakeBoy wrote:
>>
>> Hi everyone,
>> I try to work with StatelessForm, but I ha
Hello,
I just found the problem. I modified the palette.js.
Wicket.Palette.update
if( i+1 < selected.lenght)
...
changed to:
if ( i < selected.lenght)
..this works fine but we are testing it.
James Carman-3 wrote:
>
> What type of values are you using?
>
> What type of collect
Any resolution on this? Or may be some workaround?
+Leena
skatz wrote:
>
> I have the same problem using 1.3.5, but not when using 1.3.3. I spent
> some time tracing the source code and it seems related to the addition of
> this line:
>
> getTreeState().selectNode((TreeNode)item.getModelObje
I want to send e.g. a PDF file to the client. It does work for JPG and Html but
not for e.g PDF / PNG / TXT files.
When I try to open the file I get Adobe Reader could not open FILENAME because
it is either not a supported file type or because the file has been damaged(for
example, it was sent
Nice, I didn't know you could use negatives there.
Erik.
James Carman wrote:
You can set up IntelliJ to not exclude them. Just go to the compiler
properties for your project and set the exclude to something like
!?*.java.
2009/5/13 Erik van Oosten :
I always get this for a new app whe
Hi every one,
I tried the tree table example and get stuck with two problems.
How can I avoid links in the tree leavlets?
How can I update the tree on a new model. I've generated the tree
information on a database query with a search field. When I press the
search button, I expected the tree to be
Hi every one,
I tried the tree table example and get stuck with two problems.
How can I avoid links in the tree leavlets?
How can I update the tree on a new model. I've generated the tree
information on a database query with a search field. When I press the
search button, I expected the tree to be
I'm having the same problem with wicket-1.4-rc4. Does anybody have a clue why
this is happening?
FakeBoy wrote:
>
> Hi everyone,
> I try to work with StatelessForm, but I have strange problem. When I fill
> in form fields first time everything works good. But If I have some
> validation in some
To be honest, there's nothing wicket-specific about it. Testing AJAX is
pretty easy, just use waitFor* assertions to delay until the AJAX component
is loaded.
One slight irritation is that Wicket munges the id of its components, making
element identification a bit tedious, so I eventually wrote a
I am very new to the Java-World and want to make a web project using
Java/Maven2/Wicket.
I tried to install Wicket with these instructions:
http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html
Everything went fine up to the point of running a project. I tri
What type of values are you using?
What type of collection are you putting them in?
On Thu, May 14, 2009 at 2:39 AM, Eman Nollase wrote:
> Hello,
>
> I have a problem about palette. here is the scenario:
>
> if there is already values in selected side and when I add values from
> available side
Martijn,
Thanks for your quick answer. I missed some crucial parts ;)
Folder flr = new Folder("d:\\testUpload");
File file = new File(flr, upload.getClientFileName());
...
file.createNewFile();
upload.writeTo(file);
...
Now it is working properly.
Why are you looking up the client filename? Do you have access the the
remote computer your user is on?
Martijn
On Thu, May 14, 2009 at 10:53 AM, Stefan Droog wrote:
> Hi all,
>
> Currently I want to upload a file via FileUploadField. However when I select
> a file and press upload I get a File
Hi all,
Currently I want to upload a file via FileUploadField. However when I select a
file and press upload I get a FileNotFoundException (System cannot find the
file specified). File.getCanonicalPath and file.getAbsolutePath both returns
the wrong location.
Somebody a clue why?
Regards,
St
Am Thu, 14 May 2009 01:06:13 -0700 (PDT)
schrieb freak182 :
> i just add that in my basepage to works on IE7...i couldn't have imagine
> that this line of code saves me a lot.
FYI
http://en.wikipedia.org/wiki/Quirks_mode
-
To u
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
i just add that in my basepage to works on IE7...i couldn't have imagine
that this line of code saves me a lot.
NHSoft.YHW wrote:
>
> ModalWindow can not appear in IE 6.x, but Firefox 3.x has no problem
Mathias,
I changed a bit of code and now it works without problems. I even can't
reproduce what was the problem.
Thank's a lot for your help
Philipp
When I try this code it works. Can you please post some code for us
--
Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Me
66 matches
Mail list logo