AttibuteModifier question

2011-04-06 Thread drf
Just as one can use 

component.add(new AttributeModifier(class, new Model()));

to modify the css class for a component, is there a way to either 
1. get the existing class value, 
2. or alternativly to append a class to the existing css classes set for
that component, rather than replacing the existing ones.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.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: AttributeModifier question

2011-04-06 Thread drf
Looks like I've found the answer - AttributeAppendor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-question-tp3429987p3429998.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: AttibuteModifier question

2011-04-06 Thread vineet semwal
for 1) you can get that in oncomponenttag
for 2) use attribute appender

On Wed, Apr 6, 2011 at 11:56 AM, drf davidrfi...@gmail.com wrote:
 Just as one can use

 component.add(new AttributeModifier(class, new Model()));

 to modify the css class for a component, is there a way to either
 1. get the existing class value,
 2. or alternativly to append a class to the existing css classes set for
 that component, rather than replacing the existing ones.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.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





-- 
thank you,

regards,
Vineet Semwal

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



Re: AttibuteModifier question

2011-04-06 Thread Robert Dahlström

If you're outside of the onComponentTag you can do:
String cssClass = component.getMarkupAttributes().getString(class);

Regards
Robert

On 04/06/2011 08:36 AM, Wilhelmsen Tor Iver wrote:

1. get the existing class value,


Only when parsing the markup in onComponentTag().

- Tor Iver

-
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



Re: AttibuteModifier question

2011-04-06 Thread Ernesto Reinaldo Barreiro
use AttributeAppender?

Ernesto

On Wed, Apr 6, 2011 at 8:26 AM, drf davidrfi...@gmail.com wrote:
 Just as one can use

 component.add(new AttributeModifier(class, new Model()));

 to modify the css class for a component, is there a way to either
 1. get the existing class value,
 2. or alternativly to append a class to the existing css classes set for
 that component, rather than replacing the existing ones.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.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



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



Wiquery experiences

2011-04-06 Thread haiko

Hi,

We are thinking of using wiquery for a project. We are interested in  
the experiences of people using it. Does wiquery work in the major  
browsers (IE7, IE8, IE9, FF3 and Chrome)? Are there any complications  
when different versions of jquery are used on other places in the  
HTML? What is the version of Wicket you used it?


Please share your experiences.

Thanks in advance,

Haiko van der Schaaf


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



Re: Wiquery experiences

2011-04-06 Thread Maarten Billemont
Unless WiQuery has matured a *lot* lately and the code has been cleaned up 
significantly, I can't recommend it, personally.

Writing what should be JavaScript in your wicket Java code is quite 
out-of-place, and generally all you need to do is place your code where it 
belongs, in a .js or your markup.

There may be some odd cases here or there where tighter integration of jQuery 
and Wicket can be beneficial, but those can usually be resolved some other way.

I don't have enough experience or knowledge of the framework to cast a final 
vote though, all I'm saying is: beware of the quality of this library's code 
and make sure you actually need it first (I want to do jQuery stuff in my 
Wicket application is generally not reason enough).

On 06 Apr 2011, at 11:09, ha...@dds.nl wrote:

 Hi,
 
 We are thinking of using wiquery for a project. We are interested in the 
 experiences of people using it. Does wiquery work in the major browsers (IE7, 
 IE8, IE9, FF3 and Chrome)? Are there any complications when different 
 versions of jquery are used on other places in the HTML? What is the version 
 of Wicket you used it?
 
 Please share your experiences.
 
 Thanks in advance,
 
 Haiko van der Schaaf
 
 
 -
 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



Re: dynamic child in container

2011-04-06 Thread kamiseq
hi again,
so I really dont understand how to set hings up but I tried this yesterday
around midnight :] so please forgive me ...

let me explain again

I have simple webpage *DashboardPage* (1)

body
  a wicket:id=editwicket:message key=/w:m/a
/body

then I created a panel with a form *UserFormPanel*(2)

body
  wicket:panel
div class=popup
  form wicket:id=userData
input .. /
input type=submit /
  /form
  a wicket:id=cancelgo back/a
/div
  /wicket:panel
/body

in *DashboardPage* I created AjaxLink for *edit* and tried to add *
UserFormPanel* to requestTarget when link is clicked, but in turn wicket
refused that saying the component has no outputMarkupID set to true (but it
doesnt tell on which component I should set that property).
the other thing is that I need to assign some wicket:id to
*UserFormPanel*created in link callback. but this id does not
correspond to any id in
markup so I get (think I get:) an exception.

how to set components right?
I really cannot find anything on the web about this! is this so rare
situation in wicket world???

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Marek Šabo

Hi,

thank you, it helped. If that does not bother you, could you please 
elaborate a little bit?


Reqards,

Marek

On 04/05/2011 08:37 PM, Martin Grigorov wrote:

you should set
init-param org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM
with value == the one you would put in web.xml -  url-pattern

On Tue, Apr 5, 2011 at 6:30 PM, Marek Šaboms...@buk.cvut.cz  wrote:


Hi all,

I would like to know whether any of you ran into similar issue: I need
timer behaviour to repaint panel that displays some data/stats provided by a
network engine. When I run my app in tomcat or via mvn jetty:run as common
webapp it gets called.

But in my setup it's feasible to start embedded jetty, add wicket servlet
programatically (filter doesn't work, haven't investigated yet why) and
provide wicket with network engine's guice injector. This way I can see
pages, navigate and list active network session stats. But the javascript |
onTimer() method  won't be called (chrome, opera, no errors in js console).

Any suggestions?

Regards,

Marek

