Login page hangs after custom page-expired error page

2011-08-25 Thread Scott Reed
A created my own PageExpiredErrorPage. There is a button that is 
supposed to take the user to the login page so they can log in (similar 
to the button on the default page-expired error page). /

/
When the user first opens the web site, they see a log in page with URL
/http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1/. 



*Default PageExpiredErrorPage behavior*
After there is a page timeout and the /default /page-expired error page 
opens, the "Return to home page" button on the default page expired 
error page reports URL /

http://mydomain.com/rems/wicket//.

When the user selects that button they go to the login page with address /

http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?0

/*and it goes to the home page as expected/desired when the user logs in.*/

/*My custom page-expired error page behavior*/
/After there is a page timeout and the /custom /page-expired error page 
opens, the "Return to home page" button on the default page expired 
error page reports URL /

//http://mydomain.com/rems/wicket//

When the user selects that button they go to the login page with address
/
http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.REMSPageExpiredPage#../.. 


/*and it hangs when the user logs in*/./

*custom page-expired error page HTML
*

   
   The page you requested has expired.
   Return to home page
   

*
Java:
*

   public class MyPageExpiredPage extends WebPage
   {
  public MyPageExpiredPage()
  {
super();

// link for home page btn
// WebPage#homePageLink returns a BookmarkablePageLink
add( homePageLink("homeLink"));
  }
   }

I would very much appreciate any assistance with this.
  Scott



Re: Problem with Android and ajax?

2011-08-25 Thread Pedro Santos
Hi Palmer, it is possible related to
https://issues.apache.org/jira/browse/WICKET-3820 , upgrade to 1.4.18

2011/8/25 PALMER, THOMAS C (ATTCORP) 

> We have a problem with a mobile site on an Android.  Basically, we're
> updating select options via ajax with one option that should be selected
> after the update completes.  On an iPhone this works fine and the selected
> option shows in the list as selected.  On Android we get nothing in the
> dropdown at all until the page is refreshed (reloading the complete state).
>
> The Android user agent we're seeing ("Mozilla/5.0 (Linux; U; Android
> 2.1-update1; en-us; HTC-A6366/1.0 Build/ERE27) AppleWebKit/530.17 (KHTML,
> like Gecko) Version/4.0 Mobile Safari/530.17") will be treated as Safari
> based on the browser recognition code in wicket-event.js.  It appears the
> code in wicket-ajax.js in Wicket.replaceOuterHtmlSafari isn't doing the
> right thing for Android, despite them both being Webkit based.
>
> Any thoughts on a way to address this?  This is wicket 1.4.14.
>
> Thanks much -
>
> Tom Palmer
> Director, Strategic Technology Services
> AT&T Hosting & Application Services | 2000 Perimeter Park Drive, Suite 140
> | Morrisville, NC 27560
> Office: +1 (919) 388-5937 | Mobile: +1 (919) 627-5431
> thomas.pal...@att.com
>
> Confidentiality Notice and Disclaimer: This e-mail transmission may contain
> confidential and/or proprietary information of AT&T that is intended only
> for the individual or entity named in the e-mail address. If you are not the
> intended recipient, you are hereby notified that any disclosure, copying,
> distribution, or reliance upon the contents of this e-mail is strictly
> prohibited. If you have received this e-mail transmission in error, please
> reply to the sender, so that AT&T can arrange for proper delivery, and then
> please delete the message from your inbox. Thank you.
>
>


-- 
Pedro Henrique Oliveira dos Santos


Re: nested table

2011-08-25 Thread Pedro Santos
Hi, you can nestle repeater components like:
new ListView("id", listOfClass2){
   onPopulate( item){
  item.add( ... );
  item.add(new ListView("id", listOfClass1OfThisClass2){
  onPopulate( innerItem ){
innerItem.add( ... );
  }
  });
  }
}

2011/8/25 preben 

> Hi
>
> My wicket experience is quit rusty so forgive me if this is a simple
> question, but I have not been able to find any example of this.
>
> I want to render at table with a nested table in one of the cells.
>
> eg.
>
>
>
> MyClass1
>   String attribute1;
>   String attribute2;
>
> MyClass2
>   String attribute1
>   String attribute2
>   List listOfMyClass1
>
>
> MyListToRender = List
>
>
> How would i render MyListToRender using repeaters with a nested List ?
> Any example would be helpfull.
>
> Thanks.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/nested-table-tp3769047p3769047.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


