AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-21 Thread Arie Fishler
Hello,

I am extending AbstractDefaultAjaxBehavior and using getCallBackUrl to place
the ajax call in a JS function.

This works fine.

The only problem I have is that the getCallBackUrl does not seem to take
into account the container's (tomcat) behavior of adding the JSESSIONID
within the URL in case cookies are not enabled on the client browser.

The JSESSIONID is added fine for other URLs within my app but when using
getCallBackUrl and cookies are not enabled - the ajax call results in page
expired.

Is there a way that getCallBackUrl handles that right?

Arie


Re: AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-21 Thread Arie Fishler
I don't get the difference - Wicket's ajax calls work just fine - they are
all on the page with the wicketAjaxGet() function - the first parameter
which is the URL has the jsessionid

when I generate my JS function which is only used to call the ajax
*

function* myFunction(){

*var* wcall=wicketAjaxGet('${ajaxCallUrl}' , *function*() { }, *function*()
{ });

}

I generate the ajaxCallUrl with getCallbackUrl(*true*) of the behavior

The result is something like

?wicket:interface=:0:homePagePanel:promotionsPanel::IActivePageBehaviorListener:10:wicket:ignoreIfNotActive=true

With no jsessionid when actually required (cookies not enabled on the client
browser)

The full code of the behavior's onBind that does it

@Override

*protected* *void* onBind() {

Component comp = getComponent();

markupId = comp.getMarkupId();

MapString, Object scriptParams = *new* HashMapString, Object();

scriptParams.put(ajaxCallUrl, getCallbackUrl(*true*).toString());

scriptParams.put(functionName, getGeneratedFunctionName());

*if* (paramName == *null*)

getComponent().add(*new* ScriptHeaderContributor(AjaxJSFunctionBehavior.*
class*, ajaxfunction.js, scriptParams));

*else* {

scriptParams.put(paramName, paramName);

getComponent().add(*new* ScriptHeaderContributor(AjaxJSFunctionBehavior.*
class*, ajaxParamFunction.js, scriptParams));

}

*super*.onBind();

}

On Wed, Apr 21, 2010 at 9:11 AM, Arie Fishler arie@gmail.com wrote:

  Hello,

 I am extending AbstractDefaultAjaxBehavior and using getCallBackUrl to
 place the ajax call in a JS function.

 This works fine.

 The only problem I have is that the getCallBackUrl does not seem to take
 into account the container's (tomcat) behavior of adding the JSESSIONID
 within the URL in case cookies are not enabled on the client browser.

 The JSESSIONID is added fine for other URLs within my app but when using
 getCallBackUrl and cookies are not enabled - the ajax call results in page
 expired.

 Is there a way that getCallBackUrl handles that right?

 Arie



Changing style in the same session with setStyle

2010-04-16 Thread Arie Fishler
Hi,

I am using setStyle in the Session to set a skin. I am using this setting
to retrieve texts from resource files based on the skin.

The thing is that a user might go to other pages during the same session.
Other pages might have different skins so they are supposed to show other
texts for the same keys.

What actually happens is that altough other pages reset the setStyle to
other values - the texts that are retrieved from the resource files are the
ones associated with the FIRST style set in the session.

This is really bad as I have all texts mixed up.

What is causing this? Is it the resource file lookup that is set once for a
session? Something else? Anyway around this?

Thanks,
Arie


Handling Ajax session expired

2009-12-28 Thread Arie Fishler
Hi,

When a client has a page in his browser that he does not touch for a while
and the session expired. after that if he hits an ajax link for example - an
exception occurs in the wicket level due to the session expired state.

How can I gracefully handle such a situation assuming that there is no a
single home page i can transfer the user. This means that the session
itself had some information on the specific environment the user was in.

I can think of adding some information on the ajax link that will indicate
that but again the exception happens at the wicket level and if I am
handling the exception not sure how I can retrieve such data.

Any good methodology here?

Thanks,
Arie


Changing the page charset ???

2009-10-09 Thread Arie Fishler
Hi,

What's the up-to-date method to change the default UTF-8 charset set in the
page.

I saw the page in the wiki but it is old and it has a header sayingthis
is going to change

So I am not sure and could not find something useful on the search.

I need to set it for a specific page or panel and not for the whole
application through the defaults.

Thanks,
Arie


Re: How to set the http response code for an error page

2009-09-06 Thread Arie Fishler
Thanks!

On Sun, Sep 6, 2009 at 4:15 PM, Jeremy Levy jel...@gmail.com wrote:

 Add the following to your error page, change the error as required:

@Override
protected void configureResponse() {
super.configureResponse();


  
 getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}

@Override
public boolean isVersioned() {
return false;
}

@Override
public boolean isErrorPage() {
return true;
 }




 On Sat, Sep 5, 2009 at 2:15 PM, Arie Fishler arie@gmail.com wrote:

  I have a custom error page that I set like explained in the wiki
  http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
 
  Stillthe page returns http 200. How do I set it to a specific error
  code?
 
  Thanks,
  Arie
 



 --
 Jeremy Levy

 See my location in real-time:
 http://seemywhere.com/jeremy



How to set the http response code for an error page

2009-09-05 Thread Arie Fishler
I have a custom error page that I set like explained in the wiki
http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

Stillthe page returns http 200. How do I set it to a specific error
code?

Thanks,
Arie


Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
Hi,

We have been implementing the getAjaxCallDecorator for links that
extends AjaxLink
in order to manipulate the way the wicket-ajax is called on these links.

I have a need to do something similar with a behavior and not sure how to
implement.

I have a behavior that is applied (added) to different links. This behavior
needs to manipulate and control when the actual wicket-ajax call is executed
for the link it is on.

It is like the behavior needs an access to the function call that activates
the ajax on the link. Is there a way for a behavior to get it?

Cheers,
Arie


Re: Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
The behvavior is not AbstractDefaultAjaxBehavior just one extending
AbstractBehavior.