-
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



Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Martin Grigorov
WicketFilter needs to know the filter path it listens at.
By default it extracts this information from web.xml but since you don't use
web.xml you need to let Wicket know explicitly.

The sequence is:
1) WicketFilter.FILTER_MAPPING_PARAM
2) @ServletFilter's initParams (when Servlet 3.0 API is used +
wicketstuff-servlet3)
3) web.xml

wicket-guice has no integration with GuiceServlet so this is not extracted
from there.

On Wed, Apr 6, 2011 at 1:55 PM, Marek Šabo ms...@buk.cvut.cz wrote:

 Hi,

 thank you, it helped. If that does not bother you, could you please
 elaborate a little bit?

 Reqards,

 Marek


 On 04/05/2011 08:37 PM, Martin Grigorov wrote:

 you should set
 init-param
 org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM
 with value == the one you would put in web.xml -  url-pattern

 On Tue, Apr 5, 2011 at 6:30 PM, Marek Šaboms...@buk.cvut.cz  wrote:

  Hi all,

 I would like to know whether any of you ran into similar issue: I need
 timer behaviour to repaint panel that displays some data/stats provided
 by a
 network engine. When I run my app in tomcat or via mvn jetty:run as
 common
 webapp it gets called.

 But in my setup it's feasible to start embedded jetty, add wicket servlet
 programatically (filter doesn't work, haven't investigated yet why) and
 provide wicket with network engine's guice injector. This way I can see
 pages, navigate and list active network session stats. But the javascript
 |
 onTimer() method  won't be called (chrome, opera, no errors in js
 console).

 Any suggestions?

 Regards,

 Marek

 -
 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




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


Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Marek Šabo

Thank you for explanation.

On 04/06/2011 02:01 PM, Martin Grigorov wrote:

WicketFilter needs to know the filter path it listens at.
By default it extracts this information from web.xml but since you don't use
web.xml you need to let Wicket know explicitly.

The sequence is:
1) WicketFilter.FILTER_MAPPING_PARAM
2) @ServletFilter's initParams (when Servlet 3.0 API is used +
wicketstuff-servlet3)
3) web.xml

wicket-guice has no integration with GuiceServlet so this is not extracted
from there.

On Wed, Apr 6, 2011 at 1:55 PM, Marek Šaboms...@buk.cvut.cz  wrote:


Hi,

thank you, it helped. If that does not bother you, could you please
elaborate a little bit?

Reqards,

Marek


On 04/05/2011 08:37 PM, Martin Grigorov wrote:


you should set
init-param
org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM
with value == the one you would put in web.xml -   url-pattern

On Tue, Apr 5, 2011 at 6:30 PM, Marek Šaboms...@buk.cvut.cz   wrote:

  Hi all,

I would like to know whether any of you ran into similar issue: I need
timer behaviour to repaint panel that displays some data/stats provided
by a
network engine. When I run my app in tomcat or via mvn jetty:run as
common
webapp it gets called.

But in my setup it's feasible to start embedded jetty, add wicket servlet
programatically (filter doesn't work, haven't investigated yet why) and
provide wicket with network engine's guice injector. This way I can see
pages, navigate and list active network session stats. But the javascript
|
onTimer() method  won't be called (chrome, opera, no errors in js
console).

Any suggestions?

Regards,

Marek

-
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



Re: load list view when scroll

2011-04-06 Thread Flori
Hello Michael,

Thank you for your fast response.

I still didn't manage to solve the problem. 
I attached the code to see exactly the design and to explain better:

I have this ListView attached to a scroll (getBatchNumbers() is a model that
will return number of batches = total number of docs/50) 

new ListView(batchElem, getBatchNumbers()) {

private static final long serialVersionUID = 1L;

@Override
protected void populateItem(final ListItem item) {
final int batchNum = item.getIndex();
final Model loaded = new Model(Boolean.valueOf(batchNum 
PRELOAD_BATCHES_COUNT));
item.setOutputMarkupId(true);
item.add(new AttributeAppender(class, new Model() {
@Override
public String getObject() {
if (loaded.getObject().booleanValue()) {
return loaded;
}
return ;
}
},  ));

final Component comp;
if (_showGrid) {
comp = new GridBatch(content, loaded, batchNum);  

} else {
comp = new Batch(content, loaded, batchNum);  

}
item.add(comp);

item.add(new AjaxLink(showLink, new Model(show)) {

private static final long serialVersionUID = 1L;

@Override
public void onClick(final AjaxRequestTarget target) {   

loaded.setObject(Boolean.TRUE); 
target.addComponent(comp);
}

/**
 * {@inheritDoc}
 */
@Override
public boolean isVisible() {
return !loaded.getObject();
}
});
}
};

And the Batch class:
private Batch(final String id, final IModel show, final int batchNum) {
super(id);
setOutputMarkupId(true);
add(createHeightAppender());
add(createEmptyClassAppender());
_batchNum = batchNum;
_show = show;
addComponents();
}   
protected void addComponents() {
 add(createItemsList(););   
}

public ListView createItemsList() {
   return new ListView(item, createItemsForCurrentBatch()) {

private static final long serialVersionUID = 1L;

@Override
protected void populateItem(final ListItem item) {
item.add(createPanelForItem(batchItemContent,
_batchNum, item.getIndex(), item.getModel()));
}

@Override
public boolean isVisible() { 
  return _show.getObject();
}
};   
}
createItemsForCurrentBatch() will return a model which will load 50
documents once.

