Re: Usage of getString with parameters (model?)

2008-11-21 Thread Eyal Golan
A small addition, if anyone encounters this situation.
After trying the new Model[]{bla}, it still didn't work for me.
Looking at the code (Ernesto ;) ), I saw in
PropertyVariableInterpolator.interpolate(...) that it is looking for a ${
mark.
So in my properties file I had to change to be:
Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource
Connections by ${0} Pattern Report

(The $ was missing before).


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Nov 18, 2008 at 1:00 PM, Ernesto Reinaldo Barreiro 
[EMAIL PROTECTED] wrote:

 Hi Eyal,

 If you open the Component class you will see a method:

 public String getString(final String key, final Component component, final
 IModel? model,
 final String defaultValue) throws MissingResourceException {
 
 }

 which finds a localizer...  an Localizer after locating the key calls to :

 public String substitutePropertyExpressions(final Component component,
 final
 String string,
 final IModel? model)
 {
 if ((string != null)  (model != null))
 {
 return PropertyVariableInterpolator.interpolate(string, model.getObject());
 }
 return string;
 }

 if you look into the code of PropertyVariableInterpolator you will see it
 delegates to  PropertyResolver for variable sustitution. So, I would guess
 something like:


  getString(Reports.ReportTitle.SuspectedConnectionsUserRes, new
 ModelObject(new Object[]{bla});

 will produce:

 Suspected User-Resource Connections by bla Pattern Report

 You could also use:

 1- Suspected User-Resource
 Connections by {bla} Pattern Report
 2- A bean class

 class MyBean {
   String bla = bla;
 }

 3- and getString(Reports.ReportTitle.SuspectedConnectionsUserRes, new
 ModelMyBean(new MyBean());

 with the same result. Don't be afraid of looking into Wicket''s source
 code;-)

 A quick search in google also shows me the following link


 http://day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html

 Best,

 Ernesto

 On Tue, Nov 18, 2008 at 11:21 AM, Eyal Golan [EMAIL PROTECTED] wrote:

  Hi,
  I have a key in the property file:
  Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource
  Connections by {0} Pattern Report
 
  I want to use
 getString(Reports.ReportTitle.SuspectedConnectionsUserRes,
  SOMETHING);
  to get the value with the {0} substituted. I'm not sure how to do this.
 
  Please advise,
 
  thanks
 
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: datatable and access to toolbars

2008-11-21 Thread Eyal Golan
Hi Alex,
We had a similar situation.
We want a bottom toolbar that has a drop down for selection of number of
rows in a page.
After a while another requirement was added: add links that open a popup
window to change columns in the table and another one to open a popup for
filtering the table.
I wanted to add them both to the bottom toolbar.
As Igor said, we use addBottomToolbar.

Our table inherits from DataTable (not DefaultDataTable) because we changed
also the top toolbars.
Here's the code in the customized data table:
addBottomToolbar(new NoRecordsToolbar(this));
addBottomToolbar(new CustomizedBottomTableToolbar(this, rowsPerPage,
popupWindowsModel, showSelectRecordsPerPage));
The NoRecordToolbar is from Wicket.
CustomizedBottomToolbar inherits from AbstractToolbar.
Here's the HTML for the toolbar, the java code is normal with no special
features:
wicket:panel
tr
td wicket:id=span class=select-number-recordsspan
style=float: left; vertical-align: bottom; span
wicket:id=modalsLinksList a href=#
wicket:id=modalLinkspan
wicket:id=modalText[Link Text]/span/a /span /span
label
wicket:id=pagingLabel /label select
wicket:id=pagingSelect
/select/td
/tr
/wicket:panel


Hope that helps.

Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Fri, Nov 21, 2008 at 5:49 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 see #addbottomtoolbar()

 -igor

 On Fri, Nov 21, 2008 at 2:57 AM, Alex Parvulescu
 [EMAIL PROTECTED] wrote:
  Hello,
 
  i have a question about the toolbars in the DataTable component.
 
  my use case is this : i want to embed a small editor in a bottom
 toolbar.Its
  a simple ok / cancel panel.
 
  I see that there no access to the 'bottomToolbars' variable in the
 DataTable
  its private and final and has no accessors.
 
  Plus theres no way i can replace a toolbar, if i try
  table.get(DataTable.TOOLBAR_COMPONENT_ID) the result is null,
  another approach is table.replace(new EditToolbar(table)); - which
 outputs
  an error: org.apache.wicket.WicketRuntimeException: Cannot replace a
  component which has not been added: id='toolbar'...
 
  My guess is that this is because of the   DataTable#addToolbar method:
  toolbar.setRenderBodyOnly(true); ..
 
  I have no workaround for this , except to drop the toolbars and start new
  with some panels.
 
  My question is if theres a reason toolbars are hidden away from the user,
  theres no clear way of working with them, except to initialise, and them
 let
  them be.
 
 
  btw i am using wicket 1.3.4
 
  thanks,
 
  Alex
 

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




Running wicketstuff examples

2008-11-23 Thread Eyal Golan
Hi,
I've checked out wicket-stuff trunk.
I want to run examples but can't.
For example, I want to run Start in the accordion sub project.
Right click on the mouse gives doesn't give me the Run option.

Should I check out again differently?

Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: datatable and access to toolbars

2008-11-24 Thread Eyal Golan
Alex,
I think you can still use the DataTable provided by Wicket.
Why not make a toolbar as a member of the table, add it, and then you'll get
all the access you need?

Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Nov 24, 2008 at 9:31 AM, Alex Parvulescu
[EMAIL PROTECTED]wrote:

 Hello,

 Your solution is good, I actually did that, but it does not cover all the
 use cases.A toolbar can replace itself with another toolbar, but I need
 external access to the toolbars, from the hierarchy.
 For example, each table row has an 'edit' button, on click, I need the
 'edit' toolbar to appear/activate.

 My problem is that I can't reach the toolbar component with a simple
 table.get(DataTable.TOOLBAR_COMPONENT_ID) .

 I think I'll roll my own, as Igor suggested,

 Thank you very much!
 Alex

 On Sun, Nov 23, 2008 at 4:10 PM, James Carman [EMAIL PROTECTED]
 wrote:

  How about you have your toolbar replace its own contents based on what
  mode it's in?
 
  On Sun, Nov 23, 2008 at 7:59 AM, Alex Parvulescu
  [EMAIL PROTECTED] wrote:
   Hi,
   Perhaps i did not make myself clear,
  
   After adding the toolbar , i need to replace it with another toolbar.
  
   Let's say that I have an 'add new' toolbar - with only an 'add new'
  button,
   and an 'edit' toolbar, for the editing part.
  
   The user clicks 'add new' - the 'add new' toolbar is replaced with the
   'edit' toolbar. on ok , the 'edit' toolbar is replaced again with the
  'add
   new' toolbar.A simple CRUD editor, embedded in the datatable component.
  
   That's why i need a way to reach the toolbar through the api, maybe
  through
   the #get method (something like
 table.get(DataTable.TOOLBAR_COMPONENT_ID)
  )
  
   It seems that after adding a toolbar to a table, there is no way that
 you
   can reach it in the component hierarchy anymore.
  
   Thanks,
   Alex
  
   On Fri, Nov 21, 2008 at 5:49 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
  wrote:
  
   see #addbottomtoolbar()
  
   -igor
  
   On Fri, Nov 21, 2008 at 2:57 AM, Alex Parvulescu
   [EMAIL PROTECTED] wrote:
Hello,
   
i have a question about the toolbars in the DataTable component.
   
my use case is this : i want to embed a small editor in a bottom
   toolbar.Its
a simple ok / cancel panel.
   
I see that there no access to the 'bottomToolbars' variable in the
   DataTable
its private and final and has no accessors.
   
Plus theres no way i can replace a toolbar, if i try
table.get(DataTable.TOOLBAR_COMPONENT_ID) the result is null,
another approach is table.replace(new EditToolbar(table)); - which
   outputs
an error: org.apache.wicket.WicketRuntimeException: Cannot replace a
component which has not been added: id='toolbar'...
   
My guess is that this is because of the   DataTable#addToolbar
 method:
toolbar.setRenderBodyOnly(true); ..
   
I have no workaround for this , except to drop the toolbars and
 start
  new
with some panels.
   
My question is if theres a reason toolbars are hidden away from the
  user,
theres no clear way of working with them, except to initialise, and
  them
   let
them be.
   
   
btw i am using wicket 1.3.4
   
thanks,
   
Alex
   
  
   -
   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: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-25 Thread Eyal Golan
[X] - YES
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Nov 25, 2008 at 10:51 AM, Björn-Peter Tietjens [EMAIL PROTECTED]wrote:

 [X] - YES



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




Hand on session code

2008-11-27 Thread Eyal Golan
Hi,
In deployment, we set our own internal error page:
getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
and
getExceptionSettings().setUnexpectedExceptionDisplay(
IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

Is there a quick way to get the type of the exception and show a different
message in our internal error page accordingly?
For example: if we get NullPointerException, show a message: You developer
coded null !!! .
And ArrayIndexOutOfBoundException will show: oops.. the array is too small
.

Thanks

Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Hand on session code

2008-11-27 Thread Eyal Golan
Thanks,

but looking at WebRequestCycleProcessor I didn't see onRuntimeException
method.
We use 1.3.4 version

Looking at AbstractRequestCycleProcessor:respond, I see the call:
if (responseClass != internalErrorPageClass 
settings.getUnexpectedExceptionDisplay() ==
IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE)
{
throw new RestartResponseException(internalErrorPageClass);
}

And I also see that RestartResponseException has a constructor with
PageParameters.

Is there a nice way to call the constructor with the parameters in respond ?
Without overriding all this method?

Thanks

Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Nov 27, 2008 at 3:31 PM, Michael Sparer [EMAIL PROTECTED]wrote:


 the first possibility that comes to my mind is overriding the following
 method in your application:

@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {

@Override
protected Page onRuntimeException(final Page page,
 final RuntimeException
 e) {
// do the default handling on
 pageexpiredexceptions
if (e instanceof PageExpiredException || e
 instanceof
 AuthorizationException) {
return null;
}
return new InternalServerError(page, e); //
  e.getCause for your NPE
}

};
 }

 egolan74 wrote:
 
  Hi,
  In deployment, we set our own internal error page:
  getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
  and
  getExceptionSettings().setUnexpectedExceptionDisplay(
  IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
 
  Is there a quick way to get the type of the exception and show a
 different
  message in our internal error page accordingly?
  For example: if we get NullPointerException, show a message: You
  developer
  coded null !!! .
  And ArrayIndexOutOfBoundException will show: oops.. the array is too
  small
  .
 
  Thanks
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: JVDrums
  LinkedIn: LinkedIn
 


 -
 Michael Sparer
 http://talk-on-tech.blogspot.com
 --
 View this message in context:
 http://www.nabble.com/Hand-on-session-code-tp20719154p20719327.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: Hand on session code

2008-11-27 Thread Eyal Golan
Thanks Dipu and Michael,

Michael, you understood correctly.
I used Dipu's solution as it looks nicer (no offend Michael :) )
However, I added a check for development / deployment.
And this is my (almost) final method.
/**
 * @see
org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
 *  org.apache.wicket.Response)
 */
@Override
public RequestCycle newRequestCycle(final Request request,
final Response response) {
return new WebRequestCycle(this, (WebRequest) request,
(WebResponse) response) {

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
if (DEPLOYMENT.equalsIgnoreCase(getConfigurationType())) {
if
(PageExpiredException.class.isAssignableFrom(e.getClass())) {
return null;
}
return new InternalErrorPage();
} else {
// In development we want to see the exception
return null;
}

}
};
}

All I need now is to work on the InternalErrorPage to get parameters and add
the information.

I have noticed one thing.
Overriding this method caused the
getExceptionSettings().setUnexpectedExceptionDisplay to be overridden.

Thanks again, that was very much helpful.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Nov 27, 2008 at 4:27 PM, Michael Sparer [EMAIL PROTECTED]wrote:


 What do you mean by saying you didn't see onRuntimeException in
 WebRequestCycleProcessor? If you didn't find it there it's because it's a
 method of its base class ;-)

 What I didn't mention when providing the code was that it's actually
 returning a Page (our internal server error page) and gets the Exception
 that caused the pain in the constructor. I might be misunderstanding you,
 but wasn't that the thing you wanted? Displaying different stuff in your
 error page based on what Exception was thrown?

 regards,
 Michael


 egolan74 wrote:
 
  Thanks,
 
  but looking at WebRequestCycleProcessor I didn't see onRuntimeException
  method.
  We use 1.3.4 version
 
  Looking at AbstractRequestCycleProcessor:respond, I see the call:
  if (responseClass != internalErrorPageClass 
  settings.getUnexpectedExceptionDisplay() ==
  IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE)
  {
  throw new
  RestartResponseException(internalErrorPageClass);
  }
 
  And I also see that RestartResponseException has a constructor with
  PageParameters.
 
  Is there a nice way to call the constructor with the parameters in
 respond
  ?
  Without overriding all this method?
 
  Thanks
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
  On Thu, Nov 27, 2008 at 3:31 PM, Michael Sparer
  [EMAIL PROTECTED]wrote:
 
 
  the first possibility that comes to my mind is overriding the following
  method in your application:
 
 @Override
 protected IRequestCycleProcessor newRequestCycleProcessor() {
 return new WebRequestCycleProcessor() {
 
 @Override
 protected Page onRuntimeException(final Page
 page,
  final RuntimeException
  e) {
 // do the default handling on
  pageexpiredexceptions
 if (e instanceof PageExpiredException ||
 e
  instanceof
  AuthorizationException) {
 return null;
 }
 return new InternalServerError(page, e);
  //
   e.getCause for your NPE
 }
 
 };
  }
 
  egolan74 wrote:
  
   Hi,
   In deployment, we set our own internal error page:
  
 getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
   and
   getExceptionSettings().setUnexpectedExceptionDisplay(
   IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
  
   Is there a quick way to get the type of the exception and show a
  different
   message in our internal error page accordingly?
   For example: if we get NullPointerException, show a message: You
   developer
   coded null !!! .
   And ArrayIndexOutOfBoundException will show: oops.. the array is too
   small
   .
  
   Thanks
  
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P  Save a tree. Please don't print this e-mail unless it's really
   necessary
  
  
   -
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: JVDrums
   LinkedIn

Re: Hand on session code

2008-11-27 Thread Eyal Golan
I actually did find it afterward :)
the ctrl+o in my eclipse confused me. :/

And I understood that it's the same

Thanks anyway...
I
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Nov 27, 2008 at 6:16 PM, Michael Sparer [EMAIL PROTECTED]wrote:


 Nicer? Well it's quite the same with the difference that I overrode the
 cycle
 processor and Dipu just the cycle ... I suspect you didn't find the right
 method to override ;-)

 regards,
 Michael


 egolan74 wrote:
 
  Thanks Dipu and Michael,
 
  Michael, you understood correctly.
  I used Dipu's solution as it looks nicer (no offend Michael :) )
  However, I added a check for development / deployment.
  And this is my (almost) final method.
  /**
   * @see
  org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
   *  org.apache.wicket.Response)
   */
  @Override
  public RequestCycle newRequestCycle(final Request request,
  final Response response) {
  return new WebRequestCycle(this, (WebRequest) request,
  (WebResponse) response) {
 
  @Override
  public Page onRuntimeException(Page page, RuntimeException e)
  {
  if (DEPLOYMENT.equalsIgnoreCase(getConfigurationType()))
 {
  if
  (PageExpiredException.class.isAssignableFrom(e.getClass())) {
  return null;
  }
  return new InternalErrorPage();
  } else {
  // In development we want to see the exception
  return null;
  }
 
  }
  };
  }
 
  All I need now is to work on the InternalErrorPage to get parameters and
  add
  the information.
 
  I have noticed one thing.
  Overriding this method caused the
  getExceptionSettings().setUnexpectedExceptionDisplay to be overridden.
 
  Thanks again, that was very much helpful.
 
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
  On Thu, Nov 27, 2008 at 4:27 PM, Michael Sparer
  [EMAIL PROTECTED]wrote:
 
 
  What do you mean by saying you didn't see onRuntimeException in
  WebRequestCycleProcessor? If you didn't find it there it's because it's
 a
  method of its base class ;-)
 
  What I didn't mention when providing the code was that it's actually
  returning a Page (our internal server error page) and gets the Exception
  that caused the pain in the constructor. I might be misunderstanding
 you,
  but wasn't that the thing you wanted? Displaying different stuff in your
  error page based on what Exception was thrown?
 
  regards,
  Michael
 
 
  egolan74 wrote:
  
   Thanks,
  
   but looking at WebRequestCycleProcessor I didn't see
 onRuntimeException
   method.
   We use 1.3.4 version
  
   Looking at AbstractRequestCycleProcessor:respond, I see the call:
   if (responseClass != internalErrorPageClass 
   settings.getUnexpectedExceptionDisplay() ==
   IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE)
   {
   throw new
   RestartResponseException(internalErrorPageClass);
   }
  
   And I also see that RestartResponseException has a constructor with
   PageParameters.
  
   Is there a nice way to call the constructor with the parameters in
  respond
   ?
   Without overriding all this method?
  
   Thanks
  
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P  Save a tree. Please don't print this e-mail unless it's really
   necessary
  
  
   On Thu, Nov 27, 2008 at 3:31 PM, Michael Sparer
   [EMAIL PROTECTED]wrote:
  
  
   the first possibility that comes to my mind is overriding the
  following
   method in your application:
  
  @Override
  protected IRequestCycleProcessor newRequestCycleProcessor() {
  return new WebRequestCycleProcessor() {
  
  @Override
  protected Page onRuntimeException(final Page
  page,
   final RuntimeException
   e) {
  // do the default handling on
   pageexpiredexceptions
  if (e instanceof PageExpiredException
  ||
  e
   instanceof
   AuthorizationException) {
  return null;
  }
  return new InternalServerError(page,
  e);
   //
e.getCause for your NPE
  }
  
  };
   }
  
   egolan74 wrote:
   
