Re: Dialog Box is not replaced

2011-07-27 Thread Tejash Tarun
@Martin:  after calling D1.replaceWith(D2), D1=D2 is done as well.


On Wed, Jul 27, 2011 at 4:29 PM, Martin Grigorov wrote:

> See org.apache.wicket.Component.replaceWith(Component) javadoc.
> It says:  Usage: component =
> component.replaceWith(replacement);
>
> On Wed, Jul 27, 2011 at 1:34 PM, Tejash Tarun  wrote:
> > Hi Martin,
> >
> > It is a panel.
> >
> > On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov  >wrote:
> >
> >> What is the type of this DialogBox ? Is it a Panel or a ModalWindow?
> >>
> >> On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun 
> >> wrote:
> >> > Hi,
> >> >
> >> > In my page I have two dialog box say D1 and D2.
> >> >
> >> > When clicking some link D1 should come, and it is happening. It is a
> >> > confirmation dialog box.
> >> >
> >> > Now when I click ok button in D1 then D2 should be shown by replacing
> D1.
> >> >
> >> > code is
> >> >
> >> > D1.replaceWith(D2);
> >> > ajaxRequestTarget.add(D1);
> >> > ajaxRequestTarget.add(D2);
> >> >
> >> > But nothing is happening on the screen.
> >> >
> >> > Looking forward for some suggestions and answer.
> >> > Thanks in advance.
> >> >
> >> > Regards,
> >> > Tejash
> >> >
> >>
> >>
> >>
> >> --
> >> 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
> >>
> >>
> >
>
>
>
> --
> 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: Dialog Box is not replaced

2011-07-27 Thread Tejash Tarun
Hi Martin,

It is a panel.

On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov wrote:

> What is the type of this DialogBox ? Is it a Panel or a ModalWindow?
>
> On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun 
> wrote:
> > Hi,
> >
> > In my page I have two dialog box say D1 and D2.
> >
> > When clicking some link D1 should come, and it is happening. It is a
> > confirmation dialog box.
> >
> > Now when I click ok button in D1 then D2 should be shown by replacing D1.
> >
> > code is
> >
> > D1.replaceWith(D2);
> > ajaxRequestTarget.add(D1);
> > ajaxRequestTarget.add(D2);
> >
> > But nothing is happening on the screen.
> >
> > Looking forward for some suggestions and answer.
> > Thanks in advance.
> >
> > Regards,
> > Tejash
> >
>
>
>
> --
> 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: Dialog Box is not replaced

2011-07-27 Thread Tejash Tarun
Hi Andrea,

Thanks for replying. But if I add only parent to the target then D1 goes but
D2 is not appearing.

On Wed, Jul 27, 2011 at 2:28 PM, Andrea Del Bene wrote:

> Hi,
>
> try adding to ajaxRequestTarget the parent component instead of D1 and D2.
>
>
>  Hi,
>>
>> In my page I have two dialog box say D1 and D2.
>>
>> When clicking some link D1 should come, and it is happening. It is a
>> confirmation dialog box.
>>
>> Now when I click ok button in D1 then D2 should be shown by replacing D1.
>>
>> code is
>>
>> D1.replaceWith(D2);
>> ajaxRequestTarget.add(D1);
>> ajaxRequestTarget.add(D2);
>>
>> But nothing is happening on the screen.
>>
>> Looking forward for some suggestions and answer.
>> Thanks in advance.
>>
>> Regards,
>> Tejash
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Dialog Box is not replaced

2011-07-27 Thread Tejash Tarun
Hi,

In my page I have two dialog box say D1 and D2.

When clicking some link D1 should come, and it is happening. It is a
confirmation dialog box.

Now when I click ok button in D1 then D2 should be shown by replacing D1.

code is

D1.replaceWith(D2);
ajaxRequestTarget.add(D1);
ajaxRequestTarget.add(D2);

But nothing is happening on the screen.

Looking forward for some suggestions and answer.
Thanks in advance.

Regards,
Tejash


Re: IE8 + No Page found for component

2011-04-13 Thread Tejash Tarun
Hi,

@Thierry:

That problem is happening in IE8 browser only. There is no problem in FF,
Chrome, and safari.
So, I am believing that this may be due to stale state at client side.

@Igor:

I have checked, there is no serialization errors.


With Kind Regards,
Tejash

On Tue, Apr 12, 2011 at 9:09 PM, Igor Vaynberg wrote:

> check your log for serialization errors.
>
> -igor
>
>
> On Tue, Apr 12, 2011 at 6:20 AM, Tejash Tarun  wrote:
> > Hi,
> >
> > I am using tabs in my page.
> >
> > When switching between the tabs I get this exception frequently (and not
> > every time).
> >
> > java.lang.IllegalStateException: No Page found for component
> > [MarkupContainer [Component id = link]]
> > at org.apache.wicket.Component.getPage(Component.java:1819)
> > at
> >
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:284)
> >
> > ...
> >
> >
> > Previously I faced the problem of difference of client-side state and
> > server-side state with chrome and got a fix implementing the solution at
> > this link:
> >
> http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
> >
> > But now I see the simple switching between the tabs in IE8 gives me the
> > problem.
> >
> > OS used: Windows7
> > Browser: IE8
> >
> > Seeking help.
> >
> > Thanks in advance,
> > Tejash
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


IE8 + No Page found for component

2011-04-12 Thread Tejash Tarun
Hi,

I am using tabs in my page.

When switching between the tabs I get this exception frequently (and not
every time).

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = link]]
at org.apache.wicket.Component.getPage(Component.java:1819)
at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:284)

...


Previously I faced the problem of difference of client-side state and
server-side state with chrome and got a fix implementing the solution at
this link:
http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

But now I see the simple switching between the tabs in IE8 gives me the
problem.

OS used: Windows7
Browser: IE8

Seeking help.

Thanks in advance,
Tejash


Re: Development / Deployment mode problem

2011-03-29 Thread Tejash Tarun
Hi,

The wicket component which I have created extends WebMarkupContainer and in
this way it encapsulates and interacts with the jquery calendar.
I have not used wicket:container tag explicitly.

On Mon, Mar 28, 2011 at 7:09 PM, MattyDE  wrote:

> My first clue: Are you using wicket:container Tags in your markup? In
> Deployment Mode this tags could not be rendered to the markup by
> Application
> Settings.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Development-Deployment-mode-problem-tp3411737p3411751.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
>
>


Development / Deployment mode problem

2011-03-28 Thread Tejash Tarun
Hi,

I have used a jquery control full calendar from
http://arshaw.com/fullcalendar/.
I have used that control in a wicket application, where in one page there
are two tabs, and in one tab there  are some text-fields and in the other
this calendar control.

But now for my local server which is on development mode everything is fine.
But when I deploy my application on any deployment server then, in Chrome
and Safari
calendar comes for the first time when i go to the calendar tab. But when I
navigate to the other tab and come back again then calendar never comes
again. This works fine for FF and IE.

So my question is: Why is this difference in Deployment/Development mode ??
How to solve this issue ??

Thanks in advance.


Re: requestCycle.getRequestTarget() not giving the target

2011-02-22 Thread Tejash Tarun
@leoerlandsson: Thanks a lot for the information.

@MZemeck: The solution given in the link provided by u worked for me. Thanks
a lot.

On Tue, Feb 22, 2011 at 10:10 PM,  wrote:

> This is the best solution I have found...
>
> http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
>
> Note that when refreshing the page it will return to its default state
> (first tab selected).  I have been meaning to test with
> HybridUrlCodingStrategy to see if the page can maintain its state without
> crashing after using the back button...
>
>
>
>
> From:   leoerlandsson 
> To: users@wicket.apache.org
> Date:   02/22/2011 06:22 AM
> Subject:Re: requestCycle.getRequestTarget() not giving the target
>
>
>
>
> Hi,
>
> We've seen this problem aswell (unfortunately, I have no solution for
> you...).
>
> The problem is probably that Wicket does not yet have Ajax Back Button
> Support. When an Ajax call is made, the URL is not changed, so the Browser
> cannot know that something (i.e State on server) has changed.
>
> When you click back you come back to the URL used for the _first_ page
> version... That's why you get:
>
> java.lang.IllegalStateException: No Page found for component
> [MarkupContainer [Component id = link]]
>
> I don't know how to fix this, but maybe someone elso knows? Perhaps we
> need
> Ajax Back Button Support (I know there's a JIRA Issue for it..)
>
>
> >I have this scenario:
> >1) AjaxTabbePanel has three tabs.
> >2) Go to 2nd tab
> >3) Come back to 1st tab
> >4) one link in 1st tab will take us to some page
> >5) Click back button of the browser => we wil come back to the page with
> the
> >AjaxTabbedPanel#1st tab
> >6) Now click on 2nd tab, then
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/requestCycle-getRequestTarget-not-giving-the-target-tp3317022p3318972.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
>
>
>
>
>
>
> Notice: This communication, including any attachments, is intended solely
> for the use of the individual or entity to which it is addressed. This
> communication may contain information that is protected from disclosure
> under State and/or Federal law. Please notify the sender immediately if
> you have received this communication in error and delete this email from
> your system. If you are not the intended recipient, you are requested not
> to disclose, copy, distribute or take any action in reliance on the
> contents of this information.