Considering this design, I will keep in memory all the loaded ListViews.
I tried to clear the list views previously loaded, but then I lose the model
attached to them and upon scrolling to them again, there is nothing
reloaded.
I can not use pagination, I have to keep the scroll.
Do you have any idea how can I clear (and if it's possible) the list views
previously loaded? But in such a manner that if I scroll to them again, to
reload the documents corresponding to the respective Batch?

Thank you very much!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-list-view-when-scroll-tp3428291p3430677.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: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
I'd really like to start my wicket app in a osgi (karaf) container.
My app uses also wicket-spring. What is the best way to do that now, with
wichet 1.5 rc3?

Thanls.

On Wed, Mar 16, 2011 at 2:25 PM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hello,

 The way releases have been working is that I take the current HEAD and then
 change the wicket.version to the current stable and the pom version to the
 next release.

 If you can commit your changes onto the master branch (wicket 1.5-SNAPSHOT)
 then I can create a new 1.5-rc2.1 point release to get the wicket-osgi
 module out into maven central. Just let me know when it works (i.e. mvn
 install works without error)

 You can either fork the repository on github and then do the change and
 file a ticket with a pull request or send a message to the dev list with
 your github username for push/pull access to the wicketstuff repository
 directly.

 Look at the 'Developer Information' section on the wiki here:
 https://github.com/wicketstuff/core/wiki for more details.

 Regards,

 Mike


  ok, I can take the pom from rc1 and adopt it for rc2 - shouldn't be
 problem since you did the work already. If it works and I find some time
 I'll try with github

 thanks and regards,
 eike

 On [Tue, 15.03.2011 22:10], Martin Grigorov wrote:

 Well, wicketstuff is hosted at GitHub and any user can contribute.
 If you have some time and willing to share your work with the community
 you
 can do it yourself.
 Otherwise just create a ticket in wicketstuff's issue tracking system and
 someone of us will do it when we have some time.

 Thanks for testing the RCs ! ;-)

 On Tue, Mar 15, 2011 at 9:21 PM, Eike Kettnern...@eknet.org  wrote:

  Hi Martin,

 thanks for your response and no need to apologize! It's good to have rcX
 candidate releases to play with so issues can be found.

 For me a wicket-osgi dependency would be great! And I really don't care
 about where to download :) I don't think that providing it from
 wicketstuff
 would bother users...

 If you decide to not support osgi out-of-the-box, it's still no problem
 to create an aggregate jar myself. I'd think most osgi users have to do
 this (unfortunately) quite often to add other  no-bundle-jars. But
 with a distributed jar, it's of course a lot easier - I would appreciate
 it (as probably other osgi users would).

 regards,
 Eike

 On [Tue, 15.03.2011 20:43], Martin Grigorov wrote:

 Hi Eike,

 Sorry that we broke OSGi support again.
 The problem was that many users wanted -sources and -javadoc for the
 aggregate .jar and it became a bit complex and confusing.

 I think we can add wicket-osgi project in wicketstuff/core repository

 that

 will do the same we did initially in WICKET-3088 and then you will use
 org.wicketstuff:wicket-osgi dependency instead. We release wicketstuff

 core

 projects few days after Wicket releases.

 Other opinions/suggestions ?

 martin-g

 On Tue, Mar 15, 2011 at 3:05 PM, Eike Kettnern...@eknet.org  wrote:

  Hi,

 I'm using wicket 1.5-RC1 in an OSGi container. There was an issue when
 upgrading related to package names
 (https://issues.apache.org/jira/browse/WICKET-3088)

 Now I tried upgrading to 1.5-rc2 and found that there is no aggregate
 jar file anymore. I then read the discussion-thread [discuss] How to
 resolve wicket aggregate classes / sources jar issues.
 (nabble:



 http://apache-wicket.1842946.n4.nabble.com/discuss-How-to-resolve-wicket-aggregate-classes-sources-jar-issues-td3234420.html
 )

 As it states, the aggregate jar has been removed from the wicket
 distribution. Now, this introduces the very same issues described in
 WICKET-3088 again.

 While I can just repackage wicket myself and create a aggregate jar to
 feed the osgi container, it is first more inconvenient :) and
 secondly,
 there is then no real reason to have the wicket-xxx jars export
 packages, as they won't work in an OSGi container one by one anyways.
 I
 cannot add all single jars to the osgi container, because of the

 clashes

 in export-package.

 so in summary, there is another use case where the aggregate jar is
 really helpful: when using wicket with osgi. But it only is, because
 the single wicket jars export the same packages (for example,
 wicket-request and wicket-core both export
 org.apache.wicket.request.handler).

 Are there any thoughts of adding this aggregate jar to the
 distribution
 back again?

 kind regards,
 eike

 -
 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.comhttp://jweekend.com/

 --
 email: e...@eknet.org   https://www.eknet.org  pgp: 481161A0

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

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Martin Grigorov
See RC1 o.a.w:wicket:pom.xml
You'll need to create your own project that will combine the all needed
.jars as we did in RC1.