Hi,
In deployment, we set our own internal error page

Markup other than HTML

2008-11-27 Thread Eyal Golan
Hi,
I was asked today if it's possible to render a page to different format than
HTML.
I guess it is possible, but how one can do it?


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Changing appearance of ModalWindow?

2008-12-07 Thread Eyal Golan
Hi,
Looking at the source (inspect element in Firebug I saw that the caption's
class name is w_captionText and it's in a span object.
Anyway, in modal.css (Wicket's css file) it is set: *span.**w_captionText*{...}

So I guess you need to override it in your own CSS file.
Don't forget to add it to the header.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Sun, Dec 7, 2008 at 1:50 PM, Ashis [EMAIL PROTECTED] wrote:


 Dear all,
   How can i change the appearance of ModalWindow.Especially i want
 to change the font colour of modalwindow title.


 Thank you,
 Ashis
 --
 View this message in context:
 http://www.nabble.com/Changing-appearance-of-ModalWindow--tp20880252p20880252.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: Changing appearance of ModalWindow?

2008-12-07 Thread Eyal Golan
Hmm...
You need to add your HeaderContributor in the panel / page that is the
content of your modal window.
(I'm not sure, but maybe you can also put it in the modal's constructor).
Not in the onClick method.

As for setting CSS class name, I would start by using in the CSS the wicket
classes (w_caption Text for example) and see what happens.
Then, if all is OK, I would try setting my own CSS classes.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Dec 8, 2008 at 7:50 AM, Ashis [EMAIL PROTECTED] wrote:


 Thanks,
 Eyal Golan

 But adding header contibution does not work. I have following css and code.
 CSS
 span .interVeil{
 background-color:fuchsia;
 color:lime;

 **CODE***
 public void onClick(AjaxRequestTarget target) {
 application = (Application) getParent().getModelObject();
 modal1.setTitle(Edit Application);
 modal1.setInitialHeight(365);
 modal1.setInitialWidth(830);
 modal1.show(target);
 add(HeaderContributor.forCss(common.css));
 modal1.setCssClassName(interVeil);
}

 Your further suggestion will be greatly appreciated.
 --
 View this message in context:
 http://www.nabble.com/Changing-appearance-of-ModalWindow--tp20880252p20889846.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: Changing appearance of ModalWindow?

2008-12-08 Thread Eyal Golan
why do you add modal1.setCssClassName(w_caption); ?
Wicket adds all classes to the DOM objects (for example: the header, which
is called w_captionText).
The only thing you need is something like:
add(HeaderContributor.forCss(myCustomizedCss.css));
- in your panel / page.
(view source to check if it was actually added to you HTML output).

And in myCustomizedCss.css you need to do something like:
span.w_captionText {
  color: red !important;
}
The !important is so other CSS won't override yours.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Dec 8, 2008 at 1:25 PM, Ashis [EMAIL PROTECTED] wrote:



 Actually i mean i have added css class name as:
 modal1.setCssClassName(w_caption);
 and added property in it as:
 span .w_caption{
 color: red;
 .
 ...
 }
 But it does not work.No any change in modal window?
 --
 View this message in context:
 http://www.nabble.com/Changing-appearance-of-ModalWindow--tp20880252p20893576.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: Changing appearance of ModalWindow?

2008-12-08 Thread Eyal Golan
You are most welcome.
I would suggest you use Firefox, add Firebug and start researching by
yourself.
Just Inspect element' with Firebug and see the calsses names.
This is what I did.

BTW,
Wicket provides two basic themes for the modal window.
You can put in the modal's constructor:
setCssClassName(ModalWindow.CSS_CLASS_GRAY);
(or BLUE instead of GRAY).

Good luck :)


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Dec 8, 2008 at 2:03 PM, Ashis [EMAIL PROTECTED] wrote:


 Thank you very much it worked. I am very grateful to you.

 As you said w_captionText is for header part. Can you give me other
 property
 like changing modal window borders etc.

 Once again thanks Eyal Golan

 --
 View this message in context:
 http://www.nabble.com/Changing-appearance-of-ModalWindow--tp20880252p20894070.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]




Checkboxes validator

2008-12-28 Thread Eyal Golan
Hi,
I created a small validator and would like to share it with you all.
If there is already something like that, I will appreciate if someone direct
me to it.
This is a From Validator.
If you have several checkboxes in a form and you want that *at least* one
checkbox to be selected, you can use this validator.

Here is the code:

public class CheckboxesSelectValidator extends AbstractFormValidator {

private static final long serialVersionUID = -5475763159946590330L;
/** form components to be checked. */
private final CheckBox[] components;
private final String optionsMessage;

public CheckboxesSelectValidator(CheckBox[] components, String
optionsMessage) {
this.components = components;
this.optionsMessage = optionsMessage;
}

public FormComponent[] getDependentFormComponents() {
return components;
}

/**
 * At least one check box should be checked
 */
public void validate(Form form) {
for (CheckBox component : components) {
if (((Boolean) component.getConvertedInput()).booleanValue()) {
return;
}
}
error(components[0]);
}

@SuppressWarnings(unchecked)
@Override
protected Map variablesMap() {
Map args = new HashMap(1);
args.put(options, optionsMessage);
return args;
}
}

Here is a sample usage:
masterConfCheckbox.getForm().add(
new CheckboxesSelectValidator(new CheckBox[] {
masterConfCheckbox,
modelconfCheckbox },
getString(Reports.Parameters.validator.configuration)));

And this is the error message (taken from the properties file):

CheckboxesSelectValidator = Please select at least one option from
${options}.

Any remarks will be appreciated as well.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Twenty Six Wicket Tricks

2008-12-30 Thread Eyal Golan
I can't wait for yet another great Wicket book.
I will surly buy it.

regarding tricks,
using Modal window can be nice.
Integrating Wicket with JS libs (If it's not a topic for a small book by
itself).
Cool stuff with Ajax.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke
jonathan.lo...@gmail.comwrote:


 Well, over the break here I've started something I swore I would never do
 again (well, two things, if you include the JavaOne talk I'm working on).
 I'm writing a (hopefully relatively short) book. It's called Twenty-Six
 Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates
 something that people typically want to do and in the process builds a
 reusable and educational component. I've got 13 tricks coded up now and
 ideas for a handful more, but if there are any requests out there, please
 let me know. I'd also be interested in getting some idea how many people
 would be interested in this book (would provide some fuel for me to get it
 done). It does not cover any of the same ground as Wicket in Action (which
 you should buy if you have not already!), BTW. It's more of a companion to
 that book.

 Happy Holidays!

 Best,

   Jonathan


 --
 View this message in context:
 http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




UML Diagram of Wicket structure

2009-01-08 Thread Eyal Golan
Hi,
A few months ago someone sent a link that had a nice class diagram of
Wicket.
Can anyone point me there? I think it was a presentation about Wicket but
not sure.

OR,
Does anyone have a detailed Wicket class diagram?

Thanks


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: UML Diagram of Wicket structure

2009-01-08 Thread Eyal Golan
Actually it is. Thanks.
I want to show it to some friends whom are learning with me a course in OOD.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Jan 8, 2009 at 6:39 PM, Peter Thomas ptrtho...@gmail.com wrote:

 On Thu, Jan 8, 2009 at 9:42 PM, Eyal Golan egola...@gmail.com wrote:

  Hi,
  A few months ago someone sent a link that had a nice class diagram of
  Wicket.
  Can anyone point me there? I think it was a presentation about Wicket but
  not sure.


 This one?  I think it is quite old though...

 http://spider.bg/~aquarius/dl/Wicket%20Components%200.1.pnghttp://spider.bg/%7Eaquarius/dl/Wicket%20Components%200.1.png



 
  OR,
  Does anyone have a detailed Wicket class diagram?
 
  Thanks
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: UML Diagram of Wicket structure

2009-01-11 Thread Eyal Golan
Curties,
:)
well, actually it's a very theoretical course.
The guys I do the assignments with are less experienced programmers than me.
The other thing is, that when I describe friends about Wicket, I always tell
them that if I had needed to teach OO, I would show Wicket as a good
example.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Jan 8, 2009 at 8:24 PM, Curtis Cooley
curtis.coo...@venture.com.sgwrote:

 Eyal Golan wrote:
  Actually it is. Thanks.
  I want to show it to some friends whom are learning with me a course in
 OOD.
 
 
 Hopefully whoever is teaching the course will provide a better way to
 name interfaces than starting them all with I :(



 Confidential/Privileged information may be contained in this email. If you
 are not the intended recipient, please do not copy, distribute or use it for
 any purpose, nor disclose its contents to any other person. Please notify
 the sender immediately if you receive this in error.


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



Re: Drop Down Box - Ajax Behaviour

2009-02-16 Thread Eyal Golan
Where do yo u have the values in the DropDown in the first place?
If you use a model, why not updating it?


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Feb 16, 2009 at 2:13 PM, Daniel Ferreira Castro
dfcas...@gmail.comwrote:

 I read the examples of Ajax Forms and I am trying to adapt it to my needs.
 I have a form with a input text, a drop down box, a feedback panel and a
 submit button.

 My submit is an ajaxButton.
 My form setsOutputMarkupId(true);
 My dropdown sets OutputMarkupId(true);

 When I submit my form it inserts an item on a table.
 My intention is after the form submit the dropdown uptades itself, adding
 the previously inserted item to its options.

 how to do it?

 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill



Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Hi,
It's been a long time since I've written in this mailing list.

Here's my question:
I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter
while setting DEPLOYMENT in the web.xml.
I encountered the following thread:
http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498

In there there is this line:
System.setProperty(wicket.configuration, development);

I am using Wicket 1.3.4
Wicket Application class has a static filed called CONFIGURATION, which is
without the 'wicket' part.

Why doesn't it have a static 'wicket.configuration' ?
Wouldn't it be better?

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Thanks Marcelo and James.

I still prefer the solution we have come to:
In the web.xml put deployment and in the Jetty plugin (StartWebServer) put
the development.

My question was why Application.java doesn't have 'wicket.configuration' as
a static field.
Wouldn't it be nice?

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
gmail.com wrote:

 I am using tomcat. I just append -Dwicket.configuration=development on
 the start script. Perhaps you can append it to the jetty start as
 well.

 On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:
  Hi,
  It's been a long time since I've written in this mailing list.
 
  Here's my question:
  I was looking for a way to set the mode to DEVELOPMENT in the Jetty
 starter
  while setting DEPLOYMENT in the web.xml.
  I encountered the following thread:
 
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498
 
  In there there is this line:
  System.setProperty(wicket.configuration, development);
 
  I am using Wicket 1.3.4
  Wicket Application class has a static filed called CONFIGURATION, which
 is
  without the 'wicket' part.
 
  Why doesn't it have a static 'wicket.configuration' ?
  Wouldn't it be better?
 
  Thanks
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Marcelo Morales

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




Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Brill,
What I did is exactly so we don't need to change the source for dev / prod
environments.
When we develop we use the jetty plugin so we set hard-coded the environment
to DEVELOPMENT.
The production is a WAR (actually an EAR) file.
So the web.xml has configuration set to deployment.

That way we don't need to worry.

Igor:
got your point ...


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Feb 24, 2009 at 7:03 PM, Brill Pappin br...@pappin.ca wrote:

 Already answered the static field thing... but just curious why you think
 its better to have modify your source tree just to switch from dev to prod?
 Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to modify
 the source?

 - Brill pappin



 On 24-Feb-09, at 10:49 AM, Eyal Golan wrote:

  Thanks Marcelo and James.

 I still prefer the solution we have come to:
 In the web.xml put deployment and in the Jetty plugin (StartWebServer) put
 the development.

 My question was why Application.java doesn't have 'wicket.configuration'
 as
 a static field.
 Wouldn't it be nice?

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary


 On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
 gmail.com wrote:

  I am using tomcat. I just append -Dwicket.configuration=development on
 the start script. Perhaps you can append it to the jetty start as
 well.

 On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:

 Hi,
 It's been a long time since I've written in this mailing list.

 Here's my question:
 I was looking for a way to set the mode to DEVELOPMENT in the Jetty

 starter

 while setting DEPLOYMENT in the web.xml.
 I encountered the following thread:


 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498


 In there there is this line:
 System.setProperty(wicket.configuration, development);

 I am using Wicket 1.3.4
 Wicket Application class has a static filed called CONFIGURATION, which

 is

 without the 'wicket' part.

 Why doesn't it have a static 'wicket.configuration' ?
 Wouldn't it be better?

 Thanks

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really

 necessary





 --
 Marcelo Morales

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




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




Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
 What do you mean? there is!
  public static final String CONFIGURATION = configuration;
 (Application.java line 119 on 1.3.5)

Exactly - I was looking for 'wicket.configuration' rather than just
'configuration.

 BTW, there is a getConfigurationType() method in WebApplication, which
 should not be static.

And we use this method ...


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Feb 24, 2009 at 8:31 PM, Marcelo Morales marcelomorales.name@
gmail.com wrote:

 On Tue, Feb 24, 2009 at 11:49 AM, Eyal Golan egola...@gmail.com wrote:
  Thanks Marcelo and James.
 
  I still prefer the solution we have come to:
  In the web.xml put deployment and in the Jetty plugin (StartWebServer)
 put
  the development.

 Thats a best practice AFAIK

  My question was why Application.java doesn't have 'wicket.configuration'
 as
  a static field.
  Wouldn't it be nice?

 What do you mean? there is!
  public static final String CONFIGURATION = configuration;
 (Application.java line 119 on 1.3.5)

 BTW, there is a getConfigurationType() method in WebApplication, which
 should not be static.

 --
 Marcelo Morales

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




Feedback panel problem

2009-03-22 Thread Eyal Golan
)
at org.apache.wicket.Component.beforeRender(Component.java:1035)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1589)
... 35 more

* The NullPointerException is the validation that fails.

I tried adding the feedback panel before rendering:
@Override
/**
 * This is how we call overidable methods.
 */
protected void onBeforeRender() {
if (!hasBeenRendered()) {
initFactories();
}
super.onBeforeRender();
}

private void initFactories() {
FeedbackPanel feedbackPanel = new FeedbackPanel(feedback);
feedbackPanel.setOutputMarkupId(true);
form.add(feedbackPanel);
}

- Still have the same problem.

We use Wicket 1.3.4 (and planning to change to 1.3.5 soon).

My solution is to use a normal panel that shows error messages when the page
is constructed. But I would like to understand why this is happening.

Thanks for any suggestion.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Thanks John,
That is a great way of doing it.

On Tue, Jul 1, 2008 at 5:35 PM, John Krasnay [EMAIL PROTECTED] wrote:

 I like to do this in my base page:

 title wicket:id=titlefoo/title

 protected IModel getPageTitleModel() {
return new ResourceModel(getClass().getSimpleName());
 }

 add(new Label(title, new AbstractReadOnlyModel() {
public Object getObject() {
return getPageTitleModel().getObject();
}
 }));

 The AbstractReadOnlyModel is there to ensure I'm not calling the
 overrideable getPageTitleModel() from my base class constructor.

 By default my page titles come from my application's .properties file,
 like this:

 UserPage=User
 ClientPage=Client

 I re-use these labels when creating links to the same page. Of course, I
 can override getPageTitleModel() to return a custom title when needed.

 jk

 On Tue, Jul 01, 2008 at 03:36:45PM +0300, Eyal Golan wrote:
  yeah, but what if I have a markup inheritance?
  I then must use wicket:head ... don't I ?
 
  On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst 
 [EMAIL PROTECTED]
  wrote:
 
   nope. just use:
  
   title wicket:id=title/title
  
   add(new Label(title, Hello, World!));
  
   On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
Hi,
Is there a special header contributer for title/title ?
   
--
Eyal Golan
[EMAIL PROTECTED]
   
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
   
P Save a tree. Please don't print this e-mail unless it's really
   necessary
   
  
  
  
   --
   Become a Wicket expert, learn from the best: http://wicketinaction.com
   Apache Wicket 1.3.4 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Problem getting child component in UNIX - AIX

2008-07-09 Thread Eyal Golan
Hello all,
We have a weird situation and I hope you could help.

This is the line of code:
Component c = form.get(PropertyType.SAGE.managedItems:panelXML);
We even changed the ':' to Component.PATH_SEPARATOR

In windows all is well and we get the child component (that has wicket is
panelXML).
In AIX UNIX we get null.

Is it because a wicket id has '.' (dots)? Or is is something with the
separator?

Thanks for any help
-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Problem getting child component in UNIX - AIX

2008-07-09 Thread Eyal Golan
Yes I know.
We have looked into the code :)

But still, in UNIX we get null.
My friend here will try to change the parent's wicket id to be without dots.

Thanks

