Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-08-10 Thread Alex Objelean

You mean that in IE you have to click twice?
Use onclick event instead...



jq58 wrote:
 
 This works to an extent.  It appears that sometimes (totally random as far
 as I can tell) I have to click twice to get it to actually invoke the ajax
 action.
 
 But, once it is invoked, I am trying to enable the drop down and disable
 the text box via: 
 [code]
   private void setupAjaxRadio(final Panel panel, 
   final RadioGroup radioGroup, 
   final Radio radio) { 
 radioGroup.add(radio.add(new AjaxEventBehavior(onchange) { 
 
   private static final long serialVersionUID = 1L;
   protected void onEvent(AjaxRequestTarget target) { 
   radioGroup.processInput(); 
   if
 (radioGroup.getConvertedInput().equals(Component.getApplyToRadioGroupChoices().get(Component.AMOUNT_TYPE_GLOBAL))
 ) {
   radioGroup.get(percentGFId).setEnabled(true);
   radioGroup.get(amount).setEnabled(false);
   } else {
   radioGroup.get(percentGFId).setEnabled(false);
   radioGroup.get(amount).setEnabled(true);
   }
   target.addComponent(panel); 
   } 
 [/code]
 
 However, the enabling and disabling of the controls under the radio group
 are being ignored.
 Any idea why?
 
 Thanks.
 
 Kent Tong wrote:
 
 Alex Objelean alexandru.objelean at isdc.ro writes:
 
 Thank you Jan! Sad thing is that 1.2.x branch will never support this
 feature.
 
 Try:
 
 Form f = ...;
 RadioGroup rg2 = new RadioGroup(rg2, ...);
 rg2.setOutputMarkupId(true);
 setupAjaxRadio(f, rg2, new Radio(r3, new Model(abc)));
 setupAjaxRadio(f, rg2, new Radio(r4, new Model(def)));
 ...
 
   private void setupAjaxRadio(final Form form, 
   final RadioGroup radioGroup,
   final Radio radio) {
 radioGroup.add(radio.add(new AjaxEventBehavior(onchange) {
   protected void onEvent(AjaxRequestTarget target) {
 radioGroup.processInput();
 target.addComponent(form);
   }
   protected CharSequence getEventHandler() {
 return getCallbackScript(new AppendingStringBuffer(
 wicketAjaxPost(').append(getCallbackUrl()).append(
 ', wicketSerialize(document.getElementById('
 + radio.getMarkupId() + '))), null, null);
   }
 
 }));
   }
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Question--wicket.markup.html.form.Radio-tf3926549.html#a12086224
Sent from the Wicket - User (OLD) mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Random ModalWindow exception

2007-07-18 Thread Alex Objelean

I have a strange issue when using ModalWindow in my application. Sometimes
(randomly), I got the following error in ajax-debug window:

[MESSAGE]

INFO: Response parsed. Now invoking steps...
ERROR: Exception evaluating javascript: TypeError: Wicket.Window has no
properties

[/MESSAGE]

The reason, seems to be the fact that the modal.js is not always included. I
didn't manage to find out why this is happening. Can anybody help me?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/Random-ModalWindow-exception-tf4102507.html#a11666379
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Random ModalWindow exception

2007-07-18 Thread Alex Objelean

I am using wicket-1.2.6.

Here is a short background description of the problem:

I have a page, which contains an AjaxTabbedPanel. The panel contains div
wicket:id=modalWindow/div markup to hold the ModalWindow component. 

I think that the modal.js is included (at least for its first call), but
have problems when the ajaxTabbedPanel is updated via ajax.

Any thoughts?

Thank you,
Alex.


Matej Knopp-2 wrote:
 
 What wicket version are you using?
 
 -Matej
 
 On 7/18/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I have a strange issue when using ModalWindow in my application.
 Sometimes
 (randomly), I got the following error in ajax-debug window:

 [MESSAGE]

 INFO: Response parsed. Now invoking steps...
 ERROR: Exception evaluating javascript: TypeError: Wicket.Window has no
 properties

 [/MESSAGE]

 The reason, seems to be the fact that the modal.js is not always
 included. I
 didn't manage to find out why this is happening. Can anybody help me?

 Thank you!
 --
 View this message in context:
 http://www.nabble.com/Random-ModalWindow-exception-tf4102507.html#a11666379
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Random-ModalWindow-exception-tf4102507.html#a11666954
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dataview with scrollbar?

2007-07-09 Thread Alex Objelean

There is no such out of the box component that will do exactly what you need.
Wicket give you the flexibility to create whatever you need. You just apply
your knowledge of html  css (for visual presentation) and can achieve your
goal. 

Using Wicket, you can dynamically load content from anywhere you need (just
look for examples in wiki or mailing list). The scrollable fixed size box
can be created as a div markup container with the following styling:
width: 200px; height: 200px;overflow:auto;. The selection effect, can be
emulated using behaviors (examples can also be found on the wiki or on any
other wicket resources):






verbal evasion wrote:
 
 i dont know if this is possible in wicket, but i am trying to find
 something
 like a dataview that will dynamically load content and place it in some
 sort
 of box that is a fixed size. if there are more items than the box will
 hold,
 then a scrollbar appears. i would also like to be able to select each item
 and register that as something. this is all over the web, but i cant find
 anything in wicket that emulates that behavior. it could be that i'm also
 not looking hard enough. any help would be greatly appreciated.
 
 thanks,
 
 verbal
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/dataview-with-scrollbar--tf4047296.html#a11496652
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckBox and final method onComponentTag

2007-07-03 Thread Alex Objelean

Use AttributeAppender behavior instead..


kubino wrote:
 
 Hi. We are trying to put some own javascript code in the onClick method of
 the checkbox component. Unfortunately we need also the wicket code which
 is generated in onComponentTag method when onSelectionChangeNotifications
 is true.  So I need to execute my javascript code before the wicket's. I
 can do this easily with Radio component, becouse it doesnt have
 onComponentTag final. 
 
 
 E.g.
 
  @Override
   protected void onComponentTag(ComponentTag tag) {
 super.onComponentTag(tag);
 
 CharSequence myScripts = new
 AppendingStringBuffer(setPageLocationByFormID('+ formId +');if
 (!wasClicked('+ formId + ')) {+
 tag.getString(onclick) +});
 
 tag.put(onclick, myScripts);
   }
 
 Any suggestions?  
 Thanks in advance.
 
 K
 

-- 
View this message in context: 
http://www.nabble.com/CheckBox-and-final-method-onComponentTag-tf4017607.html#a11410283
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckBox and final method onComponentTag

2007-07-03 Thread Alex Objelean

Sorry, for quickdirty response :)...

You can add AjaxEventBehavior to your checkbox and override
getAjaxCallDecorator() method, thus decorating the wicket onclick script
with your own script.




Alex Objelean wrote:
 
 Use AttributeAppender behavior instead..
 
 
 kubino wrote:
 
 Hi. We are trying to put some own javascript code in the onClick method
 of the checkbox component. Unfortunately we need also the wicket code
 which is generated in onComponentTag method when
 onSelectionChangeNotifications is true.  So I need to execute my
 javascript code before the wicket's. I can do this easily with Radio
 component, becouse it doesnt have onComponentTag final. 
 
 
 E.g.
 
  @Override
   protected void onComponentTag(ComponentTag tag) {
 super.onComponentTag(tag);
 
 CharSequence myScripts = new
 AppendingStringBuffer(setPageLocationByFormID('+ formId +');if
 (!wasClicked('+ formId + ')) {+
 tag.getString(onclick) +});
 
 tag.put(onclick, myScripts);
   }
 
 Any suggestions?  
 Thanks in advance.
 
 K
 
 
 

-- 
View this message in context: 
http://www.nabble.com/CheckBox-and-final-method-onComponentTag-tf4017607.html#a11410336
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] add class onlclick

2007-07-03 Thread Alex Objelean

First of all you must setOutputMarkupId to true for the text component:
text.setOutputMarkupId(true);

Also, you are modifying the id attribute, and not the css... this is also a
problem
so instead of:
text.add(new SimpleAttributeModifier(id,test));
do this:
text.add(new SimpleAttributeModifier(class,mySuperClass));




yuccaplant wrote:
 
 If some link is clicked, I want to change the css-class of a label like
 this:
 
 // text
 final Label text = new Label(text, resourceRecord.getText());
 add(text)
 
 // edit link
 add(new AjaxFallbackLink(edit-link){
 @Override
 public void onClick(AjaxRequestTarget target) {
 // dome some other stuff
 text.add(new SimpleAttributeModifier(id,test));
 if (target != null) {
 // add some other components
 target.addComponent(text);
 }
 }
 
 });
 
 
 Somehow this doesn't work. I guess I simply missed something?
 
 thanks,
 
 Pieter
 
 -- 
 Pieter Cogghe
 Ganzendries 186
 9000 Gent
 0487 10 14 21
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/add-class-onlclick-tf4017981.html#a11411738
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] add class onlclick

2007-07-03 Thread Alex Objelean

You forgot again to call text.setOutputMarkupId(true);
This is an important method to make components ajax aware..


yuccaplant wrote:
 
 I just tried to modify the id to see if the worked, I'm sorry for the
 confusion.
 
 @Nino
 I think you might be right, but I couldn't get it to work. (I changed it
 to
 modifying the style attribute, just to quick test visually.)
 
 My modified code:
 
 // text
 final Label text = new Label(text, resourceRecord.getText());
 final Model textClassModel = new Model(color: red;);
 final AttributeModifier textClass = new AttributeModifier(style, true,
 textClassModel);
 text.add(textClass);
 add(text);
 
 //(...)
 
 // edit link
 add(new AjaxFallbackLink(edit-link){
 @Override
 public void onClick(AjaxRequestTarget target) {
 //(...)
 textClassModel.setObject(color: blue;);
 
 if (target != null) {
 // (...)
 target.addComponent(text);
 }
 }
 
 });
 
 2007/7/3, Alex Objelean [EMAIL PROTECTED]:


 First of all you must setOutputMarkupId to true for the text component:
 text.setOutputMarkupId(true);

 Also, you are modifying the id attribute, and not the css... this is also
 a
 problem
 so instead of:
 text.add(new SimpleAttributeModifier(id,test));
 do this:
 text.add(new SimpleAttributeModifier(class,mySuperClass));




 yuccaplant wrote:
 
  If some link is clicked, I want to change the css-class of a label like
  this:
 
  // text
  final Label text = new Label(text, resourceRecord.getText());
  add(text)
 
  // edit link
  add(new AjaxFallbackLink(edit-link){
  @Override
  public void onClick(AjaxRequestTarget target) {
  // dome some other stuff
  text.add(new SimpleAttributeModifier(id,test));
  if (target != null) {
  // add some other components
  target.addComponent(text);
  }
  }
 
  });
 
 
  Somehow this doesn't work. I guess I simply missed something?
 
  thanks,
 
  Pieter
 
  --
  Pieter Cogghe
  Ganzendries 186
  9000 Gent
  0487 10 14 21
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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/add-class-onlclick-tf4017981.html#a11411738
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
 
 -- 
 Pieter Cogghe
 Ganzendries 186
 9000 Gent
 0487 10 14 21
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/add-class-onlclick-tf4017981.html#a11413172
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Automatic repaint of component?

2007-06-26 Thread Alex Objelean

Igor, can you give a more elaborate example? I'm interested in such a
solution with a model that has listeners. 

Thank you!


igor.vaynberg wrote:
 
 you can build a model that has listeners and a notify() method when
 setobject() is called. then inside the listener you can do
 
 { if (getRequestCycle().getRequestTarget() instanceof AjaxRequestTarget) {
 AjaxRequestTarget t=...; t.add(panela); }
 
 -igor
 
 
 On 6/25/07, Thies Edeling [EMAIL PROTECTED] wrote:

 Hi,

 Say I have panel A and panel B each basing their output on the same
 model. When panel B updates the model through an ajax request, is it
 possible to have panel A refresh automatically without explicitly adding
 it to an AjaxRequestTarget ?

 gr,
 Thies




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Automatic-repaint-of-component--tf3978849.html#a11300877
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RadioGroup and AjaxFormComponentUpdatingBehavior

2007-06-21 Thread Alex Objelean

There is another approach, see 
http://www.nabble.com/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11135460
here 

JulianS wrote:
 
 
 I've created a solution that works for me. See 
 http://blogstoyevskys-javajourney.blogspot.com/2007/06/ajax-enabled-radio-group-for-wicket-12x.html
 this post .
 
 Julian
 
 JulianS wrote:
 
 Martijn, 
 
 Was this ever fixed for 1.2.x? The link below gives the error Only Group
 Members Can View Private ArtifactTypes.
 
 Thanks,
 Julian
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RadioGroup-and-AjaxFormComponentUpdatingBehavior-tf1789105.html#a11227416
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-17 Thread Alex Objelean


Thank you Tong, interesting approach. 
  I make it work for me by adding AjaxFormSubmitingBehavior to the Radio
component, just to keep in synch the model with the RadioGroup state. But
your solution is more elegant.


Kent Tong wrote:
 
 Alex Objelean alexandru.objelean at isdc.ro writes:
 
 Thank you Jan! Sad thing is that 1.2.x branch will never support this
 feature.
 
 Try:
 
 Form f = ...;
 RadioGroup rg2 = new RadioGroup(rg2, ...);
 rg2.setOutputMarkupId(true);
 setupAjaxRadio(f, rg2, new Radio(r3, new Model(abc)));
 setupAjaxRadio(f, rg2, new Radio(r4, new Model(def)));
 ...
 
   private void setupAjaxRadio(final Form form, 
   final RadioGroup radioGroup,
   final Radio radio) {
 radioGroup.add(radio.add(new AjaxEventBehavior(onchange) {
   protected void onEvent(AjaxRequestTarget target) {
 radioGroup.processInput();
 target.addComponent(form);
   }
   protected CharSequence getEventHandler() {
 return getCallbackScript(new AppendingStringBuffer(
 wicketAjaxPost(').append(getCallbackUrl()).append(
 ', wicketSerialize(document.getElementById('
 + radio.getMarkupId() + '))), null, null);
   }
 
 }));
   }
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11161363
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-15 Thread Alex Objelean

I recommend you to use wicket-1.2.6. This version is better and have some
useful fixes, including ajax related. Regarding the transparency issue, I
recommend to use the  http://malsup.com/jquery/block/ jquery.block plugin ,
or at least take it as an example for your own js implementation. I have my
own light version of this plugin.. 


Seldon, Richard wrote:
 
 
 Sure Alex, what i meant was that in order to get IFRAME to be transparent
 i
 tried a combination of setting allowtransparency=true as an attribute on
 the IFRAME element and then in css class definition for the IFRAME put in:
 filter:progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0);
 Alpha
 handles opacity allowing effectively transparency for the underlying page
 content (didn't work with select form component though). 
 
 Note IE worked for textfields (input type=text) html form components
 with
 these settings. it was the select that failed. Below is an example snippet
 code with z-indexes to illustrate this point. the z-index  is a constant
 in
 the example:
 
 HTML
 HEAD
 TITLEZ-Index/TITLE
 script
 function setindex()
 {
   div1.style.zIndex=text1.value;
   select1.style.zIndex=text2.value;
   getindexes();
 }
 
 function getindexes(){
 
   text1.value=div1.style.zIndex;
   text2.value=select1.style.zIndex;
   text3.value=5;
 }
 /script
 /HEAD
 BODY onload=getindexes()
 
 Div
 input type=text value= id=text1 name=text1 p
 
 Select
 input type=text value= id=text2 name=text2p
 
 IFrame
 input type=text value= id=text3 name=text3p
 input type=button value=Set Z-Index id=button1 name=button1
 onclick=setindex()
 DIV id=div1 name=div1
 style=width:200;height:200;background-color:lightblue;
 position:absolute;left:350;top:250;z-index:DIV/DIV
 select id=select1 name=select1
 style=;position:absolute;left:300;top:400;width=500;z-index: 
 size=1 
   optionOption1
   optionOption2
   optionOption3
 /select
 IFRAME id=iframe1 name=iframe1 src= scroll=none
 style=width:100;height:115;position:absolute;
 left:400;top:300;border-color:green;z-index:5;/iframe
 /BODY
 /HTML
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Alex
 Objelean
 Sent: 14 June 2007 20:43
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] AJAX causing UI state corruption
 
 
 
 Can you explain what do you mean by  but iframe transparency issues 
 meant
 access to underlying
 form component.? 
 
 I am using option 2 to avoid UI state corruption and didn't have any
 problems with it.
 
 
 Seldon, Richard wrote:
 
 
 Experiencing a wicket problem to do with UI state corruption when using
 ajax
 tabbed panel. When the ajax links are rapidly clicked in succession
 various
 validation errors appear relating  to panels that are hidden, form
 component
 drop downs lose their display UI values and UI state basically becomes
 v.confused. Have not observed this behavior elsewhere but somehow it
 seems
 like  the ajax requests are not stacking correctly or at least are losing
 synch with the UI rerendering somehow. 
 
 Below are all the steps (in brevity) so far attempted and some unanswered
 questions I still have:-
 
 (1) Tried IAjaxIndicatorAware on individual form components and
 overridden
 tabbed panel links. Used this in conjunction with a server side request
 throttler.  Basically wrote a timer class that intercepts onsubmit
 requests
 and rejects (returns without processing further) on any entered with
 given
 2
 second interval  using standard Java api class implementations. This
 approach does actually work but doesn't explain why we're having this
 problem in first place?
 
 (2) Tried a DIV interceptor approach hooking into
 Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was
 to
 cover the entire screen with a  transparent div whilst asynch call being
 made - however, problematic using IE 6 but works with firefox.
 Essentially,
 seems IE deals with windowed and  windowless components and certain html
 form components are windowed such as select. z-indexes are not respected
 between the two types and therefore setting  div z-index higher than
 select
 z-index doesn't work. tried workaround using an iframe (which covers both
 z-indexes in IE6) but iframe transparency issues  meant access to
 underlying
 form component.
 
 (3) Looked at wicket-ajax.js - was interested with configuration of the
 channels settings - but unsure how to get an appropriate configuration
 fix.
 There is  an indicator between setting which gets read by reading  out of
 a
 regex a character value of either 'd' or 's' where from what i can see
 's'
 ensures requests  are stacked. Found some help in an older newsgroup
 which
 mentions that {wicket has ajax channels with different channel modes
 such
 as queue/disregard. that way you can disable certain groups of components
 only by assigning them to the same ajax channel.} Looking at the wicket
 java api i  couldn't manage

[Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Alex Objelean

Why wicket.markup.html.form.Radio component does not extend FormComponent?

I wanted to add a FormComponentUpdatingBehavior to this component and it is
not possible because it does not extend the FormComponent, but a
WebMarkupContainer.

Thank you!
-- 
View this message in context: 
http://www.nabble.com/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11135460
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Alex Objelean

Thank you Jan! Sad thing is that 1.2.x branch will never support this
feature.


Jan Kriesten-3 wrote:
 
 
 hi alex,
 
 Why wicket.markup.html.form.Radio component does not extend
 FormComponent?
 I wanted to add a FormComponentUpdatingBehavior to this component and it
 is
 not possible because it does not extend the FormComponent, but a
 WebMarkupContainer.
 
 i've got a similar issue and this topic is already being worked on:
 
 https://issues.apache.org/jira/browse/WICKET-531
 
 targeted for 1.3.0 beta 3
 
 best regards, --- jan.
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11136736
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-14 Thread Alex Objelean

Can you explain what do you mean by  but iframe transparency issues  meant
access to underlying
form component.? 

I am using option 2 to avoid UI state corruption and didn't have any
problems with it.


Seldon, Richard wrote:
 
 
 Experiencing a wicket problem to do with UI state corruption when using
 ajax
 tabbed panel. When the ajax links are rapidly clicked in succession
 various
 validation errors appear relating  to panels that are hidden, form
 component
 drop downs lose their display UI values and UI state basically becomes
 v.confused. Have not observed this behavior elsewhere but somehow it
 seems
 like  the ajax requests are not stacking correctly or at least are losing
 synch with the UI rerendering somehow. 
 
 Below are all the steps (in brevity) so far attempted and some unanswered
 questions I still have:-
 
 (1) Tried IAjaxIndicatorAware on individual form components and overridden
 tabbed panel links. Used this in conjunction with a server side request
 throttler.  Basically wrote a timer class that intercepts onsubmit
 requests
 and rejects (returns without processing further) on any entered with given
 2
 second interval  using standard Java api class implementations. This
 approach does actually work but doesn't explain why we're having this
 problem in first place?
 
 (2) Tried a DIV interceptor approach hooking into
 Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was to
 cover the entire screen with a  transparent div whilst asynch call being
 made - however, problematic using IE 6 but works with firefox.
 Essentially,
 seems IE deals with windowed and  windowless components and certain html
 form components are windowed such as select. z-indexes are not respected
 between the two types and therefore setting  div z-index higher than
 select
 z-index doesn't work. tried workaround using an iframe (which covers both
 z-indexes in IE6) but iframe transparency issues  meant access to
 underlying
 form component.
 
 (3) Looked at wicket-ajax.js - was interested with configuration of the
 channels settings - but unsure how to get an appropriate configuration
 fix.
 There is  an indicator between setting which gets read by reading  out of
 a
 regex a character value of either 'd' or 's' where from what i can see 's'
 ensures requests  are stacked. Found some help in an older newsgroup which
 mentions that {wicket has ajax channels with different channel modes
 such
 as queue/disregard. that way you can disable certain groups of components
 only by assigning them to the same ajax channel.} Looking at the wicket
 java api i  couldn't manage to find any handle to setting this flag up. Is
 this a direct wicket-ajax.js edit and if so then my question would be
 What
 is an elegant  way to override the default to use 'd'?
 
 (4) Finally, switched the asynch flag to false by editing wicket-ajax.js
 directly (this.type in request prototype class). This resolved the
 original
 problem but uncertain what the consequences of doing this are. Is this
 safe
 and is there any Java api accessible means to do this? In firefox by
 inspecting  ajax responses via an ajax plugin, it seemed to indicate ajax
 requests yet the page is flickering on rerender much like a full page
 resubmission would. Does  ajax submission still work or is it the main UI
 thread that now handles form submissions?
 
 
 This e-mail (and any attachments) may contain privileged and/or
 confidential information. If you are not the intended recipient please do
 not disclose, copy, distribute, disseminate or take any action in reliance
 on it. If you have received this message in error please reply and tell us
 and then delete it. Should you wish to communicate with us by e-mail we
 cannot guarantee the security of any data outside our own computer
 systems. For the protection of Legal  General's systems and staff,
 incoming emails will be automatically scanned.
 
 Any information contained in this message may be subject to applicable
 terms and conditions and must not be construed as giving investment advice
 within or outside the United Kingdom.
 
 The following companies are subsidiary companies of the Legal  General
 Group Plc which are authorised and regulated by the Financial Services
 Authority for advising and arranging the products shown: Legal  General
 Partnership Services Limited (insurance and mortgages), Legal  General
 Insurance Limited (insurance), Legal  General Assurance Society Limited 
 (life assurance, pensions and investments), Legal  General Unit Trust
 Managers Limited and Legal  General Portfolio Management Services Limited
 (investments).
 
 They are registered in England under numbers shown.
 The registered office is Temple Court, 11 Queen Victoria Street, London
 EC4N 4TP.
 
 Legal  General Partnership Services Limited: 5045000 Legal  General
 Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
 Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
 

[Wicket-user] [Question] render(final MarkupStream markupStream)

2007-06-13 Thread Alex Objelean

I have a question about the render method. Why, before rendering, instead of
checking isVisibleInHierarchy(),  isVisible() is called? 
public final void render(final MarkupStream markupStream)
{
setMarkupStream(markupStream);
setFlag(FLAG_IS_RENDERED_ONCE, true);

// Determine if component is visible using it's authorization 
status
// and the isVisible property.
if (isRenderAllowed()  isVisible()) //why not 
isVisibleInHierarchy() ?? 
{
   //etc...
}
//more code.
 }

I am asking because I suspect a bug with the following StackTrace: 

Caused by: java.lang.NullPointerException
at wicket.markup.html.list.ListView.renderItem(ListView.java:676)
at wicket.markup.html.list.ListView.onRender(ListView.java:637)

I happens when an AjaxTabbedPanel is updated via ajax. The tabbedPanel
contains a holder Panel with a ListView child component. The visibility of
the holder Panel is decided dynamicaly by overriding isVisible method. 

Maybe later I will try to isolate this situation and to make it more clear.
Still, I would like to know if you've encountered something like this.

Thank you!
-- 
View this message in context: 
http://www.nabble.com/-Question--render%28final-MarkupStream-markupStream%29-tf3914413.html#a11098575
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] render(final MarkupStream markupStream)

2007-06-13 Thread Alex Objelean

I found a workaround for this issue, so instead of overriding isVisible() of
the bulkContainer WebMarkupContainer, I add an AttributeModifier which makes
the container display:none.. 

private WebMarkupContainer getBulkContainer() {
if (bulkContainer == null) {
  bulkContainer = new WebMarkupContainer(bulkContainer);
  bulkContainer.add(new SimpleAttributeModifier(class, invisible) {
public boolean isEnabled() {
  return getMode().isEdit();
}
  });
  //add to bulkContainer a form which contains a ListView.
}
return bulkContainer;
  }

I do not like this solution, because anyone having firebug can hack the
application + more markup than needed is generated...



Johan Compagner wrote:
 
 isVisibleInHierarchy doesn't make to much sense because it has to be
 visible already because the parent is already rendering and passing
 its render to the childs.  So the parent is already checked for
 visiblility.
what you seem to have is more another bug that something
 is not created or tried to rendered that is already removed by another
 request
 
 On 6/13/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I have a question about the render method. Why, before rendering, instead
 of
 checking isVisibleInHierarchy(),  isVisible() is called?
  public final void render(final MarkupStream markupStream)
  {
  setMarkupStream(markupStream);
  setFlag(FLAG_IS_RENDERED_ONCE, true);

  // Determine if component is visible using it's authorization 
 status
  // and the isVisible property.
  if (isRenderAllowed()  isVisible()) //why not 
 isVisibleInHierarchy()
 ??
  {
//etc...
 }
 //more code.
  }

 I am asking because I suspect a bug with the following StackTrace:

 Caused by: java.lang.NullPointerException
  at wicket.markup.html.list.ListView.renderItem(ListView.java:676)
  at wicket.markup.html.list.ListView.onRender(ListView.java:637)

 I happens when an AjaxTabbedPanel is updated via ajax. The tabbedPanel
 contains a holder Panel with a ListView child component. The visibility
 of
 the holder Panel is decided dynamicaly by overriding isVisible method.

 Maybe later I will try to isolate this situation and to make it more
 clear.
 Still, I would like to know if you've encountered something like this.

 Thank you!
 --
 View this message in context:
 http://www.nabble.com/-Question--render%28final-MarkupStream-markupStream%29-tf3914413.html#a11098575
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Question--render%28final-MarkupStream-markupStream%29-tf3914413.html#a11099854
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cyclic parent/child relationship

2007-06-11 Thread Alex Objelean

You just have to respect the hierarchy you have defined in the markup.


Nart Seine wrote:
 
 Hello,
 
 I made an innocent programming error that day by adding a Form as a child
 component of a TextField thats already the child of the Form. In that
 case,
 execution gets stuck in an infinite loop in Component.findParent(final
 Class
 c). I still am only scratching the surface of wicket, but are there any
 cases when two component can be parents of each other, as in, is this the
 case with some component types? Could a check be added in the code to
 prevent adding a component, if the component being added is already the
 parent of 'this' component? Or should I just ensure I have enough caffeine
 in my system before I start putting together component hierarchies ? :)
 
 Thanks
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Cyclic-parent-child-relationship-tf3900804.html#a11058487
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket did not make the grade.

2007-06-06 Thread Alex Objelean

  In our company we are using Wicket since last year and I am working on the
second project with it. For the first project, client insisted on using
wicket and this was an opportunity to learn. 
  For the second project (fully ajaxified application), we had to choose
between GWT and Wicket, and we gave the preference to Wicket and I must say
that I do not regret a second :). 
  I like the wicket for it's flexibility, simplicity and for many other
things and hope to use it for as many as possible projects in the future :).
  
  Alex.


Jon Laidler wrote:
 
 Sorry to hear that.
 
 I would be interested to hear how many companies are usng Wicket, and how
 many of those companies switched to Wicket from other frameworks.
 
 Personally, I think Wicket is the best framework I have come across. True
 separation of concerns is the mantra we should use when asked why Wicket.
 Let web designers do their magic with web site design, and leave Java
 coders handle the components. 
 
 
 
 Florian Hehlen-2 wrote:
 
 HI all,
 
 I am sad to announce that my company did not choose to use wicket after 
 comparison with struts 2. :-(
 
 One criticism that came out as we were looking at Wicket code was that 
 there seems to be a need to write a lot of Java code in a ListView for 
 such things as displaying a table. Although I did not see this issue as 
 out-weighing all the benefits, many of my colleagues did.
 
 Is there any plan or push or hidden feature that allows for a bean to be 
 directly mapped to a template without having to declare new Label(...) 
 for each field in the ListView. I think this would be a great win for 
 Wicket if adding those low-level components was only necessary when one 
 wants to add special handling, formating, validation, etc.
 
 thanks,
 Florian.
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/wicket-did-not-make-the-grade.-tf386.html#a10983742
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TextTemplateHeaderContributor.forJavaScript and Ajax

2007-06-05 Thread Alex Objelean

I use for this purpose the Igor's idea of OnLoadJavascriptBehavior, see 
http://www.nabble.com/adding-a-listener-to-the-AjaxRequestTarget-tf3065865.html#a8548871
here .




N. Kiellberg wrote:
 
 Hi 
 I have panel where I have added a TextTemplateHeaderContributor. When I
 include this panel directly on a page there is no problems, but when I
 use Ajax to replace another panel with this panel it dosen´t work. It
 seems like the browser dosen´t know that js-functions has been included .
 If I refresh the page it works again.
 
 Nicholas
 
 

-- 
View this message in context: 
http://www.nabble.com/TextTemplateHeaderContributor.forJavaScript-and-Ajax-tf3865042.html#a10975739
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript version of setVisible()

2007-06-02 Thread Alex Objelean

You should use javascript to hide your component.


Matthieu Casanova wrote:
 
 Hi, I want to hide a component, and sometimes making it visible using
 javascript.
 Is there something like that in wicket api or should I do it myself with
 some javascript ?
 
 Matthieu
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/javascript-version-of-setVisible%28%29-tf3852607.html#a10928149
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to position the panel tab

2007-05-31 Thread Alex Objelean

It seems that you need some css guidance: 
http://www.positioniseverything.net/ Visit This link 


Lec wrote:
 
 Do you happen to know the attribute and its value for setting the position
 to the right?
 
 
 Timo Rantalaiho wrote:
 
 On Wed, 30 May 2007, Lec wrote:
 I need some guidance. By default, normally we will see either a panel
 tab or
 multiple tab appear on the far left of the screen. How do we position
 them (
 the panel tabs ) in such a way that they will appear on the far right
 rather
 than the left?
 
 With CSS. Just add the class or id you want in the markup
 (though it can be done programmatically also if you need
 more dynamics).
 
 - Timo
 
 -- 
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/How-to-position-the-panel-tab-tf3844330.html#a10888401
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [BUG]script tag evaluation in IE

2007-05-31 Thread Alex Objelean

Maybe the topic title is a little confusing... [BUG] is related to IE, not
wicket... This is useful when you want to append a js script somewhere
inside the body as a result of an ajax response, and you want it to be
evaluated on the client side also by IE (not only gecko browsers)..



Johan Compagner wrote:
 
 But do we have components or behaviors that output this kind of ajax
 scripts
 that aren't working in IE7?
 So the question is who is generating that code/script?
 
 johan
 
 
 On 5/31/07, Alex Objelean [EMAIL PROTECTED] wrote:


 Not necessarily, only if you (core developers) consider that it worth the
 effort..
 I just thought that this workaround could be useful for anyone who have
 struggled with the same problem...

 Alex


 Eelco Hillenius wrote:
 
  2) Wrap the script into the  tag, like this:
 
 
script
  //your script
/script
 
  Is this something Wicket can/ should do by default?
 
  Eelco
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10887903
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10890474
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] [BUG]script tag evaluation in IE

