wicket + sso (jCIFS)

2008-10-16 Thread lienok

Hi,

I have a follow problem. I would like to use jCIFS authetication with
wicket. 
I have all necessary configuration in web.xml. 
filter-mapping
filter-nameWicketApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter
filter-nameNTLMFilter/filter-name
filter-classjcifs.http.NtlmHttpFilter/filter-class
init-param
param-namejcifs.http.domainController/param-name
param-value192.168.0.1/param-value
/init-param
/filter
filter-mapping
filter-nameNTLMFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping


I have done jCIFS in JSP, and it's working. So web.xml should be for sure
good. However I encountered problem with following that: user is null.
However host and port are as it is expected. 

HttpServletRequest request =
((WebRequest)getRequest()).getHttpServletRequest(); 
   
String user = (String) request .getRemoteUser();
String host = (String) request.getRemoteHost();
String port = Integer.toString(request.getRemotePort());


Any ideas pls? 
-- 
View this message in context: 
http://www.nabble.com/wicket-%2B-sso-%28jCIFS%29-tp20014589p20014589.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wicket + sso (jCIFS)

2008-10-16 Thread lienok

Hi Jan,

thank you a lot, not just it's working but I understand to filters a bit
more =)

kind regards,
lenka


Jan Kriesten wrote:
 
 
 Hi,
 
 filters are applied in order of their appearence in the web.xml - so when
 your
 wicket-filter is applied, there hasn't any authentication been
 performed...
 
 Best regards, --- Jan.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-%2B-sso-%28jCIFS%29-tp20014589p20015920.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: refresh page with detachable model - not working

2008-09-23 Thread lienok

Well, I found my problem.

of course the model was changed but it did not have a chance to show,
because I didn't call the method setVisibility() where changes are visible.

so I add to every click
. 
lnkSendToAuth = new Link(sendToAuth) {

public void onClick() {
   /**
 *after ticket is authorized link sendToAuth is disabled
 * BUT THIS IS NOT WORKING AUTOMATICALLY,
 * I have to reopen the page. NOT EVEN REFRESH IS HELPING */

tck.sendToAuthorization(true);
info(Ticket was sent to authorization.);
}

setVisibility();
};
add(lnkSendToAuth); 


anyway thank you for the assistance :)  
at least I knew there was no problem with models.. 


lienok wrote:
 
 Hi Marijn, 
 
 I have moved it to the onclick handler in a following way, but it did not
 help.
 tck = (Ticket) getParent().getModel().getObject();
 
 
 
 
 Martijn Dashorst wrote:
 
 move tck = getModelObject() into the onclick handler.
 
 Martijn
 
 On Mon, Sep 22, 2008 at 4:05 PM, lienok [EMAIL PROTECTED] wrote:

 Hello,

 the panel with detachable model is not refreshing after model has
 changed.
 kindly check the code please.

 the panel - ActivityPanel is not refreshing after I press link and
 status of
 the DetachableTcktModel is changed.

 public LoansTabPanel(String id, int ticketId) {
super(id);
setModel(new CompoundPropertyModel(new
 DetachableTcktModel(ticketId)));
getMenu();
getFullContent();
 }

 public void getFullContent() {

//when ticket was not authorized sendToAuth link is visible
add(new ActivityPanel(activityPanel, getModel()));
}

 ..

 public ActivityPanel(String id, IModel model) {
super(id, model);
tck = (Ticket) getModelObject();

lnkSendToAuth = new Link(sendToAuth) {

public void onClick() {
   /**
 *after ticket is authorized link sendToAuth is disabled
 * BUT THIS IS NOT WORKING AUTOMATICALLY,
 * I have to reopen the page. NOT EVEN REFRESH IS HELPING */

tck.sendToAuthorization(true);
info(Ticket was sent to authorization.);
}
};
add(lnkSendToAuth);

 }
 
 public DetachableTcktModel(int ticketID) {
this.ticketId = ticketID;
 }

 protected Object load() {
tck = findTicket(ticketId);
return tck;
 }

 public void detach() {
tck = null;
}

 .


 Any advice what I am doing wrong I would appreciate.

 Thanks, Lenka

 --
 View this message in context:
 http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19625525.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]



