Accesing Wicket Session from a non-wicket filter - Suggestions

2008-04-15 Thread mfs

Guys, 

Re-posting this with un-necessory info taken out..

I have a non-wicket Filter which is intercepting all request to my
wicket-app. In the filter i would want to set some attributes to my wicket
WebSession.

Now the problem is that for the first request to the application
(intercepted by the filter), the wicket session is yet not created, and
hence i get this error you can only locate or create sessions in the
context of a request cycle on doing a Session.get(). Let me add that am
already using WicketSessionFilter which is exposing the WebSession to my
non-wicket Filter. The problem would be just for the first request, whereas
all subsequent request should work.

Any suggestion/work-arounds ?

Thanks in advance 

-- 
View this message in context: 
http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16695949.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Messages with labels

2008-04-15 Thread Java Programmer
I have solved it with maybe not elegant way but working:
private String getComponentErrorMessage(String componentPath, String
keyWithLabel, String label) {
Component component =
getTester().getComponentFromLastRenderedPage(componentPath);
String labeledMessage = component.getString(keyWithLabel);
if(label != null) {
labeledMessage = labeledMessage.replaceAll(\\$\\{label\\},
component.getString(label));
}
return labeledMessage;
}

On Mon, Apr 14, 2008 at 3:32 PM, Java Programmer [EMAIL PROTECTED] wrote:
 Hello,
  How can I in unit tests check if the messages with $label are
  displayed on page eg.:
  add_advert.street=Street
  add_advert.street.Required=Field '${label}' is required.

  in unit tests:
  getWicketTester().assertErrorMessages( new String[] {
 
 getWicketTester().getComponentFromLastRenderedPage(add_advert:subject).getString(add_advert.street.Required)
  });

  That has not resolve message for component but expected still is Field
  '${label}' is required. not Field 'Street' is required.
  How can I change this?

  Best regards,
  Adr


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accesing Wicket Session from a non-wicket filter - Suggestions

2008-04-15 Thread Igor Vaynberg
use session.exists() to test if the session is there or not

-igor


On Mon, Apr 14, 2008 at 11:34 PM, mfs [EMAIL PROTECTED] wrote:

  Guys,

  Re-posting this with un-necessory info taken out..

  I have a non-wicket Filter which is intercepting all request to my
  wicket-app. In the filter i would want to set some attributes to my wicket
  WebSession.

  Now the problem is that for the first request to the application
  (intercepted by the filter), the wicket session is yet not created, and
  hence i get this error you can only locate or create sessions in the
  context of a request cycle on doing a Session.get(). Let me add that am
  already using WicketSessionFilter which is exposing the WebSession to my
  non-wicket Filter. The problem would be just for the first request, whereas
  all subsequent request should work.

  Any suggestion/work-arounds ?

  Thanks in advance

  --
  View this message in context: 
 http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16695949.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WicketTester not respecting required textfields

2008-04-15 Thread Java Programmer
Hello,
I'm using 1.3.2 version, I have form with several required elements:
private TextField getSubjectTF(final Form form) {
TextField subject = new TextField(SUBJECT);
subject.setRequired(true);
return subject;
}

private DropDownChoice getConditionDDC(Form form) {
DropDownChoice _conditionDDC = new DropDownChoice(CONDITION,
Arrays.asList(Condition.values()));
_conditionDDC.setChoiceRenderer(new IChoiceRenderer() {
public Object getDisplayValue(Object o) {
Condition condition = (Condition) o;
return getString(Condition.getKey(condition));
}

public String getIdValue(Object o, int i) {
Condition condition = (Condition) o;
return condition.toString();
}
});
_conditionDDC.setRequired(true);
return _conditionDDC;
}

I have tests for this page:
@Test public void testRequiredFieldsSubmit() {
PageParameters parameters = new PageParameters();
parameters.put(category, 1000);
getTester().startPage(AddAdvertisement.class, parameters);
FormTester form = 
getTester().newFormTester(AddAdvertisement.ADD_ADVERT);
form.submit();
getTester().assertNoInfoMessage();
getTester().assertErrorMessages( new String[] {

getComponentErrorMessage(AddAdvertisement.ADD_ADVERT + :subject,
add_advert.subject.Required, add_advert.subject),

getComponentErrorMessage(AddAdvertisement.ADD_ADVERT +
:condition, add_advert.condition.Required, add_advert.condition)
});
}

When launching this test I got all message errors for DropDownChoice
elements which are required, but not for any element which is
TextField. Strange because on live page the errors are also for
TextField as it should be done.
Anybody can explain this?

Best regards,
Adr

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CheckGroup in a DataView with another CheckGroup

2008-04-15 Thread Dreamltf

I found the better way

#AllowModel.class

import java.io.Serializable;
import java.util.ArrayList;

public class AllowModel implements Serializable {

private static final long serialVersionUID = 1L;

private Long id = null;

private ArrayList list = new ArrayList();

public AllowModel() {
super();
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public ArrayList getList() {
return list;
}

public void setList(ArrayList list) {
this.list = list;
}

}

#init modelin populateItem
AllowModel tempmodule = new AllowModel();
tempmodule.setId(tempdbmap.getRole());
allowmap.put(tempdbmap.getSerialID(), tempmodule);

#role Labelin Form
Label role = new Label(role, new PropertyModel((AllowModel)
allowmap.get(tempdbmap.getSerialID()),id));
arg0.add(role);

#othergroupin DataView
CheckGroup othergroup = new CheckGroup(othergroup,new
PropertyModel((AllowModel) allowmap.get(tempdbmap.getSerialID()), list));
othercontainer.add(othergroup);


Dreamltf wrote:
 
 Thanks for your reply.
 
 I upgraded to version 1.3.2, but still no help.
 
 So, I changed a way to get the value
 
 private HashMap allowmap = new HashMap();
 
 #allowgroupin Form
 CheckGroup allowgroup = new CheckGroup(allowgroup, new ArrayList());
 
 #othergroupin DataView
 allowmap.put(item.getIndex(), new ArrayList());
 CheckGroup othergroup = new CheckGroup(othergroup, (List)
 allowmap.get(item.getIndex()));
 item.add(othergroup);
 
 But I don't know is this a good way
 
 
 igor.vaynberg wrote:
 
 we have just released 1.2.7 which is the last 1.2.x release we will make.
 
 there is a patch on how to make this work in jira assigned to 1.3, you
 can take that and roll your own checkgroup/check variants.
 
 -igor
 
 
 On Thu, Mar 27, 2008 at 1:41 AM, Dreamltf [EMAIL PROTECTED] wrote:

  Hi all,

  I want to use a CheckGroup (allowgroup) with a DataView, and there is
  another CheckGroup (othergroup) in the inside of the DataView.
  I can get the allowgroup's value,
  but I can't get the othergroup's value.

  submitformForm
  allowgroupCheckGroup
 allowselectorCheckGroupSelector
 sortuidLabel
 sortroleLabel
 commentsDataView
 allowcheckCheck
 uidLabel
 roleLabel
 othergroupCheckGroup
 otheraddCheck
 otherdeleteCheck
 otherqueryCheck
 othereditCheck
 otherselectorCheckGroupSelector
 navigator

  I use a HashMap to be a Model Like this.

  CheckGroup allowgroup = new CheckGroup(allowgroup, new
  Model((Serializable) othermap.keySet()));
  submitform.add(allowgroup);

  CheckGroup othergroup = new CheckGroup(othergroup,
 new
 ArrayList());
 arg0.add(othergroup);

  http://www.nabble.com/file/p16323358/checkbox_with_dataview.jpg

  Wicket1.2.6
  Thanks for help!!
  --
  View this message in context:
 http://www.nabble.com/CheckGroup-in-a-DataView-with-another-CheckGroup-tp16323358p16323358.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/CheckGroup-in-a-DataView-with-another-CheckGroup-tp16323358p16696196.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CheckGroup in a DataView with another CheckGroup

2008-04-15 Thread Dreamltf

I found the better way

#AllowModel.class

import java.io.Serializable;
import java.util.ArrayList;

public class AllowModel implements Serializable {

private static final long serialVersionUID = 1L;

private Long id = null;

private ArrayList list = new ArrayList();

public AllowModel() {
super();
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public ArrayList getList() {
return list;
}

public void setList(ArrayList list) {
this.list = list;
}

}

#init modelin populateItem
AllowModel tempmodule = new AllowModel();
tempmodule.setId(tempdbmap.getRole());
allowmap.put(tempdbmap.getSerialID(), tempmodule);

#role Labelin Form
Label role = new Label(role, new PropertyModel((AllowModel)
allowmap.get(tempdbmap.getSerialID()),id));
arg0.add(role);

#othergroupin DataView
CheckGroup othergroup = new CheckGroup(othergroup,new
PropertyModel((AllowModel) allowmap.get(tempdbmap.getSerialID()), list));
othercontainer.add(othergroup);



Dreamltf wrote:
 
 Thanks for your reply.
 
 I upgraded to version 1.3.2, but still no help.
 
 So, I changed a way to get the value
 
 private HashMap allowmap = new HashMap();
 
 #allowgroupin Form
 CheckGroup allowgroup = new CheckGroup(allowgroup, new ArrayList());
 
 #othergroupin DataView
 allowmap.put(item.getIndex(), new ArrayList());
 CheckGroup othergroup = new CheckGroup(othergroup, (List)
 allowmap.get(item.getIndex()));
 item.add(othergroup);
 
 But I don't know is this a good way
 
 
 igor.vaynberg wrote:
 
 we have just released 1.2.7 which is the last 1.2.x release we will make.
 
 there is a patch on how to make this work in jira assigned to 1.3, you
 can take that and roll your own checkgroup/check variants.
 
 -igor
 
 
 On Thu, Mar 27, 2008 at 1:41 AM, Dreamltf [EMAIL PROTECTED] wrote:

  Hi all,

  I want to use a CheckGroup (allowgroup) with a DataView, and there is
  another CheckGroup (othergroup) in the inside of the DataView.
  I can get the allowgroup's value,
  but I can't get the othergroup's value.

  submitformForm
  allowgroupCheckGroup
 allowselectorCheckGroupSelector
 sortuidLabel
 sortroleLabel
 commentsDataView
 allowcheckCheck
 uidLabel
 roleLabel
 othergroupCheckGroup
 otheraddCheck
 otherdeleteCheck
 otherqueryCheck
 othereditCheck
 otherselectorCheckGroupSelector
 navigator

  I use a HashMap to be a Model Like this.

  CheckGroup allowgroup = new CheckGroup(allowgroup, new
  Model((Serializable) othermap.keySet()));
  submitform.add(allowgroup);

  CheckGroup othergroup = new CheckGroup(othergroup,
 new
 ArrayList());
 arg0.add(othergroup);

  http://www.nabble.com/file/p16323358/checkbox_with_dataview.jpg

  Wicket1.2.6
  Thanks for help!!
  --
  View this message in context:
 http://www.nabble.com/CheckGroup-in-a-DataView-with-another-CheckGroup-tp16323358p16323358.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/CheckGroup-in-a-DataView-with-another-CheckGroup-tp16323358p16696197.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CheckGroup in a DataView with another CheckGroup

2008-04-15 Thread Dreamltf

#AllowModel.class
import java.io.Serializable;
import java.util.ArrayList;

public class AllowModel implements Serializable {

private static final long serialVersionUID = 1L;

private Long id = null;

private ArrayList list = new ArrayList();

public AllowModel() {
super();
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public ArrayList getList() {
return list;
}

public void setList(ArrayList list) {
this.list = list;
}

}

#init modelin populateItem
AllowModel tempmodule = new AllowModel();
tempmodule.setId(tempdbmap.getRole());
allowmap.put(tempdbmap.getSerialID(), tempmodule);

#role Labelin Form
Label role = new Label(role, new PropertyModel((AllowModel)
allowmap.get(tempdbmap.getSerialID()),id));
arg0.add(role);

#othergroupin DataView
CheckGroup othergroup = new CheckGroup(othergroup,new
PropertyModel((AllowModel) allowmap.get(tempdbmap.getSerialID()), list));
othercontainer.add(othergroup);
-- 
View this message in context: 
http://www.nabble.com/CheckGroup-in-a-DataView-with-another-CheckGroup-tp16323358p16696200.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-15 Thread Erik van Oosten
Johan Compagner wrote:
 So then we should give a Page a locale field.
I am in favour of doing this, even if Sebastiaan's problem is solved
differently. I have a part of my site that is multilingual (the public
pages), and another part is not (the admin screens, in English).
Unfortunately when the locale is say Dutch, a lot of default Wicket
texts are in Dutch while the rest of the page is in English.

Regards,
 Erik.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: page reload

2008-04-15 Thread Maurice Marrink
Even though version 1.3.3 has been released 1.3.2 is fine.
Theoretically only this is required:
@Override
public final void onClick() {
  BaseGroup group = (BaseGroup) getModelObject();
  groupManager.deleteGroup(group.getId());
}

But it might be possible the model of the listview is loaded before
you delete the item, in that case the listview won't show the current
state until the model is detached.
could you try the following:
@Override
public final void onClick() {
  BaseGroup group = (BaseGroup) getModelObject();
  groupManager.deleteGroup(group.getId());
  listview.removeAll();
  listview.getModel().detach();
}

Maurice

On Mon, Apr 14, 2008 at 3:28 PM, Milan Křápek [EMAIL PROTECTED] wrote:
 I am using the normal Link. My ListView Model takes data from 
 LoadableDetachableModel. I think if the web page should refresh each time the 
 Link is clicked, than the LoadableDetachableModel::load() method should be 
 called but this does not happen.
  Is it possible that I am  using to old wicket version. I am using wicket 
 1.3.2.

  If the version is right, please just take the fact that for some reason the 
 refresh of web page did not proceed. Is there any way how to reload the page 
 manualy in the onClick event of normal Link object?

  As I write in previos mails I try call

  @Override
  public final void onClick() {
BaseGroup group = (BaseGroup) getModelObject();
groupManager.deleteGroup(group.getId());
getPage().modelChanged();
setResponsePage(getPage());
setRedirect(true);
  }

  but this does not work too. Any idea how to make it different way?

  hierarchy of my page is

  Page
  ListView
  ListItem
  Link remove

  And I need to reload whole page or at least the ListView.


  Thanks for any advice

  Milan

  -


 To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




Re: MOdal window feedback panel something strange is going on

2008-04-15 Thread Maurice Marrink
Can you take a look in the ajax debug window to see if you get an error?

Maurice

On Mon, Apr 14, 2008 at 4:35 PM, taygolf [EMAIL PROTECTED] wrote:

  Hey guys. I am not sure that this has anything to do with the feed back panel
  or not but I wanted to mention it.

  Here is what I have. I have a modal window with required textfields in it.
  The textfields have another modal window that creates a 'popup' and the user
  selects the value they want entered into the requiredtextfield.

