((ServletWebRequest)
RequestCycle.get().getRequest()).getContainerRequest().getRemoteHost()
François
Le 21 nov. 2011 à 08:20, vineet semwal a écrit :
> ServletWebRequest servletWebRequest = (ServletWebRequest)
> getRequestCycle().getRequest();
>HttpServletRequest request =
> servle
either do that or simply this
HttpServletRequest
request=(HttpServletRequest)getRequestCycle().getRequest().getContainerRequest();
String ipAddress=request.getHeader("X-Forwarded-For");
On Mon, Nov 21, 2011 at 12:50 PM, vineet semwal
wrote:
> ServletWebRequest servletWebRequest = (Servle
ServletWebRequest servletWebRequest = (ServletWebRequest)
getRequestCycle().getRequest();
HttpServletRequest request =
servletWebRequest.getContainerRequest();
String ipAddress = request.getHeader("X-Forwarded-For");
On Mon, Nov 21, 2011 at 12:41 PM, Paolo wrote:
> Alle d
Alle domenica 20 novembre 2011, vineet semwal ha scritto:
> HttpServletRequest request = servletWebRequest.getContainerRequest();
> String ipAddress = request.getHeader("X-Forwarded-For");
>
Thank you for your very fast reply.
I implemented your code:
HttpServletRequest request = S
Why this business about component nesting keeps coming up is really beyond
me. If you're running into non-trivial problems with keeping component
nesting in sync, you really need to stop what you're doing and back up a
step or two because you're definitely looking through the wrong end of the
Wicke
Thanks Igor. You simplified it to the maximum.
On Nov 21, 2011 1:36 PM, "Igor Vaynberg" wrote:
> a much simplified version:
>
> log contents
> next log call
>
> no panel needed. add self-updating behavior to next log call and in
> the callback also add
>
> target.appendjavascript( "$('#logdata).a
Thanks Steve for the code. Igor has almost given all the code we might ever
need for the ui part.
Clint,
I tried your suggestions but it was challenging to start stop the self
updating behavoir.
On Nov 21, 2011 1:22 PM, "Steve Swinsburg"
wrote:
> For the backend, I have the Tailer running in a T
Hello:
I've followed the straightforward instructions for implementing URL encoding
that are available here:
https://cwiki.apache.org/WICKET/url-coding-strategies.html
When my page renders, I get the following ClassCastException. I haven't
been able to find others having this particular problem.
a much simplified version:
log contents
next log call
no panel needed. add self-updating behavior to next log call and in
the callback also add
target.appendjavascript( "$('#logdata).append($('#nextlog).content());
$('#nextlog').remove(); $('#logdata).insertafter($('));" )
im paraphrasing jquer
On Sun, Nov 20, 2011 at 6:40 PM, jlazeraski
wrote:
> Hi Igor,
>
> You have valid points. I've not built a Wicket app yet to compare, so I
> can't honestly say. My intuition knowing about how session replication
> occurs to provide at least fault tolerance does however make me believe that
> in the
For the backend, I have the Tailer running in a Thread, and keep a reference to
it. The you can interrupt the thread as desired by calling thread.interrupt().
Some backend code you might find useful:
private Thread thread;
public void destroy() {
//set the flag to tell our listener to s
Clint,
Thanks for this idea. Let me give a try to it.
Pondering whether the Tailer would introduce any memory leaks if we
navigate to a different page.
On Mon, Nov 21, 2011 at 11:46 AM, Clint Checketts wrote:
> I'd need to look at Tailer to see how it operates. But here is how I'd try
> it (it i
I'd need to look at Tailer to see how it operates. But here is how I'd try
it (it is quick and I don't like the markup, but we'll optimize it later:
Create a panel that looks like so (we'll call it LoggingPanel):
log contents
next log call
Add a self updating timer behavior so the panel check
Thanks Steve. I'll look into the commons-io "Tailer".
But any idea on how to use this with wicket?
On Mon, Nov 21, 2011 at 11:10 AM, Steve Swinsburg wrote:
> I've done something similar to this using the Tailer class from commons-io.
>
> cheers,
> Steve
>
>
> On 21/11/2011, at 12:59 PM, James wr
I've created a FormComponentPanel to represent the current time which
consists of 3 drop downs for hour and minute and meridiem.
The model object of the FormComponentPanel is a Date object and the model of
the drop down represents the selected option, but I need to change the model
object in my com
I've done something similar to this using the Tailer class from commons-io.
cheers,
Steve
On 21/11/2011, at 12:59 PM, James wrote:
> Dear wicket community,
>
> In a project that I'm working on, I need to build a "live log viewer" or
> "dynamic log viewer" or "refreshable log viewer".
> Much li
Or should I have two components?
One to display the existing content of the log and the other one to display
the dynamically added new content..?
On Mon, Nov 21, 2011 at 11:07 AM, James wrote:
> Jeremy,
>
> Thanks for your suggestions.
>
>
> *>> I suppose you're only asking about the web UI port
Jeremy,
Thanks for your suggestions.
*>> I suppose you're only asking about the web UI portion of this
application.*
Yes, I was asking about the web ui portion only.
*>> For the web UI part, there are basically two methods: push, poll*
I would like to use the "poll" method. In fact, I'm trying
On Sun, Nov 20, 2011 at 8:59 PM, James wrote:
> Dear wicket community,
>
> In a project that I'm working on, I need to build a "live log viewer" or
> "dynamic log viewer" or "refreshable log viewer".
> Much like how hudson/jenkins displays the console output.
>
> The idea is to dynamically displa
Hi,
If you need a reference to the referrer, you could simply store the
current page's PageReference which is available with
getPage().getPageReference(). Then use setResponsePage(SignInPage.class)
to go to the login page. PageReference is a serializable id that can
later be used in your logi
Hi Igor,
You have valid points. I've not built a Wicket app yet to compare, so I
can't honestly say. My intuition knowing about how session replication
occurs to provide at least fault tolerance does however make me believe that
in the end, wicket will scale much less than a stateless app with min
Dear wicket community,
In a project that I'm working on, I need to build a "live log viewer" or
"dynamic log viewer" or "refreshable log viewer".
Much like how hudson/jenkins displays the console output.
The idea is to dynamically display the new data added to a log file along
with the existing c
hej,
I'm just looking form clarification on
RestartResponseAtInterceptPageException and continueToOriginalDestination().
On every page I have a log-in link, and after log in I should be redirected
back to the original destination. I use oauth api that requires that I
redirect user to external url
Hello,
this issue has been discussed previously
(http://apache-wicket.1842946.n4.nabble.com/Stateful-pages-without-page-Id-in-the-url-td3816663.html).
If it is safe for a page not to keep it's versions (for exapmle if the whole
"state" is in the page paramgers) the page id in the url is not needed
am working on wicket, where i am supposed to show my data's under
Name
Single Player Score
Double Player Score
Total Score
My Player model class is as: Player class with attributes singlePlayerScore,
doublePlayerScore(), name with getter and setter and also a list
On Sun, Nov 20, 2011 at 7:49 PM, Eric Kizaki wrote:
> LOL! You know Eleco Hilenius wrote the “Wicket in Action” book? For some
> reason I can't stop laughing. Now everyone is going to think you are a
> badass at work. The book is decent, but it would be nice if the next
> edition would have a
hej,
well I tried to follow the cookies in wicket tester.
starting from the beginning I have page A that while constructing adds new
cookie to response and throws (as Martin advised) ReplaceHandlerException
pointing to page B.
everything goes well and cookies are carried inside original response u
@Alex Objelean & Igor Vanyberg-2
Yea, my bad on just posting something up here without looking at any
previous posts. Look, it was my rant and how I felt about things at the
time. Nothing personal. This was actually the clean version for public
consumption. It was probably still too rude though
Anybody can help with stopping propagation of events from inner
editable label to the outer editable label?
Thanks
On Fri, Nov 18, 2011 at 3:45 PM, Alec Swan wrote:
> I am not sure how to stop propagating the event. Could you please
> provide any pointers?
>
> Here is the relevant code:
>
> fina
Thanks, I'll give it a try.
On Sat, Nov 19, 2011 at 11:24 AM, Igor Vaynberg wrote:
> this is going to be tricky because the markup entered into the label
> is not parsed by wicket so resolvers wont be called on it. i wonder if
> you can override label's getmarkup() and return the markup parsed fr
hej,
Im a bit stuck, I tried to search something but all resources points to
older version and it seems that in 1.5 a lot ve changed.
I have a page that does its work and then continueToOriginalDestination or
it this returns false do some more stuff.
unit testing the case when it returns false was
You have to build the SQL query in a away it returns the data in the way
you one. After that it will easier to map the ListView.
Based on your example want to represent certain rows as columns values.
On Sun, Nov 20, 2011 at 7:20 AM, robinthapa [via Apache Wicket] <
ml-node+s1842946n4088337..
On Sun, Nov 20, 2011 at 12:46 AM, Jablow, Eric R wrote:
> I've just submitted issue WICKET-4246 for the problem I found where
> WicketTester.assertFeedback required the actual feedback messages to be the
> expected messages in their exact order. Since the ftlines validation
> project through the H
Hey thanx alot ...!!
It would be really very helpful if i could get some explanation on above
code.
Regards.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Radio-button-selection-tp4085827p4088663.html
Sent from the Users forum mailing list archive at Nabble.com.
HttpServletRequest request = servletWebRequest.getContainerRequest();
String ipAddress = request.getHeader("X-Forwarded-For");
On Sun, Nov 20, 2011 at 4:41 PM, Paolo wrote:
> I need to known the ip address of the user connected to my tomcat server.
> In previous post, I read about..
I need to known the ip address of the user connected to my tomcat server.
In previous post, I read about...
getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteAddr();
But I also find some documentation with google that in Wicket 1.5 I should use
WebClientInfo:
getRemoteAddr
p
Just an idea :)
private final IModel yesNoState = new Model();
final TextField textField = new TextField("text", ...);
textField.setOutputMarkupId(true);
...
add(new AbstractBehavior() {
@Override
public void configure(Component component) {
component.setVisible(Boolean.TRUE.equals(yesN
37 matches
Mail list logo