Problem with Android and ajax?

2011-08-25 Thread PALMER, THOMAS C (ATTCORP)
We have a problem with a mobile site on an Android.  Basically, we're updating 
select options via ajax with one option that should be selected after the 
update completes.  On an iPhone this works fine and the selected option shows 
in the list as selected.  On Android we get nothing in the dropdown at all 
until the page is refreshed (reloading the complete state).

The Android user agent we're seeing ("Mozilla/5.0 (Linux; U; Android 
2.1-update1; en-us; HTC-A6366/1.0 Build/ERE27) AppleWebKit/530.17 (KHTML, like 
Gecko) Version/4.0 Mobile Safari/530.17") will be treated as Safari based on 
the browser recognition code in wicket-event.js.  It appears the code in 
wicket-ajax.js in Wicket.replaceOuterHtmlSafari isn't doing the right thing for 
Android, despite them both being Webkit based.

Any thoughts on a way to address this?  This is wicket 1.4.14.

Thanks much -

Tom Palmer
Director, Strategic Technology Services
AT&T Hosting & Application Services | 2000 Perimeter Park Drive, Suite 140 | 
Morrisville, NC 27560
Office: +1 (919) 388-5937 | Mobile: +1 (919) 627-5431
thomas.pal...@att.com

Confidentiality Notice and Disclaimer: This e-mail transmission may contain 
confidential and/or proprietary information of AT&T that is intended only for 
the individual or entity named in the e-mail address. If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or reliance upon the contents of this e-mail is strictly 
prohibited. If you have received this e-mail transmission in error, please 
reply to the sender, so that AT&T can arrange for proper delivery, and then 
please delete the message from your inbox. Thank you.



nested table

2011-08-25 Thread preben
Hi 

My wicket experience is quit rusty so forgive me if this is a simple
question, but I have not been able to find any example of this. 

I want to render at table with a nested table in one of the cells. 

eg. 



MyClass1 
   String attribute1; 
   String attribute2; 

MyClass2 
   String attribute1 
   String attribute2 
   List listOfMyClass1 


MyListToRender = List


How would i render MyListToRender using repeaters with a nested List ? 
Any example would be helpfull. 

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/nested-table-tp3769047p3769047.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket include in test

2011-08-25 Thread Alexander Gubin

Igor,

thanks a lot!

I was thinking of putting some check whether it's a test code into 
production code, but that idea seems a bit whacky :)


Will play with MockServletRequest...

thanks again

Alexander


On 08/25/2011 10:48 AM, Igor Vaynberg wrote:

the include component tries to construct a url from pieces in your
servlet request such as servletrequest.getprotocol,
servletrequest.getservername, etc

what you have to do is trick it into constructing a url that looks
like this: file:///some/dir/static/footer.html

you have to play around with setters on mockservletrequest and looking
at the source of Include component to see how it uses them.

if you cannot get it to do what you want then this component may not
work in the test environment. as the last resort you can toggle its
visibility if its running in a testcase.

-igor


On Wed, Aug 24, 2011 at 9:06 AM, Alexander Gubin  wrote:

I saw similar post about 2 years ago, but seems that the question was
left unaswered.

http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include

I have a page with Include, works fine, however when testing I get:

org.apache.wicket.util.resource.ResourceStreamNotFoundException:
Resource http://localhost/BasePageTestCase$1/static/footer.html could
not be opened


Maurice Marrick mentioned setting correct path to WicketTester, so it
can resolve static resources. How would one do that?

I tried "/" or "/static" with no luck - same error

please advise

Sincerely,

Alexander

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




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




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



Re: wicket include in test

2011-08-25 Thread Igor Vaynberg
the include component tries to construct a url from pieces in your
servlet request such as servletrequest.getprotocol,
servletrequest.getservername, etc

what you have to do is trick it into constructing a url that looks
like this: file:///some/dir/static/footer.html