Can I get it somehow from the onComponentTag of the behavior? I actually
need the value that is placed in the onClick event (which has the action for
the link or button that has the behavior placed on)

My behavior just adds a function call before any other action and I want
this function call to resume the wicket action (ajax click on a link or
submit of a button) right after the function of the behavior is executed

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

 To one of the decorations script must to be appended the script responsible
 to call the behavior. You can get it invoking the
 AbstractDefaultAjaxBehavior.getCallbackScript() protected method.

 On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler arie@gmail.com wrote:

  Hi,
 
  We have been implementing the getAjaxCallDecorator for links that
  extends AjaxLink
  in order to manipulate the way the wicket-ajax is called on these links.
 
  I have a need to do something similar with a behavior and not sure how to
  implement.
 
  I have a behavior that is applied (added) to different links. This
 behavior
  needs to manipulate and control when the actual wicket-ajax call is
  executed
  for the link it is on.
 
  It is like the behavior needs an access to the function call that
 activates
  the ajax on the link. Is there a way for a behavior to get it?
 
  Cheers,
  Arie
 



Re: Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
Wel...this is the solution I wanted to avoid since this behavior can be
attached to buttons, links, ajax links...don't want to create onr for each.

I can use the tag from the oncomponenttag and find out where it is supposed
to go originallythis seems to be the option that will work

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

 value that is placed in the onClick event (which has the action for the
 link or button that has the behavior placed on)
 You has an parameter determining the action to be take, why don't you use
 polimorfism?

 My behavior just adds a function call before any other action and I want
 this function call to resume the wicket action
 You has an behavior common to onClick of a link or onSubmit of a button. Do
 you consider to use inheritance instead of composition in this especific
 case because:

 I want this function call to resume the wicket action

 public class CustomLink/CustomButton extends Link/Button{
@override
 onClick or onSubmit(){
callFunctionBeforeAnyOtherAction();
callAction();
}
protected abstrat void callAction();
  }



 On Thu, Sep 3, 2009 at 8:42 AM, Arie Fishler arie@gmail.com wrote:

  The behvavior is not AbstractDefaultAjaxBehavior just one extending
  AbstractBehavior.
 
  Can I get it somehow from the onComponentTag of the behavior? I actually
  need the value that is placed in the onClick event (which has the action
  for
  the link or button that has the behavior placed on)
 
  My behavior just adds a function call before any other action and I want
  this function call to resume the wicket action (ajax click on a link or
  submit of a button) right after the function of the behavior is executed
 
  On Thu, Sep 3, 2009 at 2:09 PM, Pedro Santos pedros...@gmail.com
 wrote:
 
   To one of the decorations script must to be appended the script
  responsible
   to call the behavior. You can get it invoking the
   AbstractDefaultAjaxBehavior.getCallbackScript() protected method.
  
   On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler arie@gmail.com
 wrote:
  
Hi,
   
We have been implementing the getAjaxCallDecorator for links that
extends AjaxLink
in order to manipulate the way the wicket-ajax is called on these
  links.
   
I have a need to do something similar with a behavior and not sure
 how
  to
implement.
   
I have a behavior that is applied (added) to different links. This
   behavior
needs to manipulate and control when the actual wicket-ajax call is
executed
for the link it is on.
   
It is like the behavior needs an access to the function call that
   activates
the ajax on the link. Is there a way for a behavior to get it?
   
Cheers,
Arie
   
  
 



Re: Male/Female messages

2009-08-28 Thread Arie Fishler
Actually a good solution. I am already using styles for skin diffrentiation
but can certainly combine the male/female to that. Simple and clean.

Thanks

On Thu, Aug 27, 2009 at 6:35 PM, Cserep Janos cser...@szeretgom.hu wrote:

 use setStyle()  and different styles for property files. That means
 you should have 2 files:

 MyApplication_male.properties
 MyApplication_female.properties

 j


 On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishlerarie@gmail.com wrote:
  Hi,
 
  Assuming that I am localizing to a language that has different text
 required
  for male and female is there a generic way for hadling that. This is of
  course based on the fact that I can provide a user object that contains
 that
  property (if the user is a male or female)
 
  I can think of a convention that will add to all resource file keys a
  .female extension to handle female text if required and wrap the
  ResourceModel with an object that will get the user. Using the gender
  property of the user it will manipulate the key to add the .female
 extension
  if required, check if the female text exist at all (and if no default to
 the
  no extension version) etc.
 
  This may work. Are there any other suggestions? What about the
  wicket:message markup that goes directly to the resource files...how do I
  handle that? (I have lots of markup already so changing all of it to
 labels
  is not the easiest way)
 
  Thanks,
  Arie
 

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




Male/Female messages

2009-08-27 Thread Arie Fishler
Hi,

Assuming that I am localizing to a language that has different text required
for male and female is there a generic way for hadling that. This is of
course based on the fact that I can provide a user object that contains that
property (if the user is a male or female)

I can think of a convention that will add to all resource file keys a
.female extension to handle female text if required and wrap the
ResourceModel with an object that will get the user. Using the gender
property of the user it will manipulate the key to add the .female extension
if required, check if the female text exist at all (and if no default to the
no extension version) etc.

This may work. Are there any other suggestions? What about the
wicket:message markup that goes directly to the resource files...how do I
handle that? (I have lots of markup already so changing all of it to labels
is not the easiest way)

Thanks,
Arie


Re: Blank page problem

2009-08-26 Thread Arie Fishler
Thanks...actually it was just a non wicket related bug :)