Re: requestCycle.getRequestTarget() not giving the target

2011-02-22 Thread Tejash Tarun
Hi,

haven't got any reply, added some more details.

6) Now click on 2nd tab, then only a refresh of page happens and the clicked
tab is not shown.


On Mon, Feb 21, 2011 at 2:42 PM, Tejash Tarun  wrote:

> Hi,
>
> I have this scenario:
> 1) AjaxTabbePanel has three tabs.
> 2) Go to 2nd tab
> 3) Come back to 1st tab
> 4) one link in 1st tab will take us to some page
> 5) Click back button of the browser => we will come back to the page with
> the AjaxTabbedPanel#1st tab
> 6) Now click on 2nd tab, then only a refresh of page happens and the
> clicked tab is not shown.
>
> AbstractRequestCycleProcessor#processEvents(requestCycle) doesn't get a
> call,
> instead RedirectPageRequestTarget#processEvents(requestCycle) gets the
> call.
> This happens all the time barring a few time when it greets me with
> following stack trace:
>
> java.lang.IllegalStateException: No Page found for component
> [MarkupContainer [Component id = link]]
>
>  at org.apache.wicket.Component.getPage(Component.java:1819)
>
>  at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:284)
>
>  at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
>
>  at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>
>  at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
>
>  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
> ...
>
>
> Can anybody tell what and where is going wrong ??
>
>
> Thanks in advance,
> Tejash
>
>
>


requestCycle.getRequestTarget() not giving the target

2011-02-21 Thread Tejash Tarun
Hi,

I have this scenario:
1) AjaxTabbePanel has three tabs.
2) Go to 2nd tab
3) Come back to 1st tab
4) one link in 1st tab will take us to some page
5) Click back button of the browser => we wil come back to the page with the
AjaxTabbedPanel#1st tab
6) Now click on 2nd tab, then

AbstractRequestCycleProcessor#processEvents(requestCycle) doesn't get a
call,
instead RedirectPageRequestTarget#processEvents(requestCycle) gets the call.

This happens all the time barring a few time when it greets me with
following stack trace:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = link]]

 at org.apache.wicket.Component.getPage(Component.java:1819)

 at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:284)

 at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)

 at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)

 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
...


Can anybody tell what and where is going wrong ??


Thanks in advance,
Tejash


tab index for PagingNavigator

2011-02-17 Thread Tejash Tarun
Hi,

want to attach tab index to PagingNavigator but wondering how ??

Thanks and Regards,
Tejash


Re: Handling OnKeyPress event

2010-12-29 Thread Tejash Tarun
Hi,

I guess if we add
 AjaxFormComponentUpdatingBehavior() to the component then
we can get the string from the model
and then we can extract the (last) character keyed-in.
This should work for normal characters.

Regards,
Tejash

On Wed, Dec 29, 2010 at 1:05 PM, Josh Kamau  wrote:

> Hi Team;
>
> Is there a way of handling onKey.. events in wicket, where by i will know
> which key was pressed. I specifically want to do some ajax update when
> Return key is pressed.
>
> Kind regards.
> Josh.
>


Re: Visibility setting with Ajax

2010-12-21 Thread Tejash Tarun
Hi,

What it looks to me that the panel of which visibility has been set is not
added to the target.
So, IMHO *target.add(uploadPanel2)* should do.

Regards

On Tue, Dec 21, 2010 at 6:09 PM, Duro  wrote:

> Hi, i have 3 panels on my page:
> wicket:extend>
> 
> Epubs upload
> 
> 
> 
> 
> 
> Add next file
> 
> 
> 
> 
> 
> 
> 
>
> and only after clicking addLink, the user should see the uploadPanel2. So i
> coded this:
>
> add(new AjaxFallbackLink("addLink") {
>private static final long serialVersionUID =
> -4427831923318024979L;
>
>@Override
>public void onClick(AjaxRequestTarget target) {
>uploadPanel2.setVisible(true);
>}
>});
>
> When i debug, the method onClick() is really entered and
> uploadPanel2.setVisible(true) is executed, but the panel is still not
> visible. What else i have to do?
>  thanks!
> __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails. http://mail.yahoo.com
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>