Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Korbinian Bachl



good points igor, and remember: spindle is only T3... no 
more for T4, and the other projects to create Tools for T4 arent mature 
yet...

Regards

  
  
  Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Im Auftrag von Igor 
  VaynbergGesendet: Mittwoch, 30. August 2006 22:43An: 
  wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] 
  WebObjects open source?
  
  
  - 
Java code is MUCH cleaner with WO, you keep in code only data pushed in 
thepresentation layer and actions. No need to add components and 
configure them in java code.how is this MUCH cleaner? 
  just because there is no code? you can say code for a framework that is 
  configured via xml is also cleaner because there isnt any configuration 
  code.
  - 
Components are declared in HTML, configured in another file, 
binding(configuring) the component with the java class. This approach 
need tools, WOhas some nice tools for this. That's why Tapestry is not 
even close to WO here. 
  tapestry has spindle which is a pretty cool eclipse plugin that takes 
  care of java/component declaration/html and validates all three as 
  well.but this is for me where the problem is - if your components are 
  delcared declaratively then you cannot have dynamic page structures. eg 
  switching panels around, moving panels. this was one of the reasons i switched 
  away from tapestry. 
-Igor
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Alex Objelean

I am glad that so many people start to debate in this topic. First of all I
need to explain my usecase:

it is indeed about a tree... I have a tree containing Roles (hierarchical
structure). There is a screen in which the user must select the Roles which
he want to assign to a user. 
   The logic is simple: if you check a node - the checked Role is added to
the list of selected Roles, otherwise it is removed from the list. At the
same time, if you check a child - all the ancestors changes theirs state to
intermediate (if their current state is unchecked, otherwise it doesn't
change it's state). The intermediate state has the same meaning as unchecked
state (its only purpose is to visually inform user about the implicit Roles
are assigned to the list of selected Roles). 
   This kind of usecase is not singular. I am sure it would be very usefull
in many more situations, depending on applications needs.
   Why I thought it would be a good ideea to extend the Checkbox
FormComponent, is because it has almost the same functionality excepting the
existence of the intermediate state. The model object in this case should be
a Boolean object, holding the following values : [null, true, false] (the
same ideea was posted by someone earlier)...
   Another problem which must be taken in consideration is if the change of
state of this component should cause the form submition or not (see the Igor
and Korbinian Bachl posts)... The way I thought to use it in my use case was
pro submiting the form  updating the whole tree, but Igor is right - this
involves a lot of data being sent to the server, which for a large tree
structure can become unacceptable... I think, there can be different
approaches (each having its pros and cons)... Anyway, if you have any
thougths regarding the way this component can be implemented - they are
welcome and thank you all for your posts!

 

   


Eelco Hillenius wrote:
 
 That's an interesting Widget! How would it work on the server side
 though... what kind of model would it need.
 
 I'd be interested to hear about how you plan to use it. It seems this
 is a component you'd always use with a tree, correct? If so it would
 just be a matter of letting the tree render the proper node images.
 
 Eelco
 
 
 Maybe I was not clear enough in my specification. If I would not say that
 I
 need a tri-state checkbox, but a formComponent which looks like checkbox
 (see here:
 http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Tri-state_Checkbox.htm)
 would it make sense? At the end, it is a component like any other
 component
 and it has nothing to do with the w3c.org specification...
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6074389
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Anders Peterson
Igor Vaynberg wrote:

 but this is for me where the problem is - if your components are 
 delcared declaratively then you cannot have dynamic page structures. eg 
 switching panels around, moving panels. this was one of the reasons i 
 switched away from tapestry.

Like this?

http://developer.apple.com/documentation/WebObjects/Reference/DynamicElements/WOSwitchComponent/chapter_34_section_1.html

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Protecting Bookmarkable Pages

2006-08-31 Thread Stefan Arentz
On 8/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 exactly. iauthstrategy is geared more towards declarative security and more
 towards components not pages. if your usecase does not match then doing the
 check in the base page's constructor is the way to go - clean and simple.
 thats why we have all those RestartResponseAtFoo exceptions :)

Well the confusion started because all the sample code that does PAGE
authorization is build on top of IAuthStrat.

Wicket is pretty flexible and there are fortunately always multiple
ways to do things :-)

 S.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] filtertable and checkgroup cannot work together

2006-08-31 Thread wq

final CheckGroup group=new CheckGroup(group, new ArrayList());
...
group.add(new CheckGroupSelector(groupselector));
..
SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider();
DefaultDataTable table = new DefaultDataTable(table,columns,provider,30);
table.addTopToolbar(new FilterToolbar(table,provider));
group.add(table);
form.add(group);

http://www.nabble.com/user-files/235815/Snap1.gif 

the html file is:
form wicket:id=form
span wicket:id=group
nbsp;nbsp;nbsp;input type=checkbox
wicket:id=groupselector全选/清除/inputbr/
table class=dataview cellspacing=0 
wicket:id=table[table]/table
/span
input type=submit value=确定 /
/form

when I click the 'groupselector', the theckbox in filtertable cannot be
checked. If the filtertoolbar is removed,all works fine.
I suppose it is the filterform in  filtertable that  blocks the groupselect
javascript.

How can I do? very thanks!
-- 
View this message in context: 
http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6075049
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Anders Peterson
WO is free since about 1 year and may be about to become open source. 
Try it and learn what some really talented people designed more than 10 
years ago.

...and if you want to ask questions about technical details - ask the 
people who know. WO has a very good on-line community.

http://www.omnigroup.com/developer/mailinglists/

http://lists.apple.com/mailman/listinfo/

/Anders