On Mon, Aug 24, 2009 at 3:28 PM, Linda van der Pal 
lvd...@heritageagenturen.nl wrote:

 My guess would be that the page doesn't render at all, therefore also not
 rendering the Wicket Ajax Debug label and link.

 Regards,
 Linda

 Arie Fishler wrote:

  Hi,

 I have a page rendering all sorts of stuff. I do it on development so I
 see
 the Wicket Ajax Debug label.

 From time to time, not on a constant basis I get a blank page instead of
 getting the content I expect. A side effect of this is that every time
 that
 happens the Wicket Ajax Debug label does not appear on the page as well.
 No errors in the logs.

 I am trying to understand what is going on with the page. since I don;t
 have
 a real clue I would like your help to understand what failure might
 be causing the Wicket Ajax Debug label (and link)  not to appear on the
 page?

 I hope that this information will get me some kind of insight on the
 overall
 problem.

 Thanks
 Arie

  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database:
 270.13.65/2323 - Release Date: 08/24/09 06:05:00





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




Blank page problem

2009-08-24 Thread Arie Fishler
Hi,

I have a page rendering all sorts of stuff. I do it on development so I see
the Wicket Ajax Debug label.

From time to time, not on a constant basis I get a blank page instead of
getting the content I expect. A side effect of this is that every time that
happens the Wicket Ajax Debug label does not appear on the page as well.
No errors in the logs.

I am trying to understand what is going on with the page. since I don;t have
a real clue I would like your help to understand what failure might
be causing the Wicket Ajax Debug label (and link)  not to appear on the
page?

I hope that this information will get me some kind of insight on the overall
problem.

Thanks
Arie


Re: How to goto a specific tab in a iframe URL from the parent page

2009-08-24 Thread Arie Fishler
basically I have a similar situation. I pass in the qs a parameter
indicating which tab I need to be on focus and then use code to simulate tab
selection for this specific tab.

We use Jquery tabs integrated into wicket.

I also do it for specific location on the page - use anchors in the page and
in the qs indicate which anchor should the page focus on. then use JS to
jump to the right anchor

On Mon, Aug 24, 2009 at 2:28 PM, Keval Patel kev...@hotmail.com wrote:


 Hi,

 Basically,  I have a page with an iframe inside it. The iframe inside it
 consists of various tab panels. I need a way to be able to include something
 in the query string of the parent url so i can goto a specific tab inside
 the iframe, is this possible?

 Thanks

 _
 Windows Live Messenger: Happy 10-Year Anniversary—get free winks and
 emoticons.
 http://clk.atdmt.com/UKM/go/157562755/direct/01/


Re: Need Wicket Book

2009-08-18 Thread Arie Fishler
Wicket in action! A must have!

On Tue, Aug 18, 2009 at 9:26 AM, Jeroen Steenbeeke j.steenbeeke.ml@
gmail.com wrote:

 I realize you asked for freely available information sources, but you
 really
 can't go wrong with Wicket in Action:
 http://manning.com/dashorst/
 It isn't that expensive at $45, and you get a PDF copy as well. You can
 also
 skip the dead tree version and get just the PDF for $27.50. And I'm not
 just
 saying this because Martijn is a co-worker, it really is an excellent book.
 - Jeroen

 2009/8/18 Haulyn R. Jason saharab...@gmail.com

  you can start from wicket tutorial, live demo
  http://wicketstuff.org/wicket13/and the quick start is very good:
  http://wicket.apache.org/quickstart.html
 
 
 
 
  On Tue, Aug 18, 2009 at 1:26 PM, Gerald Fernando 
  gerald.anto.ferna...@gmail.com wrote:
 
   Hello Friends,
  
   Am Gerald Fernando as well as new to Wicket.
   I was assigned to do a  project using Wicket.
   So first i Need to study well Wicket(from the very basic steps)
   What can be Achieved and What cant be Achieved.
   please tell me the Books for Wicket(Free DownLoad).
   so that i can go ahead.
   from the basic i want to study throughly
   please Help me
  
  
  
   --
   Thanksregards,
   Gerald A
  
 
 
 
  --
  --
  Enjoy. Thanks!
 
  Haulyn Microproduction
 
  Mobile: +086-15864011231
  email: saharab...@gmail.com,
  hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  yahoo: jia_hao...@yahoo.com
  msn: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
 
  Haulyn Jason
 



Controlling the order of resource files

2009-08-17 Thread Arie Fishler
Hello,

The normal way wicket goes over resource files is based on locale and
different component names, application name etc.

What's the best practice for a situation in which I would like my
application to find the resource file based on a skin.
This means that for the same classes set (same wicket application) and same
local I still need to have different texts for a certain resource key.

It is like I need another selection mechanism for resource file which is not
the locale but something that is specific to the logic of my application.

Is there some way to implement that? Like making wicket look for resource
files the same way it does but add a prefix for every resource file name

Thanks,
Arie


Re: Controlling the order of resource files

2009-08-17 Thread Arie Fishler
Many thanks guys...this is exactly what I meant. Happy this is found in the
base of wicket. Anoter example of how flexible and great wicket is:)

Cheers..great day to all.

Arie.

On Mon, Aug 17, 2009 at 11:17 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  It is like I need another selection mechanism for resource file which
  is not
  the locale but something that is specific to the logic of my
  application.

 Look at styles, i.e. Session.setStyle(String) and the documentation there
 for resource lookup. Basically the style tag goes before the locale, e.g.
 MyPage_foo_nl.properties for locale nl and style foo.


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




Upload preview before form submit

2009-06-22 Thread Arie Fishler
Hi,

I know this was handled many times here in a way but this is not exactly the
regular kind of ajax submit for an upload field.

I have implemented the ajax submit using the inline frame solution.
However...I want to have a preview of an uploaded file (image for example)
BEFORE submitting the form.

I have several fields in a form one of which is an uploaded file field.
Clicking an upload link near the uploaded file field  should load the file
and not submit the form.
When the user sees the file, fills all the other fields he would like to
submit the form.

This is pretty common use case I guess.

Nested forms does not work here (inner form has only an upload field with
ajax submit method) so only separate form gowhich is not good for me.

Is there a descent way to implement this?

Thanks,
Arie


Re: Upload preview before form submit

