Re: Ajax modal window does not allow submit form under open browsers

2011-03-20 Thread Sven Meier
.. and please vote for WICKET-3404 if you think the need for this 
additional form is just annoying.


Sven

On 03/20/2011 01:01 AM, Pedro Santos wrote:

To submit a form inside a modal window you must enclose it by a form in the
main panel and use an AJAX submit component. Please open a ticket +
quickstart if the issue remains.

On Sat, Mar 19, 2011 at 7:45 PM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com  wrote:


When I use the ajax modal window and under Firefox/Chrome/Safari, the
ajax form submit does not happen.  When I open the ajax debug window, it
looks like a request is made.

Has anyone had issues with modal windows, form submission and firefox?

Internet Explorer 7 works fine.

Version of Wicket: 1.4.13

Here is the error in the debug window:

RROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id
'calloutForm449' that is not in document.
ERROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id
'calloutForm449' that is not in

Pseduo Code:

import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
...


final ModalWindow modalWindow = new ModalWindow( modalWindow);
final Panel basicPanel = new BasicPanel( modalWindow.getContentId());

modalWindow.setInitialWidth( 600 );
mainPanel.add(modalWindow);
modalWindow.setContent(basicPanel);


...

public class BasicPanel extends Panel {

  public BasicPanel(final String id) {
...
final Form form = new Form(calloutForm);
add(form);
  }
}

** Panel for Modal Window Markup:

form wicket:id=calloutForm
  ...
/form


** Output from ajax debug window.

The form looks like it is available.

div id=feedback4d7 style=display:none/div
form id=calloutForm4d8 method=post
action=?wicket:interface=:10:contentPanelContainer:contentPanel:panel:m
odalWindow:content:calloutForm::IFormSubmitListener::div
style=width:0px;height:0px;position:absolute;left:-100px;top:-100px;ove
rflow:hiddeninput type=hidden name=calloutForm4d8_hf_0
id=calloutForm4d8_hf_0 //div
  fieldset
table cellspacing=0 cellpadding=0 style=width: auto;
class=content_panel_table
 tbody
  ...
  
/form
/div









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Ajax modal window does not allow submit form under open browsers

2011-03-20 Thread Chris Colman
.. and please vote for WICKET-3404 if you think the need for this
additional form is just annoying.

+1 from me!

I find having to wrap a modal in a form quite annoying.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Visural Wicket - Maven

2011-03-20 Thread Josh Kamau
Hi.

I use visural wicket with maven and havent had problems so far. Here is a
section of my pom.xml. If it doesnt work, then may be something changed
after my maven had already done the download.

dependency
groupIdcom.visural/groupId
artifactIdvisural-common/artifactId
version0.4.3/version
/dependency

dependency
groupIdcom.visural/groupId
artifactIdvisural-wicket/artifactId
version0.6.5/version
/dependency




repositories
repository
idvisural-common/id
namevisural-common/name
url
http://visural-common.googlecode.com/svn/trunk/visural-common/maven//url
/repository
repository
idvisural-wicket/id
namevisural-wicket/name
url
http://visural-wicket.googlecode.com/svn/trunk/visural-wicket/maven//url
/repository