  When the user opens the first modal window they see the required textfields.
  when they click on the button to open the second modal window the user sees
  their options in a select list. They select one and hit submit and the
  textfield is populated with their choice vie ajax.

  The problem I have is what happens when the user trys to submit the first
  modal window with out filling out the required textfield. I have a feedback
  panel that popups up and tells the user that the must selct a user name.

  After the feedback panel is shown the user will click on the button to show
  second modal window. Again their choices appear in a modal window. They can
  select one and hit submit just like before but this time the textfield is
  not populated.

  So the question is why does it do this. It works great until there is an
  error in the modal window and then everything goes to hell. I have to
  require the testfield so I can not just remove the requirement. What is the
  problem here.  I am sure it is something simple I have over looked

  Thanks

  T
  --
  View this message in context: 
 http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16678101.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Notification on session destroyed?

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael

Hi

I've checked a little around, but could not find anything directly. This 
is what I want todo:


When a user either logs out or expire I want to update a pojo attached 
to session.


So does anyone have an example on how todo this(if possible)?

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portles in Sun Portal

2008-04-15 Thread Ate Douma
I don't know the Sun Portal that well, but AFAIK they have (or are working on) beta Portlet API 2.0 (JSR-286) support 
already.
As the interfaces which Wicket Portlet currently needs from Apache Portals Bridges Common are natively supported with 
JSR-286, the easiest solution is:

a) waiting for JSR-286 to finally get published (it is already accepted, just 
still not made available publicly :( )
b) upgrade Wicket portlet support to (optionally, if JSR-286 is available at runtime) make use of the JSR-286 API's 
instead of the custom Bridges interfaces


For b) I hope to get started on that ASAP. As I'm also working on a big upgrade/refactoring of both Pluto 2.0 and 
Jetspeed 2.2 to get them aligned, this is something I'll have to try to squeeze in sometime soon.

*Any help with this is very much appreciated.*

For a) I just hope the JCP will speed up their administrative handling of it.
But, we don't have to wait for the public release of JSR-286 to start working on it. Pluto 2.0 (trunk development) as 
well as other portals do have (beta) JSR-286 support which can be used for developing and testing already.
We only don't have a formal portlet-api-2.0.jar available from any public repository, which is somewhat painful as 
adding it as dependency on Wicket would break out-of-the-box building for everyone who hasn't installed that jar 
locally. That's the main reason (and lack of time of course) I haven't started on this already.


Now, if you're stuck on a Portal which doesn't provide JSR-286 support any time soon, and neither provides 
implementations of those Bridges interfaces, you'll have to write them yourself I'm afraid.
As the experience of Thijs Vonk with Liferay showed, it really depends on how open and flexible the core features of 
that portal engine is, and whether they already have similar (albeit still proprietary) support of these features.
But if/once they do have preliminary (as Jetspeed right now) or real JSR-286 support, providing implementations for 
these interfaces should not be difficult.


Regards,

Ate

Wilhelmsen Tor Iver wrote:

We have (wisely :) ) chosen Wicket as web framework, but also chosen Sun
Portal as the portal engine (not just Pluto but the commercial product).
This causes a problem since Sun apparently haven't implemented the two
interfaces required by Apache's bridge, so Wicket 1.3.x portlets do not
work since the WicketPortlet appears to require the bridge.

Are there anyone else who have used this combination successfully?

As I see it, there are four possible solutions:

1) Provide implementations of the interfaces that hook into the Sun
portlet engine
2) Make a custom WicketPortlet that does away with the bridge
requirement and does all translation between the portlet world and the
Wicket world. Has the disadvantage of effectively redoing work that the
bridge already does 
3) Make a custom Wicket Channel in the portlet server to (in effect)

provide such a bridge (or wait for someone at Sun to write one :) )
which has the disadvantage of being tied to Sun's product
4) Serve the Wicket portlets from a second portlet container that _does_
support the bridge (Liferay, Jetspeed or JBoss if I am not mistaken),
and use WSRP to show them in Sun's portal

Which do you guys think is most likely to succeed?

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: [EMAIL PROTECTED]
http://servicedesk.arrive.no






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Package resource not found in YUI package

2008-04-15 Thread Fynn

Now I use wicket 1.3.3 and this warnings are still in my log file...
in the jar package i can´t find this files

Nobody an idea?
-- 
View this message in context: 
http://www.nabble.com/Package-resource-not-found-in-YUI-package-tp16395623p16696644.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to delay or customized button onSubmit() method

2008-04-15 Thread freak182

Hello,
I have a complicated problem here adn hoping for your bright ideas about my
problem. My problem is, how can can I process the codes after i get the
value from modal window..to be more accurate here is some code snippet:

a modal windows snippet:

modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
public void onClose(AjaxRequestTarget target) {
// enter this method when 
modalWindow.close(target) method called
System.out.println(Get value = 
+modalWindow.getModelObjectAsString());

set_validated(Boolean.valueOf(modalWindow.getModelObjectAsString()));

}
});

indicating ajaxbutton code snippet:

@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
localOverride.show(target);

if(is_validated()){
final Test test= (Test) 
form.getModelObject();

testService.save(test);
setResponsePage(new AckPage(test));
}
}
...how can get first the value in modal window before i process the codes
inside button's onSubmit() method.Of course i can make method on modal
window setWindowClosedCallback method but I wnat it in button onSubmit
method before the user saves the model It will wait the value from the modal
window if its true or false...i hope i make myself clear..Any
suggestions/comments/ideas 

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/How-to-delay-or-customized-button-onSubmit%28%29-method-tp16696645p16696645.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can only locate or create session in the context of a request cycle.

2008-04-15 Thread Maurice Marrink
I think using the httpsession in this case is an acceptable solution.

Maurice

On Tue, Apr 15, 2008 at 3:10 AM, mfs [EMAIL PROTECTED] wrote:

  Guys,

  Please comment..

  I have a non-wicket AuthenticationFilter which is intercepting all request
  to my wicket-app and checking if the request is coming in from a valid user.
  Basically in the url am passed over an authenticationToken (by another
  application where the user has signed in already). Now in my
  AuthenticationFilter i check if that is a valid token and if yes i want to
  set some attribute (isAuthenticated etc) in wicket-session, .

  The problem is that the wicket session has yet not been created (because
  this is the first request to the wicket app, intercepted by the filter), and
  hence i get this error you can only locate or create sessions in the
  context of a request cycle, when i try do a Session.get().

  I am already using WicketSessionFilter which would expose my wicket session
  to my non-wicket filter. The problem is just for the first request, where a
  wicket session yet doesnt exist.

  I am thinking of using HttpSession directly in my filter and store all the
  session data there, but before i do so, i thought to check if anyone has a
  better work around, ideally i would want to avoid using it.

  Thanks in advance

  Farhan
  --
  View this message in context: 
 http://www.nabble.com/Can-only-locate-or-create-session-in-the-context-of-a-request-cycle.-tp16693084p16693084.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance question

2008-04-15 Thread Johan Compagner
i do see that you are also counting the sessionsize,
That does have an overhead of itself.

On Mon, Apr 14, 2008 at 11:57 PM, Ritz123 [EMAIL PROTECTED] wrote:


 Hi,

 I have created first couple of pages of my wicket application but have
 some
 performance concerns.

 The pages (even the refresh alone takes 6-7 secs on Dual Core 2.2GHz
 Pentium
 with 4GB of RAM). DB is located on the remote host, but has caching at the
 application server - so thats not adding to the latency for the refresh.
 Here is the requestlogger information for the home page refresh couple of
 times

 Can someone point me to the direction on going about finding out what is
 taking this long other than (and may be simpler than) running a profiler
 on
 the application - atleast initially.

 My application is running in deployment mode and is running in tomcat.

 =

 ! before getting top nav menuitems 1208209856242
 ! after getting top nav menuitems 1208209860972 time taken
 4730
 2008-04-14 14:51:07,677 (http-0.0.0.0-8080-Processor12) [
 RequestLogger.jav
 a:320:INFO ]
 time=11567,event=BookmarkablePage[com.neobits.web.pages.Index],resp

 onse=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D15518
 044E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51 PDT
 2008,re
 quests=4,totaltime=28472,activerequests=3,maxmem=532M,total=266M,used=56M

 ! before getting top nav menuitems 1208209878458
 ! after getting top nav menuitems 1208209878696 time taken
 238
 2008-04-14 14:51:25,266 (http-0.0.0.0-8080-Processor4) [
 RequestLogger.java
 :320:INFO ]
 time=6888,event=BookmarkablePage[com.neobits.web.pages.Index],respon

 se=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
 4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51 PDT
 2008,requ
 ests=5,totaltime=35360,activerequests=3,maxmem=532M,total=266M,used=55M

 ! before getting top nav menuitems 1208209893292
 ! after getting top nav menuitems 1208209893526 time taken
 234
 2008-04-14 14:51:40,514 (http-0.0.0.0-8080-Processor6) [
 RequestLogger.java
 :320:INFO ]
 time=7309,event=BookmarkablePage[com.neobits.web.pages.Index],respon

 se=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
 4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51 PDT
 2008,requ
 ests=6,totaltime=42669,activerequests=4,maxmem=532M,total=266M,used=46M

 --
 View this message in context:
 http://www.nabble.com/Performance-question-tp16690935p16690935.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Performance question

2008-04-15 Thread Johan Compagner
you can use this one for a while
http://yourkit.com/eap/index.jsp

not everything has to be opensource or free

johan