2009-06-22 Thread Arie Fishler
ok...thanks. this is the way to define the preview display. However I am not
sure you referred to the issue of submitting the preview which is the bigger
problem here.

Is it supposed to work when the uploaded file has its own for within the
main form? nested forms? Since I could not get the ajax-iframe thing to work
this way.

If notI need a way to only submit the uploaded file for preview while
the rest of the form is not changed. it is not the most convenient or
elegant to have this as a totally separate form. If I want to make it a
panel for example I want it to include the whole functionality.

On Mon, Jun 22, 2009 at 4:44 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 when your inline frame is done getting the file it can send some
 javascript to the browser to change an src of a hidden img tag to the
 url of the uploaded file. thats one way to do this. another way is to
 treat the hidden frame as an actual component and place it where you
 want the preview to be, that way after the upload it can write out an
 img tag.

 -igor

 On Mon, Jun 22, 2009 at 2:14 AM, Arie Fishlerarie@gmail.com wrote:
  Hi,
 
  I know this was handled many times here in a way but this is not exactly
 the
  regular kind of ajax submit for an upload field.
 
  I have implemented the ajax submit using the inline frame solution.
  However...I want to have a preview of an uploaded file (image for
 example)
  BEFORE submitting the form.
 
  I have several fields in a form one of which is an uploaded file field.
  Clicking an upload link near the uploaded file field  should load the
 file
  and not submit the form.
  When the user sees the file, fills all the other fields he would like to
  submit the form.
 
  This is pretty common use case I guess.
 
  Nested forms does not work here (inner form has only an upload field with
  ajax submit method) so only separate form gowhich is not good for me.
 
  Is there a descent way to implement this?
 
  Thanks,
  Arie
 

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




Re: Upload preview before form submit

2009-06-22 Thread Arie Fishler
ok. i think i get it. can you point me to some code sample for clearing this
mechanism. what seems to be missing for me is the iframe submit to a
servlet part. Not sure I see how the file gets there

and...thanks again.

On Mon, Jun 22, 2009 at 5:12 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 i wouldnt even use a form to submit it. i would have the iframe submit
 to a servlet which would then receive the file and store it on disk in
 a well known location. the wicket component can then provide a file
 pointing to that location as its model.

 -igor

 On Mon, Jun 22, 2009 at 7:09 AM, Arie Fishlerarie@gmail.com wrote:
  ok...thanks. this is the way to define the preview display. However I am
 not
  sure you referred to the issue of submitting the preview which is the
 bigger
  problem here.
 
  Is it supposed to work when the uploaded file has its own for within the
  main form? nested forms? Since I could not get the ajax-iframe thing to
 work
  this way.
 
  If notI need a way to only submit the uploaded file for preview while
  the rest of the form is not changed. it is not the most convenient or
  elegant to have this as a totally separate form. If I want to make it a
  panel for example I want it to include the whole functionality.
 
  On Mon, Jun 22, 2009 at 4:44 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  when your inline frame is done getting the file it can send some
  javascript to the browser to change an src of a hidden img tag to the
  url of the uploaded file. thats one way to do this. another way is to
  treat the hidden frame as an actual component and place it where you
  want the preview to be, that way after the upload it can write out an
  img tag.
 
  -igor
 
  On Mon, Jun 22, 2009 at 2:14 AM, Arie Fishlerarie@gmail.com
 wrote:
   Hi,
  
   I know this was handled many times here in a way but this is not
 exactly
  the
   regular kind of ajax submit for an upload field.
  
   I have implemented the ajax submit using the inline frame solution.
   However...I want to have a preview of an uploaded file (image for
  example)
   BEFORE submitting the form.
  
   I have several fields in a form one of which is an uploaded file
 field.
   Clicking an upload link near the uploaded file field  should load the
  file
   and not submit the form.
   When the user sees the file, fills all the other fields he would like
 to
   submit the form.
  
   This is pretty common use case I guess.
  
   Nested forms does not work here (inner form has only an upload field
 with
   ajax submit method) so only separate form gowhich is not good for
 me.
  
   Is there a descent way to implement this?
  
   Thanks,
   Arie
  
 
  -
  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: Browser opens a dialog box for text/html Resource

2009-03-03 Thread Arie Fishler
Got that figured out. Actually it is in the book. Using
RequestCycle.get().setRequestTarget(target); with a submit button. This also
opens it up with no dialog box.

On Mon, Mar 2, 2009 at 7:43 PM, Arie Fishler arie@gmail.com wrote:

  - Show quoted text -

   Hi,

 I am integrating some reports using the JasperReports integration classes
 found in the Wicket stuff.

 Basically I have a class that extends  DynamicWebResource

 It is linked using a ResourceLink that triggers its output.

 Content type is returned as text/html.

 Why is the browser asking me before opening it? I want it to automatically
 open in a new window just as it dows when I approve the dialog box.

 On another level, as I specified the output is triggered using a
 ResourceLink on the page. How do I trigger the output when I want to put a
 form and a submit link on the page. This means I want to create the Resource
 on submit and trigger its output based on the form selections not as a
 direct link on the pgae.

 Thanks,
 Arie




Browser opens a dialog box for text/html Resource

2009-03-02 Thread Arie Fishler
Hi,

I am integrating some reports using the JasperReports integration classes
found in the Wicket stuff.

Basically I have a class that extends  DynamicWebResource

It is linked using a ResourceLink that triggers its output.

Content type is returned as text/html.

Why is the browser asking me before opening it? I want it to automatically
open in a new window just as it dows when I approve the dialog box.

On another level, as I specified the output is triggered using a
ResourceLink on the page. How do I trigger the output when I want to put a
form and a submit link on the page. This means I want to create the Resource
on submit and trigger its output based on the form selections not as a
direct link on the pgae.

Thanks,
Arie