On Sat, Mar 19, 2011 at 1:16 AM, Shelli Orton shelli.or...@sjrb.ca wrote:

 Hi,

 Has anybody used Visural Wicket with Maven?  I set up my repositories as
 per the information on this page:

 http://code.google.com/p/visural-wicket/wiki/MavenSupport

 The visural-common pom and jar files downloaded are empty even though
 they're not on the server.  However, there isn't a directory for
 visural-wicket on the server.

 Do I need to manually add the files to my repository?

 Thanks,

 -Original Message-
 From: Shelli Orton
 Sent: 18 March 2011 11:20 AM
 To: users@wicket.apache.org
 Subject: RE: Drop Down Choice

 Hi,

 The wicket.visural.net first example looks like exactly what I need.

 Thanks!

 Shelli

 -Original Message-
 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Sent: 18 March 2011 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Drop Down Choice

 theres this one (though not dropdown)

 http://www.wicket-library.com/wicket-examples/ajax/autocompletehttp://w
 ww.wicket-library.com/wicket-examples/ajax/autocomplete;jsessionid=FE414
 790D6B5E7ACECC809CB9E9C9CEB?0http://ww.wicket-library.com/wicket-examples/ajax/autocomplete;jsessionid=FE414%0A790D6B5E7ACECC809CB9E9C9CEB?0
 

 Or this one if you want a drop down:
 http://wicket.visural.net/examples/app/dropdown

 -Nino

 http://www.wicket-library.com/wicket-examples/ajax/autocomplete;jsessio
 nid=FE414790D6B5E7ACECC809CB9E9C9CEB?0

 2011/3/18 Shelli Orton shelli.or...@sjrb.ca

  Hi,
 
  I've been looking for a Wicket drop down widget where one can choose
 an
  item from the list by typing more than the first character.  For
  example, if my list contains the following values:
 
  One
  Two
  Three
  Four
  Five
 
  typing T would select Two, but typing Th would select Three.
 Is
  this possible in Wicket?
 
  Thanks!
 
  Shelli
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Getting data from dynamically constructed elements

2011-03-20 Thread tech7
Hi to everyone,
I have a loop and inside this loop; i am constructing checkgroups in the
listview but I dont know how to get data after the user has selected.Do you
have any idea?I need your suggestions.
With my best regards.

-
Developer
Wicket
Java
JSP
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-data-from-dynamically-constructed-elements-tp3391580p3391580.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Getting data from dynamically constructed elements

2011-03-20 Thread James Carman
What model is your checkgroup bound to?
On Mar 20, 2011 2:41 PM, tech7 techlove...@gmail.com wrote:
 Hi to everyone,
 I have a loop and inside this loop; i am constructing checkgroups in the
 listview but I dont know how to get data after the user has selected.Do
you
 have any idea?I need your suggestions.
 With my best regards.

 -
 Developer
 Wicket
 Java
 JSP
 --
 View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Getting-data-from-dynamically-constructed-elements-tp3391580p3391580.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



Re: Getting data from dynamically constructed elements

2011-03-20 Thread tech7
My code is like that:

propertyLoop1 = new Loop(properties1, propertyList1.size()) {

@Override
protected void populateItem(final LoopItem 
propertyItem) {
final Property property1 =
propertyList1.get(propertyItem.getIteration());
propertyItem.add(new Label(propertyName1, 
property1.getName()));

final List itemList1 = new 
ArrayList(property1.getItems());

final CheckGroup itemsGroup = new 
CheckGroup(group, new ArrayList());

ListView items = new ListView(items, 
itemList1) {

protected void populateItem(ListItem 
itemItem) {
Check check = new 
Check(itemCheck, itemItem.getModel());
Label label = new 
Label(itemName, new
PropertyModel(itemItem.getModel(), name));
itemItem.add(check);
itemItem.add(label);
};

};
items.setReuseItems(true);
itemsGroup.add(items);
propertyItem.add(itemsGroup);
};
};

I am really stuck on this.

-
Developer
Wicket
Java
JSP
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-data-from-dynamically-constructed-elements-tp3391580p3391999.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Getting data from dynamically constructed elements

2011-03-20 Thread Martin Grigorov
in your case:
propertyLoop1.get(someIterationAsString).get(groyp).getModelObject()

but better pass a List to the itemsGroup which is reachable without using
the tree as above
e.g.

ListList groupModels = ...;

and then:
 final CheckGroup itemsGroup = new CheckGroup(group,
groupModels.get(propertyItem.getIteration()));