Frank Silbermann wrote:
 Igor has already mentioned one advantage of declaring and configuring 
 components in code -- it is easy to make the presentation very dynamic.  For 
 example, when displaying products from a catalog, the page constructor can 
 vary the display-components used depending upon the type of product chosen by 
 the user.  (You could have different types of panels for different types of 
 products, any one of which is embedded into the same basic page object.)  But 
 I have another consideration in mind.
 
 The advocates of Extreme Programming argue that it is naïve to think one can 
 always design first and then implement.  They argue that it is more realistic 
 to start coding a few use cases and refine the design along the way, as 
 experience adds insight and as the user's requirements become clearer.  To 
 refine the design of existing code they recommend _refactoring_ (see Martin 
 Fowler's book on that topic).
 
 Suppose I've built a page and later decide, in view of the DRY (Don't Repeat 
 Yourself) principle that a portion of my page should be refactored into a 
 custom component.  With Wicket I can move some of the page's Java code into 
 my new panel class, and move HTML snippets from the page's associated HTML to 
 the panel's HTML file.  This process seems not too far removed from Fowler's 
 Extract Class refactoring.  To me, the ability to easily refactor is one 
 advantage of having the components added and configured in code.
 
 To do such a refactoring in Web Objects, I am guessing that one would have to 
 work with the generated tag files (a mixture of HTML and component 
 configuration tags), which I doubt is practical to do by hand.  So unless the 
 tool implements this kind of refactoring directly (which I doubt), you would 
 create the re-usable component _from_scratch_ using the display-painting tool 
 again, throwing away components that were painted earlier.  I fear that this 
 wasted effort may be a disincentive against presentation-layer refactoring -- 
 with the result that final designs won't be as tight as they could have been. 
  (On the other hand, if the Web Objects tool makes re-doing the work 
 sufficiently easy, the waste of redoing work may be insignificant.)
 
 I can see that some applications might be easier to build with Web Objects, 
 just as for building certain types of fat clients Visual Basic 6 is easier to 
 use than Swing.  But for more sophisticated presentation logic, the Wicket 
 approach will facilitate the use of design patterns, refactoring, and other 
 modern OO techniques.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex
 Sent: Wednesday, August 30, 2006 3:15 PM
 To: wicket-user@lists.sourceforge.net
 
 - Java code is MUCH cleaner with WO, you keep in code only data pushed in the 
 presentation layer and actions. No need to add components and configure them 
 in java code.
 
 - Components are declared in HTML, configured in another file, binding 
 (configuring) the component with the java class. This approach need tools, WO 
 has some nice tools for this.
 
 - Both frameworks make creation of custom components easy (unlike JSF!!!)
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


-- 
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Alexis

yes that could be interesting ! To add on the subject, the binding file of WO
uses what they call KeyValueCoding to move back and forth values in
components
exemple, to declare a Label component : 
 myString : WOString { value = myObject.toString } or myLoginString :
WOString { value = session.login.name }
In this simple case with wicket, this could be converted at runtime with a
Label + PropertyModel... 
I'm not sure if that would be relevant for all of core components though.
In fact without tools to edit this binding file, adding components in code
is easier.