On Tue, Apr 15, 2008 at 12:39 AM, Ritz123 [EMAIL PROTECTED] wrote:


 Havent used a profiler in a while - is there any opensource one which can
 work with tomcat?


 igor.vaynberg wrote:
 
  profile it and see where the time goes, or paste some code from those
  pages
 
  -igor
 
 
  On Mon, Apr 14, 2008 at 2:57 PM, Ritz123 [EMAIL PROTECTED]
 wrote:
 
   Hi,
 
   I have created first couple of pages of my wicket application but have
  some
   performance concerns.
 
   The pages (even the refresh alone takes 6-7 secs on Dual Core 2.2GHz
  Pentium
   with 4GB of RAM). DB is located on the remote host, but has caching at
  the
   application server - so thats not adding to the latency for the
 refresh.
   Here is the requestlogger information for the home page refresh couple
  of
   times
 
   Can someone point me to the direction on going about finding out what
 is
   taking this long other than (and may be simpler than) running a
 profiler
  on
   the application - atleast initially.
 
   My application is running in deployment mode and is running in tomcat.
 
   =
 
   ! before getting top nav menuitems 1208209856242
   ! after getting top nav menuitems 1208209860972 time
  taken
   4730
   2008-04-14 14:51:07,677 (http-0.0.0.0-8080-Processor12) [
   RequestLogger.jav
   a:320:INFO ]
   time=11567,event=BookmarkablePage[com.neobits.web.pages.Index],resp
 
 
 onse=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D15518
   044E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51
 PDT
   2008,re
 
 
 quests=4,totaltime=28472,activerequests=3,maxmem=532M,total=266M,used=56M
 
   ! before getting top nav menuitems 1208209878458
   ! after getting top nav menuitems 1208209878696 time
  taken
   238
   2008-04-14 14:51:25,266 (http-0.0.0.0-8080-Processor4) [
   RequestLogger.java
   :320:INFO ]
   time=6888,event=BookmarkablePage[com.neobits.web.pages.Index],respon
 
 
 se=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
   4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51 PDT
   2008,requ
 
  ests=5,totaltime=35360,activerequests=3,maxmem=532M,total=266M,used=55M
 
   ! before getting top nav menuitems 1208209893292
   ! after getting top nav menuitems 1208209893526 time
  taken
   234
   2008-04-14 14:51:40,514 (http-0.0.0.0-8080-Processor6) [
   RequestLogger.java
   :320:INFO ]
   time=7309,event=BookmarkablePage[com.neobits.web.pages.Index],respon
 
 
 se=BookmarkablePage[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
   4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51 PDT
   2008,requ
 
  ests=6,totaltime=42669,activerequests=4,maxmem=532M,total=266M,used=46M
 
   --
   View this message in context:
  http://www.nabble.com/Performance-question-tp16690935p16690935.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Performance-question-tp16690935p16691538.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Wicket + CMS

2008-04-15 Thread Uwe Schäfer

Noz, Felix schrieb:


I'm currently evaluating different Frontend Frameworks to use them with a 
Java-Based CMS (OpenCms) and I'm very interested in trying wicket. The CMS has 
got its own Template mechanism which is based on JSP. Because it would be a 
problem for us to throw away all existing Templates and JSP Tags my idea was to 
implement a ResourceStreamLocator that connects to the CMS via http and 
delivers the resources directly from the CMS so that the CMS is rather a pure 
persistence and template system.


i´m facing a similar problem without having found a proper solution that 
works for me. i´m free to use a cms, but i need to deliver (and extend) 
via wicket.



- Is this a passible way to connect wicket to a jsp based system?
- Are there any better solutions?
- Does anybody else has experience in connecting OpenCms + wicket?


Kind of Hacky, but:
http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/

cu uwe
--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio group, model

2008-04-15 Thread Goran Novak

Thanks,

I got it to work but I dont't understand why does RadioGroup has to have its
own model. RadioGroup has a constructor RadioGroup(java.lang.String id),
why does it exist if you can't create RadioGroup without its own model. It
seems somewhat misleading.

Here is the solution if someone else encounters this problem:

WebPage and Form:

public class TestRadio extends WebPage {
public TestRadio() {
add(new SomeForm(form));
}

class SomeForm extends Form {
public SomeForm(String id) {
super(id, new CompoundPropertyModel(new 
TestFormModel()));

TestRadioModel testRadioModel = new TestRadioModel();
RadioGroup radioGroup = new RadioGroup(radioGroup, 
new PropertyModel(
testRadioModel, radioGroup));
add(radioGroup);

radioGroup.add(new Radio(radio1, new Model(some)));
radioGroup.add(new Radio(radio2, new Model(none)));
}

protected void onSubmit() {
super.onSubmit();

RadioGroup radioGroup = (RadioGroup)get(radioGroup);

String model = (String) radioGroup.getModelObject();
System.out.println(model);//prints out some or none
}
}
}

Html:
form wicket:id=form
  
input type=radio wicket:id=radio1 / 
input type=radio wicket:id=radio2 / 
  
  input type=submit/
/form

RadioGroup Model:

public class TestRadioModel {
private String radioGroup;  
private String radio1;  
private String radio2;

// plus getters and setters
}



Michael O'Cleirigh wrote:
 
 Hi Goran,

 I have a form with a radio group. Everithing works (page renders without
 errors) but I can't get selected radio in forms onSubmit method.
 model.getSomeRadioGroup() returns null.

 It probably some logical error using the models. Does radioGroup have to
 have its own model or something like that.

   
 RadioGroup does need to have its own model and it also needs to be 
 included in the markup and it needs to wrap (be the parent) of the 
 specific radio's.
 
 If your radio's are directly adjacent in the markup you might find the 
 RadioChoice class easier since you can just set 1 model and pass in a 
 list of the options.
 
 
 
 Here is simplified example:

 FORM:
 public SomeForm(String id) {
   super(id, new CompoundPropertyModel(new SomeModel()));
   RadioGroup radioGroup = new RadioGroup(someRadioGroup);
   add(radioGroup);
  
   radioGroup.add(new Radio(radio1));
   radioGroup.add(new Radio(radio2));
   radioGroup.add(new Radio(radio3));
  
 }
   
 You need to set a model value for each radio since wicket will do a 
 radioGroup.modelObject = selectedRadio.modelObject when the form is 
 submitted.
 
 
 
  
 protected void onSubmit() {
   super.onSubmit();
   SomeModel model = (SomeModel) getModelObject();
   System.out.println(model.getSomeRadioGroup()); // This returns null
   System.out.println(model.getRadio1());// This returns null
   System.out.println(model.getRadio2());// This returns null
   System.out.println(model.getRadio3());// This returns null 
 }

 FORMS MODEL:
 public class EmailSettingsModel {

  private String radio1;

  private String radio2;

  private String radio3;

  private String someRadioGroup;

 //... plus getters and setters
 }

   
 I would change this so that the options for the radio were and
 enumeration:
 
 public enum EmailOptions { OPTION_1, OPTION_2, OPTION_3; }
 
 then just use a regular Model to hold the values:
 
 FORM:
 public SomeForm(String id) {
   super(id, new CompoundPropertyModel(new Model()));
   RadioGroup radioGroup = new RadioGroup(someRadioGroup, new Model
 (EmailOptions.OPTION_1);
   add(radioGroup);
   
   radioGroup.add(new EmailOptionRadio(radio1, new Model
 (EmailOptions.OPTION_1)));
   radioGroup.add(new EmailOptionRadio(radio2, new Model
 (EmailOptions.OPTION_2)));
   radioGroup.add(new EmailOptionRadio(radio3,  new Model
 (EmailOptions.OPTION_3)));
   
 }
 
 Where emailOptionRadio overrides the Component.getConverter(Class c)
 method to return an IConverter for the EmailOptions enumeration like:
 
 /* (non-Javadoc)
* @see org.apache.wicket.Component#getConverter(java.lang.Class)
*/
   @Override
   public IConverter getConverter(Class type) {
 
   return new IConverter () {
 
   /* (non-Javadoc)
* @see
 org.apache.wicket.util.convert.IConverter#convertToObject(java.lang.String,
 java.util.Locale)
*/
   @Override
   

inlineframe usage

2008-04-15 Thread dvd
Hello:
I am trying to implement the following
in one html page    wicket:linka href=IFrame.html?src=url when clicked, 
it would
call another page IFrame.class which has IFrame.html like
diviframe wicket:id=iframe src=#/div
I thought I could do in IFrame.java  like
add(new InlineFrame(iframe,srcurl))  since InlineFrame is a component.   but 
I looked at the doc and do not know how to handle this.  Any help would be great
Thanks

Re: Can only locate or create session in the context of a request cycle.

2008-04-15 Thread Johan Compagner
if there is no session
do you already want to store something?

On Tue, Apr 15, 2008 at 3:10 AM, mfs [EMAIL PROTECTED] wrote:


 Guys,

 Please comment..

 I have a non-wicket AuthenticationFilter which is intercepting all request
 to my wicket-app and checking if the request is coming in from a valid
 user.
 Basically in the url am passed over an authenticationToken (by another
 application where the user has signed in already). Now in my
 AuthenticationFilter i check if that is a valid token and if yes i want to
 set some attribute (isAuthenticated etc) in wicket-session, .

 The problem is that the wicket session has yet not been created (because
 this is the first request to the wicket app, intercepted by the filter),
 and
 hence i get this error you can only locate or create sessions in the
 context of a request cycle, when i try do a Session.get().

 I am already using WicketSessionFilter which would expose my wicket
 session
 to my non-wicket filter. The problem is just for the first request, where
 a
 wicket session yet doesnt exist.

 I am thinking of using HttpSession directly in my filter and store all the
 session data there, but before i do so, i thought to check if anyone has a
 better work around, ideally i would want to avoid using it.

 Thanks in advance

 Farhan
 --
 View this message in context:
 http://www.nabble.com/Can-only-locate-or-create-session-in-the-context-of-a-request-cycle.-tp16693084p16693084.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Notification on session destroyed?

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, that feels a bit hacky.. Then I'll need to implement a way of 
tracking sessions, and I saw something about keeping references to 
destroyed sessions arent that great.


It might be me that's just way of context(not knowing all of the 
internals), but should something like this be easy todo in wicket?


Like maybe have a onDestroy or onExpire(or both?) in session class? 
However I have no idea on how much overhead this would bring to 
applications that does not use the feature.



regards Nino

Johan Compagner wrote:

attached to a session of the session that is just invalided/expired?
That wont work. You cant get to a http sessions attributes when it is
invalidated.

To know which session id's are destroyed:

public void sessionDestroyed(String sessionId) of WebApplication

johan


On Tue, Apr 15, 2008 at 9:07 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Hi

I've checked a little around, but could not find anything directly. This
is what I want todo:

When a user either logs out or expire I want to update a pojo attached to
session.

So does anyone have an example on how todo this(if possible)?

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance question

2008-04-15 Thread Daniel Frisk

Maybe the profiler that is bundled with NetBeans can be sufficent?
http://profiler.netbeans.org/

// Daniel
jalbum.net


On 2008-04-15, at 09:41, Johan Compagner wrote:


you can use this one for a while
http://yourkit.com/eap/index.jsp

not everything has to be opensource or free

johan


On Tue, Apr 15, 2008 at 12:39 AM, Ritz123 [EMAIL PROTECTED]  
wrote:




Havent used a profiler in a while - is there any opensource one  
which can

work with tomcat?


igor.vaynberg wrote:


profile it and see where the time goes, or paste some code from  
those

pages

-igor


On Mon, Apr 14, 2008 at 2:57 PM, Ritz123 [EMAIL PROTECTED]

wrote:


Hi,

I have created first couple of pages of my wicket application but  
have

some
performance concerns.

The pages (even the refresh alone takes 6-7 secs on Dual Core  
2.2GHz

Pentium
with 4GB of RAM). DB is located on the remote host, but has  
caching at

the
application server - so thats not adding to the latency for the

refresh.
Here is the requestlogger information for the home page refresh  
couple

of
times

Can someone point me to the direction on going about finding out  
what

is

taking this long other than (and may be simpler than) running a

profiler

on
the application - atleast initially.

My application is running in deployment mode and is running in  
tomcat.


=

! before getting top nav menuitems 1208209856242
! after getting top nav menuitems 1208209860972  
time

taken
4730
2008-04-14 14:51:07,677 (http-0.0.0.0-8080-Processor12) [
RequestLogger.jav
a:320:INFO ]
time=11567,event=BookmarkablePage[com.neobits.web.pages.Index],resp


onse 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D15518
044E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14  
14:38:51

PDT

2008,re


quests 
=4,totaltime=28472,activerequests=3,maxmem=532M,total=266M,used=56M


! before getting top nav menuitems 1208209878458
! after getting top nav menuitems 1208209878696  
time

taken
238
2008-04-14 14:51:25,266 (http-0.0.0.0-8080-Processor4) [
RequestLogger.java
:320:INFO ]
time 
=6888,event=BookmarkablePage[com.neobits.web.pages.Index],respon



se 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14  
14:38:51 PDT

2008,requ

ests 
=5,totaltime=35360,activerequests=3,maxmem=532M,total=266M,used=55M


! before getting top nav menuitems 1208209893292
! after getting top nav menuitems 1208209893526  
time

taken
234
2008-04-14 14:51:40,514 (http-0.0.0.0-8080-Processor6) [
RequestLogger.java
:320:INFO ]
time 
=7309,event=BookmarkablePage[com.neobits.web.pages.Index],respon



se 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14  
14:38:51 PDT

2008,requ

ests 
=6,totaltime=42669,activerequests=4,maxmem=532M,total=266M,used=46M


--
View this message in context:
http://www.nabble.com/Performance-question-tp16690935p16690935.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/Performance-question-tp16690935p16691538.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-15 Thread Erik van Oosten
Haha, brilliant. Sometimes you forget the simple stuff :)

Thanks Sebastiaan,
Erik.


Sebastiaan van Erk wrote:
 Shouldn't it work if you just override getLocale() on your admin base
 page to return your admin locale?

 Regards,
 Sebastiaan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inlineframe usage

2008-04-15 Thread Rüdiger Schulz
Hello dvd,

If the URL is an external one (i.e. not a link to a wicket page), you can't
use the InlineFrame class from wicket. Just use WebmarkupContainer and link
it to the iframe tag. I had the same problem when doing the iframe
integration for wicketstuff-picnik (not yet comitted, but will be this
week).

Greetings,

Rüdiger



2008/4/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hello:
 I am trying to implement the following
 in one html pagewicket:linka href=IFrame.html?src=url when
 clicked, it would
 call another page IFrame.class which has IFrame.html like
 diviframe wicket:id=iframe src=#/div
 I thought I could do in IFrame.java  like
 add(new InlineFrame(iframe,srcurl))  since InlineFrame is a component.
 but I looked at the doc and do not know how to handle this.  Any help would
 be great
 Thanks




-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de
www.indyphone.de - Coole Handy Logos einfach selber bauen


Re: wicket-contrib-javaee

2008-04-15 Thread greeklinux

Hello,

I am using maven2 but did not found a maven2 repository
with wicket-contrib-javaee. Found only this one
http://wicketstuff.org/maven/repository/org/wicketstuff/maven/

-greeklinux


igor.vaynberg wrote:
 
 if you used maven it wouldve all been setup for you...
 
 -igor
 
 
 On Sun, Apr 13, 2008 at 12:46 PM, greeklinux [EMAIL PROTECTED] wrote:

  Hello,

  thank you. wicket-ioc was the missing part.
  On the wiki page of wicket-contrib-javaee there was no information
  about this dependency.






  greeklinux wrote:
  
   Hello,
  
   I am building an ee application and I want to use wicket in the web
 tier.
   Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice.
  
   But there is a problem. It is not possible to initialize the injection
   in the WebApplications init() method with:
   addComponentInstantiationListener(new JavaEEComponentInjector(this));
  
   org.apache.wicket.injection.ComponentInjector cannot be found.
  
   Someone uses this package too?
  
   I am using wicket 1.3.3
  

  --
  View this message in context:
 http://www.nabble.com/wicket-contrib-javaee-tp16659898p16667086.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-contrib-javaee-tp16659898p16697982.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inlineframe usage

2008-04-15 Thread dvd
Hello, Rudiger:

I got it and it worked. Thanks very much. 


Hello dvd,

If the URL is an external one (i.e. not a link to a wicket page), you can't
use the InlineFrame class from wicket. Just use WebmarkupContainer and link
it to the iframe tag. I had the same problem when doing the iframe
integration for wicketstuff-picnik (not yet comitted, but will be this
week).

Greetings,

Rüdiger



2008/4/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hello:
 I am trying to implement the following
 in one html pagewicket:linka href=IFrame.html?src=url when
 clicked, it would
 call another page IFrame.class which has IFrame.html like
 diviframe wicket:id=iframe src=#/div
 I thought I could do in IFrame.java  like
 add(new InlineFrame(iframe,srcurl))  since InlineFrame is a component.
 but I looked at the doc and do not know how to handle this.  Any help would
 be great
 Thanks




-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de
www.indyphone.de - Coole Handy Logos einfach selber bauen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket + CMS

2008-04-15 Thread Markus Strickler

Hi,

same thing here. I'd definitely be interested in a solution, as we are using
OpenCMS (and other CMSes that write content statically) quite a lot for our
customer's projects and I'd rather like to use Wicket (as opposed to JSP or
PHP) for form processing and other interactive parts of the website in future
projects.
Writing static html files from the CMS that are valid wicket templates
wouldn't
be a problem. Making wicket use them (and reload them if they change)
should be
doable.
However you would potentially have many HTML templates that are all
backed by
the same wicket page class. And so far I couldn't think of a way to
handle this
in wicket.

greetings,

-markus


Zitat von Rüdiger Schulz [EMAIL PROTECTED]:


Hello,

I have no solution, just an idea on what could work as well, as I have
thought about a Wicket / openCMS connection before (never had to implement
it though).

AFAIK OpenCms can publish its pages statically. Maybe you could configure
your CMS templates in a way that they become valid wicket templates after
publishing, and then use them in your application.

I never used OpenCms in a real world application, but I am sure something
similar would work with the (commercial) RedDot CMS, which is also doing
static page publishing.

Whatever way you will go, I'd be interested in the outcome, just out of
curiosity :-)


greetings,

Rüdiger


2008/4/15, Noz, Felix [EMAIL PROTECTED]:


Hello everybody,

I'm currently evaluating different Frontend Frameworks to use them with a
Java-Based CMS (OpenCms) and I'm very interested in trying wicket. The CMS
has got its own Template mechanism which is based on JSP. Because it would
be a problem for us to throw away all existing Templates and JSP Tags my
idea was to implement a ResourceStreamLocator that connects to the CMS via
http and delivers the resources directly from the CMS so that the CMS is
rather a pure persistence and template system.
My questions are:

- Is this a passible way to connect wicket to a jsp based system?
- Are there any better solutions?
- Does anybody else has experience in connecting OpenCms + wicket?

Regards

i.A. Felix Noz




Felix Noz
Junior IT-Berater
Dipl. Informatiker (FH)

comundus GmbH
Schüttelgrabenring 3, 71332 Waiblingen

Telefon +49 (0) 71 51-5 00 28-22
Internet www.comundus.com

Geschäftsführer: Klaus Hillemeier
Amtsgericht Stuttgart, HRB 264290

comundus ist ein Unternehmen der IT EXCELLENCE Group.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
greetings from Berlin,

Rüdiger Schulz

www.2rue.de
www.indyphone.de - Coole Handy Logos einfach selber bauen






This message was sent using IMP, the Internet Messaging Program.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FactoryPattern + Forms/ Enclosures + Feedback

2008-04-15 Thread Korbinian Bachl - privat

Hello,

Ive got 2 problems,

1st;
I tried the FactoryPattern with form components like TextField and now
have the problem, that due to the recreation of the FormFields by the
Factory the inserted value into the model gets lost in case of a invalid
form submit (e.g: error in one field = all entered value is lost). I 
think this is because the Factory always generates a new one;


code is this (just 1 example):
ListIRapidFormPanelFactory flist = new 
ArrayListIRapidFormPanelFactory();

flist.add(new IRapidFormPanelFactory() {

public RapidFormBasePanel getFormPanel(String id) {
return new TextFieldRapidFormPanel(id, LABEL, 
NOTE, model.bind(field));

}
});

The model itself is a final one - how can I make sure that these 
formfields behave like they should (not loosing their input in case of 
valid errors)?



2nd;
how can I bind an wicket:enclosure to a feedbackform? I tried to 
override the isVisible()

of the feedback by

isVisibel() {
return anyError();
}

but that didnt work; What would the optimal code be to use it?


Best,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Auto-Complete TextField Problem

2008-04-15 Thread Vatroslav

Hi,
I've problem with AutoCompleteTextField with IE6 and Wicket 1.3.3. installed
on Tomcat6 and/or Jetty6.

Online example:
http://www.wicketstuff.org/wicket13/ajax/autocomplete 
works perfectly. When I type letters, drop down list is refreshed and
updated accordingly to typed text.
I suppose it is built with older Wicket version.

But, when I deploy wicket examples war to my local Tomcat6 or Jetty6
instance, problem arises.
Only first key press is recognized, list with choices appears, but js error
occurs:
Line: 190
Char:1
Error: Type mismatch
Code: 0
URL: http://localhost:8080/wicket-examples-1.3.3./ajax/autocomplete.0

Everything works fine with FireFox2.


But, after deploying 1.3.2 examples, Auto-Complete TextField Example works
in all browsers.

Something is broken with bugfixing and changing of AutoCompleteTextField
component in 1.3.3. release.

Regards,
Vatroslav



-- 
View this message in context: 
http://www.nabble.com/Auto-Complete-TextField-Problem-tp16698982p16698982.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
Hello Wicket people,

I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with
Wicket-Security components. Maybe this question is more Netbeans- than
Wicket-related, but I thought I'd better ask here first.

I have a BaseSecurePage class that implements ISecurePage.
Its constructor looks like this:

public BaseSecurePage() {
  super();
  setSecurityCheck(new ComponentSecurityCheck(this));
}

Wasp-0.1 and Swarm-0.1 were included in a library class Wicket-Security-0.1
in Netbeans IDE and everything was fine.
Once I created Wicket-Security-1.3, added Wasp-1.3 and Swarm-1.3 in it,
removed old Wicket-Security-0.1 and added the Wicket-Security-1.3 to the
project, strange thing had happened:

Netbeans now says it can't find symbol ComponentSecurityCheck(this).
Moreover, when I Ctrl+click the ComponentSecurityCheck(this), it takes me to
the sources (which I didn't import, just swarm/wasp-1.3.0 and
swarm/wasp-javadoc-1.3.0), and there in the sources of
ComponentSecurityCheck I can see Netbeans complaining about the fact that it
can't find Component class.

There's one good thing though -- it builds with no problems, but still I'd
like to fix somehow.

-- 
sp


Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
Actually, I tried to create a new project from scratch, added
Wicket-Security-1.3 libraries there, added BaseSecurePage, and the error is
still there. I also tried Clean and Build (I assume this is what stands for
delete and recompile in Netbeans with no luck.

Once I changed the library to Wicket-Security-0.1, the problem's gone.

On Tue, Apr 15, 2008 at 2:47 PM, Korbinian Bachl - privat 
[EMAIL PROTECTED] wrote:

 AFAIK the packages have changed between the Versions, so NB cant find them
 (thats correct though); try a full recompile (the one with delete 
 recompile) and you should get the wrong classes in the output; there hit the
 link to the classes and issue an Fix Imports via the right context menu,
 that'll do it;

 Hope that helps,

 Korbinian

 Sergey Podatelev schrieb:

  Hello Wicket people,
 
  I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with
  Wicket-Security components. Maybe this question is more Netbeans- than
  Wicket-related, but I thought I'd better ask here first.
 
  I have a BaseSecurePage class that implements ISecurePage.
  Its constructor looks like this:
 
  public BaseSecurePage() {
   super();
   setSecurityCheck(new ComponentSecurityCheck(this));
  }
 
  Wasp-0.1 and Swarm-0.1 were included in a library class
  Wicket-Security-0.1
  in Netbeans IDE and everything was fine.
  Once I created Wicket-Security-1.3, added Wasp-1.3 and Swarm-1.3 in it,
  removed old Wicket-Security-0.1 and added the Wicket-Security-1.3 to the
  project, strange thing had happened:
 
  Netbeans now says it can't find symbol ComponentSecurityCheck(this).
  Moreover, when I Ctrl+click the ComponentSecurityCheck(this), it takes
  me to
  the sources (which I didn't import, just swarm/wasp-1.3.0 and
  swarm/wasp-javadoc-1.3.0), and there in the sources of
  ComponentSecurityCheck I can see Netbeans complaining about the fact
  that it
  can't find Component class.
 
  There's one good thing though -- it builds with no problems, but still
  I'd
  like to fix somehow.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
sp


Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Korbinian Bachl - privat
AFAIK the packages have changed between the Versions, so NB cant find 
them (thats correct though); try a full recompile (the one with delete  
recompile) and you should get the wrong classes in the output; there hit 
the link to the classes and issue an Fix Imports via the right context 
menu, that'll do it;


Hope that helps,

Korbinian

Sergey Podatelev schrieb:

Hello Wicket people,

I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with
Wicket-Security components. Maybe this question is more Netbeans- than
Wicket-related, but I thought I'd better ask here first.

I have a BaseSecurePage class that implements ISecurePage.
Its constructor looks like this:

public BaseSecurePage() {
  super();
  setSecurityCheck(new ComponentSecurityCheck(this));
}

Wasp-0.1 and Swarm-0.1 were included in a library class Wicket-Security-0.1
in Netbeans IDE and everything was fine.
Once I created Wicket-Security-1.3, added Wasp-1.3 and Swarm-1.3 in it,
removed old Wicket-Security-0.1 and added the Wicket-Security-1.3 to the
project, strange thing had happened:

Netbeans now says it can't find symbol ComponentSecurityCheck(this).
Moreover, when I Ctrl+click the ComponentSecurityCheck(this), it takes me to
the sources (which I didn't import, just swarm/wasp-1.3.0 and
swarm/wasp-javadoc-1.3.0), and there in the sources of
ComponentSecurityCheck I can see Netbeans complaining about the fact that it
can't find Component class.

There's one good thing though -- it builds with no problems, but still I'd
like to fix somehow.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTimeField and zero padding hours

2008-04-15 Thread Charlie Dobbie
I'm playing with the DateTimeField at the moment, and if I set the time to
midnight I get 0 for hours and 00 for minutes.

It makes sense to me to pad minutes out to two digits.  Hours should
arguably be padded out to two digits if you're in 24-hour mode, but the
component doesn't do that at the moment.  I've not seen the hours value
disappearing when set to zero so far.

Charlie.



On Tue, Apr 15, 2008 at 7:59 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 I dont know exatly dont see an  example here, but i just guess you
 dont comply completely with the format and then the formatter just
 tries to interperd it.

 On 4/14/08, Federico Fanton [EMAIL PROTECTED] wrote:
  On Sat, 12 Apr 2008 18:25:56 +0200
  Johan Compagner [EMAIL PROTECTED] wrote:
 
   I guess this has something to do with the format string that is used
   for your locale, just look int what dateformat is used in your case
 
  I'm sorry, but I cannot understand how the blank hours is related to a
  locale issue.. I'm looking at DateTimeField source right now, and while
  minutesField has a MINUTES_CONVERTER that does the zero-padding,
 hoursField
  has nothing like that.. Am I missing something? Many thanks for your
  attention.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Auto-Complete TextField Problem

2008-04-15 Thread Gerolf Seitz
it's fixed in trunk for 1.3.4 and 1.4M1

  Gerolf

On Tue, Apr 15, 2008 at 12:25 PM, Vatroslav [EMAIL PROTECTED] wrote:


 Hi,
 I've problem with AutoCompleteTextField with IE6 and Wicket 1.3.3.installed
 on Tomcat6 and/or Jetty6.

 Online example:
 http://www.wicketstuff.org/wicket13/ajax/autocomplete
 works perfectly. When I type letters, drop down list is refreshed and
 updated accordingly to typed text.
 I suppose it is built with older Wicket version.

 But, when I deploy wicket examples war to my local Tomcat6 or Jetty6
 instance, problem arises.
 Only first key press is recognized, list with choices appears, but js
 error
 occurs:
 Line: 190
 Char:1
 Error: Type mismatch
 Code: 0
 URL: http://localhost:8080/wicket-examples-1.3.3./ajax/autocomplete.0

 Everything works fine with FireFox2.


 But, after deploying 1.3.2 examples, Auto-Complete TextField Example works
 in all browsers.

 Something is broken with bugfixing and changing of AutoCompleteTextField
 component in 1.3.3. release.

 Regards,
 Vatroslav



 --
 View this message in context:
 http://www.nabble.com/Auto-Complete-TextField-Problem-tp16698982p16698982.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Jumping in Breadcrump Hierarchy

2008-04-15 Thread gumnaam23

How can I jump in breadcrumb hierarchy.

Say I have some thing like

Home/Schedules/Events



Home/Maintenance Schedules/Downtimes

I want to be able to jump to any of these breadcrumb links from any where.

For that I have a Page with 2 divs. One div contains BreadcrumbPanelLinks to
each of the panels above, and the second div contains the actual BC bar +
Panel.

But this doesn't work as expected.
e.g. say I am at Home/Schedules/Events and I click on a BCLink to Mainteance
Schedules, then my 
BC Bar shows

Home/Schedules/Events/Maintenance Schedules rather than

Home/Maintenance Schedules

Is there no way to Jump between BC panels, while still retaining the proper
hierarchy ?

The BCLink constructor takes in a Caller panel, which in my case for
Schedules and Maintenance Schedules is HomePanel . But even then clicking on
a Maintenance Schedule BC Link from 

Home/Schedules/Events creates a hierarchy Home/Schedules/Events/Maintanance
Schedules

So what is the Caller panel component used for ? I thought that was the way
to set up hierarchy ?

thanks
 
-- 
View this message in context: 
http://www.nabble.com/Jumping-in-Breadcrump-Hierarchy-tp16698592p16698592.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tree redrawing

2008-04-15 Thread rzsolt

It seems that wicket Tree items always redraw themself when I drag the mouse
over them. Why? I have a page with two panels on it: a menu tree on the left
and a form panel on the right. Actually the right side form is submitted by
an ajax request and with the help of the LasyLoadingPanel because the
response time may be long. During this when I move the mouse around the menu
tree, the tree items disappear because they are not able to refresh
themself. It seems this only happens using IE6, firefox is not effected.
-- 
View this message in context: 
http://www.nabble.com/Tree-redrawing-tp16699639p16699639.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Expected mounting options

2008-04-15 Thread Erik van Oosten
I wrote a replacement for WebRequestCodingStrategy and attached it to:
https://issues.apache.org/jira/browse/WICKET-1534

This coding strategy will first look at the mount path, and then calls
matches(String url) on the mounted URL encoders until one returns true.

There is a lot that can be done to make it more compatible with e.g.
UrlCompressingWebCodingStrategy.

Regards,
Erik.


Erik van Oosten schreef:
 Hi,

 To my big surprise the following does not work

   

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting the context root

2008-04-15 Thread unka_hahrry

Hello!

Is there a possibility to get the context root which I defined in my context
descriptor for Tomcat?
-- 
View this message in context: 
http://www.nabble.com/Getting-the-context-root-tp16699820p16699820.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting the context root

2008-04-15 Thread James Carman
You can use the servlet API to do that.  Request.getContextPath() or
something like that.

On Tue, Apr 15, 2008 at 7:37 AM, unka_hahrry [EMAIL PROTECTED] wrote:

  Hello!

  Is there a possibility to get the context root which I defined in my context
  descriptor for Tomcat?
  --
  View this message in context: 
 http://www.nabble.com/Getting-the-context-root-tp16699820p16699820.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [WUG] Copenhagen

2008-04-15 Thread Guðmundur Bjarni

Hey Nino,

I just saw this message now. I signed up myself and a friend of mine who is
quite interested about Wicket.

regards,
Guðmundur Bjarni



Nino.Martinez wrote:
 
 Hi
 
 This is a reminder, and callout as it would be really nice to be some 
 more people in order to get discussions going.
 
 Heres the proposed content:
 
 *Wicket-Spring-JPA-Hibernate (Could also be a discussion of the 
 upcomming archetype wicket Iolith)
 *Wicket Testsing experiences
 *Creating behaviors
 *Selling Wicket (to your company, and customers)
 * Integrating javascript libraries with wicket
 
 Please sign up here:
 23 april 16 hrs is date and time.
 http://cwiki.apache.org/confluence/display/WICKET/Community+meetups
 
 If you have any suggestions on content, etc please write. This also goes 
 for requests on content.
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-WUG--Copenhagen-tp16449433p1668.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket + CMS

2008-04-15 Thread Rüdiger Schulz
2008/4/15, Markus Strickler [EMAIL PROTECTED]:

 However you would potentially have many HTML templates that are all
 backed by
 the same wicket page class. And so far I couldn't think of a way to handle
 this
 in wicket.


If think you can override getVariation() to accomplish this:
http://wicketstuff.org/wicket13doc/org/apache/wicket/Component.html#getVariation()

Or, you find ways where the HTML templates are used for Panels (depends on
your use case). Remember, only markup between wicket:panel will be used,
everything outside will be omitted.

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de
www.indyphone.de - Coole Handy Logos einfach selber bauen


problem with menu

2008-04-15 Thread Mathias P.W Nilsson

Hi!

I have a problem with a menu that should be in all pages but have different
links.

Is there anyway of achiving this. Adding links to parent class or something
like that. It is a right meny
with the same layout but different content.
-- 
View this message in context: 
http://www.nabble.com/problem-with-menu-tp16700154p16700154.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance question

2008-04-15 Thread Alex Jacoby
I was just looking into this yesterday.  If you use eclipse, the Test  
and Performance Tools Platform looks good: http://www.eclipse.org/tptp/


Unfortunately I couldn't get it to cooperate with my version of  
MyEclipse :(


Alex

On Apr 14, 2008, at 6:39 PM, Ritz123 wrote:


Havent used a profiler in a while - is there any opensource one  
which can

work with tomcat?


igor.vaynberg wrote:


profile it and see where the time goes, or paste some code from those
pages

-igor


On Mon, Apr 14, 2008 at 2:57 PM, Ritz123 [EMAIL PROTECTED]  
wrote:


Hi,

I have created first couple of pages of my wicket application but  
have

some
performance concerns.

The pages (even the refresh alone takes 6-7 secs on Dual Core 2.2GHz
Pentium
with 4GB of RAM). DB is located on the remote host, but has  
caching at

the
application server - so thats not adding to the latency for the  
refresh.
Here is the requestlogger information for the home page refresh  
couple

of
times

Can someone point me to the direction on going about finding out  
what is
taking this long other than (and may be simpler than) running a  
profiler

on
the application - atleast initially.

My application is running in deployment mode and is running in  
tomcat.


=

! before getting top nav menuitems 1208209856242
! after getting top nav menuitems 1208209860972 time
taken
4730
2008-04-14 14:51:07,677 (http-0.0.0.0-8080-Processor12) [
RequestLogger.jav
a:320:INFO ]
time=11567,event=BookmarkablePage[com.neobits.web.pages.Index],resp

onse 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D15518
044E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14  
14:38:51 PDT

2008,re

quests 
=4,totaltime=28472,activerequests=3,maxmem=532M,total=266M,used=56M


! before getting top nav menuitems 1208209878458
! after getting top nav menuitems 1208209878696 time
taken
238
2008-04-14 14:51:25,266 (http-0.0.0.0-8080-Processor4) [
RequestLogger.java
:320:INFO ]
time=6888,event=BookmarkablePage[com.neobits.web.pages.Index],respon

se 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51  
PDT

2008,requ
ests 
=5,totaltime=35360,activerequests=3,maxmem=532M,total=266M,used=55M


! before getting top nav menuitems 1208209893292
! after getting top nav menuitems 1208209893526 time
taken
234
2008-04-14 14:51:40,514 (http-0.0.0.0-8080-Processor6) [
RequestLogger.java
:320:INFO ]
time=7309,event=BookmarkablePage[com.neobits.web.pages.Index],respon

se 
= 
BookmarkablePage 
[com.neobits.web.pages.Index],sessionid=729B1C0D58665D1551804
4E5C8A63088.jvm1,sessionsize=1177,sessionstart=Mon Apr 14 14:38:51  
PDT

2008,requ
ests 
=6,totaltime=42669,activerequests=4,maxmem=532M,total=266M,used=46M


--
View this message in context:
http://www.nabble.com/Performance-question-tp16690935p16690935.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/Performance-question-tp16690935p16691538.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateTimeField and zero padding hours

2008-04-15 Thread Federico Fanton
On Tue, 15 Apr 2008 08:59:44 +0200
Johan Compagner [EMAIL PROTECTED] wrote:

 I dont know exatly dont see an  example here, but i just guess you
 dont comply completely with the format and then the formatter just
 tries to interperd it.

Problem found, Wicket is using my custom converter for Integers to populate the 
hours field, and since in that converter I translate zeroes to empty 
string... So, many thanks for your patience! And sorry for not providing a 
Quickstart :/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [WUG] Copenhagen

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael

Great, the more the merrier:)

Guðmundur Bjarni wrote:

Hey Nino,

I just saw this message now. I signed up myself and a friend of mine who is
quite interested about Wicket.

regards,
Guðmundur Bjarni



Nino.Martinez wrote:
  

Hi

This is a reminder, and callout as it would be really nice to be some 
more people in order to get discussions going.


Heres the proposed content:

*Wicket-Spring-JPA-Hibernate (Could also be a discussion of the 
upcomming archetype wicket Iolith)

*Wicket Testsing experiences
*Creating behaviors
*Selling Wicket (to your company, and customers)
* Integrating javascript libraries with wicket

Please sign up here:
23 april 16 hrs is date and time.
http://cwiki.apache.org/confluence/display/WICKET/Community+meetups

If you have any suggestions on content, etc please write. This also goes 
for requests on content.


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOdal window feedback panel something strange is going on

2008-04-15 Thread taygolf

Nope I am not getting an error in the ajax debug. From what I can see the
popup is sending back the correct value when I go through my normal steps
but when I have the feedback panel come up and then bring up the popup I am
allowed to select my choice but the popupmodal window is sending back a
blank value. I wonder why. I am really stumped on this one. Any help would
be greatly appreciated.

T



Mr Mean wrote:
 
 Can you take a look in the ajax debug window to see if you get an error?
 
 Maurice
 
 On Mon, Apr 14, 2008 at 4:35 PM, taygolf [EMAIL PROTECTED] wrote:

  Hey guys. I am not sure that this has anything to do with the feed back
 panel
  or not but I wanted to mention it.

  Here is what I have. I have a modal window with required textfields in
 it.
  The textfields have another modal window that creates a 'popup' and the
 user
  selects the value they want entered into the requiredtextfield.

  When the user opens the first modal window they see the required
 textfields.
  when they click on the button to open the second modal window the user
 sees
  their options in a select list. They select one and hit submit and the
  textfield is populated with their choice vie ajax.

  The problem I have is what happens when the user trys to submit the
 first
  modal window with out filling out the required textfield. I have a
 feedback
  panel that popups up and tells the user that the must selct a user name.

  After the feedback panel is shown the user will click on the button to
 show
  second modal window. Again their choices appear in a modal window. They
 can
  select one and hit submit just like before but this time the textfield
 is
  not populated.

  So the question is why does it do this. It works great until there is an
  error in the modal window and then everything goes to hell. I have to
  require the testfield so I can not just remove the requirement. What is
 the
  problem here.  I am sure it is something simple I have over looked

  Thanks

  T
  --
  View this message in context:
 http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16678101.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16700355.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOdal window feedback panel something strange is going on

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael

Could you create a quickstart?

taygolf wrote:

Nope I am not getting an error in the ajax debug. From what I can see the
popup is sending back the correct value when I go through my normal steps
but when I have the feedback panel come up and then bring up the popup I am
allowed to select my choice but the popupmodal window is sending back a
blank value. I wonder why. I am really stumped on this one. Any help would
be greatly appreciated.

T



Mr Mean wrote:
  

Can you take a look in the ajax debug window to see if you get an error?

Maurice

On Mon, Apr 14, 2008 at 4:35 PM, taygolf [EMAIL PROTECTED] wrote:


 Hey guys. I am not sure that this has anything to do with the feed back
panel
 or not but I wanted to mention it.

 Here is what I have. I have a modal window with required textfields in
it.
 The textfields have another modal window that creates a 'popup' and the
user
 selects the value they want entered into the requiredtextfield.

 When the user opens the first modal window they see the required
textfields.
 when they click on the button to open the second modal window the user
sees
 their options in a select list. They select one and hit submit and the
 textfield is populated with their choice vie ajax.

 The problem I have is what happens when the user trys to submit the
first
 modal window with out filling out the required textfield. I have a
feedback
 panel that popups up and tells the user that the must selct a user name.

 After the feedback panel is shown the user will click on the button to
show
 second modal window. Again their choices appear in a modal window. They
can
 select one and hit submit just like before but this time the textfield
is
 not populated.

 So the question is why does it do this. It works great until there is an
 error in the modal window and then everything goes to hell. I have to
 require the testfield so I can not just remove the requirement. What is
the
 problem here.  I am sure it is something simple I have over looked

 Thanks

 T
 --
 View this message in context:
http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16678101.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with menu

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael

Forgot to give an example...

Nino Saturnino Martinez Vazquez Wael wrote:

Markup inheritance could be the way to go, it's been great for me.

You could use a listview in the parent... A little like I've done with 
the accordion menu.

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-accordion

However I think you could also use borders? Theres lots of solutions:)


regards Nino



Mathias P.W Nilsson wrote:

Hi!

I have a problem with a menu that should be in all pages but have 
different

links.

Is there anyway of achiving this. Adding links to parent class or 
something

like that. It is a right meny
with the same layout but different content.
  




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with menu

2008-04-15 Thread Nino Saturnino Martinez Vazquez Wael

Markup inheritance could be the way to go, it's been great for me.

However I think you could also use borders? Theres lots of solutions:)