On Wed, Jul 9, 2008 at 10:56 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 Component.PATH_SEPARATOR is hard coded to be :
 so doing this:

 Component c = form.get(PropertyType.SAGE.managedItems:panelXML);

 or this

 Component c = form.get(PropertyType.SAGE.managedItems +
 Component.PATH_SEPARATOR+ panelXML);

 shouldnt matter 1 bit.

 johan


 On Wed, Jul 9, 2008 at 9:13 AM, Eyal Golan [EMAIL PROTECTED] wrote:

  Hello all,
  We have a weird situation and I hope you could help.
 
  This is the line of code:
  Component c = form.get(PropertyType.SAGE.managedItems:panelXML);
  We even changed the ':' to Component.PATH_SEPARATOR
 
  In windows all is well and we get the child component (that has wicket is
  panelXML).
  In AIX UNIX we get null.
 
  Is it because a wicket id has '.' (dots)? Or is is something with the
  separator?
 
  Thanks for any help
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


strange behavior with DropDown

2008-07-23 Thread Eyal Golan
Hello all,
I have a class that holds two DropDownChoice object.
We have a generic behavior:
According to one DropDown value, we set the list to the other.
Here's a code snippet of the 1st component:
private DropDownChoice createUniverseDropDown() {
IModel universesModel = getUniversesmodel();
DropDownChoice uniDropDown =
new DropDownChoice(universeSelect, new PropertyModel(this,
universeName),
universesModel) {
private static final long serialVersionUID = 1L;

@Override
protected boolean localizeDisplayValues() {
return true;
}
};
uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) {
private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(configurationsDropDown);
}
});
uniDropDown.setRequired(true);
return uniDropDown;
}

configurationsDropDown is the other one.

The situation:
We have a page and in that page there's a form with several components, some
buttons and the two DropDown from the special class (they have getters of
course).

The problem:
If the user chose a universe but did not choose a configuration (there's
still the 'choose one'), none of the buttons is submitted.
I have put confDropDown.setNullValid(false); but it did not help.
One of the buttons is CANCEL so I don't need any input and don't mind what
are the values in the components.

Is there any way of a walk through?
Please advise,
-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: strange behavior with DropDown

2008-07-23 Thread Eyal Golan
One more thing,
If I put a break point in the onSubmit of the Button, the debugger doesn't
even reach it if the configuration DropDown is not chosen.


On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote:

 Hello all,
 I have a class that holds two DropDownChoice object.
 We have a generic behavior:
 According to one DropDown value, we set the list to the other.
 Here's a code snippet of the 1st component:
 private DropDownChoice createUniverseDropDown() {
 IModel universesModel = getUniversesmodel();
 DropDownChoice uniDropDown =
 new DropDownChoice(universeSelect, new
 PropertyModel(this, universeName),
 universesModel) {
 private static final long serialVersionUID = 1L;

 @Override
 protected boolean localizeDisplayValues() {
 return true;
 }
 };
 uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onUpdate(AjaxRequestTarget target) {
 target.addComponent(configurationsDropDown);
 }
 });
 uniDropDown.setRequired(true);
 return uniDropDown;
 }

 configurationsDropDown is the other one.

 The situation:
 We have a page and in that page there's a form with several components,
 some buttons and the two DropDown from the special class (they have getters
 of course).

 The problem:
 If the user chose a universe but did not choose a configuration (there's
 still the 'choose one'), none of the buttons is submitted.
 I have put confDropDown.setNullValid(false); but it did not help.
 One of the buttons is CANCEL so I don't need any input and don't mind what
 are the values in the components.

 Is there any way of a walk through?
 Please advise,
 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P Save a tree. Please don't print this e-mail unless it's really necessary




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: strange behavior with DropDown

2008-07-23 Thread Eyal Golan
thanks,
It really stopped at the onError.
As I understand, and correct me if I'm wrong, I need to implement something
in that method.
Something like, check if the user pressed cancel, and if so, to continue to
whatever I want.
BTW, can I force the onSubmit of a button (my CANCEL button) even if there
was an error?

On Wed, Jul 23, 2008 at 3:42 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 override onError and set a breakpoint there. And add a feedbackpanel
 to your page.

 Martijn

 On Wed, Jul 23, 2008 at 2:40 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  One more thing,
  If I put a break point in the onSubmit of the Button, the debugger
 doesn't
  even reach it if the configuration DropDown is not chosen.
 
 
  On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote:
 
  Hello all,
  I have a class that holds two DropDownChoice object.
  We have a generic behavior:
  According to one DropDown value, we set the list to the other.
  Here's a code snippet of the 1st component:
  private DropDownChoice createUniverseDropDown() {
  IModel universesModel = getUniversesmodel();
  DropDownChoice uniDropDown =
  new DropDownChoice(universeSelect, new
  PropertyModel(this, universeName),
  universesModel) {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected boolean localizeDisplayValues() {
  return true;
  }
  };
  uniDropDown.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void onUpdate(AjaxRequestTarget target) {
  target.addComponent(configurationsDropDown);
  }
  });
  uniDropDown.setRequired(true);
  return uniDropDown;
  }
 
  configurationsDropDown is the other one.
 
  The situation:
  We have a page and in that page there's a form with several components,
  some buttons and the two DropDown from the special class (they have
 getters
  of course).
 
  The problem:
  If the user chose a universe but did not choose a configuration (there's
  still the 'choose one'), none of the buttons is submitted.
  I have put confDropDown.setNullValid(false); but it did not help.
  One of the buttons is CANCEL so I don't need any input and don't mind
 what
  are the values in the components.
 
  Is there any way of a walk through?
  Please advise,
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


error doesn't seem to work (?)

2008-07-23 Thread Eyal Golan
Hi,
We have a page that has a form in it and also a FeedbackPanel.
The form has a button that can be pressed only 4 times (never mind why).
On the fifth press we call in the onSubmit of the button: error(my
message);
Break pointing stopped there.
The feedback panel wasn't shown.
I tried using ContainerFeedbackMessageFilter but it still didn't work.
We tried to put the feedback panel in the form and outside (in the page
itself) - no difference.

Why?


-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: strange behavior with DropDown

2008-07-23 Thread Eyal Golan
Martijn,
This is what I was looking for:
myButton.setDefaultFormProcessing(false);

Thanks

On Wed, Jul 23, 2008 at 3:42 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 override onError and set a breakpoint there. And add a feedbackpanel
 to your page.

 Martijn

 On Wed, Jul 23, 2008 at 2:40 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  One more thing,
  If I put a break point in the onSubmit of the Button, the debugger
 doesn't
  even reach it if the configuration DropDown is not chosen.
 
 
  On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote:
 
  Hello all,
  I have a class that holds two DropDownChoice object.
  We have a generic behavior:
  According to one DropDown value, we set the list to the other.
  Here's a code snippet of the 1st component:
  private DropDownChoice createUniverseDropDown() {
  IModel universesModel = getUniversesmodel();
  DropDownChoice uniDropDown =
  new DropDownChoice(universeSelect, new
  PropertyModel(this, universeName),
  universesModel) {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected boolean localizeDisplayValues() {
  return true;
  }
  };
  uniDropDown.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void onUpdate(AjaxRequestTarget target) {
  target.addComponent(configurationsDropDown);
  }
  });
  uniDropDown.setRequired(true);
  return uniDropDown;
  }
 
  configurationsDropDown is the other one.
 
  The situation:
  We have a page and in that page there's a form with several components,
  some buttons and the two DropDown from the special class (they have
 getters
  of course).
 
  The problem:
  If the user chose a universe but did not choose a configuration (there's
  still the 'choose one'), none of the buttons is submitted.
  I have put confDropDown.setNullValid(false); but it did not help.
  One of the buttons is CANCEL so I don't need any input and don't mind
 what
  are the values in the components.
 
  Is there any way of a walk through?
  Please advise,
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: error doesn't seem to work (?)

2008-07-23 Thread Eyal Golan
thanks,
I'll look into it tomorrow

On Wed, Jul 23, 2008 at 6:21 PM, Michael Sparer [EMAIL PROTECTED]
wrote:


 Is it an AjaxRequest and you're not adding the feedback panel?
 or provide some code ... would be easier to find the fault ...



 egolan74 wrote:
 
  Hi,
  We have a page that has a form in it and also a FeedbackPanel.
  The form has a button that can be pressed only 4 times (never mind why).
  On the fifth press we call in the onSubmit of the button: error(my
  message);
  Break pointing stopped there.
  The feedback panel wasn't shown.
  I tried using ContainerFeedbackMessageFilter but it still didn't work.
  We tried to put the feedback panel in the form and outside (in the page
  itself) - no difference.
 
  Why?
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: JVDrums
  LinkedIn: LinkedIn
 


 -
 Michael Sparer
 http://talk-on-tech.blogspot.com
 --
 View this message in context:
 http://www.nabble.com/error-doesn%27t-seem-to-work-%28-%29-tp18611458p18613254.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Reporting Engine on Wicket 1.3.4

2008-09-09 Thread Eyal Golan
Hi,
We use BIRT as a report engine.
A freelancer has created the prototype BIRT project, and now we took over
it.
1. BIRT gives you all your needs.
2. I don't like it very much actually.
3. It is a different project than Wicket. (different WAR)
4. I plan to check how to integrate it to be in the same project / WAR of
our main web application.

Our integration:
We don't like the way BIRT implemented the parameters window so we wanted to
make our own.
We found out that it would be much easier to develop it with Wicket than to
customize it in BIRT.
So:
1. We have a page that has an IFrame (inline frame).
2. For each report (in the BIRT project) there's a Wicket's popup modal
window to select parameters.
 I am very happy with the module we built for that. It is very easy to
create new parameters window.
3. When the user chooses the parameters and press OK, I set, using
AttributeModifier, the src attribute of the inline frame.
4. It is all Ajax, so the inline frame is updated with the src, and the
report is generated with the correct parameters..
This module is VERY new in our project. I still have some bugs, but this is
how we integrated BIRT and Wicket.

A question to you all:
Has anyone worked with Wicket and BIRT?
(funny, but I planned to ask this anyway)

Eyal


On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt [EMAIL PROTECTED]wrote:

 Hi all

 I would like to know what kind of reporting engines are commonly used
 for Wicket-based apps? We have the need to generate CSV, Excel, and
 PDF files with graphs and pretty graphics.

 We've looked at the JasperReports integration but the docs say it's not
 complete

 Thanks in advance

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Assert that all models are detached at the end of the request?

2008-09-09 Thread Eyal Golan
().getName());
  if (slot.object instanceof Component)
  {
Component component = (Component) slot.object;
result.append(, path=).append(component.getPath());
  }
  result.append(]);
  result.append( {object: + slot.object + });
}
result.append( - model that is not detached); // KF
return result.toString();
  }

  /**
   * @see java.io.ObjectOutputStream#writeObjectOverride(java.lang.Object)
   */
  @Override
  protected final void writeObjectOverride(Object obj) throws IOException
  {
if (!available)
{
  return;
}
root = obj;
if (fieldDescription == null)
{
  fieldDescription = (root instanceof Component) ? ((Component)
 root).getPath() : ;
}

check(root);
  }
 }

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Reporting Engine on Wicket 1.3.4

2008-09-09 Thread Eyal Golan
reiern70:
Could you please elaborate on how you included BIRT as the part of the
application?
You can mail directly to me if you feel it is out of Wicket's scope.

Thanks

On Tue, Sep 9, 2008 at 2:19 PM, reiern70 [EMAIL PROTECTED] wrote:


 Hi,

 Actually there is no deed to have BIRT in a separated WAR: in our project
 we
 have included it as a (singleton) runtime which is part of the application.
 We also have some kind of WEB interface to manage report parameters... We
 found BIRT quite useful  for generating reports thought we had some
 problems when migrating to new versions (sometimes things that were working
 perfectly with one version got terrible unfixed when moving to the next).
 With BIRT you get for free the ability to produce Excel, Word, etc...

 In our project we went a bit further and built a machinery that allows to
 combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very
 good in summarizing information but you are on your own when you have to
 combine them... This tool allows you to build a tree like structure (a
 book) where the nodes are BIRT reports. The  tool will help in collecting
 all the bookmarks into a table of contents, generate combined bookmarks and
 so on...

 For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV...

 Best,

 Ernesto



 egolan74 wrote:
 
  Hi,
  We use BIRT as a report engine.
  A freelancer has created the prototype BIRT project, and now we took over
  it.
  1. BIRT gives you all your needs.
  2. I don't like it very much actually.
  3. It is a different project than Wicket. (different WAR)
  4. I plan to check how to integrate it to be in the same project / WAR of
  our main web application.
 
  Our integration:
  We don't like the way BIRT implemented the parameters window so we wanted
  to
  make our own.
  We found out that it would be much easier to develop it with Wicket than
  to
  customize it in BIRT.
  So:
  1. We have a page that has an IFrame (inline frame).
  2. For each report (in the BIRT project) there's a Wicket's popup modal
  window to select parameters.
   I am very happy with the module we built for that. It is very easy
 to
  create new parameters window.
  3. When the user chooses the parameters and press OK, I set, using
  AttributeModifier, the src attribute of the inline frame.
  4. It is all Ajax, so the inline frame is updated with the src, and the
  report is generated with the correct parameters..
  This module is VERY new in our project. I still have some bugs, but this
  is
  how we integrated BIRT and Wicket.
 
  A question to you all:
  Has anyone worked with Wicket and BIRT?
  (funny, but I planned to ask this anyway)
 
  Eyal
 
 
  On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt
  [EMAIL PROTECTED]wrote:
 
  Hi all
 
  I would like to know what kind of reporting engines are commonly used
  for Wicket-based apps? We have the need to generate CSV, Excel, and
  PDF files with graphs and pretty graphics.
 
  We've looked at the JasperReports integration but the docs say it's not
  complete
 
  Thanks in advance
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: JVDrums
  LinkedIn: LinkedIn
 

 --
 View this message in context:
 http://www.nabble.com/Reporting-Engine-on-Wicket-1.3.4-tp19367975p19390209.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: DateField throwing runtime error in IE only

2008-09-10 Thread Eyal Golan
cartina, nanotech,
I had similar problem. (I will ask it when I have time to compose it well :)
)
Try to use a page with the Modal and not a panel.
The change should be pretty easy.

Hope that will help

On Tue, Sep 9, 2008 at 4:19 PM, cartina84 [EMAIL PROTECTED] wrote:


  I am having the same problem in IE7 on a ModalWindow with a Panel, with a
 DateTextField and a DatePicker attached to it. if I set the date the
 calendar does not appare. i try to use wicket 1.4m2-m3 but problem remain..
 If I remove date from the datetextfield and click on calendar again then
 calendar appare.
 Someone have the solution?


 Michael Mehrle wrote:
 
  I have a DateField inside a modal and when clicking on the date icon
  it's throwing a 'unknown runtime error' in IE's JavaScript console.
  Works in Safari and Firefox.
 
 
 
  Is this a commonly known problem?
 
 
 
  Michael
 
 
 

 --
 View this message in context:
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19392243.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: DateField throwing runtime error in IE only

2008-09-10 Thread Eyal Golan
OK,
I'll try to describe my problem and maybe it will clear up yours.
I'm not sure, but hey, who knows.

We have a customized button.
Basically what it does is:
1. I force the user to put button in the markup (with the check tag
method).
2. I add in the content between the button and /button a table.
3. This table has three columns with gifs so I can manipulate how the button
looks like.
4. When move over, the gifs are changing to different color.
5. All of this is by using a behavior.
And now comes the problem:
We also add JS after rendering:
@Override
protected void onAfterRender() {
if (isVisible()) {
getResponse().write(Consts.getResizeScript(getMarkupId()));
}
super.onAfterRender();
}

The resize script has this this (only a small portion):
...
strBuilder.append(document.getElementById('btnObj_);
...
(after the underscore we add the id)
And the problem:
When I used a modal window with a Panel that have this button, I got a
script error.
Looking at FireBug, I saw that it doesn't find the element.
I guessed that because the panel is hidden, the button is not there so we
get null.
I tried to add setOutputMarkupPlaceholderTag(true);
but it didn't help.
When I switched the modal to use a Page (just made my panel to a page), it
worked.

So,
1. Wicket experts, what do you think?
2. cartina - do you think my problem is related to yours?


On Wed, Sep 10, 2008 at 10:21 AM, cartina84 [EMAIL PROTECTED] wrote:


 I need use a panel because I must replace it to another when the user
 choose
 an option.



 egolan74 wrote:
 
  cartina, nanotech,
  I had similar problem. (I will ask it when I have time to compose it well
  :)
  )
  Try to use a page with the Modal and not a panel.
  The change should be pretty easy.
 
  Hope that will help
 
  On Tue, Sep 9, 2008 at 4:19 PM, cartina84 [EMAIL PROTECTED]
 wrote:
 
 
   I am having the same problem in IE7 on a ModalWindow with a Panel, with
  a
  DateTextField and a DatePicker attached to it. if I set the date the
  calendar does not appare. i try to use wicket 1.4m2-m3 but problem
  remain..
  If I remove date from the datetextfield and click on calendar again then
  calendar appare.
  Someone have the solution?
 
 
  Michael Mehrle wrote:
  
   I have a DateField inside a modal and when clicking on the date icon
   it's throwing a 'unknown runtime error' in IE's JavaScript console.
   Works in Safari and Firefox.
  
  
  
   Is this a commonly known problem?
  
  
  
   Michael
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19392243.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]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: JVDrums
  LinkedIn: LinkedIn
 

 --
 View this message in context:
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19407961.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: DateField throwing runtime error in IE only