Eelco Hillenius wrote:
 
  Can you expand on where/ why you think that difference comes from? Are
  some of the default components of WO better abstracted for the kind of
  things you do?
 For example, I'm thinking of some pages sometimes that contains tons of
 little
 dynamic label (or WOString ;)). In a declarative way, you don't need to
 factorize these in a new component. With Wicket, we usually factorize
 these in a
 custom Panel to keep the page class clean.
 
 We have wicket:message for such cases. And there is the non-advertised
 wicket:component tag, of which we are still unsure whether we should
 totally ditch it or not.
 
 A WO (or Tapestry, for that matter) kind of approach, where the
 structure is defined in a third file or inferred somehow should be
 doable if someone is willing to take that up. I'm not sure whether
 you'd get a lot of additional help from the core team, but we're
 certainly not against customizations if people feel alternatives work
 better. One of the advantages of Wicket being a non-declarative
 framework, is that it is still open for building the declarative part
 on top of it if you want.
 
 For instance, look at how WicketMessageResolver is implemented
 (IComponentResolver). And add to that the fact that you can let any
 component dynamically build itself (or rather it's children), e.g.
 using a factory pattern using that declarative file, and a world of
 possibilities opens up.
 
 If you'd ever endeavor on that, please keep us (this list) informed :)
 
 Eelco
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/WebObjects-open-source--tf2177391.html#a6075051
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax to toggle visibility require two WebMarkupContainers

2006-08-31 Thread Ingram Chen
Hi all, As I tried more Ajax in my new project, I frequently encounter one feature:use ajax to toggle specific block of tag visible/invisible. To do this, one may use:div wicket:id=domIdHolderComponent 
 div wicket:id=componentForVisibility actual content here a wicket:id=foo ... span wicket:id=bar.
 /div/div outer webMarkupContainer domIdHolderComponent is ajax target to re-render, inner componentForVisibility is just to toggle visibilty of content in certain condition. 
It is quite anony to I have to add two layers of WebMarkupContainers for this. This makescode hardly readable. It would be better we have a new component, so we can do this:div wicket:id=domIdHolderAndToggleBodyVisibility 
 actual content here
 a wicket:id=foo ...
 span wicket:id=bar./divI tried to write a reusable Border component to simulate but it is not work as I expectCould I write a component do reverse of setRenderBodyOnly:
class NewComponent { public isRenderTagOnly() { return // if false just render the tag without body, else render full body }}With this it may save time to struggle with ajax dom id place holder.
Any hint to do this ? or a simpler way to solve ajax toggling visibility ?Thanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Alexis

In fact, we prefer not deploy WO app in a servlet container.
A WO web app tool (called JavaMonitor) is used to deploy WO app, tweaking
params, numbers of instances, monitoring of sessions, load balancing.
You can also easely deploy instances on different servers... that's why we
haven't felt the necessity of deploying in Tomcat for example.
I heard they're working on making WO multithread for future versions though.


igor.vaynberg wrote:
 
 it really sucks that WO forces threadsafety onto the user when deployed as
 a
 java app. that is something we work hard on in wicket - to shield the
 users
 - because lets face it threadsafety is one of the most error prone tasks
 in
 coding.
 
 For example, I'm thinking of some pages sometimes that contains tons of
 little
 dynamic label (or WOString ;)). In a declarative way, you don't need to
 factorize these in a new component. With Wicket, we usually factorize
 these in a
 custom Panel to keep the page class clean.
 
 
 if it is not really reusable and you just want to tidy things up you can
 use
 an inner WebMarkupContainer class instead of a panel - that way no need
 for
 a separate html file.
 
 if you have something small that is reused within the page/panel often
 then
 you can use a Fragment - also no need for a separate markup file.
 
 
 Off topic, are there other Web Mailinglist reader than gmane, its posting
 form
 is driving me crazy.
 
 
 try http://www.nabble.com/Wicket-f13974.html
 
 -Igor
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/WebObjects-open-source--tf2177391.html#a6075884
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers

2006-08-31 Thread Martijn Dashorst
Hide:
target.addJavaScript(document.getElementById(' +
component.getMarkupId() + ').style.display='none';);

Show:
target.addJavaScript(document.getElementById(' +
component.getMarkupId() + ').style.display='';);

It doesn't remove the component from the output stream, it just
manipulates the style of the tag itself.

Martijn


On 8/31/06, Ingram Chen [EMAIL PROTECTED] wrote:
 Hi all,

  As I tried more Ajax in my new project, I frequently encounter one
 feature:
 use ajax to toggle specific block of tag visible/invisible. To do this, one
 may use:

 div wicket:id=domIdHolderComponent 
 div wicket:id=componentForVisibility
 actual content here
 a wicket:id=foo ...
 span wicket:id=bar.
  /div
 /div

 outer webMarkupContainer domIdHolderComponent is ajax target to re-render,
 inner componentForVisibility is just to toggle visibilty of content in
 certain condition.

 It is quite anony to I have to add two layers of WebMarkupContainers for
 this. This makes
 code hardly readable. It would be better we have a new component, so we can
 do this:

 div wicket:id=domIdHolderAndToggleBodyVisibility 
   actual content here
a wicket:id=foo ...
span wicket:id=bar.
 /div

 I tried to write a reusable Border component to simulate but it is not work
 as I expect
 Could I write a component do reverse of setRenderBodyOnly:

 class NewComponent {
  public isRenderTagOnly() {
return // if false just render the tag without body, else render
 full body
  }
 }

 With this it may save time to struggle with ajax dom id place holder.
 Any hint to do this ? or a simpler way to solve ajax toggling visibility ?

 Thanks in advance!
 --
 Ingram Chen
 Java [EMAIL PROTECTED]
 Institue of BioMedical Sciences Academia Sinica Taiwan
 blog: http://www.javaworld.com.tw/roller/page/ingramchen
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers

2006-08-31 Thread Ingram Chen
Well, it is good for small portion of tags. One of our feature is togglevisibility by each link in grid (may be 10x10), use _javascript_ to toggle will waste some bandwidth...anyway, thank for adivse.
On 8/31/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
Hide:target.addJavaScript(document.getElementById(' +component.getMarkupId() + ').style.display='none';);Show:target.addJavaScript(document.getElementById(' +component.getMarkupId
() + ').style.display='';);It doesn't remove the component from the output stream, it justmanipulates the style of the tag itself.MartijnOn 8/31/06, Ingram Chen 
[EMAIL PROTECTED] wrote: Hi all,As I tried more Ajax in my new project, I frequently encounter one feature: use ajax to toggle specific block of tag visible/invisible. To do this, one
 may use: div wicket:id=domIdHolderComponent  div wicket:id=componentForVisibility actual content here a wicket:id=foo ...
 span wicket:id=bar./div /div outer webMarkupContainer domIdHolderComponent is ajax target to re-render, inner componentForVisibility is just to toggle visibilty of content in
 certain condition. It is quite anony to I have to add two layers of WebMarkupContainers for this. This makes code hardly readable. It would be better we have a new component, so we can
 do this: div wicket:id=domIdHolderAndToggleBodyVisibility  actual content herea wicket:id=foo ...span wicket:id=bar.
 /div I tried to write a reusable Border component to simulate but it is not work as I expect Could I write a component do reverse of setRenderBodyOnly: class NewComponent {
public isRenderTagOnly() {return // if false just render the tag without body, else render full body} } With this it may save time to struggle with ajax dom id place holder.
 Any hint to do this ? or a simpler way to solve ajax toggling visibility ? Thanks in advance! -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan
 blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Download Wicket 
1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow-- http://wicketframework.org-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] DatePicker problem - java script stack overflow error

2006-08-31 Thread Iuly

Hi, 
I've upgraded my current application to 1.2.2 wicket version. The only
problem that occured is related to DatePicker. 
Shortly I have the following use case :  if a panel with a DatePicker inside
is added to the target after a ajax request, DatePicker component is opened
but cannot be close. The reason is an javascript error - stack overflow
(calendar.js line 1796). If the page is refreshed then DatePicker works
propely.  
This use case worked when I was using previous version on wicket. 
How this problem can be avoided or which is the exact cause ? 
Btw, wicket  is a great stuff ! 

Regards, 
Iulian

 

-- 
View this message in context: 
http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6076494
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Alexis


Frank Silbermann wrote:
 
 
 Suppose I've built a page and later decide, in view of the DRY (Don't
 Repeat Yourself) principle that a portion of my page should be refactored
 into a custom component.  With Wicket I can move some of the page's Java
 code into my new panel class, and move HTML snippets from the page's
 associated HTML to the panel's HTML file.  This process seems not too far
 removed from Fowler's Extract Class refactoring.  To me, the ability to
 easily refactor is one advantage of having the components added and
 configured in code.
 
 To do such a refactoring in Web Objects, I am guessing that one would have
 to work with the generated tag files (a mixture of HTML and component
 configuration tags), which I doubt is practical to do by hand.  So unless
 the tool implements this kind of refactoring directly (which I doubt), you
 would create the re-usable component _from_scratch_ using the
 display-painting tool again, throwing away components that were painted
 earlier.  I fear that this wasted effort may be a disincentive against
 presentation-layer refactoring -- with the result that final designs won't
 be as tight as they could have been.  (On the other hand, if the Web
 Objects tool makes re-doing the work sufficiently easy, the waste of
 redoing work may be insignificant.)
 

How you do it with WO : WOLips (eclipse plugin) create a new component
(juste give it a name), open in WOBuilder (WYSIWYG editor for editing
simlessly both HTML template and binding file, in fact you don't have to
know there's 2 files), cut (or copy) past the part of your existing page you
want to be isolated in the new component. Define the component API with
WOBuilder.
That's it, drop it in your existings pages, set the bindings. That's why the
tools are here. (read the manuals about WObuilder if your interested)

Now another question for wicket and refactoring, how can you keep in sync
HTML file and Java code without tools ? I'm not only talking about wicket:id
attributes, but also all the component hierarchy ? If you doing big
refactoring, that's 2 files to maintain. By the way, yes HTML is difficult
to read, but i prefer reading HTML + bindings in WOBuilder where you could
see in 5 secondes the hierarchy than only Java where you have to look for
comp.add(...) all flatened.
That would be awesome if the eclipse (or netbeans) plugin could synchronize
this, that might be tricky to do but interesting.

That's also the reason why i like WO, you open a large page or component and
within 1 mins you have a good idea of his behaviour. Now with Wicket, you
must have some computer brain to understand in 1 mins what a page is doing.

Now don't get me wrong, i appreciate a lot of good stuff about wicket and
the efforts you guys are putting in it. And let's face it, WO's core
developpers are/were not doing it for free :)
-- 
View this message in context: 
http://www.nabble.com/WebObjects-open-source--tf2177391.html#a6076647
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] extension demos broken

2006-08-31 Thread Joni Freeman
Just noticed that all extension demos are broken.
http://wicket.sourceforge.net/ - Wicket extensions - demo*

Joni


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers

2006-08-31 Thread ChuckDeal


Ingram Chen wrote:
 
  As I tried more Ajax in my new project, I frequently encounter one
 feature:
 use ajax to toggle specific block of tag visible/invisible. To do this,
 one
 may use:
 

I was attempting a similar action.  Attached is my first cut of the
solution.  It is a Border that shows a row of text that can be cliked to
show/hide the body.  It is not finished, but it should work reasonably well.

http://www.nabble.com/user-files/235819/collapsableBorder.jar
collapsableBorder.jar 
-- 
View this message in context: 
http://www.nabble.com/Ajax-to-toggle-visibility-require-two-WebMarkupContainers-tf2195506.html#a6077669
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Frank Silbermann
The WOLips Eclipse plugin sounds pretty impressive!

Yes, keeping the Wicket component hierarchy in sync between the Java
file and the HTML file can be annoying.  (That's one reason I am
intrigued by the Echo2 approach -- treat HTML as machine language and
eliminate it from the application definition completely!)  My approach
for Wicket is to work in terms of panels and to keep the nesting in any
single component or page trivially simple.  (It's analogous to the
principle of keeping function/method definitions short enough to fit on
one screen.)

If you don't like the way Java flattens the component hierarchy with a
series of comp.add(...) instead of tag nesting, you can use nonstandard
indentation to show the hierarchy:

... Build components ...
 page.add(cI);
cI.add(cIA);
   cIA.add(cIA1);
   cIA.add(cIA2);
cI.add(cIB);
 page.add(cII);
cII.add(cIIA);
   cIIA.add(cIIA1);
   cIIA.add(cIIA2);
  cIIA2.add(cIIA2i);
  cIIA2.add(cIIA2ii);
cII.add(cIIB);



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexis
Sent: Thursday, August 31, 2006 5:16 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] WebObjects open source?



How you do (refactoring) with WO : WOLips (eclipse plugin) create a new
component (juste give it a name), open in WOBuilder (WYSIWYG editor for
editing simlessly both HTML template and binding file, in fact you don't
have to know there's 2 files), cut (or copy) past the part of your
existing page you want to be isolated in the new component. Define the
component API with WOBuilder.
That's it, drop it in your existings pages, set the bindings. That's why
the tools are here. (read the manuals about WObuilder if your
interested)

Now another question for wicket and refactoring, how can you keep in
sync HTML file and Java code without tools ? I'm not only talking about
wicket:id attributes, but also all the component hierarchy ? If you
doing big refactoring, that's 2 files to maintain. By the way, yes HTML
is difficult to read, but i prefer reading HTML + bindings in WOBuilder
where you could see in 5 secondes the hierarchy than only Java where you
have to look for
comp.add(...) all flatened.
That would be awesome if the eclipse (or netbeans) plugin could
synchronize this, that might be tricky to do but interesting.

That's also the reason why i like WO, you open a large page or component
and within 1 mins you have a good idea of his behaviour. Now with
Wicket, you must have some computer brain to understand in 1 mins what a
page is doing.

Now don't get me wrong, i appreciate a lot of good stuff about wicket
and the efforts you guys are putting in it. And let's face it, WO's core
developpers are/were not doing it for free :)
--
View this message in context:
http://www.nabble.com/WebObjects-open-source--tf2177391.html#a6076647
Sent from the Wicket - User forum at Nabble.com.



-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-08-31 Thread wq

HELP! HELP!



wq wrote:
 
 final CheckGroup group=new CheckGroup(group, new ArrayList());
 ...
 group.add(new CheckGroupSelector(groupselector));
 ..
 SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider();
 DefaultDataTable table = new
 DefaultDataTable(table,columns,provider,30);
 table.addTopToolbar(new FilterToolbar(table,provider));
 group.add(table);
 form.add(group);
 
  http://www.nabble.com/user-files/235815/Snap1.gif 
 
 the html file is:
 form wicket:id=form
   span wicket:id=group
   nbsp;nbsp;nbsp;input type=checkbox
 wicket:id=groupselector全选/清除/inputbr/
   table class=dataview cellspacing=0 
 wicket:id=table[table]/table
   /span
   input type=submit value=确定 /
 /form
 
 when I click the 'groupselector', the theckbox in filtertable cannot be
 checked. If the filtertoolbar is removed,all works fine.
 I suppose it is the filterform in  filtertable that  blocks the
 groupselect javascript.
 
 How can I do? very thanks!
 

-- 
View this message in context: 
http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6078904
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Set required to false on button press

2006-08-31 Thread Rüdiger Schulz
Hello everbody,

I have a nice working form with multiple FormComponents. Now our
client wants to have a preview button, where you can save a record
without entering all normally required data.

So I'm asking where to call setRequired(false) for all the form
components? The form should be submitted after that just like with the
other button, so that the data can be saved in the database.

Thanks for your attention :)

-- 
greetings from Berlin,

Rüdiger Schulz


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers

2006-08-31 Thread Ingram Chen
Wow! your code give me a big hint: there is a method: setBorderBodyVisible()With this method, it's quite simple to solve this problem!AjaxBox.java-public abstract class AjaxBox extends Border { public AjaxBox(String id) {
  super(id);  setOutputMarkupId(true);
 } @Override protected final void onAttach() {  setBorderBodyVisible(isBodyVisible()); } @Override public final boolean isVisible() {  return true; } //subclass to implement to change body visibility:
 protected abstract boolean isBodyVisible();}AjaxBox.html - nonthing :-)wicket:borderwicket:body//wicket:borderNow I can write my template as:a wicket:id=toggle toggle visiblity/a
div wicket:id=ajaxBox 
 actual content here
 a wicket:id=foo ...
 span wicket:id=bar./divwith source code:  final AjaxBox ajaxBox = new AjaxBox(ajaxBox) {   @Override   protected boolean isBodyVisible() {
return toggleStatus;  };  add(ajaxBox);  add(new AjaxLink(toggle) {
   @Override
   public void onClick(AjaxRequestTarget target) {
toggleStatus = !toggleStatus;
target.addComponent(ajaxBox);
   }
  });

The java code now is much simpler!On 8/31/06, ChuckDeal [EMAIL PROTECTED] wrote:
Ingram Chen wrote:As I tried more Ajax in my new project, I frequently encounter one feature: use ajax to toggle specific block of tag visible/invisible. To do this, one
 may use:I was attempting a similar action.Attached is my first cut of thesolution.It is a Border that shows a row of text that can be cliked toshow/hide the body.It is not finished, but it should work reasonably well.
http://www.nabble.com/user-files/235819/collapsableBorder.jarcollapsableBorder.jar--View this message in context: 
http://www.nabble.com/Ajax-to-toggle-visibility-require-two-WebMarkupContainers-tf2195506.html#a6077669Sent from the Wicket - User forum at Nabble.com.-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker problem - java script stack overflow error

2006-08-31 Thread samyem

Yup I have experienced this same problem. Hope it get addressed soon before
our QA nails us down!


Iuly wrote:
 
 Hi, 
 I've upgraded my current application to 1.2.2 wicket version. The only
 problem that occured is related to DatePicker. 
 Shortly I have the following use case :  if a panel with a DatePicker
 inside is added to the target after a ajax request, DatePicker component
 is opened but cannot be close. The reason is an javascript error - stack
 overflow (calendar.js line 1796). If the page is refreshed then DatePicker
 works propely.  
 This use case worked when I was using previous version on wicket. 
 How this problem can be avoided or which is the exact cause ? 
 Btw, wicket  is a great stuff ! 
 
 Regards, 
 Iulian
 
  
 
 

-- 
View this message in context: 
http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6080405
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebObjects open source?

2006-08-31 Thread Igor Vaynberg
not a lot of docs on that is there? here is what i infer - its a switch - that means you have to have all possibilities predefined and then at runtime choose which one to display. this is not dynamic because all choises are predefined. in wicket i can create any panel on the fly and swap it in for any other panel - in fact i can build my entire application with a single page and just switch certain parts of it out.
-IgorOn 8/31/06, Anders Peterson [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote: but this is for me where the problem is - if your components are delcared declaratively then you cannot have dynamic page structures. eg switching panels around, moving panels. this was one of the reasons i
 switched away from tapestry.Like this?http://developer.apple.com/documentation/WebObjects/Reference/DynamicElements/WOSwitchComponent/chapter_34_section_1.html
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Set required to false on button press

2006-08-31 Thread Johan Compagner
that preview button should set the:setDefaultFormProcessing(boolean defaultFormProcessing)to false. So that no default processing is done (validation)johanOn 8/31/06, 
Rüdiger Schulz [EMAIL PROTECTED] wrote:
Hello everbody,I have a nice working form with multiple FormComponents. Now ourclient wants to have a preview button, where you can save a recordwithout entering all normally required data.
So I'm asking where to call setRequired(false) for all the formcomponents? The form should be submitted after that just like with theother button, so that the data can be saved in the database.Thanks for your attention :)
--greetings from Berlin,Rüdiger Schulz-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-08-31 Thread Igor Vaynberg
filter toolbar was not meant to be embedded in another form because it uses a form of its own, so for right now i would say that usecase is not supported. please add an rfe for it.if you want one right now then you have to create your own variant that doesnt use an embedded form. it would be pretty much a copy and paste job of the current toolbar but w/out the form.
-IgorOn 8/31/06, wq [EMAIL PROTECTED] wrote:
HELP! HELP!wq wrote: final CheckGroup group=new CheckGroup(group, new ArrayList()); ... group.add(new CheckGroupSelector(groupselector)); ..
 SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider(); DefaultDataTable table = new DefaultDataTable(table,columns,provider,30); table.addTopToolbar(new FilterToolbar(table,provider));
 group.add(table); form.add(group);http://www.nabble.com/user-files/235815/Snap1.gif the html file is: form wicket:id=form
 span wicket:id=group nbsp;nbsp;nbsp;input type=checkbox wicket:id=groupselector全选/清除/inputbr/ table class=dataview cellspacing=0 wicket:id=table[table]/table
 /span input type=submit value=确定 / /form when I click the 'groupselector', the theckbox in filtertable cannot be checked. If the filtertoolbar is removed,all works fine.
 I suppose it is the filterform infiltertable thatblocks the groupselect _javascript_. How can I do? very thanks!--View this message in context: 
http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6078904Sent from the Wicket - User forum at Nabble.com.-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Set required to false on button press

2006-08-31 Thread Igor Vaynberg
try thisinstead of calling setrequired, override isRequired() to return false based on some varthen make preview button .setdefaultformprocessing(false)and in onsubmit call form.process() yourself-Igor
On 8/31/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
Hello everbody,I have a nice working form with multiple FormComponents. Now ourclient wants to have a preview button, where you can save a recordwithout entering all normally required data.
So I'm asking where to call setRequired(false) for all the formcomponents? The form should be submitted after that just like with theother button, so that the data can be saved in the database.Thanks for your attention :)
--greetings from Berlin,Rüdiger Schulz-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
If I were to create that component, I probably would not extend from
CheckBox as both the model is semantically different and the rendering
is done a different way. Instead, I would extend FormComponent
directly. I also would not choose for a model that has
true/false/null, which would imo be no less than a hack.

I think I would go for having a model with values none/all/some (enum)
to represent what you're actually modelling, and I'd use an element
with three images that when clicked uses Javascript to do an ajax call
(if you can use ajax) and replaces the image with another.

Eelco

On 8/31/06, Alex Objelean [EMAIL PROTECTED] wrote:

 I am glad that so many people start to debate in this topic. First of all I
 need to explain my usecase:

 it is indeed about a tree... I have a tree containing Roles (hierarchical
 structure). There is a screen in which the user must select the Roles which
 he want to assign to a user.
The logic is simple: if you check a node - the checked Role is added to
 the list of selected Roles, otherwise it is removed from the list. At the
 same time, if you check a child - all the ancestors changes theirs state to
 intermediate (if their current state is unchecked, otherwise it doesn't
 change it's state). The intermediate state has the same meaning as unchecked
 state (its only purpose is to visually inform user about the implicit Roles
 are assigned to the list of selected Roles).
This kind of usecase is not singular. I am sure it would be very usefull
 in many more situations, depending on applications needs.
Why I thought it would be a good ideea to extend the Checkbox
 FormComponent, is because it has almost the same functionality excepting the
 existence of the intermediate state. The model object in this case should be
 a Boolean object, holding the following values : [null, true, false] (the
 same ideea was posted by someone earlier)...
Another problem which must be taken in consideration is if the change of
 state of this component should cause the form submition or not (see the Igor
 and Korbinian Bachl posts)... The way I thought to use it in my use case was
 pro submiting the form  updating the whole tree, but Igor is right - this
 involves a lot of data being sent to the server, which for a large tree
 structure can become unacceptable... I think, there can be different
 approaches (each having its pros and cons)... Anyway, if you have any
 thougths regarding the way this component can be implemented - they are
 welcome and thank you all for your posts!






 Eelco Hillenius wrote:
 
  That's an interesting Widget! How would it work on the server side
  though... what kind of model would it need.
 
  I'd be interested to hear about how you plan to use it. It seems this
  is a component you'd always use with a tree, correct? If so it would
  just be a matter of letting the tree render the proper node images.
 
  Eelco
 
 
  Maybe I was not clear enough in my specification. If I would not say that
  I
  need a tri-state checkbox, but a formComponent which looks like checkbox
  (see here:
  http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Tri-state_Checkbox.htm)
  would it make sense? At the end, it is a component like any other
  component
  and it has nothing to do with the w3c.org specification...
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6074389
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

Re: [Wicket-user] Error: too much recursion for Date Widget

2006-08-31 Thread Eelco Hillenius
I'm trying to reproduce it, but so far without luck. What I did was
add a datepicker to the ajax tabs example... but whatever I do, I
can't get it to stall. Also, what's strange about your case is that
you shouldn't see any ajax header contribution; that is done
dynamically and thus should never show up as actual page source.

Can you tell us more about the context you're using it? I can see from
the source that you're using modal window - a very new component that
might have some unforseen issues.

Eelco



On 8/30/06, samyem [EMAIL PROTECTED] wrote:
  I keep getting this error on the Date Picker: Error: too much recursion
 Source File:
 http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
 Line: 1796 See my source code for the HTML generated in my browser:
 problem.txt I can see that the calendar.js is included several times,
 probably each one for every time I ajax-refresh the panel with the date
 picker. Also, there is a big mess generated in the HTML with tons of nbsp;
 . Is this my fault or something wrong with wicket? I am using the latest
 wicket from SVN.
 
  View this message in context: Error: too much recursion for Date Widget
  Sent from the Wicket - User forum at Nabble.com.

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker problem - java script stack overflow error

2006-08-31 Thread Eelco Hillenius
I was trying to reproduce it by placing a datepicker on an ajax tab of
the ajax tabs example. But that works just fine and I can't get it to
stall.

I replied on another thread earlier. Would you mind describing which
components you use/ what your context is in that thread?

Eelco

On 8/31/06, Iuly [EMAIL PROTECTED] wrote:

 Hi,
 I've upgraded my current application to 1.2.2 wicket version. The only
 problem that occured is related to DatePicker.
 Shortly I have the following use case :  if a panel with a DatePicker inside
 is added to the target after a ajax request, DatePicker component is opened
 but cannot be close. The reason is an javascript error - stack overflow
 (calendar.js line 1796). If the page is refreshed then DatePicker works
 propely.
 This use case worked when I was using previous version on wicket.
 How this problem can be avoided or which is the exact cause ?
 Btw, wicket  is a great stuff !

 Regards,
 Iulian



 --
 View this message in context: 
 http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6076494
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Error: too much recursion for Date Widget

2006-08-31 Thread samyem

The modal windows are our own implementation as we had it since before wicket
had support of modal windows. We are thinking of porting to the new modal
that wicket has once we get some time.


Eelco Hillenius wrote:
 
 I'm trying to reproduce it, but so far without luck. What I did was
 add a datepicker to the ajax tabs example... but whatever I do, I
 can't get it to stall. Also, what's strange about your case is that
 you shouldn't see any ajax header contribution; that is done
 dynamically and thus should never show up as actual page source.
 
 Can you tell us more about the context you're using it? I can see from
 the source that you're using modal window - a very new component that
 might have some unforseen issues.
 
 Eelco
 
 
 
 On 8/30/06, samyem [EMAIL PROTECTED] wrote:
  I keep getting this error on the Date Picker: Error: too much recursion
 Source File:
 http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
 Line: 1796 See my source code for the HTML generated in my browser:
 problem.txt I can see that the calendar.js is included several times,
 probably each one for every time I ajax-refresh the panel with the date
 picker. Also, there is a big mess generated in the HTML with tons of
 nbsp;
 . Is this my fault or something wrong with wicket? I am using the latest
 wicket from SVN.
 
  View this message in context: Error: too much recursion for Date Widget
  Sent from the Wicket - User forum at Nabble.com.

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-too-much-recursion-for-Date-Widget-tf2191447.html#a6084535
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Johan Compagner
you don't have to use ajax or somethingthe click can just be a img src tag replace You do need a hidden field and update what value is set on the backend the component should have a renderer something like the IChoiceRenderer
where you map the 3 states to your real object that you want in a modelwhat ever that is.johanOn 8/31/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:If I were to create that component, I probably would not extend from
CheckBox as both the model is semantically different and the renderingis done a different way. Instead, I would extend FormComponentdirectly. I also would not choose for a model that hastrue/false/null, which would imo be no less than a hack.
I think I would go for having a model with values none/all/some (enum)to represent what you're actually modelling, and I'd use an elementwith three images that when clicked uses _javascript_ to do an ajax call
(if you can use ajax) and replaces the image with another.EelcoOn 8/31/06, Alex Objelean [EMAIL PROTECTED] wrote: I am glad that so many people start to debate in this topic. First of all I
 need to explain my usecase: it is indeed about a tree... I have a tree containing Roles (hierarchical structure). There is a screen in which the user must select the Roles which he want to assign to a user.
The logic is simple: if you check a node - the checked Role is added to the list of selected Roles, otherwise it is removed from the list. At the same time, if you check a child - all the ancestors changes theirs state to
 intermediate (if their current state is unchecked, otherwise it doesn't change it's state). The intermediate state has the same meaning as unchecked state (its only purpose is to visually inform user about the implicit Roles
 are assigned to the list of selected Roles).This kind of usecase is not singular. I am sure it would be very usefull in many more situations, depending on applications needs.Why I thought it would be a good ideea to extend the Checkbox
 FormComponent, is because it has almost the same functionality excepting the existence of the intermediate state. The model object in this case should be a Boolean object, holding the following values : [null, true, false] (the
 same ideea was posted by someone earlier)...Another problem which must be taken in consideration is if the change of state of this component should cause the form submition or not (see the Igor
 and Korbinian Bachl posts)... The way I thought to use it in my use case was pro submiting the form  updating the whole tree, but Igor is right - this involves a lot of data being sent to the server, which for a large tree
 structure can become unacceptable... I think, there can be different approaches (each having its pros and cons)... Anyway, if you have any thougths regarding the way this component can be implemented - they are
 welcome and thank you all for your posts! Eelco Hillenius wrote:   That's an interesting Widget! How would it work on the server side
  though... what kind of model would it need.   I'd be interested to hear about how you plan to use it. It seems this  is a component you'd always use with a tree, correct? If so it would
  just be a matter of letting the tree render the proper node images.   EelcoMaybe I was not clear enough in my specification. If I would not say that
  I  need a tri-state checkbox, but a formComponent which looks like checkbox  (see here:  
http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Tri-state_Checkbox.htm)  would it make sense? At the end, it is a component like any other  component  and it has nothing to do with the 
w3c.org specification...   -  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job  easier  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642  ___  Wicket-user mailing list  
Wicket-user@lists.sourceforge.net  https://lists.sourceforge.net/lists/listinfo/wicket-user   --
 View this message in context: http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6074389 Sent from the Wicket - User forum at 
Nabble.com. - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-
Using Tomcat but need to do more? Need to support web 

Re: [Wicket-user] Error: too much recursion for Date Widget

2006-08-31 Thread Eelco Hillenius
Do you think the problem might be related to that modal window? What
is the simplest case you can get the problem reproducible?

Eelco


On 8/31/06, samyem [EMAIL PROTECTED] wrote:

 The modal windows are our own implementation as we had it since before wicket
 had support of modal windows. We are thinking of porting to the new modal
 that wicket has once we get some time.


 Eelco Hillenius wrote:
 
  I'm trying to reproduce it, but so far without luck. What I did was
  add a datepicker to the ajax tabs example... but whatever I do, I
  can't get it to stall. Also, what's strange about your case is that
  you shouldn't see any ajax header contribution; that is done
  dynamically and thus should never show up as actual page source.
 
  Can you tell us more about the context you're using it? I can see from
  the source that you're using modal window - a very new component that
  might have some unforseen issues.
 
  Eelco
 
 
 
  On 8/30/06, samyem [EMAIL PROTECTED] wrote:
   I keep getting this error on the Date Picker: Error: too much recursion
  Source File:
  http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
  Line: 1796 See my source code for the HTML generated in my browser:
  problem.txt I can see that the calendar.js is included several times,
  probably each one for every time I ajax-refresh the panel with the date
  picker. Also, there is a big mess generated in the HTML with tons of
  nbsp;
  . Is this my fault or something wrong with wicket? I am using the latest
  wicket from SVN.
  
   View this message in context: Error: too much recursion for Date Widget
   Sent from the Wicket - User forum at Nabble.com.
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/Error%3A-too-much-recursion-for-Date-Widget-tf2191447.html#a6084535
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
On 8/31/06, Johan Compagner [EMAIL PROTECTED] wrote:
 you don't have to use ajax or something
 the click can just be a img src tag replace

Technically, you don't have to, but as this typically is tree
functionality, it is wise - imho - to do so. Furthermore, on a click
you should update, as this not only effects that one node in the tree,
but also it's children.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Johan Compagner
i dont think it is typically a tree functionality i would use such a componentfar most often in another area. Especially required checkboxes..I would like such a more general component (core or extentions)
johanOn 8/31/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
On 8/31/06, Johan Compagner [EMAIL PROTECTED] wrote: you don't have to use ajax or something the click can just be a img src tag replaceTechnically, you don't have to, but as this typically is tree
functionality, it is wise - imho - to do so. Furthermore, on a clickyou should update, as this not only effects that one node in the tree,but also it's children.Eelco-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
 I would like such a more general component (core or extentions)

I'm looking forward to whatever you come up with :)

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread JasonB
Alex Objelean wrote:
The logic is simple: if you check a node - the checked Role is added to
 the list of selected Roles, otherwise it is removed from the list. At the
 same time, if you check a child - all the ancestors changes theirs state to
 intermediate (if their current state is unchecked, otherwise it doesn't
 change it's state). The intermediate state has the same meaning as unchecked
 state (its only purpose is to visually inform user about the implicit Roles
 are assigned to the list of selected Roles). 
It sounds to me like the model (data) is that of a standard checkbox, 
True or False. The intermediate state is only a visual cue for the user 
to represent a 'True' value higher up the hierarchic.

If this is the case, why don't you use standard HTML Checkbox components 
and use javascript to 'color', 'shade' or otherwise 'mark' the ancestors 
of a checked parent?

- Jason B.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker problem - java script stack overflow error

2006-08-31 Thread Iuly

Thanks for the reply. 
I will detail below the ajax context and also component hierarchy involved. 
So in my page I have a main container which extends Border component. I’ve
set on this container
setOutputMarkupId(true). Let’s name this container A. 
Panel(extends Panel component) that contains DatePicker component is child
of A.
This child defines a form component that has 2 DatePicker components inside
and associated inputs and also other inputs. Let’s name the child of border
container B. 
I’ve called also on form on B setOutputMarkupId(true). 

First time when the page is rendered all inputs from B are disabled(using
AttributeModifier) and both DatePicker components work properly. 
I have also a AjaxSubmitButton that enables all the inputs from B. 
Clicking on it inputs became enabled (I am using here AttributeModifier),
but both 
DatePicker component generate that java script error. 
What I’m doing in onSubmit method of that AjaxSubmitButton is the following
: 
target.addComponent(A);

As I told you this worked on the previous version of wicket. 


Regards, 
Iulian




Eelco Hillenius wrote:
 
 I was trying to reproduce it by placing a datepicker on an ajax tab of
 the ajax tabs example. But that works just fine and I can't get it to
 stall.
 
 I replied on another thread earlier. Would you mind describing which
 components you use/ what your context is in that thread?
 
 Eelco
 
 On 8/31/06, Iuly [EMAIL PROTECTED] wrote:

 Hi,
 I've upgraded my current application to 1.2.2 wicket version. The only
 problem that occured is related to DatePicker.
 Shortly I have the following use case :  if a panel with a DatePicker
 inside
 is added to the target after a ajax request, DatePicker component is
 opened
 but cannot be close. The reason is an javascript error - stack overflow
 (calendar.js line 1796). If the page is refreshed then DatePicker works
 propely.
 This use case worked when I was using previous version on wicket.
 How this problem can be avoided or which is the exact cause ?
 Btw, wicket  is a great stuff !

 Regards,
 Iulian



 --
 View this message in context:
 http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6076494
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6087102
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Error: too much recursion for Date Widget

2006-08-31 Thread Iuly

I've repoduced also this java script error in the following context : 
Here is the ajax context and also component hierarchy involved. 
So in my page I have a main container which extends Border component. I’ve
set on this container 
setOutputMarkupId(true). Let’s name this container A. 
Panel(extends Panel component) that contains DatePicker component is child
of A. 
This child defines a form component that has 2 DatePicker components inside
and associated inputs and also other inputs. Let’s name the child of border
container B. 
I’ve called also on form on B setOutputMarkupId(true). 

First time when the page is rendered all inputs from B are disabled(using
AttributeModifier) and both DatePicker components work properly. 
I have also a AjaxSubmitButton that enables all the inputs from B. 
Clicking on it inputs became enabled (I am using here AttributeModifier),
but both 
DatePicker components generate that java script error. 
What I’m doing in onSubmit method of that AjaxSubmitButton is the following
: 
target.addComponent(A); 


samyem wrote:
 
 I keep getting this error on the Date Picker:
 
 Error: too much recursion
 Source File:
 http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
 Line: 1796
 
 See my source code for the HTML generated in my browser:
  http://www.nabble.com/user-files/235808/problem.txt problem.txt 
 
 I can see that the calendar.js is included several times, probably each
 one for every time I ajax-refresh the panel with the date picker. Also,
 there is a big mess generated in the HTML with tons of amp;nbsp; . Is
 this my fault or something wrong with wicket? I am using the latest wicket
 from SVN.
 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-too-much-recursion-for-Date-Widget-tf2191447.html#a6087296
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HeaderContributor on page works for one request only? (1.2.2)

2006-08-31 Thread Jerry Smith
HeaderContributor.forCss(Class c, String path) is NOT working for me in
1.2.2 after the first request to a page.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of landtuna
 Sent: Tuesday, August 29, 2006 4:14 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] HeaderContributor on page works for one
request
 only? (1.2.2)
 
 
 I said:
  Nathan Hamblen-2 said:
  Can anyone confirm if header contributors to pages are working
 properly?
 
  This works for me.  I'm using a StringHeaderContributor that is
added in
  each constructor of the page.
 
 I take that back.  It worked in 1.2.1, but it's broken in 1.2.2.
 --
 Jim Hunziker
 
 --
 View this message in context:
http://www.nabble.com/HeaderContributor-on-
 page-works-for-one-request-only--%281.2.2%29-tf2186030.html#a6047857
 Sent from the Wicket - User forum at Nabble.com.
 
 


-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker problem - java script stack overflow error

2006-08-31 Thread Eelco Hillenius
Would you mind sharing some of that code? And open up a bug report
please? It probably has to do with last week's refactorings of header
contributions. Sorry it broke your app, you're probably best off
rolling back to 1.2.1 until we fix this.

Thanks,

Eelco


On 8/31/06, Iuly [EMAIL PROTECTED] wrote:

 Thanks for the reply.
 I will detail below the ajax context and also component hierarchy involved.
 So in my page I have a main container which extends Border component. I've
 set on this container
 setOutputMarkupId(true). Let's name this container A.
 Panel(extends Panel component) that contains DatePicker component is child
 of A.
 This child defines a form component that has 2 DatePicker components inside
 and associated inputs and also other inputs. Let's name the child of border
 container B.
 I've called also on form on B setOutputMarkupId(true).

 First time when the page is rendered all inputs from B are disabled(using
 AttributeModifier) and both DatePicker components work properly.
 I have also a AjaxSubmitButton that enables all the inputs from B.
 Clicking on it inputs became enabled (I am using here AttributeModifier),
 but both
 DatePicker component generate that java script error.
 What I'm doing in onSubmit method of that AjaxSubmitButton is the following
 :
 target.addComponent(A);

 As I told you this worked on the previous version of wicket.


 Regards,
 Iulian




 Eelco Hillenius wrote:
 
  I was trying to reproduce it by placing a datepicker on an ajax tab of
  the ajax tabs example. But that works just fine and I can't get it to
  stall.
 
  I replied on another thread earlier. Would you mind describing which
  components you use/ what your context is in that thread?
 
  Eelco
 
  On 8/31/06, Iuly [EMAIL PROTECTED] wrote:
 
  Hi,
  I've upgraded my current application to 1.2.2 wicket version. The only
  problem that occured is related to DatePicker.
  Shortly I have the following use case :  if a panel with a DatePicker
  inside
  is added to the target after a ajax request, DatePicker component is
  opened
  but cannot be close. The reason is an javascript error - stack overflow
  (calendar.js line 1796). If the page is refreshed then DatePicker works
  propely.
  This use case worked when I was using previous version on wicket.
  How this problem can be avoided or which is the exact cause ?
  Btw, wicket  is a great stuff !
 
  Regards,
  Iulian
 
 
 
  --
  View this message in context:
  http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6076494
  Sent from the Wicket - User forum at Nabble.com.
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6087102
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net