regards Nino



Mathias P.W Nilsson wrote:

Hi!

I have a problem with a menu that should be in all pages but have different
links.

Is there anyway of achiving this. Adding links to parent class or something
like that. It is a right meny
with the same layout but different content.
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket + CMS

2008-04-15 Thread Jan Kriesten


Hi,


However you would potentially have many HTML templates that are all
backed by the same wicket page class. And so far I couldn't think of a

 way to handle this in wicket.

hmm, I don't know OpenCMS good enough, but I'd say it shouldn't be a problem to 
map static files thru a wicket-page/panel/whatever... you just need some logic 
to map the source of the page/panel to the given files.


I just did something like this to have a certain panel use FreeMarker templates 
which dynamically creates wicket:components (actually, this will be a new CMS 
based on Wicket... 8 Weeks to go I suppose)!


Best regards, --- Jan.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A very very minor issue with SelectOption

2008-04-15 Thread Michael Sparer

I was just fiddling around with the w3 validator and validated some of my
wicket-created pages and  they didn't pass the XHTML 1.0 Transitional
validation due to the use of selected=true instead of selected=selected
in the SelectOption class (from wicket-extensions). i know that's a very
very minor issue and I'm also not sure if this is even worth a minor jira
issue :-)

regards, 
michael

-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/A-very-very-minor-issue-with-SelectOption-tp16700368p16700368.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
Okay, this one has resolved itself after I did some lib-containing-folder
management.
Apparently, this was one of those classpath madness issues.