you have to play around with setters on mockservletrequest and looking
at the source of Include component to see how it uses them.

if you cannot get it to do what you want then this component may not
work in the test environment. as the last resort you can toggle its
visibility if its running in a testcase.

-igor


On Wed, Aug 24, 2011 at 9:06 AM, Alexander Gubin  wrote:
> I saw similar post about 2 years ago, but seems that the question was
> left unaswered.
>
> http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include
>
> I have a page with Include, works fine, however when testing I get:
>
> org.apache.wicket.util.resource.ResourceStreamNotFoundException:
> Resource http://localhost/BasePageTestCase$1/static/footer.html could
> not be opened
>
>
> Maurice Marrick mentioned setting correct path to WicketTester, so it
> can resolve static resources. How would one do that?
>
> I tried "/" or "/static" with no luck - same error
>
> please advise
>
> Sincerely,
>
> Alexander
>
> -
> 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: IAjaxIndicatorAware and history.back()

2011-08-25 Thread Igor Vaynberg
look for errors in the ajax console.

igor


On Thu, Aug 25, 2011 at 7:17 AM, Mihai Toma  wrote:
> Hi,
>
>
>
> I have a AjaxSubmitLink in a form with an AjaxFormSubmitIndicator behavior
> (AjaxFormSubmitIndicator class extends AjaxFormSubmitBehavior and implements
> IAjaxIndicatorAware, used to show a loading image while saving).
>
>
>
> In the method onSubmit of my AjaxFormSubmitIndicator I save my data from
> form and then I make a redirect to previews page using
> target.appendJavascript("history.back()");
>
>
>
> The problem Is that this did not work.
>
>
>
> If I don't add AjaxFormSubmitIndicator on my submit button, the redirect
> works fine.
>
>
>
> Any idea on how can i make this working?
>
>
>
> Thanks in advance!
>
> Mihai
>
>

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



Re: Problem with setCacheable(false) (No-Cache Header in WebResource)

2011-08-25 Thread Martin Grigorov
On Wed, Aug 24, 2011 at 10:03 PM, eugenebalt  wrote:
> Guys, what exactly happens when I do setCacheable(false) on a WebResource?
>
> Does that mean the downloaded file isn't cached locally? That can't be true,
> because I am getting a file called "report[1].xls" where the [1] indicates
> that it was saved in my Temp Internet Files folder, even when I do
> setCacheable(false).
the browser have to save it locally somewhere
to see whether it is cached or not just put a breakpoint in your code
and see whether there is a hit
>
> So what's the functionality of this command, with respect to files getting
> stored in the Temp Internet folder?
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Problem-with-setCacheable-false-No-Cache-Header-in-WebResource-tp3765955p3766312.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



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

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



Re: Problem with setCacheable(false) (No-Cache Header in WebResource)

2011-08-25 Thread eugenebalt
Hi Angel, thanks for the reply. 

But it looks like this is not making it non-cacheable. It is cacheable, I
get the Excel prompt about reading the local file.

My new code with your suggestion:
--

WebResource export = new WebResource() 
{
@Override
public IResourceStream getResourceStream() {
ByteArrayResource bar = new 
ByteArrayResource("application/vnd.ms-excel",
createExcelBytes());
return bar.getResourceStream();
}

@Override
protected void setHeaders(WebResponse response) {
super.setHeaders(response);
response.setAttachmentHeader("report.xls");
*response.setHeader("Cache-Control", "private"); *
}
};
// COMMENTED OUT setCacheable(false)
//export.setCacheable(false);

ResourceLink exportLink = new ResourceLink("exportLink", export);   


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-setCacheable-false-No-Cache-Header-in-WebResource-tp3765955p3768583.html
Sent from the Users forum mailing list archive at Nabble.com.

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



RE: IAjaxIndicatorAware and history.back()

2011-08-25 Thread Mihai Toma
I forgot to say that I use wicket 1.4.15.

-Original Message-
From: Mihai Toma [mailto:mihai.t...@asf.ro] 
Sent: Thursday, August 25, 2011 5:17 PM
To: users@wicket.apache.org
Subject: IAjaxIndicatorAware and history.back()

Hi,

 