2007-05-30 Thread Alex Objelean

Probably it is well known bug for most of you, but I think it worth to
mention again about it and its workaround. 

The bug appears when the ajax response contains a script which normally
should be evaluated (and it does in gecko browsers) but the script is not
evaluated in IE (any version, including IE7) I found two workarounds for
this issue:

1) Wrap the script into the form tag. But it has a drawback, you must be
careful to not have embedded forms. Not very convenient solution..

2) Wrap the script into the  tag, like this:


  script
//your script
  /script


The style=display:none is important because embed object itself should not
be visible, it is just a container which simply makes the script tag
evaluation work in IE...And this is the best choice to make it work in
XBrowser fashion.

Alex.


-- 
View this message in context: 
http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10872337
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [BUG]script tag evaluation in IE

2007-05-30 Thread Alex Objelean

Not necessarily, only if you (core developers) consider that it worth the
effort..
I just thought that this workaround could be useful for anyone who have
struggled with the same problem... 

Alex


Eelco Hillenius wrote:
 
 2) Wrap the script into the  tag, like this:


   script
 //your script
   /script
 
 Is this something Wicket can/ should do by default?
 
 Eelco
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-BUG-%3Cscript%3E-tag-evaluation-in-IE-tf3839952.html#a10887903
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-24 Thread Alex Objelean