On Tue, Apr 15, 2008 at 2:35 PM, Sergey Podatelev 
[EMAIL PROTECTED] wrote:

 Hello Wicket people,

 I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with
 Wicket-Security components. Maybe this question is more Netbeans- than
 Wicket-related, but I thought I'd better ask here first.

 I have a BaseSecurePage class that implements ISecurePage.
 Its constructor looks like this:

 public BaseSecurePage() {
   super();
   setSecurityCheck(new ComponentSecurityCheck(this));
 }

 Wasp-0.1 and Swarm-0.1 were included in a library class
 Wicket-Security-0.1 in Netbeans IDE and everything was fine.
 Once I created Wicket-Security-1.3, added Wasp-1.3 and Swarm-1.3 in it,
 removed old Wicket-Security-0.1 and added the Wicket-Security-1.3 to the
 project, strange thing had happened:

 Netbeans now says it can't find symbol ComponentSecurityCheck(this).
 Moreover, when I Ctrl+click the ComponentSecurityCheck(this), it takes me to
 the sources (which I didn't import, just swarm/wasp-1.3.0 and
 swarm/wasp-javadoc-1.3.0), and there in the sources of
 ComponentSecurityCheck I can see Netbeans complaining about the fact that it
 can't find Component class.

 There's one good thing though -- it builds with no problems, but still I'd
 like to fix somehow.

 --
 sp




-- 
sp


Re: Wicket + CMS

2008-04-15 Thread Uwe Schäfer

Jan Kriesten schrieb:

I just did something like this to have a certain panel use FreeMarker 
templates which dynamically creates wicket:components (actually, this 
will be a new CMS based on Wicket... 8 Weeks to go I suppose)!


go go go! people are waiting for smth like that ;)

i´ve 'heard' there is another CMS-like app currently being built with 
wicket in the front-end?

any details on that approach?

igor? :)

cu uwe
--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FactoryPattern + Forms/ Enclosures + Feedback

2008-04-15 Thread Korbinian Bachl - privat

Follow-UP:

I solved the problem I had with the listView; it works as expected if 
you do a


.setReuseItems(true); to the ListView

However, the problem with the wicket enclose to a feedBackPanel still 
exists... this one wont work;




Korbinian Bachl - privat schrieb:

Hello,

Ive got 2 problems,

1st;
I tried the FactoryPattern with form components like TextField and now
have the problem, that due to the recreation of the FormFields by the
Factory the inserted value into the model gets lost in case of a invalid
form submit (e.g: error in one field = all entered value is lost). I 
think this is because the Factory always generates a new one;


code is this (just 1 example):
ListIRapidFormPanelFactory flist = new 
ArrayListIRapidFormPanelFactory();

flist.add(new IRapidFormPanelFactory() {

public RapidFormBasePanel getFormPanel(String id) {
return new TextFieldRapidFormPanel(id, LABEL, 
NOTE, model.bind(field));

}
});

The model itself is a final one - how can I make sure that these 
formfields behave like they should (not loosing their input in case of 
valid errors)?



2nd;
how can I bind an wicket:enclosure to a feedbackform? I tried to 
override the isVisible()

of the feedback by

isVisibel() {
return anyError();
}

but that didnt work; What would the optimal code be to use it?


Best,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket + CMS

2008-04-15 Thread Igor Vaynberg
the cms matej and i are working on will be opened shortly after may
1st. it is based on wicket and jcr. mind you it is not meant to be a
full-blown cms system yet, but rather a framework/library that makes
it easy to integrate a cms system into a wicket app. the small example
app we will provide will demonstrate a stand-alone cms. also note that
just because we are putting the source out there on may 1st it is far
from complete/pretty, we are doing it so early because a lot of people
want to take a peek.

-igor


2008/4/15 Uwe Schäfer [EMAIL PROTECTED]:
 Jan Kriesten schrieb:



  I just did something like this to have a certain panel use FreeMarker
 templates which dynamically creates wicket:components (actually, this will
 be a new CMS based on Wicket... 8 Weeks to go I suppose)!
 

  go go go! people are waiting for smth like that ;)

  i´ve 'heard' there is another CMS-like app currently being built with
 wicket in the front-end?
  any details on that approach?

  igor? :)


  cu uwe
  --

  THOMAS DAILY GmbH
  Adlerstraße 19
  79098 Freiburg
  Deutschland
  T  + 49 761 3 85 59 0
  F  + 49 761 3 85 59 550
  E  [EMAIL PROTECTED]
  www.thomas-daily.de

  Geschäftsführer/Managing Directors:
  Wendy Thomas, Susanne Larbig
  Handelsregister Freiburg i.Br., HRB 3947

  Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
 kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.

  Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
 lautet [EMAIL PROTECTED]


  -

  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-contrib-javaee

2008-04-15 Thread Igor Vaynberg
the author did not add the module to our bamboo build server, so there
are no snapshots/releases available.

svn co ...
mvn install

-igor


On Tue, Apr 15, 2008 at 1:59 AM, greeklinux [EMAIL PROTECTED] wrote:

  Hello,

  I am using maven2 but did not found a maven2 repository
  with wicket-contrib-javaee. Found only this one
  http://wicketstuff.org/maven/repository/org/wicketstuff/maven/

  -greeklinux




  igor.vaynberg wrote:
  
   if you used maven it wouldve all been setup for you...
  
   -igor
  
  
   On Sun, Apr 13, 2008 at 12:46 PM, greeklinux [EMAIL PROTECTED] wrote:
  
Hello,
  
thank you. wicket-ioc was the missing part.
On the wiki page of wicket-contrib-javaee there was no information
about this dependency.
  
  
  
  
  
  
greeklinux wrote:

 Hello,

 I am building an ee application and I want to use wicket in the web
   tier.
 Now I find wicket-contrib-javaee on wicketstuff.org and it looks nice.

 But there is a problem. It is not possible to initialize the injection
 in the WebApplications init() method with:
 addComponentInstantiationListener(new JavaEEComponentInjector(this));

 org.apache.wicket.injection.ComponentInjector cannot be found.

 Someone uses this package too?

 I am using wicket 1.3.3

  