I have a AjaxSubmitLink in a form with an AjaxFormSubmitIndicator behavior
(AjaxFormSubmitIndicator class extends AjaxFormSubmitBehavior and implements
IAjaxIndicatorAware, used to show a loading image while saving).

 

In the method onSubmit of my AjaxFormSubmitIndicator I save my data from
form and then I make a redirect to previews page using
target.appendJavascript("history.back()");

 

The problem Is that this did not work.

 

If I don't add AjaxFormSubmitIndicator on my submit button, the redirect
works fine.

 

Any idea on how can i make this working?

 

Thanks in advance!

Mihai



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



IAjaxIndicatorAware and history.back()

2011-08-25 Thread Mihai Toma
Hi,

 

I have a AjaxSubmitLink in a form with an AjaxFormSubmitIndicator behavior
(AjaxFormSubmitIndicator class extends AjaxFormSubmitBehavior and implements
IAjaxIndicatorAware, used to show a loading image while saving).

 

In the method onSubmit of my AjaxFormSubmitIndicator I save my data from
form and then I make a redirect to previews page using
target.appendJavascript("history.back()");

 

The problem Is that this did not work.

 

If I don't add AjaxFormSubmitIndicator on my submit button, the redirect
works fine.

 

Any idea on how can i make this working?

 

Thanks in advance!

Mihai



Re: Ajax-refreshing parent page from modal window with Page content

2011-08-25 Thread lunchbox
Alright,

It worked for me using nested Panel-based modal windows. I had a problem
with nested forms inside the modal windows, and one of these forms required
setting it multipart. Also, I needed to move the modal window divs inside
the forms for all nested modal windows and forms.

Hopefully this will help someone :)

Again, thanks for pointing me in the right direction Martin!

Thanks,
Lunchbox

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-refreshing-parent-page-from-modal-window-with-Page-content-tp3765286p3768298.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: FeedbackPanel rendering

2011-08-25 Thread Andrea Del Bene
I've made a quickstart project trying to reproduce your code, but I 
didn't get your problem.

The project is based on 1.4.18 and has just one homepage.

Markup code:

xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; 
>


Wicket Quickstart Archetype Homepage

















Java code:


public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;
private FeedbackPanel feedbackPanel;

public HomePage(final PageParameters parameters) {
WebMarkupContainer panel1 = new WebMarkupContainer("panel1");
WebMarkupContainer panel2 = new WebMarkupContainer("panel2");

Form form = new Form("form");
form.setOutputMarkupId(true);

AjaxButton subBut = new AjaxButton("subBut") {
@Override
protected void onError(AjaxRequestTarget target, 
Form form) {
target.addComponent(feedbackPanel); // it renders, 
no problem

target.addComponent(form);
}

@Override
protected void onSubmit(AjaxRequestTarget target, 
Form form) {

info("Saved"); // just an info message
target.addComponent(form);
target.addComponent(feedbackPanel); // no way

}
};

panel1.add(form);
form.add(subBut);

panel2.add(feedbackPanel = new FeedbackPanel("feedBack"));
feedbackPanel.setOutputMarkupId(true);
add(panel1);
add(panel2);
}
}


Hi Andre; Thanks for your answer.


I didn't override form's onSubmit method.





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



Re: Book covering 1.5

2011-08-25 Thread Andrea Del Bene

Hi,

try here https://cwiki.apache.org/WICKET/migration-to-wicket-15.html

I remember from a few years ago that 1.5 is going to be a non trivial change in 
architecture. Are there any docs available that explain how to migrate or what 
the differences are? Actually, now that I type this I remember Igor saying that 
migration may not be advised..

Douglas

On Aug 24, 2011, at 11:34 AM, Fabian Schwarzer wrote:






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



Re: Book covering 1.5

2011-08-25 Thread Martijn Dashorst
On Thu, Aug 25, 2011 at 9:15 AM, Douglas Ferguson  wrote:
> I remember from a few years ago that 1.5 is going to be a non trivial change 
> in architecture. Are there any
> docs available that explain how to migrate or what the differences are?

http://lmgtfy.com/?q=wicket+1.5+migration&l=1