On Sun, Mar 20, 2011 at 10:10 PM, tech7 techlove...@gmail.com wrote:

 My code is like that:

 propertyLoop1 = new Loop(properties1, propertyList1.size()) {

@Override
protected void populateItem(final LoopItem
 propertyItem) {
final Property property1 =
 propertyList1.get(propertyItem.getIteration());
propertyItem.add(new Label(propertyName1,
 property1.getName()));

final List itemList1 = new
 ArrayList(property1.getItems());

final CheckGroup itemsGroup = new
 CheckGroup(group, new ArrayList());

ListView items = new ListView(items,
 itemList1) {

protected void populateItem(ListItem
 itemItem) {
Check check = new
 Check(itemCheck, itemItem.getModel());
Label label = new
 Label(itemName, new
 PropertyModel(itemItem.getModel(), name));
itemItem.add(check);
itemItem.add(label);
};

};
items.setReuseItems(true);
itemsGroup.add(items);
propertyItem.add(itemsGroup);
};
};

 I am really stuck on this.

 -
 Developer
 Wicket
 Java
 JSP
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Getting-data-from-dynamically-constructed-elements-tp3391580p3391999.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: Getting data from dynamically constructed elements

2011-03-20 Thread tech7
Thank you for your response.
I got this error when I tried to run your suggestion:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 at java.util.ArrayList.RangeCheck(ArrayList.java:547)
 at java.util.ArrayList.get(ArrayList.java:322)
 at xxx.xxx.xxx.xxx.PGMix$8.populateItem(PGMix.java:314)
 at org.apache.wicket.markup.html.list.Loop.onPopulate(Loop.java:137)
 at
org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:131)
 at
org.apache.wicket.Component.internalBeforeRender(Component.java:1065)
 at org.apache.wicket.Component.beforeRender(Component.java:1099)
 at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)
 at org.apache.wicket.Component.onBeforeRender(Component.java:3940)
 at
org.apache.wicket.markup.html.form.Form.onBeforeRender(Form.java:2056)
 at
org.apache.wicket.Component.internalBeforeRender(Component.java:1065)
 at org.apache.wicket.Component.beforeRender(Component.java:1099)
 at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)

Do you have any idea about this?

-
Wicket-Java
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-data-from-dynamically-constructed-elements-tp3391580p3392169.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Adding a IRenderer interface ?

2011-03-20 Thread jcgarciam
What about:
   IChoiceRenderer
??

On Fri, Mar 18, 2011 at 10:52 AM, zedros [via Apache Wicket] 
ml-node+3387253-1092151999-65...@n4.nabble.com wrote:

 hi

 I was refactoring some code (to go from DropDownChoice to
 AutoCompleteEdit) when I stumbled upon there's no interface just about
 how to render some given class instances.

 Well, it's for sure no big deal, but I was wondering if, for
 unification purpose, a IRenderer interface wouldn't make sense, being
 something like :
 public interface IRendererT
 {
 /**
  * Get the value for displaying to an end user.
  *
  * @param object
  *the actual object
  * @return the value meant for displaying to an end user
  */
 Object getDisplayValue(T object);
 }

 Just 2 cents really.

 thanks again for all the good work done with Wicket :)

 best
 zedros

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3387253i=0by-user=t
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3387253i=1by-user=t



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3387253.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
--Anyone who has never made a mistake has never tried anything new.--


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3392206.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Ajax modal window does not allow submit form under open browsers

2011-03-20 Thread Brown, Berlin [GCG-PFS]
OK, so the patch just scraps the form in the modal window. 

-Original Message-
From: Chris Colman [mailto:chr...@stepaheadsoftware.com] 
Sent: Sunday, March 20, 2011 8:36 AM
To: users@wicket.apache.org
Subject: RE: Ajax modal window does not allow submit form under open
browsers

.. and please vote for WICKET-3404 if you think the need for this 
additional form is just annoying.

+1 from me!

I find having to wrap a modal in a form quite annoying.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Portlet Development with wicket

2011-03-20 Thread Josh Kamau
Team;

Does wicket support development of portlets ? I cant find much information
by googling.

Josh