Well, it wasn't wicket fault... It was mine. Actually, I used YUI for layout
management and this didn't work very well for my fully ajaxified application
by causing this kind of errors. Therefore I gave up using it...

The problem appears when the component is not in the sync with its model. 

Alex.


Ingram Chen-2 wrote:
 
 Is there any progress on this issue ?
 I search JIRA but there is no related issue...
 
 On 5/11/07, Alex Objelean [EMAIL PROTECTED] wrote:


 I'll add a quickstart as soon as possible...  (tomorrow by noon)
 Thank you!


 Matej Knopp-2 wrote:
 
  Okay. Can you please create a quickstart that can be used to reproduce
  this and add attach it to a jira bug entry?
 
  Thanks
  -Matej
 
  On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote:
 
  I managed to migrate my application to wicket-1.3 ... but the same
  problem
  still persist...:( - this time it is complaining that  he is unable
 to
  find
  the componentRelativePath of the component which is supposed to be
 added
  to
  the target. :(
 
 
  The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems
 to
  be
  the way wicket retrieves the component using its relative component
  path...
  [code]
  page.get(pageRelativeComponentPath);
  [code]
  The component which cause the problem was removed and then added back
 by
  the
  AjaxTabbedPanel before the exception is thrown.
 
  PS: Btw, when the stable wicket-1.3 version is planned to be released?
 
  Regards,
  Alex.
 
 
  Matej Knopp-2 wrote:
  
   Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
   there was a refactoring done. But even if you have problem with the
   NPE, we can fix much easier than in 1.2.
  
   As for the migration, it depends on how complex your application is.
  
   -Matej
  
   On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote:
  
   Well, it's a bad-bad news for me :(
   As far as I know, the wicket-1.3 does not have yet stable release,
 is
  it
   correct? If so, when approximately it will be available?
  
   And another two questions:
   1) Does the wicket-1.3 solve the
   java.lang.NullPointerException
   at
  
 
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget
 (DefaultRequestTargetResolverStrategy.java:295)
   problem?
   2) How much pain involves the process of migration from
 wicket-1.2.6
  to
   wicket-1.3?
  
   Thank you!
  
  
  
   Matej Knopp-2 wrote:
   
If you are developing ajax-heavy web application I'd certainly
  suggest
you migrating to 1.3. There are issues in 1.2 with AJAX that are
unfixable, because they would require API breaks, which is
 something
we can't do.
   
-Matej
   
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
 
 -- 
 Ingram Chen
 ��便��啦: http://dinbendon.net
 blog: http://www.javaworld.com.tw/roller/page/ingramchen
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Alex Objelean


There is at least two solutions.
1. The ideea is to use script tag as a Label component and its modelObject
contains a generated script
http://www.nabble.com/Feedbackmessages%3A-extend-by-new-type-ALERT---tf3795933.html
see this post .

2. Use TextTemplateHeaderContributor for adding javascript - you can also
interpolate variables inside it.

component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),myscript.js,
variables));




Mark van Leeuwen wrote:
 
 Writing my first custom component...
 
 I want to initialise the component using inline Javascript placed
 immediately after the component markup.
 
 Searching the message archive I found one solution which is to use a label
 to output the script. Seems a bit of a hack.
 
 Is there a better way?
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-insert-inline-Javascript-tf3802007.html#a10758551
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] cannot find wicket-fvalidate

2007-05-22 Thread Alex Objelean

I am very curious to analyze the existing wicket-fvalidate project.. but all
the reference to it are not valid.
Can somebody help me to find it?

Thank you! 
-- 
View this message in context: 
http://www.nabble.com/cannot-find-wicket-fvalidate-tf3794524.html#a10732301
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxFormComponentUpdatingBehavior issue in wicket-1.3-snapshot