On Mon, Mar 2, 2009 at 5:48 PM, shetc sh...@bellsouth.net wrote:


 I just want to take a moment to thank you all. With your support, my
 colleagues and I were able
 to complete our first enterprise-wide Wicket-based application. I work for
 the Spherion Corporation,
 which provides staffing services. Our Wicket application is a web site
 where
 a newly hired employee
 completes all the forms required for starting a job (upwards of 15 per
 user). This replaces a
 paper-based manual system. We expect a large cost savings as recruiters can
 focus on placing
 candidates rather than pushing paper. The application went through a very
 successful pilot phase,
 and is now in general use for the whole company.

 Once again, many thanks -- we couldn't have done it without your help!

 Steve
 --
 View this message in context:
 http://www.nabble.com/Thank-you%21-tp22290605p22290605.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




Browser opens a dialog box for text/html Resource

2009-03-02 Thread Arie Fishler
  Hi,

 I am integrating some reports using the JasperReports integration classes
 found in the Wicket stuff.

 Basically I have a class that extends  DynamicWebResource

 It is linked using a ResourceLink that triggers its output.

 Content type is returned as text/html.

 Why is the browser asking me before opening it? I want it to automatically
 open in a new window just as it dows when I approve the dialog box.

 On another level, as I specified the output is triggered using a
 ResourceLink on the page. How do I trigger the output when I want to put a
 form and a submit link on the page. This means I want to create the Resource
 on submit and trigger its output based on the form selections not as a
 direct link on the pgae.

 Thanks,
 Arie



Re: RestartResponseAtInterceptPageException and the query string

2009-01-06 Thread Arie Fishler
Thanks a lot. I will take a look. It seems like for some reason when hitting
the intercept page it creates a new sessiontherefore I cannot use the
session to store things to achieve the required communication between the
calls.

Basically I do want to use RestartResponseAtInterceptPageException.
 because of its return functionality

So it seems I am kind of stuck...not here, not there...but thanks for
clearing it to me on my possibilities.

On Tue, Jan 6, 2009 at 6:29 AM, David Leangen wic...@leangen.net wrote:


 Since nobody has replied yet...

 You can do this with RestartResponseException but not
 RestartResponseAtInterceptPageException.

 The difference between the two is that the former will simply break the
 current path and restart somewhere else, I guess kinda like a goto
 statement. In the latter case, you break to somewhere to do some
 temporary processing, and return to the point you left off when that
 temporary processing is done, maybe like a subroutine. This is ideal,
 for example, for the login scenario.

 RestartResponseAtInterceptPageException was not designed to accept
 parameters, so you just can't do it that way.

 (As to why it was designed that way, you'll have to ask the people who
 designed it.)

 What you can do is set a meta key. So long as you remain within the same
 session, you can temporary store data to the session. It may not be
 exactly what you want (parameters), but it will allow you to accomplish
 the same thing.

 I.e. in org.apache.wicket.Session:

  public final java.io.Serializable getMetaData(MetaDataKey key)
  public final void setMetaData(MetaDataKey key, Serializable object)



 Good luck!
 =dml




 On Wed, 2008-12-31 at 18:58 +0200, Arie Fishler wrote:
  Hi All,
 
  First...Happy new year to everybody!
 
  I apologize for raising this question again as I did it in the past in
 some
  other form but actually this was not really resolved for me.
 
  I am using RestartResponseAtInterceptPageException to redirect to some
  sign-in page or similar.
 
  I think it was Martijn that mentioned that the default for the redirect
 is
  that the QUERY STRING of the original message is passed to the sign-in
 page.
  StillI do not see this happening. I want to get the original query
  string or at least be able to provide some parameters to that sign in
 page.
  How do I achieve this?
 
  To make the issue clear I have this sequence.
 
  http://domain.com/wicket/pageX?a=1b=2
 
  This does some logic and then throws
 RestartResponseAtInterceptPageException
  which redirects to http://domain.com/wicket/signIn
 
  but what I wanted to get is
  http://domain.com/wicket/signIn*?a=1b=2
 http://domain.com/wicket/signIn?a=1b=2
  *
  or even add some of my own parameters http://domain.com/wicket/signIn*
  ?a=1b=2c=3 http://domain.com/wicket/signIn?a=1b=2c=3*
  **
  Can anyone help?
 
  Thanks!!


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




Modifying the mimetype of the response

2008-12-31 Thread Arie Fishler
Hi,

I am trying to stream an image to the response and setting the proper mime
type to it prior to writing the stream to the output.

The file exists and is written but the mime type of the response is not set
according to what I expect it to be (image/png). Any idea?


WebResponse response = (WebResponse)getRequestCycle().getResponse();

*if* (imagePath != *null*) {

*try* {

File imageFile = *new* File(imagePath);

FileInputStream inputStream = *new* FileInputStream(imageFile);

response.setContentType(*DEFAULT_MIME_TYPE*);

Streams.*copy*(inputStream, response.getOutputStream());

*return*;

}

*catch* (FileNotFoundException e) {

}

*catch* (IOException e) {

}

}

// 404

response.getHttpServletResponse().setStatus(*NOT_FOUND*);


Re: Modifying the mimetype of the response

2008-12-31 Thread Arie Fishler
ok

On Wed, Dec 31, 2008 at 11:35 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 Please createca Jira issue.

 Martijn

 On 12/31/08, Arie Fishler arie@gmail.com wrote:
  Hi,
 
  I am trying to stream an image to the response and setting the proper
 mime
  type to it prior to writing the stream to the output.
 
  The file exists and is written but the mime type of the response is not
 set
  according to what I expect it to be (image/png). Any idea?
 
 
  WebResponse response = (WebResponse)getRequestCycle().getResponse();
 
  *if* (imagePath != *null*) {
 
  *try* {
 
  File imageFile = *new* File(imagePath);
 
  FileInputStream inputStream = *new* FileInputStream(imageFile);
 
  response.setContentType(*DEFAULT_MIME_TYPE*);
 
  Streams.*copy*(inputStream, response.getOutputStream());
 
  *return*;
 
  }
 
  *catch* (FileNotFoundException e) {
 
  }
 
  *catch* (IOException e) {
 
  }
 
  }
 
  // 404
 
  response.getHttpServletResponse().setStatus(*NOT_FOUND*);
 


 --
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Modifying the mimetype of the response