On Wed, Apr 6, 2011 at 2:51 PM, Daniele Dellafiore
dani...@dellafiore.netwrote:

 I'd really like to start my wicket app in a osgi (karaf) container.
 My app uses also wicket-spring. What is the best way to do that now, with
 wichet 1.5 rc3?

 Thanls.

 On Wed, Mar 16, 2011 at 2:25 PM, Michael O'Cleirigh 
 michael.ocleir...@rivulet.ca wrote:

  Hello,
 
  The way releases have been working is that I take the current HEAD and
 then
  change the wicket.version to the current stable and the pom version to
 the
  next release.
 
  If you can commit your changes onto the master branch (wicket
 1.5-SNAPSHOT)
  then I can create a new 1.5-rc2.1 point release to get the wicket-osgi
  module out into maven central. Just let me know when it works (i.e. mvn
  install works without error)
 
  You can either fork the repository on github and then do the change and
  file a ticket with a pull request or send a message to the dev list with
  your github username for push/pull access to the wicketstuff repository
  directly.
 
  Look at the 'Developer Information' section on the wiki here:
  https://github.com/wicketstuff/core/wiki for more details.
 
  Regards,
 
  Mike
 
 
   ok, I can take the pom from rc1 and adopt it for rc2 - shouldn't be
  problem since you did the work already. If it works and I find some time
  I'll try with github
 
  thanks and regards,
  eike
 
  On [Tue, 15.03.2011 22:10], Martin Grigorov wrote:
 
  Well, wicketstuff is hosted at GitHub and any user can contribute.
  If you have some time and willing to share your work with the community
  you
  can do it yourself.
  Otherwise just create a ticket in wicketstuff's issue tracking system
 and
  someone of us will do it when we have some time.
 
  Thanks for testing the RCs ! ;-)
 
  On Tue, Mar 15, 2011 at 9:21 PM, Eike Kettnern...@eknet.org  wrote:
 
   Hi Martin,
 
  thanks for your response and no need to apologize! It's good to have
 rcX
  candidate releases to play with so issues can be found.
 
  For me a wicket-osgi dependency would be great! And I really don't
 care
  about where to download :) I don't think that providing it from
  wicketstuff
  would bother users...
 
  If you decide to not support osgi out-of-the-box, it's still no
 problem
  to create an aggregate jar myself. I'd think most osgi users have to
 do
  this (unfortunately) quite often to add other  no-bundle-jars. But
  with a distributed jar, it's of course a lot easier - I would
 appreciate
  it (as probably other osgi users would).
 
  regards,
  Eike
 
  On [Tue, 15.03.2011 20:43], Martin Grigorov wrote:
 
  Hi Eike,
 
  Sorry that we broke OSGi support again.
  The problem was that many users wanted -sources and -javadoc for the
  aggregate .jar and it became a bit complex and confusing.
 
  I think we can add wicket-osgi project in wicketstuff/core repository
 
  that
 
  will do the same we did initially in WICKET-3088 and then you will
 use
  org.wicketstuff:wicket-osgi dependency instead. We release
 wicketstuff
 
  core
 
  projects few days after Wicket releases.
 
  Other opinions/suggestions ?
 
  martin-g
 
  On Tue, Mar 15, 2011 at 3:05 PM, Eike Kettnern...@eknet.org
  wrote:
 
   Hi,
 
  I'm using wicket 1.5-RC1 in an OSGi container. There was an issue
 when
  upgrading related to package names
  (https://issues.apache.org/jira/browse/WICKET-3088)
 
  Now I tried upgrading to 1.5-rc2 and found that there is no
 aggregate
  jar file anymore. I then read the discussion-thread [discuss] How
 to
  resolve wicket aggregate classes / sources jar issues.
  (nabble:
 
 
 
 
 http://apache-wicket.1842946.n4.nabble.com/discuss-How-to-resolve-wicket-aggregate-classes-sources-jar-issues-td3234420.html
  )
 
  As it states, the aggregate jar has been removed from the wicket
  distribution. Now, this introduces the very same issues described in
  WICKET-3088 again.
 
  While I can just repackage wicket myself and create a aggregate jar
 to
  feed the osgi container, it is first more inconvenient :) and
  secondly,
  there is then no real reason to have the wicket-xxx jars export
  packages, as they won't work in an OSGi container one by one
 anyways.
  I
  cannot add all single jars to the osgi container, because of the
 
  clashes
 
  in export-package.
 
  so in summary, there is another use case where the aggregate jar is
  really helpful: when using wicket with osgi. But it only is, because
  the single wicket jars export the same packages (for example,
  wicket-request and wicket-core both export
  org.apache.wicket.request.handler).
 
  Are there any thoughts of adding this aggregate jar to the
  distribution
  back again?
 
  kind regards,
  eike
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: 

Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-06 Thread Martin Grigorov
(03:10:56 PM) pedrosans_: Hi, my reply in the users mailing list got
rejected again :S
(03:11:47 PM) pedrosans_: can someone reply Alexander for me?
(03:12:00 PM) pedrosans_: thread: Pre-Select CheckBox in
CheckBoxMultipleChoice?
(03:12:12 PM) pedrosans_: my reply: It is important to notify model changes
to components when we are responding a form submit for instance, because the
form component needs to have a change to cleanup the raw input in benefit of
the new value in the model. As in this usecase we want to pre-select a
value, modelChanged call is useless because we are rather initializing a
model than changing it.
(03:12:19 PM) pedrosans_: thanks!

On Wed, Apr 6, 2011 at 4:11 AM, Alexander Morozov 
alexander.v.moro...@gmail.com wrote:

 Pedro,

 should we notify multipleChoiceModel that model is changed ?
 checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel  );
 multipleChoiceModel.getObject().add( X );
 multipleChoiceModel.modelChanged();


 Pedro Santos wrote:
 
  add X in the CheckBoxMultipleChoice model collection. e.g.
 
  IModellt;Collectiongt; multipleChoiceModel = (...);
  checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel  );
  multipleChoiceModel.getObject().add( X );
 
 
  On Tue, Apr 5, 2011 at 2:57 PM, eugenebalt lt;eugeneb...@yahoo.comgt;
  wrote:
 
  gt; I have a CheckBoxMultipleChoice with some checkboxes.
  gt;
  gt; I also have a String, X. If there is a checkbox in the list whose
  title
  gt; matches X, then I have to pre-select it (select it in the model).
  gt;
  gt; Any idea how to do that? Thanks
  gt;
  gt; --
  gt; View this message in context:
  gt;
 
 http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428739.html
  gt; Sent from the Users forum mailing list archive at Nabble.com.
  gt;
  gt;
 -
  gt; To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  gt; For additional commands, e-mail: users-h...@wicket.apache.org
  gt;
  gt;
 
 
  --
  Pedro Henrique Oliveira dos Santos
 


 -
 --
 http://www.linkedin.com/in/amorozov
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3429710.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: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
mmm, can't really understand.