--
View this message in context:
   http://www.nabble.com/wicket-contrib-javaee-tp16659898p16667086.html
  
  
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/wicket-contrib-javaee-tp16659898p16697982.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio group, model

2008-04-15 Thread Igor Vaynberg
you really should read the javadoc for radiogroup

-igor


On Tue, Apr 15, 2008 at 1:20 AM, Goran Novak [EMAIL PROTECTED] wrote:

  Thanks,

  I got it to work but I dont't understand why does RadioGroup has to have its
  own model. RadioGroup has a constructor RadioGroup(java.lang.String id),
  why does it exist if you can't create RadioGroup without its own model. It
  seems somewhat misleading.

  Here is the solution if someone else encounters this problem:

  WebPage and Form:

  public class TestRadio extends WebPage {
 public TestRadio() {
 add(new SomeForm(form));
 }

 class SomeForm extends Form {
 public SomeForm(String id) {
 super(id, new CompoundPropertyModel(new 
 TestFormModel()));

 TestRadioModel testRadioModel = new TestRadioModel();
 RadioGroup radioGroup = new RadioGroup(radioGroup, 
 new PropertyModel(
 testRadioModel, radioGroup));
 add(radioGroup);

 radioGroup.add(new Radio(radio1, new 
 Model(some)));
 radioGroup.add(new Radio(radio2, new 
 Model(none)));

 }

 protected void onSubmit() {
 super.onSubmit();

 RadioGroup radioGroup = (RadioGroup)get(radioGroup);

 String model = (String) radioGroup.getModelObject();
 System.out.println(model);//prints out some or 
 none
 }
 }
  }

  Html:
 form wicket:id=form

 input type=radio wicket:id=radio1 /
 input type=radio wicket:id=radio2 /

   input type=submit/
 /form

  RadioGroup Model:

  public class TestRadioModel {
 private String radioGroup;

 private String radio1;
 private String radio2;

 // plus getters and setters


 }



  Michael O'Cleirigh wrote:
  
   Hi Goran,
  
   I have a form with a radio group. Everithing works (page renders without
   errors) but I can't get selected radio in forms onSubmit method.
   model.getSomeRadioGroup() returns null.
  
   It probably some logical error using the models. Does radioGroup have to
   have its own model or something like that.
  
  
   RadioGroup does need to have its own model and it also needs to be
   included in the markup and it needs to wrap (be the parent) of the
   specific radio's.
  
   If your radio's are directly adjacent in the markup you might find the
   RadioChoice class easier since you can just set 1 model and pass in a
   list of the options.
  
  
  
   Here is simplified example:
  
   FORM:
   public SomeForm(String id) {
 super(id, new CompoundPropertyModel(new SomeModel()));
 RadioGroup radioGroup = new RadioGroup(someRadioGroup);
 add(radioGroup);
  
 radioGroup.add(new Radio(radio1));
 radioGroup.add(new Radio(radio2));
 radioGroup.add(new Radio(radio3));
  
   }
  
   You need to set a model value for each radio since wicket will do a
   radioGroup.modelObject = selectedRadio.modelObject when the form is
   submitted.
  
  
  
  
   protected void onSubmit() {
 super.onSubmit();
 SomeModel model = (SomeModel) getModelObject();
 System.out.println(model.getSomeRadioGroup()); // This returns null
 System.out.println(model.getRadio1());// This returns null
 System.out.println(model.getRadio2());// This returns null
 System.out.println(model.getRadio3());// This returns null
   }
  
   FORMS MODEL:
   public class EmailSettingsModel {
  
private String radio1;
  
private String radio2;
  
private String radio3;
  
private String someRadioGroup;
  
   //... plus getters and setters
   }
  
  
   I would change this so that the options for the radio were and
   enumeration:
  
   public enum EmailOptions { OPTION_1, OPTION_2, OPTION_3; }
  
   then just use a regular Model to hold the values:
  
   FORM:
   public SomeForm(String id) {
 super(id, new CompoundPropertyModel(new Model()));
 RadioGroup radioGroup = new RadioGroup(someRadioGroup, new Model
   (EmailOptions.OPTION_1);
 add(radioGroup);
  
 radioGroup.add(new EmailOptionRadio(radio1, new Model
   (EmailOptions.OPTION_1)));
 radioGroup.add(new EmailOptionRadio(radio2, new Model
   (EmailOptions.OPTION_2)));
 radioGroup.add(new EmailOptionRadio(radio3,  new Model
   (EmailOptions.OPTION_3)));
  
   }
  
   Where emailOptionRadio overrides the Component.getConverter(Class c)
   method to return an IConverter for the EmailOptions enumeration like:
  
   /* (non-Javadoc)
  * @see org.apache.wicket.Component#getConverter(java.lang.Class)
  */
 @Override
 public IConverter getConverter(Class type) {
  
 return new IConverter () {
  
 /* (non-Javadoc)

Re: WicketTester link question

2008-04-15 Thread Igor Vaynberg
only on a link that is a wicket component

-igor


On Tue, Apr 15, 2008 at 8:01 AM, Michael Perkonigg
[EMAIL PROTECTED] wrote:
 Hello,

  can I use the WicketTester.clickLink on a generic html link or only on
 links set in the java class?
  It seems to me that I need the wicket id of the link to clickLink it.

  Thanks,
  Mike


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tree redrawing

2008-04-15 Thread Thomas Kappler
They don't redraw themselves on mouseover.  Must be an IE issue.

Thomas


On Tue, Apr 15, 2008 at 1:30 PM, rzsolt [EMAIL PROTECTED] wrote:

  It seems that wicket Tree items always redraw themself when I drag the mouse
  over them. Why? I have a page with two panels on it: a menu tree on the left
  and a form panel on the right. Actually the right side form is submitted by
  an ajax request and with the help of the LasyLoadingPanel because the
  response time may be long. During this when I move the mouse around the menu
  tree, the tree items disappear because they are not able to refresh
  themself. It seems this only happens using IE6, firefox is not effected.
  --
  View this message in context: 
 http://www.nabble.com/Tree-redrawing-tp16699639p16699639.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOdal window feedback panel something strange is going on

2008-04-15 Thread taygolf

I think i have figured out the problem but I am not sure why it did not work
in my original code.

In the original code I have Page 1
in page one I have a Feedbackpanel, a RequiredTextfield and a modal. The
Textfield has a property model and i want this particular testfield to use
name from that model.

now the modalwindow on page one has a setWindowClosedCallback() like this

modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget target) {
target.addComponent(nameField);
}
});

where nameField is the name of my required testfield.

The modal opens up page 2. I pass the model for the propertymodel from the
textfield to page 2. When the user makes a select and clicks submit I call a
model.setName=list.getValue(). and I close the modal.

This will set the name in the model to the name I selected. NOw the
windowclosecallback should refresh the textfield because of my code above.

This works unless I try to move on with out first assigning a name. IF I try
to move on with out assigning a name the feedbackpanel tell me a name is
required. If I then click on the button to open the modal which contains
page 2 everything goes as planned but when the modal is closed the textfield
is given a blank value. I know it is blank because I can see it in the ajax
debug.

I am not sure why I am getting a blank value but to fix it I simple moved
the setWindowClosedCallback from page one to page 2 in the onsubmit part of
the form. Instead of passing the model I am passing the window and I can
simply say window.setWindowClosedCallback and and set the ModelObject there.

Anyway this works for me but I am still curious as to why my previous code
did not work. If you have any ideas I would appreciate it

Thanks

T

Nino.Martinez wrote:
 
 Could you create a quickstart?
 
 taygolf wrote:
 Nope I am not getting an error in the ajax debug. From what I can see the
 popup is sending back the correct value when I go through my normal steps
 but when I have the feedback panel come up and then bring up the popup I
 am
 allowed to select my choice but the popupmodal window is sending back a
 blank value. I wonder why. I am really stumped on this one. Any help
 would
 be greatly appreciated.

 T



 Mr Mean wrote:
   
 Can you take a look in the ajax debug window to see if you get an error?

 Maurice

 On Mon, Apr 14, 2008 at 4:35 PM, taygolf [EMAIL PROTECTED]
 wrote:
 
  Hey guys. I am not sure that this has anything to do with the feed
 back
 panel
  or not but I wanted to mention it.

  Here is what I have. I have a modal window with required textfields in
 it.
  The textfields have another modal window that creates a 'popup' and
 the
 user
  selects the value they want entered into the requiredtextfield.

  When the user opens the first modal window they see the required
 textfields.
  when they click on the button to open the second modal window the user
 sees
  their options in a select list. They select one and hit submit and the
  textfield is populated with their choice vie ajax.

  The problem I have is what happens when the user trys to submit the
 first
  modal window with out filling out the required textfield. I have a
 feedback
  panel that popups up and tells the user that the must selct a user
 name.

  After the feedback panel is shown the user will click on the button to
 show
  second modal window. Again their choices appear in a modal window.
 They
 can
  select one and hit submit just like before but this time the textfield
 is
  not populated.

  So the question is why does it do this. It works great until there is
 an
  error in the modal window and then everything goes to hell. I have to
  require the testfield so I can not just remove the requirement. What
 is
 the
  problem here.  I am sure it is something simple I have over looked

  Thanks

  T
  --
  View this message in context:
 http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16678101.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

   
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MOdal-window-feedback-panel-something-strange-is-going-on-tp16678101p16702611.html
Sent from the Wicket - User mailing list archive at Nabble.com.



Re: Can only locate or create session in the context of a request cycle.

2008-04-15 Thread mfs

Yeah i need to..i.e. the very authentication token so that for subsequent
request i cant avoid the authentication call..

Well i can opt for HttpSession but then i will be using the same wherever in
my pages i need it (there are a couple of scenarios where i need to pass the
info back), and hence compromising the abstraction wicket provides..


Johan Compagner wrote:
 
 if there is no session
 do you already want to store something?
 
 On Tue, Apr 15, 2008 at 3:10 AM, mfs [EMAIL PROTECTED] wrote:
 

 Guys,

 Please comment..

 I have a non-wicket AuthenticationFilter which is intercepting all
 request
 to my wicket-app and checking if the request is coming in from a valid
 user.
 Basically in the url am passed over an authenticationToken (by another
 application where the user has signed in already). Now in my
 AuthenticationFilter i check if that is a valid token and if yes i want
 to
 set some attribute (isAuthenticated etc) in wicket-session, .

 The problem is that the wicket session has yet not been created (because
 this is the first request to the wicket app, intercepted by the filter),
 and
 hence i get this error you can only locate or create sessions in the
 context of a request cycle, when i try do a Session.get().

 I am already using WicketSessionFilter which would expose my wicket
 session
 to my non-wicket filter. The problem is just for the first request, where
 a
 wicket session yet doesnt exist.

 I am thinking of using HttpSession directly in my filter and store all
 the
 session data there, but before i do so, i thought to check if anyone has
 a
 better work around, ideally i would want to avoid using it.

 Thanks in advance

 Farhan
 --
 View this message in context:
 http://www.nabble.com/Can-only-locate-or-create-session-in-the-context-of-a-request-cycle.-tp16693084p16693084.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Can-only-locate-or-create-session-in-the-context-of-a-request-cycle.-tp16696797p16703394.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accesing Wicket Session from a non-wicket filter - Suggestions

2008-04-15 Thread mfs

sure that i can, but i need to store the info in the session, which doesnt
exist yet, and dont want to compromise the abstraction wicket provides by
using HttpSession..and hence relying/using the same wherever i need it. 


igor.vaynberg wrote:
 
 use session.exists() to test if the session is there or not
 
 -igor
 
 
 On Mon, Apr 14, 2008 at 11:34 PM, mfs [EMAIL PROTECTED] wrote:

  Guys,

  Re-posting this with un-necessory info taken out..

  I have a non-wicket Filter which is intercepting all request to my
  wicket-app. In the filter i would want to set some attributes to my
 wicket
  WebSession.

  Now the problem is that for the first request to the application
  (intercepted by the filter), the wicket session is yet not created, and
  hence i get this error you can only locate or create sessions in the
  context of a request cycle on doing a Session.get(). Let me add that am
  already using WicketSessionFilter which is exposing the WebSession to my
  non-wicket Filter. The problem would be just for the first request,
 whereas
  all subsequent request should work.

  Any suggestion/work-arounds ?

  Thanks in advance

  --
  View this message in context:
 http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16695949.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16703397.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A very very minor issue with SelectOption

2008-04-15 Thread Igor Vaynberg
fixed

-igor


On Tue, Apr 15, 2008 at 6:15 AM, Michael Sparer [EMAIL PROTECTED] wrote:

  I was just fiddling around with the w3 validator and validated some of my
  wicket-created pages and  they didn't pass the XHTML 1.0 Transitional
  validation due to the use of selected=true instead of selected=selected
  in the SelectOption class (from wicket-extensions). i know that's a very
  very minor issue and I'm also not sure if this is even worth a minor jira
  issue :-)

  regards,
  michael

  -
  Michael Sparer
  http://talk-on-tech.blogspot.com
  --
  View this message in context: 
 http://www.nabble.com/A-very-very-minor-issue-with-SelectOption-tp16700368p16700368.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



1.3, resource locator and properties

2008-04-15 Thread Scott Swank
We are finally upgrading to Wicket 1.3 (in particular to 1.3.3 from
1.2.6) and our StringResourceModels can no longer find their property
files, which leaves our web pages containing the following:

[Warning: String resource for 'tickets' not found]

Our application init method contains:

   IResourceFinder finder = getResourceSettings().getResourceFinder();
   IResourceStreamLocator streamLocator = new
WebPageResourceStreamLocator(finder);
   getResourceSettings().setResourceStreamLocator(streamLocator);

and in our ResourceStreamLocator I added the following with a break
point on the System.out line:

   public IResourceStream locate(final Class clazz, String path, final
String variationAndStyle, final Locale locale, String extension)
   {
  if (!html.equals(extension)  !path.endsWith(.js) 
!path.endsWith(.css))
  {
 System.out.println(break);
  }
   ...

I never see the locate() method called in an attempt to find the
properties.  Where should I be looking?

Thank you,
Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help wanted for wicket autocomplete component

2008-04-15 Thread Patel, Sanjay
Hi,

 

I am trying to implement a simple auto complete AJAX text box which gives me 
the names of actors as I type in (by searching and getting the list of actors 
from database),  and set the Model Object (which is Actor selected from the 
auto complete drop down) for the Panel (in which this Auto complete Text Field 
lies); In adding a Behavior to the field, I am trying to do a setModel( ) for 
the panel (which contains the AutoCompleteTextField), but when I get the object 
(autoCompleteTextField.getModelObject( )) inside the behavior anonymous class, 
It returns a string, even though outside I seem to be getting model Object fine 
(outside as in outside the anonymous class declaration). Here's the full code 
as I know it.  

 

final AutoCompleteTextField actorInformationAutoCompleteTextField = new 
AutoCompleteTextField(input-auto-complete-actorForPanel-search, new 
Model((Actor) getModel().getObject()),

new AbstractAutoCompleteRenderer() {

  private static final long serialVersionUID = 1L;

 

  /**

   * [EMAIL PROTECTED]

   */

  @Override

  protected String getTextValue(Object object) {

return ((Actor) object).getLastName() + COMMA_SEPARATOR + (((Actor) 
object).getFirstName());

  }

 

  /**

   * [EMAIL PROTECTED]

   */

  @Override

  protected void renderChoice(Object object, 
Response response, String criteria) {

response.write(getTextValue(object));

 

  }

}) {

 

  private static final long serialVersionUID = 1L;

 

  /**

   * [EMAIL PROTECTED]

   */

  @Override

  @SuppressWarnings(unchecked)

  protected final IteratorActor getChoices(final String 
input) {

System.out.println( getChoices called 
--- );

if (Strings.isEmpty(input)) {

  return Collections.EMPTY_LIST.iterator();

}

 

// our list of choices (this is displayed with when 
user starts typing something)

final ListActor choices = new ArrayListActor(10);

 

// set the search key for data provider ...

ListActor actors = new ActorDataProvider(input, 
10).search(0, 10).getCollection();

 

for (int i = 0; i  actors.size(); i++) {

  System.out.println( Inside actors loop 
);

  System.out.println( Actor[i]   + 
actors.get(i).getFirstName());

  final Actor actorTemp = actors.get(i);

 

if (actorTemp.getFirstName().trim().contains(input) || 
actorTemp.getLastName().contains(input)) {

choices.add(actorTemp);

 

  }

 

  if (choices.size() == 10) {

break;

  }

}

 

return choices.iterator();

  }

 

};

 

 