refresh page with detachable model - not working

2008-09-22 Thread lienok

Hello, 

the panel with detachable model is not refreshing after model has changed.
kindly check the code please.

the panel - ActivityPanel is not refreshing after I press link and status of
the DetachableTcktModel is changed.

public LoansTabPanel(String id, int ticketId) {
super(id);
setModel(new CompoundPropertyModel(new
DetachableTcktModel(ticketId)));
getMenu();
getFullContent();
}

public void getFullContent() {

//when ticket was not authorized sendToAuth link is visible
add(new ActivityPanel(activityPanel, getModel()));   
}

..

public ActivityPanel(String id, IModel model) {
super(id, model);   
tck = (Ticket) getModelObject(); 

lnkSendToAuth = new Link(sendToAuth) {

public void onClick() {
   /**
 *after ticket is authorized link sendToAuth is disabled 
 * BUT THIS IS NOT WORKING AUTOMATICALLY, 
 * I have to reopen the page. NOT EVEN REFRESH IS HELPING */

tck.sendToAuthorization(true);  
info(Ticket was sent to authorization.);
}
};
add(lnkSendToAuth);

}
 
public DetachableTcktModel(int ticketID) {
this.ticketId = ticketID;
}

protected Object load() {
tck = findTicket(ticketId);
return tck;
}

public void detach() {
tck = null;
}

.


Any advice what I am doing wrong I would appreciate.

Thanks, Lenka

-- 
View this message in context: 
http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.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: refresh page with detachable model - not working

2008-09-22 Thread lienok

Hi Marijn, 

I have moved it to the onclick handler in a following way, but it did not
help.
tck = (Ticket) getParent().getModel().getObject();




Martijn Dashorst wrote:
 
 move tck = getModelObject() into the onclick handler.
 
 Martijn
 
 On Mon, Sep 22, 2008 at 4:05 PM, lienok [EMAIL PROTECTED] wrote:

 Hello,

 the panel with detachable model is not refreshing after model has
 changed.
 kindly check the code please.

 the panel - ActivityPanel is not refreshing after I press link and status
 of
 the DetachableTcktModel is changed.

 public LoansTabPanel(String id, int ticketId) {
super(id);
setModel(new CompoundPropertyModel(new
 DetachableTcktModel(ticketId)));
getMenu();
getFullContent();
 }

 public void getFullContent() {

//when ticket was not authorized sendToAuth link is visible
add(new ActivityPanel(activityPanel, getModel()));
}

 ..

 public ActivityPanel(String id, IModel model) {
super(id, model);
tck = (Ticket) getModelObject();

lnkSendToAuth = new Link(sendToAuth) {

public void onClick() {
   /**
 *after ticket is authorized link sendToAuth is disabled
 * BUT THIS IS NOT WORKING AUTOMATICALLY,
 * I have to reopen the page. NOT EVEN REFRESH IS HELPING */

tck.sendToAuthorization(true);
info(Ticket was sent to authorization.);
}
};
add(lnkSendToAuth);

 }
 
 public DetachableTcktModel(int ticketID) {
this.ticketId = ticketID;
 }

 protected Object load() {
tck = findTicket(ticketId);
return tck;
 }

 public void detach() {
tck = null;
}

 .


 Any advice what I am doing wrong I would appreciate.

 Thanks, Lenka

 --
 View this message in context:
 http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19609156.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: After 1 minute the Pagemap null is still locked

2008-06-17 Thread lienok

Hello 

I have the similar problem, but not running on Unix. Can you please help me
how can get thread dump in windows?

any advice appreciated
Lenka


On 18/03/2008, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Glad to be of help. kill -3 is one of those gems you should never
  forget as it can save your life. Kill to save your life: nice
  slogan... :D


  Martijn


  On 3/19/08, Jeremy Levy [EMAIL PROTECTED] wrote:
   Thanks Igor / Martijn for your help.
  
As you mentioned Wicket had nothing to do with it.  I had a piece of
 code
that was executed when a user clicked a certain link and was blocking
 by
accident, caught in a loop peging the CPU.  Your suggestions of kill
 -3 to