2008-09-10 Thread Eyal Golan
Maybe you are correct, but could you try to change to a Page only to see if
the problem still happens?
I thought that the problems are related because I guessed that somehow, a
modal is not visible so the children are not rendered so the JS can't find
them.
And because of that it won't response at yours and will have nulls in mine.
Maybe after you added the text field it was rendered ...

On Wed, Sep 10, 2008 at 11:22 AM, cartina84 [EMAIL PROTECTED] wrote:


 I think we have a different problem.
 I have a form with 2 ajax button, 3 labels and 2 date text field with 2
 date
 picker.
 when i click on datePicker the calendar do not came up. if put the
 datetextfield ( and its date picker) out of the form it works fine.



 egolan74 wrote:
 
  OK,
  I'll try to describe my problem and maybe it will clear up yours.
  I'm not sure, but hey, who knows.
 
  We have a customized button.
  Basically what it does is:
  1. I force the user to put button in the markup (with the check tag
  method).
  2. I add in the content between the button and /button a table.
  3. This table has three columns with gifs so I can manipulate how the
  button
  looks like.
  4. When move over, the gifs are changing to different color.
  5. All of this is by using a behavior.
  And now comes the problem:
  We also add JS after rendering:
  @Override
  protected void onAfterRender() {
  if (isVisible()) {
  getResponse().write(Consts.getResizeScript(getMarkupId()));
  }
  super.onAfterRender();
  }
 
  The resize script has this this (only a small portion):
  ...
  strBuilder.append(document.getElementById('btnObj_);
  ...
  (after the underscore we add the id)
  And the problem:
  When I used a modal window with a Panel that have this button, I got a
  script error.
  Looking at FireBug, I saw that it doesn't find the element.
  I guessed that because the panel is hidden, the button is not there so we
  get null.
  I tried to add setOutputMarkupPlaceholderTag(true);
  but it didn't help.
  When I switched the modal to use a Page (just made my panel to a page),
 it
  worked.
 
  So,
  1. Wicket experts, what do you think?
  2. cartina - do you think my problem is related to yours?
 
 
  On Wed, Sep 10, 2008 at 10:21 AM, cartina84 [EMAIL PROTECTED]
  wrote:
 
 
  I need use a panel because I must replace it to another when the user
  choose
  an option.
 
 
 
  egolan74 wrote:
  
   cartina, nanotech,
   I had similar problem. (I will ask it when I have time to compose it
  well
   :)
   )
   Try to use a page with the Modal and not a panel.
   The change should be pretty easy.
  
   Hope that will help
  
   On Tue, Sep 9, 2008 at 4:19 PM, cartina84 [EMAIL PROTECTED]
  wrote:
  
  
I am having the same problem in IE7 on a ModalWindow with a Panel,
  with
   a
   DateTextField and a DatePicker attached to it. if I set the date the
   calendar does not appare. i try to use wicket 1.4m2-m3 but problem
   remain..
   If I remove date from the datetextfield and click on calendar again
  then
   calendar appare.
   Someone have the solution?
  
  
   Michael Mehrle wrote:
   
I have a DateField inside a modal and when clicking on the date
 icon
it's throwing a 'unknown runtime error' in IE's JavaScript console.
Works in Safari and Firefox.
   
   
   
Is this a commonly known problem?
   
   
   
Michael
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19392243.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]
  
  
  
  
   --
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P Save a tree. Please don't print this e-mail unless it's really
  necessary
  
  
   -
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: JVDrums
   LinkedIn: LinkedIn
  
 
  --
  View this message in context:
 
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19407961.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]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: JVDrums
  LinkedIn: LinkedIn
 

 --
 View this message in context:
 http://www.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp17379574p19408882.html
 Sent from the Wicket - User mailing list archive at Nabble.com

Re: Hot deployment / code swapping

2008-09-10 Thread Eyal Golan
Regarding the embedded jetty, do you know if it is possible to point it to
an external WAR so it will be as if deployed as well?
I looked into Jetty's document but didn't find.

On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 The maven jetty plugin is not meant for development, but for quick
 demos. Stop trying to use the jetty plugin for something it is not
 intended for. The Wicket quickstart project provides a very well
 functioning embedded jetty server, which runs like a charm in the
 Eclipse debugger (and IDEA and Netbeans debugger) providing everything
 Java offers without *any* additional configuration.

 Setting up your Wicket project is described in detail in Wicket in
 Action's bonus chapter, available from the Manning website
 (http://manning.com/dashorst)

 Martijn

 On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote:
 
  Hi Martijn,
 
  So this means that the wicket quickstart project does NOT do it out of
 the
  box? Which obviously goes for non-maven-projects too then? That's good to
  know, I obviously have been terribly misinformed then...
 
  Even though it will obviously take me some more time to figure out how
 this
  can be achieved, all the more in a project that does not use maven - if
  anybody knows a good site regarding to this, i'd be happy to see a link
 :)
 
  Thanks a lot
 
 
  Martijn Dashorst wrote:
 
  The maven jetty plugin needs to be configured separately. See its
  documentation regarding hot deployment.
 
 
  --
  View this message in context:
 http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.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]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Add a * (star) to a mandatory field

2008-09-17 Thread Eyal Golan
Igor,
Here's the generated source:
tr
td align=leftlabel wicket:id=password-label
for=userId2Password/label/td
td* input value= maxlength=256
type=password wicket:id=password name=password//td
/tr
And here's the Java code:
TextField passField =
new PasswordTextField(password, new PropertyModel(this,
password));
  passField.add(new MandatoryBehavior());
form.add(passField);

The mandatory behavior is what I showed before.

I will check and see the ComponentBorder ...

Daan,
thanks for a very useful link.
But it's more on how to handle the error message. Which is cool I will use
it.

Ryan,
Do you have a behavior / component that adds a special mark to mandatory
fields.
As I understood the shinyform code, it's more on how to traverse all form
components.

Thanks

On Tue, Sep 16, 2008 at 6:05 PM, Daan van Etten [EMAIL PROTECTED] wrote:

 Or you can check my solution here:
 http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket

 Example form:
 http://stuq.nl/media/image/form-usability-tutorial-invalid.png
 (You can easily change the look and feel, this is just an example)

 Regards,

 Daan


 On 16 sep 2008, at 16:54, Ryan Gravener wrote:

  There is always shinyforms.

 http://code.google.com/p/elephas/source/browse/#svn/trunk/src/main/
 java/org/elephas/webapp/frontend/component/common/form

 On Tue, Sep 16, 2008 at 10:43 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  we use componentborder to do this, works like a charm. still it is
 interesting that the * is output before, are you sure its not your
 css, can you check the generated source?

 -igor

 On Tue, Sep 16, 2008 at 6:23 AM, James Perry
 [EMAIL PROTECTED] wrote:

 I too recently had a use case where the customer wanted a '*' to
 represent a mandatory field. IMO, using a border is more subtle and
 tidier then your approach.

 On Tue, Sep 16, 2008 at 12:40 PM, Eyal Golan [EMAIL PROTECTED]
 wrote:

 Hi,
 I created this behavior for adding a star BEFORE the component is

 rendered:

 public final class MandatoryBehavior extends AbstractBehavior {
  private static final long serialVersionUID = 5368825601887534185L;

  @Override
  public void beforeRender(Component component) {
  component.getResponse().write(* );
  }

 }

 1. For some reason, the star is added AFTER the label. For example:
 Configuration: * instead of * Configuration
 2. I am adding this to labels that displays mandatory fields such as
 DropDown and TextField. Is there a nicer way?

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really

 necessary



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




 --
 Ryan Gravener
 http://twitter.com/ryangravener



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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Add a * (star) to a mandatory field

2008-09-17 Thread Eyal Golan
Igor, James,
Could you please give a short example of what you mean by using a Border?
I haven't used this component yet, and another example, beside what there is
in the site will be welcome


On Tue, Sep 16, 2008 at 5:43 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 we use componentborder to do this, works like a charm. still it is
 interesting that the * is output before, are you sure its not your
 css, can you check the generated source?

 -igor

 On Tue, Sep 16, 2008 at 6:23 AM, James Perry
 [EMAIL PROTECTED] wrote:
  I too recently had a use case where the customer wanted a '*' to
  represent a mandatory field. IMO, using a border is more subtle and
  tidier then your approach.
 
  On Tue, Sep 16, 2008 at 12:40 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  Hi,
  I created this behavior for adding a star BEFORE the component is
 rendered:
  public final class MandatoryBehavior extends AbstractBehavior {
 private static final long serialVersionUID = 5368825601887534185L;
 
 @Override
 public void beforeRender(Component component) {
 component.getResponse().write(* );
 }
 
  }
 
  1. For some reason, the star is added AFTER the label. For example:
  Configuration: * instead of * Configuration
  2. I am adding this to labels that displays mandatory fields such as
  DropDown and TextField. Is there a nicer way?
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  -
  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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Add a * (star) to a mandatory field

2008-09-17 Thread Eyal Golan
I've just looked into this and there is the MyBorder in the source.
It may be more useful if it as on page.

OK, so will use this, but still, I think that there's something wrong with
beforeRender(), the star is added after the component.
Or am I missing something?

On Wed, Sep 17, 2008 at 3:27 PM, jWeekend [EMAIL PROTECTED]wrote:


 That example would be even more useful if it included the border's html in
 its Behind he Scenes section:

 MyBorder.html (hopefully not too badly mangled by Nabble or your mail
 client)
 ...
wicket:border
 div style=border: 2px dotted #fc0; width: 300px; padding: 5px;
 before the border contents br /
  wicket:body/
 br /after the border contents br /
 /div
/wicket:border
 ...

 Regards - Cemal
 http://www.jWeekend.co.uk http://jWeekend.co.uk




 msc65jap wrote:
 
  Have a look at this link as it's provides an excellent example:
 
 
 http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.BorderPage
 
  Best,
  James.
 
 
  On Wed, Sep 17, 2008 at 9:42 AM, Eyal Golan [EMAIL PROTECTED] wrote:
  Igor, James,
  Could you please give a short example of what you mean by using a
 Border?
  I haven't used this component yet, and another example, beside what
 there
  is
  in the site will be welcome
 
 
  On Tue, Sep 16, 2008 at 5:43 PM, Igor Vaynberg
  [EMAIL PROTECTED]wrote:
 
  we use componentborder to do this, works like a charm. still it is
  interesting that the * is output before, are you sure its not your
  css, can you check the generated source?
 
  -igor
 
  On Tue, Sep 16, 2008 at 6:23 AM, James Perry
  [EMAIL PROTECTED] wrote:
   I too recently had a use case where the customer wanted a '*' to
   represent a mandatory field. IMO, using a border is more subtle and
   tidier then your approach.
  
   On Tue, Sep 16, 2008 at 12:40 PM, Eyal Golan [EMAIL PROTECTED]
  wrote:
   Hi,
   I created this behavior for adding a star BEFORE the component is
  rendered:
   public final class MandatoryBehavior extends AbstractBehavior {
  private static final long serialVersionUID =
 5368825601887534185L;
  
  @Override
  public void beforeRender(Component component) {
  component.getResponse().write(* );
  }
  
   }
  
   1. For some reason, the star is added AFTER the label. For example:
   Configuration: * instead of * Configuration
   2. I am adding this to labels that displays mandatory fields such as
   DropDown and TextField. Is there a nicer way?
  
   --
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P  Save a tree. Please don't print this e-mail unless it's really
  necessary
  
  
   -
   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]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Add-a-*-%28star%29-to-a-mandatory-field-tp19510071p19530974.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Add a * (star) to a mandatory field

2008-09-17 Thread Eyal Golan
Igor,
Thanks :-)
I feel so dumb ...

Anyway, I've broaden my knowledge with the Border issue. Which is good I
guess.

On Wed, Sep 17, 2008 at 5:31 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 you are adding the behavior to the textfield, not to your label. so it
 is rendered properly - before the input tag.

 -igor



-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Navigating from a Modal Window

2008-09-18 Thread Eyal Golan
Hi,
I have a Modal Window that uses a page.
I want that when the user presses OK in the page, there will be a navigation
to a new page and the modal window will be closed.
The navigation should be not in the modal window but in the original page
itself.
Here's what I did:
In the page that is the content of the window:
EurekifyAjaxButton okButton = new EurekifyAjaxButton(ok) {
private static final long serialVersionUID = 1L;

@Override
protected void onError(AjaxRequestTarget target, Form form) {
super.onError(target, form);
target.addComponent(feedbackPanel);
}

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
*window.setReportSrcUrl(getParametersPairsForReport(),
getReportName());*
window.close(target, true);
}

};

In the window:
public final void setReportSrcUrl(MapString, String
parametersPairsForReport,
String reportName) {
if (reportPage == null) {
reportPage = new ReportPage(this, link);
reportPage.setReportSrcUrl(parametersPairsForReport,
reportName);
setResponsePage(reportPage);
} else {
reportPage.setReportSrcUrl(parametersPairsForReport,
reportName);
}
}

Where reportPage is a class member.

I thought about keeping a reference to the page where the link that opened
the popup was.
And then do the setResponsePage on it.

Is there a nicer way?

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Java BlackBelt Wicket exam

2008-09-19 Thread Eyal Golan
Hi,
I have proposed to open a Wicket exam in JavaBlackBelt.
Here's my proposal:
http://www.javablackbelt.com/forum/posts/list/0/118.page#567

Please check it and give your thoughts.
I have already written several questions (to myself).

Thanks

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Java BlackBelt Wicket exam

2008-09-19 Thread Eyal Golan
People,
it just a first draft.
As you saw in the first post, I just wanted to add questions for a Wicket
exam, and notified that there isn't.
Maybe it's possible to create a basic exam and a more advanced one?

I think we can all contribute.

On Fri, Sep 19, 2008 at 6:11 PM, James Carman [EMAIL PROTECTED]wrote:

 Perhaps it could be for a yellow belt. ;)


 On Fri, Sep 19, 2008 at 11:09 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
  Hi
 
  It looks fairly simple, I guess it depends on the depth of the exam...
  Because it could go over a lot more, or maybe the points could specified
 to
  further detail as you write.
 
 
  Eyal Golan wrote:
 
  Hi,
  I have proposed to open a Wicket exam in JavaBlackBelt.
  Here's my proposal:
  http://www.javablackbelt.com/forum/posts/list/0/118.page#567
 
  Please check it and give your thoughts.
  I have already written several questions (to myself).
 
  Thanks
 
 
 
  --
  -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]
 
 

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Strange behavior withe Modal Window

2008-09-21 Thread Eyal Golan
Hello,
I have a problem with class members in a Modal Window.
Here's my general structure of things:
-- AbstractParametersModalWindow
  --
GeneralLinkParametersModalWindow
  --
ReportPageParamatersModalWindow

In the parent modal window I have this:
setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 1L;

public void onClose(final AjaxRequestTarget target) {
// If not pressed ok, we don't want to make the ajax call
if (okPressed) {
onOk(target);
}
okPressed = false;
}
});

The problem is with the *okPressed* class member.

The Modal uses a Page as content.
In the page there are OK and Cancel buttons.
When the user presses OK, I set the okPressed to true, do some stuff and
call the close method.
This is the OK button code:
EurekifyAjaxButton okButton = new EurekifyAjaxButton(ok) {
private static final long serialVersionUID = 1L;

@Override
protected void onError(AjaxRequestTarget target, Form form) {
super.onError(target, form);
target.addComponent(feedbackPanel);
}

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
window.okPressed(getParametersPairsForReport(),
getReportName());
window.close(target);
}

};

This is the okPressed method in the modal window:
public final void okPressed(MapString, String
parametersPairsForReport, String reportName) {
okPressed = true;
setReportSrcUrl(parametersPairsForReport, reportName);
}

For the sake of the question, it's not important how the onOk is implemented
in each sub class.

Here is how I add a link with ReportPageParamatersModalWindow:
popupParametersWindow =
new
ReportPageParamatersModalWindow(ReportParametersLink.POPUP_WINDOW_ID,
parametersWebPageClassName, this);

add(popupParametersWindow);
AjaxLink link = new AjaxLink(MenuItem.LINK_ID) {
private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
popupParametersWindow.show(target);
}
};
link.addOrReplace(new Label(linktext, new
ResourceModel(Reports.showParameters)));
add(link);

And this is the description of my problem:
When putting break point in the onClose callback, the okPressed is FALSE
even though I set it to TRUE.
I tried many options of subclassing etc.

The link with GeneralLinkParametersModalWindow works fine and the okPressed
is true.
It seems that I look at two different objects.

I tried to be as clear as possible.

Any thoughts?



-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Java BlackBelt Wicket exam

2008-09-21 Thread Eyal Golan
I was not offended, just tried to clarify my idea.
It was strange to me the Java Belt does not have a Wicket exam.

On Fri, Sep 19, 2008 at 6:32 PM, James Carman [EMAIL PROTECTED]wrote:

 I didn't mean to offend.  I was being facetious.  I think it's a great
 idea to have different levels.

 On Fri, Sep 19, 2008 at 11:29 AM, Eyal Golan [EMAIL PROTECTED] wrote:
  People,
  it just a first draft.
  As you saw in the first post, I just wanted to add questions for a Wicket
  exam, and notified that there isn't.
  Maybe it's possible to create a basic exam and a more advanced one?
 
  I think we can all contribute.
 
  On Fri, Sep 19, 2008 at 6:11 PM, James Carman 
 [EMAIL PROTECTED]wrote:
 
  Perhaps it could be for a yellow belt. ;)
 
 
  On Fri, Sep 19, 2008 at 11:09 AM, Nino Saturnino Martinez Vazquez Wael
  [EMAIL PROTECTED] wrote:
   Hi
  
   It looks fairly simple, I guess it depends on the depth of the
 exam...
   Because it could go over a lot more, or maybe the points could
 specified
  to
   further detail as you write.
  
  
   Eyal Golan wrote:
  
   Hi,
   I have proposed to open a Wicket exam in JavaBlackBelt.
   Here's my proposal:
   http://www.javablackbelt.com/forum/posts/list/0/118.page#567
  
   Please check it and give your thoughts.
   I have already written several questions (to myself).
  
   Thanks
  
  
  
   --
   -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]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Strange behavior withe Modal Window