> Actually, now that I type this I remember Igor saying that migration may not 
> be advised..

That would be while 1.5 is in development. Now that we are near 1.5
final, migration will be advised as we will start development for 1.6
soonish say when 1.5.1 or 1.5.2 is out, and then stop active 1.4
support (we can only actively support so many versions).

Martijn

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



Re: Book covering 1.5

2011-08-25 Thread Douglas Ferguson
I remember from a few years ago that 1.5 is going to be a non trivial change in 
architecture. Are there any docs available that explain how to migrate or what 
the differences are? Actually, now that I type this I remember Igor saying that 
migration may not be advised..

Douglas

On Aug 24, 2011, at 11:34 AM, Fabian Schwarzer wrote:

> Hi!
> 
> Does anyone know if there is anyone out there writing a book covering the 
> upcoming Wicket release 1.5?
> Or is e.g. Wicket in Action planing a new edition?
> 
> Thanks,
> Fabian
> -
> 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: DOUBT & Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Thanks a lot Andrea Del Bene. U gave answers for most of ma queries. I was
quite clarified in it. thanks again

On Thu, Aug 25, 2011 at 3:06 PM, Andrea Del Bene wrote:

> Hi Shunmuga,
>
> based on my experience:
>
>> 1) What are the advantages of wicket over Struts, Springs, Tapestry,
>>
>> Stripes?
>>
>> 2) What is the main advantages of Wicket?
>>
> The frameworks you have listed are based on MVC frameworks. Wicket is a
> component oriented framework, like GWT or Vaadin.
> This kind of frameworks  are pretty similar to desktop GUI frameworks like
> Swing, meaning that they and offer an object oriented abstraction of web
> entities like pages, forms, input components and so on.  The difference
> between Wicket and MVC frameworks is well explained here:
>
> https://cwiki.apache.org/**WICKET/#Index-AboutWicket
>
>
> 3) Where the wicket can be used in real time scenario?
>>
>
> 4) For which database it suits gud?
>>
> Wicket is database-agnostic. You can integrate it with your favorite ORM o
> JDBC framework.
>
>  5) Which framework is best on performance view?
>>
>> 6) Why wicket has to be used?
>>
>> Wicket is ideal for pages with a complex behavior ( usually pages with
> some AJAX) and when you have to manage a lot of user data
>
>
> Now i'm developing a web application project for feeding data&  generating
>> report for it. For feeding data, i have to give login for every users.
>> according  a scenario at a time multiple concurrent users ll feed data.
>> For
>> this which java technology ll be more effective, powerful, efficient?
>> which
>> framework s best for this?
>>
>> another scenario is i have to ensure that one user can login at only one
>> system, he should login at another system on the same time. tat is one
>> user
>> can have one sessin at one system at a time. he can login to another to
>> another system at a same time if he tries means an error should be thrown.
>> for this vat i've to do? can u offer some sample code?
>>
>> Where EJB can be used? What is the difference in using EJB over frameworks
>> like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
>> frameworks with EJB?
>>
>
> Yes, you can use these framework with EJB specification. Obviously if you
> use Spring you are likely to use the whole framework instead of EJB
>
> .
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: DOUBT & Questions Abt Wicket

2011-08-25 Thread Andrea Del Bene

Hi Shunmuga,

based on my experience:

1) What are the advantages of wicket over Struts, Springs, Tapestry,
Stripes?

2) What is the main advantages of Wicket?
The frameworks you have listed are based on MVC frameworks. Wicket is a 
component oriented framework, like GWT or Vaadin.
This kind of frameworks  are pretty similar to desktop GUI frameworks 
like Swing, meaning that they and offer an object oriented abstraction 
of web entities like pages, forms, input components and so on.  The 
difference between Wicket and MVC frameworks is well explained here:


https://cwiki.apache.org/WICKET/#Index-AboutWicket


3) Where the wicket can be used in real time scenario?



4) For which database it suits gud?
Wicket is database-agnostic. You can integrate it with your favorite ORM 
o JDBC framework.



5) Which framework is best on performance view?

6) Why wicket has to be used?

Wicket is ideal for pages with a complex behavior ( usually pages with 
some AJAX) and when you have to manage a lot of user data