2008-12-31 Thread Arie Fishler
Will try that and report.

Thanks for the suggestion.

Cheers,
Arie

On Wed, Dec 31, 2008 at 4:09 PM, Antoine Angenieux aangeni...@clinigrid.com
 wrote:

 Hi Arie,

 I don't know your usecase, but what I usually do when I need to stream data
 through wicket, I use a ResourceStreamRequestTarget along with an
 implementation of AbstractResourceStreamWriter.
 In your AbstractResourceStreamWriter you can onverride de getContentType()
 method as :

 @Override
 public String getContentType() {
return image/png;
 }

 and when you want to stream your content, just do :
 RequestCycle().get().setRequestTarget(
new ResourceStreamRequestTarget(new MyResourceStreamWriterImpl());

 Hope this helps !

 Happy new year ;)

 Antoine.

 Arie Fishler wrote:

  Hi,

 I am trying to stream an image to the response and setting the proper mime
 type to it prior to writing the stream to the output.

 The file exists and is written but the mime type of the response is not
 set
 according to what I expect it to be (image/png). Any idea?


 WebResponse response = (WebResponse)getRequestCycle().getResponse();

 *if* (imagePath != *null*) {

 *try* {

 File imageFile = *new* File(imagePath);

 FileInputStream inputStream = *new* FileInputStream(imageFile);

 response.setContentType(*DEFAULT_MIME_TYPE*);

 Streams.*copy*(inputStream, response.getOutputStream());

 *return*;

 }

 *catch* (FileNotFoundException e) {

 }

 *catch* (IOException e) {

 }

 }

 // 404

 response.getHttpServletResponse().setStatus(*NOT_FOUND*);


 --
 Antoine Angénieux
 Associé

 Clinigrid
 5, avenue Mozart
 75016 Paris, France
 +336 60 21 09 18
 aangeni...@clinigrid.com




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




RestartResponseAtInterceptPageException and the query string

2008-12-31 Thread Arie Fishler
Hi All,

First...Happy new year to everybody!

I apologize for raising this question again as I did it in the past in some
other form but actually this was not really resolved for me.

I am using RestartResponseAtInterceptPageException to redirect to some
sign-in page or similar.

I think it was Martijn that mentioned that the default for the redirect is
that the QUERY STRING of the original message is passed to the sign-in page.
StillI do not see this happening. I want to get the original query
string or at least be able to provide some parameters to that sign in page.
How do I achieve this?

To make the issue clear I have this sequence.

http://domain.com/wicket/pageX?a=1b=2

This does some logic and then throws RestartResponseAtInterceptPageException
which redirects to http://domain.com/wicket/signIn

but what I wanted to get is
http://domain.com/wicket/signIn*?a=1b=2http://domain.com/wicket/signIn?a=1b=2
*
or even add some of my own parameters http://domain.com/wicket/signIn*
?a=1b=2c=3 http://domain.com/wicket/signIn?a=1b=2c=3*
**
Can anyone help?

Thanks!!


Re: Modifying the mimetype of the response

2008-12-31 Thread Arie Fishler
Well Antoine...this is truly a sign of a new good year since your little
trick just works very well.

Much appreciated here!!!

Cheers, happy new year,
Arie.

On Wed, Dec 31, 2008 at 6:46 PM, Arie Fishler arie@gmail.com wrote:

  Will try that and report.

 Thanks for the suggestion.

 Cheers,
 Arie

   On Wed, Dec 31, 2008 at 4:09 PM, Antoine Angenieux 
 aangeni...@clinigrid.com wrote:

 Hi Arie,

 I don't know your usecase, but what I usually do when I need to stream
 data through wicket, I use a ResourceStreamRequestTarget along with an
 implementation of AbstractResourceStreamWriter.
 In your AbstractResourceStreamWriter you can onverride de getContentType()
 method as :

 @Override
 public String getContentType() {
return image/png;
 }

 and when you want to stream your content, just do :
 RequestCycle().get().setRequestTarget(
new ResourceStreamRequestTarget(new MyResourceStreamWriterImpl());

 Hope this helps !

 Happy new year ;)

 Antoine.

 Arie Fishler wrote:

  Hi,

 I am trying to stream an image to the response and setting the proper
 mime
 type to it prior to writing the stream to the output.

 The file exists and is written but the mime type of the response is not
 set
 according to what I expect it to be (image/png). Any idea?


 WebResponse response = (WebResponse)getRequestCycle().getResponse();

 *if* (imagePath != *null*) {

 *try* {

 File imageFile = *new* File(imagePath);

 FileInputStream inputStream = *new* FileInputStream(imageFile);

 response.setContentType(*DEFAULT_MIME_TYPE*);

 Streams.*copy*(inputStream, response.getOutputStream());

 *return*;

 }

 *catch* (FileNotFoundException e) {

 }

 *catch* (IOException e) {

 }

 }

 // 404

 response.getHttpServletResponse().setStatus(*NOT_FOUND*);


 --
 Antoine Angénieux
 Associé

 Clinigrid
 5, avenue Mozart
 75016 Paris, France
 +336 60 21 09 18
 aangeni...@clinigrid.com




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





Assigning an Action to an onClick handler

2008-12-18 Thread Arie Fishler
We are using the AnnotationsRoleAuthorizationStrategy class and place
@AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

We need finer-grained authorisation control - we have a class that has 3
AjaxLinks each with their own onClick() handler.  2 of the onClick()
handlers are accessible to everyone but 1 requires an authorised user.  We
have seen it's possible to define a
*org.apache.wicket.authorization.Action*class and allocate it to a
given role BUT how do we associate the given
*Action *to the given onClick() handler?