2008-09-21 Thread Eyal Golan
I will try to give more info of the problem.
Here's a concrete class of my modal window:
public final class GeneralLinkParametersModalWindow extends
AbstractParametersModalWindow {
private static final long serialVersionUID = -2817303037867728250L;
private WebPage originatePage;
private ReportPage newReportPage;
private final String parametersWebPageClassName;

public GeneralLinkParametersModalWindow(String id, String
parametersWebPageClassName) {
super(id, parametersWebPageClassName);
this.parametersWebPageClassName = parametersWebPageClassName;
}

@Override
protected void onOk(AjaxRequestTarget target) {
if (originatePage == null) {
throw new RuntimeException(
GeneralLinkParametersModalWindow.onOk - originatePage
is null!!);
}
originatePage.setResponsePage(newReportPage);
}

@Override
protected Component componentToAjaxTarget() {
return null;
}

@Override
public void setReportSrcUrl(MapString, String
parametersPairsForReport, String reportName) {
newReportPage = new ReportPage(parametersWebPageClassName);
newReportPage.setReportSrcUrl(parametersPairsForReport, reportName);
}

public final void setOriginatePage(WebPage webPage) {
this.originatePage = webPage;
}
}

As I described in the previous post, when the user presses OK, I set a
boolean and in the callback, the onOk is called.
I managed to progress a little bit and now I have this strange problem:
I open the first time the modal window and press Cancel.
I then open the same modal, choose the values I want and then press OK.
The sequence is that when pressing OK, the setReportSrcUrl is called. Then
the close callback is called (because I also call close());
And the bug:
In the onOk, newReportPage is null for the
originatePage.setResponsePage(newReportPage);.

This is very strange for me.
Anyone knows something about it?

We use 1.3.4


On Sun, Sep 21, 2008 at 12:19 PM, Eyal Golan [EMAIL PROTECTED] wrote:


 Hello,
 I have a problem with class members in a Modal Window.
 Here's my general structure of things:
 -- AbstractParametersModalWindow
   --
 GeneralLinkParametersModalWindow
   --
 ReportPageParamatersModalWindow

 In the parent modal window I have this:
 setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
 private static final long serialVersionUID = 1L;

 public void onClose(final AjaxRequestTarget target) {
 // If not pressed ok, we don't want to make the ajax call
 if (okPressed) {
 onOk(target);
 }
 okPressed = false;
 }
 });

 The problem is with the *okPressed* class member.

 The Modal uses a Page as content.
 In the page there are OK and Cancel buttons.
 When the user presses OK, I set the okPressed to true, do some stuff and
 call the close method.
 This is the OK button code:
 EurekifyAjaxButton okButton = new EurekifyAjaxButton(ok) {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onError(AjaxRequestTarget target, Form form) {
 super.onError(target, form);
 target.addComponent(feedbackPanel);
 }

 @Override
 protected void onSubmit(AjaxRequestTarget target, Form form) {
 window.okPressed(getParametersPairsForReport(),
 getReportName());
 window.close(target);
 }

 };

 This is the okPressed method in the modal window:
 public final void okPressed(MapString, String
 parametersPairsForReport, String reportName) {
 okPressed = true;
 setReportSrcUrl(parametersPairsForReport, reportName);
 }

 For the sake of the question, it's not important how the onOk is
 implemented in each sub class.

 Here is how I add a link with ReportPageParamatersModalWindow:
 popupParametersWindow =
 new
 ReportPageParamatersModalWindow(ReportParametersLink.POPUP_WINDOW_ID,
 parametersWebPageClassName, this);

 add(popupParametersWindow);
 AjaxLink link = new AjaxLink(MenuItem.LINK_ID) {
 private static final long serialVersionUID = 1L;

 @Override
 public void onClick(AjaxRequestTarget target) {
 popupParametersWindow.show(target);
 }
 };
 link.addOrReplace(new Label(linktext, new
 ResourceModel(Reports.showParameters)));
 add(link);

 And this is the description of my problem:
 When putting break point in the onClose callback, the okPressed is FALSE
 even though I set it to TRUE.
 I tried many options of subclassing etc.

 The link with GeneralLinkParametersModalWindow works fine

Re: Strange behavior withe Modal Window

2008-09-22 Thread Eyal Golan
I thought taking out all state from the modal window to the page it is
holding.
It is very strange:
When the user presses OK in a form that in the page, i construct a new
instance (of WebPage).
When the close callback is initiated, the instance that was created is null.

Any thoughts?
I am on this for a few days already ...

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Strange behavior withe Modal Window

2008-09-22 Thread Eyal Golan
Thanks,
I did something similar but with Page and not panel.
The problem was keeping state in the page that was created in the
PageCreator.
I will soon post here (or in a blog) my solution.

Eyal

On Mon, Sep 22, 2008 at 12:03 PM, Daan van Etten [EMAIL PROTECTED] wrote:

 Hi,

 You can try using abstract methods. I have made an example with demo
 project here:
 http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup

 Regards,

 Daan



 On 22 sep 2008, at 10:41, Eyal Golan wrote:

  I thought taking out all state from the modal window to the page it is
 holding.
 It is very strange:
 When the user presses OK in a form that in the page, i construct a new
 instance (of WebPage).
 When the close callback is initiated, the instance that was created is
 null.

 Any thoughts?
 I am on this for a few days already ...

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P Save a tree. Please don't print this e-mail unless it's really necessary



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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: reading a resource file

2008-09-22 Thread Eyal Golan
What about (and i don't have experience with it), WebResource and
ResourceReference ?
Are they related?

On Mon, Sep 22, 2008 at 3:03 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 Make sure the resource is copied into your classpath, and then you can
 read it in using this.getClass().getResourceAsStream(name)

 This is nothing magical, and isn't wicket related.

 Martijn

 On Mon, Sep 22, 2008 at 1:58 PM, eyalbenamram [EMAIL PROTECTED]
 wrote:
 
  Hi
  I have a wicket application that is being deployed to tomcat using
 Eclipse
  IDE.
  I need to be able to read a .txt file from the application object. the
  problem is
  I cannot find where to put the txt file. I tried to put it everywhere in
 the
  application,
  and under any directory in the tomact.
  for reading the file I used:
 
  URL url = this.getServletContext().getResource(a.txt);
 
  Please help
  Thanks, Eyal.
  --
  View this message in context:
 http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.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]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


how to get values from a property file

2008-09-22 Thread Eyal Golan
Hi,
I have this Model:
public final class SortOptionsModel extends AbstractReadOnlyModel {
private static final long serialVersionUID = -772846448053016L;
private final ListString sortOptions;
public SortOptionsModel() {
ResourceModel rmAsc = new
ResourceModel(Reports.Parameters.ascending);
String ascending = (String) rmAsc.getObject();
ResourceModel rmDes = new
ResourceModel(Reports.Parameters.descending);
String descending = (String) rmDes.getObject();

sortOptions = new ArrayListString();
sortOptions.add(ascending);
sortOptions.add(descending);
}
@Override
public Object getObject() {
return sortOptions;
}

}

I am pretty sure that the way I get the values is not the way I should.
How can I do that the Wicket way?

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: update dropdown with ajax

2008-09-22 Thread Eyal Golan
I would update the model that the dropdown in the page uses.
I will also add the page's dropdown to the AjaxTarget when the popup window
closes.
You did add a setWindowClosedCallback ?

Eyal



On Mon, Sep 22, 2008 at 3:06 PM, tbt [EMAIL PROTECTED] wrote:


 Hi

 I have a problem regarding how to update a dropdown with ajax when an
 option
 is added through a popup window. For example Page A has a dropdown and a
 link. When the link is clicked a popup opens and dropdown options can be
 added to the popup page. when the form is submitted by clicking 'add' the
 db
 is updated and the popup window is closed. but the dropdown in the parent
 window needs to be updated with ajax. how can this be done the wicket way.
 please provide an example.

 Thanks
 --
 View this message in context:
 http://www.nabble.com/update-dropdown-with-ajax-tp19606658p19606658.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: how to get values from a property file

2008-09-22 Thread Eyal Golan
OK,
that's an option which I moved to.
Is there another way?

On Mon, Sep 22, 2008 at 3:22 PM, Uwe Schäfer [EMAIL PROTECTED]wrote:

 Eyal Golan schrieb:

ResourceModel rmAsc = new
 ResourceModel(Reports.Parameters.ascending);
String ascending = (String) rmAsc.getObject();


 if it were an inner class, you could just

 String ascending = getString(Reports.Parameters.ascending);

 cu uwe

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Re: Get object form Parameters

2008-09-27 Thread Eyal Golan
On Sat, Sep 27, 2008 at 8:38 AM, fish3934 [EMAIL PROTECTED] wrote:

 How to pass id and got that object from that id?

Instead of:
   PageParameters  para=new PageParameters();
   para.put(result,resultList);
do somethig like this:
para.put(listId, resultListId);
Where the resultListID is the ID that you can retrieve your list afterwords
(from a DAO or whatever).
Then in the other page instead of:
List list = (List)param.get(result);
Do:
Integer id = param.getInt(listId); // If I have a typo error please excuse
me, I'm not near an IDE now.
List list = myDao.getList(id);



 I am sorry,I learned wicket just a few days.Is there any other ways to pass
 an object form one page to another page?

Yes,
You can make your other page not bookmarkable and pass the object (in your
case the list) in the constructor.
public class MyPage extends WebPage {
  public MyPage(List? inputList) {
...

You can even make this page to have several constructors.
One that gets a List and one that gets PageParameters.

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: ListMultipleChoice Defalut Selection

2008-09-28 Thread Eyal Golan
If you use PropertyModel or CompoundPropertyModel you can set the field(s)
that your component is attached to.

A DropDown example (I'm not experienced with multiple choice lists):
private String name;
..
DropDownChoice ddc = new DropDownChoice(name, new PropertyModel(this,
name), choicesModel);

name = MyDao.getMyDefaultName();


Hope that helps

On Sat, Sep 27, 2008 at 4:48 PM, Vaibhav Lolge [EMAIL PROTECTED]wrote:


 Hi,
 I have a piece of code that uses ListMultipleChoice . I do some action
 depending on the selected item in the list (eg: The List is a list of
 categories of cars and on click of these there are subcategories shown).
 A user then saves this is the DB. A user can edit his preferences from the
 list, hence he is brought back to the same page. Now, I get the values from
 the DB, but I fail to understand, how do I show these items as selected in
 ListMultipleChoice ?
 Please suggest. A quick reply is really appreciated.
 Thanks in advance.
 --
 View this message in context:
 http://www.nabble.com/ListMultipleChoice-Defalut-Selection-tp19702889p19702889.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]




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


ModalWindow and IAjaxIndicatorAware

2008-10-05 Thread Eyal Golan
Hi,
I have a modal window that updates a page (the page it was initiated from).
It updates a URL string in an inline frame src:
IModel iframeModel = new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;

@Override
public Object getObject() {
return reportSrcUrl; // this is updated when the modal
window OK button is pressed
}

};
InlineFrame iframe =
new InlineFrame(iframe, getPage().getPageMap(),
ReportPage.class);
iframe.add(new AttributeModifier(src, true, iframeModel));
Naturally I add the inline frame to the target when the modal window is
closed.

The issue is this:
The operation of changing the src might take a while and I want to show an
indication.
I have set the page to be IAjaxIndicatorAware and used
WicketAjaxIndicatorAppender (just like the indicating ajax button).
Naturally it didn't work :)

Has anyone did something similar?

Thanks

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


adding favicon using behavior

2008-11-04 Thread Eyal Golan
Hi,
We have a behavior that is added to our main page (we use markup
inheritance).
In the behavior we add CSS links (and JS).
We want to add a favicon as well.
Here's what we did:
response.getResponse().write(link rel=\SHORTCUT ICON\
href=\/resources/favicon.ico\/\n);

Is this the best way?

Thanks

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: adding favicon using behavior

2008-11-05 Thread Eyal Golan
10x :)
Igor, actually this is what I am using (an AbstractBehavior).
The 'renderString' is what I was looking for.

On Wed, Nov 5, 2008 at 10:44 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Yup like so, just change it to link instead of meta:

 public class SiteAHeader extends AbstractBehavior implements
   IHeaderContributor {

   public void renderHead(IHeaderResponse response) {

   response
   .renderString(meta name=\description\
 content=\description\ /);

   }

 }


 Igor Vaynberg wrote:

 use iheadercontributor

 -igor

 On Tue, Nov 4, 2008 at 11:43 PM, Eyal Golan [EMAIL PROTECTED] wrote:


 Hi,
 We have a behavior that is added to our main page (we use markup
 inheritance).
 In the behavior we add CSS links (and JS).
 We want to add a favicon as well.
 Here's what we did:
 response.getResponse().write(link rel=\SHORTCUT ICON\
 href=\/resources/favicon.ico\/\n);

 Is this the best way?

 Thanks

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary




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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: adding favicon using behavior

2008-11-08 Thread Eyal Golan

 do you not use an ide?

Yes I do. eclipse...
A new developer in our staff added this piece of code (
response.getResponse().write(link rel=\SHORTCUT ICON\ ...)
And I thought that there's something better.



 -igor

 
  On Wed, Nov 5, 2008 at 10:44 AM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
  Yup like so, just change it to link instead of meta:
 
  public class SiteAHeader extends AbstractBehavior implements
IHeaderContributor {
 
public void renderHead(IHeaderResponse response) {
 
response
.renderString(meta name=\description\
  content=\description\ /);
 
}
 
  }
 
 
  Igor Vaynberg wrote:
 
  use iheadercontributor
 
  -igor
 
  On Tue, Nov 4, 2008 at 11:43 PM, Eyal Golan [EMAIL PROTECTED]
 wrote:
 
 
  Hi,
  We have a behavior that is added to our main page (we use markup
  inheritance).
  In the behavior we add CSS links (and JS).
  We want to add a favicon as well.
  Here's what we did:
  response.getResponse().write(link rel=\SHORTCUT ICON\
  href=\/resources/favicon.ico\/\n);
 
  Is this the best way?
 
  Thanks
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
 
 
  -
  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]
 
 
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 

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




Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
Stephen,
I need this the same reason James needs it.
We generate an image (a JFreeChart image) and we want it to have the same
background color as the one specified in the CSS file.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Sun, Nov 16, 2008 at 4:09 PM, James Carman [EMAIL PROTECTED]wrote:

 I have the same sort of need in my application.  I need to do an
 overlay on an existing image using the same colors that are defined
 in a CSS document.  I guess I could dynamically generate the CSS, but
 I have no idea how to go about that. :)

 On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
 [EMAIL PROTECTED] wrote:
 
  What do you need it for? Why can't you just make another class with just
 the attribute in it and AttributeAppender that in?
 
 
 
  -Original Message-
  From: egolan74 [mailto:[EMAIL PROTECTED]
  Sent: Sun 11/16/2008 10:42 AM
  To: users@wicket.apache.org
  Subject: RE: Reading an attribute that is set in a CSS file as a class
 
 
 
 
  Steve Swinsburg-2 wrote:
 
  On your component attach an AttributeAppender or AttributeModifier, set
  the class attribute to be the name of your class. Done :)
 
 
  Thanks Steve but this is not what I meant.
  Adding a class as an attribute to a component is a pretty basic stuff.
 
  What I want is, getting a value of an attribute of a class in a CSS file.
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit:  http://jvdrums.sourceforge.net/ JVDrums
  LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
  --
  View this message in context:
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.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]
 

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




Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
James,
Yes, I would like you to send an example of this route.
It looks as this is what I need.

thanks


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Nov 17, 2008 at 1:20 PM, James Carman [EMAIL PROTECTED]wrote:

 We're going to go with the generate the CSS route.  I'm going to
 implement that today.  If you want me to send you some code after I'm
 done, I can do that.

 On Mon, Nov 17, 2008 at 5:27 AM, Ernesto Reinaldo Barreiro
 [EMAIL PROTECTED] wrote:
  Why don't you just generate the CSS or parse it if that's not possible...
  With the  former approach you will have the color before hand, with the
  latter you will have to locate it somewhere on the CSS. So, what is the
  best solution will  depend on how you manage CSS on your application...
  Best,
 
  Ernesto
 
  On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan [EMAIL PROTECTED] wrote:
 
  Stephen,
  I need this the same reason James needs it.
  We generate an image (a JFreeChart image) and we want it to have the
 same
  background color as the one specified in the CSS file.
 
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  On Sun, Nov 16, 2008 at 4:09 PM, James Carman 
 [EMAIL PROTECTED]
  wrote:
 
   I have the same sort of need in my application.  I need to do an
   overlay on an existing image using the same colors that are defined
   in a CSS document.  I guess I could dynamically generate the CSS, but
   I have no idea how to go about that. :)
  
   On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
   [EMAIL PROTECTED] wrote:
   