Anyway, I wanted to add that the point here is to deploy a jar on karaf, not
a war.
To be honest, the real advantage is to deploy a small jar on karaf that is
far better than a heavy war on a jee container.
My idea is to have karaf with all the wicket, spring and other deps, and
that's the easy part.

Then I need a way to start the WicketFilter in the Karaf context. Normally
the JEE container
looks for the web.xml, that in my case bring to the
SpringWebApplicationFactory and a single spring xml file and from there all
the rest.

But what if no one looks for the web.xml? Can I say to osgi that my jar is a
webapp? Or can I start it by hand in an activator or from another file
loaded by spring?

On Wed, Apr 6, 2011 at 3:57 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 See RC1 o.a.w:wicket:pom.xml
 You'll need to create your own project that will combine the all needed
 .jars as we did in RC1.

 On Wed, Apr 6, 2011 at 2:51 PM, Daniele Dellafiore
 dani...@dellafiore.netwrote:

  I'd really like to start my wicket app in a osgi (karaf) container.
  My app uses also wicket-spring. What is the best way to do that now, with
  wichet 1.5 rc3?
 
  Thanls.
 
  On Wed, Mar 16, 2011 at 2:25 PM, Michael O'Cleirigh 
  michael.ocleir...@rivulet.ca wrote:
 
   Hello,
  
   The way releases have been working is that I take the current HEAD and
  then
   change the wicket.version to the current stable and the pom version to
  the
   next release.
  
   If you can commit your changes onto the master branch (wicket
  1.5-SNAPSHOT)
   then I can create a new 1.5-rc2.1 point release to get the wicket-osgi
   module out into maven central. Just let me know when it works (i.e. mvn
   install works without error)
  
   You can either fork the repository on github and then do the change and
   file a ticket with a pull request or send a message to the dev list
 with
   your github username for push/pull access to the wicketstuff repository
   directly.
  
   Look at the 'Developer Information' section on the wiki here:
   https://github.com/wicketstuff/core/wiki for more details.
  
   Regards,
  
   Mike
  
  
ok, I can take the pom from rc1 and adopt it for rc2 - shouldn't be
   problem since you did the work already. If it works and I find some
 time
   I'll try with github
  
   thanks and regards,
   eike
  
   On [Tue, 15.03.2011 22:10], Martin Grigorov wrote:
  
   Well, wicketstuff is hosted at GitHub and any user can contribute.
   If you have some time and willing to share your work with the
 community
   you
   can do it yourself.
   Otherwise just create a ticket in wicketstuff's issue tracking system
  and
   someone of us will do it when we have some time.
  
   Thanks for testing the RCs ! ;-)
  
   On Tue, Mar 15, 2011 at 9:21 PM, Eike Kettnern...@eknet.org
  wrote:
  
Hi Martin,
  
   thanks for your response and no need to apologize! It's good to have
  rcX
   candidate releases to play with so issues can be found.
  
   For me a wicket-osgi dependency would be great! And I really don't
  care
   about where to download :) I don't think that providing it from
   wicketstuff
   would bother users...
  
   If you decide to not support osgi out-of-the-box, it's still no
  problem
   to create an aggregate jar myself. I'd think most osgi users have to
  do
   this (unfortunately) quite often to add other  no-bundle-jars. But
   with a distributed jar, it's of course a lot easier - I would
  appreciate
   it (as probably other osgi users would).
  
   regards,
   Eike
  
   On [Tue, 15.03.2011 20:43], Martin Grigorov wrote:
  
   Hi Eike,
  
   Sorry that we broke OSGi support again.
   The problem was that many users wanted -sources and -javadoc for
 the
   aggregate .jar and it became a bit complex and confusing.
  
   I think we can add wicket-osgi project in wicketstuff/core
 repository
  
   that
  
   will do the same we did initially in WICKET-3088 and then you will
  use
   org.wicketstuff:wicket-osgi dependency instead. We release
  wicketstuff
  
   core
  
   projects few days after Wicket releases.
  
   Other opinions/suggestions ?
  
   martin-g
  
   On Tue, Mar 15, 2011 at 3:05 PM, Eike Kettnern...@eknet.org
   wrote:
  
Hi,
  
   I'm using wicket 1.5-RC1 in an OSGi container. There was an issue
  when
   upgrading related to package names
   (https://issues.apache.org/jira/browse/WICKET-3088)
  
   Now I tried upgrading to 1.5-rc2 and found that there is no
  aggregate
   jar file anymore. I then read the discussion-thread [discuss] How
  to
   resolve wicket aggregate classes / sources jar issues.
   (nabble:
  
  
  
  
 
 http://apache-wicket.1842946.n4.nabble.com/discuss-How-to-resolve-wicket-aggregate-classes-sources-jar-issues-td3234420.html
   )
  
   As it states, the aggregate jar has been removed from the wicket
   distribution. Now, this introduces the very same issues described
 in
   WICKET-3088 again.
  
   While I can just repackage wicket 

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Martin Grigorov
I'm not an OSGi user but here is what I'll do.

1) create a new Maven project with packaging type 'pom'
2) combine all wicket jars in one (uber-jar)
 there are several approaches here:
1) maven-shade-plugin
2) the way we did it in RC1 with maven-dependency-plugin: see
http://repo2.maven.org/maven2/org/apache/wicket/wicket/1.5-RC1/wicket-1.5-RC1.pom

Here check that works with simple Wicket app (e.g. the quickstart).

Creating one big jar with all dependendies is against OSGi idea. The goal is
to be able to replace dependencies without restarting, e.g. upgrade the
service layer without undeploying the presentation.
But if you still want to do it:  start adding more dependencies to be packed
in the uber jar (spring, hibernate)

About WicketFilter:
- you can use embedded Jetty or Guice Filter
and org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM (I
explained this earlier today in another thread)
- OSGi 4.1+ has the notion of enterprise OSGi and you can use plain OSGi
gymnastics to do that (I have no experience at all in this)

On Wed, Apr 6, 2011 at 3:15 PM, Daniele Dellafiore
dani...@dellafiore.netwrote:

 mmm, can't really understand.

 Anyway, I wanted to add that the point here is to deploy a jar on karaf,
 not
 a war.
 To be honest, the real advantage is to deploy a small jar on karaf that is
 far better than a heavy war on a jee container.
 My idea is to have karaf with all the wicket, spring and other deps, and
 that's the easy part.

 Then I need a way to start the WicketFilter in the Karaf context. Normally
 the JEE container
 looks for the web.xml, that in my case bring to the
 SpringWebApplicationFactory and a single spring xml file and from there all
 the rest.

 But what if no one looks for the web.xml? Can I say to osgi that my jar is
 a
 webapp? Or can I start it by hand in an activator or from another file
 loaded by spring?

 On Wed, Apr 6, 2011 at 3:57 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  See RC1 o.a.w:wicket:pom.xml
  You'll need to create your own project that will combine the all needed
  .jars as we did in RC1.
 
  On Wed, Apr 6, 2011 at 2:51 PM, Daniele Dellafiore
  dani...@dellafiore.netwrote:
 
   I'd really like to start my wicket app in a osgi (karaf) container.
   My app uses also wicket-spring. What is the best way to do that now,
 with
   wichet 1.5 rc3?
  
   Thanls.
  
   On Wed, Mar 16, 2011 at 2:25 PM, Michael O'Cleirigh 
   michael.ocleir...@rivulet.ca wrote:
  
Hello,
   
The way releases have been working is that I take the current HEAD
 and
   then
change the wicket.version to the current stable and the pom version
 to
   the
next release.
   
If you can commit your changes onto the master branch (wicket
   1.5-SNAPSHOT)
then I can create a new 1.5-rc2.1 point release to get the
 wicket-osgi
module out into maven central. Just let me know when it works (i.e.
 mvn
install works without error)
   
You can either fork the repository on github and then do the change
 and
file a ticket with a pull request or send a message to the dev list
  with
your github username for push/pull access to the wicketstuff
 repository
directly.
   
Look at the 'Developer Information' section on the wiki here:
https://github.com/wicketstuff/core/wiki for more details.
   
Regards,
   
Mike
   
   
 ok, I can take the pom from rc1 and adopt it for rc2 - shouldn't be
problem since you did the work already. If it works and I find some
  time
I'll try with github
   
thanks and regards,
eike
   
On [Tue, 15.03.2011 22:10], Martin Grigorov wrote:
   
Well, wicketstuff is hosted at GitHub and any user can contribute.
If you have some time and willing to share your work with the
  community
you
can do it yourself.
Otherwise just create a ticket in wicketstuff's issue tracking
 system
   and
someone of us will do it when we have some time.
   
Thanks for testing the RCs ! ;-)
   
On Tue, Mar 15, 2011 at 9:21 PM, Eike Kettnern...@eknet.org
   wrote:
   
 Hi Martin,
   
thanks for your response and no need to apologize! It's good to
 have
   rcX
candidate releases to play with so issues can be found.
   
For me a wicket-osgi dependency would be great! And I really don't
   care
about where to download :) I don't think that providing it from
wicketstuff
would bother users...
   
If you decide to not support osgi out-of-the-box, it's still no
   problem
to create an aggregate jar myself. I'd think most osgi users have
 to
   do
this (unfortunately) quite often to add other  no-bundle-jars.
 But
with a distributed jar, it's of course a lot easier - I would
   appreciate
it (as probably other osgi users would).
   
regards,
Eike
   
On [Tue, 15.03.2011 20:43], Martin Grigorov wrote:
   
Hi Eike,
   
Sorry that we broke OSGi support again.
The problem was that many users wanted -sources and 

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread James Carman
As the voting stands right now, it looks like option 2 is the winner
(I counted Matthew as +1 for option 1 even though he didn't really
cast a vote, but his response indicated support for option 1):

Option 1: 4 +1s
Option 2: 6 +1s

This isn't an official vote, per se, but it is an informative poll
that will help the core developers figure out what the heck to do with
this issue.  Thanks for all who voted!