Many thanks
Arie


Re: Assigning an Action to an onClick handler

2008-12-18 Thread Arie Fishler
Basically we have no problem assigning logic to disable the link when
creating the page. What we want to achieve via the authorization strategy is
a redirect to the sign in page just the same as if a user has accessed a
page with no sufficient roles (so the user signs in and upon successful
signing in he is redirected back to the page he was supposed to get when
clicking initially)

Thanks,
Arie.

On Thu, Dec 18, 2008 at 4:56 PM, Heikki Uotinen 
heikki.uoti...@syncrontech.com wrote:

 Maybe something like

 MetaDataRoleAuthorizationStrategy.authorize(link3, Component.ENABLE,
 ADMIN);

 -Heikki

 -Original Message-
 From: Arie Fishler [mailto:arie@gmail.com]
 Sent: 18. joulukuuta 2008 16:08
 To: users@wicket.apache.org
 Subject: Assigning an Action to an onClick handler

  We are using the AnnotationsRoleAuthorizationStrategy class and place
 @AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

 We need finer-grained authorisation control - we have a class that has 3
 AjaxLinks each with their own onClick() handler.  2 of the onClick()
 handlers are accessible to everyone but 1 requires an authorised user.  We
 have seen it's possible to define a
 *org.apache.wicket.authorization.Action*class and allocate it to a
 given role BUT how do we associate the given
 *Action *to the given onClick() handler?

 Many thanks
 Arie

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




Wicket-spring-tomcat integration

2008-12-15 Thread Arie Fishler
Hi,

I am using wicket via tomcat integrated into spring using a filter with *

org*.*apache*.*wicket*.protocol.*http*.WicketFilter

The thing is that I want to map the wicket application to several url
patterns (to know which environment the user is coming from)



Is there a way to map the filter to several patterns? like the below which
does not work...

filter-mapping

filter-nameWicketFilter/filter-name

url-pattern/*a*/*/url-pattern

/filter-mapping

and

filter-mapping

filter-nameWicketFilter/filter-name

url-pattern/*b*/*/url-pattern

/filter-mapping


Redirecting with original query string

2008-12-14 Thread Arie Fishler
Hi,

In the authentication mechanism, there is apossibility to define a Sign In
page. when user has no sufficient permission he is automatically redirected
to that page.

Is it possible that the sign in page will have the original query string of
the the request?

Like having a sign in page with PageParameters or just ensuring that the
redirect to the sign in page will consist the original query string.

Thanks.


Re: Redirecting with original query string

2008-12-14 Thread Arie Fishler
Basically I do not find this class you mention.

I am using AuthenticatedWebApplication which is calling another (similar?)
class which is RestartResponseAtInterceptPageException.

This exception handles the redirectToInterceptPage method...which saves the
continuation URL and just redirects to the relevant page (in the
authnetication case this is the sign in page).
I did not find any indication that passes the query string parameters to the
sign in page.

Can you elaborate on this please?

Thanks,
Arie

On Sun, Dec 14, 2008 at 8:37 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 This is default behavior with at least wicket auth-roles. See
 RedirectToInterceptPageException

 Martijn

 On Sun, Dec 14, 2008 at 7:27 PM, Arie Fishler arie@gmail.com wrote:
  Hi,
 
  In the authentication mechanism, there is apossibility to define a Sign
 In
  page. when user has no sufficient permission he is automatically
 redirected
  to that page.
 
  Is it possible that the sign in page will have the original query string
 of
  the the request?
 
  Like having a sign in page with PageParameters or just ensuring that the
  redirect to the sign in page will consist the original query string.
 
  Thanks.
 



 --
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Redirecting with original query string

2008-12-14 Thread Arie Fishler
this is version 1.3.5 I am using

On Mon, Dec 15, 2008 at 9:46 AM, Arie Fishler arie@gmail.com wrote:

  Basically I do not find this class you mention.

 I am using AuthenticatedWebApplication which is calling another (similar?)
 class which is RestartResponseAtInterceptPageException.

 This exception handles the redirectToInterceptPage method...which saves the
 continuation URL and just redirects to the relevant page (in the
 authnetication case this is the sign in page).
 I did not find any indication that passes the query string parameters to
 the sign in page.

 Can you elaborate on this please?

 Thanks,
 Arie

   On Sun, Dec 14, 2008 at 8:37 PM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

 This is default behavior with at least wicket auth-roles. See
 RedirectToInterceptPageException

 Martijn

 On Sun, Dec 14, 2008 at 7:27 PM, Arie Fishler arie@gmail.com wrote:
  Hi,
 
  In the authentication mechanism, there is apossibility to define a Sign
 In
  page. when user has no sufficient permission he is automatically
 redirected
  to that page.
 
  Is it possible that the sign in page will have the original query string
 of
  the the request?
 
  Like having a sign in page with PageParameters or just ensuring that the
  redirect to the sign in page will consist the original query string.
 
  Thanks.
 



 --
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





Wicket-Spring Injection

2008-11-27 Thread Arie Fishler
Hi,

I have some injection related issues in my wicket application.

1. My session hold a bean (managed by the spring container) that is passed
to it on construction of the session. It is not a Serializable object (some
of the interfaces that this object is using are spring interfaces and not
serializable by themselves) and in any case I would not like this object to
be serialized by wicket.

This object is not injected directly to the session since it depends on some
parameters provided in the http request.

Will it be ok to plug into the session's deserializing method and get this
object not to be null?

2. My authentication uses a proprietary User  class that uses AOP with the
@Configurable annotation. After invalidating the session (user loggs out)
any other user trying to login seems to run into problems that are caused
from the fact that it seems AOP is not working anymore on this class and the
objects supposed to be injected into it are not injected anymore. When I
restart my wicket application (on tomcat) after clearing the tomcat saved
caches...all seems to be okuntil the next time. What might cause spring
to stop injecting the objects using AOP?