Now i'm developing a web application project for feeding data&  generating
report for it. For feeding data, i have to give login for every users.
according  a scenario at a time multiple concurrent users ll feed data. For
this which java technology ll be more effective, powerful, efficient? which
framework s best for this?

another scenario is i have to ensure that one user can login at only one
system, he should login at another system on the same time. tat is one user
can have one sessin at one system at a time. he can login to another to
another system at a same time if he tries means an error should be thrown.
for this vat i've to do? can u offer some sample code?

Where EJB can be used? What is the difference in using EJB over frameworks
like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
frameworks with EJB?


Yes, you can use these framework with EJB specification. Obviously if 
you use Spring you are likely to use the whole framework instead of EJB

.

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



Re: DOUBT & Questions Abt Wicket

2011-08-25 Thread Andrea Del Bene

Hi Shunmuga,

based on my experience:

1) What are the advantages of wicket over Struts, Springs, Tapestry,
Stripes?

2) What is the main advantages of Wicket?
The frameworks you have listed are based on MVC frameworks. Wicket is a 
component oriented framework, like GWT or Vaadin.
This kind of frameworks  are pretty similar to desktop GUI frameworks 
like Swing, meaning that they and offer an object oriented abstraction 
of web entities like pages, forms, input components and so on.  The 
difference between Wicket and MVC frameworks is well explanned here:



3) Where the wicket can be used in real time scenario?



4) For which database it suits gud?
Wicket is database-agnostic. You can integrate it with your favorite ORM 
o JDBC framework.

5) Which framework is best on performance view?

6) Why wicket has to be used?


Wicket

Now i'm developing a web application project for feeding data&  generating
report for it. For feeding data, i have to give login for every users.
according  a scenario at a time multiple concurrent users ll feed data. For
this which java technology ll be more effective, powerful, efficient? which
framework s best for this?

another scenario is i have to ensure that one user can login at only one
system, he should login at another system on the same time. tat is one user
can have one sessin at one system at a time. he can login to another to
another system at a same time if he tries means an error should be thrown.
for this vat i've to do? can u offer some sample code?

Where EJB can be used? What is the difference in using EJB over frameworks
like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
frameworks with EJB?



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



Re: FeedbackPanel rendering

2011-08-25 Thread Lurtz Nazgul
Hi Andre; Thanks for your answer. 


I didn't override form's onSubmit method.




From: Andrea Del Bene 
To: users@wicket.apache.org
Sent: Thursday, August 25, 2011 11:42 AM
Subject: Re: FeedbackPanel rendering

Hi Lurtz,

what does your form do in its onSubmit method? Have you overriden it?
> Hi all;
>
>
> I have two panels.
>
>
> Panel one have the standart form with one Label + TextField (required field) 
> + AjaxButton.
>
> Panel two have one FeedbackPanel.
>
>
> Ok, here is the the problem :
>
>
> I can reach Panel Two' FeedbackPanel from Panel One.
>
>
> So in AjaxButton
>
>
>     AjaxButton submit = new AjaxButton("submit") {
>                  @Override
>                  protected void onError(AjaxRequestTarget target, Form  
>form) {
>                      FeedbackPanel feedbackPanel = getFeedbackPanel(); // 
>gets FeedBackPanel from Panel Two
>                      target.addComponent(feedbackPanel); // it renders, no 
>problem
>                      target.addComponent(form);
>                  }
>
>                  @Override
>                  protected void onSubmit(AjaxRequestTarget target, Form  
>form) {
>                      FeedbackPanel feedbackPanel = getFeedbackPanel(); // 
>gets FeedBackPanel from Panel Two
>                     info("Saved"); // just an info message
>                      target.addComponent(form);
>                      target.addComponent(feedbackPanel); // no way
>                  
>                  }
>              };
> When Validation error occurs (onError)  Panel's two FeedbackPanel renders and 
> shows the error. Great !
>
>
> But when there is no error (onSubmit)Panel's two FeedbackPanel doesn't render 
> and it gives
>
>
> component-targetted feedback message was left unrendered. This could be 
> because you are missing a FeedbackPanel on the page.  Message: 
> [FeedbackMessage message = "Saved", reporter = go, level = INFO]
>
>
> Any suggestions ?
>
> Regards.


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