On Fri, Apr 1, 2011 at 1:34 PM, James Carman ja...@carmanconsulting.com wrote:
 This has been discussed before
 (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find
 the old vote thread to see what folks think.  The problem is that a
 checkbox is a weird bird when it comes to HTTP.  If it's unchecked, it
 doesn't send a value which makes Wicket think you haven't provided a
 value for that input field.  Right now, if you call setRequired(true)
 on a CheckBox, it's going to require the user to actually check the
 box.  What do folks think the desired behavior should be?

 1.  The current approach is correct, requiring a checkbox means
 requiring that it be checked.

 2.  A checkbox shouldn't be able to be required.  You can't *not*
 provide a value (it's binary) for a checkbox, so therefore it always
 should satisfy the required requirement.


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



Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread mbosteels . dns
+1 for 2nd option

-Original Message-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 5 Apr 2011 11:46:40 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

+1 for option 2

-igor


On Fri, Apr 1, 2011 at 10:34 AM, James Carman
ja...@carmanconsulting.com wrote:
 This has been discussed before
 (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find
 the old vote thread to see what folks think.  The problem is that a
 checkbox is a weird bird when it comes to HTTP.  If it's unchecked, it
 doesn't send a value which makes Wicket think you haven't provided a
 value for that input field.  Right now, if you call setRequired(true)
 on a CheckBox, it's going to require the user to actually check the
 box.  What do folks think the desired behavior should be?

 1.  The current approach is correct, requiring a checkbox means
 requiring that it be checked.

 2.  A checkbox shouldn't be able to be required.  You can't *not*
 provide a value (it's binary) for a checkbox, so therefore it always
 should satisfy the required requirement.

 -
 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



Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread Matthew Pennington

On 06/04/2011 16:53, James Carman wrote:

As the voting stands right now, it looks like option 2 is the winner
(I counted Matthew as +1 for option 1 even though he didn't really
cast a vote, but his response indicated support for option 1):
I was convinced by Igor's comments to change my mind if that helps at 
all (vote for option 2). But it's a pretty busy mailing list and I felt 
if I posted just to say Having thought about it, I now agree with 
eveyrone who is arguing for consistency of framework that would be 
unhelpful. I was hoping to just keep quiet and avoid drawing any more 
attention to the imbalance between the size of my ego and the size of my 
experience with Wicket. ;)


Matt


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



Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
 yes the idea is not to have the huber jar, it's all about this, is the main
feature :)
some guys in the felix maling list suggested me that's actually possible and
supported, it's called WAB, that's a war without /lib (a partially reverse
recursive achronim for A Better War)

http://old.nabble.com/A-better-life%3A-quick-webapp-deploy-to31334158.html

I'll go for that tomorrow.

On Wed, Apr 6, 2011 at 4:27 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 I'm not an OSGi user but here is what I'll do.

 1) create a new Maven project with packaging type 'pom'
 2) combine all wicket jars in one (uber-jar)
  there are several approaches here:
 1) maven-shade-plugin
 2) the way we did it in RC1 with maven-dependency-plugin: see

 http://repo2.maven.org/maven2/org/apache/wicket/wicket/1.5-RC1/wicket-1.5-RC1.pom

 Here check that works with simple Wicket app (e.g. the quickstart).

 Creating one big jar with all dependendies is against OSGi idea. The goal
 is
 to be able to replace dependencies without restarting, e.g. upgrade the
 service layer without undeploying the presentation.
 But if you still want to do it:  start adding more dependencies to be
 packed
 in the uber jar (spring, hibernate)

 About WicketFilter:
 - you can use embedded Jetty or Guice Filter
 and org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM (I
 explained this earlier today in another thread)
 - OSGi 4.1+ has the notion of enterprise OSGi and you can use plain OSGi
 gymnastics to do that (I have no experience at all in this)






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



Re: Wiquery experiences

2011-04-06 Thread Bruno Borges
Most of the things you want to do with jQuery, you don't need a library for.

I totally agree with Maarten


Bruno Borges
www.brunoborges.com.br
+55 21 76727099

The glory of great men should always be
measured by the means they have used to
acquire it.
 - Francois de La Rochefoucauld



On Wed, Apr 6, 2011 at 6:15 AM, Maarten Billemont lhun...@gmail.com wrote:

 Unless WiQuery has matured a *lot* lately and the code has been cleaned up
 significantly, I can't recommend it, personally.

 Writing what should be JavaScript in your wicket Java code is quite
 out-of-place, and generally all you need to do is place your code where it
 belongs, in a .js or your markup.

 There may be some odd cases here or there where tighter integration of
 jQuery and Wicket can be beneficial, but those can usually be resolved some
 other way.

 I don't have enough experience or knowledge of the framework to cast a
 final vote though, all I'm saying is: beware of the quality of this
 library's code and make sure you actually need it first (I want to do jQuery
 stuff in my Wicket application is generally not reason enough).

 On 06 Apr 2011, at 11:09, ha...@dds.nl wrote:

  Hi,
 
  We are thinking of using wiquery for a project. We are interested in the
 experiences of people using it. Does wiquery work in the major browsers
 (IE7, IE8, IE9, FF3 and Chrome)? Are there any complications when different
 versions of jquery are used on other places in the HTML? What is the version
 of Wicket you used it?
 
  Please share your experiences.
 
  Thanks in advance,
 
  Haiko van der Schaaf
 
 
  -
  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




Re: Wiquery experiences

2011-04-06 Thread msj121
I both agree and disagree with the aforementioned comments.

I don't think anyone would disagree that writing javascript from wicket or
using a decorator to write javascript is wrong. In fact quite often I may
not know the id of an object until run-time and I may want the javascript to
run on a specific textfield with no extra class names or additional tags
marking it. To say that you need an extra .js file for a one-line or even 20
line simple js command is arguable I think.



That being said, if you know javascript or jquery, probably WiQuery is not
the most necessary, it is really an object oriented interface to jquery, not
much more as I recall.