2007-05-21 Thread Alex Objelean

I've notices a strange behavior of the AjaxFormComponentUpdatingBehavior
after migration to 1.3... it does not update the backing model object. Am I
wrong or there is an issue with the latest snapshot?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/AjaxFormComponentUpdatingBehavior-issue-in-wicket-1.3-snapshot-tf3789580.html#a10716820
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-05-18 Thread Alex Objelean

You should read wicket:child tag  as extends keyword... This way wicket
works. Why are you looking for different solution when there are many more
which works great?


Chris Colman wrote:
 
 As Alex says, wicket:child tags can't solve this because that's not
 the way they're intended to be used.
 
 I can't see why wicket could not be easily enhanced to support multiple
 overridden child sections. Just like the astract methods of a class -
 there is no limit on the number of them: a class can have any number
 abstract methods and they can be overridden by any derived class - not
 just immediate descendents and they don't have to all be overridden in
 the same class - just so long as an implementation is provided somewhere
 in the inheritance hierarchy for any concrete class.
 
 In wicket the wicket:child is just a placeholder for content that will
 be implemented/provided in a derived class. It just seems strange that
 the number of possible placeholders, n, was arbitrarily set to n = 1 in
 the architecture.
 
 Having only 1 alleviates the need to identify the placeholder in a
 derived class but that is the only reason I can see why the maximum
 number of placeholders should have been limited to just 1.
 
 I can see many uses for providing implementations of different child
 sections at different levels of the hierarchy. You could have navigation
 column, main column and footer being child sections. With a deep
 hierarchy you could provide 'extend' sections that provide the content
 for the child sections at various points in the hierarchy. You might
 provide footer markup via one common base class and then in classes that
 extend that class provide different navigation and main column markup
 but they all share a common footer. Another class might provide a
 different footer and have other classes extending it that provide
 different navigation and main column markup.
 
 For backwards compatibility with the current system you could say that
 if there is only one child section then no label is required but if you
 choose to add more than one child section then you must label them (just
 like providing an abstract method signature).
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a10682394
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Applying TextTempate on the component's markup

2007-05-18 Thread Alex Objelean

Is it possible to apply TextTempate inside the markup of the component?

More specifically, for the following markup:

wicket:head
  style
#${componentId} .selected {
   background: blue;
}
  /style
/wicket:head
wicket:panel
   This is markup for my component
/wicket:panel

the generated markup would replace the ${componentId} with the component
markupId.. (same way - interpolate any other field dynamically using
TextTemplate).

I know that it is possible to interpolate variables on a file which is
contributed in a head (css or js), but I am interested in the interpolation
of the markup itself.

Thank you!

-- 
View this message in context: 
http://www.nabble.com/Applying-TextTempate-on-the-component%27s-markup-tf3780259.html#a10690722
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Request for enhancement] TabbedPanel

2007-05-17 Thread Alex Objelean

Though it can be a solution, it is not a natural one... because I want to
make the difference between outer and inner tab-row, not between outer vs
inner tab-panel.


John Krasnay wrote:
 
 Ahh, I see...the problem is *nested* tabs. Sorry for not picking that up
 earlier. However, I think the same principle applies, no? Just give the
 inner tab panel a different CSS class than the outer one.
 
 jk
 
 On Wed, May 16, 2007 at 07:39:04AM -0700, Alex Objelean wrote:
 
 This solution adds the css class the the entire tabbedPanel container,
 subsequently all nested tabbedPanels will be treated the same way
 What I
 need is to identify the tab-row container
 
 
 John Krasnay wrote:
  
  In fact now that I think of it, you don't even need the wrapper div.
  Remember that the TabbedPanel renders the tabs *inside* the tag to
  which it's attached. That tag can contain the CSS class that makes that
  set of tabs unique:
  
div wicket:id=tabs class=greentabs/div
  
add(new TabbedPanel(tabs, tabs));
  
  The result is like this:
  
div class=greentabs
  div class=tab-row
  ...
  /div
/div
  
  If you need to determine the class dynamically, just add an appropriate
  behaviour to the TabbedPanel:
  