What do you need it for? Why can't you just make another class with
  just
   the attribute in it and AttributeAppender that in?
   
   
   
-Original Message-
From: egolan74 [mailto:[EMAIL PROTECTED]
Sent: Sun 11/16/2008 10:42 AM
To: users@wicket.apache.org
Subject: RE: Reading an attribute that is set in a CSS file as a
 class
   
   
   
   
Steve Swinsburg-2 wrote:
   
On your component attach an AttributeAppender or AttributeModifier,
  set
the class attribute to be the name of your class. Done :)
   
   
Thanks Steve but this is not what I meant.
Adding a class as an attribute to a component is a pretty basic
 stuff.
   
What I want is, getting a value of an attribute of a class in a CSS
  file.
   
-
Eyal Golan
[EMAIL PROTECTED]
   
Visit:  http://jvdrums.sourceforge.net/ JVDrums
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
--
View this message in context:
  
 
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.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]
   
  
   -
   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]




Session / Application : where to put a component

2008-11-17 Thread Eyal Golan
Our application has a base page and we use markup inheritance.
In the base page we have a headerWe call it HeaderPanel.
HeaderPanel has MainTabsPanel, which consists with the menu links.

The situation now is that for each page, the HeaderPanel and MainTabsPanel
are constructed in each page (because of the markup inheritance).
This is what we have in the base page constructor:
HeaderPanel headerPanel = new HeaderPanel(headerPanel, this);
And this is in the HeaderPanel constructor:
add(new MainTabsPanel(mainTabs));

For some reasons I want the MainTabsPanel to be constructed only once.

So, instead of adding using new, I want something like:
add(mySession.getMainTabsPanel());
or
add(myApplication.getMainTabsPanel());

Which one is better or is there even something better than this?



Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Session / Application : where to put a component

2008-11-17 Thread Eyal Golan
OK.
Thanks,
I'll see if I can do it differently.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Nov 17, 2008 at 3:31 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 Don't share components across requests or even pages. You can't do that.

 Martijn

 On Mon, Nov 17, 2008 at 1:50 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  Our application has a base page and we use markup inheritance.
  In the base page we have a headerWe call it HeaderPanel.
  HeaderPanel has MainTabsPanel, which consists with the menu links.
 
  The situation now is that for each page, the HeaderPanel and
 MainTabsPanel
  are constructed in each page (because of the markup inheritance).
  This is what we have in the base page constructor:
  HeaderPanel headerPanel = new HeaderPanel(headerPanel, this);
  And this is in the HeaderPanel constructor:
  add(new MainTabsPanel(mainTabs));
 
  For some reasons I want the MainTabsPanel to be constructed only once.
 
  So, instead of adding using new, I want something like:
  add(mySession.getMainTabsPanel());
  or
  add(myApplication.getMainTabsPanel());
 
  Which one is better or is there even something better than this?
 
 
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Hi,
I have a key in the property file:
Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource
Connections by {0} Pattern Report

I want to use getString(Reports.ReportTitle.SuspectedConnectionsUserRes,
SOMETHING);
to get the value with the {0} substituted. I'm not sure how to do this.

Please advise,

thanks


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Nino, Ernesto,
Thanks.

Ernesto, I actually looked into the code that you showed.
I was a bit confused and that's why I asked.
I think your solution will help me.

Thanks.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Nov 18, 2008 at 1:00 PM, Ernesto Reinaldo Barreiro 
[EMAIL PROTECTED] wrote:

 Hi Eyal,

 If you open the Component class you will see a method:

 public String getString(final String key, final Component component, final
 IModel? model,
 final String defaultValue) throws MissingResourceException {
 
 }

 which finds a localizer...  an Localizer after locating the key calls to :

 public String substitutePropertyExpressions(final Component component,
 final
 String string,
 final IModel? model)
 {
 if ((string != null)  (model != null))
 {
 return PropertyVariableInterpolator.interpolate(string, model.getObject());
 }
 return string;
 }

 if you look into the code of PropertyVariableInterpolator you will see it
 delegates to  PropertyResolver for variable sustitution. So, I would guess
 something like:


  getString(Reports.ReportTitle.SuspectedConnectionsUserRes, new
 ModelObject(new Object[]{bla});

 will produce:

 Suspected User-Resource Connections by bla Pattern Report

 You could also use:

 1- Suspected User-Resource
 Connections by {bla} Pattern Report
 2- A bean class

 class MyBean {
   String bla = bla;
 }

 3- and getString(Reports.ReportTitle.SuspectedConnectionsUserRes, new
 ModelMyBean(new MyBean());

 with the same result. Don't be afraid of looking into Wicket''s source
 code;-)

 A quick search in google also shows me the following link


 http://day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html

 Best,

 Ernesto

 On Tue, Nov 18, 2008 at 11:21 AM, Eyal Golan [EMAIL PROTECTED] wrote:

  Hi,
  I have a key in the property file:
  Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource
  Connections by {0} Pattern Report
 
  I want to use
 getString(Reports.ReportTitle.SuspectedConnectionsUserRes,
  SOMETHING);
  to get the value with the {0} substituted. I'm not sure how to do this.
 
  Please advise,
 
  thanks
 
 
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: how to create a TabPanel as a separate class.

2009-08-17 Thread Eyal Golan
it's exactly what it says.
TabbedPanel doesn't have the default constructor.
You must give it at least ID.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Aug 17, 2009 at 2:42 PM, Gerald Fernando 
gerald.anto.ferna...@gmail.com wrote:

 Hello Friends,


 This is my need

  what i want whenever i need this tabbedPanel i want to place in any page

  public class choicePanel extends TabbedPanel{
 super();
 }

 not like
  public class choicePanel extends webpage


 i have created the above one but it shows the error that

 he constructor TabbedPanel() is undefined

 please give me urgent Reply
 --
 Thanksregards,
 Gerald A



Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
Hello,
I have a wizard that in the last step I show a tree with the selections made
in the previous steps.
The wizard uses static steps so actually the last step is built in advance.
The problem is that the tree is not updated.

For debugging purposes I have in the last step tables that show the same
selections.
The tables are updated (the DataProvider calls the iterator). I use
DetachableModel for the tables.

So in short,
How can I updated the model of the tree.
Below is the code of creating the tree that is made in the constructor:
private TreeModel createTreeModel() {
final Profile profile = (Profile) getModelObject();
final DefaultMutableTreeNode rootNode = new
DefaultMutableTreeNode();
final ConfigurationsNode configurationsNode = new
ConfigurationsNode(profile,

getString(extract.rdb.profile.view.section.configurations));
configurationsNode.addToParentNode(profile, rootNode);

final CampaignsNode campaignsNode = new CampaignsNode(profile,
getString(extract.rdb.profile.view.section.campaigns));
campaignsNode.addToParentNode(profile, rootNode);

final UniverseNode universesNode = new UniverseNode(profile,
getString(extract.rdb.profile.view.section.universes));
universesNode.addToParentNode(profile, rootNode);

final BprsNode bprsNode = new BprsNode(profile,
getString(extract.rdb.profile.view.section.bprs));
bprsNode.addToParentNode(profile, rootNode);

final AuditCardsNode auditCardsNode = new AuditCardsNode(profile,
getString(extract.rdb.profile.view.section.audits));
auditCardsNode.addToParentNode(profile, rootNode);

final AllTicketsNode allTicketsNode = new AllTicketsNode(
getString(extract.rdb.profile.view.section.allTickets));
allTicketsNode.addToParentNode(profile, rootNode);

final TreeModel treeModel = new DefaultTreeModel(rootNode);
return treeModel;
}

Here's one of the nodes:
public final class ConfigurationsNode extends AbstractProfileDataNode {
private static final long serialVersionUID = 3306972776261689364L;
public ConfigurationsNode(final Profile profile, String title) {
super(title);
final ListConfiguration configurations =
profile.getConfigurations();
for (final Configuration configuration : configurations) {
final DefaultMutableTreeNode configurationNode = new
DefaultMutableTreeNode() {
private static final long serialVersionUID = 1L;
@Override
public Object getUserObject() {
return configuration.getConfigurationName();
}
};
add(configurationNode);
}
}

@Override
protected boolean isVisible(Profile profile) {
return CollectionUtils.isNotEmpty(profile.getConfigurations());
}
}

@SuppressWarnings(serial)
abstract class AbstractProfileDataNode extends DefaultMutableTreeNode {
private final String title;

AbstractProfileDataNode(String title) {
this.title = title;
}

@Override
public final Object getUserObject() {
return title;
}

public final void addToParentNode(Profile profile, final
DefaultMutableTreeNode parentNode) {
if (isVisible(profile)) {
parentNode.add(this);
}
}

protected abstract boolean isVisible(Profile profile);
}

Thanks,

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
OK. Found the solution:
private IModel createTreeModel() {
final IModel model = new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;

@Override
public Object getObject() {
final Profile profile = (Profile) getModelObject();
final DefaultMutableTreeNode rootNode = new
DefaultMutableTreeNode();
final ConfigurationsNode configurationsNode = new
ConfigurationsNode(profile,

getString(extract.rdb.profile.view.section.configurations));
configurationsNode.addToParentNode(profile, rootNode);

final CampaignsNode campaignsNode = new
CampaignsNode(profile,

getString(extract.rdb.profile.view.section.campaigns));
campaignsNode.addToParentNode(profile, rootNode);

final UniverseNode universesNode = new UniverseNode(profile,

getString(extract.rdb.profile.view.section.universes));
universesNode.addToParentNode(profile, rootNode);

final BprsNode bprsNode = new BprsNode(profile,
getString(extract.rdb.profile.view.section.bprs));
bprsNode.addToParentNode(profile, rootNode);

final AuditCardsNode auditCardsNode = new
AuditCardsNode(profile,

getString(extract.rdb.profile.view.section.audits));
auditCardsNode.addToParentNode(profile, rootNode);

final AllTicketsNode allTicketsNode = new AllTicketsNode(

getString(extract.rdb.profile.view.section.allTickets));
allTicketsNode.addToParentNode(profile, rootNode);

final TreeModel treeModel = new DefaultTreeModel(rootNode);
return treeModel;
}

};
return model;
}