The best advantage to wiquery I find is that JQuery at page ready can run
numerous sets of commands All you need to do with WiQuery is add these
commands and they are all grouped together and run in a single document
ready function. Similarly WiQuery will take care of keeping track of what
object id to run the script against, javascript files to import etc It
does simplify things, but do you NEED another library, some people want to
keep as few dependencies as possible, some don't care.


Remember the real engine is JQuery, WiQuery is just an interface to
simplify. But look at writing javascript plainly in Wicket. If it is easy
for you, probably don't bother, but if your getting a headache you might
want to use WiQuery.

My main fear is how often it may be updated and how long will it be around.
I have WiQuery in a current project I may take it out, I notice I mostly
have been writing my own jquery anyway.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wiquery-experiences-tp3430320p3432209.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



How to know what RadioGroup was selected?

2011-04-06 Thread Paolo
I implemented this example in my application

https://cwiki.apache.org/WICKET/using-radiogroups.html

But, how I can know what radio button of radiogroup the user selected?

This is a part of the html code:

   span wicket:id=group
input wicket:id=1 type=radio/
input wicket:id=2 type=radio/
input wicket:id=3 type=radio/
input wicket:id=4 type=radio/
  /span

This is a part of the java code:


final Pagamento bean=new Pagamento();
RadioGroup myInt = new RadioGroup(group, new PropertyModel(bean, 
myInt));
myInt.add(new Radio(1, new Model(1)));
myInt.add(new Radio(2, new Model(2)));
myInt.add(new Radio(3, new Model(3)));
myInt.add(new Radio(4, new Model(4)));
form.add(myInt);

...

   form.add(new Button(order) {
  @Override
  public void onSubmit() {
  
  final String pagamentoSTR = bean.toString();

System.out.println (Tipo pagamento:+pagamentoSTR);
...

This is the java code for the class Pagamento:
--
package org.wicket.example;

import java.io.Serializable;

public class Pagamento implements Serializable {
private Integer myInt;
public void setMyInt(Integer myInt) {
this.myInt=myInt;
}
public Integer getMyInt() {
return myInt;
}
  
}

I have no errors, but in the console i got:
Tipo pagamento:org.wicket.example.Pagamento@5bee9e20

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



Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
What is the value of myInt?  That should tell you which one was selected.

On Wed, Apr 6, 2011 at 10:15 PM, Paolo irresistible...@gmail.com wrote:
 I implemented this example in my application

 https://cwiki.apache.org/WICKET/using-radiogroups.html

 But, how I can know what radio button of radiogroup the user selected?

 This is a part of the html code:
 
   span wicket:id=group
    input wicket:id=1 type=radio/
    input wicket:id=2 type=radio/
    input wicket:id=3 type=radio/
    input wicket:id=4 type=radio/
  /span

 This is a part of the java code:
 

    final Pagamento bean=new Pagamento();
    RadioGroup myInt = new RadioGroup(group, new PropertyModel(bean, 
 myInt));
    myInt.add(new Radio(1, new Model(1)));
    myInt.add(new Radio(2, new Model(2)));
    myInt.add(new Radio(3, new Model(3)));
    myInt.add(new Radio(4, new Model(4)));
    form.add(myInt);

 ...

   form.add(new Button(order) {
      @Override
      public void onSubmit() {

          final String pagamentoSTR = bean.toString();

        System.out.println (Tipo pagamento:+pagamentoSTR);
 ...

 This is the java code for the class Pagamento:
 --
 package org.wicket.example;

 import java.io.Serializable;

 public class Pagamento implements Serializable {
            private Integer myInt;
            public void setMyInt(Integer myInt) {
                this.myInt=myInt;
            }
            public Integer getMyInt() {
                return myInt;
            }

 }

 I have no errors, but in the console i got:
 Tipo pagamento:org.wicket.example.Pagamento@5bee9e20

 -
 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



Re: How to know what RadioGroup was selected?

2011-04-06 Thread Paolo
Alle giovedì 07 aprile 2011, James Carman ha scritto:
 What is the value of myInt?  That should tell you which one was selected.
 
 On Wed, Apr 6, 2011 at 10:15 PM, Paolo irresistible...@gmail.com wrote:
  I implemented this example in my application
 
  https://cwiki.apache.org/WICKET/using-radiogroups.html
 
  But, how I can know what radio button of radiogroup the user selected?
 
Great!! You was very fast to reply! And I solved my problem with:

System.out.println (Tipo pagamento:+bean.getMyInt());

Thank you very much!!!

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



[ANNOUNCE] Wicketopia 0.9.2 Released...

2011-04-06 Thread James Carman
Wicketopia is a Rapid Application Development (RAD) library for
Wicket.  The documentation is available at:

http://wicketopia.sourceforge.net

The official release will be available in the main maven repository
shortly, but you can download it via SVN (and run the example
application) by doing:

svn co 
http://wicketopia.svn.sourceforge.net/svnroot/wicketopia/tags/wicketopia-parent-0.9.2/
wicketopia

This release adds Joda Time and Spring Security support.  I am still
working on the documentation.

Thanks,

James

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



Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
On Wed, Apr 6, 2011 at 10:28 PM, Paolo irresistible...@gmail.com wrote:
 Great!! You was very fast to reply! And I solved my problem with:

 System.out.println (Tipo pagamento:+bean.getMyInt());

 Thank you very much!!!


No problem.  That's what Wicket is all about, models.  Your RadioGroup
edits the model you give it, which in your case was a property model
pointing to the myInt property on your bean.  I would suggest you
check out the Wicket Wiki pages, especially:

https://cwiki.apache.org/WICKET/more-on-models.html

Enjoy and Happy Wicketeering!

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