Thanks,
Arie


Warn that data on page modified mechanism

2008-10-08 Thread Arie Fishler
Hi,

I would like to consult on implementing a generic mechanism for checking
whether some data on a page modified before leaving that page.

The use case is:
- Page has some form fields or other controls
- User has entered some data to the form
- Before submitting the form user clicked on a link to leave the page (might
be a menu item or similar).

The required action will be:
A) Check if the new page the user is going to means no loss of data -
user can go back safely to his form data later on and this is considered a
valid move to another page
B) Checks if the new page cancels the form which means the user will lose
all his data. In this case we need to alert the user (modal window) that
moving to the new page will cause loss of data. He should approve this.
C) If he approves operation will continue. If he cancels he will go BACK to
the same page he just left with no loss of form data.

This looks like a need to use *redirectToInterceptPage* only that if the
user cancels...I want to go back to the LAST page. How do I retrieve
programatically the previous page the user has left and go back to it? I
also need the previous page to check if the transition is valid which
relates to action (A) above - in such a case no warning needs to be issued
to the user

Thanks,
Arie


Re: comcept of hirearchy

2008-10-08 Thread Arie Fishler
Seems to me like the hierarchy is ok.

What's missing from the code you provided is the id of the component you
defined as InboxMenuLabel(). Are you sure it was named inboxMenu?

Arie

   public InboxMenuContainer() {
   super(inbox);
   super.add(new InboxMenuLabel());
   super.add(new StorageInboxLink());
   super.add(new InventoryInboxLink());
   }


On Wed, Oct 8, 2008 at 7:34 PM, miro [EMAIL PROTECTED] wrote:



  // My page
  public Index() {
super();
add(getContent());
}

protected Component   getContent(){
RicolaGroupbox  ricolaGroupbox= new
 RicolaGroupbox(csrHome,ESP);
ricolaGroupbox.add(new InboxMenuContainer());

return ricolaGroupbox;
}


private class InboxMenuContainer  extends  CSRRicolaContainer {

public InboxMenuContainer() {
super(inbox);
super.add(new InboxMenuLabel());
super.add(new StorageInboxLink());
super.add(new InventoryInboxLink());
}
}


 ricolaGroupbox   has a child component InboxMenuContainer, this has three
 childernInboxLabel, StorageInboxLink and InventoryInboxLink , to
 describe this html

div wicket:id=csrHome
div  wicket id=inbox
h3label
 wicket:id=inboxMenu/label/h3
UL
LI # Storage Inbox
 /LI
LI # Inventory
 Inbox /LI
/UL
/div
   /div


 I am getting this error

 ERROR RequestCycle - Unable to find component with id 'inboxMenu' in
 [MarkupContainer [Component id = csrHome, page =
 com.uprr.app.csr.webapp.pages.Index, path = 0:csrHome.RicolaGroupbox,
 isVisible = true, isVersioned = true]]. This means that you declared
 wicket:id=inboxMenu in your markup, but that you either did not add the
 component to your page at all, or that the hierarchy does not match.


 Please explain why   inboxMenu is not found and where in hirearchy it
 belongs .



 --
 View this message in context:
 http://www.nabble.com/comcept-of-hirearchy-tp19883682p19883682.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: comcept of hirearchy

2008-10-08 Thread Arie Fishler
Label should be in a span tag...not label?

On Wed, Oct 8, 2008 at 7:55 PM, miro [EMAIL PROTECTED] wrote:


 yes..
 Here is the code

private class InboxMenuLabel  extends  Label {
public InboxMenuLabel() {
super(inboxMenu,InboxMenu);
 }
}


 Arie Fishler wrote:
 
  Seems to me like the hierarchy is ok.
 
  What's missing from the code you provided is the id of the component you
  defined as InboxMenuLabel(). Are you sure it was named inboxMenu?
 
  Arie
 
 public InboxMenuContainer() {
 super(inbox);
 super.add(new InboxMenuLabel());
 super.add(new StorageInboxLink());
 super.add(new InventoryInboxLink());
 }
 
 
  On Wed, Oct 8, 2008 at 7:34 PM, miro [EMAIL PROTECTED] wrote:
 
 
 
   // My page
   public Index() {
 super();
 add(getContent());
 }
 
 protected Component   getContent(){
 RicolaGroupbox  ricolaGroupbox= new
  RicolaGroupbox(csrHome,ESP);
 ricolaGroupbox.add(new InboxMenuContainer());
 
 return ricolaGroupbox;
 }
 
 
 private class InboxMenuContainer  extends  CSRRicolaContainer {
 
 public InboxMenuContainer() {
 super(inbox);
 super.add(new InboxMenuLabel());
 super.add(new StorageInboxLink());
 super.add(new InventoryInboxLink());
 }
 }
 
 
  ricolaGroupbox   has a child component InboxMenuContainer, this has
 three
  childernInboxLabel, StorageInboxLink and InventoryInboxLink , to
  describe this html
 
 div wicket:id=csrHome
 div  wicket id=inbox
 h3label
  wicket:id=inboxMenu/label/h3
 UL
 LI # Storage
  Inbox
  /LI
 LI # Inventory
  Inbox /LI
 /UL
 /div
/div
 
 
  I am getting this error
 
  ERROR RequestCycle - Unable to find component with id 'inboxMenu' in
  [MarkupContainer [Component id = csrHome, page =
  com.uprr.app.csr.webapp.pages.Index, path = 0:csrHome.RicolaGroupbox,
  isVisible = true, isVersioned = true]]. This means that you declared
  wicket:id=inboxMenu in your markup, but that you either did not add the
  component to your page at all, or that the hierarchy does not match.
 
 
  Please explain why   inboxMenu is not found and where in hirearchy it
  belongs .
 
 
 
  --
  View this message in context:
  http://www.nabble.com/comcept-of-hirearchy-tp19883682p19883682.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/comcept-of-hirearchy-tp19883682p19884012.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]