Here is where I add Behavior:

actorInformationAutoCompleteTextField.add(new 
AjaxFormSubmitBehavior(onchange) {

  private static final long serialVersionUID = 1L;

 

  /**

   * [EMAIL PROTECTED]

   */

  @Override

  protected final void onSubmit(final AjaxRequestTarget target) 
{

System.out.println( onSubmit( ) for 
AjaxFormSubmitBehavior called );

// set the Model for the panel (with model object actor)

AbstractActorInformationPanel.this.setModelObject((Actor) 

AbstractActorInformationPanel.this.setReviewPlan(getReviewPlanForActor((Actor) 
actorInformationAutoCompleteTextField .getModelObject())); 
 When I try to do getModelObject( ) here it gives me 
Class Cast Exception! (Cannot convert from String to Actor)

  }

 

  /**

   * [EMAIL PROTECTED]

   */

  @Override

  protected final void onError(final AjaxRequestTarget target) {

System.out.println( onError( ) for 
AjaxFormSubmitBehavior called );

  }

});

 

 

Can someone tell me what's wrong?


-
To unsubscribe, e-mail: [EMAIL 

markup inheritance...

2008-04-15 Thread Jan Kriesten


Hi,

I've a case on markup inheritance where I'm unsure:

Given the following markup

 tr wicket:id=rows
   td wicket:id=cellsspan wicket:id=cell[cell]/span/td
 /tr

which is an excerpt from Datatable.

I add an OddEvenItem in newRowItem for each row. So far so good.

Now: On clicking a row, I want to change the display with some logic, especially 
I want to have the normal row from above /plus/ a second row (which in my case 
would contain a context menu):


 tr wicket:id=rows
   td wicket:id=cellsspan wicket:id=cell[cell]/span/td
 /tr
 tr wicket:id=action-row
   td wicket:id=action-cellsspan wicket:id=action-cell/span/td
 /tr

I thought I could eventually replace the original from the DataTable by defining 
an extended OddEvenItem which has it's own Markup (and indicating this by 
returning 'true' from 'hasAssociatedMarkup' - but this actually get ignored as 
it seems. Also, would this actually replace the markup from the DataTable for 
the given rows-definition (including everything in between)?


Is there any way to accomplish this?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help wanted for wicket autocomplete component

2008-04-15 Thread Ryan Gravener
Set the model object in getTextValue(java.lang.Object object)

but in your renderChoice(*) do not call getTextValue!!!  make another
method called getStringValue() and return the actor name, then in
getTextValue set the modelobject and return getStringValue().

I am not positive this will work.

On Tue, Apr 15, 2008 at 2:23 PM, Patel, Sanjay [EMAIL PROTECTED] wrote:
 Hi,



  I am trying to implement a simple auto complete AJAX text box which gives me 
 the names of actors as I type in (by searching and getting the list of actors 
 from database),  and set the Model Object (which is Actor selected from the 
 auto complete drop down) for the Panel (in which this Auto complete Text 
 Field lies); In adding a Behavior to the field, I am trying to do a setModel( 
 ) for the panel (which contains the AutoCompleteTextField), but when I get 
 the object (autoCompleteTextField.getModelObject( )) inside the behavior 
 anonymous class, It returns a string, even though outside I seem to be 
 getting model Object fine (outside as in outside the anonymous class 
 declaration). Here's the full code as I know it.



  final AutoCompleteTextField actorInformationAutoCompleteTextField = new 
 AutoCompleteTextField(input-auto-complete-actorForPanel-search, new 
 Model((Actor) getModel().getObject()),

 new AbstractAutoCompleteRenderer() {

   private static final long serialVersionUID = 1L;



   /**

* [EMAIL PROTECTED]

*/

   @Override

   protected String getTextValue(Object object) {

  return ((Actor) object).getLastName() + COMMA_SEPARATOR + (((Actor) 
 object).getFirstName());

   }



   /**

* [EMAIL PROTECTED]

*/

   @Override

   protected void renderChoice(Object object, 
 Response response, String criteria) {

 response.write(getTextValue(object));



   }

 }) {



   private static final long serialVersionUID = 1L;



   /**

* [EMAIL PROTECTED]

*/

   @Override

   @SuppressWarnings(unchecked)

   protected final IteratorActor getChoices(final String 
 input) {

 System.out.println( getChoices called 
 --- );

 if (Strings.isEmpty(input)) {

   return Collections.EMPTY_LIST.iterator();

 }



 // our list of choices (this is displayed with when 
 user starts typing something)

 final ListActor choices = new ArrayListActor(10);



 // set the search key for data provider ...

 ListActor actors = new ActorDataProvider(input, 
 10).search(0, 10).getCollection();



 for (int i = 0; i  actors.size(); i++) {

   System.out.println( Inside actors loop 
 );

   System.out.println( Actor[i]   + 
 actors.get(i).getFirstName());

   final Actor actorTemp = actors.get(i);



  if (actorTemp.getFirstName().trim().contains(input) || 
 actorTemp.getLastName().contains(input)) {

 choices.add(actorTemp);



   }



   if (choices.size() == 10) {

 break;

   }

 }



 return choices.iterator();

   }



 };





  Here is where I add Behavior:

 actorInformationAutoCompleteTextField.add(new 
 AjaxFormSubmitBehavior(onchange) {

   private static final long serialVersionUID = 1L;



   /**

* [EMAIL PROTECTED]

*/

   @Override

   protected final void onSubmit(final AjaxRequestTarget 
 target) {

 System.out.println( onSubmit( ) for 
 AjaxFormSubmitBehavior called );

 // set the Model for the panel (with model object 
 actor)

  AbstractActorInformationPanel.this.setModelObject((Actor)

  
 AbstractActorInformationPanel.this.setReviewPlan(getReviewPlanForActor((Actor)
  actorInformationAutoCompleteTextField .getModelObject())); 
  When I try to do getModelObject( ) here it gives me 
 Class Cast Exception! (Cannot convert from String to Actor)

   }



   /**

  

Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream

2008-04-15 Thread adrienleroy

Hello,

I experience a serialization problem with one of my page, i have got a page
with a wizard in it, in this wizard i have a step with five uploadfield, in
most of the case i have got no error using my wizard, but sometime some user
report me an internal error message, and when i check the logfile , there
is the following message :

ERROR - Objects- Error serializing object class
yetre.artiste.tableau.wizard.AjouterTableauWizardPage [object=[Page class =
yetre.artiste.tableau.wizard.AjouterTableauWizardPage, id = 3, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
org.apache.wicket.util.io.DeferredFileOutputStream
Field hierarchy is:
  3 [class=yetre.artiste.tableau.wizard.AjouterTableauWizardPage, path=3]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  protected org.apache.wicket.util.collections.MiniMap
org.apache.wicket.markup.html.link.BookmarkablePageLink.parameters[11]
[class=yetre.artiste.tableau.wizard.AjouterTableauWizard,
path=3:ajouterTableauWizard]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.markup.html.form.Form,
path=3:ajouterTableauWizard:form]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
private java.lang.Object
org.apache.wicket.MarkupContainer.children[0]
[class=org.apache.wicket.extensions.wizard.WizardStep$Header,
path=3:ajouterTableauWizard:form:header]
  private final org.apache.wicket.extensions.wizard.WizardStep
org.apache.wicket.extensions.wizard.WizardStep$Header.this$0
[class=yetre.artiste.tableau.wizard.AjouterTableauWizard$GalerieUploadStep,
path=3:ajouterTableauWizard:form:view]
private org.apache.wicket.extensions.wizard.IWizardModel
org.apache.wicket.extensions.wizard.WizardStep.wizardModel
[class=org.apache.wicket.extensions.wizard.WizardModel]
  private java.util.List
org.apache.wicket.extensions.wizard.WizardModel.steps
[class=java.util.ArrayList]
private java.util.List
org.apache.wicket.extensions.wizard.WizardModel.steps[write:1]
[class=yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep,
path=view]
  private java.util.Collection
yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads
[class=java.util.ArrayList]
private java.util.Collection
yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads[write:1]
[class=org.apache.wicket.markup.html.form.upload.FileUpload]
  private final
org.apache.wicket.util.upload.FileItem
org.apache.wicket.markup.html.form.upload.FileUpload.item
[class=org.apache.wicket.util.upload.DiskFileItem]
private
org.apache.wicket.util.io.DeferredFileOutputStream
org.apache.wicket.util.upload.DiskFileItem.dfos
[class=org.apache.wicket.util.io.DeferredFileOutputStream] - field that
is not serializable

The error seems to be in org.apache.wicket.util.io.DeferredFileOutputStream
which is not serialazable,
but i am note sure that making this class Serializable and recompiling
wicket will definitevly solve the problem. Have you got some advice?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Unable-to-serialize-class%3A-org.apache.wicket.util.io.DeferredFileOutputStream-tp16705385p16705385.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 1.3, resource locator and properties

2008-04-15 Thread Scott Swank
Previously we retrieved the CompoundResourceStreamLocator and added
our ResourceStreamLocator to it.  In 1.2 did this take care of
StringResourceLoader too?

   WebApplicationPath resourceFinder = (WebApplicationPath)
getResourceSettings().getResourceFinder();
   resourceFinder.add(Env.getInstance().getAthenaDocRoot());

   CompoundResourceStreamLocator locator =
(CompoundResourceStreamLocator)
getResourceSettings().getResourceStreamLocator();
   locator.add(0, new WebPageResourceStreamLocator(resourceFinder));

Thank you,
Scott


On Tue, Apr 15, 2008 at 10:55 AM, Scott Swank [EMAIL PROTECTED] wrote:
 We are finally upgrading to Wicket 1.3 (in particular to 1.3.3 from
  1.2.6) and our StringResourceModels can no longer find their property
  files, which leaves our web pages containing the following:

 [Warning: String resource for 'tickets' not found]

  Our application init method contains:

IResourceFinder finder = getResourceSettings().getResourceFinder();
IResourceStreamLocator streamLocator = new
  WebPageResourceStreamLocator(finder);
getResourceSettings().setResourceStreamLocator(streamLocator);

  and in our ResourceStreamLocator I added the following with a break
  point on the System.out line:

public IResourceStream locate(final Class clazz, String path, final
  String variationAndStyle, final Locale locale, String extension)
{
   if (!html.equals(extension)  !path.endsWith(.js) 
  !path.endsWith(.css))
   {
  System.out.println(break);
   }
...

  I never see the locate() method called in an attempt to find the
  properties.  Where should I be looking?

  Thank you,
  Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream

2008-04-15 Thread Scott Swank
Your AjouterTableauWizardPage should not have a stream on it as a
serializable field.  If you need to have that field then you'll need
to make it transient.

- Scott


On Tue, Apr 15, 2008 at 12:14 PM, adrienleroy [EMAIL PROTECTED] wrote:

  Hello,

  I experience a serialization problem with one of my page, i have got a page
  with a wizard in it, in this wizard i have a step with five uploadfield, in
  most of the case i have got no error using my wizard, but sometime some user
  report me an internal error message, and when i check the logfile , there
  is the following message :

  ERROR - Objects- Error serializing object class
  yetre.artiste.tableau.wizard.AjouterTableauWizardPage [object=[Page class =
  yetre.artiste.tableau.wizard.AjouterTableauWizardPage, id = 3, version = 0]]
  org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
  Unable to serialize class:
  org.apache.wicket.util.io.DeferredFileOutputStream
  Field hierarchy is:
   3 [class=yetre.artiste.tableau.wizard.AjouterTableauWizardPage, path=3]
 private java.lang.Object org.apache.wicket.MarkupContainer.children
  [class=[Ljava.lang.Object;]
   protected org.apache.wicket.util.collections.MiniMap
  org.apache.wicket.markup.html.link.BookmarkablePageLink.parameters[11]
  [class=yetre.artiste.tableau.wizard.AjouterTableauWizard,
  path=3:ajouterTableauWizard]
 private java.lang.Object org.apache.wicket.MarkupContainer.children
  [class=org.apache.wicket.markup.html.form.Form,
  path=3:ajouterTableauWizard:form]
   private java.lang.Object
  org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
 private java.lang.Object
  org.apache.wicket.MarkupContainer.children[0]
  [class=org.apache.wicket.extensions.wizard.WizardStep$Header,
  path=3:ajouterTableauWizard:form:header]
   private final org.apache.wicket.extensions.wizard.WizardStep
  org.apache.wicket.extensions.wizard.WizardStep$Header.this$0
  [class=yetre.artiste.tableau.wizard.AjouterTableauWizard$GalerieUploadStep,
  path=3:ajouterTableauWizard:form:view]
 private org.apache.wicket.extensions.wizard.IWizardModel
  org.apache.wicket.extensions.wizard.WizardStep.wizardModel
  [class=org.apache.wicket.extensions.wizard.WizardModel]
   private java.util.List
  org.apache.wicket.extensions.wizard.WizardModel.steps
  [class=java.util.ArrayList]
 private java.util.List
  org.apache.wicket.extensions.wizard.WizardModel.steps[write:1]
  [class=yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep,
  path=view]
   private java.util.Collection
  yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads
  [class=java.util.ArrayList]
 private java.util.Collection
  
 yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads[write:1]
  [class=org.apache.wicket.markup.html.form.upload.FileUpload]
   private final
  org.apache.wicket.util.upload.FileItem
  org.apache.wicket.markup.html.form.upload.FileUpload.item
  [class=org.apache.wicket.util.upload.DiskFileItem]
 private
  org.apache.wicket.util.io.DeferredFileOutputStream
  org.apache.wicket.util.upload.DiskFileItem.dfos
  [class=org.apache.wicket.util.io.DeferredFileOutputStream] - field that
  is not serializable

  The error seems to be in org.apache.wicket.util.io.DeferredFileOutputStream
  which is not serialazable,
  but i am note sure that making this class Serializable and recompiling
  wicket will definitevly solve the problem. Have you got some advice?

  Thanks
  --
  View this message in context: 
 http://www.nabble.com/Unable-to-serialize-class%3A-org.apache.wicket.util.io.DeferredFileOutputStream-tp16705385p16705385.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with menu

2008-04-15 Thread Mathias P.W Nilsson

Thanks!

How can this be done with markup inheritance.

I want to display a div menu like

div
  div -- Header /div
  divcontent change for pages /div
   div-- footer --/div
/div

The content for pages could be and ulli with links. If I use inheritance
then the content will be in a parent page. I don't know how to proceed.
-- 
View this message in context: 
http://www.nabble.com/problem-with-menu-tp16700154p16707394.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket is the state into which all web frameworks will eventually evolve

2008-04-15 Thread Andrew Broderick
Hi,

Just wanted to take time to say I LOVE WICKET! It is a completely different 
approach from the other MVC frameworks. For modularity, stability, ease of use, 
and separation of concerns, it blows them out of the water.

We have been using Wicket 1.3 intensively for a month now. We are building a 
major public website (it has to stay under wraps until after its official 
launch on May 1st). Learning Wicket has not been without teething troubles - 
after all, no framework is perfect. But, the inherent ease of splitting things 
up into components, and the inherent encapsulation that comes with this, has 
shrunk our development time markedly. It also gives us a high level of 
confidence in what we've built, because once you get something working in 
isolation, it keeps working wherever you eventually put it. This is, I think, 
the single biggest benefit it gives us.

We've thrown our site together quickly and under great time pressure, and 
Wicket has delivered. The inherent type safety you get from building the site 
from Java classes helps hugely. It means very few run-time bugs. The separation 
of markup means our web designer can work in the same codebase as our Java guys 
too, so no duplication of effort. In fact, what we have done wouldn't be 
possible in such a short time frame with any other framework.

So, a huge thank you to the Wicket development team. Keep up the good work!

___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214


Re: Wicket is the state into which all web frameworks will eventually evolve

2008-04-15 Thread Vitaly Tsaplin
   ...It's also worth to mention an extremely helpful community!

On Tue, Apr 15, 2008 at 10:39 PM, Andrew Broderick
[EMAIL PROTECTED] wrote:
 Hi,

  Just wanted to take time to say I LOVE WICKET! It is a completely different 
 approach from the other MVC frameworks. For modularity, stability, ease of 
 use, and separation of concerns, it blows them out of the water.

  We have been using Wicket 1.3 intensively for a month now. We are building a 
 major public website (it has to stay under wraps until after its official 
 launch on May 1st). Learning Wicket has not been without teething troubles - 
 after all, no framework is perfect. But, the inherent ease of splitting 
 things up into components, and the inherent encapsulation that comes with 
 this, has shrunk our development time markedly. It also gives us a high level 
 of confidence in what we've built, because once you get something working in 
 isolation, it keeps working wherever you eventually put it. This is, I think, 
 the single biggest benefit it gives us.

  We've thrown our site together quickly and under great time pressure, and 
 Wicket has delivered. The inherent type safety you get from building the site 
 from Java classes helps hugely. It means very few run-time bugs. The 
 separation of markup means our web designer can work in the same codebase as 
 our Java guys too, so no duplication of effort. In fact, what we have done 
 wouldn't be possible in such a short time frame with any other framework.

  So, a huge thank you to the Wicket development team. Keep up the good work!

  ___

  The  information in this email or in any file attached
  hereto is intended only for the personal and confiden-
  tial  use  of  the individual or entity to which it is
  addressed and may contain information that is  propri-
  etary  and  confidential.  If you are not the intended
  recipient of this message you are hereby notified that
  any  review, dissemination, distribution or copying of
  this message is strictly prohibited.  This  communica-
  tion  is  for information purposes only and should not
  be regarded as an offer to sell or as  a  solicitation
  of an offer to buy any financial product. Email trans-
  mission cannot be guaranteed to be  secure  or  error-
  free. P6070214


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket is the state into which all web frameworks will eventually evolve

2008-04-15 Thread Piller Sébastien

Hello,

I can only agree 100% with what you said. I came to Wicket after a lot 
of php dev, and it was a very strong evolution. Not all benefits were 
due to wicket, some were inherent of the java language (type safety, 
semi compiled code...), but the wicket's built in components are very 
useful abstractions of commons web components (label, form, wizard, 
palette, sessions, ...).


And AFAIK, it's very well designed, easy to learn, very powerfull...

Long life to Wicket!

Andrew Broderick a écrit :

Hi,

Just wanted to take time to say I LOVE WICKET! It is a completely different 
approach from the other MVC frameworks. For modularity, stability, ease of use, 
and separation of concerns, it blows them out of the water.

We have been using Wicket 1.3 intensively for a month now. We are building a 
major public website (it has to stay under wraps until after its official 
launch on May 1st). Learning Wicket has not been without teething troubles - 
after all, no framework is perfect. But, the inherent ease of splitting things 
up into components, and the inherent encapsulation that comes with this, has 
shrunk our development time markedly. It also gives us a high level of 
confidence in what we've built, because once you get something working in 
isolation, it keeps working wherever you eventually put it. This is, I think, 
the single biggest benefit it gives us.

We've thrown our site together quickly and under great time pressure, and 
Wicket has delivered. The inherent type safety you get from building the site 
from Java classes helps hugely. It means very few run-time bugs. The separation 
of markup means our web designer can work in the same codebase as our Java guys 
too, so no duplication of effort. In fact, what we have done wouldn't be 
possible in such a short time frame with any other framework.

So, a huge thank you to the Wicket development team. Keep up the good work!

___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help wanted for wicket autocomplete component

2008-04-15 Thread Ryan Sonnek
have you looked at the wicketstuff-scriptaculous project?  there's an
autocomplete text field that should be what you need.

On Tue, Apr 15, 2008 at 1:53 PM, Ryan Gravener [EMAIL PROTECTED]
wrote:

 Set the model object in getTextValue(java.lang.Object object)

 but in your renderChoice(*) do not call getTextValue!!!  make another
 method called getStringValue() and return the actor name, then in
 getTextValue set the modelobject and return getStringValue().

 I am not positive this will work.

 On Tue, Apr 15, 2008 at 2:23 PM, Patel, Sanjay [EMAIL PROTECTED]
 wrote:
  Hi,
 
 
 
   I am trying to implement a simple auto complete AJAX text box which
 gives me the names of actors as I type in (by searching and getting the list
 of actors from database),  and set the Model Object (which is Actor selected
 from the auto complete drop down) for the Panel (in which this Auto complete
 Text Field lies); In adding a Behavior to the field, I am trying to do a
 setModel( ) for the panel (which contains the AutoCompleteTextField), but
 when I get the object (autoCompleteTextField.getModelObject( )) inside the
 behavior anonymous class, It returns a string, even though outside I seem to
 be getting model Object fine (outside as in outside the anonymous class
 declaration). Here's the full code as I know it.
 
 
 
   final AutoCompleteTextField actorInformationAutoCompleteTextField = new
 AutoCompleteTextField(input-auto-complete-actorForPanel-search, new
 Model((Actor) getModel().getObject()),
 
  new AbstractAutoCompleteRenderer() {
 
private static final long serialVersionUID
 = 1L;
 
 
 
/**
 
 * [EMAIL PROTECTED]
 
 */
 
@Override
 
protected String getTextValue(Object
 object) {
 
   return ((Actor) object).getLastName() + COMMA_SEPARATOR + (((Actor)
 object).getFirstName());
 
}
 
 
 
/**
 
 * [EMAIL PROTECTED]
 
 */
 
@Override
 
protected void renderChoice(Object object,
 Response response, String criteria) {
 
 
 response.write(getTextValue(object));
 
 
 
}
 
  }) {
 
 
 
private static final long serialVersionUID = 1L;
 
 
 
/**
 
 * [EMAIL PROTECTED]
 
 */
 
@Override
 
@SuppressWarnings(unchecked)
 
protected final IteratorActor getChoices(final
 String input) {
 
  System.out.println( getChoices called
 --- );
 
  if (Strings.isEmpty(input)) {
 
return Collections.EMPTY_LIST.iterator();
 
  }
 
 
 
  // our list of choices (this is displayed with
 when user starts typing something)
 
  final ListActor choices = new
 ArrayListActor(10);
 
 
 
  // set the search key for data provider ...
 
  ListActor actors = new
 ActorDataProvider(input, 10).search(0, 10).getCollection();
 
 
 
  for (int i = 0; i  actors.size(); i++) {
 
System.out.println( Inside actors loop
 );
 
System.out.println( Actor[i]
   + actors.get(i).getFirstName());
 
final Actor actorTemp = actors.get(i);
 
 
 
   if (actorTemp.getFirstName().trim().contains(input) ||
 actorTemp.getLastName().contains(input)) {
 
  choices.add(actorTemp);
 
 
 
}
 
 
 
if (choices.size() == 10) {
 
  break;
 
}
 
  }
 
 
 
  return choices.iterator();
 
}
 
 
 
  };
 
 
 
 
 
   Here is where I add Behavior:
 
  actorInformationAutoCompleteTextField.add(new
 AjaxFormSubmitBehavior(onchange) {
 
private static final long serialVersionUID = 1L;
 
 
 
/**
 
 * [EMAIL PROTECTED]
 
 */
 
@Override
 
protected final void onSubmit(final AjaxRequestTarget
 target) {
 
  System.out.println( onSubmit( ) for
 AjaxFormSubmitBehavior called );
 
  // set the Model for the panel (with model
 object actor)
 
   AbstractActorInformationPanel.this.setModelObject((Actor)
 
 
  
 

problems with stateless forms and radiogroups/checkgroups

2008-04-15 Thread Alexei Sokolov
Hello,
I'm trying to use radiogroup/checkgroup with stateless form, and it is not
possible at the moment. I get the following exception:

submitted http post value [radio4] for RadioGroup component
[0:form:whatever] is illegal because it does not contain relative path to a
Radio componnet. Due to this the RadioGroup component cannot resolve the
selected Radio component pointed to by the illegal value. A possible reason
is that component hierarchy changed between rendering and form submission.

I think the problem lies inside Check  Radio components, which use
Page.getAutoIndex()  and that value is different before and after page
submission for Check/Radio components.

Now, it is not possible to override getValue() on Check/Radio components, so
I'm kind of stuck now...

Please tell me how to fix this issue,

Thanks,
Alex


Re: warning: [deprecation] AuthenticatedWebSession(AuthenticatedWebApplication,Request)

2008-04-15 Thread cjlyth

I get it as well with 1.3.3 with the single parameter constructor. When I
downgrade to 1.3.2 the error goes away. 


sindibade wrote:
 
 Hi all,
 
 I still encounter the same problem with wicket 1.3.3
 
 Thanx,
 
 Tarik
 
 
 
 
 Mr Mean wrote:
 
 AuthenticatedWebApplication used the deprecated constructor, this
 should be fixed in wicket 1.3.3 see
 https://issues.apache.org/jira/browse/WICKET-1423
 
 Maurice
 
 On Sun, Apr 6, 2008 at 3:55 PM, rosen jiang [EMAIL PROTECTED]
 wrote:

  Hi all,

  I encounter the same problem, how to resolve it?

  thx!
  -rosen jiang




  Johnnie wrote:
  
   Hi,
  
   I'm using Wicket 1.3.2, had a piece of code that read like this:
  
   public MySession(final AuthenticatedWebApplication application,
   final Request   request) {
  
   super(application, request);
  
   }
  
   and was getting the following warning:
  
 warning: [deprecation]
  
 AuthenticatedWebSession(org.apache.wicket.authentication.AuthenticatedWebApplication,org.apache.wicket.Request)
   in org.apache.wicket.authentication.AuthenticatedWebSession has been
   deprecated
  
   so I tried to use the form of the constructor that takes only one
 argument
   - Request, like so:
  
   public ElectronicaSession(final AuthenticatedWebApplication
   application,
   final Request   request) {
  
   super(request);
  
   }
  
   and now I get:
  
   org.apache.wicket.WicketRuntimeException: Unable to instantiate web
   session class my.package.MySession
  
  
 org.apache.wicket.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:120)
 org.apache.wicket.Session.findOrCreate(Session.java:228)
 org.apache.wicket.Session.findOrCreate(Session.java:211)
 org.apache.wicket.Session.get(Session.java:250)

 org.apache.wicket.Application$1.onInstantiation(Application.java:276)
  
  
 org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:974)
 org.apache.wicket.Component.init(Component.java:866)

 org.apache.wicket.MarkupContainer.init(MarkupContainer.java:105)
 org.apache.wicket.Page.init(Page.java:236)
 org.apache.wicket.markup.html.WebPage.init(WebPage.java:184)
  
  
 org.apache.wicket.markup.html.pages.ExceptionErrorPage.init(ExceptionErrorPage.java:55)
  
  
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:163)
 org.apache.wicket.RequestCycle.step(RequestCycle.java:1280)
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
 org.apache.wicket.RequestCycle.request(RequestCycle.java:493)

 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
  
  
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
  
   How do I avoid both the warning and the error?
  
   Best regards,
  
   Johnny
  
  
  
  

  --
  View this message in context:
 http://www.nabble.com/warning%3A--deprecation--AuthenticatedWebSession%28AuthenticatedWebApplication%2CRequest%29-tp16329498p16524401.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/warning%3A--deprecation--AuthenticatedWebSession%28AuthenticatedWebApplication%2CRequest%29-tp16329498p16713077.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



best strategy to add toolbar

2008-04-15 Thread Eyal Golan
Hi,
I have a toolbar that I want to add to my table as bottom-toolbar ONLY IF
there are records (data-provider size 0).
Here's where I put it:

...
NumRecordsToolbar numRecordsToolbar = new NumRecordsToolbar(this);
...

@Override
protected void onBeforeRender() {
if (dataProvider.size()  0) {
addBottomToolbar(numRecordsToolbar);
}
super.onBeforeRender();
}

I know this is wrong as when the second time I render the page / table, I
get an exception.
I can use a boolean to mark that I already put this toolbar but it smells
wrong to me...

Is there a best practice for that? Another method I should try?
(BTW, I tried it in onComponenetTag and of course it didn't work).


Thanks

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/