Re: FeedbackPanel rendering

2011-08-25 Thread Andrea Del Bene

Hi Lurtz,

what does your form do in its onSubmit method? Have you overriden it?

Hi all;


I have two panels.


Panel one have the standart form with one Label + TextField (required field) + 
AjaxButton.

Panel two have one FeedbackPanel.


Ok, here is the the problem :


I can reach Panel Two' FeedbackPanel from Panel One.


So in AjaxButton


AjaxButton submit = new AjaxButton("submit") {
 @Override
 protected void onError(AjaxRequestTarget target, Form  
form) {
 FeedbackPanel feedbackPanel = getFeedbackPanel(); // gets 
FeedBackPanel from Panel Two
 target.addComponent(feedbackPanel); // it renders, no 
problem
 target.addComponent(form);
 }

 @Override
 protected void onSubmit(AjaxRequestTarget target, Form  
form) {
 FeedbackPanel feedbackPanel = getFeedbackPanel(); // gets 
FeedBackPanel from Panel Two
info("Saved"); // just an info message
 target.addComponent(form);
 target.addComponent(feedbackPanel); // no way
  
 }

 };
When Validation error occurs (onError)  Panel's two FeedbackPanel renders and 
shows the error. Great !


But when there is no error (onSubmit)Panel's two FeedbackPanel doesn't render 
and it gives


component-targetted feedback message was left unrendered. This could be because you are 
missing a FeedbackPanel on the page.  Message: [FeedbackMessage message = 
"Saved", reporter = go, level = INFO]


Any suggestions ?

Regards.



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



Re: DOUBT & Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Thanks. I ll look into it

On 8/25/11, Josh Kamau  wrote:
> Hi there,
>
> Please go to www.stackoverflow.com and you will see many such questions.
> Just search for wicket over there.
>
> Josh.
>
> On Thu, Aug 25, 2011 at 10:08 AM, Shunmuga Raj
> wrote:
>
>> Hi All,
>>
>>  I was a beginner to wicket. I have some doubts and questions
>> abt wicket.
>>
>> Questions:
>> 1) What are the advantages of wicket over Struts, Springs, Tapestry,
>> Stripes?
>>
>> 2) What is the main advantages of Wicket?
>>
>> 3) Where the wicket can be used in real time scenario?
>>
>> 4) For which database it suits gud?
>>
>> 5) Which framework is best on performance view?
>>
>> 6) Why wicket has to be used?
>>
>> Doubts:
>>
>> Now i'm developing a web application project for feeding data & generating
>> report for it. For feeding data, i have to give login for every users.
>> according  a scenario at a time multiple concurrent users ll feed data.
>> For
>> this which java technology ll be more effective, powerful, efficient?
>> which
>> framework s best for this?
>>
>> another scenario is i have to ensure that one user can login at only one
>> system, he should login at another system on the same time. tat is one
>> user
>> can have one sessin at one system at a time. he can login to another to
>> another system at a same time if he tries means an error should be thrown.
>> for this vat i've to do? can u offer some sample code?
>>
>> Where EJB can be used? What is the difference in using EJB over frameworks
>> like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
>> frameworks with EJB?
>>
>> which one ll be more faster in execution?
>>
>>
>> Waiting for ur favorable reply/
>>
>>
>>
>> Thanking you,
>> With regards,
>> Shunmuga Raj.P
>>
>

-- 
Sent from my mobile device

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



Re: DOUBT & Questions Abt Wicket

2011-08-25 Thread Josh Kamau
Hi there,

Please go to www.stackoverflow.com and you will see many such questions.
Just search for wicket over there.

Josh.

On Thu, Aug 25, 2011 at 10:08 AM, Shunmuga Raj wrote:

> Hi All,
>
>  I was a beginner to wicket. I have some doubts and questions
> abt wicket.
>
> Questions:
> 1) What are the advantages of wicket over Struts, Springs, Tapestry,
> Stripes?
>
> 2) What is the main advantages of Wicket?
>
> 3) Where the wicket can be used in real time scenario?
>
> 4) For which database it suits gud?
>
> 5) Which framework is best on performance view?
>
> 6) Why wicket has to be used?
>
> Doubts:
>
> Now i'm developing a web application project for feeding data & generating
> report for it. For feeding data, i have to give login for every users.
> according  a scenario at a time multiple concurrent users ll feed data. For
> this which java technology ll be more effective, powerful, efficient? which
> framework s best for this?
>
> another scenario is i have to ensure that one user can login at only one
> system, he should login at another system on the same time. tat is one user
> can have one sessin at one system at a time. he can login to another to
> another system at a same time if he tries means an error should be thrown.
> for this vat i've to do? can u offer some sample code?
>
> Where EJB can be used? What is the difference in using EJB over frameworks
> like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
> frameworks with EJB?
>
> which one ll be more faster in execution?
>
>
> Waiting for ur favorable reply/
>
>
>
> Thanking you,
> With regards,
> Shunmuga Raj.P
>


Re: DOUBT & Questions Abt Wicket

2011-08-25 Thread Martin Grigorov
there are no precise answers to these questions.
for some apps Wicket is better, for other it is not

better search in mail archives and StackOverflow

On Thu, Aug 25, 2011 at 10:08 AM, Shunmuga Raj  wrote:
> Hi All,
>
>              I was a beginner to wicket. I have some doubts and questions
> abt wicket.
>
> Questions:
> 1) What are the advantages of wicket over Struts, Springs, Tapestry,
> Stripes?
>
> 2) What is the main advantages of Wicket?
Object oriented programming in Java, easy to test your app
>
> 3) Where the wicket can be used in real time scenario?
web development.
don't use it for embedded devices
>
> 4) For which database it suits gud?
Any
>
> 5) Which framework is best on performance view?
it depends on the use case
>
> 6) Why wicket has to be used?
you have to decide whether you like it or not. if you are more
productive with another technology/framework then use it
>
> Doubts:
>
> Now i'm developing a web application project for feeding data & generating
> report for it. For feeding data, i have to give login for every users.
> according  a scenario at a time multiple concurrent users ll feed data. For
> this which java technology ll be more effective, powerful, efficient? which
> framework s best for this?
>
> another scenario is i have to ensure that one user can login at only one
> system, he should login at another system on the same time. tat is one user
> can have one sessin at one system at a time. he can login to another to
> another system at a same time if he tries means an error should be thrown.
> for this vat i've to do? can u offer some sample code?
>
> Where EJB can be used? What is the difference in using EJB over frameworks
> like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
> frameworks with EJB?
Yes. Better read more what is EJB and then you'll see that there is no
overlap between Wicket and EJB.
>
> which one ll be more faster in execution?
it depends on many factors but mostly on your own code
>
>
> Waiting for ur favorable reply/
>
>
>
> Thanking you,
> With regards,
> Shunmuga Raj.P
>



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

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



DOUBT & Questions Abt Wicket

2011-08-25 Thread Shunmuga Raj
Hi All,

  I was a beginner to wicket. I have some doubts and questions
abt wicket.

Questions:
1) What are the advantages of wicket over Struts, Springs, Tapestry,
Stripes?

2) What is the main advantages of Wicket?

3) Where the wicket can be used in real time scenario?

4) For which database it suits gud?

5) Which framework is best on performance view?

6) Why wicket has to be used?

Doubts:

Now i'm developing a web application project for feeding data & generating
report for it. For feeding data, i have to give login for every users.
according  a scenario at a time multiple concurrent users ll feed data. For
this which java technology ll be more effective, powerful, efficient? which
framework s best for this?

another scenario is i have to ensure that one user can login at only one
system, he should login at another system on the same time. tat is one user
can have one sessin at one system at a time. he can login to another to
another system at a same time if he tries means an error should be thrown.
for this vat i've to do? can u offer some sample code?

Where EJB can be used? What is the difference in using EJB over frameworks
like Struts, Spring, Wicket, Tapestry, Stripes? Is it possible to use
frameworks with EJB?

which one ll be more faster in execution?


Waiting for ur favorable reply/



Thanking you,
With regards,
Shunmuga Raj.P