I knew it's something with dynamic model !!
Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Aug 18, 2009 at 4:55 PM, Eyal Golan egola...@gmail.com wrote:

 Hello,
 I have a wizard that in the last step I show a tree with the selections
 made in the previous steps.
 The wizard uses static steps so actually the last step is built in advance.
 The problem is that the tree is not updated.

 For debugging purposes I have in the last step tables that show the same
 selections.
 The tables are updated (the DataProvider calls the iterator). I use
 DetachableModel for the tables.

 So in short,
 How can I updated the model of the tree.
 Below is the code of creating the tree that is made in the constructor:
 private TreeModel createTreeModel() {
 final Profile profile = (Profile) getModelObject();
 final DefaultMutableTreeNode rootNode = new
 DefaultMutableTreeNode();
 final ConfigurationsNode configurationsNode = new
 ConfigurationsNode(profile,

 getString(extract.rdb.profile.view.section.configurations));
 configurationsNode.addToParentNode(profile, rootNode);

 final CampaignsNode campaignsNode = new CampaignsNode(profile,
 getString(extract.rdb.profile.view.section.campaigns));
 campaignsNode.addToParentNode(profile, rootNode);

 final UniverseNode universesNode = new UniverseNode(profile,
 getString(extract.rdb.profile.view.section.universes));
 universesNode.addToParentNode(profile, rootNode);

 final BprsNode bprsNode = new BprsNode(profile,
 getString(extract.rdb.profile.view.section.bprs));
 bprsNode.addToParentNode(profile, rootNode);

 final AuditCardsNode auditCardsNode = new AuditCardsNode(profile,
 getString(extract.rdb.profile.view.section.audits));
 auditCardsNode.addToParentNode(profile, rootNode);

 final AllTicketsNode allTicketsNode = new AllTicketsNode(
 getString(extract.rdb.profile.view.section.allTickets));
 allTicketsNode.addToParentNode(profile, rootNode);

 final TreeModel treeModel = new DefaultTreeModel(rootNode);
 return treeModel;
 }

 Here's one of the nodes:
 public final class ConfigurationsNode extends AbstractProfileDataNode {
 private static final long serialVersionUID = 3306972776261689364L;
 public ConfigurationsNode(final Profile profile, String title) {
 super(title);
 final ListConfiguration configurations =
 profile.getConfigurations();
 for (final Configuration configuration : configurations) {
 final DefaultMutableTreeNode configurationNode = new
 DefaultMutableTreeNode() {
 private static final long serialVersionUID = 1L;
 @Override
 public Object getUserObject() {
 return configuration.getConfigurationName();
 }
 };
 add(configurationNode);
 }
 }

 @Override
 protected boolean isVisible(Profile profile

Re: Time Component for wicket.

2009-08-18 Thread Eyal Golan
Look at DateTimeField of YUI.
Also, in the book WIA there's an example for that.

The components are not with the arrows, but do have the hour, minutes fileds
Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Aug 18, 2009 at 5:27 PM, Raphael Monroe - Leucotron (DES) 
rmon...@leucotron.com.br wrote:

 Hi guys,

 I'm looking for a time component for wicket. I know that DateTimePicker but
 it isn't usefull for my purposes. Maybe, it can be, but I need something in
 which I can set both hour and minute by arrows (like up/down).
 Does anybody knows any component like that?

 Thx,
 Raphael Monroe

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




Re: Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
Still have a problem.
When I use the IModel instead of the TreeModel, in the constructor, the
nodes are not responding to the clicks.
Any ideas?


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Aug 18, 2009 at 4:55 PM, Eyal Golan egola...@gmail.com wrote:

 Hello,
 I have a wizard that in the last step I show a tree with the selections
 made in the previous steps.
 The wizard uses static steps so actually the last step is built in advance.
 The problem is that the tree is not updated.

 For debugging purposes I have in the last step tables that show the same
 selections.
 The tables are updated (the DataProvider calls the iterator). I use
 DetachableModel for the tables.

 So in short,
 How can I updated the model of the tree.
 Below is the code of creating the tree that is made in the constructor:
 private TreeModel createTreeModel() {
 final Profile profile = (Profile) getModelObject();
 final DefaultMutableTreeNode rootNode = new
 DefaultMutableTreeNode();
 final ConfigurationsNode configurationsNode = new
 ConfigurationsNode(profile,

 getString(extract.rdb.profile.view.section.configurations));
 configurationsNode.addToParentNode(profile, rootNode);

 final CampaignsNode campaignsNode = new CampaignsNode(profile,
 getString(extract.rdb.profile.view.section.campaigns));
 campaignsNode.addToParentNode(profile, rootNode);

 final UniverseNode universesNode = new UniverseNode(profile,
 getString(extract.rdb.profile.view.section.universes));
 universesNode.addToParentNode(profile, rootNode);

 final BprsNode bprsNode = new BprsNode(profile,
 getString(extract.rdb.profile.view.section.bprs));
 bprsNode.addToParentNode(profile, rootNode);

 final AuditCardsNode auditCardsNode = new AuditCardsNode(profile,
 getString(extract.rdb.profile.view.section.audits));
 auditCardsNode.addToParentNode(profile, rootNode);

 final AllTicketsNode allTicketsNode = new AllTicketsNode(
 getString(extract.rdb.profile.view.section.allTickets));
 allTicketsNode.addToParentNode(profile, rootNode);

 final TreeModel treeModel = new DefaultTreeModel(rootNode);
 return treeModel;
 }

 Here's one of the nodes:
 public final class ConfigurationsNode extends AbstractProfileDataNode {
 private static final long serialVersionUID = 3306972776261689364L;
 public ConfigurationsNode(final Profile profile, String title) {
 super(title);
 final ListConfiguration configurations =
 profile.getConfigurations();
 for (final Configuration configuration : configurations) {
 final DefaultMutableTreeNode configurationNode = new
 DefaultMutableTreeNode() {
 private static final long serialVersionUID = 1L;
 @Override
 public Object getUserObject() {
 return configuration.getConfigurationName();
 }
 };
 add(configurationNode);
 }
 }

 @Override
 protected boolean isVisible(Profile profile) {
 return CollectionUtils.isNotEmpty(profile.getConfigurations());
 }
 }

 @SuppressWarnings(serial)
 abstract class AbstractProfileDataNode extends DefaultMutableTreeNode {
 private final String title;

 AbstractProfileDataNode(String title) {
 this.title = title;
 }

 @Override
 public final Object getUserObject() {
 return title;
 }

 public final void addToParentNode(Profile profile, final
 DefaultMutableTreeNode parentNode) {
 if (isVisible(profile)) {
 parentNode.add(this);
 }
 }

 protected abstract boolean isVisible(Profile profile);
 }

 Thanks,

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary



Re: Date/Time Validation in Forms

2009-08-19 Thread Eyal Golan
Have a look at DateTimeField from YUI.
In any case, you can always create a FormValidator so it can validate
several components.
BTW,
you should really change the fields to be Integer and not String.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Aug 19, 2009 at 5:49 AM, Arun Gupta arun.gu...@gmail.com wrote:

 I have a form model defined as:

 -- cut here --
 public class RunlogFormModel implements Serializable {
private String month;
private String day;
private String year;
private String distance;
private String hour;
private String minute;
private String second;
private String comments;
 -- cut here --

 The form provides drop-down list boxes for each of the model elements
 and added to the form like:

 add(new DropDownChoice(. new PropertyModel(...).add(new
 IValidatorString() { })));

 The validator can validate each individual field. How do I perform
 compositve date validation, such as month/day/year = current_date ?

 Similarly how to perform validation of hour/minute/seconds  0 ?

 How do I validate presence of date/time ?

 Is this a good representation of model or should it be represented
 differently ?

 Thanks,
 -Arun

 --
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta

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




Modal window and SSL

2009-08-19 Thread Eyal Golan
Hello all,
We are having a problem when we work on an SSL environment.
Whenever we open a modal popup window, there's this annoying message of IE
that the user is trying to open both secure and non secure content.
We changed the IE settings and the message is gone.
But I want to understand what's causing it?

I googled a bit about it and found some tips on changing the
IREquestCycleProcessor:
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
It this what we should do?

BTW,
does anyone know how to run the embedded Jetty with SSL?

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Modal window and SSL

2009-08-19 Thread Eyal Golan
Thanks Igor and Peter.Peter,
we did change the JS that builds the ModalWindow. I'll look into it.
Thanks,

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Aug 19, 2009 at 8:56 PM, Peter Ertl pe...@gmx.org wrote:

 I remember this issue begin fixed already:
 https://issues.apache.org/jira/browse/WICKET-855

 did someone change ModalWindow in the meantime?

 Am 19.08.2009 um 17:13 schrieb Igor Vaynberg:


  it just means that you are on a https page but it links to some http
 resources, eg images or javascripts.

 so make sure when you are on a https page all your resources are
 brought in via relative urls and do not start with http://

 one specific example is that you can be on an https page but you
 include an website analytics script via an http url.

 -igor

 On Wed, Aug 19, 2009 at 4:51 AM, Eyal Golanegola...@gmail.com wrote:

 Hello all,
 We are having a problem when we work on an SSL environment.
 Whenever we open a modal popup window, there's this annoying message of
 IE
 that the user is trying to open both secure and non secure content.
 We changed the IE settings and the message is gone.
 But I want to understand what's causing it?

 I googled a bit about it and found some tips on changing the
 IREquestCycleProcessor:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 It this what we should do?

 BTW,
 does anyone know how to run the embedded Jetty with SSL?

 Thanks

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary


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



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




Re: Modal window and SSL

2009-08-20 Thread Eyal Golan
Still have some problems.
we use Wicket 1.3.6
This is the JS for creating the modal:
if (Wicket.Browser.isIELessThan7() ||
!Wicket.Browser.isIE()) {
s+= iframe src='\/\/:' frameborder=\0\
id='+idContent+' allowtransparency=\false\ style=\height: 200px\+
/iframe;
} else {
s+= iframe src='about:blank' frameborder=\0\
id='+idContent+' allowtransparency=\false\ style=\height: 200px\+
/iframe;
}

I changed also the src to 0: without success. (after looking at
WICKET-855https://issues.apache.org/jira/browse/WICKET-855
)

Igor,
there is no call to any resource that is in an http:// path.

Please advice,


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Aug 19, 2009 at 11:49 PM, Eyal Golan egola...@gmail.com wrote:

 Thanks Igor and Peter.Peter,
 we did change the JS that builds the ModalWindow. I'll look into it.
 Thanks,

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary


 On Wed, Aug 19, 2009 at 8:56 PM, Peter Ertl pe...@gmx.org wrote:

 I remember this issue begin fixed already:
 https://issues.apache.org/jira/browse/WICKET-855

 did someone change ModalWindow in the meantime?

 Am 19.08.2009 um 17:13 schrieb Igor Vaynberg:


  it just means that you are on a https page but it links to some http
 resources, eg images or javascripts.

 so make sure when you are on a https page all your resources are
 brought in via relative urls and do not start with http://

 one specific example is that you can be on an https page but you
 include an website analytics script via an http url.

 -igor

 On Wed, Aug 19, 2009 at 4:51 AM, Eyal Golanegola...@gmail.com wrote:

 Hello all,
 We are having a problem when we work on an SSL environment.
 Whenever we open a modal popup window, there's this annoying message of
 IE
 that the user is trying to open both secure and non secure content.
 We changed the IE settings and the message is gone.
 But I want to understand what's causing it?

 I googled a bit about it and found some tips on changing the
 IREquestCycleProcessor:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 It this what we should do?

 BTW,
 does anyone know how to run the embedded Jetty with SSL?

 Thanks

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary


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



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





Re: Regarding datepicker popup when inputfield pressed

2009-08-20 Thread Eyal Golan
without looking into code, you probably need to add a behavior with onclick
to the text field.
look how it's done in the click on icon.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Aug 20, 2009 at 4:19 PM, copenhag copenhagen
copenha...@gmail.comwrote:

 Hi Troy,

 Thanks for the swift answer.

 I know that you can attach a TextField to a DatePicker, but how would i
 make
 the
 calendar popup by just pressing the text field.

 As it is now i have to click the calendar icon, but i want to pop the
 calendar, by clicking on the field also.

 Just as in the example:
 http://blog.davglass.com/files/yui/cal2/
 http://www.ajaxbestiary.com/2008/10/19/yui-calendar-popup-from-text-input/
 

 Best Regards
 Cemil

 On Thu, Aug 20, 2009 at 2:52 PM, Troy Cauble troycau...@gmail.com wrote:

  I'm doing this in 1.3.6.
  -troy
 
 
  import org.apache.wicket.extensions.markup.html.form.DateTextField;
  import org.apache.wicket.extensions.yui.calendar.DatePicker;
 
  ...
 DateTextField date = new DateTextField(date,
  MM/dd/);
 date.add(new DatePicker());
 form.add(date);
 
 
  On Thu, Aug 20, 2009 at 7:52 AM, copenhag
  copenhagencopenha...@gmail.com wrote:
   Hi,
  
   Has anyone made it possible to attached an input field to the
 datepicker,
   so that the calendar popup's when the input field is selected ?
  
   I have tried, but i could not make it work.
  
   Also searching did not provide any wicket examples.
  
   I want the calendar to work as the example in this link:
  
 
 http://www.ajaxbestiary.com/2008/10/19/yui-calendar-popup-from-text-input/
  
   Only difference is i want it to work in a Wicket environment.
  
   Please assist if anyone can help.
  
   Best Regards
   Cemil
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: wicket auth roles example

2009-08-26 Thread Eyal Golan
10x

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Aug 26, 2009 at 5:17 PM, Robin Sander robin.san...@gmx.net wrote:


 In wicket-examples there is an authentication and authorization app:

 http://www.wicket-library.com/wicket-examples/authentication/
 http://www.wicket-library.com/wicket-examples/authorization/



 On 26.08.2009, at 15:48, Eyal Golan wrote:

  Hello,
 is there an example, and if so, which, in wicketstuff or somewhere else
 for
 Wicket-Auth-Roles?
 is it the phone book app?

 Thanks,


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary



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




Grouping messages in FeedbackPanel

2009-08-31 Thread Eyal Golan
Hello,
I there a way to change the feedback panel so we we group the messages
according to levels:
Errors:
error message 1.
error message 2.

Info:
info 1.

etc.

Do we need to *completely* override FeedbackPanel? My team mate wants to do
that and I really holding him off.

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Grouping messages in FeedbackPanel

2009-09-01 Thread Eyal Golan
Hi,
Thanks for the reply, but it's not suitable for us.
We want to create a generic FeedbakPanel for hat purpose and not in a
specific page.

What we actually want is that the messages will be list of lists.
In the first iteration he completely created a new FeedbackPanel that
inherits from a regular Panel.
I suggested him not to break Wicket's framework and to try using the methods
that Wicket allow.
The main problem was that the list view of the messages is private
(MessageListView).

He eventually overridden the model and of course newMessageDisplayComponent
...

We use version 1.3.6

Wouldn't it be nice to make the creation of the list protected? so we can
override it?


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Aug 31, 2009 at 11:25 AM, Eyal Golan egola...@gmail.com wrote:

 Hello,
 I there a way to change the feedback panel so we we group the messages
 according to levels:
 Errors:
 error message 1.
 error message 2.

 Info:
 info 1.

 etc.

 Do we need to *completely* override FeedbackPanel? My team mate wants to
 do that and I really holding him off.

 Thanks

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary



Re: Dynamic Optgroups in Wicket

2009-09-01 Thread Eyal Golan
I'm not sure this is what you want, but have a look at this:
http://www.wicket-library.com/wicket-examples/ajax/choice
It's drop down with ajax.
What they did is setting in the model Map of values.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Sep 1, 2009 at 4:33 PM, Iain Reddick
iain.redd...@beatsystems.comwrote:

 Looking at the API docs for the Select component, it would seem to be
 designed for more complex select situations (multi-select and optgroups).
 Unfortunately, I can't find any examples on using it with dynamically
 generated optgroups.

 Can anyone clarify how you would use the component like this, or suggest an
 alternative?



 Pedro Santos wrote:

 correction:
 In your application u CAN populate your list of options, and pass it to an
 similar component.

 On Tue, Sep 1, 2009 at 9:07 AM, Pedro Santos pedros...@gmail.com wrote:



 Gary,

 Take a look at wicket.markup.html.form.DropDownChoice
 http://wicketstuff.org/wicket13/compref/;jsessionid=9632D2AC608C8E9715009EAA5EEBD3FF?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.DropDownChoicePage
 at
 http://wicketstuff.org/wicket13/compref/
 on these examples, the option values ar not fixed in markup with no
 wicket:ids. They are passed to constructor of 2 lists that are used by
 DropDownChoice
 component model. In your application u can't populate your list of
 options, and pass it to an similar component.


 On Tue, Sep 1, 2009 at 8:57 AM, gary black gar20...@yahoo.com wrote:



 Hi,I am kind of new to Wicket and am having a difficult time finding
 some
 decent info on creating optgroups within selects.I basically have a
 structured list in my DB which in turn has children - perfect solution
 would
 be to use dynamically generated optgroups with their children which will
 of
 course be option tags.All the examples containing optgroups seem to have
 the
 optgroups fixed in markup with no wicket:ids.Any thoughts would be most
 welcomed.Gary













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




AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
Hello,
We have in our application the following code:
/**
 * @see
org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
 *  org.apache.wicket.Response)
 */
@Override
public RequestCycle newRequestCycle(final Request request,
final Response response) {
return new WebRequestCycle(this, (WebRequest) request,
(WebResponse) response) {

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
if (DEPLOYMENT.equalsIgnoreCase(getConfigurationType())) {
if
(PageExpiredException.class.isAssignableFrom(e.getClass())) {
return null;
} else {
e.printStackTrace();
System.out.println(e.getMessage());
return new InternalErrorPage(getErrorDisplay(e));
}
} else {
// In development we want to see the exception
return null;
}

}
};
}

Also, in our base page we have this
protected void verifyAccess(PageParameters pageParameters) {
// Redirect to Login page on invalid access.
if (!isUserLoggedIn()) {
throw new RestartResponseAtInterceptPageException(Login.class);
}
else if (! isPageAllowed(pageParameters)) {
String url = pageParameters.getString(url);
if (url != null) {
throw new
AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, url);
}
else {
throw new
AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN);
}
}
}

'verifyAccess' is called in the construction of the page.

The problem I'm having is when the page is not allowed.
We throw AbortWithWebErrorCodeException.

The user gets a 403 error page.
As expected, the onRuntimeException that configured in the WebApp is not
reached.

I thought to create a RuntimeException that will be thrown instead of the
AbortWithWebErrorCodeException(...) and to analyze it in the
onRuntimeException.
But, is there a way to map the 403 error page to another page? A setting of
the Application or even in the web.xml?

Thanks,



Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Sep 3, 2009 at 2:04 PM, Pedro Santos pedros...@gmail.com wrote:



 don't you gona fall in to the same problem this way?

-- No. because if I throw a RuntimeException, then I will catch it in the
onRuntimeError.


 Set error page in web.xml
   ?xml version=1.0 encoding=iso-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app


error-page
error-code
403
/error-code
location
/403.*html*
/location
/error-page

 /web-app


 --- Thanks. We'll try that. But is there a 'Wicket' way? If not, then I
guess we'll use this one.


 On Thu, Sep 3, 2009 at 5:27 AM, Eyal Golan egola...@gmail.com wrote:

  Hello,
  We have in our application the following code:
 /**
  * @see
  org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
  *  org.apache.wicket.Response)
  */
 @Override
 public RequestCycle newRequestCycle(final Request request,
 final Response response) {
 return new WebRequestCycle(this, (WebRequest) request,
 (WebResponse) response) {
 
 @Override
 public Page onRuntimeException(Page page, RuntimeException e)
 {
 if (DEPLOYMENT.equalsIgnoreCase(getConfigurationType())) {
 if
  (PageExpiredException.class.isAssignableFrom(e.getClass())) {
 return null;
 } else {
 e.printStackTrace();
 System.out.println(e.getMessage());
 return new InternalErrorPage(getErrorDisplay(e));
 }
 } else {
 // In development we want to see the exception
 return null;
 }
 
 }
 };
 }
 
  Also, in our base page we have this
 protected void verifyAccess(PageParameters pageParameters) {
 // Redirect to Login page on invalid access.
 if (!isUserLoggedIn()) {
 throw new
 RestartResponseAtInterceptPageException(Login.class);
 }
 else if (! isPageAllowed(pageParameters)) {
 String url = pageParameters.getString(url);
 if (url != null) {
 throw new
  AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, url);
 }
 else {
 throw new
  AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN);
 }
 }
 }
 
  'verifyAccess' is called in the construction of the page.
 
  The problem I'm having is when the page is not allowed.
  We throw AbortWithWebErrorCodeException.
 
  The user gets a 403 error page.
  As expected, the onRuntimeException that configured in the WebApp is not
  reached.
 
  I thought to create a RuntimeException that will be thrown instead of the
  AbortWithWebErrorCodeException(...) and to analyze it in the
  onRuntimeException.
  But, is there a way to map the 403 error page to another page? A setting
 of
  the Application or even in the web.xml?
 
  Thanks,
 
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: Form and PageParameters

2009-09-07 Thread Eyal Golan
Is it a must that you use PageParameters for RequestPage?
Do you need an access to it also from a URL (after mounting it in your
Application).

I think that a nicer way is to add a constructor that accepts the values.
Even better, I would have created a POJO model.
Use a CompoundPropertyModel with the form, and pass this object to the
RequestPage.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Sep 7, 2009 at 11:38 AM, Charles Moulliard cmoulli...@gmail.comwrote:

 Hi,

 I have created a RequestPage html page containing a form (= search
 criteria) and a list (= Data View where the result set of data retrieved in
 a DB according to search criteria is displayed). When the user clicks on
 the
 search criteria button of this page, the request is redirected to the
 RequestPage where we extract the search criteria values and pass them to
 the
 service in charge to retrieve the data. In the java class accompagning this
 page, I have overrided the onSubmit method of the submit button to pass
 the value of the form fields

public RequestPage(final PageParameters parameters) {
 ...
   Form form = new Form(searchCriteriaRequest);

// Add fields
fRequestId = new TextField(fRequestId, new Model());
fFileName = new TextField(fFileName, new Model());
form.add(fRequestId);
form.add(fFileName);

// Add buttons
button = new Button(button) {
@Override
public void onSubmit() {
parameters.add(requestId, fRequestId.getValue());
parameters.add(fileName, fFileName.getValue());
setResponsePage(RequestPage.class, parameters);
}
};
form.add(button);
add(form);

 In the constructor of this RequestPage, I call a populate method with
 PageParameters

// Populate list with search criteria values
populateList(parameters.getKey(requestId),
 parameters.getKey(fileName));

 Questions :
 1) Is it the good way to handle PageParameters and Form in Wicket ? If this
 is not the case, can someone point me to a good example ?
 2) The fields filled in the previous post of my page are not removed when I
 repost a new request on my page. How can I reset these fields from the
 request of the new post ?

 Regards,

 Charles Moulliard
 Senior Enterprise Architect
 Apache Camel Committer

 *
 blog : http://cmoulliard.blogspot.com



Re: Form and PageParameters

2009-09-07 Thread Eyal Golan
back to my original question, do you actually need this page to have a
constructor with PageParameters?
hint - if you want a user to get it with nice URL, then yes.

You can call one constructor to the other (sometimes tricky in situation
like yours), or you can have an init() method that does everything and call
it from each constructor.

everything
Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Sep 7, 2009 at 4:34 PM, cmoulliard cmoulli...@gmail.com wrote:


 Many thanks for your help.

 With the modifications you propose, everything works fine

 Here is what I changed in the onSubmit method of the button

 public void onSubmit() {
  setResponsePage(new RequestPage((RequestModel)
 this.getForm().getModelObject()));
 }

 Question : Do I have need to duplicate the code between the two
 constructors
 ? I mean Do I need to have in double ?