get the thread dump over a couple of samples helped me to narrow down
 the
issue and fix it.
  
Thanks very much.
  
  
Jeremy
  


-- 
View this message in context: 
http://www.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-tp16129637p17881661.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: After 1 minute the Pagemap null is still locked

2008-06-17 Thread lienok

Hi Johan,

I am sorry but I don't understand. How can I run wicket application just
from the console? 
Which class should I lunch to start it?  


Johan Compagner wrote:
 
 run java.exe in a console and do CTRL-BREAK
 
 
 
 On Tue, Jun 17, 2008 at 11:57 AM, lienok
 [EMAIL PROTECTED][EMAIL PROTECTED]
 wrote:
 

 Hello

 I have the similar problem, but not running on Unix. Can you please help
 me
 how can get thread dump in windows?

 any advice appreciated
 Lenka


 On 18/03/2008, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Glad to be of help. kill -3 is one of those gems you should never
   forget as it can save your life. Kill to save your life: nice
   slogan... :D
 
 
   Martijn
 
 
   On 3/19/08, Jeremy Levy [EMAIL PROTECTED] wrote:
Thanks Igor / Martijn for your help.
   
 As you mentioned Wicket had nothing to do with it.  I had a piece
 of
  code
 that was executed when a user clicked a certain link and was
 blocking
  by
 accident, caught in a loop peging the CPU.  Your suggestions of
 kill
  -3 to
 get the thread dump over a couple of samples helped me to narrow
 down
  the
 issue and fix it.
   
 Thanks very much.
   
   
 Jeremy
   


 --
 View this message in context:
 http://www.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-tp16129637p17881661.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/After-1-minute-the-Pagemap-null-is-still-locked-tp16129637p17881906.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]



DataPicker problem

2008-04-04 Thread lienok

Hello, 

I am following book Enjoying web development with wicket, using Wicket
1.3.2.
Everythink worked fine till I added form.add(quoteDate). 
Please check code and stack trace below and let me know any advice.
Thank you

public class GetQuoteSymbol extends WebPage {
private Model model;

private Model dateModel;

public GetQuoteSymbol() {
FeedbackPanel feedback = new FeedbackPanel(msgs);
add(feedback);
Form form = new Form(f) {
protected void onSubmit() {
String sym = (String) model.getObject();
Date date = (Date) dateModel.getObject();
int stockValue = (sym + 
date.toString()).hashCode() % 100;
QuoteResult quoteResult = new 
QuoteResult(stockValue);
setResponsePage(quoteResult);
}
};
model = new Model();
List symbols = new ArrayList();
symbols.add(MSFT);
symbols.add(IBM);
symbols.add(RHAT);
DropDownChoice symbol = new DropDownChoice(sym, model, 
symbols);
symbol.setRequired(true);
form.add(symbol);
dateModel = new Model();
TextField quoteDate = new TextField(quoteDate, dateModel, 
Date.class);
quoteDate.setRequired(true);
quoteDate.add(new DatePicker());

//HERE IS A PROBLEM
form.add(quoteDate);

add(form);
}
}

stack trace:
WicketMessage: Can't instantiate page using constructor public
com.myapp.stockquote.GetQuoteSymbol()

Root cause:

java.lang.ClassNotFoundException: org.joda.time.DateTime
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.wicket.extensions.yui.calendar.DatePicker.class$(DatePicker.java:86)
at
org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern(DatePicker.java:438)
at
org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat(DatePicker.java:296)
at
org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java:129)
at org.apache.wicket.Component.add(Component.java:922)
at com.myapp.stockquote.GetQuoteSymbol.init(GetQuoteSymbol.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at

Re: DataPicker problem

2008-04-04 Thread lienok

Hi,

thank you for the obvious advice =) It helped of course. 
I just do not understand what was the problem. I have run the same code few
weeks ago on my home computer without any problem and I did NOT add any
joda-time jar. 
confused .. :confused:


Fabien D. wrote:
 
 search joda-time... and this package is obligatory :)
 

-- 
View this message in context: 
http://www.nabble.com/DataPicker-problem-tp16487490p16491005.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]