add(new TabbedPanel(tabs, tabs)
  .add(new AttributeModifier(class, new Model(purpletabs;
  
  jk
  
  On Wed, May 16, 2007 at 06:28:57AM -0700, Alex Objelean wrote:
  
  That is the problem. How can I attach a WebMarkupContainer to a
 tab-row
  container?
  The markup is generated by TabbedPanel and I cannot manipulate it's
  markup... :(
  
  
  Hi Alex,
  
  The way I've tackled this is to have a wrapper div around the entire
 tab
  panel, like so...
  
  div class=mytabs
div class=tab-row
  ul
...
  /ul
/div
  /div
  
  You just need to add the wrapper div to your CSS selector:
  
  div.mytabs li {
background-color: green;
  }
  
  Then you can have different wrapper divs for different styling:
  
  div.othertabs li {
background-color: purple;
  }
  
  If you need to dynamically manipulate the wrapper div, simply attach a
  WebMarkupContainer to it.
  
  HTH
  
  jk
  
  On Wed, May 16, 2007 at 04:33:37AM -0700, Alex Objelean wrote:
   
   Currently, the markup generated for the tabbedPanel component looks
  like
   this:
   
   [code]
   wicket:panel
   div class=tab-row
   ul
   li wicket:id=tabs
# [[tab title]] 
   /li
   /ul
   /div
   [panel]
   /wicket:panel
   [/code]
   
   I think that it would be more useful to add a container to the
 existing
   tabs, so the resulted markup would look like this:
   
   [code]
   wicket:panel
   div wicket:id=tabsContainer class=tab-row
   ul
   li wicket:id=tabs
# [[tab title]] 
   /li
   /ul
   /div
   [panel]
   /wicket:panel
   [/code]
   
   This way you can append a new css class to this container (using
   AttributeAppender behavior) and can control the specific visual
  appearance
   of the tabbed panel... It is not enough to have only tab-row
 class,
   because if you have nested tabbed panels (which have different
 styling)
  it
   is hard to style them as you want... And finally, you give the
  developer a
   freedom to do what he wants with this container...
   
   What do you think?
   
   Thank you!
   
  
  -- 
  View this message in context:
 
 http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10641787
  Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10642947
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2

[Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Alex Objelean

I've noticed that having two components with AjaxEventBehavior attached to
each of them, trigger a synchronous ajax call:

Button b1 = new Button(b1);
b1.add(new AjaxEventBehavior(onclick) {
  protected void onEvent(final AjaxRequestTarget target) {
doSomethingSlow1();
  }
});
Button b2 = new Button(b2);
b2.add(new AjaxEventBehavior(onclick) {
  protected void onEvent(final AjaxRequestTarget target) {
doSomethingSlow2();
  }
});

Clicking b1, and immediately after that b2 cause the following message in
wicket-debug window:  INFO: Chanel busy - postponing 
Can I force a parallel execution of doSomethingSlow1 and doSomethingSlow2?

Thank you,
Alex.

just wondering if it is possible to make them asynchronous.
-- 
View this message in context: 
http://www.nabble.com/-Question--Asynchronous-Ajax-tf3770294.html#a10659589
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Alex Objelean

Matej, thank you for your answer!

I am using Button just because I forgot about AjaxLink :)... anyway, it has
exactly the same effect, isn't it?


Matej Knopp-2 wrote:
 
 You can't. The requests are asynchronous (they don't block request),
 but they are scheduled in channel so one request waits until the
 previous one finishes.
 
 Problem is that the pagemap is locked, so you can't have two requests
 running on parallel on the same pagemap. If you have operation that
 takes too long you should use a worker thread and a periodical
 polling.
 
 Btw. I don't understand why you are using AjaxEventBehavior on button
 instead of just using AjaxLink?
 
 -Matej
 
 On 5/17/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I've noticed that having two components with AjaxEventBehavior attached
 to
 each of them, trigger a synchronous ajax call:

 Button b1 = new Button(b1);
 b1.add(new AjaxEventBehavior(onclick) {
   protected void onEvent(final AjaxRequestTarget target) {
 doSomethingSlow1();
   }
 });
 Button b2 = new Button(b2);
 b2.add(new AjaxEventBehavior(onclick) {
   protected void onEvent(final AjaxRequestTarget target) {
 doSomethingSlow2();
   }
 });

 Clicking b1, and immediately after that b2 cause the following message in
 wicket-debug window:  INFO: Chanel busy - postponing
 Can I force a parallel execution of doSomethingSlow1 and
 doSomethingSlow2?

 Thank you,
 Alex.

 just wondering if it is possible to make them asynchronous.
 --
 View this message in context:
 http://www.nabble.com/-Question--Asynchronous-Ajax-tf3770294.html#a10659589
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Question--Asynchronous-Ajax-tf3770294.html#a10660005
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Request for enhancement] TabbedPanel

2007-05-17 Thread Alex Objelean

Yes, it is acceptable an solution...
Also, I thought about somehow dynamically providing markup for the tab-row
container, or having a possibility to decorate it with you own container...
any thoughts?


igor.vaynberg wrote:
 
 i dont like adding a container that users can mock with. if you want to go
 that far then just create your own tabbedpanel, its only a few lines of
 code. what i can see is some overridable method to add a css class to that
 tab row, will that work?
 
 -igor
 
 
 On 5/16/07, Alex Objelean [EMAIL PROTECTED] wrote:


 Though it can be a solution, it is not a natural one... because I want to
 make the difference between outer and inner tab-row, not between outer vs
 inner tab-panel.


 John Krasnay wrote:
 
  Ahh, I see...the problem is *nested* tabs. Sorry for not picking that
 up
  earlier. However, I think the same principle applies, no? Just give the
  inner tab panel a different CSS class than the outer one.
 
  jk
 
  On Wed, May 16, 2007 at 07:39:04AM -0700, Alex Objelean wrote:
 
  This solution adds the css class the the entire tabbedPanel container,
  subsequently all nested tabbedPanels will be treated the same way
  What I
  need is to identify the tab-row container
 
 
  John Krasnay wrote:
  
   In fact now that I think of it, you don't even need the wrapper div.
   Remember that the TabbedPanel renders the tabs *inside* the tag to
   which it's attached. That tag can contain the CSS class that makes
 that
   set of tabs unique:
  
 div wicket:id=tabs class=greentabs/div
  
 add(new TabbedPanel(tabs, tabs));
  
   The result is like this:
  
 div class=greentabs
   div class=tab-row
   ...
   /div
 /div
  
   If you need to determine the class dynamically, just add an
 appropriate
   behaviour to the TabbedPanel:
  
 add(new TabbedPanel(tabs, tabs)
   .add(new AttributeModifier(class, new Model(purpletabs;
  
   jk
  
   On Wed, May 16, 2007 at 06:28:57AM -0700, Alex Objelean wrote:
  
   That is the problem. How can I attach a WebMarkupContainer to a
  tab-row
   container?
   The markup is generated by TabbedPanel and I cannot manipulate it's
   markup... :(
  
  
   Hi Alex,
  
   The way I've tackled this is to have a wrapper div around the
 entire
  tab
   panel, like so...
  
   div class=mytabs
 div class=tab-row
   ul
 ...
   /ul
 /div
   /div
  
   You just need to add the wrapper div to your CSS selector:
  
   div.mytabs li {
 background-color: green;
   }
  
   Then you can have different wrapper divs for different styling:
  
   div.othertabs li {
 background-color: purple;
   }
  
   If you need to dynamically manipulate the wrapper div, simply
 attach
 a
   WebMarkupContainer to it.
  
   HTH
  
   jk
  
   On Wed, May 16, 2007 at 04:33:37AM -0700, Alex Objelean wrote:
   
Currently, the markup generated for the tabbedPanel component
 looks
   like
this:
   
[code]
wicket:panel
div class=tab-row
ul
li wicket:id=tabs
 # [[tab title]]
/li
/ul
/div
[panel]
/wicket:panel
[/code]
   
I think that it would be more useful to add a container to the
  existing
tabs, so the resulted markup would look like this:
   
[code]
wicket:panel
div wicket:id=tabsContainer class=tab-row
ul
li wicket:id=tabs
 # [[tab title]]
/li
/ul
/div
[panel]
/wicket:panel
[/code]
   
This way you can append a new css class to this container (using
AttributeAppender behavior) and can control the specific visual
   appearance
of the tabbed panel... It is not enough to have only tab-row
  class,
because if you have nested tabbed panels (which have different
  styling)
   it
is hard to style them as you want... And finally, you give the
   developer a
freedom to do what he wants with this container...
   
What do you think?
   
Thank you!
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10641787
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net

Re: [Wicket-user] [Request for enhancement] TabbedPanel

2007-05-17 Thread Alex Objelean

Thank you Igor!

Jira issue created:

https://issues.apache.org/jira/browse/WICKET-577
https://issues.apache.org/jira/browse/WICKET-577 

Alex.


igor.vaynberg wrote:
 
 looks like i wont be able to get to it immediately, please add an rfe and
 i
 will prob do it over the weekend.
 
 -igor
 
 
 On 5/17/07, Alex Objelean [EMAIL PROTECTED] wrote:


 Yes, it is acceptable an solution...
 Also, I thought about somehow dynamically providing markup for the
 tab-row
 container, or having a possibility to decorate it with you own
 container...
 any thoughts?


 igor.vaynberg wrote:
 
  i dont like adding a container that users can mock with. if you want to
 go
  that far then just create your own tabbedpanel, its only a few lines of
  code. what i can see is some overridable method to add a css class to
 that
  tab row, will that work?
 
  -igor
 
 
  On 5/16/07, Alex Objelean [EMAIL PROTECTED] wrote:
 
 
  Though it can be a solution, it is not a natural one... because I want
 to
  make the difference between outer and inner tab-row, not between outer
 vs
  inner tab-panel.
 
 
  John Krasnay wrote:
  
   Ahh, I see...the problem is *nested* tabs. Sorry for not picking
 that
  up
   earlier. However, I think the same principle applies, no? Just give
 the
   inner tab panel a different CSS class than the outer one.
  
   jk
  
   On Wed, May 16, 2007 at 07:39:04AM -0700, Alex Objelean wrote:
  
   This solution adds the css class the the entire tabbedPanel
 container,
   subsequently all nested tabbedPanels will be treated the same
 way
   What I
   need is to identify the tab-row container
  
  
   John Krasnay wrote:
   
In fact now that I think of it, you don't even need the wrapper
 div.
Remember that the TabbedPanel renders the tabs *inside* the tag
 to
which it's attached. That tag can contain the CSS class that
 makes
  that
set of tabs unique:
   
  div wicket:id=tabs class=greentabs/div
   
  add(new TabbedPanel(tabs, tabs));
   
The result is like this:
   
  div class=greentabs
div class=tab-row
...
/div
  /div
   
If you need to determine the class dynamically, just add an
  appropriate
behaviour to the TabbedPanel:
   
  add(new TabbedPanel(tabs, tabs)
.add(new AttributeModifier(class, new
 Model(purpletabs;
   
jk
   
On Wed, May 16, 2007 at 06:28:57AM -0700, Alex Objelean wrote:
   
That is the problem. How can I attach a WebMarkupContainer to a
   tab-row
container?
The markup is generated by TabbedPanel and I cannot manipulate
 it's
markup... :(
   
   
Hi Alex,
   
The way I've tackled this is to have a wrapper div around the
  entire
   tab
panel, like so...
   
div class=mytabs
  div class=tab-row
ul
  ...
/ul
  /div
/div
   
You just need to add the wrapper div to your CSS selector:
   
div.mytabs li {
  background-color: green;
}
   
Then you can have different wrapper divs for different styling:
   
div.othertabs li {
  background-color: purple;
}
   
If you need to dynamically manipulate the wrapper div, simply
  attach
  a
WebMarkupContainer to it.
   
HTH
   
jk
   
On Wed, May 16, 2007 at 04:33:37AM -0700, Alex Objelean wrote:

 Currently, the markup generated for the tabbedPanel component
  looks
like
 this:

 [code]
 wicket:panel
 div class=tab-row
 ul
 li wicket:id=tabs
  # [[tab title]]
 /li
 /ul
 /div
 [panel]
 /wicket:panel
 [/code]

 I think that it would be more useful to add a container to the
   existing
 tabs, so the resulted markup would look like this:

 [code]
 wicket:panel
 div wicket:id=tabsContainer class=tab-row
 ul
 li wicket:id=tabs
  # [[tab title]]
 /li
 /ul
 /div
 [panel]
 /wicket:panel
 [/code]

 This way you can append a new css class to this container
 (using
 AttributeAppender behavior) and can control the specific
 visual
appearance
 of the tabbed panel... It is not enough to have only tab-row
   class,
 because if you have nested tabbed panels (which have different
   styling)
it
 is hard to style them as you want... And finally, you give the
developer a
 freedom to do what he wants with this container...

 What do you think?

 Thank you!

   
--
View this message in context:
   
  
 
 http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10641787
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
 take
control of your XML. No limits

[Wicket-user] [Request for enhancement] TabbedPanel

2007-05-16 Thread Alex Objelean

Currently, the markup generated for the tabbedPanel component looks like
this:

[code]
wicket:panel
div class=tab-row
ul
li wicket:id=tabs
 # [[tab title]] 
/li
/ul
/div
[panel]
/wicket:panel
[/code]

I think that it would be more useful to add a container to the existing
tabs, so the resulted markup would look like this:

[code]
wicket:panel
div wicket:id=tabsContainer class=tab-row
ul
li wicket:id=tabs
 # [[tab title]] 
/li
/ul
/div
[panel]
/wicket:panel
[/code]

This way you can append a new css class to this container (using
AttributeAppender behavior) and can control the specific visual appearance
of the tabbed panel... It is not enough to have only tab-row class,
because if you have nested tabbed panels (which have different styling) it
is hard to style them as you want... And finally, you give the developer a
freedom to do what he wants with this container...

What do you think?

Thank you!


-- 
View this message in context: 
http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10640047
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Request for enhancement] TabbedPanel

2007-05-16 Thread Alex Objelean

That is the problem. How can I attach a WebMarkupContainer to a tab-row
container?
The markup is generated by TabbedPanel and I cannot manipulate it's
markup... :(


Hi Alex,

The way I've tackled this is to have a wrapper div around the entire tab
panel, like so...

div class=mytabs
  div class=tab-row
ul
  ...
/ul
  /div
/div

You just need to add the wrapper div to your CSS selector:

div.mytabs li {
  background-color: green;
}

Then you can have different wrapper divs for different styling:

div.othertabs li {
  background-color: purple;
}

If you need to dynamically manipulate the wrapper div, simply attach a
WebMarkupContainer to it.

HTH

jk

On Wed, May 16, 2007 at 04:33:37AM -0700, Alex Objelean wrote:
 
 Currently, the markup generated for the tabbedPanel component looks like
 this:
 
 [code]
 wicket:panel
 div class=tab-row
 ul
   li wicket:id=tabs
# [[tab title]] 
   /li
 /ul
 /div
 [panel]
 /wicket:panel
 [/code]
 
 I think that it would be more useful to add a container to the existing
 tabs, so the resulted markup would look like this:
 
 [code]
 wicket:panel
 div wicket:id=tabsContainer class=tab-row
 ul
   li wicket:id=tabs
# [[tab title]] 
   /li
 /ul
 /div
 [panel]
 /wicket:panel
 [/code]
 
 This way you can append a new css class to this container (using
 AttributeAppender behavior) and can control the specific visual appearance
 of the tabbed panel... It is not enough to have only tab-row class,
 because if you have nested tabbed panels (which have different styling) it
 is hard to style them as you want... And finally, you give the developer a
 freedom to do what he wants with this container...
 
 What do you think?
 
 Thank you!
 

-- 
View this message in context: 
http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10641787
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Request for enhancement] TabbedPanel

2007-05-16 Thread Alex Objelean

This solution adds the css class the the entire tabbedPanel container,
subsequently all nested tabbedPanels will be treated the same way What I
need is to identify the tab-row container


John Krasnay wrote:
 
 In fact now that I think of it, you don't even need the wrapper div.
 Remember that the TabbedPanel renders the tabs *inside* the tag to
 which it's attached. That tag can contain the CSS class that makes that
 set of tabs unique:
 
   div wicket:id=tabs class=greentabs/div
 
   add(new TabbedPanel(tabs, tabs));
 
 The result is like this:
 
   div class=greentabs
 div class=tab-row
 ...
 /div
   /div
 
 If you need to determine the class dynamically, just add an appropriate
 behaviour to the TabbedPanel:
 
   add(new TabbedPanel(tabs, tabs)
 .add(new AttributeModifier(class, new Model(purpletabs;
 
 jk
 
 On Wed, May 16, 2007 at 06:28:57AM -0700, Alex Objelean wrote:
 
 That is the problem. How can I attach a WebMarkupContainer to a tab-row
 container?
 The markup is generated by TabbedPanel and I cannot manipulate it's
 markup... :(
 
 
 Hi Alex,
 
 The way I've tackled this is to have a wrapper div around the entire tab
 panel, like so...
 
 div class=mytabs
   div class=tab-row
 ul
   ...
 /ul
   /div
 /div
 
 You just need to add the wrapper div to your CSS selector:
 
 div.mytabs li {
   background-color: green;
 }
 
 Then you can have different wrapper divs for different styling:
 
 div.othertabs li {
   background-color: purple;
 }
 
 If you need to dynamically manipulate the wrapper div, simply attach a
 WebMarkupContainer to it.
 
 HTH
 
 jk
 
 On Wed, May 16, 2007 at 04:33:37AM -0700, Alex Objelean wrote:
  
  Currently, the markup generated for the tabbedPanel component looks
 like
  this:
  
  [code]
  wicket:panel
  div class=tab-row
  ul
 li wicket:id=tabs
  # [[tab title]] 
 /li
  /ul
  /div
  [panel]
  /wicket:panel
  [/code]
  
  I think that it would be more useful to add a container to the existing
  tabs, so the resulted markup would look like this:
  
  [code]
  wicket:panel
  div wicket:id=tabsContainer class=tab-row
  ul
 li wicket:id=tabs
  # [[tab title]] 
 /li
  /ul
  /div
  [panel]
  /wicket:panel
  [/code]
  
  This way you can append a new css class to this container (using
  AttributeAppender behavior) and can control the specific visual
 appearance
  of the tabbed panel... It is not enough to have only tab-row class,
  because if you have nested tabbed panels (which have different styling)
 it
  is hard to style them as you want... And finally, you give the
 developer a
  freedom to do what he wants with this container...
  
  What do you think?
  
  Thank you!
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10641787
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/-Request-for-enhancement--TabbedPanel-tf3764064.html#a10642947
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help:Migration from 1.2.4 to 1.2.6

2007-05-15 Thread Alex Objelean

I have also migrated from 1.2.4 to 1.2.6 but without any problems. How have
you included your CSS in the page?


Ayodeji Aladejebi wrote:
 
 The migration wasnt seamless at all as before.
 I just changed jar file from 1.2.4 to 1.2.6 and CSS and images were being
 reported not found. I havent even changed a line of code.
 
 i taught it was a mapping issue and i changed my mapping from /app/* to
 /app
 and then the home page loaded fine with the CSS at this time and all to my
 suprise non of my other BookmarkableLinks are working again. Tomcat will
 say
 the requested resource was not found.
 
 Really, due to the short time on my project, i had to switch back to
 1.2.4now just to overcome the deadline.
 
 But if there is any help I can get that can explain what i can do to
 ensure
 that i can easily migrate to 1.2.6 without all the headaches, please i
 could
 use some help
 
 I have been on a swing project for a while so i lost a litte track of my
 wicket trails
 
 I need assistance on this
 
 thank you
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Help%3AMigration-from-1.2.4-to-1.2.6-tf3755254.html#a10617348
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] div id problem

2007-05-10 Thread Alex Objelean

Would this solution work better for you?

body
  wicket:extend
 div id=projects-panel
 div wicket:id=projects-panel/div 
 /div
 div id=agents-panel
 div wicket:id=agents-panel/div
 /div
 div  id=builds-panel
 div wicket:id=builds-panel /
 div
  /wicket:extend
/body

Xavier Hanin wrote:
 
 On 5/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote:
 
  2007/5/10, Matej Knopp [EMAIL PROTECTED]:
   Right now, when you set outputmarkupid on component wicket doesn't
   honor the id specified in markup. One of the reasons is that when you
   use the component twice, the id is no longer unique.
 
  I understand that if the id is specified in the panel markup
  (ViewPanel.html) , but it is not the case here.


 it might not be the case, but how is wicket supposed to know that? also
 what if you put that component into a repeater? it will also have non
 unique
 ids. i think there are so many different ways to break this that i always
 advocated of never honoring markup's id attr if setoutputmarkupid is
 called.
 but thats just me.

 
 So what is the recommended best practice: ask web designers to use class
 instead of ids on dynamic components (maybe not always possible), or
 encapsulate a dynamic component in a static one with an id under control
 of
 the web designer?
 
 Xavier
 
 -igor


  In you case I
   suggest you use css class instead of id to assign stylesheet to your
   elements.
 
  ok, I didn't use a class attribute for my div so I can use it now.
  Thanks
 
  Mathieu
 
   -Matej
  
   On 5/10/07, Bernatet Mathieu  [EMAIL PROTECTED] wrote:
Hi,
   
I try to apply css style on several div but wicket changes their id
attributes defined in the html file.
I have 3 custom panels that contain a DataView and I want to
 refresh
 
them with ajax, so I make a call to setOutputMarkupId() method.
 This
call changes the id defined in html file.
I add an AttributeModifier to force the use of the defined id, that
works but now ajax refresh don't work.
What I'm doing wrong?
   
code:
   
dashboard.html:
   
...
body
wicket:extend
div wicket:id=projects-panel id=projects-panel
  /
div wicket:id=agents-panel id=agents-panel /
div wicket:id=builds-panel id=builds-panel /
/wicket:extend
/body
---
   
viewPanel.html:
   
wicket:panel
wicket:child /
  class=navigator[agents navigator]
/wicket:panel

   
ViewPanel.java:
   
public class ViewPanel extends Panel {
private static final long serialVersionUID = 1L;
   
public ViewPanel(String id, DataView dataView, int
  itemsPerPage) {
super(id);
setOutputMarkupId(true);
add(dataView);
dataView.setItemsPerPage(itemsPerPage);
add(new AttributeModifier(id, true, new
  Model(id)));
add(new FancyPagingNavigator(navigator,
  dataView));
}
}
-
   
Dashboard.java :
   
public class Dashboard extends WebPage {
public Dashboard() {
...
add(new ProjectsPanel(projects-panel, projects,
  5));
add(new AgentsPanel(agents-panel, scheduler, 5));
add(new QueuePanel(builds-panel, scheduler, 5));
}
}
   
Mathieu
   
   
 
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-10 Thread Alex Objelean

I managed to migrate my application to wicket-1.3 ... but the same problem
still persist...:( - this time it is complaining that  he is unable to find
the componentRelativePath of the component which is supposed to be added to
the target. :( 


The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be
the way wicket retrieves the component using its relative component path... 
[code]
page.get(pageRelativeComponentPath);
[code]
The component which cause the problem was removed and then added back by the
AjaxTabbedPanel before the exception is thrown. 

PS: Btw, when the stable wicket-1.3 version is planned to be released?

Regards,
Alex.


Matej Knopp-2 wrote:
 
 Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
 there was a refactoring done. But even if you have problem with the
 NPE, we can fix much easier than in 1.2.
 
 As for the migration, it depends on how complex your application is.
 
 -Matej
 
 On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote:

 Well, it's a bad-bad news for me :(
 As far as I know, the wicket-1.3 does not have yet stable release, is it
 correct? If so, when approximately it will be available?

 And another two questions:
 1) Does the wicket-1.3 solve the
 java.lang.NullPointerException
 at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
 problem?
 2) How much pain involves the process of migration from wicket-1.2.6 to
 wicket-1.3?

 Thank you!



 Matej Knopp-2 wrote:
 
  If you are developing ajax-heavy web application I'd certainly suggest
  you migrating to 1.3. There are issues in 1.2 with AJAX that are
  unfixable, because they would require API breaks, which is something
  we can't do.
 
  -Matej
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-10 Thread Alex Objelean

I'll add a quickstart as soon as possible...  (tomorrow by noon)
Thank you!


Matej Knopp-2 wrote:
 
 Okay. Can you please create a quickstart that can be used to reproduce
 this and add attach it to a jira bug entry?
 
 Thanks
 -Matej
 
 On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I managed to migrate my application to wicket-1.3 ... but the same
 problem
 still persist...:( - this time it is complaining that  he is unable to
 find
 the componentRelativePath of the component which is supposed to be added
 to
 the target. :(


 The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to
 be
 the way wicket retrieves the component using its relative component
 path...
 [code]
 page.get(pageRelativeComponentPath);
 [code]
 The component which cause the problem was removed and then added back by
 the
 AjaxTabbedPanel before the exception is thrown.

 PS: Btw, when the stable wicket-1.3 version is planned to be released?

 Regards,
 Alex.


 Matej Knopp-2 wrote:
 
  Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
  there was a refactoring done. But even if you have problem with the
  NPE, we can fix much easier than in 1.2.
 
  As for the migration, it depends on how complex your application is.
 
  -Matej
 
  On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote:
 
  Well, it's a bad-bad news for me :(
  As far as I know, the wicket-1.3 does not have yet stable release, is
 it
  correct? If so, when approximately it will be available?
 
  And another two questions:
  1) Does the wicket-1.3 solve the
  java.lang.NullPointerException
  at
 
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
  problem?
  2) How much pain involves the process of migration from wicket-1.2.6
 to
  wicket-1.3?
 
  Thank you!
 
 
 
  Matej Knopp-2 wrote:
  
   If you are developing ajax-heavy web application I'd certainly
 suggest
   you migrating to 1.3. There are issues in 1.2 with AJAX that are
   unfixable, because they would require API breaks, which is something
   we can't do.
  
   -Matej
  
 
 

 --
 View this message in context:
 http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean

I have the same issue and I am using wicket 1.2.6..
I am also developing an ajax application (desktop like)... Is it a known
issue or bug in my code?

Thank you!
Regards, 
Alex.


Matej Knopp-2 wrote:
 
 You seem to be using 1.2, is that right?
 
 -Matej
 
 On 4/30/07, RedFury [EMAIL PROTECTED] wrote:

 Hi all,  just want to say that I've relatively new to Wicket but am
 loving
 every minute of it!  In just a few weeks of learning and programming I
 have
 been able to create a robust, javascripted, ajaxified app for our
 company.
 Great work to the devs!

 However, I have one problem which I'm a little unsure how to solve, its
 not
 an inherent problem with Wicket but more a problem with my ajax in
 wicket.
 I will try to go into as much detail as possible.

 I have a page with a set of tabs.  Each tab will replace the main body of
 the page with different components using ajax. this is all working great.
 On top of this, the main page of the app has a global timer (using
 AbstractAjaxTimerBehavior) which does any updates required for the
 current
 tab.  So lets say I have component C1 on tab T1 (T1 is a wicket panel
 which
 I replace when needed.)  The ajax update will call an update() function
 which is overloaded for the different tab types. So T1.update() will call
 target.addComponent(C1); etc..

 The problem I am having is in the timing between the ajax timer request
 and
 the ajax update request when the user hits a new tab.  I am getting the
 following error:

 java.lang.NullPointerException
 at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn
 terfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
 at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa
 ge(DefaultRequestTargetResolverStrategy.java:228)
 at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe
 questTargetResolverStrategy.java:153)
 at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract
 CompoundRequestCycleProcessor.java:48)
 at wicket.RequestCycle.step(RequestCycle.java:992)
 at wicket.RequestCycle.steps(RequestCycle.java:1084)
 at wicket.RequestCycle.request(RequestCycle.java:454)


 So it seems what is happening (this is my guess) is that the ajax
 requests
 for the timer update and the new tab update are being sent almost
 simultaneously.  The first request is processed by the server and this
 actually changes the comoponents on the page. Then the second request
 comes
 in and its target behavior no longer exists because the first request
 replaced that component (panel) with something different.

 So I guess what I'm looking for is ideas on how to solve this problem?  
 How
 does Wicket ajax work client side? Does it organize ajax request-response
 cycles one at a time, or can they be sent simultaneously?  Also, is there
 a
 way I can hoook into the client code and stop the timer update from being
 called if we've already got a pending page-change ajax request.

 So I've waffled a bit, in short how do I stop the second ajax request
 from
 referencing behavior that the first one just got rid of ?

 Thanks,
 Red Fury

 --
 View this message in context:
 http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10392951
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean

Well, it's a bad-bad news for me :(
As far as I know, the wicket-1.3 does not have yet stable release, is it
correct? If so, when approximately it will be available? 

And another two questions:
1) Does the wicket-1.3 solve the 
java.lang.NullPointerException
at   
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
problem?
2) How much pain involves the process of migration from wicket-1.2.6 to
wicket-1.3?

Thank you!



Matej Knopp-2 wrote:
 
 If you are developing ajax-heavy web application I'd certainly suggest
 you migrating to 1.3. There are issues in 1.2 with AJAX that are
 unfixable, because they would require API breaks, which is something
 we can't do.
 
 -Matej
 
 On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I have the same issue and I am using wicket 1.2.6..
 I am also developing an ajax application (desktop like)... Is it a known
 issue or bug in my code?

 Thank you!
 Regards,
 Alex.


 Matej Knopp-2 wrote:
 
  You seem to be using 1.2, is that right?
 
  -Matej
 
  On 4/30/07, RedFury [EMAIL PROTECTED] wrote:
 
  Hi all,  just want to say that I've relatively new to Wicket but am
  loving
  every minute of it!  In just a few weeks of learning and programming I
  have
  been able to create a robust, javascripted, ajaxified app for our
  company.
  Great work to the devs!
 
  However, I have one problem which I'm a little unsure how to solve,
 its
  not
  an inherent problem with Wicket but more a problem with my ajax in
  wicket.
  I will try to go into as much detail as possible.
 
  I have a page with a set of tabs.  Each tab will replace the main body
 of
  the page with different components using ajax. this is all working
 great.
  On top of this, the main page of the app has a global timer (using
  AbstractAjaxTimerBehavior) which does any updates required for the
  current
  tab.  So lets say I have component C1 on tab T1 (T1 is a wicket panel
  which
  I replace when needed.)  The ajax update will call an update()
 function
  which is overloaded for the different tab types. So T1.update() will
 call
  target.addComponent(C1); etc..
 
  The problem I am having is in the timing between the ajax timer
 request
  and
  the ajax update request when the user hits a new tab.  I am getting
 the
  following error:
 
  java.lang.NullPointerException
  at
 
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn
  terfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
  at
 
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa
  ge(DefaultRequestTargetResolverStrategy.java:228)
  at
 
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe
  questTargetResolverStrategy.java:153)
  at
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract
  CompoundRequestCycleProcessor.java:48)
  at wicket.RequestCycle.step(RequestCycle.java:992)
  at wicket.RequestCycle.steps(RequestCycle.java:1084)
  at wicket.RequestCycle.request(RequestCycle.java:454)
 
 
  So it seems what is happening (this is my guess) is that the ajax
  requests
  for the timer update and the new tab update are being sent almost
  simultaneously.  The first request is processed by the server and this
  actually changes the comoponents on the page. Then the second request
  comes
  in and its target behavior no longer exists because the first request
  replaced that component (panel) with something different.
 
  So I guess what I'm looking for is ideas on how to solve this problem?
  How
  does Wicket ajax work client side? Does it organize ajax
 request-response
  cycles one at a time, or can they be sent simultaneously?  Also, is
 there
  a
  way I can hoook into the client code and stop the timer update from
 being
  called if we've already got a pending page-change ajax request.
 
  So I've waffled a bit, in short how do I stop the second ajax request
  from
  referencing behavior that the first one just got rid of ?
 
  Thanks,
  Red Fury
 
  --
  View this message in context:
 
 http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean

The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be
the way wicket retrieves the component using its relative component path... 
[code]
page.get(pageRelativeComponentPath);
[code]
The component which cause the problem was removed and then added back by the
AjaxTabbedPanel before the exception is thrown. 

PS: Btw, when the stable wicket-1.3 version is planned to be released?

Regards,
Alex.


Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
there was a refactoring done. But even if you have problem with the
NPE, we can fix much easier than in 1.2.

As for the migration, it depends on how complex your application is.

-Matej

On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote:

 Well, it's a bad-bad news for me :(
 As far as I know, the wicket-1.3 does not have yet stable release, is it
 correct? If so, when approximately it will be available?

 And another two questions:
 1) Does the wicket-1.3 solve the
 java.lang.NullPointerException
 at
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
 problem?
 2) How much pain involves the process of migration from wicket-1.2.6 to
 wicket-1.3?

 Thank you!



 Matej Knopp-2 wrote:
 
  If you are developing ajax-heavy web application I'd certainly suggest
  you migrating to 1.3. There are issues in 1.2 with AJAX that are
  unfixable, because they would require API breaks, which is something
  we can't do.
 
  -Matej
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10394773
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nullify objectModel when component is not visible

2007-04-16 Thread Alex Objelean

Sorry, my mistake. Indeed, it has nothing to do with changing model object. I
used YUI-ext LayoutManager for screen layout, and didn't noticed that the
rendered markup replace the form components... this was the cause that make
me believe that there is something wrong with wicket. :)


Johan Compagner wrote:
 
 when is it set to null?
 
 public final Component setVisible(final boolean visible)
 {
 // Is new visibility state a change?
 if (visible != getFlag(FLAG_VISIBLE))
 {
 // record component's visibility change
 addStateChange(new VisibilityChange(this));
 
 // Change visibility
 setFlag(FLAG_VISIBLE, visible);
 }
 return this;
 }
 
 i don't see any code touching the model.
 
 johan
 
 
 On 4/15/07, Alex Objelean [EMAIL PROTECTED] wrote:


 I don't understand why if the component visibility is set to false, the
 backing model object is set to null? Is there any reason? I find it more
 useful to not touch at all the backing object is such case. What is your
 opinion?

 Thank you!
 --
 View this message in context:
 http://www.nabble.com/Nullify-objectModel-when-component-is-not-visible-tf3577965.html#a9998155
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/Nullify-objectModel-when-component-is-not-visible-tf3577965.html#a10012033
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Nullify objectModel when component is not visible

2007-04-14 Thread Alex Objelean

I don't understand why if the component visibility is set to false, the
backing model object is set to null? Is there any reason? I find it more
useful to not touch at all the backing object is such case. What is your
opinion?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/Nullify-objectModel-when-component-is-not-visible-tf3577965.html#a9998155
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request

2007-04-10 Thread Alex Objelean

Thank you for your reply, Igor! How a RFE can be added? 




igor.vaynberg wrote:
 
 i think that can work, please add an rfe. we do have global js hooks that
 you can use to create a global indicator.
 
 -igor
 
 
 On 4/6/07, Alex Objelean [EMAIL PROTECTED] wrote:


 In wicket 1.2.5, is not possible (at least I didn't manage to find a way)
 to
 add AjaxIndicator image to a page for all Ajax requests made by its child
 components.

 Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method
 which is responsible to find the component id which should be Ajax
 indicator.

 [code]
 private String findIndicatorId() {
 if (getComponent() instanceof IAjaxIndicatorAware) {
 return
 ((IAjaxIndicatorAware)getComponent()).getAjaxIndicatorMarkupId();
 }

 if (this instanceof IAjaxIndicatorAware) {
 return
 ((IAjaxIndicatorAware)this).getAjaxIndicatorMarkupId();
 }
 return null;
 }
 [code]

 Wouldn't it be better if instead of checking only if :
 - the getComponent is instance of the IAjaxIndicatorAware interface, the
 check would be made up in hierarchy to find the first parent which
 implements the IAjaxIndicatorAware interface?
 Thus, if my page implements the IAjaxIndicatorAware interface, it will
 indicate any ajax requests of its components... exact what I need right
 now.

 What do you think about it?

 Thank you!
 --
 View this message in context:
 http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9868905
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9916707
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request

2007-04-06 Thread Alex Objelean

In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to
add AjaxIndicator image to a page for all Ajax requests made by its child
components.

Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method
which is responsible to find the component id which should be Ajax
indicator.

[code]
private String findIndicatorId() {
if (getComponent() instanceof IAjaxIndicatorAware) {
return 
((IAjaxIndicatorAware)getComponent()).getAjaxIndicatorMarkupId();
}

if (this instanceof IAjaxIndicatorAware) {
return 
((IAjaxIndicatorAware)this).getAjaxIndicatorMarkupId();
}
return null;
}
[code]

Wouldn't it be better if instead of checking only if :
- the getComponent is instance of the IAjaxIndicatorAware interface, the
check would be made up in hierarchy to find the first parent which
implements the IAjaxIndicatorAware interface?
Thus, if my page implements the IAjaxIndicatorAware interface, it will
indicate any ajax requests of its components... exact what I need right now. 

What do you think about it?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9868905
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What's the best way of doing menus in Wicket?

2007-03-12 Thread Alex Objelean


I think, that it would be a great idea to have a project contribution based
on jQuery js framework with a possibility to extend easily widgets (jQuery
plugins).. similar to wicket-contrib-yui.

Alex


ZedroS Schwart wrote:
 
 Would it be possible to have such a menu directly among wicket's
 components ?
 
 ...
 

-- 
View this message in context: 
http://www.nabble.com/What%27s-the-best-way-of-doing-menus-in-Wicket--tf3366440.html#a9429390
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What's the best way of doing menus in Wicket?

2007-03-10 Thread Alex Objelean

The nice part about wicket is that it does not limit your presentation
skills. Regarding menu, the best menu for me by now is a jQuery plugin wrote
by Jonathan Sharp: http://jdsharp.us/code/jQuery/plugins/jdMenu . 
It uses a simple ul-li markup, supports unlimited levels and is completely
unobtrusive. It can be used to create both: static  dynamic menus with
wicket. 

Generally speaking, wicket  jQuery fits perfectly together for completing
any task..


Thomas R. Corbin-2 wrote:
 
 
 We need a menu bar across the top of our pages, with pull down menus.
 
 We used to use this stuff:
 http://struts-menu.sf.net
 
 but I'm not sure how to integrate it, since it seems to rely on jsp tags.
 
 Thanks.
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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/What%27s-the-best-way-of-doing-menus-in-Wicket--tf3366440.html#a9413904
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Toggle visibility for a component using ajax

2007-02-20 Thread Alex Objelean

There is at least one post about this issue... 
See here: 
http://www.nabble.com/Wicket-1.2.4-bug-%28-%21-%29---changing-visibility-of-a-button-using-ajax-tf3242268.html
http://www.nabble.com/Wicket-1.2.4-bug-%28-%21-%29---changing-visibility-of-a-button-using-ajax-tf3242268.html
 


Gohan wrote:
 
 Hi, 
 
 I'd like to be able to click a link or button and then make a component
 visible or invisible using Ajax. Here's what I've done so far.
 
 public BasePage() {
   final WebMarkupContainer table = new WebMarkupContainer(this,
 tableId);
   final Label label = new Label(table, labelId, My Label);
   label.setOutputMarkupId(true);
   table.setOutputMarkupId(true);
   label.setVisible(false);

new AjaxFallbackLink(this, linkId) {
   private static final long serialVersionUID = 
 5523627214368899839L;
 
   @Override
   public void onClick(AjaxRequestTarget target) {
   target.addComponent(label);
   target.addComponent(table);
   label.setVisible(!label.isVisible());
   }
   };
   }
 }
 
 Html:
 span wicket:id=linkId[Click here]/span
 table wicket:id=tableId cellpadding=2 cellspacing=2
 tr
   td
   span wicket:id=labelId[label]/span
   /td
   /tr
 /table
 
 
 This will work the first time I click on the AjaxFallbackLink, i.e. the
 label will be displayed. But I'd like it to dissapear again when I click
 the link a second time. This is not reflected when running this code. What
 should I do? (I don't like to write any javascript, since I'm using Wicket
 to avoid it :)). 
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9060530
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Toggle visibility for a component using ajax

2007-02-20 Thread Alex Objelean

... and a quick reply about your issue is (quoting Igor Vaynberg):

the proper way to do this is to add button's parent, that way the parent
will repaint itself without the button's tag in it, and later when you make
it visible the parent will repaint itself with button's tags so everything
works nicely. 


-- 
View this message in context: 
http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9060552
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PropertyModel misbehavior

2007-02-20 Thread Alex Objelean

Maybe the description was to long, and it's hard to follow... I'll try to
make it shorter:

Using DropDownChoice component this way inside the populate method of the
gridView:

DropDownChoice selYear = new DropDownChoice(year,
  new PropertyModel(item.getModel(), year), modelChoices);

makes the PropertyModel behave different, depending on modelChoices
implementation... If modelChoices model is constructed in a static way,
everything works ok, otherwise - it does not work. Do you have any idea why
it happens?

Thank you!


Alex Objelean wrote:
 
 First of all, the functional description:
 I have a screen with the table which contains on each line a column with
 description, a dropDownChoice (DDC) with a list of configurations and
 another column with DDC with a list of years. When user changes a
 configuration , the list of years updates depending on selected
 configuration (using ajax). 
 
 Below you can find the code. 
 
 /**
  * @see RefreshingView#populateItem(Item)
  */
 protected void populateItem(final Item item) {
   //get the configuration list
   List configurationList = ...//call a service to get the list
   DropDownChoice selConfig = new DropDownChoice(configuration,
  new PropertyModel(item.getModel(), configuration),
  configurationList, new ChoiceRenderer(
 description, id));
   item.add(selConfig);
 
   IModel modelChoices = new Model() {
 public Object getObject(final Component component) {
   List rValue = Collections.EMPTY_LIST;
   ReportTemplateUI report = (ReportTemplateUI) item.getModelObject();
   Configuration config = report.getConfiguration();
   if (config == null) {
 return rValue;
   }
   rValue = getExtractionResultService().getAvailableYears(
   config.getId());
   return rValue;
 }
   };
   DropDownChoice selYear = new DropDownChoice(year,
   new PropertyModel(item.getModel(), year), modelChoices);
   item.add(selYear);
   //...
 }  
 
 
 The modelObject of the Item looks like this:
 
 ReportTemplateUI implements Serializable{
   private Integer year;
   private Configuration configuration;  
   //other properties + getters  setters
 }
 
 As you can see, the DDC is constructed this way: it uses a PropertyModel
 for setting the year property on the item model; the modelChoices (used
 to populate the DDC component) based on the Item current configuration,
 calls a service and returns a list of years associated with the selected
 configuration.
 
 Now the problem is that the PropertyModel does not set the year property
 on the Item objectModel - the year property always have the NULL value.
 Somehow I found that the problem is caused by calling item.getModelObject,
 but it does not make sens for me (!?!)..   If instead of this I return a
 static list, everything seems to work fine... (@see below)
 
   IModel modelChoices = new Model() {
 public Object getObject(final Component component) {
   List rValue = Collections.EMPTY_LIST;
 
   // THE PROBLEM IS HERE - CALLING Item.getModleObject() method. !!!
   ReportTemplateUI report = (ReportTemplateUI) item.getModelObject();
 
   Configuration config = report.getConfiguration();
   if (config == null) {
 return rValue;
   }
   rValue = getExtractionResultService().getAvailableYears(
   config.getId());
  
   //IF INSTEAD OF ABOVE CODE I RETURN A STATIC LIST - EVERYTHING WORKS
 FINE
 
   return rValue;
 }
   };
   DropDownChoice selYear = new DropDownChoice(year,
   new PropertyModel(item.getModel(), year), modelChoices);
 
 I found a workaround for this but it is a temporary solution until I find
 the answer to this mysterious issue.
 Is it a known issue, a bug, or this is not a correct approach to solve the
 problem? Can you help me? 
 
 Thank you!
 
 PS: if you have any question regarding the code or anything else is not
 clear, please don't hesitate to ask! Thank you again!
 

-- 
View this message in context: 
http://www.nabble.com/PropertyModel-misbehavior-tf3251590.html#a9060617
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Toggle visibility for a component using ajax

2007-02-20 Thread Alex Objelean

I am working with 1.2.4 wicket release and have no problems with it.
You can also do what Martijn Dashorst suggested:

target.appendJavascript(document.getElementById(' +
component.getMarkupId() + ').style.display='none';); 

Alex.



Gohan wrote:
 
 Ok so what you're saying is that I should go with something like:
 public void onClick(AjaxRequestTarget target) {
   label.setVisible(!label.isVisible());
  target.addComponent(table);
 }
 
 This doesn't work either.. I get a java.lang.NullPointerException when
 calling label.setVisible(..) when !label.isVisible() returns false. When
 I debug I come to versionManager.componentStateChanging(change); in the
 componentStateChanging method in class Page. But versionManager is null.
 I'm not using the latest snapshot but I tried downloading and installing
 it. But then I can't even build my projects due to the following error:
 The project was not built since its build path is incomplete. Cannot find
 the class file for
 wicket.protocol.http.request.urlcompressing.UrlCompressor..
 
 
 
 
 Alex Objelean wrote:
 
 ... and a quick reply about your issue is (quoting Igor Vaynberg):
 
 the proper way to do this is to add button's parent, that way the parent
 will repaint itself without the button's tag in it, and later when you
 make it visible the parent will repaint itself with button's tags so
 everything works nicely. 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9061788
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] PropertyModel misbehavior

2007-02-19 Thread Alex Objelean

First of all, the functional description:
I have a screen with the table which contains on each line a column with
description, a dropDownChoice (DDC) with a list of configurations and
another column with DDC with a list of years. When user changes a
configuration , the list of years updates depending on selected
configuration (using ajax). 

Below you can find the code. 

/**
 * @see RefreshingView#populateItem(Item)
 */
protected void populateItem(final Item item) {
  //get the configuration list
  List configurationList = ...//call a service to get the list
  DropDownChoice selConfig = new DropDownChoice(configuration,
 new PropertyModel(item.getModel(), configuration),
 configurationList, new ChoiceRenderer(
description, id));
  item.add(selConfig);

  IModel modelChoices = new Model() {
public Object getObject(final Component component) {
  List rValue = Collections.EMPTY_LIST;
  ReportTemplateUI report = (ReportTemplateUI) item.getModelObject();
  Configuration config = report.getConfiguration();
  if (config == null) {
return rValue;
  }
  rValue = getExtractionResultService().getAvailableYears(
  config.getId());
  return rValue;
}
  };
  DropDownChoice selYear = new DropDownChoice(year,
  new PropertyModel(item.getModel(), year), modelChoices);
  item.add(selYear);
  //...
}  


The modelObject of the Item looks like this:

ReportTemplateUI implements Serializable{
  private Integer year;
  private Configuration configuration;  
  //other properties + getters  setters
}

As you can see, the DDC is constructed this way: it uses a PropertyModel for
setting the year property on the item model; the modelChoices (used to
populate the DDC component) based on the Item current configuration, calls a
service and returns a list of years associated with the selected
configuration.

Now the problem is that the PropertyModel does not set the year property on
the Item objectModel - the year property always have the NULL value. Somehow
I found that the problem is caused by calling item.getModelObject, but it
does not make sens for me (!?!)..   If instead of this I return a static
list, everything seems to work fine... (@see below)

  IModel modelChoices = new Model() {
public Object getObject(final Component component) {
  List rValue = Collections.EMPTY_LIST;

  // THE PROBLEM IS HERE - CALLING Item.getModleObject() method. !!!
  ReportTemplateUI report = (ReportTemplateUI) item.getModelObject();

  Configuration config = report.getConfiguration();
  if (config == null) {
return rValue;
  }
  rValue = getExtractionResultService().getAvailableYears(
  config.getId());
 
  //IF INSTEAD OF ABOVE CODE I RETURN A STATIC LIST - EVERYTHING WORKS
FINE

  return rValue;
}
  };
  DropDownChoice selYear = new DropDownChoice(year,
  new PropertyModel(item.getModel(), year), modelChoices);

I found a workaround for this but it is a temporary solution until I find
the answer to this mysterious issue.
Is it a known issue, a bug, or this is not a correct approach to solve the
problem? Can you help me? 

Thank you!

PS: if you have any question regarding the code or anything else is not
clear, please don't hesitate to ask! Thank you again!
-- 
View this message in context: 
http://www.nabble.com/PropertyModel-misbehavior-tf3251590.html#a9038875
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to include *.htc files in css files?

2007-02-19 Thread Alex Objelean

(LOL) Unfortunately more than 70% of users are using retarded browsers :))
(not like - it's IE!). 

Alex.


Any ideas on how this might be fixed (accept for telling people not to
use a retarded browsers like IE)? Can we open an issue for it to track
it?

Eelco

-- 
View this message in context: 
http://www.nabble.com/How-to-include-*.htc-files-in-css-files--tf3238484.html#a9038996
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2.4 bug (?!?) - changing visibility of a button using ajax

2007-02-16 Thread Alex Objelean

The bug is about setVisible() method which does not work on button (and not
only) components when using ajax updates.

Detailed description:
I have a DataView. Each line contains a description (Label component), a
configuration select (DropDownChoice component) and a download button
(Button component). When user changes the configuration from the
DropDownChoice component, depending on the selected configuration - the
download button visibility must be changed. Here is the snippet of code:

protected void onUpdate(final AjaxRequestTarget target) {
  //find somehow my button using relative path
  Button button = ...;
  button.setVisible(false);
  target.addComponent(button);
}

This code does not perform the expected result. Interesting is that if
instead of button, I try to change the visibility of a DropDownChoice
component - it works!

I cannot understand why it behave so different. Can you explain me? Is it a
bug? Am I using a wrong approach?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.4-bug-%28-%21-%29---changing-visibility-of-a-button-using-ajax-tf3242268.html#a9013073
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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


[Wicket-user] Tri-state checkbox

2006-08-30 Thread Alex Objelean

I need to implement a tri-state checkbox component. It must behave the same
way as the normal checkbox do, but additionally it has an intermidiate state
which looks differently.. also, I want to change the lookfeel of the
checkbox control with another images (for instance MAC OS style). What is
the best way to do that? Should I extend the Checkbox and use input tag,
or extend a Panel and implement the whole logic from scratch? Thank you! 
-- 
View this message in context: 
http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6056120
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-30 Thread Alex Objelean

Well, thank you for your support :)... That's exactly what I needed!

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... 


Korbinian Bachl wrote:
 
 you know what the limits of HTML are 
 
 suggest you look at w3c.org the HTML specs, and think about a realistic
 way
 to solve your business needs.
 
 Regards
  
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Alex Objelean
 Gesendet: Mittwoch, 30. August 2006 12:21
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] Tri-state checkbox
 
 
 I need to implement a tri-state checkbox component. It must 
 behave the same way as the normal checkbox do, but 
 additionally it has an intermidiate state which looks 
 differently.. also, I want to change the lookfeel of the 
 checkbox control with another images (for instance MAC OS 
 style). What is the best way to do that? Should I extend the 
 Checkbox and use input tag, or extend a Panel and implement 
 the whole logic from scratch? Thank you! 
 --
 View this message in context: 
 http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6056120
 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=263057;
 dat=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/Tri-state-checkbox-tf2188974.html#a6056573
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-30 Thread Alex Objelean

Unfortunately, the dropDownChoice component does not suite my needs.

The ideea with button seems to be a good ideea, why not use just input
type=button or button instead of input type=submit... The problem
is: should I reuse the Checkbox code by extending it or just extend Form
component and render a button with a corresponding image depending on its
state  rewrite the whole model logic?

I think that there can be more than one different approach to this problem,
but I don't know which would be better or what would you recommend? 

PS: I think that such a control (tristate checkbox) would be very useful in
wicket-extension.
-- 
View this message in context: 
http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6057160
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] wicket tags

2006-08-15 Thread Alex Objelean

I was wondering if wouldn't it be better if the rendered page would not
contain wicket tags and wicket:id attribute? 
The root problem is that validating the generated HTML returns errors,
starting with: 
there is no attribute xmlns:wicket.

Does it make sense? Thank you! 
-- 
View this message in context: 
http://www.nabble.com/wicket-tags-tf2107902.html#a5810177
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] wicket-auth-roles-1.2.x

2006-08-14 Thread Alex Objelean

I am currently using wicket-1.2.1 which compiles under java 1.4...
My question is why the same version of the wicket-auth-roles package is
targeting java 1.5?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/wicket-auth-roles-1.2.x-tf2103539.html#a5797285
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] Overriding ListView#getListItemModel

2006-07-20 Thread Alex Objelean

The javadoc of the getListItemModel method of the abstract class ListView
states that
 Subclasses may provide their own ListItemModel with extended
functionality. The default ListItemModel works fine with mostly static lists
where index remains valid. In cases where the underlying list changes a lot
(many users using the application), it may not longer be appropriate. In
that case your own ListItemModel implementation should use an id (e.g. the
database' record id) to identify and load the list item model object...

I am in situation where the list is not static and the application is used
by many users.. Can you provide a sample implementation of the
getListItemModel method for this situation?

Thank you!
-- 
View this message in context: 
http://www.nabble.com/Overriding-ListView-getListItemModel-tf1972442.html#a5414248
Sent from the Wicket - User forum at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

Why I should always call setOutputMarkupId(true) when I want to ajaxify the
component, couldn't it by default be true?
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5149915
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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

In this case, the designer efforts will be disabled anytime I use an
ajaxified component, isn't it?
For instance I have :

div wicket:id=idForWicket id=idForDesigner/div

in CSS:

div#idForDesigner {
  float: left; 
  border: solid red 1px;
} 

in JAVA:

Component component = new MyComponent(idForWicket);
component.setOutputMarkupId(true);

As the result, the idForDesigner will be overriden with a new generated
value? Did I understood it right?


-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5150502
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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

Indeed, it seems that the old value is overriden with the generated value...
In this case, why the markupId do not care about the old value? Wouldn't it
be much better if it would be the same as the original id?


Alex Objelean wrote:
 
 In this case, the designer efforts will be disabled anytime I use an
 ajaxified component, isn't it?
 For instance I have :
 
 div wicket:id=idForWicket id=idForDesigner/div
 
 in CSS:
 
 div#idForDesigner {
   float: left; 
   border: solid red 1px;
 } 
 
 in JAVA:
 
 Component component = new MyComponent(idForWicket);
 component.setOutputMarkupId(true);
 
 As the result, the idForDesigner will be overriden with a new generated
 value? Did I understood it right?
 
 
 
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5150652
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] Question about OutputMarkupId

2006-07-03 Thread Alex Objelean

First of all, thank you for your feedback, appreciate it very much!
I am new to Wicket. Before starting with Wicket I had some experience with
Echo2, where I do not have to worry about how to make a component being
ajaxified. This is why I am a little bit frustrated about this in Wicket..
Hope the 2.0 release will solve something in this direction. Anyway, I am
very pleased to work with Wicket and think you have done a great job! 
-- 
View this message in context: 
http://www.nabble.com/Question-about-OutputMarkupId-tf1883868.html#a5151108
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] Beginner Image question

2006-06-21 Thread Alex Objelean

I am trying to insert in my page an Image located at some URL... 
I have looked at the examples, but there are only the following situations:
- Image as package resource 
- Dynamically created image. Re-render whenever resource is asked for. 
- Simple model 
- Dynamically created buffered image 

but no example which would suite my need. Can you help me?
--
View this message in context: 
http://www.nabble.com/Beginner-Image-question-t1823773.html#a4973872
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean

Yes, this is exactly what I need! :)
Thank you very much!
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4974481
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Alex Objelean

Yes, this is exactly what I need! :)
Thank you very much!
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4974498
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean

Unfortunatelly, this code throws an exception:

WicketMessage: Unable to find package resource [path =
training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg,
style = null, locale = en_US]

Root cause:

wicket.WicketRuntimeException: Unable to find package resource [path =
training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg,
style = null, locale = en_US]
at
wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:520)
at wicket.markup.html.PackageResource.init(PackageResource.java:501)
at wicket.markup.html.PackageResource.get(PackageResource.java:269)
at
wicket.markup.html.image.resource.LocalizedImageResource$1.newResource(LocalizedImageResource.java:361)
at wicket.ResourceReference.bind(ResourceReference.java:118)
at
wicket.markup.html.image.resource.LocalizedImageResource.bind(LocalizedImageResource.java:180)
at
wicket.markup.html.image.resource.LocalizedImageResource.loadStaticImage(LocalizedImageResource.java:368)
at
wicket.markup.html.image.resource.LocalizedImageResource.setSrcAttribute(LocalizedImageResource.java:283)
at wicket.markup.html.image.Image.onComponentTag(Image.java:225)

etc...


any suggestions?

PS: Thank you for fast reply!
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4974633
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean

Yes, exactly... the Image I am trying to use is located outside my
application... 
I thought it will be a piece of cake:(
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975150
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean

Sorry.. my mistake. It works. I indeed forgot to use the ExternalImage
component. 

Thank you again! :)
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975300
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean

Well, in my case the URL is not static... it has different value depending on
what the service returns.(In my specific small application, I input
countryCode in the form and get the URL to the image which is the country
Flag...)
--
View this message in context: 
http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975709
Sent from the Wicket - User forum at Nabble.com.



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


[Wicket-user] Changing the Link innerHTML

2006-06-20 Thread Alex Objelean

I just started to learn the Wicket Framework, so sorry for a trivial
question... (I couldn't find the solution on the forum):

How can I change the innerHTML of the Link component dynamically?

For instance in the following code:

lt;a href=# wicket:id=navLinkPage1lt;/a


new Link(navLink) {
  public void onClick() {
setResponsePage(Page1.class);
  }
} 

I would like to change the Page1 value to something else 
How can I do that? 
Thank you!
--
View this message in context: 
http://www.nabble.com/Changing-the-Link-innerHTML-t1816416.html#a4951617
Sent from the Wicket - User forum at Nabble.com.



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