final FeedbackPanel feedback = new FeedbackPanel(feedback);
add(feedback);
RequestForm requestForm = new RequestForm(requestForm);
add(requestForm);
.


 egolan74 wrote:
 
  You can have two constructors in your page.
  If you work 'internally' then you can use the one that accepts a pojo. If
  you work with URL, then the one that accepts PageParameters will be used.
 
  the setResponsePage can accept a Page and not only a class, so what you
  can
  do is create your page: new RequestPage(myPojoModelObject), and then put
  it
  in the setResponsePage parameter.
 
  IllegalArgumentException: A child with id 'requestList' already
  means that you added it already to your page. AFAICS you don't go to a
 new
  page in the button submit so you add the list over and over again.
 
  if you want to update a list, use a dynamic model for the content and
  update
  it.
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
  necessary
 
 
  On Mon, Sep 7, 2009 at 1:58 PM, cmoulliard cmoulli...@gmail.com wrote:
 
 
  Thx for the reply.
 
  You are right, it is not a must to use PageParameters but as this is my
  first Wicket project, I have started to work with simple things.
 
  In the meantime, I have had a look to the formInput example where a
  CompoundPropertyModel is used. I have adapted the Form to work with it.
 
  My question is now :
 
  When I call the first time my page, the url is :
  http://localhost/request.
  Wicket receives this request and the constructor
  RequestPage(PageParameter
  pageParameter) is called. Next, after filling my form in the page and
  clicking on the onSubmit button, the request is submitted to the same
  page.
 
  How can I retrieve the values of the CompoundPropertyModel from my form
  in
  this case ? Do I have to do something particular in the
  setResponsePage(RequestPage.Class) to pass the compoundPropertyModel ?
 Do
  I
  need to create two different constructors : one for PageParameters and
  the
  other to handle CompoundPropertyModel ?
 
  Regards,
 
  Charles
 
 
  egolan74 wrote:
  
   Is it a must that you use PageParameters for RequestPage?
   Do you need an access to it also from a URL (after mounting it in your
   Application).
  
   I think that a nicer way is to add a constructor that accepts the
  values.
   Even better, I would have created a POJO model.
   Use a CompoundPropertyModel with the form, and pass this object to the
   RequestPage.
  
   Eyal Golan
   egola...@gmail.com
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P  Save a tree. Please don't print this e-mail unless it's really
   necessary
  
  
   On Mon, Sep 7, 2009 at 11:38 AM, Charles Moulliard
   cmoulli...@gmail.comwrote:
  
   Hi,
  
   I have created a RequestPage html page containing a form (= search
   criteria) and a list (= Data View where the result set of data
  retrieved
   in
   a DB according to search criteria is displayed). When the user clicks
  on
   the
   search criteria button of this page, the request is redirected to
  the
   RequestPage where we extract the search criteria values and pass them
  to
   the
   service in charge to retrieve the data. In the java class
 accompagning
   this
   page, I have overrided the onSubmit method of the submit button to
  pass
   the value of the form fields
  
  public RequestPage(final PageParameters parameters) {
   ...
 Form form = new Form(searchCriteriaRequest);
  
  // Add fields
  fRequestId = new TextField(fRequestId, new Model());
  fFileName = new TextField(fFileName, new Model());
  form.add(fRequestId);
  form.add(fFileName);
  
  // Add buttons
  button = new Button(button) {
  @Override
  public void

Re: Help on wizard solution...

2009-09-08 Thread Eyal Golan
I had some experience with what you need so i hope I could help you if you
need something.
I implemented the dynamic wizard and it was actually lots of fun :)


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Sep 8, 2009 at 5:51 PM, Muro Copenhagen copenha...@gmail.comwrote:

 Thanks Pedro and Peter,

 I'll try the DynamicWizardModel, it seems as the right choice.

 But a quick google search didn't provide any example, so i must try making
 it work.

 Hopefully it will...

 Best Regards
 Muro

 On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos pedros...@gmail.com wrote:

  I think the wizard is the correct approach... You can try use
  DynamicWizardModel on your wizard.
 
  javadoc:
   * Wizard model that is specialized on dynamic wizards. Unlike the
 default,
  static
   * {...@link WizardModel wizard model}, this model isn't very intelligent,
 but
  rather delegates much
   * of the work and knowledge to the {...@link IDynamicWizardStep dynamic
  wizard
  steps} it uses.
 
  on IDynamicWizardStep you can implement the ordering and navegation rules
  based on database and page params.
 
  On Tue, Sep 8, 2009 at 11:20 AM, Muro Copenhagen copenha...@gmail.com
  wrote:
 
   Hi,
  
   I could use some input on how to solve a problem i have.
  
   In my web-app i have some cases, and each cases have several questions.
  
   And i want the user to flow between the pages in a wizard manner like
 the
   example in:
   http://www.wicket-library.com/wicket-examples/wizard/
  
   The only problem i have is that all the questions are database driven,
  and
   is not a fixed set of pages.
  
   But the wizard example is in the link is fixed.
  
   How would i make a dynamic database driven wizard, where the content of
  the
   wizard pages are database driven?
  
   Or is the wizard approach not the right way of doing it...?
  
   What i want to achieve is a user browsing through several question in
  case,
   with the option of moving backwards between the question.
  
   Any input from anyone ...?
  
   Best Regards
   Muro
  
 



problem with ResourceLink

2009-09-08 Thread Eyal Golan
Hi,
We have the following code:

static public ResourceLink getResourceLink(String id,byte[] data,final
String title,String contentType){
ResourceLink resourceLink = new ResourceLink(id, new
CustomResource(data,contentType,title)){
private static final long serialVersionUID = 1L;

@Override
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
replaceComponentTagBody(markupStream, openTag, title);
}
};
//resourceLink.add(new Label(title,new Model(title)));
return resourceLink;
}

and CustomResource is:
public class CustomResource extends Resource{

String filename = ;
ByteArrayResource byteArrayResource = null;


public CustomResource (byte[] data,String contentType,String
filename){
byteArrayResource = new
ByteArrayResource(contentType,data,filename);
this.filename = filename;
}

public IResourceStream getResourceStream() {
return byteArrayResource.getResourceStream();
//return getFile();
//return getAttachment();
}

   }

when the user presses a link of a file named: myFile.doc a save dialog is
opened and the file name is ui.doc
I looked into the code and found that in Resource#onResourceRequested
there's the line: cycle.setRequestTarget(new
ResourceStreamRequestTarget(resourceStream));
When I debugged and changed the value of fileName in
ResourceStreamRequestTarget to bla.doc I got the bla.doc in the save dialog.
We use Wicket 1.3.6

How can I call the constructor of ResourceStreamRequestTarget with the file
name?

Another question,
Is there a way to get the content type out of the file without hard coding?
now we have this:
private String getContentType(String fileName){
fileName = fileName.toLowerCase();
String contentType = null;
if (fileName.endsWith(.doc)) {
contentType = application/msword;
} else if (fileName.endsWith(.html)
|| fileName.endsWith(.txt)
|| fileName.endsWith(.log)
|| fileName.endsWith(.properties))
{
contentType = text/html;
} else if (fileName.endsWith(.pdf)) {
contentType = application/pdf;
} else if (fileName.endsWith(.xls)) {
contentType = application/vnd.ms-excel;
} else if (fileName.endsWith(.pot)
|| fileName.endsWith(.pps)
|| fileName.endsWith(.ppt)) {
contentType = application/vnd.ms-powerpoint;
} else if (fileName.endsWith(.zip)) {
contentType = application/x-zip-compressed;
} else if (fileName.endsWith(.jpg)) {
contentType = image/jpeg;
} else if (fileName.endsWith(.png)) {
contentType = image/png;
} else if (fileName.endsWith(.gif)) {
contentType = image/gif;
} else if (fileName.endsWith(.mp3)) {
contentType = audio/mpeg;
} else if (fileName.endsWith(.bmp)) {
contentType = image/bmp;
} else {
//try {
//contentType
=text/+fileName.substring(fileName.lastIndexOf(.)+1);
//} catch (Exception e) {
//}
}
return contentType;
}


BTW,
I've noticed that there's DownloadLink. Should we use this?

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: Help on wizard solution...

2009-09-08 Thread Eyal Golan
+1 for john

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


DownloadLink and Resource

2009-09-09 Thread Eyal Golan
Hi,
I have two separate questions/wishes:
we use Wicket 1.3.6
DownloadLink - can we add a getter for fileName (I can open an issue in JIRA
if it's necessary).

Resource:
onResourceRequested is final so I can't override  the
ResourceStreamRequestTarget in the line cycle.setRequestTarget(new
ResourceStreamRequestTarget(resourceStream));
Is it possible to add something like:
protected ResourceStreamRequestTarget
getResourceStreamRequestTarget(IResourceStream resourceStream) {
  return new ResourceStreamRequestTarget(resourceStream);
}

so we could override the ResourceStreamRequestTarget that is used?

thanks,



Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: CSS and Javascript in Modal Panel

2009-09-10 Thread Eyal Golan
we used Page in the modal instead of Panel.
In the page we added all header contributers.

I'm not sure, but what if you add these contributers to the page that the
modal window is in?


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Sep 10, 2009 at 9:28 AM, Oliver-Sven Fritsch o...@3blogos.comwrote:

 Hi everybody!

 I want to use modal panels for forms which seems to be a good choice. Some
 of my forms need to have multiple pages which I would like to display on
 tabs. Tabbing work fine in normal wicket panels and pages when I provide
 the necessary CSS and Javascript. But somehow the modal panel is completly
 imune to it. First I tried to include the formatting and script directly in
 the markup for my modal panel which doesn't work. Then I tried to do this
 using the JavascriptPackageResource (nad css) in the class which wont work
 too.

 Is there a way to add css formating and javascript functionallity to modal
 panels beyond the default one?
 Using my scripts and css on ordinary pages works perfectly well.

 Regards Oliver

 --
 Oliver-Sven Fritsch

 3B LOGOS Logik+Logistik GmbH
 Kaiserdamm 32, D-14057 Berlin, Tel.: 30 61 47 42
 Geschäftsführer: Dr. Friedrich Barounig
 Sitz: Berlin, Amtsgericht Charlottenburg, HRB 69523
 UID: DE 198252668, SteuerNummer: 27/004/04695

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




Re: how to embed one wicket app into another

2009-09-10 Thread Eyal Golan
I go with Martin, use iFrame.
This is what we do.
We have two Wicket apps, running on the same machine, the web.xml triggers
two different Wicket apps. Why you ask? an old and a VERY BAD decision.
In order to navigate from one app to the other we actually use URLs. In
order to show page from app B in the A app (the main), we show it in iframe
and calling URLs.
We had to implement a very bad security patch.

One of my main assignments currently, is to merge the two applications back
to one.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Sep 10, 2009 at 7:33 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Use Iframe

 **
 Martin

 2009/9/10 Quan Zhou betoget...@gmail.com:
  sorry, i forget to say  this two apps are installed in different
 servers.each
  is a single standalone app.
  so i think i can't embed panelB into PageA.
 
  On Thu, Sep 10, 2009 at 11:58 AM, Jeremy Thomerson 
  jer...@wickettraining.com wrote:
 
  If you have created good self-contained components, you should be able
 to
  just embed PanelB into PageA
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Sep 9, 2009 at 10:54 PM, Quan Zhou betoget...@gmail.com
 wrote:
 
   Hi.I've developed my simple forum with Wicket(we call it A), and I
 want
  to
   embed it into another website (B) developed by Wicket.
   like, the left panel and the navigator panel are both from B, and the
  right
   panel is from A,
   I dont want to use Frame because my page will be complicated.
  
   Does anyone have this kind of experience?
  
   Thanks in advance and I hope you understand my question.
  
 
 

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




HttpSessionStore instead of the default SecondLevelCacheSessionStore

2009-09-15 Thread Eyal Golan
Hi,
I read this post
http://ptrthomas.wordpress.com/2009/09/14/perfbench-update-tapestry-5-and-grails/
and he suggested to use HttpSessionStore instead of the second cache...

I looked into the javadoc and the code itself and understood the
differences.

However, can anyone explain in a bit more detail the implications /
differences of using the Http instead of the SecondLayer?
The reason I'm asking this, is because, if it's better use, then I want to
convince my team that we change the implementation of our application to use
Http store.


Thanks very much.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: HttpSessionStore instead of the default SecondLevelCacheSessionStore

2009-09-15 Thread Eyal Golan
Thank you all.
This thread was very informative and educated.
Peter, I will try the two suggestions you've mentioned.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null

2009-10-06 Thread Eyal Golan
Hi,
I did some refactoring in an old Wicket code amd I get the warning message
in the subject:
2009-10-06 19:37:34,484 WARN [org.apache.wicket.protocol.http.WebResponse] -
redirect to ?wicket:interface=:5 failed: null

I tried to debug, did some breakpointing etc. but could not understand why
do I get this.
Can someone give me a hint on where to start looking and to understand
what's going on?

Thanks,

Eyal

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null

2009-10-07 Thread Eyal Golan
Hi Jeremy,
Below is the stack trace:
Thread [btpool0-0] (Suspended (breakpoint at line 238 in WebResponse))
BufferedWebResponse(WebResponse).redirect(String) line: 238
BufferedWebResponse.close() line: 66
WicketFilter.doGet(HttpServletRequest, HttpServletResponse) line: 372

WicketFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
line: 201
ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse)
line: 1065
SecurityFilter.doFilterInternal(HttpServletRequest, HttpServletResponse,
FilterChain) line: 35
SecurityFilter(OncePerRequestFilter).doFilter(ServletRequest,
ServletResponse, FilterChain) line: 75
ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse)
line: 1065
ClearUserDetailsFilter.doFilterInternal(HttpServletRequest,
HttpServletResponse, FilterChain) line: 23
ClearUserDetailsFilter(OncePerRequestFilter).doFilter(ServletRequest,
ServletResponse, FilterChain) line: 75
ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse)
line: 1065
ServletHandler.handle(String, HttpServletRequest, HttpServletResponse,
int) line: 365
SecurityHandler.handle(String, HttpServletRequest, HttpServletResponse,
int) line: 185
SessionHandler.handle(String, HttpServletRequest, HttpServletResponse,
int) line: 181
WebAppContext(ContextHandler).handle(String, HttpServletRequest,
HttpServletResponse, int) line: 689
WebAppContext.handle(String, HttpServletRequest, HttpServletResponse,
int) line: 391
HandlerCollection.handle(String, HttpServletRequest,
HttpServletResponse, int) line: 114
Server(HandlerWrapper).handle(String, HttpServletRequest,
HttpServletResponse, int) line: 139
Server.handle(HttpConnection) line: 285
HttpConnection.handleRequest() line: 457
HttpConnection$RequestHandler.headerComplete() line: 751
HttpParser.parseNext() line: 500
HttpParser.parseAvailable() line: 209
HttpConnection.handle() line: 357
SelectChannelConnector$ConnectorEndPoint(SelectChannelEndPoint).run()
line: 329
BoundedThreadPool$PoolThread.run() line: 475

We use Wicket 1.3.6

Thanks for your help.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 null - should mean NullPointerException do you get the stacktrace to
 see
 where it's coming from?  Paste into reply

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com wrote:

  Hi,
  I did some refactoring in an old Wicket code amd I get the warning
 message
  in the subject:
  2009-10-06 19:37:34,484 WARN
 [org.apache.wicket.protocol.http.WebResponse]
  -
  redirect to ?wicket:interface=:5 failed: null
 
  I tried to debug, did some breakpointing etc. but could not understand
 why
  do I get this.
  Can someone give me a hint on where to start looking and to understand
  what's going on?
 
  Thanks,
 
  Eyal
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null

2009-10-07 Thread Eyal Golan
BTW,
the 'null' is the message of the exception.
Looking at the exception in the break-point: the exception is:
org.mortbay.jetty.EofException

thanks.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 null - should mean NullPointerException do you get the stacktrace to
 see
 where it's coming from?  Paste into reply

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com wrote:

  Hi,
  I did some refactoring in an old Wicket code amd I get the warning
 message
  in the subject:
  2009-10-06 19:37:34,484 WARN
 [org.apache.wicket.protocol.http.WebResponse]
  -
  redirect to ?wicket:interface=:5 failed: null
 
  I tried to debug, did some breakpointing etc. but could not understand
 why
  do I get this.
  Can someone give me a hint on where to start looking and to understand
  what's going on?
 
  Thanks,
 
  Eyal
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null

2009-10-08 Thread Eyal Golan
Jeremy,
That's the problem. I didn't have an exception. It's a warning in a catch
clause in WebResponse.
I copied the stack trace when I stopped in a break point in that location.

I will do what you suggest and look the 'close' method.

Thanks

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Oct 7, 2009 at 4:43 PM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 Well, it's hard to say.  When you include a stack trace for an error, it's
 helpful if you can get the full stack trace (with the exception and caused
 by) because I can't tell which line actually put you into the catch.

 But it seems like something is closing your response before you get to this
 redirect method.  I'd put a breakpoint on the close method of the http
 response to see if it's being closed before you get to this one.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Wed, Oct 7, 2009 at 2:05 AM, Eyal Golan egola...@gmail.com wrote:

  BTW,
  the 'null' is the message of the exception.
  Looking at the exception in the break-point: the exception is:
  org.mortbay.jetty.EofException
 
  thanks.
 
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 
 
  On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson
  jer...@wickettraining.comwrote:
 
   null - should mean NullPointerException do you get the stacktrace
 to
   see
   where it's coming from?  Paste into reply
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com
 wrote:
  
Hi,
I did some refactoring in an old Wicket code amd I get the warning
   message
in the subject:
2009-10-06 19:37:34,484 WARN
   [org.apache.wicket.protocol.http.WebResponse]
-
redirect to ?wicket:interface=:5 failed: null
   
I tried to debug, did some breakpointing etc. but could not
 understand
   why
do I get this.
Can someone give me a hint on where to start looking and to
 understand
what's going on?
   
Thanks,
   
Eyal
   
Eyal Golan
egola...@gmail.com
   
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
   
P  Save a tree. Please don't print this e-mail unless it's really
   necessary
   
  
 



Re: getCallbackUrl question

2009-11-08 Thread Eyal Golan
Any one ?


  1   2   3   4   >